/* Global Variables */
:root {
    /* Light Theme (Default) */
    --primary-color: #7c5941;
    --secondary-color: #a67c52;
    --accent-color: #d4b483;
    --background-color: #f9f5f0;
    --text-color: #2c1b0a;
    --header-bg: #ffffff;
    --footer-bg: #2c1b0a;
    --footer-text: #e9e1d7;
    --card-bg: #ffffff;
    --card-border: #e0d6c9;
    --input-bg: #ffffff;
    --input-border: #d4b483;
    --input-focus: #7c5941;
    --button-hover: #5d4230;
    --shadow: rgba(0, 0, 0, 0.1);
    --hero-overlay: rgba(44, 27, 10, 0.6);
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-color: #d4b483;
    --secondary-color: #a67c52;
    --accent-color: #7c5941;
    --background-color: #1c1410;
    --text-color: #e9e1d7;
    --header-bg: #2c1b0a;
    --footer-bg: #0e0a06;
    --footer-text: #e9e1d7;
    --card-bg: #2c1b0a;
    --card-border: #3d2812;
    --input-bg: #3d2812;
    --input-border: #7c5941;
    --input-focus: #d4b483;
    --button-hover: #a67c52;
    --shadow: rgba(0, 0, 0, 0.3);
    --hero-overlay: rgba(0, 0, 0, 0.7);
}

/* Nature Theme */
[data-theme="nature"] {
    --primary-color: #5a7d2a;
    --secondary-color: #7fa340;
    --accent-color: #9cc25e;
    --background-color: #f3f7ed;
    --text-color: #283618;
    --header-bg: #ffffff;
    --footer-bg: #283618;
    --footer-text: #f3f7ed;
    --card-bg: #ffffff;
    --card-border: #dce4d0;
    --input-bg: #ffffff;
    --input-border: #9cc25e;
    --input-focus: #5a7d2a;
    --button-hover: #455e1f;
    --shadow: rgba(0, 0, 0, 0.1);
    --hero-overlay: rgba(40, 54, 24, 0.6);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

ul {
    list-style: none;
}

section {
    padding: 60px 0;
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background-color: var(--card-bg);
    padding: 5px;
    border-radius: 30px;
    box-shadow: 0 2px 10px var(--shadow);
}

.theme-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background-color: var(--button-hover);
}

/* Header */
header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 25px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding-bottom: 5px;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-btn span {
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    text-align: center;
    padding: 120px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hero-overlay);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--button-hover);
    color: white;
    transform: translateY(-2px);
}

/* Features Section */
.features {
    background-color: var(--background-color);
}

.features h2 {
    text-align: center;
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.feature-card .icon {
    margin-bottom: 20px;
}

.feature-card .icon svg {
    width: 60px;
    height: 60px;
    fill: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* Latest Posts Section */
.latest-posts h2 {
    text-align: center;
    margin-bottom: 40px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-content h3 {
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 10px;
    position: relative;
}

.read-more:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.read-more:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.center-btn {
    text-align: center;
}

/* Page Banner */
.page-banner {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.page-banner h1 {
    color: white;
    margin-bottom: 10px;
}

/* Blog Page */
.blog-posts {
    background-color: var(--background-color);
}

.blog-post {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    margin-bottom: 40px;
}

.blog-post .post-image {
    height: 400px;
}

.blog-post .post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Terminology Page */
.terminology-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.terminology-category {
    margin-bottom: 40px;
}

.terminology-category h2 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.term {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px var(--shadow);
}

.term h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* About Page */
.about-grid, .workshop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image, .workshop-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow);
    text-align: center;
}

.value-card .icon {
    margin-bottom: 20px;
}

.value-card .icon svg {
    width: 50px;
    height: 50px;
    fill: var(--primary-color);
}

.team-section, .partners-section {
    background-color: var(--background-color);
    text-align: center;
}

.team-grid, .partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member, .partner {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
}

.team-member:hover, .partner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.team-member img, .partner img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-member h3, .partner h3 {
    margin: 15px 0 5px;
}

.team-member p, .partner p {
    padding: 0 15px 15px;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item .icon {
    margin-right: 15px;
    padding-top: 5px;
}

.info-item .icon svg {
    fill: var(--primary-color);
}

.info-item h3 {
    margin-bottom: 5px;
}

.social-links {
    margin-top: 30px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.social-icons a:hover {
    background-color: var(--button-hover);
    transform: translateY(-3px);
}

.contact-form {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--input-border);
    border-radius: 5px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 2px rgba(124, 89, 65, 0.2);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
}

.form-checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.form-checkbox label {
    font-weight: normal;
    font-size: 0.9rem;
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    margin-top: 30px;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Thank You Modal */
.thank-you-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-content svg {
    margin-bottom: 20px;
}

.close-btn {
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
}

.footer-about p {
    opacity: 0.8;
}

.footer-links h3, .footer-legal h3, .footer-contact h3 {
    color: var(--footer-text);
    margin-bottom: 20px;
}

.footer-links ul li, .footer-legal ul li {
    margin-bottom: 10px;
}

.footer-links ul li a, .footer-legal ul li a {
    color: var(--footer-text);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover, .footer-legal ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: none;
}

.cookie-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.cookie-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#accept-cookies {
    background-color: var(--primary-color);
    color: white;
}

#accept-cookies:hover {
    background-color: var(--button-hover);
}

#customize-cookies, #decline-cookies {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--card-border);
}

#customize-cookies:hover, #decline-cookies:hover {
    background-color: var(--card-border);
}

.cookie-buttons a {
    margin-left: 15px;
    align-self: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-grid, .workshop-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        box-shadow: 0 5px 10px var(--shadow);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .feature-grid, .post-grid, .values-grid, .team-grid, .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .feature-card, .post-card, .term, .value-card, .team-member, .partner, .contact-form {
        padding: 20px;
    }
    
    .post-image {
        height: 180px;
    }
    
    .blog-post .post-image {
        height: 250px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons a {
        margin-left: 0;
        margin-top: 10px;
    }
}
