/* ==========================================================================
   Variables and Base Styles
   ========================================================================== */

:root {
    --primary: #a01500; /* Deep red */
    --secondary: #1a3a1f; /* Deep green */
    --accent: #d4af37;   /* Gold accent */
    --light: #ffffff;    /* White */
    --dark: #000000;     /* Black */
    --text: #333333;     /* Dark gray */
    --border: #e0e0e0;   /* Light gray border */
    --header-bg: rgba(255, 255, 255, 0.98); /* Slightly transparent white */
    
    /* Cultural patterns */
    --pattern-1: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect width="10" height="10" fill="%23a01500"/><rect x="10" y="10" width="10" height="10" fill="%23a01500"/></svg>');
    --pattern-2: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="5" fill="%23d4af37"/></svg>');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.8;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
    
}


#a_ourprograms{
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
    padding:20px;
    
}


a:hover {
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary);
    color: white;
    border-radius: 2px;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

.btn:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-5 { transition-delay: 0.5s; }

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


/* Enhanced Mission Quote */
.mission-quote {
    text-align: center;
    max-width: 900px;
    margin: 80px auto 0;
    position: relative;
}

.mission-quote blockquote {
    font-size: 28px;
    font-style: italic;
    color: var(--primary);
    line-height: 1.5;
    margin-bottom: 25px;
    padding: 0 40px;
    position: relative;
}

.mission-quote blockquote:before,
.mission-quote blockquote:after {
    content: '"';
    font-size: 80px;
    color: var(--accent);
    position: absolute;
    font-family: serif;
    opacity: 0.3;
}

.mission-quote blockquote:before {
    top: -20px;
    left: 0;
}

.mission-quote blockquote:after {
    bottom: -60px;
    right: 0;
}

.mission-quote cite {
    font-size: 20px;
    color: var(--accent);
    font-weight: 600;
    font-style: normal;
    display: block;
    margin-top: 20px;
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 4;
}

.scroll-text {
    color: white;
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.wheel {
    width: 6px;
    height: 10px;
    background: white;
    border-radius: 3px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

.arrow-down {
    width: 15px;
    height: 15px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    animation: arrowPulse 1.5s infinite;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .storyline-content {
        gap: 60px;
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .storyline-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .storyline-image {
        transform: none;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .storyline-image:hover {
        transform: scale(1.02);
    }
    
    .storyline-text {
        text-align: center;
    }
    
    .impact-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .storyline-hero {
        height: auto;
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .storyline-content {
        padding: 0 20px;
        gap: 40px;
    }
    
    .storyline-text h1 {
        font-size: 2.4rem;
    }
    
    .storyline-quote {
        padding: 20px;
    }
    
    .storyline-quote:before {
        font-size: 60px;
        top: -15px;
    }
    
    .storyline-body {
        padding: 20px;
    }
    
    .storyline-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .storyline-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
        gap: 15px;
       
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .mission-quote blockquote {
        font-size: 22px;
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .storyline-text h1 {
        font-size: 2rem;
    }
    
    .storyline-badge {
        font-size: 12px;
        padding: 6px 15px;
    }
    
    .storyline-quote p {
        font-size: 1.1rem;
    }
    
    .storyline-image img {
        height: 400px;
    }
    
    .mission-quote blockquote {
        font-size: 20px;
    }
    
    .mission-quote blockquote:before,
    .mission-quote blockquote:after {
        font-size: 60px;
    }
}


/* Key Milestones */
.key-milestones {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.milestone {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(160, 21, 0, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--accent);
}

.milestone-year {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    min-width: 60px;
}

.milestone-text {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(160, 21, 0, 0.3), rgba(212, 175, 55, 0.2));
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-image:hover .image-overlay {
    opacity: 1;
}

.overlay-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}




/* ==========================================================================
   Hero Section with Video Background
   ========================================================================== */
/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 100px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/swt.webp') no-repeat center center/cover;
    background-size: cover;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    transition: opacity 1s ease;
    opacity: 0;
}

.video-background video.playing {
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.no-video .video-background {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

.hero-title {
    overflow: hidden;
}

.title-line {
    display: block;
    transform: translateY(100%);
    opacity: 0;
    animation: slideUp 0.8s forwards;
}

.title-line:first-child {
    animation-delay: 0.3s;
}

.title-line:last-child {
    animation-delay: 0.5s;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 25px;
    line-height: 1.2;
    color: white;
    letter-spacing: 1px;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    padding: 0 20px;
}

/* Hero Buttons - Updated with Mobile Fix */
.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .hero {
        height: 85vh;
        min-height: 600px;
        margin-top: 80px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        padding: 0 15px;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-btns .btn,
    .hero-btns .btn-outline {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-btns {
        max-width: 280px;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 4;
}

@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 30px;
    }
}

@media (max-width: 576px) {
    .scroll-indicator {
        bottom: 20px;
    }
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.wheel {
    width: 6px;
    height: 10px;
    background: white;
    border-radius: 3px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

.arrow-down {
    width: 15px;
    height: 15px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    animation: arrowPulse 1.5s infinite;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
header {
    background: var(--header-bg);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
    height: 130px;
}

.header-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.header-utility {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-utility-left {
    flex: 1;
}

.header-utility-right {
    display: flex;
    align-items: center;
}

.header-utility-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-utility-menu li {
    margin-right: 20px;
}

.header-utility-menu a {
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s ease;
}

.header-utility-menu a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    color: var(--text);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

.header-main {
    padding: 15px 0;
    flex: 1;
    display: flex;
    align-items: center;
}

.header-main-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.header-logo img {
    height: 50px;
    transition: all 0.3s ease;
}

.logo-text h1 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 5px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.logo-text p {
    font-size: 12px;
    color: var(--dark);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.header-nav-container {
    display: flex;
    flex: 1;
    justify-content: center;
    margin: 0 20px;
}

.megamenu {
    flex: 1;
    max-width: 800px;
}

.megamenu-wrap {
    position: relative;
}

.megamenu-level-1 {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.megamenu-level-1 > li {
    position: relative;
    margin: 0 15px;
}

.megamenu-level-1 > li > a {
    display: flex;
    align-items: center;
    color: var(--dark);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: Capitalize;
    padding: 10px 0;
    transition: color 0.3s ease;
    position: relative;
}

.megamenu-level-1 > li > a:hover {
    color: var(--primary);
}

.megamenu-level-1 > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.megamenu-level-1 > li:hover > a::after,
.megamenu-level-1 > li.active > a::after {
    width: 100%;
}

.megamenu-level-1 > li > a i {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.megamenu-level-1 > li.active > a i {
    transform: rotate(180deg);
}

/* Megamenu Panel */
.megamenu-panel {
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
    width: 140vw;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 30px 0;
    pointer-events: none;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.megamenu-level-1 > li.has-children:hover .megamenu-panel,
.megamenu-level-1 > li.has-children.active .megamenu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* Prevent flickering during hover transitions */
.megamenu-level-1 > li.has-children {
    position: relative;
}



.megamenu-level-1 > li.active .megamenu-panel {
    opacity: 1;
    visibility: visible;
}

.megamenu-panel-inner {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.megamenu-intro {
    flex: 0 0 30%;
    padding-right: 30px;
}

.menu-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    height: 220px;
}

.menu-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-image-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.menu-image-title:hover {
    background: rgba(160, 21, 0, 0.9);
}

.menu-image-title p {
    margin: 0;
    font-weight: 600;
}

.menu-image-title i {
    font-size: 14px;
}

.megamenu-menus {
    flex: 1;
    display: flex;
}

.megamenu-menu {
    flex: 1;
    padding: 0 15px;
}

.megamenu-menu h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.megamenu-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.megamenu-menu li {
    margin-bottom: 12px;
}

.megamenu-menu li a {
    color: var(--text);
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.megamenu-menu li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.header-buttons {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.donate-btn {
    background: #F2BE5C;
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    white-space: nowrap;
    margin-left: 20px;
}

.donate-btn:hover {
    background: #8a1300;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(160, 21, 0, 0.3);
}

.burger {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
}

.burger-wrap {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.burger-lines {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: translateY(-50%);
}

.burger-lines:before,
.burger-lines:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

.burger-lines:before {
    top: -8px;
}

.burger-lines:after {
    bottom: -8px;
}

.burger.active .burger-lines {
    background: transparent;
}

.burger.active .burger-lines:before {
    top: 0;
    transform: rotate(45deg);
}

.burger.active .burger-lines:after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 1100;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active + .mobile-menu-backdrop {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-menu-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
}

.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.mobile-menu-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-nav li {
    margin-bottom: 5px;
}

.mobile-menu-nav li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: var(--text);
    font-weight: 600;
}

.mobile-menu-nav li a i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-menu-nav li.active > a i {
    transform: rotate(90deg);
}

.mobile-menu-nav li ul {
    padding-left: 15px;
    display: none;
}

.mobile-menu-nav li.active > ul {
    display: block;
}

.mobile-menu-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ==========================================================================
   Content Sections
   ========================================================================== */
/* About Section */
.about {
    padding: 100px 0;
    background: white;
    scroll-margin-top: 100px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: var(--pattern-1);
    background-size: contain;
    margin-right: 15px;
    vertical-align: middle;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--accent);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text);
    font-size: 17px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 25px;
    font-size: 16px;
}

.about-image {
    flex: 1;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 100px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 3px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* Programs Section */
.programs {
    padding: 100px 0;
    background: white;
    scroll-margin-top: 100px;
}

.programs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.program-card {
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.program-image {
    height: 220px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.1);
}

/* Ensure content doesn't hide behind header */
.programs-content {
    padding-top: 0;
}

.program-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    padding:20px;
}

.program-content p {
    margin-bottom: 20px;
    color: var(--text);
    padding:20px;
}

/* Partners Section */
.partners {
    padding: 80px 0;
    background: #f9f9f9;
    scroll-margin-top: 100px;
}

.partners-container {
    margin-top: 50px;
}

.partners-title {
    text-align: center;
    margin-bottom: 40px;
}

.partners-title h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 15px;
}

.partners-title p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 15px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.partner-logo img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Call to Action */
.cta {
    padding: 80px 0;
    background: #a01500;
    color: white;
    text-align: center;
    scroll-margin-top: 100px;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: white;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

/* Cultural Showcase */
.cultural-showcase {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    scroll-margin-top: 100px;
}

.artifacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.artifact-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.artifact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.artifact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.artifact-card:hover::before {
    transform: scaleX(1);
}

.artifact-image {
    height: 250px;
    overflow: hidden;
}

.artifact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.artifact-card:hover .artifact-image img {
    transform: scale(1.1);
}

.artifact-card h3 {
    padding: 20px;
    margin: 0;
    font-size: 1.3rem;
    color: #2c3e50;
    text-align: center;
    font-weight: 600;
}

/* Expanded View Styles */
.artifact-expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.artifact-expanded.active {
    opacity: 1;
    visibility: visible;
}

.expanded-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.artifact-expanded.active .expanded-content {
    transform: scale(1);
}

.close-expanded {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.close-expanded:hover {
    background: #c0392b;
    transform: rotate(90deg);
}

.expanded-image {
    height: 400px;
    overflow: hidden;
}

.expanded-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expanded-text {
    padding: 40px;
}

.expanded-text h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.expanded-text p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.artifact-card.reveal.active {
    animation: fadeInUp 0.6s ease forwards;
}

.artifact-card.reveal.delay-1.active { animation-delay: 0.1s; }
.artifact-card.reveal.delay-2.active { animation-delay: 0.2s; }
.artifact-card.reveal.delay-3.active { animation-delay: 0.3s; }
.artifact-card.reveal.delay-4.active { animation-delay: 0.4s; }
.artifact-card.reveal.delay-5.active { animation-delay: 0.5s; }
.artifact-card.reveal.delay-6.active { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 768px) {
    .artifacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .artifact-card {
        margin-bottom: 20px;
    }
    
    .artifact-image {
        height: 200px;
    }
    
    .expanded-content {
        width: 95%;
        margin: 20px;
    }
    
    .expanded-image {
        height: 250px;
    }
    
    .expanded-text {
        padding: 25px;
    }
    
    .expanded-text h3 {
        font-size: 1.5rem;
    }
    
    .expanded-text p {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--primary);
    color: white;
    padding: 80px 0 30px;
    scroll-margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--accent);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: var(--accent);
    bottom: 0;
    left: 0;
}

.footer-column p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent);
    margin-top: 4px;
}

.footer-social-links {
    display: flex;
    gap: 15px;
}

.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.footer-social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ==========================================================================
   Page Loader
   ========================================================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-header {
    padding-top: 160px; /* Adjust this value based on your header height */
    padding-bottom: 20px;
}

/* Header height adjustment */
header {
    height: 140px; /* Match this with the padding-top above */
}


/* For sections with anchor links */
section[id] {
    scroll-margin-top: 160px; /* Prevents anchor links from being hidden behind header */
}


.loader-logo {
    margin-bottom: 30px;
}

.loader-logo img {
    height: 80px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(160, 21, 0, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Mission/Vision Section
   ========================================================================== */
.mission-vision {
    background: var(--light);
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.mv-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.mv-card {
    background: white;
    padding: 40px 30px;
    border-radius: 3px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mv-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary);
    position: relative;
    padding-bottom: 15px;
}

.mv-card h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--accent);
    bottom: 0;
    left: 0;
}

/* ==========================================================================
   Team Section
   ========================================================================== */
.team-section {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
    margin-bottom: 30px;
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid var(--accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.team-member p {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

/* ==========================================================================
   History Timeline
   ========================================================================== */
.history-section {
    background: var(--light);
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--accent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    top: 30px;
    right: -10px;
    border: 3px solid var(--accent);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background: white;
    border-radius: 3px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.timeline-content h3 {
    margin-bottom: 10px;
}

.timeline-content p {
    margin-bottom: 0;
}

.timeline-date {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */
.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/SWT Contact.webp') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 140px;
    position: relative;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: white;
    border-radius: 5px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--accent);
    font-size: 30px;
    transition: all 0.3s ease;
}

.contact-card:hover .card-icon {
    background: rgba(160, 21, 0, 0.1);
    color: var(--primary);
}

.contact-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary);
}

.contact-card p {
    color: var(--text);
    margin-bottom: 20px;
}

.contact-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--accent);
}

.form-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 80px;
}

.form-info {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 40px;
    border-radius: 5px;
    color: white;
    position: relative;
    overflow: hidden;
}

.form-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: white;
}

.form-info p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.info-item {
    display: flex;
    margin-bottom: 25px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-right: 20px;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
    font-family: 'Open Sans', sans-serif;
}

.info-text p, .info-text a {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
}

.info-text a:hover {
    color: var(--accent);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(160, 21, 0, 0.1);
}

textarea.form-control {
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.map-section {
    margin-bottom: 80px;
}

.map-container {
    height: 500px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.accessibilitySkipToContentNav {
    position: absolute;
    top: -1000px;
    left: -1000px;
    height: 1px;
    width: 1px;
    text-align: left;
    overflow: hidden;
}

.accessibilitySkipToContentNav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accessibilitySkipToContentNav li {
    display: inline-block;
    margin-right: 10px;
}

.accessibilitySkipToContentButton {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.accessibilitySkipToContentButton:focus {
    opacity: 1;
    top: 10px;
    left: 10px;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */


/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header {
        padding-top: 100px; /* Smaller header on mobile */
    }
    section[id] {
        scroll-margin-top: 100px;
    }
}


@media (max-width: 1200px) {
    .megamenu-intro {
        flex: 0 0 25%;
    }
    
    .megamenu-level-1 > li {
        margin: 0 10px;
    }
}

@media (max-width: 992px) {
    .megamenu-intro {
        display: none;
    }
    
    .megamenu-panel-inner {
        flex-direction: column;
    }
    
    .megamenu-menus {
        flex-direction: column;
    }
    
    .megamenu-menu {
        padding: 15px 0;
        border-bottom: 1px solid var(--border);
    }
    
    .megamenu-menu:last-child {
        border-bottom: none;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 20px;
    }

    .form-area {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        height: 80px;
    }
    
    .burger {
        display: block;
    }
    
    .header-utility {
        display: none;
    }
    
    .header-nav-container {
        display: none;
    }
    
    .header-buttons .donate-btn {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero {
        height: 85vh;
        min-height: 600px;
        margin-top: 80px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .logo-text p {
        font-size: 10px;
    }
    
    .header-logo img {
        height: 40px;
    }
    
    .expanded-image {
        height: 250px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }
    
    .partner-logo {
        height: 80px;
        padding: 10px;
    }
    
    .partner-logo img {
        max-height: 60px;
    }

    .timeline:before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-dot {
        left: 20px !important;
        right: auto;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .section-title h2::before,
    .section-title h2::after {
        display: none;
    }
    
    .programs-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .logo-text h1 {
        font-size: 16px;
    }
    
    .logo-text p {
        display: none;
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .partner-logo {
        height: 70px;
    }
    
    .partner-logo img {
        max-height: 50px;
    }

    .scroll-indicator {
        bottom: 20px;
    }
}

/* ==========================================================================
   Performance Optimizations
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.hero-content, 
.video-background video, 
.reveal {
    will-change: transform, opacity;
}

/* Aspect ratio preservation */
.video-background {
    aspect-ratio: 16/9;
}

@supports not (aspect-ratio: 16/9) {
    .video-background::before {
        float: left;
        padding-top: 56.25%;
        content: '';
    }
    
    .video-background::after {
        display: block;
        content: '';
        clear: both;
    }
}


/* ==========================================================================
 Programs Page Styles 
   ========================================================================== */


/* Adjust program item spacing */
.program-item {
    scroll-margin-top: 160px; /* Same as above */
    padding: 60px 0 40px; /* Adjusted padding */
    margin-bottom: 40px;
    position: relative; /* Helps with anchor positioning */
}


.program-item:first-child {
    padding-top: 20px;
}

.program-header {
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent);
}

.program-header h2 {
    margin-top: 0;
    padding-top: 0px;
}

.program-body {
    display: flex;
    gap: 40px;
}

.program-image {
    flex: 0 0 40%;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: fit-content;
}

.program-image img {
    width: 100%;
    display: block;
}

.program-text {
    flex: 1;
}

.program-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.approach-list {
    margin: 30px 0;
    padding-left: 20px;
    list-style: none;
}

.approach-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.approach-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .programs-content {
        padding-top: 30px;
    }
    
    .program-item {
        scroll-margin-top: 120px;
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    .programs-content {
        padding-top: 20px;
    }
    
    .program-item {
        scroll-margin-top: 100px;
        padding: 30px 0;
    }
}




/* ==========================================================================
    Blog Styles 
   ========================================================================== */

.blog-section {
    padding: 100px 0;
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.blog-post {
    border: 1px solid var(--border);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.post-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 3px;
    line-height: 1;
}

.date-day {
    font-size: 24px;
    font-weight: 700;
    display: block;
}

.date-month {
    font-size: 14px;
    text-transform: uppercase;
    display: block;
}

.post-content {
    padding: 30px;
}

.post-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.post-content p {
    margin-bottom: 20px;
    color: var(--text);
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--accent);
    gap: 10px;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.blog-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text);
    transition: all 0.3s ease;
}

.blog-pagination a:hover,
.blog-pagination a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Blog Preview on Homepage */
.blog-preview {
    padding: 100px 0;
    background: #f9f9f9;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.blog-preview-card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.blog-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.preview-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-preview-card:hover .preview-image img {
    transform: scale(1.1);
}

.preview-date {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 15px;
    font-size: 14px;
}

.preview-content {
    padding: 25px;
}

.preview-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.preview-content p {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 15px;
}

@media (max-width: 768px) {
    .blog-grid,
    .blog-preview-grid {
        grid-template-columns: 1fr;
    }
}







/* ==========================================================================
   Blog Image Styles - Standardized Sizes
   ========================================================================== */

/* Blog grid images */
.blog-grid .post-image,
.blog-preview-grid .preview-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.blog-grid .post-image img,
.blog-preview-grid .preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

/* Single post featured image */
.blog-single .featured-image {
    margin-bottom: 30px;
    text-align: center;
}

.blog-single .featured-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Admin preview images */
.posts-table img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Image preview in forms */
.image-preview {
    max-width: 300px;
    max-height: 200px;
    width: auto;
    height: auto;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 5px;
    background: #f9f9f9;
}

/* Responsive image adjustments */
@media (max-width: 768px) {
    .blog-grid .post-image,
    .blog-preview-grid .preview-image {
        height: 200px;
    }
    
    .blog-single .featured-image img {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .blog-grid .post-image,
    .blog-preview-grid .preview-image {
        height: 180px;
    }
    
    .blog-single .featured-image img {
        max-height: 250px;
    }
}

/* Ensure content images are also properly sized */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Center align images in blog content */
.blog-content {
    text-align: left;
}

.blog-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Image caption style */
.blog-content figure {
    margin: 25px 0;
    text-align: center;
}

.blog-content figcaption {
    font-style: italic;
    color: #666;
    margin-top: 8px;
    font-size: 14px;
}





























/* ==========================================================================
  Donation Page Styles 
   ========================================================================== */

.donation-section {
    padding: 80px 0;
}

.donation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.donation-option {
    background: white;
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.donation-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.option-icon {
    width: 70px;
    height: 70px;
    background: rgba(160, 21, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 30px;
}

.donation-option h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.bank-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    font-weight: 600;
    flex: 0 0 120px;
    color: var(--text);
}

.detail-value {
    flex: 1;
}

.note {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 20px;
}

.mobile-money-options {
    margin: 20px 0;
}

.money-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 15px;
}

.provider-logo {
    flex: 0 0 60px;
    margin-right: 15px;
}

.provider-logo img {
    max-width: 100%;
    height: auto;
}

.online-payment-options {
    margin-top: 20px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-methods img {
    height: 30px;
    width: auto;
}

.donation-form {
    margin-top: 20px;
}

.amount-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.amount-btn {
    padding: 8px 15px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

#custom-amount {
    flex: 1;
    min-width: 100px;
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.why-donate {
    margin: 80px 0;
    text-align: center;
}

.why-donate h3 {
    margin-bottom: 40px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.why-donate h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--accent);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.impact-item {
    background: white;
    padding: 30px 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.impact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.impact-item i {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 15px;
}

.impact-item h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.impact-item p {
    font-size: 14px;
    color: var(--text);
}

.recurring-donation {
    display: flex;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.recurring-content {
    flex: 1;
    padding: 40px;
}

.recurring-image {
    flex: 0 0 40%;
}

.recurring-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .recurring-donation {
        flex-direction: column;
    }
    
    .recurring-image {
        flex: 0 0 auto;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .donation-options {
        grid-template-columns: 1fr;
    }
    
    .impact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-row {
        flex-direction: column;
    }
    
    .detail-label {
        flex: 1;
        margin-bottom: 5px;
    }
}


:target {
    scroll-margin-top: 160px; /* Match your header height */
}

/* For mobile */
@media (max-width: 768px) {
    :target {
        scroll-margin-top: 100px; /* Reduced for mobile header */
    }
}



::marker {
   display:none !important;
}




/* ==========================================================================
  IWC Anniversary Section Styles - FIXED
   ========================================================================== */
.iwc-anniversary {
    padding: 80px 0;
    background: var(--light);
    text-align: center;
    scroll-margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.anniversary-badge {
    margin-bottom: 40px;
}

.badge-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    font-family: 'Playfair Display', serif;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.years {
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
}

.label {
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 5px;
}

.iwc-content {
    max-width: 800px;
    margin: 0 auto;
}

.iwc-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--primary);
}

.iwc-header h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--secondary);
}

.timeline-bar {
    position: relative;
    width: 80%;
    height: 4px;
    background: var(--border);
    margin: 30px auto;
    border-radius: 2px;
}

.timeline-progress {
    height: 100%;
    background: var(--accent);
    width: 100%;
    border-radius: 2px;
}

.timeline-start,
.timeline-end {
    position: absolute;
    top: -25px;
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}

.timeline-start {
    left: 0;
}

.timeline-end {
    right: 0;
}

.iwc-main-text {
    margin: 40px 0;
}

.iwc-main-text p {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--dark);
    line-height: 1.6;
}

.highlight {
    font-weight: bold;
    color: var(--primary);
    font-size: 20px;
}

.iwc-signature {
    margin-top: 30px;
    font-style: italic;
    color: var(--text);
    font-size: 16px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text);
    margin-top: 5px;
}

.stats-container {
    margin-top: 50px;
}

.stat-row {
    padding: 50px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.iwc-stat {
    display: flex;
    align-items: center;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 500px;
    text-align: left;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(160, 21, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-description {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.stat-footnote {
    font-size: 14px;
    color: var(--accent);
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .iwc-stat {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .iwc-header h2 {
        font-size: 28px;
    }
    
    .iwc-header h3 {
        font-size: 20px;
    }
    
    .iwc-main-text p {
        font-size: 16px;
    }
    
    .stat-row {
        flex-direction: column;
        align-items: center;
    }
    
    .iwc-stat {
        width: 100%;
        max-width: 100%;
    }
    
    .map-stats {
        gap: 20px;
    }
    
    .map-stat {
        min-width: 100px;
        padding: 10px;
    }
    
    .stat-number {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .badge-circle {
        width: 100px;
        height: 100px;
    }
    
    .years {
        font-size: 28px;
    }
    
    .label {
        font-size: 12px;
    }
    
    .timeline-bar {
        width: 90%;
    }
    
    .map-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .map-stat {
        width: 100%;
        max-width: 200px;
    }
}




/* Impact Stories with Photos */
    .impact-stories {
        margin: 40px 0;
    }

    .impact-stories h4 {
        text-align: center;
        margin-bottom: 30px;
        color: var(--primary);
        font-size: 24px;
        position: relative;
        padding-bottom: 15px;
    }

    .impact-stories h4:after {
        content: '';
        position: absolute;
        width: 60px;
        height: 3px;
        background: var(--accent);
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .story-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        margin-top: 30px;
    }

    .story-card {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .story-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

    .story-image {
        height: 220px;
        overflow: hidden;
        position: relative;
    }

    .story-image img {
        width: 100%;
        height: 100%;
        object-fit: scale-down;
        transition: transform 0.5s ease;
    }

    .story-card:hover .story-image img {
        transform: scale(1.05);
    }

    .story-content {
        padding: 25px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .story-card h5 {
        font-size: 18px;
        margin-bottom: 10px;
        color: var(--primary);
    }

    .story-card p {
        color: var(--text);
        line-height: 1.6;
        margin-bottom: 15px;
        flex-grow: 1;
    }

    .story-role {
        color: var(--accent);
        font-weight: 600;
        font-size: 14px;
        margin-top: auto;
        padding-top: 10px;
        border-top: 1px solid var(--border);
    }

    /* Anniversary Section Enhancement */
    .anniversary-section {
        position: relative;
        padding: 40px;
        background: rgba(160, 21, 0, 0.03);
        border-radius: 8px;
        margin: 40px 0;
    }

    .anniversary-section h3 {
        text-align: center;
        margin-bottom: 30px;
        color: var(--primary);
        font-size: 28px;
    }

    blockquote {
        border-left: 4px solid var(--accent);
        padding-left: 20px;
        margin: 25px 0;
        font-style: italic;
        color: var(--dark);
        line-height: 1.8;
    }

    blockquote cite {
        display: block;
        margin-top: 15px;
        font-style: normal;
        font-weight: 600;
        color: var(--primary);
    }

    .closing-quote {
        text-align: center;
        font-style: italic;
        font-size: 18px;
        color: var(--primary);
        padding: 20px;
        margin: 30px 0 20px;
        background: rgba(212, 175, 55, 0.1);
        border-radius: 5px;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .story-grid {
            grid-template-columns: 1fr;
        }
        
        .anniversary-section {
            padding: 20px;
        }
        
        .anniversary-section h3 {
            font-size: 24px;
        }
    }
    
    
    
    
    
    /* Read More Buttons for Story Cards */
.read-more-btn {
    padding: 8px 15px;
    font-size: 12px;
    margin-top: 15px;
    width: 100%;
    text-align: center;
}

.story-card .story-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.story-card .story-content p {
    flex-grow: 1;
    margin-bottom: 15px;
}

/* Achievements Styles */
.achievements-list {
    display: grid;
    gap: 15px;
}

.achievement-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(160, 21, 0, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.achievement-year {
    flex: 0 0 100px;
    font-weight: 600;
    color: var(--primary);
}

.achievement-title {
    flex: 1;
    color: var(--text);
}















/* Leader Profile Pages */

.leader-profile {
    max-width: 100% !important;
}
.profile-content,
.profile-achievements {
    width: 100%;
}


.profile-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    padding: 30px;
    background: white;
    border-radius: 0px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.profile-header .profile-image {
    flex: 0 0 300px;
}

.profile-header .profile-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.profile-info h2 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 32px;
}

.profile-info .title {
    color: var(--accent);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 5px;
}

.profile-info .organization {
    color: var(--text);
    margin-bottom: 15px;
}

.profile-role {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.role-tag {
    background: rgba(160, 21, 0, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.profile-content {
    background: white;
    padding: 40px;
    border-radius: 0px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.profile-content h3 {
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
}

.profile-content h4 {
    color: var(--secondary);
    margin: 30px 0 15px 0;
    font-size: 22px;
}

.profile-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.profile-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: var(--dark);
    line-height: 1.8;
}

.testimonial {
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--accent);
    padding: 25px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.closing-quote {
    text-align: center;
    font-style: italic;
    font-size: 18px;
    color: var(--primary);
    padding: 20px;
    margin: 30px 0 20px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 5px;
    border: none;
}

.profile-cta {
    text-align: center;
    display: flex;
    gap: 20px;
    padding:20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Impact Lists */
.impact-list {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.impact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: rgba(160, 21, 0, 0.05);
    border-radius: 8px;
}

.impact-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.impact-text h5 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 18px;
}

.impact-text p {
    margin: 0;
    color: var(--text);
}

/* Achievements and Initiatives */
.achievements-list {
    display: grid;
    gap: 15px;
}

.achievement-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(160, 21, 0, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.achievement-year {
    flex: 0 0 100px;
    font-weight: 600;
    color: var(--primary);
}

.achievement-title {
    flex: 1;
    color: var(--text);
}

.initiatives-grid,
.development-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.initiative-card,
.dev-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.initiative-card h5,
.dev-card h5 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 16px;
}

.initiative-card p,
.dev-card p {
    margin: 0;
    font-size: 14px;
    color: var(--text);
}

/* Impact Stats */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
    text-align: center;
    margin-bottom:120px;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text);
    margin-top: 5px;
}

/* Impact Grid */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.impact-area {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.impact-area h5 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
}

.impact-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.impact-area li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 20px;
}

.impact-area li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.impact-area li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-header .profile-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
    }
    
    .profile-info h2 {
        font-size: 28px;
    }
    
    .profile-content {
        padding: 20px;
    }
    
    .profile-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-cta .btn {
        width: 200px;
    }
    
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .development-grid,
    .initiatives-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .impact-stats {
        grid-template-columns: 1fr;
    }
    
    .profile-role {
        justify-content: center;
    }
}


/* Staff Modal Styles */
.staff-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.staff-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
}

.close-modal:hover {
    color: var(--primary);
    background: rgba(0,0,0,0.2);
}

.staff-details {
    padding: 40px;
}

.staff-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.staff-image {
    flex: 0 0 200px;
}

.staff-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.staff-info {
    flex: 1;
}

.staff-info h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 28px;
}

.staff-title {
    color: var(--accent);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

.staff-bio {
    line-height: 1.8;
    color: var(--text);
}

.staff-bio p {
    margin-bottom: 15px;
}

.team-member {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member:hover .view-profile {
    opacity: 1;
}

.view-profile {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(160, 21, 0, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    margin: 0 auto;
    width: 200px;
    height: 200px;
    font-weight: 600;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .staff-header {
        flex-direction: column;
        text-align: center;
    }
    
    .staff-image {
        flex: 0 0 auto;
        margin: 0 auto 20px;
        max-width: 200px;
    }
    
    .staff-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .staff-details {
        padding: 20px;
    }
    
    .view-profile {
        font-size: 14px;
        width: 150px;
        height: 150px;
    }
}

/* Add these to reduce layout shifts */
.hero {
    min-height: 100vh;
    position: relative;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #000; /* Fallback color */
}

/* Optimize image loading */
img {
    content-visibility: auto;
}

/* Prevent layout shifts */
.hero-content, .storyline-content, .program-image, .artifact-image {
    contain: layout paint;
}


/* Mobile-first responsive images */
@media (max-width: 768px) {
    .program-image img,
    .storyline-image img,
    .artifact-image img {
        max-width: 100%;
        height: auto;
    }
    
    /* Reduce animations on mobile */
    
    @media (prefers-reduced-motion: no-preference) {
        * {
            animation-duration: 0.3s !important;
        }
    }
}


/* Add to your existing styles.css for the resources page*/
.badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.annual-report {
    background: #d4af37;
    color: #000;
}

.badge.research {
    background: #1a3a1f;
    color: white;
}

.badge.policy-brief {
    background: #3498db;
    color: white;
}

.badge.manual {
    background: #9b59b6;
    color: white;
}

.badge.other {
    background: #95a5a6;
    color: white;
}


/* Contact page css styling */

.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

