/* Header & Local Overrides */
header {
    padding: 2rem 0;
    position: absolute;
    /* Changed back to absolute to scroll with page */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.4s ease;
}

header.scrolled {
    /* Optional: Keep glass effect if we ever want to trigger it, purely visual now since it scrolls away */
    padding: 1rem 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    padding: 0 3rem;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
}

.brand-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: white !important;
    text-decoration: none;
    line-height: 1;
    text-align: left;
}

.brand-logo span {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.8em;
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding-bottom: 0.5rem;
    /* Space for scrollbar if visible */
}

/* Dropdown/Group Styles */
.nav-group {
    position: relative;
    padding: 0.5rem 0;
}

.nav-group-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    /* Changed to white for visibility on dark */
    cursor: default;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-group:hover .nav-group-title {
    color: var(--accent-gold);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 1rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.nav-group:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: white !important;
    text-decoration: none;
    padding: 0;
    border-radius: 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-link:hover {
    color: var(--nav-hover);
    background: transparent;
}

.nav-cta {
    background: transparent;
    color: white !important;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    cursor: pointer;
}

.nav-cta:hover {
    border-color: var(--text-primary);
    background: var(--glass-bg);
    color: var(--text-primary);
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 0;
    /* Reset padding since it's full screen */
    padding-left: 2rem;
    padding-right: 2rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1627581297678-abc2e56736dc?q=80&w=2940&auto=format&fit=crop');
    /* Beautiful Rural/Architecture abstract */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    color: white;
    /* Force white text */
    width: 100%;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        /* Fix mobile zoom issue */
        background-position: center top;
        min-height: 60vh;
        /* Reduce height on mobile */
    }
}

/* Local overrides for Hero Text on dark background */
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(4.5rem, 10vw, 7.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: var(--text-primary) !important;
    /* Override var */
}

.hero h1 span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-description {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    color: white !important;
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* Grid Layout */
.grid-missions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-missions {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.glass-card {
    overflow: hidden;
    position: relative;
    background: #000;
    border-radius: 1rem;
    isolation: isolate;
    aspect-ratio: 4/3;
    text-decoration: none;
    display: block;
}

.card-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    z-index: 0;
    filter: none;
}

.glass-card:hover .card-bg-image {
    transform: scale(1.05);
}

.glass-card::after {
    display: none;
}

/* Single Row Layout Styles */
.glass-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: #fff;
    padding: 1rem 1.5rem;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.glass-card:hover .glass-card-content {
    transform: translateY(100%);
}

.card-icon {
    flex-shrink: 0;
    background: #f3f4f6;
    padding: 0.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--card-text);
    margin: 0;
    line-height: 1.2;
}

.card-subtitle {
    font-family: 'Lora', serif;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

.card-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.hover-bg {
    display: none;
}

/* Editorial Typography */
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 10vw, 8.5rem);
    /* Increased size */
    font-weight: 400;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    color: #ffffff !important;
    /* Always white due to dark bg image */
}

.hero h1 span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    background: none;
    -webkit-text-fill-color: var(--text-secondary);
}

.hero-description {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: white;
    color: black;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    opacity: 0.8;
    animation: fadeBounce 2s infinite;
}

.scroll-text {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.2rem;
    color: rgba(255, 255, 255, 0.8) !important;
    text-transform: uppercase;
}

.scroll-arrow {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes fadeBounce {

    0%,
    100% {
        transform: translate(-50%, 0);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, 10px);
        opacity: 0.4;
    }
}

/* Footer Styles */
footer {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 4rem 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    }
}

.footer-col h4 {
    font-family: var(--font-heading);
    /* or Poppins if preferred */
    font-size: 1.5rem;
    /* Adjusted for h4 */
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Quicksand', sans-serif;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.social-icon {
    color: var(--text-primary);
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 20px;
    width: 20px;
}

.social-icon:hover {
    opacity: 0.8;
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    /* Adapt to theme */
    font-family: 'Quicksand', sans-serif;
}

.footer-input:focus {
    outline: none;
    border-color: var(--text-primary);
    background: var(--bg-secondary);
}

.footer-btn {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.footer-btn:hover {
    background: #e5e5e5;
}

.copyright {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* FAQ Styles */
summary {
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

.faq-summary {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1rem 0;
    user-select: none;
}

.faq-answer {
    font-family: 'Lora', serif;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.05rem;
}

details {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

details[open] .faq-summary svg {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.faq-summary svg {
    transition: transform 0.3s ease;
}

details[open] summary~* {
    animation: slideDown 0.3s ease-in-out;
}

/* Section Headings */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 3rem;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Impact Feature Section */
.impact-feature-section {
    padding: 6rem 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.feature-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 900px) {
    .feature-layout {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.feature-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    color: var(--text-primary);
    font-weight: 400;
}

.highlight-text {
    color: #f97316;
    /* Eco Green */
    font-style: italic;
}

.feature-right-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-big-number {
    color: #f97316;
    font-family: 'poppins', 'quicksand';
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
}

.feature-description {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Inter', sans-serif;
}

.feature-key {
    font-weight: 600;
    color: var(--text-primary);
}

.feature-value {
    color: var(--text-secondary);
}

/* Campaign Section */

/* Community Section */
.community-section {
    padding: 6rem 0;
    overflow: hidden;
    background-color: var(--bg-primary);
}

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

@media (min-width: 900px) {
    .community-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
}

.community-visuals {
    position: relative;
    height: 500px;
}

.visual-bg-shape {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: #e2e8f0;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 0;
    opacity: 0.5;
}

[data-theme="dark"] .visual-bg-shape {
    background: #1e293b;
}

.community-main-img {
    position: absolute;
    top: 0;
    left: 10%;
    width: 70%;
    height: 90%;
    object-fit: cover;
    border-radius: 100px 100px 20px 20px;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.community-overlay-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 45%;
    height: 45%;
    object-fit: cover;
    border-radius: 20px;
    border: 8px solid var(--bg-primary);
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.community-content {
    z-index: 2;
}

.community-tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2.5rem;
}

.tab-btn {
    background: none;
    border: none;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding-bottom: 0.8rem;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn.active {
    color: var(--text-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #15803d;
}

.community-text {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.community-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.community-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-primary);
}

/* Tab Pane Logic */
.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* Testimonial Section Redesign */
.testimonial-scroller {
    padding: 2rem 1rem !important;
    gap: 2rem !important;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.testimonial-scroller::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 350px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-quote {
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.profile-pic {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.testimonial-name {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
}

.testimonial-role {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 3-Pillar Layout Styles */
.section-pillar {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    color: white;
}

.bg-green {
    background-color: #1B3325;
    /* Deep Forest Green */
}

.bg-terracotta {
    background-color: #4A2C2A;
    /* Deep Terracotta */
}

.bg-slate {
    background-color: #1C2530;
    /* Deep Slate Blue */
}

.pillar-content {
    position: relative;
    z-index: 2;
}

.pillar-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: white;
}

.pillar-subtext {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
}

.pillar-image-container {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    height: 100%;
    min-height: 400px;
}

.pillar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.pillar-image-container:hover .pillar-image {
    transform: scale(1.05);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 9999px;
    color: white;
    text-decoration: none;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
    background: transparent;
    backdrop-filter: blur(5px);
}

.btn-ghost:hover {
    background: white;
    color: black;
    border-color: white;
}

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

@media (min-width: 900px) {
    .pillar-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Order utilities for responsiveness */
    .order-last-mobile {
        order: 0;
    }
}

/* Impact Statistics Section */
.impact-stats {
    padding: 6rem 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    /* Clay Orange */
    line-height: 1;
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Philosophy Section */
.philosophy-section {
    padding: 8rem 0;
    text-align: center;
    background-image: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.8)), url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.philosophy-quote {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 2rem;
    font-style: italic;
}

.philosophy-author {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

/* PILLAR SECTION LAYOUT (Card Style) */
.pillar-section {
    padding: 6rem 0;
    /* Restore vertical spacing */
    width: 100%;
    position: relative;
    overflow: hidden;
    min-height: auto;
    /* Remove fixed viewport height */
    display: block;
}

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

/* DESKTOP LAYOUT */
@media (min-width: 900px) {
    .pillar-layout {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
        /* Breathing room between text and image */
    }

    /* Standard Order: Content Left, Image Right */
    .pillar-content {
        order: 1;
    }

    .pillar-image {
        order: 2;
    }

    /* REVERSE LAYOUT: Image Left, Content Right */
    .layout-reverse .pillar-content {
        order: 2;
    }

    .layout-reverse .pillar-image {
        order: 1;
    }
}

/* CONTENT SIDE */
.pillar-content {
    position: relative;
    z-index: 2;
    padding: 0;
    /* Reset from split-screen padding */
}

/* IMAGE SIDE - CARD STYLE */
.pillar-image {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    /* Card Shape */
    transition: transform 0.6s ease;
}

/* IMAGE STYLING */
.pillar-image img {
    width: 100%;
    height: 500px;
    /* Fixed cinematic height */
    object-fit: cover;
    display: block;
    border-radius: 20px;
    /* Rounded Corners */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    /* Deep Shadow */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle Border */
    position: relative;
    /* Reset absolute */
}

/* Hover Effect */
.pillar-section:hover .pillar-image {
    transform: translateY(-10px);
    /* Float up effect */
}


/* BACKGROUND THEMES (Solid Colors - Light & Dark Mode) */

/* Base Text Colors for Light Mode (Default) */
.pillar-section {
    color: #1a1a1a;
    /* Default dark text for light backgrounds */
}

.pillar-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: #1a1a1a;
    /* Dark Title */
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 700;
}

.pillar-text {
    font-family: 'Inter', sans-serif;
    color: #333333;
    /* Dark Grey Text */
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 550px;
    font-weight: 300;
}

.pillar-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    color: #1a1a1a;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.btn-ghost {
    padding: 0.9rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.4);
    /* Dark border */
    border-radius: 50px;
    color: #1a1a1a;
    /* Dark text */
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn-ghost:hover {
    background: #1a1a1a;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 1. Society (Pillar 1) */
.bg-terracotta {
    background: #ffd6ff;
    /* Light Mode: Light Pink */
}

[data-theme="dark"] .bg-terracotta {
    background: #510c28;
    /* Dark Mode: Deep Burgundy */
}

/* 2. Future (Pillar 2) */
.bg-slate {
    background: #caf0f8;
    /* Light Mode: Light Blue */
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .bg-slate {
    background: #032d5e;
    /* Dark Mode: Dark Blue */
}

/* Remove Blur Effect */
.bg-slate::before {
    display: none;
}

/* 3. Economy (Pillar 3) */
.bg-green {
    background: #e8fccf;
    /* Light Mode: Light Green */
}

[data-theme="dark"] .bg-green {
    background: #053019;
    /* Dark Mode: Dark Green */
}


/* DARK MODE TEXT OVERRIDES */
[data-theme="dark"] .pillar-section {
    color: white;
}

[data-theme="dark"] .pillar-title {
    color: white;
}

[data-theme="dark"] .pillar-text {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .pillar-label {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .btn-ghost {
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

[data-theme="dark"] .btn-ghost:hover {
    background: white;
    color: #1a1a1a;
}


/* BUTTON CONTAINER */
.pillar-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}