@import url('https://fonts.googleapis.com/css2?family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/* font-family: "Playfair", serif;*/
/* font-family: "Poppins", sans-serif;*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    width: 100%;
    height: 100%;
}

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

.top {
    width: 98%;
    margin: 0 auto;
    max-width: 1600px;
}

.d-flex-full {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Navbar Layout */

.navbar {
    padding: 16px 40px;
    background: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    top: 20px;
    right: 0;
    left: 0;
    z-index: 3;
    will-change: transform;
    width: 98%;
    max-width: 1600px;
    margin: 0 auto;
    border-radius: 50px;
    transition: width 0.28s ease, max-width 0.28s ease, border-radius 0.28s ease, top 0.28s ease, background-color 0.28s ease;
    overflow: visible;
}

.navbar.navbar-scrolled-up {
    width: 100%;
    max-width: none;
    top: 0;
    background: #ffffff;
    border-radius: 0;
}

.navbar::before {
    content: "";
    position: absolute;
    border-radius: inherit;
    padding: 5px;
    inset: -4px;
    background: linear-gradient(135deg, #f8e7b5, #c89b3c, #fff4cf, #b8860b, #f8e7b5);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #000000;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.logo-icon {
    width: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 50px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: #2d2d2d;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 140%;
    margin: 0;
}

.nav-link.active,
.nav-link:hover {
    color: #9d261a;
}

/* ==============================================
           EXACT DROPDOWN ICON FLIP/ROTATE ANIMATION
           ============================================== */
.nav-link i {
    font-size: 11px;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover karne par Arrow/Chevron UP direction me rotate ho jayega (Exact Video Animation) */
.nav-link:hover i {
    transform: rotate(180deg);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #9d261a;
    cursor: pointer;
    position: relative;
    z-index: 4;
}

.nav-toggle-inline {
    width: 40px;
    height: 40px;
    background: transparent;
    color: #9d261a;
    border: 0;
}

.nav-toggle i {
    font-size: 18px;
    line-height: 1;
    color: #000;
}

.nav-toggle-close {
    display: none;
}

.mobile-nav-panel {
    display: none;
    pointer-events: none;
}

.mobile-nav-panel[hidden] {
    display: none !important;
    pointer-events: none !important;
}

.mobile-nav-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: min(100%, 420px);
    min-height: calc(100vh - 24px);
    margin: 0;
    padding: 18px 16px 20px;
    border-radius: 0;
    background: linear-gradient(180deg, #fdf2df 0%, #fdf2df 88px, #fdf2df 88px, #fdf2df 100%);
    color: #000000;
    box-shadow: -28px 0 70px rgba(0, 0, 0, 0.18);
    border-left: 1px solid rgba(157, 38, 26, 0.08);
    overflow: auto;
    transform: translateX(100%);
    transition: transform 0.35s ease;
}

.mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fdf2df;
}

.mobile-brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    background: #fdf2df;
    flex: 0 0 auto;
}

.mobile-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mobile-brand-text {
    font-family: "Playfair", serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #000;
}

.mobile-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 4px;
    background: rgba(11, 25, 44, 0.08);
    border: 1px solid rgba(11, 25, 44, 0.08);
}

.mobile-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0b192c;
    font-size: 15px;
}

.mobile-search input::placeholder {
    color: rgba(11, 25, 44, 0.55);
}

.mobile-search button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #9d261a;
    cursor: pointer;
}

.mobile-nav-menu {
    list-style: none;
    display: grid;
    gap: 0;
    padding: 4px 0 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid rgba(11, 25, 44, 0.08);
}

.mobile-nav-menu .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 18px 0;
    color: #0b192c;
    font-size: 18px;
    font-weight: 500;
}

.mobile-nav-menu .nav-link.active,
.mobile-nav-menu .nav-link:hover {
    color: #9d261a;
}

.mobile-nav-menu .nav-link i {
    font-size: 12px;
    color: #9d261a;
}

.mobile-contact-block {
    display: grid;
    gap: 12px;
    padding-top: 8px;
}

.mobile-contact-block h4 {
    font-family: "Playfair", serif;
    font-size: 28px;
    line-height: 1.1;
    color: #0b192c;
    margin: 0 0 2px;
}

.mobile-contact-item {
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(11, 25, 44, 0.08);
}

.mobile-contact-item span {
    font-size: 13px;
    color: rgba(11, 25, 44, 0.6);
}

.mobile-contact-item a,
.mobile-contact-item p {
    color: #0b192c;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
}

.mobile-social-block {
    display: grid;
    gap: 14px;
    padding-top: 4px;
}

.mobile-social-block h4 {
    font-family: "Playfair", serif;
    font-size: 30px;
    line-height: 1.1;
    color: #9c261a;
    margin: 0;
}

.mobile-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-socials a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(157, 38, 26, 0.1);
    color: #9d261a;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.mobile-socials a:nth-child(1) {
    color: #1877f2;
}

.mobile-socials a:nth-child(2) {
    color: #e4405f;
}

.mobile-socials a:nth-child(3) {
    color: #0a66c2;
}

.mobile-socials a:nth-child(4) {
    color: #000000;
}

.mobile-socials a:hover {
    transform: translateY(-2px);
    background: rgba(157, 38, 26, 0.18);
}

.mobile-quote-btn {
    width: 100%;
    justify-content: center;
    background: #9d261a !important;
    border-color: #9d261a !important;
    color: #ffffff !important;
    margin-top: auto;
}

body.mobile-menu-lock {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.explore-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

/* ==============================================
           EXACT BUTTON + ARROW SWAP HOVER ANIMATION
           ============================================== */
.quote-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: #fdf2df;
    padding: 3px 22px 3px 5px;
    border-radius: 50px;
    text-decoration: none;
    border: 5px solid #fff;
    overflow: hidden;
    cursor: pointer;
    isolation: isolate;
}

/* Blue Background Pill Fill Animation */
.quote-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45px;
    height: 100%;
    background: #9d261a;
    border-radius: 50px;
    z-index: 1;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-btn:hover::before {
    width: 100%;
}

.quote-btn2 {
    background: #f7ebd1 !important;
    border: 5px solid #f7ebd1 !important;
}

/* Arrow Icon Box Container (Overflow Hidden for Masking) */
.btn-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-right: 12px;
    overflow: hidden;
    /* Important: Arrow baahar jate waqt mask ho jaye */
}

/* Double Arrow Sliding Logic */
.arrow-primary,
.arrow-secondary {
    position: absolute;
    color: #ffffff;
    font-size: 14px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* Default Arrow State */
.arrow-primary {
    transform: translateX(0);
    opacity: 1;
}

/* Hidden Arrow State (Starts Hidden on Left Side) */
.arrow-secondary {
    transform: translateX(-30px);
    opacity: 0;
}

/* HOVER STATES: Swapping Arrows */
/* 1. Main Arrow Right slide hokar invisible hoga */
.quote-btn:hover .arrow-primary {
    transform: translateX(30px);
    opacity: 0;
}

/* 2. Left Hidden Arrow enter karke center me aayega */
.quote-btn:hover .arrow-secondary {
    transform: translateX(0);
    opacity: 1;
}

/* Text Color Transition */
.btn-text {
    position: relative;
    z-index: 2;
    color: #040a1b;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.quote-btn:hover .btn-text {
    color: #ffffff;
}

.mobile-nav-menu {
    list-style: none;
}

/* banner section */

.banner-section {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 980;
    height: auto;
    display: block;
    overflow: hidden;
    z-index: 1;
}

.banner-section::before {
    position: absolute;
    content: "";
    bottom: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 40px;
    -webkit-mask-image: url(../images/h1-hero-shapes.svg);
    mask-image: url(../images/h1-hero-shapes.svg);
    background: #9d261a;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center bottom;
    mask-position: center bottom;
    -webkit-mask-size: cover;
    mask-size: cover;
    z-index: 2;
}

.about-section::before {
    position: absolute;
    content: "";
    bottom: -40px;
    inset-inline-start: 0;
    width: 100%;
    height: 40px;
    -webkit-mask-image: url(../images/h1-hero-shapes.svg);
    mask-image: url(../images/h1-hero-shapes.svg);
    background: #9d261a;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: top center;
    mask-position: top center;
    -webkit-mask-size: cover;
    mask-size: cover;
    z-index: 2;
    rotate: 180deg;
}

.banner-section .img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 110%;
    scale: 1.3;
    object-fit: cover;
    object-position: center center;
    will-change: transform;
}

.banner-section.banner-swiper-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 980;
    height: auto;
    display: block;
    overflow: hidden;
    z-index: 1;
    isolation: isolate;
    background: #fdf2df;
}

.banner-swiper {
    width: 100%;
    height: 100%;
}

.banner-swiper .swiper-wrapper,
.banner-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.banner-media img {
    width: 100%;
    height: 128%;
    display: block;
    object-fit: cover;
    object-position: center center;
    transform: translate3d(0, 0, 0) scale(1.28);
    transition: transform 0.25s ease-out;
    will-change: transform;
}

.banner-pagination.swiper-pagination {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: 52px;
    z-index: 3;
    display: inline-flex;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 10px;
    background: #fff;
    border-radius: 50px;
}

.banner-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 !important;
    background: rgb(253 242 223);
    opacity: 1;
    border: 2px solid #9d261a;
    transition: transform 0.25s ease, background-color 0.25s ease, width 0.25s ease;
}

.banner-pagination .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 999px;
    background: #9d261a;
    transform: scale(1);
}

.banner-section.banner-swiper-wrap::before {
    position: absolute;
    content: "";
    bottom: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 40px;
    -webkit-mask-image: url(/site/templates/assets/aj-uttam/images/h1-hero-shapes.svg);
    mask-image: url(/site/templates/assets/aj-uttam/images/h1-hero-shapes.svg);
    background: #9d261a;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center bottom;
    mask-position: center bottom;
    -webkit-mask-size: cover;
    mask-size: cover;
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 911px) {
    .navbar {
        top: 0;
        width: 100%;
        max-width: none;
        border-radius: 0;
        padding: 14px 20px;
    }

    .navbar::before {
        inset: 0;
        padding: 0;
    }

    .top {
        width: 100%;
    }

    .nav-menu,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .mobile-nav-panel {
        position: fixed;
        inset: 0;
        z-index: 20;
        padding: 0;
        display: flex;
        justify-content: flex-end;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
    }

    .navbar.mobile-menu-open .mobile-nav-panel {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-nav-shell {
        width: min(80vw, 410px);
        height: 100%;
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
        padding: 16px 18px 20px;
        box-shadow: -28px 0 58px rgba(0, 0, 0, 0.18);
        border-left: 4px solid #9d261a;
        transform: translateX(100%);
        transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .mobile-nav-head {
        padding-bottom: 6px;
    }

    .mobile-brand-text {
        font-size: 23px;
    }

    .nav-toggle-inline {
        width: 34px;
        height: 34px;
        color: #fdf2df;
        border: 2px solid #9d261a;
        padding: 10px;
        border-radius: 50%;
    }

    .mobile-nav-menu .nav-link {
        padding: 16px 0;
        font-size: 16px;
    }

    .mobile-quote-btn {
        width: 100%;
        justify-content: center;
    }

    .navbar.mobile-menu-open .nav-toggle-open {
        display: none;
    }

    .navbar.mobile-menu-open .nav-toggle-close {
        display: inline-block;
    }

    .navbar.mobile-menu-open .mobile-nav-shell {
        transform: translateX(0);
    }
}

/* about section */

.about-section {
    position: relative;
    width: 100%;
    /* height: 100vh; */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 130px 0;
    background: #fff;
    z-index: 2;
    background: url(../images/about-bg.webp) center / cover no-repeat;
    overflow: clip;
}

.about-img {
    width: 34vw;
    height: 34vw;
    background: #efefef;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 26%;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

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

.about-content {
    position: relative;
    z-index: 2;
    min-height: 420px;
    grid-area: 2 / 2;
}

/* Decorative line draw on the about section */

.about-line-svg {
    position: absolute;
    top: 15%;
    right: 0;
    width: 300px;
    height: 900px;
    rotate: 16deg;
    overflow: visible;
    z-index: 1;
    pointer-events: none;
}

.about-line-path {
    fill: none;
    stroke: #9d261a;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.word {
    display: inline-block;
    overflow: hidden;
}

.char {
    font-family: "Playfair", serif;
    display: inline-block;
    transform: translateY(120%);
    will-change: transform, opacity;
}

.about-content h3 {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    line-height: 140%;
    font-weight: 600;
    color: #9d261a;
    text-align: left;
    /* background-color: #f7ebd1; */
    border: 2px solid #f7ebd1;
    border-left-width: 6px;
    border-bottom-width: 5px;
    display: inline-block;
    padding: 5px 27px;
    border-radius: 50px;
    margin: 0 0 10px;
    letter-spacing: 0.2px;
}

.about-content h2 {
    font-family: "Playfair", serif;
    font-size: 64px;
    font-weight: 600;
    line-height: 100%;
    color: #000;
    margin: 0 0 10px;
    display: block;
}

.about-content p {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    line-height: 150%;
    font-weight: 400;
    color: #2d2d2d;
    text-align: justify;
    margin: 0 0 20px;
    max-width: 80%;
}

/* Dot Wrapper */
.dots {
    position: absolute;
    top: 5%;
    left: 4.5%;
    display: grid;
    grid-template-columns: repeat(3, 12px);
    gap: 16px 9px;
    animation: float 2.8s ease-in-out infinite;
}

.portal-dots {
    bottom: 4%;
    right: 3%;
    z-index: 2;
    left: unset;
    top: unset;
}

.portal-corner-top-right {
    rotate: -90deg;
}

.portal-corner-bottom-left {
    rotate: 90deg;
}

.portal-corner {
    position: absolute;
    width: 320px;
    height: 320px;
    pointer-events: none;
    z-index: 3;
    z-index: 2;
}

.portal-corner svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.portal-corner-path,
.portal-corner-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portal-corner-path {
    stroke: rgba(169, 114, 84, 0.14);
    stroke-width: 2;
}

.portal-corner-line {
    stroke: #b2392c;
    stroke-width: 2.5;
}

.portal-corner-top-right {
    top: 0;
    right: 0;
}

.portal-corner-bottom-left {
    bottom: 0;
    left: 0;
    transform: rotate(180deg);
}

/* Individual Dot */
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9d261a;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5), 0 1px 2px rgba(0, 0, 0, .15);
}

/* Continuous Up Down Animation */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }

    100% {
        transform: translateY(0);
    }
}

.counter-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: #fdf2df;
    color: #0b192c;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.counter-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-sub-title {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    line-height: 140%;
    font-weight: 600;
    color: #9d261a;
    text-align: left;
    background-color: #fdf2df;
    border: 2px solid #ffffff;
    border-left-width: 6px;
    border-bottom-width: 5px;
    display: inline-block;
    padding: 5px 27px;
    border-radius: 50px;
    margin: 0 0 10px;
    letter-spacing: 0.2px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.counter-title {
    font-family: "Playfair", serif;
    font-size: 64px;
    font-weight: 600;
    line-height: 100%;
    color: #000;
    margin: 0 0 20px;
    display: block;
    text-align: center;
}

.stats-container {
    width: 100%;
    display: flex;
    background-color: #fefefe;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.stat-item {
    flex: 1;
    padding: 40px 30px;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
}

.stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #e2e8f0;
}

.stat-item:not(:last-child)::before {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border: 2px solid #9d261a;
    background-color: #ffffff;
    border-radius: 50%;
    z-index: 2;
}

.stat-number {
    font-family: "Playfair", serif;
    font-size: 54px;
    font-weight: 600;
    line-height: 140%;
    color: #000;
    margin: 0 0 20px;
    text-align: center;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 2px;
    justify-content: center;
}

.stat-number .count {
    display: inline-block;
    min-width: 1ch;
}

.stat-label {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    color: #9d261a;
    font-weight: 400;
    line-height: 140%;
    margin: 0;
    text-align: center;
}

.counter-bg {
    position: absolute;
    right: -9%;
    top: 0;
    z-index: -1;
    opacity: 0.1;
    width: 500px;
    animation: rotate360 25s linear infinite;
    transform-origin: center;
    will-change: transform;
}

@keyframes rotate360 {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}

@media (max-width: 900px) {
    .books-grid {
        justify-content: space-evenly;
    }

    .stats-container {
        flex-direction: column;
    }

    .stat-item:not(:last-child)::after {
        width: 100%;
        height: 1px;
        top: auto;
        bottom: 0;
        left: 0;
    }

    .stat-item:not(:last-child)::before {
        right: 50%;
        top: auto;
        bottom: -5px;
        transform: translateX(50%);
    }
}

/* footer section */

.site-footer {
    background-color: #fdf2df;
    width: 100%;
    position: relative;
    border-top: 1px solid #e5e7eb;
    overflow: hidden;
    position: sticky;
    left: 0;
    bottom: 0;
    z-index: 0;
    padding-top: 35px;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.7fr 1.3fr;
    position: relative;
}

.footer-col {
    padding: 70px 40px;
}

.footer-col.contact-right-col {
    border-left: 1px solid #9d261a38;
    padding-left: 50px;
}

.brand-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo i {
    color: #2563eb;
}

.company-bio {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    line-height: 150%;
    font-weight: 400;
    color: #000;
    margin: 0;
    text-align: justify;
    max-width: 400px;
}

.footer-col h3 {
    font-family: "Playfair", serif;
    font-size: 34px;
    font-weight: 500;
    color: #9d261a;
    margin-bottom: 30px;
    line-height: 140%;
}

.office-block {
    margin-bottom: 24px;
    font-family: "Poppins", sans-serif;
    color: #fff;
    font-size: 18px;
}

.office-label {
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.office-text {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    color: #000;
    font-weight: 400;
    line-height: 140%;
    margin: 0;
    text-decoration: none;
    display: block;
    display: flex;
    gap: 10px;
}

.office-text i,
.office-phone i {
    line-height: 140%;
    color: #9d261a;
}

.office-phone {
    display: inline-block;
    letter-spacing: 0.3px;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    color: #000;
    font-weight: 400;
    line-height: 140%;
    margin: 0;
    text-decoration: none;
}

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

.footer-links li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    transition: all .3s linear;
}

.footer-links li:hover {
    transform: translateX(10px);
}

.footer-links li i {
    margin-right: 10px;
    color: #9d261a;
}

.footer-links a {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    color: #000;
    font-weight: 400;
    line-height: 140%;
    margin: 0;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: #9d261a;
}

.badge-blue {
    background-color: #2563eb;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 8px;
    letter-spacing: 0.5px;
}

.footer-bottom {
    border-top: 1px solid #fdf2df3b;
    background-color: #9d261a;
    padding: 22px 0px;
}

.bottom-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.copyright-text {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    line-height: 150%;
    font-weight: 400;
    color: #fff;
    margin: 0;
}

.copyright-text a {
    color: #e8d090;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.25s ease;
}

.social-icons .social-btn {
    color: #4b5563;
}

.social-icons .social-btn:nth-child(1) {
    color: #1877f2;
}

.social-icons .social-btn:nth-child(2) {
    color: #e4405f;
}

.social-icons .social-btn:nth-child(3) {
    color: #000000;
}

.social-icons .social-btn:nth-child(4) {
    color: #0a66c2;
}

.social-btn:hover {
    background-color: #fdf2df;
    color: #9d261a;
}

.legal-links {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.83rem;
}

.legal-links a {
    text-decoration: none;
    transition: color 0.2s;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    line-height: 150%;
    font-weight: 400;
    color: #fff;
    margin: 0;
}

.legal-links a:hover {
    color: #fdf2df;
}

.legal-links span {
    color: #fdf2df3b;
    font-size: 1.4rem;
}

.footer-logo {
    width: 60px;
    display: block;
}

/* portal books section */
.portal-section {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fdf3df;
    z-index: 2;
}

.intro-text-wrapper {
    position: absolute;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-transform: uppercase;
    font-weight: 900;
    pointer-events: none;
    gap: 100px;
}

.line-left {
    font-family: "Playfair", serif;
    font-size: 11vw;
    letter-spacing: 2px;
    line-height: 0.9;
    color: #000000;
    text-transform: capitalize;
    font-weight: 500;
    will-change: transform;
    transform: translateZ(0);
}

.line-right {
    font-family: "Playfair", serif;
    font-size: 11vw;
    letter-spacing: 2px;
    line-height: 0.9;
    text-transform: capitalize;
    font-weight: 500;
    color: #9d261a;
    will-change: transform;
    transform: translateZ(0);
}

.portal-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #9d261a;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    will-change: width, height;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.revealed-content {
    position: absolute;
    z-index: 10;
    width: 95%;
    max-width: 1600px;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    will-change: opacity;
}

.section-header {
    text-align: left;
    color: #ffffff;
    width: 100%;
}

.section-header .sub-heading {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    line-height: 140%;
    font-weight: 600;
    color: #fff;
    text-align: left;
    border: 2px solid #f7ebd1;
    border-left-width: 6px;
    border-bottom-width: 5px;
    display: inline-block;
    padding: 5px 27px;
    border-radius: 50px;
    margin: 0 0 10px;
    letter-spacing: 0.2px;
    opacity: 0.9;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.section-header .main-heading {
    font-family: "Playfair", serif;
    font-size: 64px;
    font-weight: 600;
    line-height: 100%;
    color: #ffffff;
    margin: 0;
    display: block;
}

.books-grid {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    align-items: flex-end;
    gap: 18px;
    flex-wrap: wrap;
    perspective: 1200px;
    padding: 20px 0;
}

.book-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    flex: 0 0 auto;
}

.book-3d {
    width: 250px;
    height: 361px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-20deg) rotateX(2deg);
    border-radius: 3px 6px 6px 3px;
    box-shadow: -12px 12px 20px rgba(0, 0, 0, 0.45);
    transition: box-shadow 0.4s ease;
}

.cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 3px 6px 6px 3px;
    box-shadow: inset 5px 0 10px rgba(0, 0, 0, 0.35), inset -2px 0 5px rgba(255, 255, 255, 0.15);
    overflow: hidden;
    backface-visibility: hidden;
    z-index: 5;
    display: block;
    background: #1f1f1f;
}

.cover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 6;
    pointer-events: none;
}

.cover-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.cover-1 {
    background: linear-gradient(135deg, #7f1d1d 0%, #ef4444 48%, #f97316 100%);
}

.cover-2 {
    background: linear-gradient(135deg, #14532d 0%, #22c55e 50%, #10b981 100%);
}

.cover-3 {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 45%, #06b6d4 100%);
}

.cover-4 {
    background: linear-gradient(135deg, #78350f 0%, #eab308 50%, #f59e0b 100%);
}

.cover-5 {
    background: linear-gradient(135deg, #831843 0%, #ec4899 50%, #8b5cf6 100%);
}

.book-3d::after {
    content: '';
    position: absolute;
    top: 3px;
    right: -14px;
    width: 14px;
    height: calc(100% - 6px);
    background: linear-gradient(90deg,
            #dcd3c1 0%,
            #f8f4eb 30%,
            #c8beaa 60%,
            #ece4d3 100%);
    transform: rotateY(90deg);
    transform-origin: left;
    border-radius: 0 2px 2px 0;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.shadow {
    width: 190px;
    height: 16px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    filter: blur(8px);
    margin-top: 15px;
    transition: all 0.4s ease;
    transform: scale(0.9);
}

.book-label {
    font-family: "Playfair", serif;
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 30px;
    line-height: 140%;
    margin-top: 15px;
    letter-spacing: 1px;
}

/* award section */

.award-section {
    width: 100%;
    background-color: #fff;
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.award-inner {
    width: 100%;
    max-width: 1600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.awards-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.award {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: center;
}

.award-profile-img {
    width: 280px;
    position: relative;
}

.award-profile-img::before {
    content: "";
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url(../images/about-wel.webp);
    background-color: #000;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
}

.award-profile-content {
    width: 60%;
    display: block;
}

.award-profile-content h3 {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    line-height: 140%;
    font-weight: 600;
    color: #9d261a;
    text-align: left;
    /* background-color: #f7ebd1; */
    border: 2px solid #f7ebd1;
    border-left-width: 6px;
    border-bottom-width: 5px;
    display: inline-block;
    padding: 5px 27px;
    border-radius: 50px;
    margin: 0 0 10px;
    letter-spacing: 0.2px;
}

.award-profile-content h2 {
    font-family: "Playfair", serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 109%;
    color: #000;
    margin: 0 0 10px;
    display: block;
}

.award-profile-content p {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    line-height: 150%;
    font-weight: 400;
    color: #2d2d2d;
    text-align: left;
}

.bg-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fdf3df;
    clip-path: path("M 0 0 L 400 0 C 325 90, 225 60, 150 150 C 75 225, 25 210, 0 250 Z");
    z-index: -1;
}

.bg-shape2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fdf3df;
    clip-path: path("M 0 0 L 400 0 C 325 90, 225 60, 150 150 C 75 225, 25 210, 0 250 Z");
    z-index: -1;
    rotate: 180deg;
}

/* gallery section */

.gallery-section {
    width: 100%;
    background-color: #fff;
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}


.gallery-section::before {
    position: absolute;
    content: "";
    top: 100%;
    inset-inline-start: 0;
    width: 100%;
    height: 40px;
    -webkit-mask-image: url(../images/h1-hero-shapes.svg);
    mask-image: url(../images/h1-hero-shapes.svg);
    background: #ffffff;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center bottom;
    mask-position: center bottom;
    -webkit-mask-size: cover;
    mask-size: cover;
    z-index: 2;
    rotate: 180deg;
}

.gallery-inner {
    width: 100%;
    max-width: 1600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

/* gallery grid */

.gallery-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 34px;
}

.gallery-card {
    position: relative;
    display: block;
    height: 350px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #e8dec8;
    background: #f7f1e7;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    cursor: pointer;
}

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

.gallery-card:hover img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(153, 35, 29, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .image-overlay {
    opacity: 1;
}

.view-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #99231d;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(0.85);
    transition: transform 0.3s ease;
}

.gallery-card:hover .view-icon {
    transform: scale(1);
}

@media (max-width: 1650px) {
    .award-profile-content {
        width: 49% !important;
    }

    .award {
        gap: 25px !important;
    }
}

@media (max-width: 1350px) {

    .books-grid {
        padding: 0px 0;
    }

    .book-label {
        margin-bottom: 0px;
        margin-top: 0px;
    }
}

@media (max-width: 1300px) {
    .copyright-text {
        font-size: 16px;
    }

    .bottom-container {
        flex-direction: column;
    }

    .legal-links a {
        font-size: 16px;
    }

    .award-profile-content {
        width: 80% !important;
    }

    .award {
        justify-content: center;
        text-align: center;
    }

    .award-profile-content p {
        text-align: center;
    }

    .about-section {
        grid-template-columns: 0.8fr 1fr;
        padding: 60px 0 60px;
    }

    .about-img {
        width: 30vw;
        height: 30vw;
    }

    .book-3d {
        width: 160px;
        height: 232px;
    }
}

@media (max-width: 1100px) {
    .site-footer {
        position: inherit;
    }

    .about-img {
        width: 28vw;
        height: 28vw;
        left: 20%;
    }

    .about-section {
        grid-template-columns: 0.6fr 1fr;
    }
}

@media (max-width: 991px) {
    .about-section {
        display: flex;
        flex-direction: column;
        gap: 55px;
    }

    .about-img {
        transform: unset;
        position: static;
        width: 34vw;
        height: 34vw;
        margin: 0 auto;
    }

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

    .about-content p {
        text-align: center;
        margin: 0 auto 38px;
    }

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

    .footer-col {
        padding: 30px 40px;
    }
}

@media (max-width: 768px) {

    .banner-section.banner-swiper-wrap::before {
        mask-size: contain !important;
    }

    .banne .awards-grid {
        grid-template-columns: 1fr;
    }

    .about-line-svg {
        top: 59%;
        right: -8%;
        height: 500px;
        rotate: 38deg;
    }

    .portal-dots {
        transform: scale(0.8);
        transform-origin: top left;
    }

    .portal-corner {
        width: 220px;
        height: 220px;
    }

    .line-left,
    .line-right {
        font-size: 5.8rem;
    }

    .section-header .sub-heading {
        font-size: 1rem;
    }

    .books-grid {
        justify-content: center;
        gap: 20px;
    }

    .book-3d {
        width: 193px;
        height: 282px;
    }

    .shadow {
        width: 160px;
    }

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

    .gallery-card {
        height: 240px;
    }

    .site-footer {
        padding-top: 80px;
    }

    .counter-title {
        line-height: 1;
    }

    .counter-title {
        font-size: 42px;
    }

    .about-content h2 {
        font-size: 42px;
    }

    .portal-section .section-header .main-heading {
        font-size: 42px;
        color: #fff;
    }
}

@media (max-width: 600px) {

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

    .banner-section {
        aspect-ratio: 1920 / 1650;
    }

    .banner-section.banner-swiper-wrap {
        aspect-ratio: 1920 / 1650;
    }

    .banner-media img {
        height: 135%;
        transform: translate3d(0, 0, 0) scale(1.34);
    }

    .banner-pagination.swiper-pagination {
        bottom: 4px;
    }

    .portal-section {
        height: auto;
        min-height: 0;
        padding: 28px 0 48px;
        align-items: flex-start;
        overflow: hidden;
        background: #9d261a;
    }

    .portal-section .intro-text-wrapper {
        display: none;
    }

    .portal-section .section-header {
        text-align: center;
        align-items: center;
        color: #fff;
        opacity: 1;
        transform: none;
        will-change: auto;
    }

    .portal-section .section-header .sub-heading {
        margin-inline: auto;
        color: #fdf3df;
        border-color: #f7ebd1;
    }

    .portal-section .portal-ring {
        display: none;
    }

    .portal-section .revealed-content {
        position: relative;
        inset: auto;
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
        opacity: 1;
        pointer-events: auto;
        gap: 1.2rem;
        padding: 0 16px 20px;
    }

    .portal-section .books-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        min-height: 0;
        padding: 0;
        margin-top: 12px;
        overflow: visible;
    }

    .portal-section .book-card {
        width: min(80vw, 265px);
        position: relative;
        margin: 0 auto 17vh;
        opacity: 0;
        transform: translateY(56px);
        will-change: transform, opacity;
    }

    .portal-section .book-3d {
        width: min(100%, 240px);
        height: auto;
        aspect-ratio: 250 / 361;
    }

    .portal-section .shadow {
        width: 78%;
    }

    .portal-section .book-label {
        color: #fdf3df;
        font-size: 20px;
        margin-top: 12px;
        margin-bottom: 0;
    }

    .portal-section .shadow {
        opacity: 0.35;
    }
}

@media (max-width: 1100px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-col.contact-right-col {
        border-left: none;
        border-top: 1px solid #e5e7eb;
        padding-left: 40px;
    }

    .banner-pagination .swiper-pagination-bullet-active {
        width: 20px !important;
        height: 5px !important;
    }

    .banner-pagination.swiper-pagination {
        padding: 5px 9px !important;
    }

    .banner-pagination .swiper-pagination-bullet {
        width: 5px !important;
        height: 5px !important;
        border: 1px solid #9d261a !important;
    }
}

@media (max-width: 640px) {
    .about-img {
        width: 55vw;
        height: 55vw;
    }

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

    .footer-col,
    .footer-col.contact-right-col {
        padding: 20px 20px;
    }

    .bottom-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-bottom {
        padding: 18px 20px;
    }
}