/* 
 * Punjab Maktab - Main Stylesheet
 * Premium, Modern, Responsive
 */

:root {
    --primary-color: #0F4CBA;
    /* High-contrast royal blue */
    --secondary-color: #FFD700;
    /* Pure gold yellow */
    --text-color: #0F172A;
    /* Slate 900 for absolute clarity */
    --text-light: #475569;
    /* Slate 600 */
    --bg-light: #F1F5F9;
    /* Refined soft slate */
    --bg-white: #FFFFFF;
    --bg-soft-blue: #F8FAFC;
    /* Extra soft blue tint */
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.75);
    --shadow: 0 20px 50px rgba(15, 76, 186, 0.08);
    --shadow-premium: 0 30px 70px rgba(15, 76, 186, 0.15);
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    /* Extra bold for premium feel */
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

h4 {
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
}

p {
    letter-spacing: -0.01em;
    font-weight: 400;
}

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

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
    border-bottom: 1px solid rgba(15, 76, 186, 0.15);
}

/* Alternating Section Backgrounds */
section:nth-of-type(odd) {
    background-color: var(--bg-soft-blue);
}

section:nth-of-type(even) {
    background-color: var(--bg-white);
}

/* Hero Section Override */
.hero {
    background-color: transparent !important;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 1.5rem 0;
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

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

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}

header.scrolled #header-logo {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


header:not(.scrolled) .nav-links a {
    color: var(--white);
}

header:not(.scrolled) .btn-contact {
    background: var(--white);
    color: var(--primary-color);
}

.nav-links .nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links .nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    color: inherit;
}

.nav-links .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links .nav-menu a:hover::after {
    width: 100%;
}

header:not(.scrolled) .nav-links .nav-menu a::after {
    background: var(--white);
}

header.scrolled .nav-links .nav-menu a::after {
    background: var(--primary-color);
}

.mobile-nav-header, 
.mobile-nav-footer,
.mobile-only {
    display: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 4px;
    transition: var(--transition);
}

header:not(.scrolled) .mobile-menu-btn span {
    background: var(--white);
}

.mobile-menu-btn.active span {
    background: var(--primary-color) !important;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.btn-contact {
    background: linear-gradient(135deg, var(--primary-color), #1E3A8A);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(15, 76, 186, 0.3);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 76, 186, 0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--primary-color);
    background-position: right center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 10rem 0 6rem 0;
    overflow: hidden;
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(15, 76, 186, 0.85) 40%, 
        rgba(15, 76, 186, 0.1) 75%, 
        transparent 100%);
    z-index: 1;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.hero-content {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.hero-text {
    max-width: 700px;
    padding: 0;
    text-align: left;
}

.hero-text > * {
    opacity: 0;
    animation: fadeInUp 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-logo {
    margin-bottom: 2rem;
    animation-delay: 0.1s;
}

.hero-logo img {
    height: 180px;
    width: auto;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.4));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.hero-logo img:hover {
    transform: scale(1.05) rotate(-2deg);
}

.hero-badge-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation-delay: 0.2s;
}

.hero-brand, .hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.hero-brand {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: var(--secondary-color);
}

.hero-status {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #4ADE80;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #4ADE80;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

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

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
    animation-delay: 0.3s;
}

.hero p {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 90%;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    animation-delay: 0.4s;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 3rem;
    animation-delay: 0.5s;
}

.hero-btn {
    padding: 1.1rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1E3A8A);
    color: var(--white);
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: var(--transition);
    border: none;
    box-shadow: 0 10px 25px rgba(15, 76, 186, 0.15);
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(15, 76, 186, 0.3);
    background: linear-gradient(135deg, #1E3A8A, var(--primary-color));
    color: var(--white);
}

.btn-primary.hero-btn {
    background: linear-gradient(135deg, var(--secondary-color), #FBBF24);
    color: var(--text-color);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
    border: none;
}

.btn-primary.hero-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.5);
}

.btn-secondary.hero-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.btn-secondary.hero-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-4px) translateZ(0);
    -webkit-transform: translateY(-4px) translateZ(0);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-trust-indicators {
    display: flex;
    gap: 2.5rem;
    animation-delay: 0.6s;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--secondary-color);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.trust-text {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
    .hero-text > * {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* Features / Sections */
.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 10px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    margin-top: auto;
    margin-bottom: 0;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover .card-img {
    transform: scale(1.03);
    box-shadow: var(--shadow);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.card-icon.sprite {
    display: inline-block;
    width: 80px;
    height: 80px;
    background-image: url('../img/educational_sprites.png');
    background-size: 240px 240px;
    border-radius: 12px;
}

.sprite-academic {
    background-position: 0 0;
}

.sprite-islamic {
    background-position: -80px 0;
}

.sprite-creative {
    background-position: -160px 0;
}

.sprite-early {
    background-position: 0 -80px;
}

.sprite-primary {
    background-position: -80px -80px;
}

.sprite-middle {
    background-position: -160px -80px;
}


.card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Testimonials Specific */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    padding: 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-radius: 16px;
}

.testimonial-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.5;
    font-style: italic;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.testimonial-author strong {
    font-size: 1rem;
    color: var(--primary-color);
}

.testimonial-author span {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Campus Section */
.campus-split {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.campus-image {
    flex: 1;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(15, 76, 186, 0.08);
}

.campus-image img {
    width: 100%;
    display: block;
    transition: transform 0.8s ease;
}

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

.slideshow-container img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 0.8s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-container img.active {
    position: relative;
    opacity: 1;
    z-index: 2;
}

.campus-text {
    flex: 1;
}

/* Director Section */
.director-section {
    position: relative;
    overflow: hidden;
}

.director-flex {
    align-items: center;
    gap: 6rem;
}

.director-image {
    position: relative;
    border-radius: 40px;
    box-shadow: var(--shadow-premium);
}

.director-image::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-color);
    border-radius: 40px;
    z-index: -1;
}

.director-label {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    font-weight: 700;
}

.director-quote {
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 2rem;
    border-left: 4px solid var(--secondary-color);
}

.director-signature {
    display: flex;
    flex-direction: column;
}

.director-signature strong {
    font-size: 1.3rem;
    color: var(--text-color);
}

.director-signature span {
    color: var(--text-light);
    font-size: 1rem;
}

/* Footer */
footer {
    background: #1A1D23;
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1.5rem;
}

.footer-about p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-links h4 {
    margin-bottom: 2rem;
    color: var(--white);
}

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

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    opacity: 0.6;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.5;
    font-size: 0.85rem;
}

/* Gallery Slider Section */
.gallery-slider-container {
    position: relative;
    padding: 0 4rem;
}

.gallery-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
    padding: 1rem 0;
}

.gallery-slider::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome/Safari */
}

.gallery-item {
    flex: 0 0 280px;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    box-shadow: var(--shadow);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.gallery-nav:hover {
    background: var(--primary-color);
    color: var(--white);
}

.gallery-nav.prev {
    left: 0;
}

.gallery-nav.next {
    right: 0;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
}

.lightbox-content {
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: zoom 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 2rem;
    z-index: 2010;
}

.lightbox-nav:hover {
    color: var(--secondary-color);
    transform: translateY(-50%) scale(1.2);
}

.lightbox-nav.prev {
    left: 5%;
}

.lightbox-nav.next {
    right: 5%;
}

#lightbox-caption {
    margin-top: 2rem;
    color: var(--white);
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

/* Contact Section Enhancement */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: stretch;
}

.contact-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #F8FAFC;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230F4CBA' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.2rem;
    padding-right: 3.5rem;
    cursor: pointer;
}

.contact-details-card {
    padding: 2.5rem !important;
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item:first-child {
    padding-top: 0;
}

.contact-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(15, 76, 186, 0.05);
    border: 1px solid rgba(15, 76, 186, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-icon-wrapper {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(15, 76, 186, 0.2);
    border-color: var(--primary-color);
}

.contact-item-content h4 {
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.contact-item-content p {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.obs-email,
.obs-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 1.05rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.obs-email:hover,
.obs-phone:hover {
    color: var(--secondary-color);
}

.footer-contact-list .obs-email,
.footer-contact-list .obs-phone {
    color: inherit;
    opacity: 0.6;
}

.footer-contact-list .obs-email:hover,
.footer-contact-list .obs-phone:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(26, 91, 184, 0.1);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.reveal {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal.fade-in {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Section specific tweaks */
#about .card:nth-child(2) {
    animation-delay: 0.2s;
}

#about .card:nth-child(3) {
    animation-delay: 0.4s;
}


/* Mobile Responsive Enhancement */
@media (max-width: 992px) {
    .hero h1 {
        font-size: clamp(3rem, 6vw, 4rem);
    }

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

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    header {
        padding: 1rem 0;
        background: transparent;
    }

    header.scrolled {
        background: var(--glass);
    }

    .mobile-menu-btn span {
        background: var(--white);
    }

    header.scrolled .mobile-menu-btn span {
        background: var(--primary-color) !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 5rem 2rem 3rem;
        transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        overflow-y: auto;
    }

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

    .nav-menu {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.8rem;
        list-style: none;
        margin: 2rem 0;
    }

    .nav-links .nav-menu a {
        color: var(--text-color) !important;
        font-size: 1.25rem;
        font-weight: 700;
        font-family: 'Outfit', sans-serif;
    }

    .nav-links .nav-menu a::after {
        background: var(--primary-color) !important;
    }

    .mobile-nav-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-nav-header img {
        height: 70px;
        margin-bottom: 1rem;
    }

    .mobile-nav-header p {
        font-size: 0.8rem;
        color: var(--text-light);
        text-transform: uppercase;
        letter-spacing: 0.2em;
        font-weight: 600;
    }

    .mobile-nav-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding-top: 2rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        gap: 1.5rem;
    }

    .mobile-contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .mobile-contact-info .obs-email,
    .mobile-contact-info .obs-phone {
        font-size: 1rem;
        color: var(--text-color) !important;
        font-weight: 600;
    }

    .mobile-social-links {
        display: flex;
        gap: 1.5rem;
    }

    .mobile-social-links a {
        width: 40px;
        height: 40px;
        background: var(--bg-soft-blue);
        color: var(--primary-color);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 1.1rem;
        transition: var(--transition);
    }

    .mobile-social-links a:hover {
        background: var(--primary-color);
        color: var(--white);
    }

    .mobile-only {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    .mobile-only .btn-contact {
        display: inline-flex !important;
        width: 100%;
        max-width: 250px;
    }

    .btn-contact {
        display: none;
    }

    .hero {
        min-height: 100vh;
        padding: 8rem 0 4rem;
        text-align: center;
        background-position: 65% center; /* Keep building visible */
    }

    .hero-overlay-gradient {
        background: linear-gradient(to bottom, 
            rgba(15, 23, 42, 0.95) 0%, 
            rgba(15, 76, 186, 0.8) 50%, 
            rgba(15, 23, 42, 0.95) 100%);
    }

    .hero-content {
        justify-content: center;
    }

    .hero-text {
        text-align: center;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .hero-logo {
        margin-bottom: 1.5rem;
    }

    .hero-logo img {
        height: 120px; 
    }

    .hero-badge-wrap {
        justify-content: center;
        margin: 0 auto 1.5rem;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 8vw, 3.2rem);
        text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    }

    .hero p {
        font-size: 1.05rem;
        margin: 0 auto 2rem;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .hero-trust-indicators {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 0.5rem;
        padding-top: 2rem;
        width: 100%;
    }

    .trust-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        flex: 1;
    }

    .trust-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: 0 auto;
    }

    .trust-text {
        font-size: 0.75rem;
    }

    .campus-split {
        flex-direction: column;
    }

    section {
        padding: 5rem 0;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-slider-container {
        padding: 0;
    }

    .gallery-item {
        flex: 0 0 300px;
        height: 220px;
    }

    .gallery-nav {
        display: none;
    }

    .contact-card .grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .contact-container {
        gap: 2rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

    .contact-info .card {
        padding: 2rem 1.5rem !important;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .contact-list {
        align-items: center;
    }

    .social-btn {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Video Section */
.video-section {
    padding: 8rem 0;
}

.video-container-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 10px;
    background: var(--white);
    border-radius: 35px;
    box-shadow: var(--shadow-premium);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 25px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Social Links */
.contact-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-decoration: none;
}

.social-btn i {
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    background: var(--bg-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: var(--transition);
}

.social-text {
    display: flex;
    flex-direction: column;
}

.social-text span {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.social-text strong {
    font-size: 1.1rem;
    color: var(--text-color);
}

.social-btn:hover {
    transform: translateX(8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(15, 76, 186, 0.1);
}

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

/* Curriculum & Learning Sections */
.curriculum-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.curriculum-list {
    list-style: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 76, 186, 0.1);
}

.curriculum-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.curriculum-list li i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.ld-section {
    position: relative;
    overflow: hidden;
}

.ld-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.ld-feature-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.ld-icon {
    width: 50px;
    height: 50px;
    background: rgba(15, 76, 186, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.ld-feature-item:hover .ld-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.ld-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.ld-text p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}


/* Honeypot Field */
.hp-field {
    display: none !important;
    visibility: hidden !important;
    position: absolute;
    left: -9999px;
}

/* Submit Button Interaction */
#submit-btn {
    transition: all 0.3s ease;
}

#submit-btn:not([disabled]) {
    cursor: pointer !important;
    opacity: 1 !important;
}

#submit-btn[disabled] {
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

#ajax-feedback {
    animation: fadeIn 0.4s ease-out;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-control:disabled,
textarea:disabled {
    background-color: #f8fafc !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Validation Styles */
.form-control.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fffafb !important;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

.invalid-feedback {
    display: none;
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 500;
    align-items: center;
    gap: 0.4rem;
    animation: slideDownIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.invalid-feedback i {
    font-size: 0.85rem;
}

.is-invalid + .invalid-feedback {
    display: flex;
}

@keyframes slideDownIn {
    from { 
        opacity: 0; 
        transform: translateY(-5px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.contact-details-card {
    padding: 2.5rem !important;
}
