@import "./colors.css";

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
    letter-spacing: 0.3px;
    width: 100%;
    max-width: 100vw;
    transition: padding-top 0.3s ease;
}

.page-wrapper {
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2 span {
    color: var(--primary);
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title p {
    font-size: 1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    gap: 8px;
    box-shadow: var(--shadow-light);
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(63, 142, 158, 0.25);
}

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

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(244, 162, 97, 0.25);
}

/* Top Header */
.top-header {
    background: var(--primary-dark);
    color: var(--light);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.top-header-item i {
    font-size: 0.9rem;
    color: var(--accent-light);
}

.top-header-item span {
    font-size: 0.85rem;
}

.top-header-right .btn {
    padding: 6px 16px;
    font-size: 0.85rem;
    background: var(--accent);
    color: var(--light);
    border-radius: 30px;
}

.top-header-right .btn:hover {
    background: var(--accent-light);
    color: var(--dark);
}

/* ===== MAIN HEADER – ROBUST STICKY + FIXED SCROLL BEHAVIOR ===== */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.fixed-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    animation: slideDown 0.3s ease forwards;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    min-height: 70px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    max-width: 60%;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 1.8rem;
    flex-shrink: 0;
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.logo-text h1 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 2px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.logo-text .tagline {
    font-size: 0.7rem;
    color: var(--gray);
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Desktop navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark);
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
    transition: var(--transition);
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

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

/* Mobile toggle button – hidden on desktop */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--light) !important;
    border-radius: 8px;
    z-index: 1002;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .logo-text h1 {
        font-size: 1.1rem;
    }

    .logo-text .tagline {
        font-size: 0.65rem;
    }

    .nav-menu {
        gap: 18px;
    }

    .nav-menu a {
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    .logo-text h1 {
        font-size: 1rem;
    }

    .logo-text .tagline {
        font-size: 0.6rem;
    }

    .nav-menu {
        gap: 12px;
    }

    .nav-menu a {
        font-size: 0.8rem;
    }
}

@media (min-width: 901px) {
    .nav-menu:not(.desktop-nav) {
        /* the outside nav */
        display: none;
    }

    .desktop-nav {
        display: flex;
        /* already flex from base .nav-menu */
    }
}


/* ===== MOBILE STYLES (≤900px) ===== */
@media (max-width: 900px) {
    .top-header {
        display: none;
    }

    .desktop-nav {
        display: none;
    }

    /* Menu is now a direct child of body */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #ffffff !important;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 30px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1002;
        /* above overlay */
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        /* Remove any inherited positioning from header */
    }

    .close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        background: rgba(0, 0, 0, 0.05);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.3s ease;
        z-index: 1003;
        /* above the menu links */
    }

    .close-btn:hover {
        background: rgba(0, 0, 0, 0.1);
    }

    .close-btn i {
        font-size: 1.2rem;
        color: var(--dark);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu a {
        width: 100%;
        padding: 15px 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        white-space: normal;
        color: var(--dark);
    }

    .nav-menu a.active {
        color: var(--primary);
        font-weight: 600;
    }

    .mobile-toggle {
        display: flex;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        pointer-events: auto;
    }
}

/* Small screens (below 768px) */
@media (max-width: 768px) {
    .logo-text h1 {
        font-size: 0.95rem;
        white-space: normal;
    }

    .logo-text .tagline {
        display: none;
    }

    .logo-img {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .top-header-container {
        flex-direction: column;
        text-align: center;
    }

    .top-header-left {
        justify-content: center;
    }

    .logo h1 {
        font-size: 0.9rem;
    }
}

/* ===== END HEADER ===== */

/* Hero Carousel (unchanged) */
.hero-carousel {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    height: 100%;
}

.slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--light);
    z-index: 2;
    width: 80%;
    max-width: 800px;
}

.carousel-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-content h1 span {
    color: var(--accent);
}

.carousel-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

@media (max-width: 768px) {
    .carousel-container {
        height: 400px;
    }

    .carousel-content h1 {
        font-size: 2rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
}

/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.course-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 30px 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

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

.course-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--light);
    font-size: 2rem;
    transition: transform 0.3s ease;
}

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

.course-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.course-card p {
    color: var(--gray);
    margin-bottom: 15px;
}

.course-card .btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
}

.course-card .btn:hover {
    background: var(--primary);
    color: var(--light);
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--light) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.welcome-section::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    background: var(--primary-light);
    opacity: 0.05;
    border-radius: 50%;
}

.welcome-section p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--dark-light);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Committees Grid */
.committees-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.committee-item {
    background: var(--light);
    padding: 25px 15px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.committee-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), transparent);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.committee-item:hover::before {
    opacity: 0.1;
}

.committee-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.committee-item i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.committee-item:hover i {
    transform: scale(1.1);
}

.committee-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

@media (max-width: 992px) {
    .committees-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .committees-grid {
        grid-template-columns: 1fr;
    }
}

/* Features Section */
.features-section {
    background: linear-gradient(135deg, var(--light-green), var(--light-blue));
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-item {
    background: var(--light);
    padding: 30px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-item:hover::after {
    transform: scaleX(1);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--light);
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: rotate(360deg);
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.feature-item p {
    color: var(--gray);
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Vision/Mission/Goals */
.vmg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.vmg-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 30px 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 5px solid transparent;
    position: relative;
    overflow: hidden;
}

.vmg-card:nth-child(1) {
    border-top-color: var(--primary);
}

.vmg-card:nth-child(2) {
    border-top-color: var(--secondary);
}

.vmg-card:nth-child(3) {
    border-top-color: var(--accent);
}

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

.vmg-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(63, 142, 158, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.vmg-card:hover::before {
    opacity: 1;
}

.vmg-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(63, 142, 158, 0.1), rgba(63, 142, 158, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.vmg-card:hover .vmg-icon {
    transform: scale(1.1);
}

.vmg-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.vmg-card p {
    color: var(--gray);
    line-height: 1.7;
}

@media (max-width: 992px) {
    .vmg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vmg-grid {
        grid-template-columns: 1fr;
    }
}

/* Photo Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    height: 220px;
    box-shadow: var(--shadow-light);
    cursor: pointer;
    position: relative;
}

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

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

.gallery-item::after {
    content: '\f00e';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(63, 142, 158, 0.8);
    color: var(--light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* TFW Info */
#tfw-info .section-title p {
    background: var(--primary);
    color: var(--light);
    padding: 12px 20px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 10px;
    font-weight: 500;
    box-shadow: var(--shadow);
}

/* Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.gallery-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-image-container {
    max-width: 100%;
    max-height: 85vh;
    overflow: auto;
    border-radius: 8px;
    background: #111;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-image {
    width: auto;
    height: auto;
    max-width: none;
    display: block;
}

.modal-close {
    position: fixed;
    top: 25px;
    right: 35px;
    color: var(--light);
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10010;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.modal-close:hover {
    background: var(--accent);
    transform: rotate(90deg);
    color: var(--light);
}

/* Welcome Modal */
#welcomeModal {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

#welcomeModal .modal-close {
    background: rgba(255, 255, 255, 0.2);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#welcomeModal .modal-close:hover {
    background: var(--accent);
    color: var(--light);
}

.welcome-modal .modal-content {
    background: var(--light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 500px;
}

.welcome-modal .modal-image-container {
    max-height: 120vh;
    background: #f5f5f5;
}

.welcome-modal .modal-image {
    width: 100%;
    height: auto;
}

.welcome-modal .modal-caption {
    padding: 20px;
    text-align: center;
    background: var(--light);
}

.welcome-modal .modal-caption h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.welcome-modal .modal-caption p {
    color: var(--gray);
}

/* TFW Announcement Card */
.tfw-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 0;
    margin: 0px 0;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
}

.tfw-card .container {
    padding: 40px 20px;
}

.tfw-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    color: var(--light);
}

.tfw-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--light);
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.tfw-content {
    flex: 1;
    min-width: 250px;
}

.tfw-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--light);
    font-weight: 700;
}

.tfw-content h2 span {
    color: var(--accent-light);
    position: relative;
}

.tfw-content h2 span:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.tfw-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
    color: var(--light);
}

.tfw-btn {
    flex-shrink: 0;
    padding: 14px 32px;
    font-size: 1rem;
    background: var(--accent);
    color: var(--light);
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.tfw-btn:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(244, 162, 97, 0.4);
}

.tfw-btn i {
    transition: transform 0.3s ease;
}

.tfw-btn:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .tfw-card-inner {
        flex-direction: column;
        text-align: center;
    }

    .tfw-content h2 span:after {
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
    }

    .tfw-icon {
        margin-bottom: 10px;
    }
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--light);
    padding: 40px 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-col h3 {
    color: var(--light);
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

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

.footer-links li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links i {
    color: var(--accent);
    font-size: 0.9rem;
    width: 18px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.social-links-footer {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-link-footer {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    transition: var(--transition);
    font-size: 1rem;
}

.social-link-footer:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

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

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.banner-title span.accent-text {
    color: var(--accent);
}

/* ===== COMMON PAGE BANNER ===== */
.page-banner {
    position: relative;
    height: 300px;
    background-image: url('../images/slider1.jpg');
    /* change to your banner image */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    /* margin-bottom: 30px; */
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* dark overlay */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.banner-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.breadcrumb {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.breadcrumb a {
    color: var(--accent);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .page-banner {
        height: 250px;
    }

    .banner-title {
        font-size: 2.2rem;
    }
}

/* ===== ABOUT SECTION – UNIQUE & ENHANCED ===== */
.about-section {
    padding: 20px 0 60px;
}

/* Section titles – same as homepage (centered, underline, accent span) */
.about-section .section-title {
    text-align: center;
    margin-bottom: 30px;
}

.about-section .section-title h2 {
    font-size: 2rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.about-section .section-title h2 span {
    color: var(--primary);
}

.about-section .section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* ===== COLLEGE DESCRIPTION – clean card with soft hover ===== */
.about-college {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin: 20px 0 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-college:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(63, 142, 158, 0.1);
}

.about-college p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-light);
    margin: 0;
}

/* ===== SOCIETY DETAILS – Premium Certificate Style ===== */
.about-society {
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
    padding: 40px 35px;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 20, 30, 0.1), 0 4px 8px rgba(0, 0, 0, 0.02), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(63, 142, 158, 0.15);
}

/* Decorative certificate icon */
.about-society::before {
    content: '\f02e';
    /* Font Awesome certificate */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.12;
    transform: rotate(10deg);
    pointer-events: none;
    z-index: 1;
}

/* Subtle bottom pattern */
.about-society::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, transparent, rgba(63, 142, 158, 0.05), transparent);
    pointer-events: none;
}

.about-society .section-title {
    position: relative;
    z-index: 2;
}

.about-society .section-title h2 {
    font-size: 2rem;
    color: var(--primary-dark);
}

.about-society .section-title h2 span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.about-society .section-title h2 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent-light);
    opacity: 0.3;
    z-index: -1;
}

/* Registration details – elegant pill badges */
.society-reg {
    font-size: 1.15rem;
    margin: 15px 0;
    position: relative;
    z-index: 2;
    display: inline-block;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    padding: 10px 25px 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    border-left: 5px solid var(--accent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.society-reg:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 18px rgba(63, 142, 158, 0.15), inset 0 0 0 1px #fff;
}

.society-reg strong {
    color: var(--primary-dark);
    font-weight: 600;
    margin-right: 8px;
}

/* ===== OBJECTIVES GRID – modern cards with gradient icons ===== */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0 20px;
}

.objective-card {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.objective-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.objective-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(63, 142, 158, 0.12);
    border-color: rgba(63, 142, 158, 0.1);
}

.objective-card:hover::after {
    transform: scaleX(1);
}

.objective-card i {
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.objective-card:hover i {
    transform: scale(1.1) rotate(2deg);
}

.objective-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark-light);
    margin: 0;
}

/* ===== TRUSTEES TABLE – Modern Glass Card with Icons ===== */
.about-trustees {
    margin: 60px 0 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f7fc 100%);
    border-radius: 50px;
    padding: 30px 25px 25px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(63, 142, 158, 0.1);
}

.table-responsive {
    overflow-x: auto;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    padding: 5px;
}

.trustee-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    background: transparent;
}

.trustee-table thead tr {
    border-radius: 30px;
    overflow: hidden;
}

.trustee-table th {
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: var(--light);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 20px;
    text-align: left;
    border: none;
    position: relative;
}

.trustee-table th:first-child {
    border-radius: 30px 0 0 30px;
    padding-left: 30px;
}

.trustee-table th:last-child {
    border-radius: 0 30px 30px 0;
    padding-right: 30px;
}

.trustee-table th i {
    margin-right: 10px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.trustee-table td {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    border: none;
    font-size: 1rem;
    color: var(--dark);
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02);
}

.trustee-table tr td:first-child {
    border-radius: 20px 0 0 20px;
    padding-left: 30px;
    position: relative;
}

.trustee-table tr td:first-child::before {
    content: '\f007';
    /* user icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    opacity: 0.4;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.trustee-table tr td:last-child {
    border-radius: 0 20px 20px 0;
    padding-right: 30px;
    font-weight: 500;
    color: var(--primary-dark);
}

.trustee-table tr:hover td {
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(63, 142, 158, 0.12);
    transform: scale(1.01);
}

.trustee-table tr:hover td:first-child::before {
    opacity: 1;
    color: var(--accent);
}

/* ===== ANIMATIONS ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

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

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .about-section .section-title h2 {
        font-size: 1.6rem;
    }

    .about-college {
        padding: 20px;
    }

    .about-college p {
        font-size: 1rem;
    }

    .about-society {
        padding: 30px 20px;
    }

    .about-society::before {
        font-size: 4rem;
        top: 10px;
        right: 15px;
    }

    .society-reg {
        font-size: 1rem;
        padding: 8px 18px;
        display: block;
        text-align: center;
    }

    .objective-card {
        padding: 20px 15px;
    }

    .objective-card i {
        font-size: 2.2rem;
    }

    .objective-card p {
        font-size: 0.9rem;
    }

    .about-trustees {
        padding: 20px 15px;
    }

    .trustee-table th,
    .trustee-table td {
        padding: 12px 12px;
        font-size: 0.9rem;
    }

    .trustee-table th:first-child,
    .trustee-table td:first-child {
        padding-left: 20px;
    }

    .trustee-table th:last-child,
    .trustee-table td:last-child {
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .objectives-grid {
        grid-template-columns: 1fr;
    }
}


/* ----- ALL course page styles now start with "our-course-" ----- */
.our-course-section {
    padding: 30px 0 50px;
}

.our-course-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    margin: 40px 0 30px;
}

.our-course-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 30px 28px 28px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.our-course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(63, 142, 158, 0.08);
    border-color: rgba(63, 142, 158, 0.15);
}

.our-course-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 16px;
}

.our-course-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(145deg, #f0f7fa, #e6f0f5);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.9rem;
    flex-shrink: 0;
}

.our-course-title-block {
    flex: 1;
}

.our-course-title {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 6px;
    color: var(--dark);
}

.our-course-subtitle {
    font-size: 0.9rem;
    color: var(--gray);
    background: #f2f7fa;
    padding: 4px 14px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.our-course-duration {
    display: inline-block;
    background: #eef3f6;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 20px;
    border-radius: 40px;
    margin-top: 10px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.our-course-detail-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.our-course-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    line-height: 1.5;
}

.our-course-detail-icon {
    width: 24px;
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 2px;
    text-align: center;
}

.our-course-detail-content {
    flex: 1;
    color: var(--dark-light);
}

.our-course-detail-content strong {
    font-weight: 600;
    color: var(--dark);
    margin-right: 8px;
    display: inline-block;
    min-width: 85px;
}

.our-course-recognition-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.our-course-recog-badge {
    background: #f4f9fc;
    border-left: 4px solid var(--accent);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.our-course-footer-note {
    margin-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    font-size: 0.95rem;
}

.our-course-footer-note i {
    color: var(--primary-light);
}

/* fee banner */
.our-course-fee-banner {
    background: #f7fbfd;
    padding: 22px 35px;
    border-radius: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 40px 0 20px;
    border: 1px solid rgba(63, 142, 158, 0.2);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.02);
}

.our-course-fee-banner i {
    font-size: 2.2rem;
    color: var(--primary);
    opacity: 0.8;
}

.our-course-fee-banner p {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0;
    color: var(--dark);
}

.our-course-fee-banner strong {
    color: var(--primary-dark);
    font-weight: 600;
}

/* responsive */
@media (max-width: 800px) {
    .our-course-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .our-course-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .our-course-icon {
        margin-bottom: 5px;
    }

    .our-course-detail-item {
        flex-wrap: wrap;
    }

    .our-course-detail-icon {
        width: auto;
    }

    .our-course-fee-banner {
        border-radius: 40px;
        padding: 16px 22px;
        text-align: center;
    }
}

/* fade-in animation (generic) */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

.delay-6 {
    animation-delay: 0.6s;
}

.delay-7 {
    animation-delay: 0.7s;
}

.delay-8 {
    animation-delay: 0.8s;
}

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



/* ----- unique admission page styles (all start with "admission-") ----- */
.admission-section {
    padding: 20px 0 60px;
}

.admission-card {
    background: var(--light);
    border-radius: 32px;
    padding: 45px 45px 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03), 0 8px 20px rgba(0, 20, 30, 0.05);
    border: 1px solid rgba(63, 142, 158, 0.1);
    position: relative;
    overflow: hidden;
    max-width: 1150px;
    margin: 50px auto;
}

/* subtle decorative element */
.admission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.6;
}

.admission-intro {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--dark);
    margin-bottom: 35px;
    font-weight: 450;
    background: #fafdff;
    padding: 20px 28px;
    border-radius: 24px;
    border-left: 6px solid var(--primary-light);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.02);
}

.admission-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.admission-list-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--dark-light);
    padding: 5px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.admission-list-item:last-child {
    border-bottom: none;
}

.admission-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ecf6f9, #ddeef5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    transition: all 0.2s ease;
    box-shadow: 0 6px 12px rgba(63, 142, 158, 0.1);
}

.admission-list-item:hover .admission-icon {
    transform: scale(1.1);
    background: var(--primary);
    color: var(--light);
}

.admission-text {
    flex: 1;
    padding-top: 6px;
}

.admission-text strong {
    color: var(--primary-dark);
    font-weight: 600;
}

/* special style for SC/ST item (long text) */
.admission-list-item.scst-item {
    background: #f4faff;
    border-radius: 20px;
    padding: 12px 18px;
    margin-left: -18px;
    margin-right: -18px;
    border-left: 5px solid var(--accent);
    box-shadow: 0 6px 14px rgba(244, 162, 97, 0.08);
}

.admission-list-item.scst-item .admission-icon {
    background: #ffe9d9;
    color: var(--accent);
}

.admission-list-item.scst-item:hover .admission-icon {
    background: var(--accent);
    color: var(--light);
}

/* note for incomplete / character – subtle emphasis */
.admission-list-item.important-item .admission-icon {
    color: #d97706;
    background: #fef3c7;
}

.admission-list-item.important-item:hover .admission-icon {
    background: #d97706;
    color: var(--light);
}

/* responsive */
@media (max-width: 700px) {
    .admission-card {
        padding: 30px 20px;
    }

    .admission-intro {
        font-size: 1.1rem;
        padding: 16px 20px;
    }

    .admission-list-item {
        gap: 14px;
    }

    .admission-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .admission-list-item {
        flex-wrap: wrap;
    }

    .admission-icon {
        margin-bottom: 5px;
    }
}

/* fade-in animation (reused) */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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


/* ----- ALL laboratory page styles start with "lab-" ----- */
.lab-section {
    padding: 40px 0 70px;
}

.lab-intro-card {
    background: linear-gradient(145deg, var(--light), #f8fcff);
    border-radius: 32px;
    padding: 32px 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(63, 142, 158, 0.1);
    margin-bottom: 50px;
    font-size: 1.15rem;
    color: var(--dark-light);
    border-left: 8px solid var(--primary-light);
    line-height: 1.7;
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 35px 0 25px;
}

.lab-card {
    background: var(--light);
    border-radius: 24px;
    padding: 22px 24px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
}

.lab-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.lab-card-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #e2f0f5, #d0e8f0);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
    flex-shrink: 0;
}

.lab-card-content {
    flex: 1;
}

.lab-card-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--dark-light);
}

.lab-card-content .lab-size {
    font-size: 0.95rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lab-size i {
    color: var(--accent);
    font-size: 0.9rem;
}

.lab-note-box {
    background: #eef7fb;
    border-radius: 60px;
    padding: 16px 30px;
    margin: 30px 0 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 25px;
    border: 1px dashed var(--primary-light);
}

.lab-note-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--primary-dark);
}

.lab-note-item i {
    font-size: 1.4rem;
    color: var(--accent);
}

.lab-others-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0 50px;
}

.lab-others-item {
    background: #f9f9fc;
    border-radius: 30px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e9f0f5;
}

.lab-others-icon {
    width: 44px;
    height: 44px;
    background: var(--light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.02);
}

.lab-others-item span {
    font-weight: 500;
    color: var(--dark);
    font-size: 1rem !important;

}

.lab-others-item .lab-room-size {
    margin-left: auto;
    background: var(--light-gray);
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 1rem !important;
    color: var(--gray);
}

/* gallery */
.lab-gallery-title {
    margin: 60px 0 30px;
}

.lab-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.lab-gallery-item {
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: 0.3s;
    border: 2px solid transparent;
    background: #f0f0f0;
    position: relative;
}

.lab-gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.lab-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lab-gallery-item .lab-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: var(--light);
    padding: 20px 12px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: 0.3s;
}

.lab-gallery-item:hover .lab-overlay-text {
    opacity: 1;
}

/* modal (prefixed) */
.lab-gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.lab-gallery-modal.active {
    display: flex;
}

.lab-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lab-modal-image-container {
    max-width: 100%;
    max-height: 85vh;
    overflow: auto;
    border-radius: 8px;
    background: #111;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lab-modal-image {
    width: auto;
    height: auto;
    max-width: none;
    display: block;
}

.lab-modal-close {
    position: fixed;
    top: 25px;
    right: 35px;
    color: var(--light);
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10010;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.lab-modal-close:hover {
    background: var(--accent);
    transform: rotate(90deg);
    color: var(--light);
}

@media (max-width: 768px) {

    .lab-grid,
    .lab-others-grid {
        grid-template-columns: 1fr;
    }

    .lab-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .lab-gallery-grid {
        grid-template-columns: 1fr;
    }

    .lab-intro-card {
        padding: 24px;
    }
}

/* animations prefixed */
.lab-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: labFadeInUp 0.8s ease forwards;
}

.lab-delay-1 {
    animation-delay: 0.1s;
}

.lab-delay-2 {
    animation-delay: 0.2s;
}

.lab-delay-3 {
    animation-delay: 0.3s;
}

.lab-delay-4 {
    animation-delay: 0.4s;
}

.lab-delay-5 {
    animation-delay: 0.5s;
}

.lab-delay-6 {
    animation-delay: 0.6s;
}

.lab-delay-7 {
    animation-delay: 0.7s;
}

.lab-delay-8 {
    animation-delay: 0.8s;
}

.lab-delay-9 {
    animation-delay: 0.9s;
}

.lab-delay-10 {
    animation-delay: 1s;
}

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


/* ----- ALL infrastructure page styles start with "infra-" ----- */
.infra-section {
    padding: 40px 0 70px;
}

.infra-intro-card {
    background: linear-gradient(145deg, var(--light), #f8fcff);
    border-radius: 32px;
    padding: 32px 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(63, 142, 158, 0.1);
    margin-bottom: 50px;
    font-size: 1.15rem;
    color: var(--dark-light);
    border-left: 8px solid var(--primary-light);
    line-height: 1.7;
}

.infra-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 35px 0 25px;
}

.infra-card {
    background: var(--light);
    border-radius: 28px;
    padding: 28px 26px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.infra-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.infra-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 14px;
}

.infra-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e2f0f5, #d0e8f0);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
    flex-shrink: 0;
}

.infra-card-title h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--dark);
}

.infra-card-title .infra-size {
    font-size: 0.95rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.infra-size i {
    color: var(--accent);
}

.infra-card-description {
    color: var(--dark-light);
    line-height: 1.6;
    font-size: 1rem;
    margin-top: 5px;
}

/* gallery */
.infra-gallery-title {
    margin: 60px 0 30px;
}

.infra-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.infra-gallery-item {
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: 0.3s;
    border: 2px solid transparent;
    background: #f0f0f0;
    position: relative;
}

.infra-gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.infra-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.infra-gallery-item .infra-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: var(--light);
    padding: 20px 12px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: 0.3s;
}

.infra-gallery-item:hover .infra-overlay-text {
    opacity: 1;
}

/* modal (prefixed) */
.infra-gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.infra-gallery-modal.active {
    display: flex;
}

.infra-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.infra-modal-image-container {
    max-width: 100%;
    max-height: 85vh;
    overflow: auto;
    border-radius: 8px;
    background: #111;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.infra-modal-image {
    width: auto;
    height: auto;
    max-width: none;
    display: block;
}

.infra-modal-close {
    position: fixed;
    top: 25px;
    right: 35px;
    color: var(--light);
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10010;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.infra-modal-close:hover {
    background: var(--accent);
    transform: rotate(90deg);
    color: var(--light);
}

@media (max-width: 768px) {
    .infra-grid {
        grid-template-columns: 1fr;
    }

    .infra-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .infra-gallery-grid {
        grid-template-columns: 1fr;
    }

    .infra-intro-card {
        padding: 24px;
    }
}

/* animations prefixed */
.infra-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: infraFadeInUp 0.8s ease forwards;
}

.infra-delay-1 {
    animation-delay: 0.1s;
}

.infra-delay-2 {
    animation-delay: 0.2s;
}

.infra-delay-3 {
    animation-delay: 0.3s;
}

.infra-delay-4 {
    animation-delay: 0.4s;
}

.infra-delay-5 {
    animation-delay: 0.5s;
}

.infra-delay-6 {
    animation-delay: 0.6s;
}

.infra-delay-7 {
    animation-delay: 0.7s;
}

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


/* ----- Courses Carousel (3 visible cards) ----- */
.courses-carousel-section {
    overflow: hidden;
}

.courses-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 -10px;
    /* offset arrow hover space */
}

.courses-carousel .carousel-arrow {
    position: static;
    /* override absolute positioning */
    transform: none;
    width: 40px;
    height: 40px;
    background: var(--light);
    color: var(--primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-light);
    flex-shrink: 0;
    margin: 0 5px;
}

.courses-carousel .carousel-arrow:hover {
    background: var(--primary);
    color: var(--light);
}

.courses-carousel-container {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
}

.courses-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.courses-carousel-slide {
    flex: 0 0 calc(33.333% - 13.333px);
    min-width: 250px;
    margin: 0;
}

a.course-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
}

a.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}


/* Responsive: 2 cards on tablets */
@media (max-width: 900px) {
    .courses-carousel-slide {
        flex: 0 0 calc(50% - 10px);
    }
}

/* 1 card on mobile */
@media (max-width: 600px) {
    .courses-carousel-slide {
        flex: 0 0 100%;
    }
}

/* Dots (optional) */
.courses-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.courses-carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: 0.3s;
}

.courses-carousel-dots .dot.active {
    background: var(--primary);
    transform: scale(1.2);
}


/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    /* sits above the scroll-to-top button */
    right: 30px;
    width: 45px;
    height: 45px;
    background: #25D366;
    /* WhatsApp green */
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128C7E;
    /* darker green on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* Small screens adjustment */
@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }
}


/* ----- all contact page styles start with "contact-" ----- */
.contact-section {
    padding: 40px 0 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0 50px;
}

.contact-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 32px 24px 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(0, 20, 30, 0.02);
    border: 1px solid rgba(63, 142, 158, 0.1);
    transition: all 0.25s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 40px rgba(63, 142, 158, 0.08);
    border-color: var(--primary-light);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ecf6f9, #ddeef5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.contact-card:hover .contact-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.contact-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 15px;
    border-bottom: 2px solid rgba(63, 142, 158, 0.2);
    padding-bottom: 10px;
    width: 100%;
}

.contact-details {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dark-light);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.contact-details p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-details i {
    color: var(--accent);
    width: 20px;
    font-size: 1rem;
}

.contact-details .phone-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.contact-details a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: 0.2s;
}

.contact-details a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* map container */
.contact-map-container {
    background: #ffffff;
    border-radius: 32px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(63, 142, 158, 0.1);
    margin: 30px 0 20px;
}

.contact-map-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
}

.contact-map-title i {
    color: var(--primary);
    font-size: 1.8rem;
}

.contact-map-frame {
    width: 100%;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f5;
}

.contact-map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* animations prefixed */
.contact-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: contactFadeInUp 0.8s ease forwards;
}

.contact-delay-1 {
    animation-delay: 0.1s;
}

.contact-delay-2 {
    animation-delay: 0.2s;
}

.contact-delay-3 {
    animation-delay: 0.3s;
}

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

/* ===== BANNER MODAL ===== */
.banner-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 9999;
}

.banner-modal.active {
    opacity: 1;
    visibility: visible;
}

.banner-modal-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-modal-content img {
    max-width: 90vw;   /* never exceed screen width */
    max-height: 90vh;  /* never exceed screen height */
    width: auto;
    height: auto;
    object-fit: contain; /* VERY IMPORTANT → no cropping */
    border-radius: 10px;
}

/* Close button */
.banner-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    color: #000;
    font-size: 22px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Animation */
@keyframes scaleIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}