/*
Theme Name: Pesat
Theme URI: https://pesat.id
Author: Erick Wellem (EWWD)
Description: Custom WordPress theme for Pesat ported from Next.js project.
Version: 1.0.0
Text Domain: pesat
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --radius: 1rem;
    --background: #fdfaf3;
    --foreground: #1c1c1c;
    --card: #ffffff;
    --card-foreground: #1c1c1c;
    --primary: #84cc16;
    --primary-dark: #65a30d;
    --primary-light: #bef264;
    --secondary: #4f46e5;
    --secondary-light: #e0e7ff;
    --muted: #f4f4f5;
    --muted-foreground: #52525b;
    --accent: #84cc16;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-top: 0;
}

a {
    transition: all 0.2s;
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 8rem 0;
    }
}

.section-muted {
    background-color: #f8fafc;
    position: relative;
}

.section-muted::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.5;
    pointer-events: none;
}

.section-primary {
    background-color: var(--primary);
    color: #fff;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.animation-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    z-index: 5;
}

.hero-content {
    position: relative;
    z-index: 20;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: clamp(1rem, 3vw, 1.25rem);
    opacity: 0.95;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(132, 204, 22, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(132, 204, 22, 0.23);
}

.btn-secondary {
    background-color: var(--secondary);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-secondary:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

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

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(253, 250, 243, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.header-logo {
    height: 5rem;
    width: auto;
    object-fit: contain;
    display: block;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--muted-foreground);
}

.main-navigation a:hover {
    color: var(--primary);
}

/* Dropdowns */
.main-navigation ul li {
    position: relative;
    padding: 1.5rem 0;
}

.main-navigation ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
}

.main-navigation ul li:hover>ul {
    display: flex;
}

.main-navigation ul li ul li {
    padding: 0;
}

.main-navigation ul li ul a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.main-navigation ul li ul a:hover {
    background: var(--muted);
}

/* Page Hero */
.page-hero {
    position: relative;
    padding: 120px 0;
    color: #fff;
    background-color: #1c1c1c;
}

.page-hero-background {
    position: absolute;
    inset: 0;
    opacity: 0.5;
}

.page-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

/* Impact Stats */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

.stat-item {
    text-align: center;
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.footer-logo-img {
    height: 8rem;
    width: auto;
    object-fit: contain;
    filter: invert(1);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
}

#menu-open {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--foreground);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

#menu-open:hover {
    transform: scale(1.1);
}

body.menu-open {
    overflow: hidden;
}

.mobile-menu-header {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        display: block !important;
        /* Force block but use visibility/opacity */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 2000;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        transform: translateX(100%);
    }

    .main-navigation.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border);
    }

    .mobile-logo {
        height: 3rem;
        width: auto;
    }

    #menu-close {
        background: var(--muted);
        border: none;
        width: 3rem;
        height: 3rem;
        border-radius: 50%;
        font-size: 1.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    #menu-close:hover {
        background: var(--primary);
        color: #fff;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 0;
        display: flex;
        /* Ensure it's flex even on mobile */
    }

    .main-navigation ul li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 0 !important;
        display: block;
    }

    .main-navigation a {
        font-size: 1.15rem;
        font-weight: 600;
        padding: 1.25rem 2rem;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: var(--foreground);
    }

    .main-navigation li.menu-item-has-children>a::after {
        content: "+";
        opacity: 0.5;
        font-size: 1.25rem;
        transition: transform 0.3s ease;
    }

    .main-navigation li.menu-item-has-children.is-open>a::after {
        transform: rotate(45deg);
    }

    .main-navigation ul li ul {
        display: none;
        position: static;
        width: 100%;
        background: #f9f9f9;
        box-shadow: none;
        border: none;
        padding: 0 0 1rem 1.5rem;
    }

    .main-navigation ul li.is-open>ul {
        display: block !important;
    }

    .main-navigation ul li ul a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        font-weight: 500;
    }

    .main-navigation ul li ul a::after {
        content: "";
    }
}


/* Blog & Content */
.prose {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--muted-foreground);
}

.prose h2 {
    color: var(--foreground);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    font-style: italic;
    font-size: 1.25rem;
    margin: 3rem 0;
    color: var(--foreground);
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: #fff;
    border: 1px solid var(--border);
    font-weight: 600;
    transition: all 0.2s;
}

.page-numbers.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-numbers:hover:not(.current) {
    border-color: var(--primary);
    color: var(--primary);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5rem;
    }
}

.about-image-wrapper {
    position: relative;
    z-index: 10;
}

.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    display: block;
}

@media (min-width: 768px) {
    .about-image {
        height: 500px;
    }
}

.about-accent-box {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 8rem;
    height: 8rem;
    background-color: var(--primary);
    border-radius: 1.5rem;
    z-index: -1;
}

@media (max-width: 768px) {
    .about-accent-box {
        display: none;
    }
}

/* Page Hero Details */
.page-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

.page-hero-description {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* Page Hero Template */
.page-hero {
    position: relative;
    padding: 120px 0;
    color: #fff;
    text-align: center;
    background-color: #1c1c1c;
    overflow: hidden;
}

.page-hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.page-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
    z-index: 2;
}

.page-hero-content {
    position: relative;
    z-index: 10;
}

/* Grid helper */
.grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid {
        gap: 2rem;
    }

    .md-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg-grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1.2fr;
        gap: 4rem;
    }
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.gap-16 {
    gap: 4rem;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

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

/* Flex utilities */
.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Partners Section */
/* Partner Section Utilities */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    opacity: 0.4;
    filter: grayscale(1);
    transition: all 0.5s ease;
}

@media (min-width: 768px) {
    .partner-logos {
        gap: 5rem;
    }
}

.partner-logos:hover {
    opacity: 1;
    filter: grayscale(0);
}

.partner-logo {
    height: 3rem;
    width: auto;
    object-fit: contain;
}

/* Tailwind-compatible Utility Layer */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-grow {
    flex-grow: 1;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.hidden {
    display: none;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.overflow-hidden {
    overflow: hidden;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.mb-0 {
    margin-bottom: 0px;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-auto {
    margin-top: auto;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-16 {
    margin-top: 4rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-\[10px\] {
    font-size: 10px;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.leading-tight {
    line-height: 1.25;
}

.opacity-40 {
    opacity: 0.4;
}

.opacity-60 {
    opacity: 0.6;
}

.opacity-80 {
    opacity: 0.8;
}

.bg-white {
    background-color: #ffffff;
}

.bg-\[\#f8fafc\] {
    background-color: #f8fafc;
}

.bg-\[\#111\] {
    background-color: #111111;
}

.bg-\[\#1a1a1a\] {
    background-color: #1a1a1a;
}

.bg-primary\/10 {
    background-color: rgba(var(--primary-rgb, 132, 204, 22), 0.1);
}

.bg-primary\/20 {
    background-color: rgba(var(--primary-rgb, 132, 204, 22), 0.2);
}

.bg-secondary\/20 {
    background-color: rgba(79, 70, 229, 0.2);
}

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

.text-white {
    color: #ffffff;
}

.text-white\/40 {
    color: rgba(255, 255, 255, 0.4);
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.border {
    border: 1px solid var(--border);
}

.border-t {
    border-top: 1px solid var(--border);
}

.border-white\/5 {
    border-color: rgba(255, 255, 255, 0.05);
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.transition-all {
    transition: all 0.3s ease;
}

.duration-500 {
    transition-duration: 500ms;
}

.duration-700 {
    transition-duration: 700ms;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .md\:flex-row {
        flex-direction: row;
    }

    .md\:aspect-square {
        aspect-ratio: 1 / 1;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:w-1\/3 {
        width: 33.333333%;
    }

    .md\:w-2\/3 {
        width: 66.666667%;
    }

    .md\:py-24 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .md\:text-5xl {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Custom RGB Variable for Opacity Utilities */
:root {
    --primary-rgb: 132, 204, 22;
    /* Default for green theme */
}

/* Social Icons */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    color: #fff;
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 5000;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn {
    background-color: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

.scroll-top-btn {
    background-color: var(--primary);
    color: white;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .floating-actions {
        bottom: 1.5rem;
        right: 1.5rem;
        gap: 0.75rem;
    }

    .floating-btn {
        width: 3rem;
        height: 3rem;
    }
}

/* Hero Image Loader */
.hero-wrapper {
    position: relative;
    overflow: hidden;
}

.hero-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-wrapper.hero-loaded .hero-loader {
    opacity: 0;
    visibility: hidden;
}

.hero-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: hero-spin 1s ease-in-out infinite;
}

@keyframes hero-spin {
    to {
        transform: rotate(360deg);
    }
}

.hero-image-bg {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-wrapper.hero-loaded .hero-image-bg {
    opacity: 1;
}

/* Page Hero Adjustments */
.page-hero {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 300px;
    }
}

/* Color Utilities */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.border-secondary {
    border-color: var(--secondary) !important;
}

.hover\:bg-primary\/5:hover {
    background-color: rgba(132, 204, 22, 0.05) !important;
}

.hover\:bg-secondary\/5:hover {
    background-color: rgba(79, 70, 229, 0.05) !important;
}

.bg-primary\/10 {
    background-color: rgba(132, 204, 22, 0.1) !important;
}

.bg-secondary\/10 {
    background-color: rgba(79, 70, 229, 0.1) !important;
}

.bg-primary\/20 {
    background-color: rgba(132, 204, 22, 0.2) !important;
}

.text-primary\/20 {
    color: rgba(132, 204, 22, 0.2) !important;
}

/* --- Tailwind Utility Compatibility Layer --- */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-grow {
    flex-grow: 1;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.hidden {
    display: none;
}

.inline-block {
    display: inline-block;
}

.inline-flex {
    display: inline-flex;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.w-20 {
    width: 5rem;
}

.h-20 {
    height: 5rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.overflow-hidden {
    overflow: hidden;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-20 {
    margin-bottom: 5rem;
}

.mt-auto {
    margin-top: auto;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-16 {
    margin-top: 4rem;
}

.mt-20 {
    margin-top: 5rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pt-12 {
    padding-top: 3rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-\[10px\] {
    font-size: 10px;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.leading-tight {
    line-height: 1.25;
}

.opacity-40 {
    opacity: 0.4;
}

.opacity-80 {
    opacity: 0.8;
}

.bg-white {
    background-color: #ffffff;
}

.bg-\[\#f8fafc\] {
    background-color: #f8fafc;
}

.bg-\[\#111\] {
    background-color: #111111;
}

.bg-\[\#1a1a1a\] {
    background-color: #1a1a1a;
}

.bg-\[\#000\] {
    background-color: #000000;
}

.text-white {
    color: #ffffff;
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.text-foreground {
    color: var(--foreground);
}

.border {
    border: 1px solid var(--border);
}

.border-t {
    border-top: 1px solid var(--border);
}

.border-border\/50 {
    border-color: rgba(226, 232, 240, 0.5);
}

.border-white\/5 {
    border-color: rgba(255, 255, 255, 0.05);
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.transition-all {
    transition: all 0.3s ease;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.duration-700 {
    transition-duration: 700ms;
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.hover\-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:text-primary {
    color: var(--primary);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .md\:flex-row {
        flex-direction: row !important;
    }

    .md\:aspect-square {
        aspect-ratio: 1 / 1;
    }

    .md\:aspect-\[4\/3\] {
        aspect-ratio: 4 / 3;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .md\:w-\[350px\] {
        width: 350px !important;
    }

    .md\:w-1\/3 {
        width: 33.333333% !important;
    }

    .md\:w-2\/3 {
        width: 66.666667% !important;
    }

    .md\:py-24 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .md\:line-clamp-3 {
        -webkit-line-clamp: 3;
        line-clamp: 3 !important;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* --- Specific Specificity Overrides --- */
.site-main .flex {
    display: flex !important;
}

.site-main .flex-col {
    flex-direction: column !important;
}

.site-main .grid {
    display: grid !important;
}

.site-main .w-full {
    width: 100% !important;
}

.site-main .h-full {
    height: 100% !important;
}

.site-main .aspect-video {
    aspect-ratio: 16 / 9 !important;
}

.site-main .overflow-hidden {
    overflow: hidden !important;
}

/* Additional Utilities */
.object-cover {
    object-fit: cover !important;
}

.object-contain {
    object-fit: contain !important;
}

.object-center {
    object-position: center !important;
}

/* Utility Classes for Colors & Backgrounds */
.bg-primary\/10 {
    background-color: rgba(132, 204, 22, 0.1);
}

.bg-secondary\/10 {
    background-color: rgba(79, 70, 229, 0.1);
}

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

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

.text-xs {
    font-size: 0.75rem;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.rounded-full {
    border-radius: 9999px;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flex-grow {
    flex-grow: 1;
}

.mt-auto {
    margin-top: auto;
}

.transition-shadow {
    transition-property: box-shadow;
}

.duration-300 {
    transition-duration: 300ms;
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.hover\:text-primary:hover {
    color: var(--primary);
}

.transition-colors {
    transition-property: color;
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.hover\:underline:hover {
    text-decoration: underline;
}

/* News & Info Cards Refined */
.news-card {
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.news-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--muted);
}

.news-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    z-index: 10;
    letter-spacing: 0.05em;
}

.news-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bg-primary {
    background-color: var(--primary);
}

.bg-secondary {
    background-color: var(--secondary);
}

.border-border\/50 {
    border-color: rgba(226, 232, 240, 0.5);
}

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.group:hover .group-hover\:translate-x-1 {
    transform: translateX(0.25rem);
}

/* Grid Layout Utilities */
.grid {
    display: grid !important;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

.gap-8 {
    gap: 2rem !important;
}

@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Leadership Page - Robust Styling */
.lead-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.lead-container p {
    margin-bottom: 0 !important;
}

/* Fix WP auto-p spacing */
.lead-intro {
    background: #fff;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lead-title-box {
    text-align: center;
    margin-bottom: 2.5rem;
}

.lead-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.lead-section-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827 !important;
    margin: 0;
    white-space: nowrap;
}

.lead-line {
    flex-grow: 1;
    height: 1px;
    background: #e2e8f0;
}

.lead-card {
    background: #fff;
    padding: 2rem !important;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.lead-card:hover {
    transform: translateY(-2px);
}

.lead-card-primary {
    background: rgba(132, 204, 22, 0.05) !important;
    border-color: rgba(132, 204, 22, 0.2) !important;
}

.lead-card-secondary {
    background: rgba(79, 70, 229, 0.05) !important;
    border-color: rgba(79, 70, 229, 0.2) !important;
}

.lead-card-muted {
    background: #f9fafb !important;
    border-color: #f3f4f6 !important;
}

.lead-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: block;
}

.text-primary-lead {
    color: #84cc16 !important;
}

.text-secondary-lead {
    color: #4f46e5 !important;
}

.lead-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827 !important;
    margin: 0;
    line-height: 1.2;
}

.lead-name-lg {
    font-size: 1.35rem;
}

.lead-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.lead-item {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151 !important;
    display: flex;
    align-items: start;
    gap: 0.75rem;
    line-height: 1.4;
}

.lead-item::before {
    content: "•";
    color: #84cc16;
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.lead-badge-dark {
    background: #111827 !important;
    color: #ffffff !important;
    padding: 2rem !important;
    border-radius: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.lead-badge-dark .lead-name {
    color: #ffffff !important;
    font-size: 1.5rem;
}

.lead-role-tag {
    padding: 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Force 3 Columns on Tablets/Desktop */
.lead-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
}

@media (min-width: 768px) {
    .lead-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .lead-list {
        grid-template-columns: 1fr;
    }

    .lead-badge-dark {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}