/* ═══════════════════════════════════════════════════════════════
   Mudzini School — Modern Hero Styles
   Vibrant, engaging landing page design
   ═══════════════════════════════════════════════════════════════ */

/* ── Top Info Bar ─────────────────────────────────────────── */
.top-info-bar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 0;
}

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

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

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

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

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

.social-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--secondary);
    color: var(--text);
    transform: translateY(-2px);
}

/* ── Home Header Override ─────────────────────────────────── */
.home-page .site-header.home-header {
    background: transparent;
    border-bottom: none;
    position: absolute;
    width: 100%;
    top: 38px;
    box-shadow: none;
    height: 64px;
}

/* Base styles for nav links and dropdowns are inherited from styles.css */


/* ── Modern Hero Section ──────────────────────────────────── */
.hero-modern {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #3d1a4d 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 120px;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}

.hero-circle-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(249,168,37,0.15) 0%, transparent 70%);
}

.hero-circle-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(181,111,152,0.2) 0%, transparent 70%);
}

.hero-dots-pattern {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(rgba(255,255,255,0.15) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.hero-modern-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 60px 24px 120px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ── Hero Text Side ───────────────────────────────────────── */
.hero-text-side {
    color: #fff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.2);
}

.badge-icon {
    font-size: 1.1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.hero-title .highlight {
    color: var(--secondary);
    display: block;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 16px;
    font-style: italic;
    color: var(--secondary-light);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 32px;
    max-width: 500px;
}

/* ── Hero CTA Buttons ─────────────────────────────────────── */
.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary);
    color: var(--text);
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(249,168,37,0.4);
}

.btn-hero-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(249,168,37,0.5);
    color: var(--text);
}

.btn-hero-primary svg {
    transition: transform 0.3s ease;
}

.btn-hero-primary:hover svg {
    transform: translateX(4px);
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* ── Hero Stats ───────────────────────────────────────────── */
.hero-stats-row {
    display: flex;
    gap: 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 4px;
    display: block;
}

/* ── Hero Image Side ──────────────────────────────────────── */
.hero-image-side {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-frame {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    transform: rotate(2deg);
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 4px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    z-index: 1;
    pointer-events: none;
}

.hero-image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image-frame:hover img {
    transform: scale(1.05);
}

/* ── Floating Cards ───────────────────────────────────────── */
.hero-floating-card {
    position: absolute;
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    animation: float 3s ease-in-out infinite;
}

.hero-floating-card.card-1 {
    bottom: 60px;
    left: -40px;
    animation-delay: 0s;
}

.hero-floating-card.card-2 {
    top: 40px;
    right: -30px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.floating-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.floating-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Hero Wave ────────────────────────────────────────────── */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    overflow: hidden;
}

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

/* ── Announcement Ticker ──────────────────────────────────── */
.announcement-ticker {
    display: flex;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
}

.ticker-label {
    background: var(--secondary);
    color: var(--text);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.ticker-icon {
    font-size: 1.2rem;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    padding: 14px 24px;
    background: linear-gradient(90deg, rgba(249,168,37,0.1), transparent);
}

.ticker-content .marquee {
    display: flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.ticker-content .ann-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 0.95rem;
}

.ticker-content .ann-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

/* ── Feature Cards Section ────────────────────────────────── */
.features-section {
    padding: 80px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-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;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(121,49,154,0.1), rgba(181,111,152,0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

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

/* ── Why Choose Us Section ────────────────────────────────── */
.why-choose-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-choose-image {
    position: relative;
}

.why-choose-image img {
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

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

.why-choose-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text);
}

.why-choose-content > p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.why-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

.why-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;
}

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

.why-text span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-modern-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text-side {
        order: 1;
    }
    
    .hero-image-side {
        order: 2;
    }
    
    .hero-description {
        margin: 0 auto 32px;
    }
    
    .hero-cta-group {
        justify-content: center;
    }
    
    .hero-stats-row {
        justify-content: center;
    }
    
    .hero-floating-card.card-1 {
        left: 20px;
        bottom: 20px;
    }
    
    .hero-floating-card.card-2 {
        right: 20px;
        top: 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .why-choose-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .top-info-bar {
        display: none;
    }
    
    .home-page .site-header.home-header {
        top: 0;
        background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    }
    
    .hero-modern {
        padding-top: 100px;
        min-height: auto;
    }
    
    .hero-modern-container {
        padding: 40px 20px 100px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-floating-card {
        display: none;
    }
    
    .hero-image-frame {
        transform: none;
        border-radius: 20px;
    }
    
    .hero-stats-row {
        gap: 24px;
    }
    
    .hero-stat-value {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .announcement-ticker {
        flex-direction: column;
    }
    
    .ticker-label {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats-row {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .hero-stat {
        flex: 1 1 80px;
    }
}

/* ── Section Badge ────────────────────────────────────────── */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(121,49,154,0.1), rgba(181,111,152,0.1));
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* ── Modern Pathways Grid ─────────────────────────────────── */
.pathways-section {
    background: #fff;
}

.pathways-modern-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pathway-card-modern {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pathway-card-modern::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;
}

.pathway-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(121,49,154,0.15);
    border-color: transparent;
}

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

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

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

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

.pathway-card-modern p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.pathway-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.pathway-link:hover {
    gap: 10px;
}

/* ── Student Life Modern Grid ─────────────────────────────── */
.student-life-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.student-life-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

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

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

.life-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45,15,62,0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: all 0.3s ease;
}

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

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

.life-card p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

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

/* ── Modern Stats Section ─────────────────────────────────── */
.stats-modern-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 100px 0;
    overflow: hidden;
}

.stats-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.08) 2px, transparent 2px);
    background-size: 30px 30px;
}

.stats-modern-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.stats-content {
    color: #fff;
}

.stats-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.stats-content p {
    font-size: 1.1rem;
    opacity: 0.85;
    line-height: 1.7;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
}

/* ── News Modern Grid ─────────────────────────────────────── */
.news-section {
    background: #fff;
}

.news-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.news-card-img {
    height: 200px;
    overflow: hidden;
}

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

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

.news-card-body {
    padding: 24px;
}

.news-date {
    display: inline-block;
    background: rgba(121,49,154,0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.news-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.4;
}

.news-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.news-link:hover {
    gap: 10px;
}

/* ── CTA Section ──────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

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

.cta-content 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;
}

.btn-cta-dark {
    background: var(--primary-dark);
    color: #fff;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-cta-dark:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(45,15,62,0.3);
}

/* ── Responsive for new sections ──────────────────────────── */
@media (max-width: 1024px) {
    .pathways-modern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-modern-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stats-content {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .pathways-modern-grid {
        grid-template-columns: 1fr;
    }
    
    .student-life-modern-grid {
        grid-template-columns: 1fr;
    }
    
    .life-card {
        height: 220px;
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-content h2 {
        font-size: 2rem;
    }
    
    .news-modern-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .stat-card .stat-value {
        font-size: 2rem;
    }
}
