/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  --primary-color: #004080; /* Deep Ocean Blue */
  --secondary-color: #f0a800; /* Golden Yellow */
  --accent-color: #d9534f; /* Soft Red */
  --white: #ffffff;
  --dark-blue: #002d5a; /* Darker shade for header/footer */
  --light-gray: #f7f9fa;
  --dark-gray: #333333;
  --box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.5s;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--dark-gray);
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease-in-out;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    border: 2px solid #ddd; /* Light grey border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

img:hover {
    transform: scale(1.02); /* Slight zoom on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

main {
    overflow-x: hidden;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.main-header {
    background-color: var(--dark-blue);
    padding: 1rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease-in-out, box-shadow var(--transition-speed) ease-in-out;
}

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

.logo {
    display: flex;
    align-items: center;
    transition: transform var(--transition-speed) ease-in-out;
}

.logo:hover {
    transform: scale(1.08);
}

.logo img {
    height: 55px;
    margin-right: 1rem;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.tagline {
    font-size: 1rem;
    color: var(--light-gray);
    opacity: 0.9;
}

.nav-links a {
    margin: 0 1.2rem;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--white);
    position: relative;
    transition: color var(--transition-speed) ease-in-out, transform var(--transition-speed) ease-in-out;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--secondary-color);
    transition: width 0.5s ease-in-out;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.hamburger {
    display: none;
    cursor: pointer;
    transition: transform 0.4s ease-in-out;
}

.hamburger.active {
    transform: rotate(90deg);
}

.hamburger div {
    width: 30px;
    height: 4px;
    background-color: var(--white);
    margin: 6px 0;
    transition: all 0.5s ease-in-out;
}

.hamburger.active div:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 7px);
}
.hamburger.active div:nth-child(2) {
    opacity: 0;
}
.hamburger.active div:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -7px);
}

/*--------------------------------------------------------------
# Hero Banner
--------------------------------------------------------------*/
.hero-banner {
    color: var(--white);
    text-align: center;
    padding: 140px 25px;
    background-size: cover;
    background-position: center;
    position: relative;
    animation: fadeIn 1.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 45, 90, 0.85), rgba(0, 45, 90, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: slideInUp 1.2s ease-in-out;
}

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

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.btn {
    padding: 1.2rem 3rem;
    border-radius: 35px;
    font-weight: bold;
    transition: all var(--transition-speed) ease-in-out;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--dark-blue);
    border: 3px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-4px);
    box-shadow: 0 9px 25px rgba(0,0,0,0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 3px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-blue);
    transform: translateY(-4px);
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/
.section {
    padding: 90px 25px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 18px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background-color: var(--secondary-color);
}

/*--------------------------------------------------------------
# Homepage Specific Styles
--------------------------------------------------------------*/
.mission-section {
    display: flex;
    align-items: center;
    gap: 60px;
}

.mission-section .text {
    flex: 1;
}

.mission-section .image {
    flex: 1;
    text-align: center;
}

.mission-section .image img {
    border-radius: 18px;
    box-shadow: var(--box-shadow);
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.mission-section .image img:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 35px;
    text-align: center;
}

.stat-item {
    background-color: var(--light-gray);
    padding: 35px;
    border-radius: 18px;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease-in-out, box-shadow var(--transition-speed) ease-in-out;
}

.stat-item:hover {
    transform: translateY(-18px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.stat-item i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 18px;
    transition: transform 0.4s ease-in-out;
}

.stat-item:hover i {
    transform: scale(1.15);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin: 0;
}

.stat-item p {
    font-size: 1.2rem;
    color: var(--dark-gray);
}

.news-grid, .events-grid, .programs-grid, .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 45px;
}

.news-card, .event-card, .program-card, .testimonial-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease-in-out, box-shadow var(--transition-speed) ease-in-out;
}

.news-card:hover, .event-card:hover, .program-card:hover, .testimonial-card:hover {
    transform: translateY(-18px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.news-card img, .event-card img, .program-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.news-card:hover img, .event-card:hover img, .program-card:hover img {
    transform: scale(1.08);
}

.news-details, .event-details, .program-details, .testimonial-content {
    padding: 30px;
}

.news-date, .event-date {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: block;
}

.news-card h3, .event-card h3, .program-card h3 {
    margin-top: 0;
    color: var(--dark-gray);
}

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

.testimonial-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: -50px auto 18px;
    display: block;
    border: 6px solid var(--white);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s ease-in-out;
}

.testimonial-card:hover img {
    transform: scale(1.12) rotate(6deg);
}

.testimonial-content blockquote {
    margin: 0;
    font-style: italic;
    color: var(--dark-gray);
    font-size: 1.2rem;
}

.testimonial-content footer {
    margin-top: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.main-footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 70px 25px 25px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 45px;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-about p {
    color: var(--light-gray);
    opacity: 0.85;
}

.footer-about h4,
.footer-links h4,
.footer-social h4 {
    color: var(--white);
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-about h4::after,
.footer-links h4::after,
.footer-social h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55px;
    height: 4px;
    background-color: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: var(--white);
    margin-bottom: 1rem;
    display: block;
    transition: color var(--transition-speed) ease-in-out, padding-left var(--transition-speed) ease-in-out;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 10px;
}

.social-icons a {
    color: var(--white);
    margin-right: 1.5rem;
    font-size: 2rem;
    transition: color 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-6px) scale(1.15);
}

.footer-bottom {
    text-align: center;
    margin-top: 3.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid #5a7a9a; /* Lighter border */
    color: var(--light-gray);
    opacity: 0.75;
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 992px) {
    .nav-links a {
        margin: 0 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--dark-blue);
        box-shadow: 0 12px 12px rgba(0,0,0,0.25);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1.5rem 0;
        border-bottom: 1px solid #5a7a9a;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .mission-section {
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about h4::after,
    .footer-links h4::after,
    .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
