:root {
    --primary-color: #2E8B57; /* Sea Green */
    --secondary-color: #4682B4; /* Steel Blue */
    --accent-color: #F0E68C; /* Khaki */
    --text-dark: #333333;
    --text-light: #555555;
    --bg-light: #F8F8F8;
    --bg-dark: #1A4B32; /* Darker Green */
    --white: #FFFFFF;
    --grey-light: #E0E0E0;
    --gradient-bg: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 35px rgba(0, 0, 0, 0.15);
    --border-radius-lg: 12px;
    --border-radius-md: 8px;
    --transition-speed: 0.3s ease-in-out;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.2;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--bg-dark);
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1.25em;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white) !important;
}

.bg-light-grey {
    background-color: var(--bg-light);
}

.bg-gradient {
    background: var(--gradient-bg);
}

/* Header */
.main-header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.logo a {
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

.logo a:hover {
    color: var(--secondary-color);
}

.main-nav .nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh; /* viewport height */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/image_11.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Darker overlay */
    background: linear-gradient(45deg, rgba(46, 139, 87, 0.7) 0%, rgba(70, 130, 180, 0.7) 100%); /* Gradient overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.hero-title {
    font-size: 4.5em;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--white);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5em;
    font-weight: 300;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta-text {
    font-size: 1.2em;
    font-weight: 500;
    color: var(--accent-color);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Animations for Hero (initial load) */
.animate-fade-in-up {
    opacity: 1;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.animate-fade-in-up.delay-1 { animation-delay: 0.3s; }
.animate-fade-in-up.delay-2 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* General Layouts */
.grid-layout-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* About Section */
.about-image-wrapper {
    position: relative;
    padding: 15px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    transform: rotate(-3deg);
    transition: transform var(--transition-speed);
}

.about-image-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.about-image {
    border-radius: var(--border-radius-md);
    filter: brightness(0.95);
    transition: filter var(--transition-speed);
}

.about-image-wrapper:hover .about-image {
    filter: brightness(1);
}

.about-content p {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 1.1em;
}

/* Pillars Section */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pillar-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pillar-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.pillar-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite ease-in-out;
}

.pillar-icon img {
    filter: invert(1); /* Makes the (presumably white) icon visible on gradient */
    width: 60%;
    height: 60%;
    object-fit: contain;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


.pillar-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

.pillar-description {
    color: var(--text-light);
    font-size: 1em;
}

/* Insights Section */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.insight-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.insight-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.insight-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insight-card:hover .insight-image {
    transform: scale(1.05);
}

.insight-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.insight-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--bg-dark);
}

.insight-text {
    color: var(--text-light);
    font-size: 1em;
    margin-bottom: 15px;
    flex-grow: 1;
}

.insight-read-more {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

.insight-read-more::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-out;
}

.insight-card:hover .insight-read-more::after {
    transform: scaleX(1);
}


/* Community Section */
.community-section {
    padding: 100px 0;
}

.community-links {
    margin-top: 40px;
}

.community-links p {
    font-size: 1.2em;
    margin-bottom: 30px;
    font-weight: 300;
}

.explore-link {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--accent-color);
    color: var(--bg-dark);
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 50px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.explore-link:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: #E6D872; /* Slightly darker khaki on hover */
    color: var(--bg-dark); /* Ensure text stays dark */
}


/* Footer */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 60px 0 20px;
    font-size: 0.95em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-brand .footer-description {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h5, .footer-social h5 {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-speed);
}

.footer-links ul li a:hover {
    color: var(--white);
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5em;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.social-icons a:hover {
    color: var(--white);
    transform: translateY(-3px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
}

/* Scroll Reveal Animation */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2em;
    }
    .hero-title {
        font-size: 3.5em;
    }
    .hero-subtitle {
        font-size: 1.3em;
    }
    .grid-layout-two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image-wrapper {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        width: 100%;
        margin-top: 20px;
    }

    .main-nav .nav-list {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid var(--grey-light);
    }

    .nav-link::after {
        display: none; /* Hide hover line for mobile nav items */
    }
    
    .nav-link:hover {
        background-color: var(--bg-light);
    }

    .hero-section {
        height: 70vh;
        min-height: 500px;
    }
    .hero-title {
        font-size: 2.8em;
    }
    .hero-subtitle {
        font-size: 1.1em;
    }
    .section-padding {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2em;
    }
    .section-subtitle {
        font-size: 1.1em;
    }
    .pillars-grid, .insights-grid {
        grid-template-columns: 1fr;
    }
    .insight-image {
        height: 200px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand, .footer-links, .footer-social {
        margin-bottom: 30px;
    }
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5em;
    }
    .hero-title {
        font-size: 2.2em;
    }
    .hero-subtitle {
        font-size: 1em;
    }
    .explore-link {
        padding: 12px 30px;
        font-size: 1em;
    }
    .section-title {
        font-size: 1.8em;
    }
    .pillar-card {
        padding: 25px;
    }
}

/* Animation states when visible - FIXED: Only opacity: 1 */
.animate-fade-in-up.visible,
.animate-fade-in-left.visible,
.animate-fade-in-right.visible,
.animate-bounce-y.visible,
.section-scroll-animate.visible,
.text-animate-up.visible,
.reveal-item.visible,
.scroll-reveal.visible,
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in-up.visible.fade-in,
.section-scroll-animate.visible.fade-in {
    opacity: 1;
}

.animate-fade-in-up.visible.slide-up,
.section-scroll-animate.visible.slide-up {
    transform: translateY(0);
}
/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
