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

:root {
    --tilia-green: #184C34;
    --earth-beige: #E3D7C3;
    --leaf-vein-brown: #7A5E48;
    --soft-lime: #C6DCAB;
    --cloud-white: #FFFFFF;
    --deep-forest: #0F2A1E;
    --accent-gold: #D4AF37;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--tilia-green);
    background-color: var(--cloud-white);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(24, 76, 52, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(24, 76, 52, 0.12);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-family: 'Georgia', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--tilia-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-text:hover {
    color: var(--accent-gold)
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--tilia-green);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, 
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--leaf-vein-brown);
}

.floating-language-selector {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Lato', sans-serif;
}

.language-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--tilia-green), var(--deep-forest));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(24, 76, 52, 0.3);
    transition: all 0.3s ease;
    color: var(--cloud-white);
    position: relative;
    overflow: hidden;
}

.language-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(24, 76, 52, 0.4);
}

.language-toggle i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.language-text {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--accent-gold);
    color: var(--deep-forest);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 8px;
    min-width: 20px;
    text-align: center;
}

.language-dropdown {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: var(--cloud-white);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(24, 76, 52, 0.2);
    padding: 1.5rem;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--soft-lime);
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.language-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--tilia-green);
    font-weight: 600;
    font-size: 1rem;
}

.language-header i {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.translate-widget-floating .goog-te-combo {
    width: 100% !important;
    background: var(--cloud-white) !important;
    border: 2px solid var(--soft-lime) !important;
    border-radius: 15px !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    color: var(--tilia-green) !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    font-family: 'Lato', sans-serif !important;
}

.translate-widget-floating .goog-te-combo:hover {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2) !important;
    transform: translateY(-1px) !important;
}

.translate-widget-floating .goog-te-combo:focus {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1) !important;
}

.cta-button {
    background: linear-gradient(135deg, var(--tilia-green), var(--deep-forest));
    color: var(--cloud-white);
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(24, 76, 52, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(24, 76, 52, 0.3);
    background: linear-gradient(135deg, var(--deep-forest), var(--tilia-green));
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--tilia-green);
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(24, 76, 52, 0.12);
    padding: 2rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 1rem 0;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--tilia-green);
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem;
    padding: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.mobile-nav-links a:hover {
    color: var(--accent-gold);
    background-color: rgba(198, 220, 171, 0.2);
    transform: translateX(5px);
}

.mobile-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-nav-links a:hover::after {
    width: 80%;
}

.mobile-nav-links a.active {
    color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.15);
    font-weight: 600;
}

.mobile-nav-links a.active::after {
    width: 80%;
}

.mobile-cta .cta-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.mobile-cta {
    text-align: center;
    margin-top: 2rem;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.cover-left, .cover-right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: var(--soft-lime);
    transition: transform 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cover-left {
    left: 0;
}

.cover-right {
    right: 0;
}

.hero-cover.animate .cover-left {
    transform: translateX(-100%);
}

.hero-cover.animate .cover-right {
    transform: translateX(100%);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/tilia tree.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 0 2rem;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInContent 1s ease-out 2.5s forwards;
}

.hero h1 {
    font-family: 'Georgia', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--tilia-green);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.hero h1 .highlight {
    color: var(--accent-gold);
    position: relative;
}

.tagline {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: var(--leaf-vein-brown);
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.stats-section {
    padding: 80px 0;
    background: var(--tilia-green);
    color: var(--cloud-white);
}

.stats-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-item h3 {
    font-family: 'Georgia', serif;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
    font-weight: 700;
}

.stat-item p {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 500;
}

.stat-item .description {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.counter {
    transition: all 0.3s ease;
}

.pillars-section {
    padding: 120px 0;
    background: var(--cloud-white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Georgia', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--tilia-green);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.3rem;
    color: var(--leaf-vein-brown);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.pillar-item {
    background: var(--cloud-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(24, 76, 52, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pillar-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--soft-lime));
}

.pillar-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(24, 76, 52, 0.15);
}

.pillar-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--soft-lime), var(--earth-beige));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.pillar-item:hover .pillar-icon {
    transform: scale(1.1);
}

.pillar-item h3 {
    font-family: 'Georgia', serif;
    font-size: 1.6rem;
    color: var(--tilia-green);
    margin-bottom: 1rem;
    font-weight: 600;
}

.pillar-item p {
    color: var(--leaf-vein-brown);
    line-height: 1.7;
    font-size: 1rem;
}

.about-section {
    padding: 80px 0;
    background: var(--earth-beige);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-family: 'Georgia', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--tilia-green);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--leaf-vein-brown);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.btn-primary {
    background: linear-gradient(135deg, var(--tilia-green), var(--deep-forest));
    color: var(--cloud-white);
    padding: 16px 32px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(24, 76, 52, 0.2);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(24, 76, 52, 0.3);
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(24, 76, 52, 0.15);
}

.about-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

footer {
    background: var(--deep-forest);
    color: var(--cloud-white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-family: 'Georgia', serif;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
    font-weight: 600;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.staff-login {
    background: rgba(212, 175, 55, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    text-align: center;
}

.staff-login h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.staff-login .login-btn {
    background: linear-gradient(135deg, var(--accent-gold), #B8941F);
    color: var(--deep-forest);
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.staff-login .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav {
        padding: 0 1rem;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        display: none;
    }

    .floating-language-selector {
        bottom: 20px;
        right: 20px;
    }

    .language-toggle {
        width: 55px;
        height: 55px;
    }

    .language-toggle i {
        font-size: 1.3rem;
    }

    .language-dropdown {
        min-width: 220px;
        padding: 1.2rem;
        bottom: 70px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        height: 90vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.1rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2 1fr);
        gap: 2rem;
        padding: 0 1rem;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pillar-item {
        padding: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image img {
        height: 250px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .cta-button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .language-dropdown {
        right: -50px;
        min-width: 200px;
    }
    
    .container {
        padding: 0 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .pillar-item {
        padding: 1.5rem;
    }
}