/********** Template CSS **********/

:root {
    --primary: #b20107;
    --light: #F0FBFC;
    --dark: #181d38;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;

}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    /*  font-family: 'Libre Baskerville', serif;*/
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 0px;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #0007bb;
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-collapse {
        position: absolute;
        background: #fff;
        box-shadow: 1px 1px 10px 5px rgb(0 0 0 / 20%);
        right: 95px;
        top: 95px;
    }
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header carousel ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
    background-color: #0007bb;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background-image: url(../img/Images/img3.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: overlay;
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** Service ***/
.service-item {
    background: var(--light);
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Categories & Courses ***/
.category img,
.course-item img {
    transition: .5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 8px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}


.first-logo {
    width: 100%;
    height: auto;

}

.collapse navbar-collapse {
    padding-bottom: 79px;
}

.row g-4 justify-content-center {
    padding-top: 42px;
}

.team-item bg-light {
    box-shadow: 0px 1px 18px 3px rgb(0 0 0 / 40%);
}

.navbar h2 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 5px;
    font-weight: 700;

}

.navbar h3 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 5px;
    color: #fb0003;
    font-weight: 700;
}


@media (max-width: 991px) and (min-width: 578px) {
    .first-logo {
        max-width: 90px;
    }
}

@media (max-width: 576px) {
    .first-logo {
        max-width: 90px;
        width: 100%;
        margin: 5px auto;
    }

    .mobile-menu {
        text-align: center;
    }

    .navbar-collapse {
        position: relative;
        width: 100%;
        right: 0px;
        top: 10px;
    }

    .navbar-toggler {
        margin: 5px auto;
    }

    .dropdown-menu {
        border: none;
        text-align: center;
    }
}


/* ════════════════════════════════════════════════
   GALLERY PAGE – GRADUATION DAY 2026 THEME
   ════════════════════════════════════════════════ */

/* ── Gallery section wrapper ── */
.gallery-section {
    padding: 60px 0 80px;
    background: #f8f6ff;
}

/* ── Tab buttons ── */
.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}
.gallery-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 26px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #fff;
    color: #444;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.gallery-tab-btn .tab-icon { font-size: 1.1rem; }
.gallery-tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.gallery-tab-btn.active[data-tab="all"] {
    background: linear-gradient(135deg, #1a1248, #2d1b69);
    color: #FFD700;
    border-color: #FFD700;
    box-shadow: 0 6px 18px rgba(26,18,72,0.3);
}
.gallery-tab-btn.active[data-tab="graduation"] {
    background: linear-gradient(135deg, #8B0000, #c0392b);
    color: #FFD700;
    border-color: #FFD700;
    box-shadow: 0 6px 18px rgba(139,0,0,0.35);
}
.gallery-tab-btn.active[data-tab="cultural"] {
    background: linear-gradient(135deg, #b5520a, #e67e22);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 6px 18px rgba(181,82,10,0.3);
}
.gallery-tab-btn.active[data-tab="sports"] {
    background: linear-gradient(135deg, #006633, #00a152);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 6px 18px rgba(0,102,51,0.3);
}
.gallery-tab-btn.active[data-tab="christmas"] {
    background: linear-gradient(135deg, #8B0000, #c41230);
    color: #ffffff;
    border-color: #FFD700;
    box-shadow: 0 6px 18px rgba(139,0,0,0.4);
}
.tab-count {
    background: rgba(0,0,0,0.12);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 700;
}
.gallery-tab-btn.active .tab-count { background: rgba(255,255,255,0.25); }

/* ── Photo Grid ── */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.photo-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    background: #ddd;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    aspect-ratio: 4/3;
}
.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.photo-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 14px 40px rgba(0,0,0,0.22);
}
.photo-card:hover img { transform: scale(1.08); }

/* Hover overlay */
.photo-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,18,72,0.75) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}
.photo-card:hover .overlay { opacity: 1; }
.photo-card .overlay .zoom-icon {
    color: #FFD700;
    font-size: 1.6rem;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,215,0,0.5);
    backdrop-filter: blur(4px);
    margin-left: auto;
    transition: transform 0.2s;
}
.photo-card:hover .overlay .zoom-icon { transform: scale(1.1); }

/* Hidden state */
.photo-card.hidden { display: none; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    display: none;
}
.empty-state .icon { font-size: 3rem; margin-bottom: 14px; }

/* ── LIGHTBOX ── */
#gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5,3,20,0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
#gallery-lightbox.active {
    opacity: 1;
    pointer-events: all;
}
.lb-inner {
    position: relative;
    width: 92vw;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lb-image-wrap {
    width: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
    background: #111;
    max-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lb-image-wrap img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    display: block;
    transition: opacity 0.25s ease;
}
.lb-image-wrap img.fade-out { opacity: 0; }

/* Nav arrows */
.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,215,0,0.4);
    color: #FFD700;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    backdrop-filter: blur(6px);
    z-index: 10;
    user-select: none;
}
.lb-arrow:hover {
    background: rgba(255,215,0,0.25);
    transform: translateY(-50%) scale(1.1);
}
.lb-arrow.prev { left: -26px; }
.lb-arrow.next { right: -26px; }

/* Close button */
#lb-close {
    position: absolute;
    top: -52px;
    right: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    backdrop-filter: blur(6px);
}
#lb-close:hover {
    background: rgba(220,50,50,0.6);
    border-color: #ff4444;
    transform: scale(1.12);
}

/* Counter & meta */
.lb-meta {
    margin-top: 16px;
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
}
.lb-counter { font-weight: 700; color: #FFD700; }
.lb-category-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.lb-category-pill.graduation { background: rgba(139,0,0,0.8); color: #FFD700; }
.lb-category-pill.cultural   { background: rgba(181,82,10,0.8); color: #fff; }
.lb-category-pill.sports     { background: rgba(0,102,51,0.8); color: #fff; }
.lb-category-pill.christmas  { background: rgba(139,0,0,0.9); color: #FFD700; }

/* Thumbnail strip */
.lb-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    overflow-x: auto;
    max-width: 100%;
    padding: 4px 2px;
    scrollbar-width: thin;
    scrollbar-color: #FFD700 rgba(255,255,255,0.1);
}
.lb-thumbs::-webkit-scrollbar { height: 4px; }
.lb-thumbs::-webkit-scrollbar-track { background: rgba(255,255,255,0.08); }
.lb-thumbs::-webkit-scrollbar-thumb { background: #FFD700; border-radius: 4px; }
.lb-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.55;
    transition: all 0.22s;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb.active { border-color: #FFD700; opacity: 1; transform: scale(1.08); }
.lb-thumb:hover { opacity: 0.85; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .lb-arrow.prev { left: -18px; width: 40px; height: 40px; font-size: 1rem; }
    .lb-arrow.next { right: -18px; width: 40px; height: 40px; font-size: 1rem; }
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
}

/* ── Pagination ── */
.gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-bottom: 10px;
}
.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 2px solid #e0ddf5;
    background: #fff;
    color: #1a1248;
    font-family: 'Inter', 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.pg-btn:hover:not(.disabled) {
    background: #f0eeff;
    border-color: #1a1248;
    color: #1a1248;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26,18,72,0.15);
}
.pg-btn.pg-num.active {
    background: linear-gradient(135deg, #1a1248, #2d1b69);
    border-color: #1a1248;
    color: #FFD700;
    box-shadow: 0 4px 14px rgba(26,18,72,0.3);
    transform: translateY(-2px);
}
.pg-btn.pg-arrow {
    font-size: 1.3rem;
    font-weight: 400;
    color: #1a1248;
}
.pg-btn.disabled,
.pg-btn[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
@media (max-width: 480px) {
    .pg-btn { min-width: 34px; height: 34px; padding: 0 10px; font-size: 0.82rem; }
}