/* ZITA Exact Logo Colors Theme */
:root {
    --zita-navy: #1D3A60;  /* Exact Navy from Laurel/Shield border */
    --zita-green: #00B050; /* Exact Green from Shield Quadrant */
    --zita-teal: #00A3A1;  /* Exact Teal from Book Icon */
    
    --text-main: #1D3A60;  /* Using Navy for primary text for a sharp look */
    --text-light: #526b8d;
    --bg-white: #ffffff;
    --bg-gray: #f4f7f6;
    --gradient-brand: linear-gradient(135deg, var(--zita-green), var(--zita-teal));
    --shadow-soft: 0 20px 40px rgba(29, 58, 96, 0.08); /* Navy tinted shadow */
    --shadow-hover: 0 25px 50px rgba(0, 176, 80, 0.2); /* Green tinted shadow */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* FIXED: Added html and ensured overflow is hidden globally */
html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.7;
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Image Handling */
.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
}
.object-fit {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Glassmorphism Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--zita-green); /* Subtle green border */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.brand-logo { 
    height: 70px; /* Made larger to show off the logo detail */
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}
.nav-links a {
    text-decoration: none;
    color: var(--zita-navy);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--zita-green); }

/* Custom Premium Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    width: 32px;
    height: 22px;
    position: relative;
    z-index: 1001;
}
.hamburger .bar {
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--zita-navy);
    border-radius: 3px;
    transition: var(--transition);
}
.hamburger .bar:nth-child(1) { top: 0; }
.hamburger .bar:nth-child(2) { top: 9px; }
.hamburger .bar:nth-child(3) { top: 18px; }

.hamburger.active .bar:nth-child(1) { top: 9px; transform: rotate(45deg); background: var(--zita-green); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { top: 9px; transform: rotate(-45deg); background: var(--zita-green); }

/* Buttons */
.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}
.primary-btn {
    background: var(--zita-green);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 176, 80, 0.3);
}
.primary-btn:hover {
    background: var(--zita-navy);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(29, 58, 96, 0.3);
    color: white;
}
.play-btn {
    background: transparent;
    color: var(--zita-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}
.play-btn:hover { color: var(--zita-green); }

/* Hero Section */
.hero {
    padding: 180px 0 100px 0;
    background-color: var(--bg-gray);
    position: relative;
    overflow: hidden;
}

/* FIXED: Added max-width to prevent overflow on very small screens */
.hero-bg-shape {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    max-width: 60%; 
    height: 500px;
    background: var(--gradient-brand);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    z-index: 0;
}
.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 176, 80, 0.1);
    color: var(--zita-green);
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 25px;
}
.brand-text-color {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--zita-navy);
}
.hero-text p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 20px; }
.glass-img {
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 8px solid white;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: var(--zita-navy);
    color: white;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 30px;
}
.stat-box i {
    font-size: 2.5rem;
    color: var(--zita-green);
    margin-bottom: 15px;
}
.stat-box h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
}
.stat-box p { color: rgba(255,255,255,0.7); }

/* Programs Section */
.programs-section { padding: 120px 0; }
.section-header {
    text-align: center;
    margin-bottom: 70px;
}
.section-header h2 {
    font-size: 2.8rem;
    color: var(--zita-navy);
}
.header-line {
    width: 80px;
    height: 4px;
    background: var(--zita-green);
    margin: 15px auto 0;
    border-radius: 2px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}
.course-card {
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}
.course-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}
.card-img-container {
    height: 240px;
    position: relative;
    overflow: hidden;
}
.card-img-container img {
    transition: transform 0.6s ease;
}
.course-card:hover .card-img-container img {
    transform: scale(1.1);
}
.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--zita-navy);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.card-content { padding: 35px; }
.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--zita-navy);
}
.card-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}
.card-link {
    color: var(--zita-teal);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
}
.card-link:hover { color: var(--zita-green); padding-left: 10px; }

/* Testimonials */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-gray);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}
.review-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}
.quote-icon {
    font-size: 2rem;
    color: rgba(0, 176, 80, 0.2); /* Faded Green */
    margin-bottom: 20px;
}
.review-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 30px;
}
.student-info h4 { color: var(--zita-navy); }
.student-info span { color: var(--zita-teal); font-size: 0.9rem; font-weight: 600;}

/* Enhanced Footer */
footer {
    background: var(--zita-navy);
    color: white;
    padding: 80px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}
/* Kept logo bright for dark footer background */
.footer-logo { 
    height: 90px; 
    margin-bottom: 20px; 
    background: white;
    padding: 10px;
    border-radius: 10px;
}
.footer-about p, .footer-newsletter p { color: rgba(255,255,255,0.7); margin-top: 15px; }
.footer-links h3, .footer-newsletter h3 { margin-bottom: 20px; font-size: 1.3rem; color: white;}
.footer-links a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--zita-green); padding-left: 8px; }

.newsletter-form {
    display: flex;
    margin-top: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 5px;
}
.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: white;
    outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form button {
    background: var(--zita-green);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}
.newsletter-form button:hover { transform: scale(1.1); background: var(--zita-teal); }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .brand-text-color { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .newsletter-form { max-width: 400px; margin: 20px auto 0; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    
    /* FIXED: Mobile Menu Styling using Transform */
    .nav-menu {
        position: fixed; 
        top: 0; 
        right: 0; 
        width: 100%; 
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column; 
        justify-content: center;
        transition: var(--transition);
        
        /* New hiding method: Move it off-screen without changing page width */
        transform: translateX(100%); 
    }
    
    .nav-menu.active { 
        /* Bring it back */
        transform: translateX(0); 
    }
    
    .nav-links { flex-direction: column; text-align: center; }
    .nav-links a { font-size: 1.5rem; color: var(--zita-navy); }
    .stats-grid { grid-template-columns: 1fr; }
}

/* =========================================
   SPECIAL APPLICATION FORM STYLES
   ========================================= */

.bg-light-gray {
    background-color: var(--bg-gray);
}

.application-section {
    padding: 160px 0 100px 0; /* Extra top padding for the fixed header */
}

.form-container {
    max-width: 900px; /* Keep the form focused and easy to read */
}

.form-header {
    text-align: center;
    margin-bottom: 50px;
}

.form-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 10px auto 0;
    font-size: 1.1rem;
}

.form-card {
    background: var(--bg-white);
    padding: 50px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.03);
}

.form-section-title {
    font-size: 1.2rem;
    color: var(--zita-navy);
    margin: 35px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title i {
    color: var(--zita-green);
}

.zita-form .input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group.full-width {
    grid-column: 1 / -1;
    margin-top: 15px;
}

.input-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--zita-navy);
}

/* Beautiful Input Fields with Icons */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 18px;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: var(--transition);
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 15px 15px 15px 45px; /* Space for the icon */
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-main);
    background: var(--bg-white);
    transition: var(--transition);
    outline: none;
}

.input-wrapper textarea {
    resize: vertical;
    padding-top: 15px;
}

.textarea-wrapper i {
    top: 18px; /* Align icon to top for textarea */
}

/* Form Focus State - Glows ZITA Green */
.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: var(--zita-green);
    box-shadow: 0 0 0 4px rgba(0, 176, 80, 0.1);
}

.input-wrapper input:focus + i,
.input-wrapper select:focus + i,
.input-wrapper textarea:focus + i,
.input-wrapper:focus-within i {
    color: var(--zita-green);
}

/* Custom Checkbox */
.form-footer {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
}

.checkbox-container a {
    color: var(--zita-teal);
    text-decoration: none;
    font-weight: 600;
}

.submit-btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Responsive adjustments for Form */
@media (max-width: 768px) {
    .zita-form .input-grid {
        grid-template-columns: 1fr;
    }
    
    .form-card {
        padding: 30px 20px;
    }
}
/* =========================================
   COURSE CATALOG & 30-GRID STYLES
   ========================================= */

.page-header {
    padding: 160px 0 60px 0;
    background: var(--bg-white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.page-header p {
    color: var(--text-light);
    max-width: 700px;
    margin: 15px auto 0;
    font-size: 1.1rem;
}

.catalog-section {
    padding: 60px 0 100px 0;
}

/* Category Filter Buttons */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--bg-white);
    border: 2px solid #e2e8f0;
    color: var(--text-light);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--zita-teal);
    color: var(--zita-teal);
}

.filter-btn.active {
    background: var(--zita-navy);
    border-color: var(--zita-navy);
    color: var(--bg-white);
    box-shadow: 0 5px 15px rgba(29, 58, 96, 0.2);
}

/* Compact Grid for 30 Courses */
.full-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.mini-course-card {
    background: var(--bg-white);
    padding: 30px 25px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mini-course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--zita-green);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.mini-course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.mini-course-card:hover::before {
    transform: scaleY(1);
}

.course-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 163, 161, 0.1); /* Teal tint */
    color: var(--zita-teal);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.mini-course-card:hover .course-icon {
    background: var(--zita-green);
    color: var(--bg-white);
}

.mini-course-card h3 {
    font-size: 1.15rem;
    color: var(--zita-navy);
    margin-bottom: 10px;
    line-height: 1.3;
}

.mini-course-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Make sure active link in header highlights */
.active-link {
    color: var(--zita-green) !important;
}
/* Search Bar Styles */
.search-container {
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 20px;
    color: var(--zita-teal);
    font-size: 1.2rem;
    transition: var(--transition);
}

.search-box input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1.05rem;
    color: var(--text-main);
    background: var(--bg-white);
    outline: none;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.search-box input:focus {
    border-color: var(--zita-green);
    box-shadow: 0 0 0 4px rgba(0, 176, 80, 0.1);
}

.search-box input:focus + i {
    color: var(--zita-green);
}