/* ============================================================
   BD BLOCKS — Modern School Hostel Redesign
   Aesthetic: Warm-Academic Editorial
   Palette: Deep Navy · Warm Cream · Gold Accent · Sage
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&family=DM+Serif+Display:ital@0;1&display=swap");

/* ── CSS Variables ── */
:root {
    --navy: #0d1b3e;
    --navy-mid: #1a2e5a;
    --navy-soft: #243b6a;
    --gold: #c9962a;
    --gold-lt: #e8b84b;
    --cream: #faf6ef;
    --cream-dk: #f0e9da;
    --sage: #4a7c6f;
    --sage-lt: #6a9e8f;
    --white: #ffffff;
    --text-dark: #1a1a2e;
    --text-mid: #3d3d5c;
    --text-soft: #6b6b8a;
    --border: rgba(13, 27, 62, 0.12);
    --shadow-sm: 0 2px 12px rgba(13, 27, 62, 0.08);
    --shadow-md: 0 8px 32px rgba(13, 27, 62, 0.12);
    --shadow-lg: 0 20px 60px rgba(13, 27, 62, 0.18);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --font-display: "Playfair Display", Georgia, serif;
    --font-serif: "DM Serif Display", Georgia, serif;
    --font-body: "DM Sans", "Hind Siliguri", -apple-system, sans-serif;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    padding-top: 0;
    /* header now uses document flow (not fixed) */
}

.en {
    font-family: var(--font-body);
}

.bn {
    font-family: "Shurjo", var(--font-body), sans-serif;
}

button,
a,
input {
    font-family: inherit;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

img {
    width: 100%;
    display: block;
}

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

ul {
    list-style: none;
}

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

.pt-50 {
    padding-top: 50px;
}

.pb-50 {
    padding-bottom: 50px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-50 {
    margin-bottom: 50px;
}

button:focus,
a:focus,
input:focus {
    outline: none;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

/* ── Decorative Texture Overlay ── */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    /* keep below everything — never blocks clicks or scroll */
    opacity: 0.4;
    will-change: transform;
    /* own compositor layer — no scroll jank */
}





/* ══════════════════════════════════════════
   SECTION HEADING (GLOBAL)
══════════════════════════════════════════ */
.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading h3 {
    font-family: var(--font-display);
    font-size: clamp(28px, 2.2vw + 18px, 42px);
    color: var(--navy);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-heading p.sub-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: none;
    max-width: none;
    margin: 0;
}

.section-heading p.sub-title::before,
p.sub-title::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--gold);
    position: static;
    left: auto;
    top: auto;
    border-radius: 2px;
}

.section-heading p.sub-title::after {
    content: "";
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

/* Override the old pseudo-element approach */
p.sub-title:before {
    position: static;
    height: 2px;
    width: 32px;
    background: var(--gold);
    content: "";
    z-index: 0;
    transform: none;
    box-shadow: none;
    border-radius: 2px;
}

/* ================================
   SCROLL TO TOP BUTTON (MODERN)
================================ */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 16px;

    background: linear-gradient(135deg, #c9962a, #f0c14b);
    color: #0b1220;

    border: none;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    cursor: pointer;

    box-shadow: 0 10px 30px rgba(201, 150, 42, 0.35);

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);

    transition: all 0.3s ease;
    z-index: 9999;
}

/* Hover effect */
#scrollTopBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(201, 150, 42, 0.45);
    background: linear-gradient(135deg, #d4a63f, #f3cd64);
}

/* Show state */
#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}






/* =========================================================
    CORE UTILITIES & VARIABLES DEFAULT (If missing)
========================================================= */
/* :root {
    --primary-gradient: linear-gradient(135deg, #0f53a1, #07346c);
    --surface-light: #fafafc;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
} */



/* ══════════════════════════════════════════
   GALLERY AREA
══════════════════════════════════════════ */
.gallery-area {
    padding: 100px 0 60px;
    background: var(--cream);
}

.mb-35 {
    margin-bottom: 35px;
}

.gallery-area .image-gallery-slider,
.main-single-video {
    max-width: 72%;
    margin: 0 auto;
    padding-bottom: 50px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    color: var(--white);
    transform: translate(-50%, -50%);
    margin-top: -44px;
    opacity: 0;
    transition: var(--transition);
}

.image-gallery-slider:hover .swiper-button-next:after,
.image-gallery-slider:hover .swiper-button-prev:after {
    opacity: 1;
}

.image-gallery-slider .image-title,
.main-single-video .video-caption {
    padding: 10px 0;
    border: 1px solid var(--border);
    text-align: center;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: var(--white);
}

.image-title p,
.video-caption p {
    font-size: 18px;
    padding: 0 12px;
}

.image-category-title,
.video-category-title {
    padding: 12px 0;
    display: grid;
    grid-template-columns: 3fr 1fr;
    margin-bottom: 16px;
    align-items: center;
}

.category-name h4 {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--white);
    position: relative;
    display: inline-block;
    padding: 10px 16px 10px 48px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-name h4:before {
    position: absolute;
    left: 22px;
    top: 0;
    height: 100%;
    width: calc(100% + 30px);
    background: var(--sage);
    content: "";
    border-radius: 6px;
    transform: skew(-20deg);
    z-index: -1;
    box-shadow: 4px 4px 12px rgba(74, 124, 111, 0.3);
}

.count-image a,
.count-video a {
    text-align: right;
    display: block;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 0;
    letter-spacing: 0.06em;
}

.count-image a:hover,
.count-video a:hover {
    color: var(--sage);
}

.image-gallery,
.video-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.gallery-single-item {
    max-width: 200px;
    margin: 0 auto;
}

.gallery-single-img,
.gallery-single-video {
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.gallery-single-img img {
    width: 100%;
    transition: transform 0.5s ease;
}

.gallery-single-img img,
.gallery-single-video img {
    min-height: 120px;
    object-fit: cover;
}

.gallery-single-img:hover img,
.gallery-single-video:hover img {
    transform: scale(1.08);
}

.gallery-single-item a.img-title,
.gallery-single-item a.video-title {
    font-family: "Shurjo", var(--font-body), sans-serif;
    margin-top: 6px;
    display: block;
    font-size: 13px;
    color: var(--text-mid);
    transition: color 0.3s;
}

.gallery-single-item a.img-title:hover,
.gallery-single-item a.video-title:hover {
    color: var(--navy);
}

@media (max-width: 991px) {

    .image-gallery,
    .video-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .pagination {
        overflow-x: scroll;
        scrollbar-width: none;
    }
}

@media (max-width: 767px) {

    .count-image a,
    .count-video a {
        font-size: 14px;
    }
}

@media (max-width: 575px) {

    .gallery-area .image-gallery-slider,
    .main-single-video {
        max-width: 100%;
    }

    .image-category-title,
    .video-category-title {
        grid-template-columns: 2fr 1fr;
    }

    .category-name h4 {
        font-size: 13px;
    }

    .count-image a,
    .count-video a {
        font-size: 12px;
    }

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

/* ══════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════ */
.pagination {
    padding-left: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
    scrollbar-width: none;
}

.pagination a.page-link {
    font-size: 14px;
    font-family: var(--font-body);
    border: 1.5px solid var(--border);
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-mid);
    font-weight: 500;
    transition: var(--transition);
}

.pagination a.active-page,
.pagination a.page-link:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.item-pagination {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    padding: 50px 0;
}

.item-pagination a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    transition: var(--transition);
    color: var(--text-mid);
    font-weight: 500;
    font-size: 14px;
}

.item-pagination a:hover,
.item-pagination a.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}



/* ══════════════════════════════════════════
   UTILITY / MISC
══════════════════════════════════════════ */


.mfp-iframe-scaler iframe {
    border: 2px solid rgba(201, 150, 42, 0.3);
    border-radius: var(--radius-sm);
}

.mfp-title {
    position: absolute;
    color: var(--cream);
    font-size: 18px;
    margin-top: 12px;
    text-align: center;
    display: block;
    width: 100%;
}

/* Video Play Button */
.main-video {
    height: 100%;
    position: relative;
}

.main-video img {
    width: 100%;
}

.video-play-button {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    margin: 0;
    box-sizing: content-box;
    width: 2rem;
    height: 2.75rem;
    padding: 1.125rem 1.25rem 1.125rem 1.75rem;
    border-radius: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.video-play-button::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    display: block;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--sage);
    animation: pulse-border 1500ms ease-out infinite;
    transform: translateX(-50%) translateY(-50%);
}

.video-play-button::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    display: block;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--sage);
    transition: all 200ms;
    transform: translateX(-50%) translateY(-50%);
}

.video-play-button.s-video-btn::before {
    width: 50px;
    height: 50px;
}

.video-play-button.s-video-btn::after {
    width: 50px;
    height: 50px;
}

.video-play-button span {
    position: relative;
    display: block;
    z-index: 3;
    top: 6px;
    left: 4px;
    width: 0;
    height: 0;
    border-left: 26px solid #fff;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
}

.video-play-button.s-video-btn span {
    top: 12px;
    left: 7px;
    border-left: 17px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) scale(1.5);
        opacity: 0;
    }
}

.gallery-single-video {
    position: relative;
}

.gallery-single-video img {
    width: 100%;
}

/* AOS override — keep existing classes working */
[data-aos] {
    transition-duration: 600ms;
}


/* ══════════════════════════════════════════
   SWIPER OVERRIDES (expand slider)
══════════════════════════════════════════ */

.swiper-wrapper {
    gap: 16px;
}

.swiper.projectBrochure .swiper-slide {
    display: flex;
    align-items: stretch;
    width: 200px;
    transition: width 0.4s ease;
    background: var(--navy);
    border-radius: var(--radius-sm);
    overflow: hidden;
}


.swiper.projectBrochure .swiper-slide:hover {
    width: 600px;
}

.swiper.projectBrochure .swiper-slide:hover {
    flex: 0 0 400px;
    opacity: 1;
    display: block;
}




.image-gallery-slider {
    left: 30px !important;
}

/* ══════════════════════════════════════════
   SCROLL ANIMATIONS (Keyframes)
══════════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Smooth focus indicator for accessibility */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}