/* ============================================
   CSS Variables - Color Scheme Matching Logo
   ============================================ */
:root {
    --primary-blue: #3a7bb8;
    --primary-blue-dark: #2d6ba3;
    --primary-blue-light: #5a9bd4;
    --accent-blue: #7ab3e0;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --gray: #e8ecf1;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --shadow: rgba(58, 123, 184, 0.15);
    --shadow-hover: rgba(58, 123, 184, 0.25);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-blue);
}

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

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 10000;
    padding: 15px 20px;
    min-height: 80px;
    overflow: visible;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    overflow: visible;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    overflow: visible;
}

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

.logo {
    height: 150px;
    width: auto;
    margin: -110px 0 -110px -100px;
    padding: 0;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(58, 123, 184, 0.2));
    transition: transform 0.3s ease;
    display: block;
    visibility: visible;
    opacity: 1;
    position: relative;
    z-index: 1;
}

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

.logo-text h1 {
    font-size: 1.4rem;
    margin: 0;
    padding: 0;
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.2;
}

.tagline {
    font-size: 0.8rem;
    color: var(--primary-blue-light);
    font-style: italic;
    margin: 0;
    padding: 0;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

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

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

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

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-blue);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 5px 15px var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.active {
        max-height: 400px;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--gray);
    }

    .main-nav a:last-child {
        border-bottom: none;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

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

/* ============================================
   Mission Section
   ============================================ */
.mission {
    background: var(--light-gray);
    padding: 80px 0;
    text-align: center;
}

.mission-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.mission-content p {
    font-size: 1.15rem;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.about-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--light-gray);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.icon-box svg {
    width: 40px;
    height: 40px;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   Programs Section
   ============================================ */
.programs {
    padding: 100px 0;
    background: var(--light-gray);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.program-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.program-image {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-icon {
    font-size: 4rem;
}

.program-card h3 {
    font-size: 1.4rem;
    margin: 25px 25px 15px;
}

.program-card p {
    padding: 0 25px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.program-link {
    display: inline-block;
    padding: 0 25px 25px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.program-link:hover {
    color: var(--primary-blue-light);
}

/* ============================================
   News Section
   ============================================ */
.news {
    padding: 100px 0;
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.news-date {
    flex-shrink: 0;
    text-align: center;
    background: var(--primary-blue);
    color: var(--white);
    padding: 15px;
    border-radius: 10px;
    min-width: 80px;
}

.news-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 5px;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

.read-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-blue-light);
}

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

/* ============================================
   Events Section
   ============================================ */
.events {
    padding: 100px 0;
    background: var(--light-gray);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.event-item {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    gap: 30px;
    align-items: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.event-date {
    flex-shrink: 0;
    text-align: center;
    background: var(--primary-blue);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    min-width: 100px;
}

.event-day {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    margin-top: 5px;
}

.event-year {
    display: block;
    font-size: 0.85rem;
    margin-top: 5px;
    opacity: 0.9;
}

.event-details {
    flex: 1;
}

.event-details h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.event-location {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 10px;
}

.event-details p {
    color: var(--text-light);
    line-height: 1.7;
}

.event-register {
    flex-shrink: 0;
    padding: 12px 30px;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.event-register:hover {
    background: var(--primary-blue-light);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.contact-icon svg {
    width: 30px;
    height: 30px;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    background: var(--primary-blue-light);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.contact-form-container {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray);
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--primary-blue-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 400px;
    width: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.1));
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.footer-tagline {
    color: var(--accent-blue);
    font-style: italic;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 968px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .event-item {
        flex-direction: column;
        text-align: center;
    }

    .event-date {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .tagline {
        font-size: 0.75rem;
    }

    .logo {
        height: 80px;
        margin: 0;
        padding: 0;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .mission-content h2 {
        font-size: 2rem;
    }

    .about-grid,
    .programs-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .contact-form-container {
        padding: 25px;
    }

    .program-card,
    .news-card {
        padding: 20px;
    }
   
   .staff figure {
      text-align: center;
      color: white;
      margin: 0;
      padding:20px;
      flex: 0 1 auto;
      max-width: 300px;
   }

   .staff figure img {
      with: 250px;
      max-width: 250px;
      height: 250px;
      object-fit: cover;
      border-radius: 50%;
      box-shadow: white 0 0 10px;  
      display: block;
      margin: 0 auto;
   }
   .staff figure figcaption {
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
   }
}
