/* ═══════════════════════════════════════════════════════════════
   Mudzini School — Inner Pages
   Elegant, Unified Purple Theme Navigation
   ═══════════════════════════════════════════════════════════════ */

/* ── Top Info Bar ────────────────────────────────────────────── */
.top-info-bar {
    background: #2d1b3d;
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    padding: 10px 0;
}

.top-info-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info-left {
    display: flex;
    gap: 28px;
    align-items: center;
}

.top-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-info-item svg {
    opacity: 0.6;
}

.top-info-right {
    display: flex;
    gap: 6px;
    align-items: center;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: var(--secondary);
    color: #1a1a2e;
}

/* Navigation styles are now standardized in styles.css */


@media (max-width: 600px) {
    .top-info-container {
        padding: 0 20px;
    }
    
    .top-info-left {
        gap: 16px;
        font-size: 0.75rem;
    }
    
    .nav-wrapper {
        padding: 0 20px;
        height: 70px;
    }
    
    .nav-logo .logo-text {
        font-size: 1.2rem;
    }
    
    .nav-logo img {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .top-info-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .top-info-bar {
        padding: 10px 0;
    }
    
    .top-info-right {
        display: none;
    }
    
    .nav-logo .logo-text small {
        display: none;
    }
}

/* ── Modern Page Hero ─────────────────────────────────────────── */
.page-hero-modern {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #3d1a4d 100%);
    padding: 120px 24px 80px;
    margin-top: 0;
    overflow: hidden;
    text-align: center;
}

.page-hero-modern::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249,168,37,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero-modern::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(181,111,152,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.page-hero-modern h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.15;
    text-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.page-hero-modern p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    overflow: hidden;
}

.page-hero-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Breadcrumb ───────────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb span {
    color: var(--secondary);
}

.breadcrumb-sep {
    color: rgba(255,255,255,0.4);
}

/* ── Modern Stats Banner ──────────────────────────────────────── */
.stats-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.stats-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 2px, transparent 2px);
    background-size: 25px 25px;
}

.stats-banner .stats-row {
    position: relative;
    z-index: 1;
}

.stats-banner .stat-item {
    text-align: center;
}

.stats-banner .stat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.stats-banner .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}

.stats-banner .stat-label {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
}

/* ── Modern Content Sections ──────────────────────────────────── */
.section-modern {
    padding: 100px 0;
}

.section-modern.bg-light {
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.section-modern.bg-white {
    background: #fff;
}

.section-modern .section-header {
    margin-bottom: 60px;
}

.section-modern .section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

/* ── Modern Content Grid ──────────────────────────────────────── */
.content-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-grid-modern.reverse {
    direction: rtl;
}

.content-grid-modern.reverse > * {
    direction: ltr;
}

.content-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.2;
}

.content-text h2 .highlight {
    color: var(--primary);
}

.content-text p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 28px 0 16px;
}

/* ── Modern Image Frame ───────────────────────────────────────── */
.image-frame-modern {
    position: relative;
}

.image-frame-modern img {
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
    width: 100%;
    height: auto;
}

.image-frame-modern::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    right: 16px;
    bottom: 16px;
    border: 3px solid var(--primary);
    border-radius: 24px;
    z-index: -1;
}

.image-frame-modern.no-frame::before {
    display: none;
}

/* ── Feature List Modern ──────────────────────────────────────── */
.feature-list-modern {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.feature-list-modern li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.feature-list-modern li:last-child {
    border-bottom: none;
}

.feature-list-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.feature-list-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.feature-list-text span {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ── Info Cards Grid ──────────────────────────────────────────── */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    border-color: transparent;
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(121,49,154,0.1), rgba(249,168,37,0.1));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.info-card:hover .info-card-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.info-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ── Timeline Modern ──────────────────────────────────────────── */
.timeline-modern {
    position: relative;
    padding-left: 50px;
    max-width: 700px;
    margin: 0 auto;
}

.timeline-modern::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 3px;
}

.timeline-step {
    position: relative;
    margin-bottom: 40px;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.timeline-step:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.timeline-step::before {
    content: attr(data-step);
    position: absolute;
    left: -50px;
    top: 24px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(121,49,154,0.3);
}

.timeline-step h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.timeline-step p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ── Modern Table ─────────────────────────────────────────────── */
.table-modern {
    width: 100%;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.table-modern thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}

.table-modern th {
    padding: 18px 24px;
    font-weight: 600;
    text-align: left;
    font-size: 0.95rem;
}

.table-modern td {
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    background: #fff;
}

.table-modern tbody tr:hover td {
    background: rgba(121,49,154,0.03);
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

/* ── Contact Form Modern ──────────────────────────────────────── */
.contact-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info-modern {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 24px;
    padding: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-info-modern::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-info-modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-info-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info-item p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

.contact-form-modern {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.contact-form-modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-modern {
    margin-bottom: 20px;
}

.form-group-modern label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group-modern input,
.form-group-modern textarea,
.form-group-modern select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: var(--font);
    transition: all 0.3s ease;
    outline: none;
    background: #fafafa;
}

.form-group-modern input:focus,
.form-group-modern textarea:focus,
.form-group-modern select:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(121,49,154,0.1);
}

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

.btn-submit {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(121,49,154,0.3);
}

/* ── Map Modern ───────────────────────────────────────────────── */
.map-modern {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    margin-top: 60px;
}

.map-modern iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ── Facility Cards ───────────────────────────────────────────── */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.facility-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 320px;
    cursor: pointer;
}

.facility-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.facility-card:hover img {
    transform: scale(1.1);
}

.facility-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45,15,62,0.95) 0%, rgba(121,49,154,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    transition: all 0.3s ease;
}

.facility-card:hover .facility-overlay {
    background: linear-gradient(to top, rgba(45,15,62,0.98) 0%, rgba(121,49,154,0.5) 100%);
}

.facility-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.facility-card h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.facility-card p {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.facility-card:hover p {
    opacity: 1;
    transform: translateY(0);
}

/* ── CTA Banner ───────────────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-banner-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-banner h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 1.15rem;
    color: rgba(0,0,0,0.7);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .content-grid-modern {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .content-grid-modern.reverse {
        direction: ltr;
    }
    
    .image-frame-modern {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .facility-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero-modern {
        padding: 120px 20px 80px;
    }
    
    .page-hero-modern h1 {
        font-size: 2rem;
    }
    
    .section-modern {
        padding: 60px 0;
    }
    
    .content-text h2 {
        font-size: 1.8rem;
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .facility-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-modern {
        padding-left: 40px;
    }
    
    .timeline-step::before {
        left: -40px;
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-banner h2 {
        font-size: 1.8rem;
    }
    
    .stats-banner .stat-value {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .page-hero-badge {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn,
    .cta-buttons a {
        width: 100%;
        text-align: center;
    }
}
