:root {
    --red-accent: #e50914;
    --red-hover: #b20710;
    --navy-blue: #0b192c;
    --navy-hover: #142a48;
    --text-dark: #111111;
    --bg-light: #ffffff;
    --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
}

body {
    background: 
        linear-gradient(to bottom, 
            rgba(215, 228, 240, 0.85) 0%, 
            skyblue 220px, 
            #ffffff calc(100% - 220px), 
            #ffffff 100%),
        radial-gradient(circle at 50% 0%, skyblue 0%, #ffffff 70%),
        radial-gradient(circle at 50% 100%, skyblue 0%, #ffffff 70%);
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    padding-top: 70px;
}


/* ==========================================
   Navigation Bar
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    background-color: var(--navy-blue);
    color: #ffffff;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-brand h1 {
    font-size: 1.6rem;
    letter-spacing: 0.5px;
    font-family: 'Times New Roman', serif;
    color: #ffffff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 1.5rem 1rem;
    display: block;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--red-accent);
}

/* Dropdown Base */
.dropdown-menu {
    display: none;
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    text-decoration: none;
    font-family: sans-serif;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}

/* Desktop Navigation (>= 769px) */
@media (min-width: 769px) {
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--navy-blue);
        min-width: 180px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        border-radius: 0 0 6px 6px;
        overflow: hidden;
        border-top: 2px solid var(--red-accent);
        z-index: 1000;
    }

    .dropdown-menu li a {
        color: #ffffff;
        padding: 0.8rem 1.2rem;
    }

    .dropdown-menu li a:hover {
        background-color: var(--navy-hover);
        color: var(--red-accent);
    }

    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Mobile Navigation (<= 768px) */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--navy-blue);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        padding: 1rem 1.5rem;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        background-color: var(--navy-hover);
        box-shadow: none;
        padding-left: 1rem;
    }

    .dropdown-menu li a {
        color: #d1d5db;
        padding: 0.7rem 1.5rem;
    }

    .dropdown-menu li a:hover {
        color: var(--red-accent);
    }

    .nav-item.dropdown.open .dropdown-menu {
        display: block;
    }
}

/* ==========================================
   Sidebar Social Controls
   ========================================== */
.social-sidebar {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 999;
    box-shadow: var(--box-shadow);
    border-radius: 0 8px 8px 0;
    overflow: hidden;
}

.social-sidebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background-color: var(--navy-blue);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-sidebar a:nth-child(even) {
    background-color: var(--red-accent);
}

.social-sidebar a:hover {
    width: 54px;
    opacity: 0.9;
}

/* ==========================================
   Hero & Banners
   ========================================== */
.hero {
    position: relative;
    text-align: center;
    padding: 3.5rem 1.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.4);
}

.hero h2 {
    font-size: 3rem;
    color: var(--text-dark);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.15);
    margin-bottom: 0.2rem;
    font-weight: 900;
}

.hero p.subtitle {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1.8rem;
    font-style: italic;
}

.starburst-badge {
    position: absolute;
    top: 20px;
    right: 5%;
    width: 95px;
    height: 95px;
    background: var(--red-accent);
    clip-path: polygon(
        50% 0%, 61% 11%, 75% 4%, 81% 18%, 96% 18%, 95% 33%, 100% 46%, 
        93% 59%, 98% 72%, 85% 80%, 82% 95%, 68% 92%, 58% 100%, 
        46% 93%, 33% 98%, 26% 85%, 11% 83%, 14% 68%, 2% 57%, 
        8% 43%, 1% 29%, 14% 22%, 14% 7%, 29% 10%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 0.65rem;
    line-height: 1.1;
    font-family: sans-serif;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.red-banner {
    background-color: var(--red-accent);
    color: #ffffff;
    padding: 1.2rem 1rem;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.red-banner h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

/* ==========================================
   Page Layout & Sections
   ========================================== */
.mission-vision-container,
.section-container {
    max-width: 1400px;
    margin: 2.5rem auto;
    padding: 0 2rem;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mv-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
}

.mv-card h3 {
    color: var(--navy-blue);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mv-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.page-container {
    display: grid;
    grid-template-columns: 2.5fr 320px;
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.main-content-wrapper {
    display: flex;
    flex-direction: column;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
}

/* Cards */
.card {
    background: #ffffff;
    padding: 1.8rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
}

.badge-type {
    align-self: flex-start;
    background-color: var(--navy-blue);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-family: sans-serif;
    margin-bottom: 0.8rem;
}

.card:nth-child(even) .badge-type {
    background-color: var(--red-accent);
}

.card h3 {
    color: var(--text-dark);
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
}

.card small {
    color: #666;
    font-family: sans-serif;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    display: block;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* ==========================================
   Buttons & Controls
   ========================================== */
.btn-red {
    display: inline-block;
    background-color: var(--red-accent);
    color: #ffffff;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    font-family: sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(229, 9, 20, 0.3);
    transition: all 0.2s ease;
    border: none;
}

.btn-red:hover {
    background-color: var(--red-hover);
    transform: translateY(-2px);
}

.btn-outline-red {
    display: inline-block;
    background-color: rgba(229, 9, 20, 0.08);
    color: var(--red-accent);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    font-family: sans-serif;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-outline-red:hover {
    background-color: var(--red-accent);
    color: #ffffff;
}

.btn-outline-navy {
    display: inline-block;
    background-color: rgba(11, 25, 44, 0.08);
    color: var(--navy-blue);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    font-family: sans-serif;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-outline-navy:hover {
    background-color: var(--navy-blue);
    color: #ffffff;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--navy-blue);
    color: #ffffff;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 0.9rem;
    box-shadow: var(--box-shadow);
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background-color: var(--red-accent);
    transform: translateY(-2px);
}

.pagination-btn.disabled {
    background-color: #cccccc;
    color: #666666;
    box-shadow: none;
    pointer-events: none;
    cursor: not-allowed;
}

.pagination-info {
    font-family: sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--navy-blue);
}

/* ==========================================
   Sidebar & Widgets
   ========================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-card:hover {
    box-shadow: var(--box-shadow-hover);
}

.sidebar-card h3 {
    color: var(--navy-blue);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recent-item {
    padding: 0.6rem 0;
}

.recent-item:not(:last-child) {
    background: linear-gradient(to right, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.08) 100%) bottom / 100% 1px no-repeat;
}

.recent-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: color 0.2s;
}

.recent-item a:hover {
    color: var(--red-accent);
}

.recent-item small {
    display: block;
    color: #777;
    font-family: sans-serif;
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

/* ==========================================
   Directors & Testimonies
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
}

.section-header .divider {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    margin: 0 auto;
}

#directors .section-header .divider,
#donate .section-header .divider {
    background-color: var(--red-accent);
}

#testimonies .section-header .divider {
    background-color: var(--navy-blue);
}

.directors-grid,
.testimonies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.director-card,
.testimony-card {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.director-card {
    text-align: center;
}

.director-card:hover,
.testimony-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
}

.director-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 3px solid var(--navy-blue);
}

.director-card h4 {
    font-size: 1.2rem;
    color: var(--navy-blue);
    margin-bottom: 0.3rem;
}

.director-card .role {
    color: var(--red-accent);
    font-family: sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.director-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.testimony-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimony-card blockquote {
    font-style: italic;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.testimony-card .author {
    font-family: sans-serif;
    font-weight: bold;
    font-size: 0.85rem;
    color: var(--navy-blue);
    text-align: right;
}

/* ==========================================
   Donation Form
   ========================================== */
.donation-container {
    max-width: 600px;
    margin: 0 auto;
}

.donation-form-card {
    background: #ffffff;
    padding: 2.2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: box-shadow 0.3s ease;
}

.donation-form-card:hover {
    box-shadow: var(--box-shadow-hover);
}

.donation-form-card h3 {
    color: var(--navy-blue);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.donation-form-card p.form-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: sans-serif;
}

.form-group {
    margin-bottom: 1.2rem;
    font-family: sans-serif;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    color: #444;
    margin-bottom: 0.4rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: sans-serif;
}

.form-group input:focus {
    border-color: var(--navy-blue);
}

.alert-message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-family: sans-serif;
    font-size: 0.9rem;
}

.alert-message.success {
    background: #e6fffa;
    border-left: 4px solid #319795;
    color: #234e52;
}

.alert-message.error {
    background: #fff5f5;
    border-left: 4px solid #e53e3e;
    color: #742a2a;
}

/* ==========================================
   Footer
   ========================================== */
footer {
    background-color: var(--navy-blue);
    color: #ffffff;
    box-shadow: var(--box-shadow);
    margin-top: 4rem;
    padding: 3rem 1rem 1.5rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-col p, 
.footer-col ul {
    font-family: sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d1d5db;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--red-accent);
}

.footer-socials {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.footer-socials a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s;
}

.footer-socials a:hover {
    background: var(--red-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-family: sans-serif;
    font-size: 0.85rem;
    color: #9ca3af;
    background: rgba(0,0,0,0.15);
    margin: 0 -1rem -1.5rem;
    padding-bottom: 1.5rem;
}

/* Tablet Responsive Adjustment (<= 992px) */
@media (max-width: 992px) {
    .page-container {
        grid-template-columns: 1fr;
    }
    
    .starburst-badge {
        position: static;
        margin: 0 auto 1rem;
    }
    
    .social-sidebar {
        display: none;
    }
}