@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Jost:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #E4A11B; /* Official Brand Gold */
    --primary-dark: #C68B15;
    --secondary-color: #004B87; /* Official Brand Navy */
    --accent-color: #FFC300;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --black: #000000;
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.3s ease;
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --container-width: 1240px;
    --border-radius: 20px;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Marcellus', serif;
    color: var(--secondary-color);
    font-weight: 400;
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
    border: none;
    font-size: 1rem;
    gap: 10px;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.section-padding {
    padding: 120px 0;
}

.section-title h2 {
    font-size: 3rem;
    margin: 15px 0 25px;
}

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

/* Header & Navigation */
.top-header {
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0 40px;
    font-size: 0.9rem;
    color: var(--text-light);
    height: 50px;
    display: flex;
    align-items: center;
}

.top-header .navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.top-info-left {
    display: flex;
    gap: 30px;
    align-items: center;
}

.top-info-right {
    display: flex;
    align-items: center;
}

.checklist-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 500;
}

.checklist-item i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.1rem;
}

.top-phone {
    margin-right: 40px;
    font-weight: 500;
    color: var(--secondary-color);
}

.top-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.top-social-wrap {
    position: relative;
    background: var(--primary-color);
    padding: 0 40px 0 60px;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #000;
    clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%);
    margin-right: -40px;
}

.top-social-wrap a {
    color: #000;
    font-size: 1rem;
    transition: 0.3s;
}

.top-social-wrap a:hover {
    transform: translateY(-2px);
}

header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    transition: var(--transition-fast);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
}

header.sticky {
    padding: 12px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.logo img {
    height: 55px;
    width: auto;
    display: block;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-donate {
    background: var(--secondary-color);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    font-size: 0.95rem;
}

.btn-donate:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

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

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

header.sticky .nav-links a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow-md);
    z-index: 1001;
    border-radius: 10px;
    overflow: hidden;
    top: 100%;
    left: 0;
    margin-top: 10px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

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

/* Hero Section Refined */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--secondary-color);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content-wrap {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    color: var(--white);
    max-width: 800px;
    display: none;
}

.hero-content.active {
    display: block;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content span {
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: block;
}

.hero-content h2 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.1;
}

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

/* Hero Navigation Dots */
.hero-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.3s;
}

.hero-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
    border-color: white;
}

/* Overlapping Image Layouts */
.overlap-container {
    position: relative;
    padding-bottom: 50px;
}

.overlap-img-main {
    width: 85%;
    border-radius: var(--border-radius);
}

.overlap-img-sub {
    position: absolute;
    bottom: -30px;
    right: 0;
    width: 45%;
    border: 10px solid var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* Donation Frequency Toggles */
.donation-toggles {
    display: flex;
    gap: 10px;
    background: #f0f0f0;
    padding: 5px;
    border-radius: 50px;
    margin-bottom: 25px;
    width: fit-content;
}

.freq-btn {
    padding: 10px 25px;
    border-radius: 50px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.freq-btn.active {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    color: var(--primary-color);
}

/* Footer Dark */
footer {
    position: relative;
    background: linear-gradient(rgba(11, 14, 19, 0.93), rgba(11, 14, 19, 0.93)), url('../images/stude.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #A4A9B3;
    padding: 100px 0 20px;
}

footer h4 {
    color: var(--white);
    margin-bottom: 30px;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-inset-img {
        display: none;
    }
    .hero-content h2 {
        font-size: 3.5rem;
    }
}

/* Why Choose Us Section */
.why-section {
    background: #fdfbf7; /* Elegant off-white */
    padding-top: 40px;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-image-wrapper {
    position: relative;
    width: 100%;
}

.circle-img-large {
    width: 480px;
    height: 480px;
    border-radius: 50%;
    object-fit: cover;
    border: 10px solid #f8f9fa;
}

.circle-img-small {
    position: absolute;
    bottom: -20px;
    right: 40px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 10px solid #FFFFFF;
    box-shadow: var(--shadow-md);
}

.why-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.checklist-item .check {
    color: var(--primary-color);
    font-weight: 900;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-top: 40px;
    border-top: 1px solid #eeeeee;
    margin-top: 40px;
}

.stat-item {
    text-align: left;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 10%;
    width: 1px;
    height: 80%;
    background: #eeeeee;
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-family: 'Marcellus', serif;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Programs Over BG Section */
.program-bg-section {
    position: relative;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/WhatsApp%20Image%202026-04-18%20at%2012.19.36%20PM%20(4).jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0 180px;
    color: white;
}

.program-bg-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom, transparent, #FFFFFF);
}

.program-grid-floating {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.program-card-float {
    background: #FFFFFF;
    border-radius: 40px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: 0.4s;
}

.program-card-float:hover {
    transform: translateY(-15px);
}

.program-card-float img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 25px;
    margin-bottom: 25px;
}

.program-card-float h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: 0.3s;
}

.footer-social-link:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.program-card-float p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.read-more-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.read-more-link::after {
    content: '→';
    display: inline-block;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    line-height: 30px;
    font-size: 1.2rem;
    transition: 0.3s;
}

.read-more-link:hover::after {
    transform: translateX(5px);
}

/* Bottom Ticker */
.ticker-wrap {
    background: #FFFFFF;
    padding: 40px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #eee;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    font-family: 'Marcellus', serif;
    font-size: 4rem;
    text-transform: uppercase;
    color: var(--primary-color);
    opacity: 1; /* Make it fully visible */
}

.ticker span {
    margin-right: 50px;
}

.ticker span::after {
    content: ' ✽ ';
    margin-left: 50px;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 1024px) {
    .program-grid-floating {
        grid-template-columns: 1fr 1fr;
    }
}

/* Modern Impact Gallery */
.gallery-grid {
    columns: 4;
    column-gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    margin-bottom: 20px;
    break-inside: avoid;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(228, 161, 27, 0.85); /* Official Brand Gold with Transparency */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s ease;
}

.gallery-plus {
    width: 60px;
    height: 60px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-family: inherit;
    font-weight: 300;
    transform: translateY(20px);
    transition: 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-plus {
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .gallery-grid {
        columns: 3;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        columns: 2;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        columns: 1;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1000;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-10px);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--secondary-color);
    cursor: pointer;
    z-index: 1002;
}

header.sticky .mobile-menu-btn {
    color: var(--secondary-color);
}

/* Base Grid Layouts */
.footer-grid {
    display: grid; 
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr; 
    gap: 50px; 
    padding-bottom: 80px; 
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.program-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}
.program-block:nth-child(even) {
    direction: rtl;
}
.program-block:nth-child(even) .program-text {
    direction: ltr;
}
.program-image img {
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    width: 100%;
}

.split-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.split-layout-grid.align-start {
    align-items: start;
    grid-template-columns: 1.2fr 0.8fr;
}

/* Mobile Responsiveness Media Queries */
@media (max-width: 991px) {
    /* Mobile Menu */
    .mobile-menu-btn {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 50px;
        gap: 20px;
        transition: 0.4s ease-in-out;
        z-index: 1001;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links a {
        color: white;
        font-size: 1.2rem;
    }
    .nav-links a::after {
        background-color: white; /* Underline color */
    }
    .header-cta {
        display: none; /* Hide donate button in header on mobile to save space */
    }
    .dropdown-content {
        position: static;
        display: none;
        background: rgba(255,255,255,0.1);
        min-width: 100%;
        box-shadow: none;
        margin-top: 10px;
    }
    .dropdown.active .dropdown-content {
        display: block;
    }
    .dropdown-content a {
        color: white;
        padding: 10px 15px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.2);
        color: white;
    }
    
    /* Layout Overrides */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .program-block {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }
    .program-block:nth-child(even) {
        direction: ltr; /* Reset RTL on mobile */
    }
    .split-layout-grid,
    .split-layout-grid.align-start {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Typography Overrides */
    .hero h1 {
        font-size: 3rem;
    }
    .inner-hero h1 {
        font-size: 2.5rem;
    }
    .inner-hero {
        height: 350px;
    }
    .section-title h2 {
        font-size: 2.5rem;
    }
    .top-header {
        display: none; /* Hide top bar on mobile */
    }
    
    /* Additional Resets */
    .features-grid,
    .stats-row,
    .why-grid,
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    .circle-img-large {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }
    .circle-img-small {
        width: 150px;
        height: 150px;
        right: 10%;
    }
    .about-image {
        padding-left: 0;
        margin-top: 30px;
    }
    .about-image img {
        height: auto;
    }
}
