﻿/* 
 * Islamic Foundation School - Modern Stylesheet
 * 
 * Colors:
 * Primary: Royal Blue #4169E1
 * Accent: Golden Yellow #FFD700
 * Text: Dark Gray #333333
 * Background: White #FFFFFF
 */

:root {
    --primary-color: #4169E1;
    --primary-dark: #27408B;
    --accent-color: #FFD700;
    --accent-dark: #DAA520;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #F9F9F9;
    --bg-white: #FFFFFF;
    --bg-dark: #1A1A1A;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.3);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --radius: 12px;

    /* Premium Motion Tokens */
    --easing-premium: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-premium: 800ms;
    --duration-fast: 300ms;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.wrapper-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

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

.text-white {
    color: white !important;
}

.text-light {
    color: #e0e0e0 !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.text-accent-light {
    color: #FFE55C !important;
}

.bg-dark {
    background-color: var(--bg-dark);
}

.bg-primary {
    background-color: var(--primary-color);
}

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

.section-tag {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    background: rgba(65, 105, 225, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--primary-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
    box-shadow: none;
}

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

.btn-text {
    font-weight: 700;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.btn-text:hover {
    gap: 12px;
}

.btn-block {
    display: block;
    width: 100%;
}

.mt-20 {
    margin-top: 20px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -50px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    z-index: 2000;
    transition: top 0.3s;
    border-radius: 0 0 5px 5px;
}

.skip-link:focus {
    top: 0;
}

/* Header & Navigation Redesign */
.header {
    z-index: 1000;
    width: 100%;
    transition: var(--transition);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 25px;
    align-items: center;
}

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

.top-bar-item .icon {
    font-size: 1rem;
    opacity: 0.9;
}

.top-bar-item a {
    color: white;
    transition: var(--transition);
}

.top-bar-item a:hover {
    color: var(--accent-color);
}

/* Main Header */
.main-header {
    background-color: var(--bg-white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

/* Mobile Adjustments for Top Bar */
@media (max-width: 1024px) {
    .top-bar-flex {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .top-bar-left,
    .top-bar-right {
        gap: 15px;
    }
}

@media (max-width: 767px) {

    .top-bar-left,
    .top-bar-right {
        flex-direction: column;
        gap: 5px;
    }

    .top-bar-item {
        justify-content: center;
    }
}

/* Sticky behavior adjustments */
/* Sticky styles removed per request */

/* Navigation List */
.nav-list {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 5px 0;
    transition: color var(--duration-fast) var(--easing-premium);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--duration-fast) var(--easing-premium);
}

.nav-link:hover {
    color: var(--primary-color);
}

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

.nav-link.active {
    color: var(--primary-color);
    font-weight: 700;
}

/* Hamburger Menu Positioning */
.mobile-menu-toggle {
    display: none;
    z-index: 1001;
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        padding: 80px 40px;
        box-shadow: var(--shadow-lg);
        transition: 0.4s ease;
        z-index: 1000;
    }

    .nav-active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   HERO SECTION — PROFESSIONAL SCHOOL WEBSITE
   ========================================================= */

.hero {
    position: relative;
    background: #0a192f;
    color: white;
    text-align: center;
    margin-top: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* One fixed landscape frame, shared by every slide. */
    height: 620px;
}

/* Slider wrapper */
.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #0a192f;
}

/* Individual slides */
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

/* The slider image — fills the shared landscape frame */
.hero-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

/* Subtle professional overlay — keeps the headline legible without hiding the photo */
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(5, 15, 35, 0.55) 0%,
            rgba(5, 15, 35, 0.15) 35%,
            rgba(5, 15, 35, 0.15) 65%,
            rgba(5, 15, 35, 0.65) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Hero text */
.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 900px;
    padding: 0 30px;
    margin: 0 auto;
}

/* Slide navigation dots */
.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.25);
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-dot.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.15);
}

/* Responsive hero sizing — same shared frame, scaled down for smaller screens */
@media (max-width: 991px) {
    .hero {
        height: 500px;
    }
}

@media (max-width: 600px) {
    .hero {
        height: 520px;
    }

    .hero-dots {
        bottom: 14px;
    }

    /* Higher-specificity selectors so these win over the shared
       max-width:900px typography rules that come later in this file. */
    .hero-content {
        padding: 0 20px;
    }

    .hero-content .hero-title {
        font-size: 2rem;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .hero-content .hero-subtitle {
        font-size: 0.92rem;
        margin-bottom: 20px;
    }

    .hero-content .hero-cta {
        gap: 10px;
    }

    .hero-content .hero-cta .btn {
        padding: 12px 20px;
        font-size: 0.8rem;
    }
}

.hero-tagline {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.12;
    color: white;
    margin-bottom: 18px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 auto 30px;
    font-weight: 400;
    opacity: 0.92;
    max-width: 650px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    border-bottom: 3px solid white;
    border-right: 3px solid white;
    transform: rotate(45deg);
}

/* Welcome Section */
/* Image column stretches to the full height of the text beside it, and the
   photo fills that tall box (cropping some of its left/right edges). */
.welcome .grid-2-col {
    align-items: stretch;
}

/* Wider image column (and a slightly wider section) so the image box keeps
   the same height as the text but matches the photo's shape (1046x979). */
@media (min-width: 1280px) {
    .welcome .grid-2-col {
        max-width: 1360px;
        grid-template-columns: 1.2fr 1fr;
        gap: 50px;
    }
}

/* Below 1280px the columns get too narrow for side-by-side, so the image
   sits above the text at its full shape (no crop), capped to stay tidy. */
@media (max-width: 1279px) {
    .welcome .grid-2-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .welcome-image .image-wrapper {
        max-width: 760px;
        margin: 0 auto;
    }
}

.welcome-image {
    min-width: 0;
}

.welcome-image,
.welcome-image .image-wrapper {
    height: 100%;
}

.welcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.welcome-text .lead-text {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.welcome-highlights {
    list-style: none;
    margin: 25px 0;
}

.welcome-highlights li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-color);
}

.welcome-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 15px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DAA520' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.principal-quote {
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 0 10px 10px 0;
}

.principal-quote blockquote {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 10px;
}

.principal-quote cite {
    font-weight: 700;
    color: var(--primary-dark);
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-dark);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-color);
}

/* =========================================================
   WHY CHOOSE US — editorial header + asymmetric image grid
   ========================================================= */

.why-choose-us {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, #f3f6fd 0%, #ffffff 70%);
}

/* Faint eight-point star lattice (Islamic geometric motif) */
.wcu-pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%2327408B' stroke-opacity='0.09' stroke-width='1'%3E%3Crect x='21' y='21' width='22' height='22'/%3E%3Crect x='21' y='21' width='22' height='22' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 100% 0%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse 60% 70% at 100% 0%, #000 0%, transparent 72%);
}

/* Header */
.wcu-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: end;
    margin-bottom: 56px;
}

.wcu-heading .section-title {
    font-size: clamp(2.2rem, 3.6vw, 3.2rem);
    letter-spacing: -0.5px;
    margin-bottom: 0;
}

.wcu-heading .section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    margin-top: 20px;
    border-radius: 2px;
    background: var(--accent-dark);
}

.wcu-intro {
    padding-left: 36px;
    border-left: 1px solid rgba(39, 64, 139, 0.16);
}

.wcu-motto {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 10px;
}

.wcu-motto-ar {
    font-family: 'Amiri', serif;
    font-size: 1.9rem;
    line-height: 1.2;
    color: var(--accent-dark);
}

.wcu-motto-en {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
}

.wcu-lead {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--primary-dark);
    margin-bottom: 18px;
}

.wcu-link {
    font-size: 0.95rem;
}

/* Grid: 7/5 then 5/7 — a checkerboard rhythm instead of a flat card row */
.wcu-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 380px;
    gap: 24px;
}

.wcu-item:nth-child(1),
.wcu-item:nth-child(4) {
    grid-column: span 7;
}

.wcu-item:nth-child(2),
.wcu-item:nth-child(3) {
    grid-column: span 5;
}

/* Card */
.wcu-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: #0a192f;
    box-shadow: 0 1px 2px rgba(10, 25, 47, 0.06), 0 18px 40px -20px rgba(10, 25, 47, 0.45);
    transition: transform 0.45s var(--easing-premium), box-shadow 0.45s var(--easing-premium);
}

.wcu-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--easing-premium);
}

.wcu-card--featured img {
    object-position: center top;
}

.wcu-card--portrait img {
    object-position: center 30%;
}

.wcu-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(8, 20, 40, 0.94) 0%,
            rgba(8, 20, 40, 0.66) 34%,
            rgba(8, 20, 40, 0.12) 66%,
            rgba(8, 20, 40, 0) 100%);
}

.wcu-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 28px 30px 30px;
}

.wcu-card-meta {
    display: flex;
    margin-bottom: 18px;
}

.wcu-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.55);
    background: rgba(10, 25, 47, 0.35);
    color: var(--accent-color);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.wcu-icon svg {
    width: 22px;
    height: 22px;
}

.wcu-num {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(10, 25, 47, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
}

.wcu-card h3 {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.wcu-card--featured h3 {
    font-size: 1.75rem;
}

.wcu-card h3::after {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    margin-top: 12px;
    background: var(--accent-color);
    transition: width 0.45s var(--easing-premium);
}

.wcu-card p {
    max-width: 44ch;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.84);
}

@media (hover: hover) {
    .wcu-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 1px 2px rgba(10, 25, 47, 0.06), 0 28px 50px -22px rgba(10, 25, 47, 0.55);
    }

    .wcu-card:hover img {
        transform: scale(1.05);
    }

    .wcu-card:hover h3::after {
        width: 56px;
    }

    .wcu-card:hover .wcu-icon {
        background: var(--accent-color);
        border-color: var(--accent-color);
        color: var(--primary-dark);
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .wcu-header {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 44px;
    }

    .wcu-intro {
        padding-left: 0;
        border-left: 0;
    }

    .wcu-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 340px;
        gap: 20px;
    }

    .wcu-item:nth-child(n) {
        grid-column: span 1;
    }

    .wcu-item:nth-child(1),
    .wcu-item:nth-child(4) {
        grid-column: span 2;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .why-choose-us.section-padding {
        padding: 72px 0;
    }

    .wcu-header {
        margin-bottom: 32px;
    }

    .wcu-motto-ar {
        font-size: 1.6rem;
    }

    .wcu-lead {
        font-size: 1.15rem;
    }

    .wcu-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 16px;
    }

    .wcu-item:nth-child(n) {
        grid-column: auto;
    }

    .wcu-card {
        height: auto;
        min-height: 320px;
    }

    .wcu-card--featured {
        min-height: 380px;
    }

    .wcu-card-body {
        padding: 22px 22px 24px;
    }

    .wcu-card-meta {
        margin-bottom: 14px;
    }

    .wcu-icon {
        width: 42px;
        height: 42px;
    }

    .wcu-card h3,
    .wcu-card--featured h3 {
        font-size: 1.25rem;
    }

    .wcu-card--featured h3 {
        font-size: 1.45rem;
    }
}

/* Inline SVG icons: top bar, footer contact list and testimonial quotes */
.icon .ico {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.top-bar-item .icon,
.contact-list .icon {
    display: inline-flex;
    align-items: center;
}

.contact-list .icon .ico {
    width: 18px;
    height: 18px;
}

.quote-icon .ico-quote {
    width: 46px;
    height: 46px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Academic Cards */
.academic-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.academic-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.academic-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

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

.level-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.4rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.read-more .arrow {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover .arrow {
    transform: translateX(5px);
}

/* Infrastructure Redesign */
.infrastructure.section-padding {
    background-color: #f0f7ff;
    /* Soft Royal Blue tint */
}

.infrastructure-grid {
    display: grid;
    gap: 30px;
    margin-top: 50px;
}

/* Desktop: 3 equal-width cards in one row */
@media (min-width: 1025px) {
    .infrastructure-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet: 2 cards in first row, 1 centered below */
@media (min-width: 768px) and (max-width: 1024px) {
    .infrastructure-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .infra-card:last-child {
        grid-column: span 2;
        max-width: calc(50% - 15px);
        margin: 0 auto;
    }
}

/* Mobile: 1 card per row (default) */
@media (max-width: 767px) {
    .infrastructure-grid {
        grid-template-columns: 1fr;
    }
}

.infra-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration-fast) var(--easing-premium),
        box-shadow var(--duration-fast) var(--easing-premium);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.infra-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Infrastructure Image Refinement */
.infra-image {
    height: 250px;
    overflow: hidden;
}

.infra-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--easing-premium);
}

.infra-card:hover .infra-image img {
    transform: scale(1.04);
}

.infra-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.infra-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.infra-content p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-explore .arrow {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    transition: var(--transition);
}

.btn-explore:hover {
    color: var(--primary-dark);
}

.btn-explore:hover .arrow {
    transform: translateX(5px);
    background-color: var(--primary-color);
    color: white;
}

.welcome-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration-fast) var(--easing-premium),
        box-shadow var(--duration-fast) var(--easing-premium);
}

.welcome-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Testimonials */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    position: relative;
    background: white;
    padding: 40px;
}

.quote-icon {
    font-size: 60px;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: serif;
}

.testimonial-text {
    font-size: 1.15rem;
    color: #444;
    font-style: italic;
    margin-bottom: 25px;
    z-index: 1;
    position: relative;
}

.divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent);
    margin-bottom: 25px;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

/* CTA & Form */
.cta-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: var(--radius);
    max-width: 600px;
    margin: 40px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-form h3 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.form-group-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    margin-bottom: 15px;
}

.cta-form input,
.cta-form select {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.cta-form input:focus,
.cta-form select:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.4);
}

.form-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
}

/* Footer Redesign - Modern & Compact */
.footer {
    background-color: #0a192f;
    /* Deep Dark Royal Blue */
    color: #cbd5e0;
    /* Soft light gray text */
    padding: 60px 0 0;
    font-family: var(--font-body);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 50px;
}

.footer-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
}

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

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

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

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

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.contact-list .icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

.contact-list a {
    color: #cbd5e0;
    text-decoration: none;
    transition: var(--transition);
}

.contact-list a:hover {
    color: var(--accent-color);
}

.phones {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.social-icons a:hover svg {
    transform: scale(1.05);
}

/* Footer Bottom Section */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

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

.bottom-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.bottom-links a {
    color: #8b949e;
    text-decoration: none;
    transition: var(--transition);
}

.bottom-links a:hover {
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .contact-list li {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .bottom-flex {
        flex-direction: column;
        gap: 15px;
    }
}

/* Animations */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.pulse-anim {
    animation: pulse 2s infinite;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.5, 0, 0, 1) forwards;
}

.fade-in-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 0.2s cubic-bezier(0.5, 0, 0, 1) forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 0.4s cubic-bezier(0.5, 0, 0, 1) forwards;
}

.fade-in-delay-3 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 0.6s cubic-bezier(0.5, 0, 0, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal-up,
.scroll-reveal-left,
.scroll-reveal-right {
    opacity: 0;
    transition: transform var(--duration-premium) var(--easing-premium),
        opacity var(--duration-premium) var(--easing-premium),
        filter var(--duration-premium) var(--easing-premium);
    will-change: transform, opacity;
}

.scroll-reveal-up {
    transform: translateY(40px);
}

.scroll-reveal-left {
    transform: translateX(-40px);
}

.scroll-reveal-right {
    transform: translateX(40px);
}

.in-view {
    opacity: 1;
    transform: translate(0, 0);
    filter: blur(0);
}

/* Responsive */
@media (max-width: 900px) {
    .header .container {
        padding: 0 20px;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1002;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        padding: 100px 40px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        backdrop-filter: blur(10px);
    }

    .nav.nav-active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .nav-link {
        font-size: 1.3rem;
    }

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

    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-group-row {
        flex-direction: column;
        gap: 0;
    }
}

/* prefers-reduced-motion Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
}

/* =========================================
   ACADEMIC PATHWAY - ABOUT US STYLE SPLIT
   ========================================= */

/* Replicating .welcome layout */
.academic-block {
    margin-bottom: 80px;
}

.academic-block:last-child {
    margin-bottom: 0;
}

/* Inherits .grid-2-col from global values */
.academic-block.grid-2-col {
    align-items: stretch;
}

/* Image Column */
.academic-image,
.academic-image .image-wrapper {
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

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

/* Content Column */
.academic-text {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.academic-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.academic-text h3 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.academic-text p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.academic-highlights {
    list-style: none;
    margin-bottom: 30px;
}

.academic-highlights li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.academic-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DAA520' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* Mobile Responsive Adjustments for Academic Block */
@media (max-width: 900px) {
    .academic-block.grid-2-col {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }

    .academic-image {
        min-height: 300px;
        order: -1;
    }

    .academic-block .academic-image {
        order: -1;
        /* Force image on top for all blocks */
    }
}

/* =========================================================
   RESPONSIVE FIXES (mobile / tablet) — no desktop redesign
   Resolves horizontal overflow on Home & About only.
   ========================================================= */

/* Off-canvas mobile menu: fully removed from flow when closed, so the
   300px panel no longer sits ~1 screen-width off to the right
   (the old `right:-100%` was extending the page and causing the phone
   to zoom out into a narrow column). Positioning/scale from the existing
   mobile blocks is preserved; only the closed state is corrected. */
@media (max-width: 991px) {
  .nav {
    display: none;
    right: 0;
    left: auto;
    width: min(320px, 85vw);
    max-width: 100vw;
    overflow-y: auto;
  }
  .nav.nav-active {
    display: flex;
    right: 0;
    animation: navFadeIn 0.3s ease;
  }
}
@keyframes navFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* The reveal-from-right animation translates elements +40px horizontally,
   which briefly overflowed the viewport on tablet/mobile before they
   settled. Reveal them vertically at <=1279px instead; the desktop
   slide-in-from-right (>=1280px) is left exactly as designed. */
@media (max-width: 1439px) {
  .scroll-reveal-right { transform: translateY(40px); }
}
