:root {
    --blue: #0038a8;
    --red: #ce1126;
    --white: #ffffff;
    --off-white: #f4f7fc;
    --dark-gray: #333333;
    --light-gray: #6c757d;
    --primary-font: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--primary-font);
    color: var(--dark-gray);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    overflow: hidden;
}

section:nth-of-type(even) {
    background-color: var(--off-white);
}

.section-title {
    font-size: 2.8rem;
    color: var(--blue);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 800;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--blue));
    border-radius: 2px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
     padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--blue);
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-shape {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-shape svg {
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.logo:hover .logo-shape svg {
    transform: rotate(360deg);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--blue);
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

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

.main-nav a:hover {
    color: var(--red);
}

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

.mobile-nav-toggle { display: none; }

/* Hero Section */
#hero {
    background: linear-gradient(135deg, rgba(0, 56, 168, 0.9), rgba(206, 17, 38, 0.9)), radial-gradient(circle, var(--blue), var(--red));
    background-size: 200% 200%;
    animation: gradient-bg 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 100px 20px 0;
}

@keyframes gradient-bg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    max-width: 900px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s 0.5s forwards;
}

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

.hero-headline {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-headline .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(-50px);
    animation: revealChar 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

.hero-subheadline {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-buttons a {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 700;
    margin: 10px;
    background: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(0);
}

.cta-buttons a.primary {
    background: var(--red);
    color: var(--white);
}

.cta-buttons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.cta-buttons a:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Content Sections Generic Fade-in */
.animated-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animated-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
#about p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 20px auto;
    text-align: center;
}

/* Vision Mission */
.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.vm-card {
    padding: 40px;
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 56, 168, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.vm-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 56, 168, 0.15);
}

.vm-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.vm-card h3 svg {
    margin-right: 15px;
    width: 40px;
    height: 40px;
}

.vm-card.vision h3 { color: var(--blue); }
.vm-card.vision h3 svg { fill: var(--blue); }

.vm-card.mission h3 { color: var(--red); }
.vm-card.mission h3 svg { fill: var(--red); }

.vm-card p {
    font-size: 1.1rem;
    text-align: justify;
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.program-card-header {
    background: linear-gradient(45deg, var(--blue), #3b5998);
    color: var(--white);
    padding: 30px 20px;
    font-size: 1.5rem;
    font-weight: 700;
}
.program-card-header.red {
    background: linear-gradient(45deg, var(--red), #e63946);
}

.program-card-content {
    padding: 30px;
    flex-grow: 1;
    font-size: 1rem;
}

/* News & Events */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    transform: perspective(1000px);
}

.news-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(-1deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

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

.news-card-date {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.news-card h3 {
    color: var(--blue);
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.news-card p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-card a {
    display: inline-block;
    text-decoration: none;
    color: var(--red);
    font-weight: 700;
    transition: all 0.3s ease;
}

.news-card a:hover {
    color: var(--blue);
    transform: translateX(5px);
}

.events-list {
    max-width: 800px;
    margin: 0 auto;
}

.event-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

.event-item:hover {
    background-color: #e9f0ff;
}

.event-item:last-child {
    border-bottom: none;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: var(--white);
    padding: 10px;
    border-radius: 8px;
    min-width: 70px;
    height: 70px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 56, 168, 0.2);
}

.event-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.event-details h3 {
    color: var(--blue);
    font-size: 1.25rem;
    margin-bottom: 5px;
}

/* Initiatives Section */
.initiatives-container {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.initiatives-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Statistics */
#stats {
    background: linear-gradient(135deg, var(--blue), var(--red));
    color: var(--white);
}

#stats .section-title, #stats .section-title::after {
    color: var(--white);
    border-color: var(--white);
}

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

.stat-item {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.stat-item:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.stat-icon svg {
    width: 50px;
    height: 50px;
    fill: var(--white);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-icon svg {
    transform: scale(1.2) rotate(10deg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: #ccc;
    padding: 50px 0;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--red);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-social-media { margin-top: 20px; display: flex; gap: 15px; }

.footer-social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #555;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social-media svg { width: 20px; height: 20px; fill: #ccc; transition: fill 0.3s ease;}

.footer-social-media a:hover {
    background-color: var(--red);
    border-color: var(--red);
}
.footer-social-media a:hover svg {
    fill: var(--white);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }

/* News Article Page Styles */
.article-page {
     padding: 120px 0 60px;
}
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.article-container h1 {
    color: var(--blue);
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.article-date {
    color: var(--light-gray);
    font-size: 1rem;
    margin-bottom: 30px;
}
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}
.back-link {
    display: inline-block;
    margin-top: 40px;
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
}
.back-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .vision-mission-grid { grid-template-columns: 1fr; }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
    
    .hero-headline { font-size: 2.8rem; line-height: 1.2; }
    
    .main-nav { display: none; }
    
    .mobile-nav-toggle {
        display: block;
        cursor: pointer;
        border: none;
        background: none;
        z-index: 1001;
    }
    
    .mobile-nav-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--blue);
        transition: all 0.3s ease-in-out;
    }
    
    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        animation: slideDown 0.3s ease;
    }
    @keyframes slideDown {
        from { transform: translateY(-20px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    
    .main-nav.active ul {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    .main-nav.active ul li { width: 100%; text-align: center; }
    .main-nav.active ul a { padding: 10px 0; display: block; }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .stat-item {
        padding: 20px 10px;
    }
    .stat-number {
        font-size: 2.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h4 {
        padding-bottom: 5px;
        border: none;
        border-bottom: 2px solid var(--red);
    }
    .footer-col a { padding: 5px 0; }
    .footer-social-media { justify-content: center; }
    .article-container h1 { font-size: 2rem; }
}