/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors – NEW THEME */
    --primary-color: #1565c0;          /* Blue – main brand color */
    --secondary-color: #0b1f3b;        /* Dark blue – depth, headers, strong accents */
    --accent-color: #ffb300;           /* Golden – highlights, badges, important text */
    --accent-dark: #a15c2f;            /* Warm golden-brown – contrast and secondary fills */

    --brown-color: #5d4037;            /* Brown – icons, small details */

    /* Base Neutrals */
    --light-color: #f5f7fb;            /* Soft light bluish background */
    --dark-color: #050814;             /* Deep navy for footer / strong sections */

    --text-color: #1d2433;             /* Main text */
    --text-light: #6b7280;             /* Muted text for descriptions */

    --border-radius: 12px;
    --border-radius-lg: 20px;

    --box-shadow: 0 4px 20px rgba(5, 8, 20, 0.08);
    --box-shadow-lg: 0 15px 40px rgba(5, 8, 20, 0.18);

    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: all 0.2s ease;

    /* Gradients with new theme */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-secondary: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    --gradient-light: linear-gradient(135deg, #f9fbff 0%, #edf2ff 100%);

    /* Success color used in performance/standards */
    --success-color: #2e7d32;
   
    /* ===== Vertical Rhythm System ===== */
    --space-xl: 4.8rem;   /* hero, section breaks */
    --space-lg: 3.6rem;   /* normal sections */
    --space-md: 2.6rem;   /* compact sections */
    --space-sm: 1.8rem;   /* inner content */


}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
section {
    padding: var(--space-lg) 0;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 5px;
    animation: expandWidth 1.5s ease-out forwards;
}

/* Enhanced Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(5, 8, 20, 0.15);
    background-clip: padding-box;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.7s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(11, 31, 59, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-secondary);
    transition: var(--transition);
    z-index: -1;
}

.btn-secondary:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(11, 31, 59, 0.3);
}

.btn-secondary:hover::after {
    width: 100%;
}

/* Enhanced Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(245, 247, 251, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(5, 8, 20, 0.08);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(245, 247, 251, 0.98);
    box-shadow: 0 5px 25px rgba(5, 8, 20, 0.12);
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo h2 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* Logo + School Name */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo image */
.nav-logo-img {
    height: 70px;          /* perfect for your navbar */
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2.1rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.nav-link {
    white-space: nowrap;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 3px;
}


/* Enhanced Hero Section - now same style as other page headers */
.hero {
    position: relative;
    margin-top: var(--navbar-height);   /* ✅ pushes hero below fixed header */
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, #0f4c81, #003c6f);
    color: #fff;
    overflow: hidden;
}

.hero {
    padding: var(--space-xl) 0 var(--space-lg);
}

.hero + section {
    padding-top: var(--space-md);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    animation: fadeUp 1s ease-out;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: none;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #e5e7eb;
    position: relative;
    z-index: 2;
    animation: fadeUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-description {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: #cbd5f5;
    position: relative;
    z-index: 2;
    animation: fadeUp 1s ease-out 0.45s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    animation: fadeUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

/* keep background shapes definitions but hide them so hero matches other pages */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    filter: blur(1px);
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    background-color: var(--primary-color);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 180px;
    height: 180px;
    background-color: var(--secondary-color);
    bottom: 10%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background-color: var(--accent-color);
    top: 50%;
    left: 5%;
    animation-delay: 4s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background-color: var(--primary-color);
    bottom: 20%;
    left: 20%;
    animation-delay: 1s;
}

.shape-5 {
    width: 80px;
    height: 80px;
    background-color: var(--accent-dark);
    top: 20%;
    right: 15%;
    animation-delay: 3s;
}

.shape-6 {
    width: 130px;
    height: 130px;
    background-color: var(--accent-color);
    bottom: 30%;
    right: 25%;
    animation-delay: 5s;
}

/* actually hide shapes so hero visually matches other inner headers */
.hero-background,
.floating-shapes {
    display: none;
}

/* Enhanced Stats Section */
.stats-section {
    padding: var(--space-lg) 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.stat-card {
    text-align: center;
    padding: 3rem 2rem;
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
    opacity: 0.06;
}

.stat-card:hover::before {
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--box-shadow-lg);
}

.stat-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.2);
    color: var(--accent-color);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.stat-card:hover .stat-number {
    color: var(--secondary-color);
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.1rem;
}

/* Enhanced Vision & Mission */
.vision-mission {
    padding: var(--space-lg) 0;
    position: relative;
    overflow: hidden;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.vm-card {
    padding: 4rem 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
    transition: var(--transition);
}

.vm-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(5, 8, 20, 0.25);
}

.vm-card:hover::before {
    transform: scale(1.05);
}

.vision {
    background: var(--gradient-primary);
    color: white;
}

.mission {
    background: var(--gradient-secondary);
    color: white;
}

.vm-card h2 {
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.vm-card p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Enhanced Features Section */
.features {
    padding: var(--space-lg) 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

/* ================================
   WHY CHOOSE US – FORCE ONE LINE
   ================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ✅ 4 cards in one row */
    gap: 2.5rem;
}


.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    opacity: 0.06;
    transition: var(--transition);
    z-index: -1;
}

.feature-card:hover::before {
    left: 0;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--box-shadow-lg);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--accent-color);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover h3 {
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* tablet */
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr; /* mobile */
    }
}

/* Enhanced Page Header */
.page-header {
    padding: 10rem 0 5rem;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* hero and page-header share the same wave overlay */
.hero::before,
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0,0 Q500,80 1000,0 L1000,100 L0,100 Z" fill="rgba(255,255,255,0.12)"/></svg>');
    background-size: cover;
    background-position: center;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    animation: fadeUp 1s ease-out;
}

.page-subtitle {
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
    animation: fadeUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

/* Enhanced Intro Section */
.intro-section {
    padding: var(--space-lg) 0;
    position: relative;
    overflow: hidden;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: center;
}

.intro-image {
    display: flex;
    justify-content: center;
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 350px;
    background: var(--gradient-light);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.3rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: var(--transition);
}

.image-placeholder:hover::before {
    opacity: 0.15;
}

.image-placeholder:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

/* Enhanced Timeline Section */
.timeline-section {
    padding: var(--space-lg) 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 6px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    border-radius: 3px;
}

.timeline-item {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item.animated {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 140px;
    background: var(--gradient-secondary);
    color: white;
    padding: 1.2rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 700;
    z-index: 2;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.timeline-item:hover .timeline-year {
    transform: scale(1.05);
    box-shadow: var(--box-shadow-lg);
}

.timeline-content {
    flex: 1;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    margin: 0 2.5rem;
    position: relative;
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 25px;
    width: 25px;
    height: 25px;
    background-color: white;
    transform: rotate(45deg);
    box-shadow: -3px 3px 5px rgba(5, 8, 20, 0.05);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -12px;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -12px;
}

/* Enhanced Organization Structure */
.org-section {
    padding: var(--space-lg) 0;
    position: relative;
    overflow: hidden;
}

.org-chart {
    max-width: 900px;
    margin: 0 auto;
}

.org-level {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.org-item {
    padding: 2rem 1.5rem;
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    text-align: center;
    min-width: 220px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.org-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: inherit;
    transition: var(--transition);
    z-index: -1;
    opacity: 0.8;
}

.org-item:hover::before {
    height: 100%;
}

.org-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.org-item.founder {
    background: var(--gradient-primary);
    color: white;
}

.org-item.md {
    background: var(--gradient-secondary);
    color: white;
}

.org-item.principal {
    background: linear-gradient(135deg, var(--accent-color), #42a5f5);
    color: white;
}

.org-item.dept {
    background-color: var(--light-color);
}

.org-connector {
    width: 6px;
    height: 50px;
    background: var(--gradient-primary);
    margin: 0 auto 3rem;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.org-connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    animation: pulseLine 2s infinite;
}

.org-row {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
}

/* Enhanced Academics Page Styles */
.curriculum-section {
    padding: var(--space-lg) 0;
    position: relative;
    overflow: hidden;
}
.level-header {
    margin-top: 4.5rem;   /* space from Pre-School cards */
}

/* Level header (title + emoji) */
.level-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--light-color);
    transition: var(--transition);
}

.level-header:hover {
    border-color: var(--accent-color);
}

.level-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.level-header:hover .level-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--accent-color);
}

/* Pre-School grid (already in use) */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* ✅ 5 cards in one row */
    gap: 2rem;
}


.subject-card {
    text-align: center;
    padding: 2.5rem 1.8rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
    opacity: 0.06;
}

.subject-card:hover::before {
    height: 100%;
}

.subject-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.subject-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.subject-card:hover .subject-icon {
    transform: scale(1.2);
    color: var(--accent-color);
}

/* ✅ Primary & Secondary – card design like Pre-School grid */
.subjects-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

/* Each .category behaves like a subject card */
.category {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
    opacity: 0.06;
}

.category:hover::before {
    height: 100%;
}

.category:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

/* Icon on top – like the book / abc / globe icons */
.category-icon {
    font-size: 3rem;
    margin-bottom: 1.1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.category:hover .category-icon {
    transform: scale(1.15);
    color: var(--accent-color);
}

/* Title & subtitle inside card */
.category h4 {
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-size: 1.4rem;
    transition: var(--transition);
    border: none;
    padding-bottom: 0;
}

.category:hover h4 {
    color: var(--secondary-color);
}

.category-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Language / topic lines as soft pills */
.category-items {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    width: 100%;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--light-color);
}

.category-item:hover {
    background: white;
    transform: translateX(6px);
    box-shadow: var(--box-shadow);
}

.item-badge {
    background: var(--gradient-secondary);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.category-item:hover .item-badge {
    transform: scale(1.08);
}

.item-name {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Assessment – unchanged from your file */
.assessment-section {
    padding: var(--space-lg) 0;
    background: var(--light-color);
    position: relative;
    overflow: hidden;
}

.assessment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.assessment-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.assessment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
    opacity: 0.06;
}

.assessment-card:hover::before {
    height: 100%;
}

.assessment-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.assessment-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.assessment-icon {
    font-size: 3rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.assessment-card:hover .assessment-icon {
    transform: scale(1.2);
    color: var(--accent-color);
}

.performance-standard {
    background: #e8f5e8;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    border-left: 5px solid var(--success-color);
    transition: var(--transition);
}

.assessment-card:hover .performance-standard {
    transform: translateX(10px);
}

/* PTM Section */
.ptm-section {
    padding: var(--space-lg) 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ptm-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0,0 Q500,80 1000,0 L1000,100 L0,100 Z" fill="rgba(255,255,255,0.12)"/></svg>');
    background-size: cover;
    background-position: center;
}

.ptm-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    animation: pulse 2s infinite;
}

.ptm-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.ptm-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(5, 8, 20, 0.15);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.ptm-feature:hover {
    background: rgba(5, 8, 20, 0.25);
    transform: translateY(-5px);
}

.feature-badge {
    font-size: 1.8rem;
}

.compulsory-notice {
    background: rgba(5, 8, 20, 0.25);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2.5rem;
    display: inline-block;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.compulsory-notice:hover {
    background: rgba(5, 8, 20, 0.32);
    transform: scale(1.05);
}

/* Performance Section */
.performance-section {
    padding: var(--space-lg) 0;
    position: relative;
    overflow: hidden;
}

.performance-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.performance-stat {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    min-width: 200px;
}

.performance-stat:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.stat-value {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    transition: var(--transition);
}

.performance-stat:hover .stat-value {
    color: var(--accent-color);
}

.stat-label {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
}

.performance-chart {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.performance-chart:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.chart-bar {
    width: 100px;
    background: var(--gradient-secondary);
    border-radius: 10px 10px 0 0;
    position: relative;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    animation: growHeight 2s ease-out;
}

.performance-chart:hover .chart-bar {
    transform: scaleY(1.1);
    transform-origin: bottom;
}

.chart-value {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Enhanced Activities Page Styles */
.islamic-activities {
    padding: var(--space-lg) 0;
    position: relative;
    overflow: hidden;
}

/* ===============================
   ISLAMIC ACTIVITIES – FORCE 4 IN ROW
   =============================== */

.activities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ✅ force 4 */
    gap: 2.5rem;
}


.activity-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
    opacity: 0.06;
}

.activity-card:hover::before {
    height: 100%;
}

.activity-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--box-shadow-lg);
}

.activity-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.activity-card:hover .activity-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--accent-color);
}

.activity-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.activity-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.activity-feature:hover {
    background: var(--light-color);
    transform: translateX(5px);
}

/* Skills Section */
.skills-section {
    padding: var(--space-lg) 0;
    background: var(--light-color);
    position: relative;
    overflow: hidden;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ✅ FORCE 4 */
    gap: 2.5rem;
}

.skills-category {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.skills-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--light-color);
}

.skill-item:hover {
    background: white;
    transform: translateX(10px);
    box-shadow: var(--box-shadow);
}

.skill-badge {
    font-size: 1.4rem;
    transition: var(--transition);
}

.skill-item:hover .skill-badge {
    transform: scale(1.2);
}
@media (max-width: 1024px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
}

/* Programs Section */
.programs-section {
    padding: var(--space-lg) 0;
    position: relative;
    overflow: hidden;
}

.programs-timeline {
    display: grid;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.program-event {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    padding: 2.5rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.program-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
    opacity: 0.06;
}

.program-event:hover::before {
    height: 100%;
}

.program-event:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.event-date {
    flex-shrink: 0;
    text-align: center;
    background: var(--gradient-secondary);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    min-width: 120px;
    transition: var(--transition);
}

.program-event:hover .event-date {
    transform: scale(1.1);
}

.month {
    display: block;
    font-size: 1rem;
    font-weight: 600;
}

.day {
    display: block;
    font-size: 2rem;
    font-weight: 800;
}

.event-highlights {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.event-highlights span {
    background: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: var(--transition);
}

.event-highlights span:hover {
    background: var(--gradient-secondary);
    color: white;
    transform: translateY(-3px);
}

/* Focus Areas */
.focus-areas {
    padding: var(--space-lg) 0;
    background: var(--light-color);
    position: relative;
    overflow: hidden;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.focus-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.focus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
    opacity: 0.06;
}

.focus-card:hover::before {
    height: 100%;
}

.focus-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--box-shadow-lg);
}

.focus-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.focus-card:hover .focus-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--accent-color);
}

.focus-card ul {
    text-align: left;
    margin-top: 1.5rem;
}

.focus-card li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    transition: var(--transition);
}

.focus-card li:hover {
    transform: translateX(5px);
}

.focus-card li:hover::before {
    transform: scale(1.3);
}

/* Gallery Page Styles */
.gallery-filters {
    padding: 3rem 0;
    background: var(--light-color);
    position: sticky;
    top: 70px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 1rem 2rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-secondary);
    transition: var(--transition);
    z-index: -1;
}

.filter-btn.active,
.filter-btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.filter-btn.active::before,
.filter-btn:hover::before {
    width: 100%;
}

/* ===== GALLERY PAGE STYLES ===== */

.gallery-grid-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 0.6s ease forwards;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--box-shadow-lg);
}

/* Card and image area */
.gallery-card {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

/* Wrapper for image / placeholder */
.gallery-image {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--gradient-light);
    overflow: hidden;
}

/* Real image */
.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

/* Placeholder text (for cards without image yet) */
.gallery-image .image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition);
}

/* Zoom effect: image or placeholder */
.gallery-item:hover .gallery-image img {
    transform: scale(1.08);
}
.gallery-item:hover .gallery-image .image-placeholder {
    transform: scale(1.08);
    opacity: 0.08; /* fade when overlay comes up */
}

/* Overlay with title + description */
.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.3rem 1.6rem 1.6rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent 55%);
    color: #ffffff;
    transform: translateY(100%);
    transition: var(--transition);
}

/* Show overlay on hover */
.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin: 0 0 0.3rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Infrastructure Section */
.infrastructure-section {
    padding: var(--space-lg) 0;
    background: var(--light-color);
    position: relative;
    overflow: hidden;
}

.infrastructure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.infra-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.infra-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
    opacity: 0.06;
}

.infra-card:hover::before {
    height: 100%;
}

.infra-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.infra-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.infra-card:hover .infra-icon {
    transform: scale(1.2);
    color: var(--accent-color);
}

/* ==============================
   FUTURE PLANS – 4 CARDS IN ONE ROW
   ============================== */
/* ✅ FUTURE PLANS – 4 CARDS IN ONE ROW */
.future-plans-content .plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}

@media (max-width: 1024px) {
    .future-plans-content .plans-grid {
        grid-template-columns: repeat(2, 1fr); /* tablet */
    }
}

@media (max-width: 600px) {
    .future-plans-content .plans-grid {
        grid-template-columns: 1fr; /* mobile */
    }
}
.future-plans-content {
    width: 100%;
}

.future-plans-content .plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}
@media (max-width: 1024px) {
    .future-plans-content .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .future-plans-content .plans-grid {
        grid-template-columns: 1fr;
    }
}

.plan-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    text-align: center;
    border-top: 5px solid var(--primary-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-secondary);
    transition: var(--transition);
    z-index: -1;
    opacity: 0.06;
}

.plan-card:hover::before {
    height: 100%;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
    border-top-color: var(--accent-color);
}

.plan-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.plan-card:hover .plan-icon {
    transform: scale(1.2);
    color: var(--accent-color);
}

.plan-status {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--light-color);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.plan-card:hover .plan-status {
    background: var(--gradient-secondary);
    color: white;
    transform: scale(1.1);
}

/* Contact Page Styles */
.contact-info {
    padding: var(--space-lg) 0;
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ✅ FORCE 4 */
    gap: 2.5rem;
}

.contact-card {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
    opacity: 0.06;
}

.contact-card:hover::before {
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.contact-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    transform: scale(1.2);
    color: var(--accent-color);
}
.contact-card p,
.contact-card a {
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Form + Map */
.contact-form-map {
    padding: var(--space-lg) 0;
    background: var(--light-color);
    position: relative;
    overflow: hidden;
}

.form-map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form-section,
.map-section {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.contact-form-section:hover,
.map-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
    background: var(--light-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.16);
}

.form-group.focused label {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.map-container {
    height: 450px;
    background: var(--gradient-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    transition: var(--transition);
}

.map-placeholder:hover {
    background: var(--gradient-secondary);
}

.map-content {
    text-align: center;
    padding: 2rem;
}
/* Quick Contact inside Map Section */
.map-quick-contact {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    background: var(--gradient-secondary);
    color: #ffffff;
    text-align: center;
    box-shadow: var(--box-shadow-lg);
}

.map-quick-contact h3 {
    margin-bottom: 0.4rem;
    font-size: 1.4rem;
}

.map-quick-contact p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

/* Buttons already styled — just align nicely */
.map-quick-contact .quick-contact-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Admission Info */
.admission-info {
    padding: var(--space-lg) 0;
    position: relative;
    overflow: hidden;
}

.admission-steps {
    display: grid;
    gap: 2.5rem;
    margin: 4rem 0;
}

.admission-step {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 3rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.admission-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
    opacity: 0.06;
}

.admission-step:hover::before {
    height: 100%;
}

.admission-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.step-number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    transition: var(--transition);
}

.admission-step:hover .step-number {
    transform: scale(1.1) rotate(10deg);
}

.admission-criteria {
    background: var(--light-color);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    margin-top: 2.5rem;
    transition: var(--transition);
}

.admission-criteria:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.admission-criteria ul {
    margin-top: 1.5rem;
}

.admission-criteria li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    transition: var(--transition);
}

.admission-criteria li:hover {
    transform: translateX(10px);
}

.admission-criteria li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.5rem;
    transition: var(--transition);
}

.admission-criteria li:hover::before {
    color: var(--secondary-color);
    transform: scale(1.3);
}

/* Credentials Section */
.credentials-section {
    padding: var(--space-lg) 0;
    background: var(--light-color);
    position: relative;
    overflow: hidden;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.credential-item {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.credential-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
    opacity: 0.06;
}

.credential-item:hover::before {
    height: 100%;
}

.credential-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

/* Quick Contact */
.quick-contact {
    padding: var(--space-lg) 0;
    background: var(--gradient-secondary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quick-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0,0 Q500,80 1000,0 L1000,100 L0,100 Z" fill="rgba(255,255,255,0.12)"/></svg>');
    background-size: cover;
    background-position: center;
}

.quick-contact-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* Enhanced Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3.5rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-size: 1.4rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    transition: var(--transition-fast);
}

.footer-section ul li:hover {
    transform: translateX(5px);
}

.footer-section ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #495057;
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Enhanced Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes pulseLine {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes growHeight {
    from {
        height: 0;
    }
    to {
        height: var(--chart-height, 200px);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

/* Loading Animation */
.btn.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 20px rgba(5, 8, 20, 0.12);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .section-title {
    margin-bottom: 2rem;
}

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 70px;
    }

    .timeline-year {
        position: absolute;
        left: 0;
        top: 0;
        width: 60px;
    }

    .timeline-content {
        margin: 0;
    }

    .timeline-content::before {
        left: -10px !important;
        right: auto !important;
    }

    .org-row {
        flex-direction: column;
        align-items: center;
    }

    .form-map-grid {
        grid-template-columns: 1fr;
    }

    .admission-step {
        flex-direction: column;
        text-align: center;
    }

    .program-event {
        flex-direction: column;
        text-align: center;
    }

    .event-date {
        align-self: center;
    }

    .performance-stats {
        flex-direction: column;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .ptm-features {
        flex-direction: column;
        align-items: center;
    }

    .quick-contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        max-width: 250px;
    }
}
.campus-preview {
    padding: var(--space-md) 0 var(--space-lg);
}
.about-highlight-image {
    padding: var(--space-md) 0;
}
.features {
    padding: var(--space-lg) 0;
}
.footer {
    padding: var(--space-lg) 0 var(--space-md);
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .hero-buttons,
    .btn {
        display: none !important;
    }

    .hero {
        height: auto;
        padding: 2rem 0;
    }

    .page-header {
        padding: 3rem 0;
    }

    .section-title::after {
    bottom: -10px;
}

    * {
        box-shadow: none !important;
        transform: none !important;
    }
}
/* Hero "Contact Us" button – white outline then white fill on hover */
.hero .btn-secondary {
    border-color: #ffffff;        /* white outline */
    color: #ffffff;               /* white text */
    background: transparent;      /* transparent background */
}

/* make the hover fill white instead of gradient */
.hero .btn-secondary::after {
    background: #ffffff;
}

/* when filled white, text should be primary for contrast */
.hero .btn-secondary:hover {
    color: var(--primary-color);  /* blue text on white */
}

/* Floating Action Buttons – Right Side */
.floating-actions {
    position: fixed;
    right: 20px;
    bottom: 40px;           /* ⬅️ was 120px – now lower on the screen */
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;  /* align all buttons to the right */
    z-index: 1100;
}

/* Base FAB style (reuses your theme) */
.fab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border-radius: 999px;
    border: none;
    outline: none;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

/* 1️⃣ Main "Get Your Seat" button */
.fab-main {
    padding: 12px 22px;
    background: var(--gradient-secondary);
    color: #ffffff;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.fab-main:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
    background: var(--gradient-primary);
}

/* 2️⃣ & 3️⃣ Icon-only circular buttons (Call & Email) */
.fab-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #ffffff; /* default white outline */
    color: var(--primary-color);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.fab-icon-wrap {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG icon styling */
.fab-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Hover: fill with gradient & make icon white */
.fab-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.fab-icon:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
    border-color: transparent;
}

.fab-icon:hover::before {
    opacity: 1;
}

/* Extra depth if they overlap hero section */
.hero .fab-main,
.hero .fab-icon {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Responsive tweak – move up / shrink a bit on small screens */
@media (max-width: 768px) {
    .floating-actions {
        right: 12px;
        bottom: 30px;      /* ⬅️ lowered here too */
        gap: 10px;
    }

    .fab-main {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .fab-icon {
        width: 46px;
        height: 46px;
    }

    .fab-icon-wrap {
        width: 24px;
        height: 24px;
    }

    .fab-icon svg {
        width: 20px;
        height: 20px;
    }
}
/* Wrapper so menu sticks to the call button */
.fab-call-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Hidden menu with two numbers */
.fab-call-menu {
    position: absolute;
    right: 0;
    bottom: 60px; /* appears above the call button */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--box-shadow-lg);
    padding: 0.8rem 1rem;
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    z-index: 1200;
}

.fab-call-menu a {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--primary-color);
    white-space: nowrap;
    transition: var(--transition);
}

.fab-call-menu a:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

/* === HERO SECTION === */

.hero {
    position: relative;
    padding: 5rem 0 4rem;           /* top & bottom spacing */
    background: linear-gradient(135deg, #0f4c81, #003c6f);
    color: #fff;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: flex-start;   /* ✅ key fix */
    justify-content: space-between;
    gap: 100rem;
    flex-direction: row;
}
.hero-image-frame {
    margin-top: 6px;   /* optional fine-tune */
}

/* Hero text block */
.hero .hero-content {
    max-width: 520px;
    text-align: left;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Hero image frame */
.hero-image-frame {
    flex: 1;
    max-width: 480px;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--box-shadow-lg);
    border: 6px solid rgba(255, 255, 255, 0.8);
    background-color: #fff;
}

/* Slight overlay glow on hover */
.hero-image-frame img:hover {
    transform: translateY(-6px);
    transition: var(--transition);
}

/* Background shapes (if you already had them) */
.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-shapes .shape {
    position: absolute;
    border-radius: 999px;
    opacity: 0.15;
}

/* === VISION / MISSION (CAMPUS PREVIEW) === */

.campus-preview {
    /* 🔴 important: NO negative margin, no overlap */
    margin-top: 0 !important;
    padding: 4rem 0 5rem;           /* normal spacing below hero */
    background: var(--light-color);
    position: relative;
}

.campus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.campus-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.campus-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(21, 101, 192, 0.08),
        rgba(255, 179, 0, 0.06)
    );
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.campus-image {
    width: 100%;
    height: 190px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1.4rem;
}

.campus-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: var(--transition);
}

/* Card hover (just lift a bit, no section overlap) */
.campus-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--box-shadow-lg);
}

.campus-card:hover::before {
    opacity: 1;
}

.campus-card:hover .campus-image img {
    transform: scale(1.06);
}

.campus-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.campus-card p {
    color: var(--text-light);
    font-size: 0.96rem;
}

/* === RESPONSIVE === */

@media (max-width: 992px) {
    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero .hero-content {
        text-align: center;
    }
    .hero-image-frame {
        max-width: 420px;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.1rem;
    }

    .campus-image {
        height: 170px;
    }
}
/* HERO LAYOUT – image LEFT, text RIGHT on desktop */
.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    /* flex-direction: row-reverse;  ❌ remove this */
    flex-direction: row;              /* ✅ normal order: image left, text right */
}

/* Responsive tweaks for hero layout */
@media (max-width: 992px) {
    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-inner {
        flex-direction: column;       /* stack on mobile: image on top, text below */
        text-align: center;
    }

    .hero .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-frame {
        max-width: 420px;
        margin-bottom: 1.5rem;
    }
}


/* === About page image styling === */

/* Intro image card on About page */
.about-intro-image {
    width: 100%;
    height: 320px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    background: var(--gradient-light);
    position: relative;
}

.about-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: var(--transition);
}

.about-intro-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.35), transparent 45%);
    pointer-events: none;
}

.about-intro-image:hover img {
    transform: scale(1.08);
}

/* Wide banner image between intro and timeline */
.about-highlight-image {
    padding: 4rem 0;
    background: var(--light-color);
}

.about-highlight-frame {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    background: #000;
}

.about-highlight-frame img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    opacity: 0.96;
}

/* Centered highlighted caption (for hadith / quote) */
.about-highlight-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    padding: 1.4rem 2rem;
    background: rgba(5, 8, 20, 0.75);          /* dark translucent card */
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);                /* glassy highlight effect */
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .about-intro-image {
        height: 260px;
    }

    .about-highlight-frame img {
        height: 220px;
    }

    .about-highlight-caption {
        font-size: 0.9rem;
        padding: 1rem 1.4rem;
        max-width: 90%;
    }
}

/* === Academics page images === */

/* Big hero-style image above curriculum overview */
.academics-hero-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    margin-bottom: 3rem;
    background: var(--gradient-light);
}

.academics-hero-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: var(--transition);
}

.academics-hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.32), transparent 45%);
    pointer-events: none;
}

.academics-hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.2rem 1.8rem;
    background: linear-gradient(to top, rgba(5, 8, 20, 0.85), transparent);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 500;
}

/* Banner image above Assessment section */
.assessment-banner-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    margin-bottom: 2.5rem;
    background: #000;
}

.assessment-banner-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    opacity: 0.96;
}

.assessment-banner-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1.6rem;
    background: linear-gradient(to top, rgba(5, 8, 20, 0.9), transparent);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Hover effect for both cards */
.academics-hero-image:hover img,
.assessment-banner-image:hover img {
    transform: scale(1.06);
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .academics-hero-image img {
        height: 220px;
    }

    .assessment-banner-image img {
        height: 190px;
    }

    .academics-hero-caption,
    .assessment-banner-caption {
        font-size: 0.9rem;
        padding: 0.9rem 1.3rem;
    }
}

/* === Academics Page Header Layout === */

/* Split: left = title + subtitle (stacked), right = performance card */
.page-header .container {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) auto;  /* left text, right card */
    align-items: center;
    column-gap: 2rem;
}

/* Title on left, first row */
.page-header .page-title {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    margin: 0;
}

/* Subtitle directly under title on left */
.page-header .page-subtitle {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    margin: 0.4rem 0 0;
}

/* Performance card on right, centered beside both */
.page-header .performance-stats {
    grid-column: 2 / 3;
    grid-row: 1 / 3;  /* span both rows (title + subtitle) */
}

/* Mobile: stack everything */
@media (max-width: 768px) {
    .page-header .container {
        display: block;
    }

    .page-header .page-subtitle {
        margin-top: 0.4rem;
    }

    .page-header .performance-stats {
        margin-top: 1rem;
    }
}

/* ========== ACTIVITIES PAGE IMAGERY ========== */

.activities-hero-media {
    padding: 3.5rem 0 1rem;
}

.activities-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1.1fr;
    gap: 1.6rem;
    align-items: stretch;
}

.activities-hero-main {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    background: #000;
}

.activities-hero-main img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: var(--transition);
    opacity: 0.98;
}

.activities-hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.1rem 1.6rem;
    background: linear-gradient(to top, rgba(5, 8, 20, 0.9), transparent);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Side images on hero */
.activities-hero-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activities-hero-side-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background: #000;
}

.activities-hero-side-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: var(--transition);
    opacity: 0.97;
}

.activities-hero-tag {
    position: absolute;
    left: 0.9rem;
    bottom: 0.7rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Hover effects */
.activities-hero-main:hover img,
.activities-hero-side-image:hover img {
    transform: scale(1.06);
}

/* Programs banner image above events timeline */
.programs-banner-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    margin-bottom: 2.5rem;
    background: #000;
}

.programs-banner-image img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    opacity: 0.97;
}

.programs-banner-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1.7rem;
    background: linear-gradient(to top, rgba(5, 8, 20, 0.92), transparent);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .activities-hero-grid {
        grid-template-columns: 1fr;
    }

    .activities-hero-main img {
        height: 230px;
    }

    .activities-hero-side-image img {
        height: 140px;
    }

    .programs-banner-image img {
        height: 210px;
    }
}

@media (max-width: 600px) {
    .activities-hero-caption,
    .programs-banner-caption {
        font-size: 0.88rem;
        padding: 0.85rem 1.2rem;
    }

    .activities-hero-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.65rem;
    }
}
/* ========== CONTACT PAGE IMAGERY & MAP ========== */

/* Hero media block under header */
.contact-hero-media {
    padding: 3.5rem 0 1.5rem;
}

.contact-hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1.2fr;
    gap: 1.8rem;
    align-items: stretch;
}

.contact-hero-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    background: #000;
}

.contact-hero-image img {
    width: 100%;
    height: auto;           /* ✅ allow natural height */
    max-height: none;       /* ✅ no clipping */
    object-fit: contain;    /* ✅ show full image */
    display: block;
    background: #000;       /* optional, clean edge */
}


.contact-hero-image:hover img {
    transform: scale(1.06);
}

.contact-hero-card {
    border-radius: var(--border-radius-lg);
   background: linear-gradient(
    135deg,
    rgba(11, 31, 59, 0.85),
    rgba(21, 101, 192, 0.35)
);
    color: #ffffff;
    padding: 1.8rem 2rem;
    box-shadow: var(--box-shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-hero-card h2 {
    margin-bottom: 0.7rem;
    font-size: 1.5rem;
}

.contact-hero-card p {
    margin-bottom: 1.3rem;
    font-size: 0.95rem;
    color: #e5e9f5;
}

.contact-hero-data {
    display: grid;
    gap: 0.7rem;
}

.data-item {
    display: flex;
    flex-direction: column;
}

.data-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.data-value {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Map embed styling */
.map-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    background: #000;
}

.map-embed-wrapper {
    position: relative;
    width: 100%;
    padding-top: 62%; /* responsive 16:10 ratio */
}

.map-embed-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-overlay-card {
    position: absolute;
    left: 1.2rem;
    bottom: 1.2rem;
    padding: 0.9rem 1.1rem;
    border-radius: 1rem;
    background: rgba(5, 8, 20, 0.88);
    color: #ffffff;
    max-width: 80%;
    backdrop-filter: blur(6px);
}

.map-overlay-card h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.map-overlay-card p {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .contact-hero-grid {
        grid-template-columns: 1fr;
    }

    .contact-hero-image img {
        height: 220px;
    }
}

@media (max-width: 600px) {
    .contact-hero-card {
        padding: 1.4rem 1.3rem;
    }

    .map-overlay-card {
        left: 0.8rem;
        right: 0.8rem;
        bottom: 0.8rem;
        max-width: 100%;
    }
}
/* ========= INFRASTRUCTURE IMAGES ========= */

.infra-hero-strip {
    padding: 3rem 0 2rem;
}

.infra-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.infra-hero-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    background: #000;
}

.infra-hero-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transform: scale(1.03);
    transition: var(--transition);
    opacity: 0.96;
}

.infra-hero-item:hover img {
    transform: scale(1.08);
    opacity: 1;
}

.infra-hero-label {
    position: absolute;
    left: 0.9rem;
    bottom: 0.9rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    background: rgba(5, 8, 20, 0.8);
    color: #fff;
    backdrop-filter: blur(4px);
}

/* Cards with images */

.infrastructure-section {
    padding: 3rem 0 3.5rem;
}

.infrastructure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}

.infra-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 1.3rem 1.3rem 1.6rem;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.infra-card-image {
    margin: -1.3rem -1.3rem 0.9rem;
    height: 150px;
    overflow: hidden;
}

.infra-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.03);
    transition: var(--transition);
}

.infra-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--box-shadow-lg);
}

.infra-card:hover .infra-card-image img {
    transform: scale(1.08);
}

.infra-icon {
    font-size: 1.5rem;
}

.infra-card h3 {
    font-size: 1.1rem;
    margin-top: 0.15rem;
}

/* ========= FUTURE PLANS WITH IMAGE ========= */

.future-plans {
    padding: 3rem 0 4rem;
    background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 100%);
}

.future-plans-layout {
    display: block; /* full width */
}


.future-plans-media {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    background: #000;
}

/* ========= FUTURE PLANS IMAGE – FIXED ========= */

.future-plans-media {
    border-radius: var(--border-radius-lg);
    overflow: visible;                /* ✅ allow full image */
    box-shadow: var(--box-shadow-lg);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.future-plans-media img {
    width: 100%;
    height: auto;                     /* ✅ natural height */
    max-height: none;                 /* ✅ remove crop limit */
    object-fit: contain;              /* ✅ FULL IMAGE */
    display: block;
}
.future-plans-media {
    padding: 1rem;
}

.future-plans-media:hover img {
    transform: scale(1.07);
    opacity: 1;
}
/* Responsiveness */

@media (max-width: 900px) {
    .infra-hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .future-plans-layout {
        grid-template-columns: 1fr;
    }

    .future-plans-media img {
        max-height: 260px;
    }
}

@media (max-width: 600px) {
    .infra-hero-grid {
        grid-template-columns: 1fr;
    }

    .infra-hero-item img {
        height: 200px;
    }

    .infra-card-image {
        height: 140px;
    }
}
.ptm-icon {
    margin-bottom: 1.2rem;
    text-align: center;
}

.ptm-icon img {
    width: 180px;        /* adjust if needed */
    height: auto;
    display: inline-block;
}
/* === HERO ALIGNMENT FIX === */
.hero-image-frame {
    align-self: flex-start;
}
/* === HERO IMAGE VERTICAL ALIGNMENT FIX === */
.hero-image-frame {
    margin-top: 32px;   /* adjust this value if needed */
}
margin-top: 28px;  /* slightly higher */
margin-top: 36px;  /* slightly lower */
/* === HERO BUTTON PERFECT LEFT ALIGN (TEXT START) === */
.hero .hero-buttons {
    justify-content: flex-start;
    margin-left: 0;
}

.hero .hero-buttons .btn {
    margin-left: 0;
}
/* ===============================
   HERO BUTTON ALIGNMENT – FINAL FIX
   =============================== */

/* Ensure hero text block defines left edge */
.hero .hero-content {
    text-align: left;
    align-items: flex-start;
}

/* Force buttons to follow text start */
.hero .hero-buttons {
    justify-content: flex-start !important;
    align-items: flex-start;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Remove optical offset caused by inline-flex buttons */
.hero .hero-buttons .btn {
    margin-left: 0 !important;
}
/* === HERO BUTTON SIZE EQUALIZATION === */

/* Base hero buttons */
.hero .btn {
    padding: 12px 30px;
    font-size: 0.95rem;
    box-sizing: border-box; /* 🔑 critical */
}

/* Outline button compensation */
.hero .btn-secondary {
    padding: 10px 28px; /* 12px - 2px border */
}
/* === HERO IMAGE VERTICAL ALIGNMENT FIX (MOBILE) === */
@media (max-width: 768px) {
    .hero-image-frame {
        margin-top: 55px;   /* more space below header on mobile */
    }
}
/* ================================
   REMOVE GAP BETWEEN HERO IMAGE & TEXT
   ================================ */

@media (max-width: 768px) {

    /* Remove bottom space from image */
    .hero-image-frame {
        margin-bottom: 0 !important;
    }

    /* Remove top space from text block */
    .hero .hero-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}
/* ================================
   FORCE HAMBURGER VISIBILITY (MOBILE)
   ================================ */

@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
        z-index: 2000;
        position: relative;
    }
}
.page-header {
    overflow-x: visible;   /* ✅ allow text width */
}
.page-header .page-title,
.page-header .page-subtitle {
    max-width: 100%;
    word-break: normal;
    overflow-wrap: break-word;
}
@media (max-width: 768px) {
    .page-header .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}
/* Shared leader card layout */
.leader-card {
    padding: 2.5rem 3rem;
}

/* Flex container */
.leader-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

/* Passport image */
.leader-photo {
    flex-shrink: 0;
    width: 160px;
    height: 200px;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.6);
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text content */
.leader-text {
    color: #ffffff;
    text-align: left;
}

.leader-text h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.leader-text h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.leader-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.95;
}
@media (max-width: 768px) {
    .leader-inner {
        flex-direction: column;
        text-align: center;
    }

    .leader-text {
        text-align: center;
    }

    .leader-photo {
        width: 110px;
        height: 140px;
    }
}
/* ===============================
   FOOTER – GRID WITH BIG LOGO
   =============================== */

.footer {
    background: #1d4f7d;
    color: #ffffff;
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}
.footer-logo-col {
    background: #ffffff;
    padding: 2rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* optional polish */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.footer-logo-big {
    width: 220px;
    height: auto;
    display: block;
}

    color: #ffffff;
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}


/* Thin accent line on top */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ffb300, #ff8f00);
}

/* ===== GRID LAYOUT ===== */
.footer-grid {
    display: grid;
    grid-template-columns: 240px 1.3fr 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* ===== LOGO COLUMN ===== */
.footer-logo-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-big {
    width: 220px;     /* 🔥 increase/decrease freely */
    height: auto;
    max-width: 100%;
}

/* ===== TEXT SECTIONS ===== */
.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: #ffb300;
}

.footer-section p {
    color: #d1d5db;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

/* ===== QUICK LINKS ===== */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section ul li a {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffb300;
    transform: translateX(6px);
    display: inline-block;
}

/* ===== FOOTER BOTTOM ===== */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* ===============================
   RESPONSIVE – MOBILE & TABLET
   =============================== */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 200px 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer-logo-big {
        width: 130px;
        margin-bottom: 1.5rem;
    }

    .footer-section {
        margin-bottom: 2rem;
    }

    .footer-section ul li a:hover {
        transform: none;
    }
}
@media (max-width: 768px) {
    :root {
        --space-xl: 3.8rem;
        --space-lg: 3rem;
        --space-md: 2.2rem;
        --space-sm: 1.6rem;
    }

    section {
        padding: var(--space-md) 0;
    }
}
/* ======================================
   SUBJECT CARDS – RESPONSIVE FIX
   ====================================== */

/* Tablet */
@media (max-width: 1024px) {
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.6rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .subjects-grid {
        grid-template-columns: 1fr;   /* ✅ stack cards */
        gap: 1.4rem;
    }

    .subject-card {
        padding: 2rem 1.6rem;         /* slightly tighter */
    }
}
/* ===============================
   MOBILE FIX – Activities Cards
================================ */

@media (max-width: 768px) {

  /* Grid-based sections */
  .activities-grid,
  .skills-container,
  .focus-grid,
  .features-grid {
    grid-template-columns: 1fr !important;
  }

  /* Flex-based card rows (if any) */
  .activities-grid,
  .features-grid {
    display: flex;
    flex-direction: column;
  }

  /* Card spacing */
  .activity-card,
  .skill-card,
  .feature-card {
    width: 100%;
    max-width: 100%;
  }
}
