/* Annapurna Dham – theme overrides & form compatibility */

/* Prevent reload scroll jump from Bootstrap smooth scrolling */
html {
    scroll-behavior: auto !important;
}

/*** Site loader ***/
.site-loader {
    background:
        radial-gradient(circle at 50% 42%, rgba(239, 49, 56, 0.13), transparent 34%),
        linear-gradient(135deg, #fffaf7 0%, #fff 45%, #fff2f2 100%);
    z-index: 99999;
}

.site-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.site-loader-logo-wrap {
    position: relative;
    width: 132px;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-loader-logo-wrap::before,
.site-loader-logo-wrap::after {
    position: absolute;
    inset: 8px;
    content: "";
    border-radius: 50%;
    background: rgba(239, 49, 56, 0.12);
    animation: loaderPulse 1.9s ease-in-out infinite;
}

.site-loader-logo-wrap::after {
    inset: 0;
    animation-delay: 0.45s;
}

.site-loader-ring {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 2px solid rgba(239, 49, 56, 0.18);
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    animation: loaderSpin 1.2s linear infinite;
    z-index: 1;
}

.site-loader-logo {
    position: relative;
    z-index: 2;
    width: 92px;
    max-height: 92px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 8px 18px rgba(43, 23, 23, 0.14));
}

.site-loader-title {
    color: var(--dark);
    font-family: 'Nunito', sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0;
}

.site-loader-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.site-loader-dots span {
    width: 8px;
    height: 8px;
    display: block;
    border-radius: 50%;
    background: var(--primary);
    animation: loaderDot 1s ease-in-out infinite;
}

.site-loader-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.site-loader-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes loaderPulse {
    0%, 100% {
        transform: scale(0.85);
        opacity: 0.55;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.12;
    }
}

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loaderDot {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

@media (max-width: 575.98px) {
    .site-loader-logo-wrap {
        width: 112px;
        height: 112px;
    }

    .site-loader-logo {
        width: 78px;
        max-height: 78px;
    }

    .site-loader-title {
        font-size: 1.15rem;
    }
}

/*** AJAX skeleton loaders ***/
.ajax-skeleton-grid {
    display: grid;
    gap: 16px;
}

.ajax-skeleton-grid.ajax-skeleton-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ajax-skeleton-grid.ajax-skeleton-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ajax-skeleton-card {
    padding: 18px;
    background: #fff;
    border: 1px solid rgba(43, 23, 23, 0.08);
    box-shadow: 0 10px 26px rgba(43, 23, 23, 0.07);
}

.ajax-skeleton-media,
.ajax-skeleton-line,
.ajax-skeleton-avatar {
    position: relative;
    overflow: hidden;
    background: #eceff1;
}

.ajax-skeleton-media::after,
.ajax-skeleton-line::after,
.ajax-skeleton-avatar::after {
    position: absolute;
    inset: 0;
    content: "";
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
    animation: skeletonShimmer 1.35s ease-in-out infinite;
}

.ajax-skeleton-media {
    height: 220px;
    margin-bottom: 16px;
}

.ajax-skeleton-avatar {
    width: 160px;
    height: 160px;
    margin: 0 auto 18px;
    border-radius: 4px;
}

.ajax-skeleton-line {
    height: 13px;
    margin: 0 auto 10px;
    border-radius: 20px;
}

.ajax-skeleton-line.w-80 {
    width: 80%;
}

.ajax-skeleton-line.w-60 {
    width: 60%;
}

.ajax-skeleton-line.w-45 {
    width: 45%;
}

@keyframes skeletonShimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 991.98px) {
    .ajax-skeleton-grid.ajax-skeleton-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .ajax-skeleton-grid.ajax-skeleton-grid-2,
    .ajax-skeleton-grid.ajax-skeleton-grid-4 {
        grid-template-columns: 1fr;
    }
}

/*** Home service cards - scroll reveal and diagonal flip ***/
.scroll-reveal-card {
    --reveal-x: 80px;
    --reveal-rotate: 4deg;
    opacity: 0;
    transform: translate3d(var(--reveal-x), 70px, 0) rotate(var(--reveal-rotate));
    transition:
        opacity 0.8s ease,
        transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: calc(var(--reveal-index, 0) * 110ms);
    will-change: opacity, transform;
}

.scroll-reveal-card:nth-of-type(even),
.col-lg-3:nth-child(even) .scroll-reveal-card {
    --reveal-x: -80px;
    --reveal-rotate: -4deg;
}

.scroll-reveal-card.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg);
}

.service-anim-card {
    min-height: 220px;
    background: transparent;
    perspective: 900px;
    outline: none;
}

.service-anim-card:hover,
.service-anim-card:focus,
.service-anim-card:focus-within {
    margin-top: 0;
    background: transparent;
}

.service-anim-inner {
    position: relative;
    width: 100%;
    min-height: 220px;
    transform-style: preserve-3d;
    transform-origin: center;
    transition: transform 0.65s cubic-bezier(0.455, 0.030, 0.515, 0.955);
}

.service-anim-card:hover .service-anim-inner,
.service-anim-card:focus .service-anim-inner,
.service-anim-card:focus-within .service-anim-inner {
    animation: flip-2-hor-bottom-1 0.65s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
}

.service-anim-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 2rem 1.5rem;
    background: var(--light);
    border: 1px solid rgba(239, 49, 56, 0.12);
    box-shadow: 0 10px 28px rgba(43, 23, 23, 0.08);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.service-anim-front {
    z-index: 2;
}

.service-anim-back {
    color: var(--light);
    background: var(--primary);
    transform: rotateX(180deg);
}

.service-anim-card * {
    transition: color 0.35s ease;
}

.service-anim-back *,
.service-anim-card:hover .service-anim-back *,
.service-anim-card:focus .service-anim-back *,
.service-anim-card:focus-within .service-anim-back * {
    color: var(--light) !important;
}

.service-anim-card p {
    margin-bottom: 0;
    line-height: 1.65;
}

@keyframes flip-2-hor-bottom-1 {
    0% {
        transform: translateY(0) rotateX(0);
        transform-origin: 50% 100%;
    }
    100% {
        transform: translateY(100%) rotateX(180deg);
        transform-origin: 50% 0%;
    }
}

@media (max-width: 575.98px) {
    .service-anim-card,
    .service-anim-inner,
    .service-anim-face {
        min-height: 205px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal-card {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .service-anim-card:hover,
    .service-anim-card:focus,
    .service-anim-card:focus-within {
        animation: none;
    }

    .service-anim-card:hover .service-anim-inner,
    .service-anim-card:focus .service-anim-inner,
    .service-anim-card:focus-within .service-anim-inner {
        animation: none;
        transform: translateY(100%) rotateX(180deg);
    }
}

/*** About page focus cards - reference-style front/back flip ***/
.about-focus-flip-card {
    min-height: 250px;
    perspective: 1000px;
    outline: none;
}

.about-focus-flip-inner {
    position: relative;
    width: 100%;
    min-height: 250px;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-focus-flip-card:hover .about-focus-flip-inner,
.about-focus-flip-card:focus .about-focus-flip-inner,
.about-focus-flip-card:focus-within .about-focus-flip-inner {
    transform: rotateY(180deg);
}

.about-focus-flip-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    padding: 2rem 1.5rem;
    background: var(--light);
    border: 1px solid rgba(239, 49, 56, 0.12);
    box-shadow: 0 10px 28px rgba(43, 23, 23, 0.08);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.about-focus-flip-front p,
.about-focus-flip-back p {
    margin-bottom: 0;
    line-height: 1.6;
}

.about-focus-flip-back {
    color: #fff;
    background: var(--primary);
    transform: rotateY(180deg);
}

.about-focus-flip-back h5,
.about-focus-flip-back p {
    color: #fff !important;
}

@media (max-width: 575.98px) {
    .about-focus-flip-card,
    .about-focus-flip-inner,
    .about-focus-flip-face {
        min-height: 235px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-focus-flip-card:hover .about-focus-flip-inner,
    .about-focus-flip-card:focus .about-focus-flip-inner,
    .about-focus-flip-card:focus-within .about-focus-flip-inner {
        transition: none;
    }
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

:root {
    --primary: #ef3138;
    --primary-dark: #b7121a;
    --primary-soft: #fff1f1;
    --accent: #14924a;
    --light: #fff7f2;
    --dark: #2b1717;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary,
.btn-primary {
    background-color: var(--primary) !important;
}

.border-primary,
.btn-primary {
    border-color: var(--primary) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    color: #fff !important;
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 49, 56, 0.25) !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    color: #fff !important;
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(239, 49, 56, 0.2);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:active,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .show > .nav-link {
    color: var(--primary);
}

.navbar-light .navbar-nav .nav-link:visited {
    color: var(--dark);
}

.navbar-light .navbar-nav .nav-link.active:visited {
    color: var(--primary);
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.navbar .dropdown-item:active,
.navbar .dropdown-item.active {
    color: #fff;
    background-color: var(--primary);
}

.site-header {
    max-width: 100%;
    background: #fff;
    box-shadow: 0 8px 24px rgba(43, 23, 23, 0.08);
    z-index: 1030;
    top: 0;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 10px 28px rgba(43, 23, 23, 0.14);
    animation: headerDrop 0.24s ease both;
}

.site-header.site-header-overlay {
    position: sticky !important;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.site-header.site-header-overlay .navbar {
    /* background: transparent; */
}

.site-header.site-header-overlay .site-brand-title,
.site-header.site-header-overlay .navbar-light .navbar-nav .nav-link {
    color: #111111;
}

.site-header.site-header-overlay .navbar .dropdown-toggle::after {
    color: inherit;
}

.site-header.site-header-overlay .site-login-btn {
    background-color: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.92) !important;
    color: var(--primary) !important;
}

.site-header.site-header-overlay.is-scrolled {
    top: 0;
    background: rgba(43, 23, 23, 0.42);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.site-header.site-header-overlay.is-scrolled .site-brand-title {
    color: var(--primary);
}

.site-header.site-header-overlay.is-scrolled .navbar-light .navbar-nav .nav-link {
    color: #000000;
}

.site-header.site-header-overlay.is-scrolled .navbar-light .navbar-nav .nav-link:hover,
.site-header.site-header-overlay.is-scrolled .navbar-light .navbar-nav .nav-link:focus,
.site-header.site-header-overlay.is-scrolled .navbar-light .navbar-nav .nav-link.active,
.site-header.site-header-overlay.is-scrolled .navbar-light .navbar-nav .show > .nav-link {
    color: var(--primary);
}

.site-header.site-header-overlay.is-scrolled .site-login-btn {
    color: var(--primary) !important;
    background-color: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.92) !important;
}

.site-topbar {
    background: #ef3138;
    color: #fff;
    font-size: 13px;
    line-height: 1;
    position: relative;
    z-index: 1020;
}

@keyframes headerDrop {
    from {
        transform: translateY(-8px);
    }
    to {
        transform: translateY(0);
    }
}

.site-topbar .container-fluid {
    min-height: 34px;
    display: flex;
    align-items: center;
}

.site-topbar .container-fluid > .d-flex {
    width: 100%;
}

.site-topbar-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-social-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-left: 2px;
}

.site-social-links a {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
}

.site-social-links a:hover {
    background: var(--dark);
}

.site-topbar a,
.site-topbar a:hover {
    color: #fff;
}

.site-header .navbar {
    background: #fff;
    min-height: 78px;
}

.site-header .navbar-brand {
    min-width: 260px;
    gap: 0.75rem;
}

.site-header .navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 24px;
    padding: 28px 0;
    color: var(--dark);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.site-header .navbar-light .navbar-nav .nav-link::before {
    position: absolute;
    content: "";
    left: 0;
    right: 0;
    bottom: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.site-header .navbar-light .navbar-nav .nav-link:hover::before,
.site-header .navbar-light .navbar-nav .nav-link:focus::before,
.site-header .navbar-light .navbar-nav .nav-link.active::before,
.site-header .navbar-light .navbar-nav .show > .nav-link::before {
    transform: scaleX(1);
}

.site-header .dropdown-menu {
    border: 0;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 16px 32px rgba(43, 23, 23, 0.12);
    padding: 8px;
}

.site-header .dropdown-item {
    border-radius: 4px;
    color: var(--dark);
    font-weight: 600;
    padding: 9px 14px;
}

.site-login-btn {
    align-items: center;
    justify-content: center;
    height: auto !important;
    margin-right: 1.5rem;
    padding: 12px 22px !important;
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
}

/*
 * animate.css bounceIn* uses translate 3000px, which expands scroll height
 * and jumps the page on reload. Keep the bounce, use a short distance.
 */
@keyframes bounceInUp {
    from, 60%, 75%, 90%, to {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    60% {
        opacity: 1;
        transform: translate3d(0, -12px, 0);
    }
    75% {
        transform: translate3d(0, 6px, 0);
    }
    90% {
        transform: translate3d(0, -3px, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes bounceInDown {
    from, 60%, 75%, 90%, to {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    from {
        opacity: 0;
        transform: translate3d(0, -40px, 0);
    }
    60% {
        opacity: 1;
        transform: translate3d(0, 12px, 0);
    }
    75% {
        transform: translate3d(0, -6px, 0);
    }
    90% {
        transform: translate3d(0, 3px, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

/* Header carousel — full-bleed Bootstrap slider; banners 1660×860 */
.header-carousel-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.header-carousel {
    width: 100%;
    background: #181d38;
}

.header-carousel .carousel-inner,
.header-carousel .carousel-item {
    width: 100%;
}

.header-carousel-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1660 / 860;
    object-fit: cover;
    object-position: center center;
}

/* Large desktop: immersive height */
@media (min-width: 1200px) {
    .header-carousel-img {
        height: 80vh;
        aspect-ratio: auto;
    }
}

.header-carousel-controls {
    position: absolute;
    top: 50%;
    right: 8%;
    z-index: 2;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.header-carousel-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 1px solid #fff;
    font-size: 22px;
    line-height: 1;
    transition: .5s;
    cursor: pointer;
}

.header-carousel-btn:hover,
.header-carousel-btn:focus {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    outline: none;
}

/* Bootslander-style animated waves under carousel */
.header-carousel-wrap .hero-waves {
    display: block;
    width: 100%;
    height: 60px;
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 3;
    pointer-events: none;
}

.header-carousel-wrap .wave1 use {
    animation: move-forever1 10s linear infinite;
    animation-delay: -2s;
    fill: #fff;
    opacity: 0.6;
}

.header-carousel-wrap .wave2 use {
    animation: move-forever2 8s linear infinite;
    animation-delay: -2s;
    fill: #fff;
    opacity: 0.4;
}

.header-carousel-wrap .wave3 use {
    animation: move-forever3 6s linear infinite;
    animation-delay: -2s;
    fill: #fff;
}

@keyframes move-forever1 {
    0% {
        transform: translate(85px, 0%);
    }
    100% {
        transform: translate(-90px, 0%);
    }
}

@keyframes move-forever2 {
    0% {
        transform: translate(-90px, 0%);
    }
    100% {
        transform: translate(85px, 0%);
    }
}

@keyframes move-forever3 {
    0% {
        transform: translate(-90px, 0%);
    }
    100% {
        transform: translate(85px, 0%);
    }
}

@media (max-width: 1199.98px) {
    .header-carousel-wrap .hero-waves {
        height: 48px;
    }
}

@media (max-width: 575.98px) {
    .header-carousel-wrap .hero-waves {
        height: 36px;
    }

    .header-carousel-controls {
        right: 4%;
        gap: 10px;
    }

    .header-carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

/*** Testimonials — fixed-speed infinite marquee ***/
.testimonial-marquee {
    overflow: hidden;
    width: 100%;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.testimonial-marquee.is-dragging,
.testimonial-marquee:active {
    cursor: grabbing;
}

.testimonial-marquee-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 25px;
    will-change: transform;
}

.testimonial-marquee .testimonial-item {
    border: 1px solid var(--primary);
    padding: 20px;
    flex: 0 0 320px;
    width: 320px;
    max-width: 85vw;
    box-sizing: border-box;
}

.testimonial-marquee .testimonial-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.testimonial-quote {
    position: absolute;
    top: 15px;
    right: 20px;
    line-height: 1;
    opacity: 0.85;
    pointer-events: none;
}

.testimonial-content .fa-star {
    margin-right: 2px;
    font-size: 0.9rem;
}

.testimonial-content p {
    color: #6c757d;
    line-height: 1.6;
}

@media (max-width: 575.98px) {
    .testimonial-marquee .testimonial-item {
        flex-basis: 260px;
        width: 260px;
    }
}

/*** About / Focus split block (Poseify-style) ***/
.about-split-item {
    position: relative;
    margin-top: 1.5rem;
    overflow: hidden;
}

.about-split-item .about-split-img {
    position: relative;
    display: inline-block;
}

.about-split-item .about-split-img img {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.about-split-item .about-split-img::before {
    position: absolute;
    content: "";
    width: calc(100% - 6rem);
    height: calc(100% - 6rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 300px;
    z-index: 1;
    pointer-events: none;
}

.about-split-item .about-split-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 24px rgba(239, 49, 56, .35);
    transition: .35s;
    text-decoration: none;
    pointer-events: none;
}

.about-split-item a.about-split-play {
    pointer-events: auto;
    cursor: pointer;
}

.about-split-item .about-split-play i {
    margin-left: 0;
}

.about-split-item a.about-split-play:hover {
    background: #fff;
    color: var(--primary);
    transform: translate(-50%, -50%) scale(1.08);
}

.about-split-item.about-split-left {
    border-radius: 500px 0 0 500px;
    background: linear-gradient(to right, var(--primary), #fff);
}

.about-split-item.about-split-right {
    border-radius: 0 500px 500px 0;
    background: linear-gradient(to left, var(--primary), #fff);
}

.about-split-item .about-split-text h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.about-split-item .btn-outline-primary {
    color: #fff;
    border-color: #fff;
    background: transparent;
}

.about-split-item .btn-outline-primary:hover {
    color: var(--dark);
    background: #fff;
    border-color: #fff;
}

@media (max-width: 767.98px) {
    .about-split-item.about-split-left,
    .about-split-item.about-split-right {
        border-radius: 500px 500px 0 0;
        background: linear-gradient(to bottom, var(--primary), #fff);
        text-align: center;
    }

    .about-split-item .about-split-img::before {
        width: calc(100% - 6rem);
        height: calc(100% - 6rem);
        border-width: 10px;
    }

    .about-split-item .about-split-text {
        padding-bottom: 2.5rem !important;
        text-align: center !important;
    }

    .about-split-item .about-split-play {
        width: 60px;
        height: 60px;
    }
}


.site-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.site-brand-title {
    color: var(--primary);
    font-family: 'Nunito', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.footer-logo {
    max-height: 140px;
    width: auto;
    border-radius: 6px;
    padding: 4px;
}

.navbar-brand {
    gap: 0.25rem;
}

/*
 * Laptop / small desktop (992–1199): navbar was ~1246px and overflowed a
 * 1024px viewport (Student Login off-screen, page clipped on the right).
 * Keep full link row, just tighten spacing. Mobile (<992) & XL (≥1200) unchanged.
 */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-brand.px-lg-5 {
        padding-left: 1rem !important;
        padding-right: 0.75rem !important;
    }

    .site-logo {
        height: 46px;
    }

    .site-brand-title {
        font-size: 1rem;
    }

    .navbar-light .navbar-nav .nav-link {
        margin-right: 10px;
        font-size: 13px;
        padding: 25px 0;
    }

    .navbar-light a.btn.btn-primary {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .navbar-light a.btn.btn-primary .fa-arrow-right {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .site-header.site-header-overlay {
        top: 0;
    }

    .site-header.site-header-overlay:has(.navbar-collapse.show),
    .site-header.site-header-overlay:has(.navbar-collapse.collapsing) {
        background: rgba(43, 23, 23, 0.86);
        backdrop-filter: blur(10px);
    }

    .site-header .navbar {
        min-height: 72px;
    }

    .site-header .navbar-brand {
        min-width: 0;
    }

    .site-header .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 11px 0;
    }

    .site-header .navbar-light .navbar-nav .nav-link::before {
        bottom: 5px;
        right: auto;
        width: 44px;
        transform-origin: left;
    }

    .site-header .navbar-collapse {
        border-top: 1px solid rgba(255, 255, 255, 0.28);
    }

    .site-header .dropdown-menu {
        width: 100%;
        margin: 4px 0 10px !important;
        padding: 6px;
        border: 0;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: none;
    }

    .site-header .dropdown-item {
        padding: 9px 12px;
        font-size: 13px;
        border-radius: 3px;
    }

    .site-header .dropdown-item + .dropdown-item {
        margin-top: 2px;
    }

    .site-header .mobile-student-login {
        margin-top: 12px !important;
    }
}

@media (max-width: 575.98px) {
    .site-brand-title {
        font-size: 1rem;
    }

    .site-logo {
        height: 44px;
    }
}

/* Slightly tighter brand at 1200–1399 so full nav still fits */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar-brand.px-lg-5 {
        padding-left: 1.25rem !important;
        padding-right: 1rem !important;
    }

    .navbar-light .navbar-nav .nav-link {
        margin-right: 18px;
        font-size: 14px;
    }

    .navbar-light a.btn.btn-primary {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .navbar-light a.btn.btn-primary .fa-arrow-right {
        display: none;
    }
}

.mobile-student-login {
    display: block;
    width: calc(100% - 3rem);
    height: auto !important;
    border-radius: 2px;
    font-weight: 600;
    text-align: center;
}

.gallery-item img,
.news-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.trustee-photo,
.team-photo {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.news-date-badge {
    min-width: 56px;
}

.form-page-wrap .form-control,
.form-page-wrap .form-select,
.form-page-wrap select,
.form-page-wrap textarea,
.form-page-wrap input[type="text"],
.form-page-wrap input[type="number"],
.form-page-wrap input[type="email"],
.form-page-wrap input[type="tel"],
.form-page-wrap input[type="date"],
.form-page-wrap input[type="time"],
.form-page-wrap input[type="file"],
.form-page-wrap input[type="password"] {
    border-radius: 2px;
    background-color: #fff !important;
    color: #212529 !important;
    border: 1px solid #ced4da;
    color-scheme: light;
}

.form-page-wrap .form-control:focus,
.form-page-wrap .form-select:focus,
.form-page-wrap select:focus,
.form-page-wrap textarea:focus,
.form-page-wrap input:focus {
    background-color: #fff !important;
    color: #212529 !important;
    border-color: rgba(239, 49, 56, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(239, 49, 56, 0.22);
}

.form-page-wrap .form-control::placeholder,
.form-page-wrap textarea::placeholder {
    color: #6c757d;
    opacity: 1;
}

.form-page-wrap .form-control:disabled,
.form-page-wrap .form-control[readonly] {
    background-color: #fff !important;
    color: #212529 !important;
    opacity: 1;
}

.form-page-wrap .hostel-sdropdown-toggle,
.form-page-wrap .hostel-sdropdown-search,
.form-page-wrap .hostel-sdropdown-menu {
    background-color: #fff !important;
    color: #212529;
}

.form-page-wrap .form-control.is-invalid,
.form-page-wrap select.is-invalid,
.form-page-wrap textarea.is-invalid,
.form-page-wrap input.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.form-page-wrap .form-control.is-invalid:focus,
.form-page-wrap select.is-invalid:focus,
.form-page-wrap textarea.is-invalid:focus,
.form-page-wrap input.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-page-wrap .hostel-sdropdown.is-invalid .hostel-sdropdown-toggle {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.form-page-wrap .hostel-sdropdown + .invalid-feedback,
.form-page-wrap .hostel-sdropdown + .fv-plugins-message-container,
.form-page-wrap .form-control + .invalid-feedback,
.form-page-wrap .form-control + .fv-plugins-message-container {
    display: block !important;
    margin-top: 4px;
    width: 100%;
    color: #dc3545;
}

.form-page-wrap .form-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-page-wrap fieldset {
    margin-bottom: 0;
    background-color: #fff !important;
    border: 1px solid rgba(239, 49, 56, 0.22) !important;
    border-radius: 4px;
    padding: 20px 24px !important;
    width: 100%;
    box-sizing: border-box;
}

.form-page-wrap legend {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary, #ef3138) !important;
    margin-bottom: 1rem;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    float: none;
    width: auto;
}

.form-page-wrap .inner-legend {
    display: block !important;
    width: 100% !important;
    font-size: 15px !important;
    font-weight: 700;
    color: var(--primary, #ef3138) !important;
    background: transparent !important;
    margin: 0 0 12px !important;
    margin-left: 0 !important;
    padding: 0 0 8px !important;
    border-radius: 0 !important;
    border-bottom: 2px solid var(--primary, #ef3138);
}

.form-page-wrap label small span {
    color: #dc3545;
}

.form-page-wrap .form,
.form-page-wrap .reg-form-card,
.form-page-wrap fieldset,
.form-page-wrap .step-app,
.form-page-wrap .step-content,
.form-page-wrap .step-tab-panel,
.form-page-wrap .secborder {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-page-wrap .secborder {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.form-page-wrap .step-app > .step-content {
    border: none !important;
    padding: 16px 0 0 !important;
    background: transparent !important;
}

.form-page-wrap .step-app > .step-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    pointer-events: none;
    user-select: none;
}

.form-page-wrap .step-app > .step-steps > li {
    flex: 1 1 140px;
    list-style: none;
    cursor: default;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin: 0;
    color: #6c757d;
    background-color: var(--light, #fff7f2);
    border: 1px solid rgba(239, 49, 56, 0.18);
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    min-width: 0;
}

.form-page-wrap .step-app > .step-steps > li:hover {
    background-color: var(--light, #fff7f2);
}

.form-page-wrap .step-app > .step-steps > li > .number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    line-height: 28px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ced4da;
    color: #6c757d;
    font-size: 13px;
    font-weight: 700;
}

.form-page-wrap .step-app > .step-steps > li > .step-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-page-wrap .step-app > .step-steps > li.active {
    background-color: var(--primary, #ef3138);
    border-color: var(--primary, #ef3138);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 49, 56, 0.28);
}

.form-page-wrap .step-app > .step-steps > li.active > .number {
    background: #fff;
    border-color: #fff;
    color: var(--primary, #ef3138);
}

.form-page-wrap .step-app > .step-steps > li.done {
    background-color: #fff;
    border-color: var(--primary, #ef3138);
    color: var(--dark, #181d38);
}

.form-page-wrap .step-app > .step-steps > li.done > .number {
    background: var(--primary, #ef3138);
    border-color: var(--primary, #ef3138);
    color: #fff;
}

.form-page-wrap .step-app > .step-steps > li.done > .number::before {
    content: "\2713";
    font-size: 14px;
}

.form-page-wrap .step-app > .step-steps > li.done > .number {
    font-size: 0;
}

.form-page-wrap .step-app > .step-steps > li.error {
    background-color: #fff5f5;
    border-color: #dc3545;
    color: #dc3545;
}

.form-page-wrap .step-app > .step-steps > li.error > .number {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

@media (max-width: 991px) {
    .form-page-wrap .step-app > .step-steps > li {
        flex: 1 1 calc(50% - 8px);
    }
}

@media (max-width: 575px) {
    .form-page-wrap .step-app > .step-steps > li {
        flex: 1 1 100%;
    }
}

.form-page-wrap .doc-guidelines-box {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
    clear: both;
    background: var(--light, #fff7f2);
    border: 1px solid rgba(239, 49, 56, 0.25);
    border-radius: 2px;
    padding: 18px 22px;
    margin: 0 0 20px;
    color: var(--dark, #181d38);
}

.form-page-wrap .doc-guidelines-box h5 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark, #181d38);
    font-family: 'Nunito', sans-serif;
}

.form-page-wrap .doc-guidelines-section {
    margin-bottom: 12px;
}

.form-page-wrap .doc-guidelines-section:last-child {
    margin-bottom: 0;
}

.form-page-wrap .doc-guidelines-section > strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--primary, #ef3138);
}

.form-page-wrap .doc-guidelines-section ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.form-page-wrap .doc-guidelines-section li {
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 4px;
    color: var(--dark, #181d38);
}

.form-page-wrap .doc-guidelines-section li strong {
    color: var(--dark, #181d38);
}

.overlay,
.otp_page {
    z-index: 1050;
}

.wizard > .content,
.wizard > .steps {
    background: transparent;
}

.wizard > .content > .body {
    width: 100%;
    float: none;
    position: relative;
}

.accordion-button:not(.collapsed) {
    color: var(--dark);
    background-color: var(--light);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(239, 49, 56, 0.22);
}

.map-iframe {
    min-height: 450px;
    border: 0;
    width: 100%;
}

/*** Contact page (Poseify-style layout, light theme) ***/
.contact-info-table {
    --bs-table-bg: var(--light);
    --bs-table-color: var(--dark);
    --bs-table-border-color: transparent;
    color: var(--dark);
    background-color: var(--light);
    vertical-align: middle;
    margin-bottom: 0;
    border: none !important;
    border-collapse: collapse;
}

.contact-info-table > :not(caption) > * > * {
    background-color: var(--light);
    color: var(--dark);
    border: none !important;
    border-bottom-width: 0 !important;
    box-shadow: none !important;
}

.contact-info-table td {
    padding: 1rem 1.25rem;
    border: none !important;
    word-break: break-word;
}

.contact-info-table td:first-child {
    width: 56px;
    min-width: 56px;
    color: var(--primary);
    text-align: center;
    vertical-align: middle;
    font-size: 1.15rem;
}

.contact-info-table a {
    color: var(--dark);
    text-decoration: none;
}

.contact-info-table a:hover {
    color: var(--primary);
}

.contact-form .form-control {
    background-color: var(--light);
    border: 1px solid transparent;
}

.contact-form .form-control:focus {
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(239, 49, 56, 0.2);
}

.contact-map {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

.contact-map-wrap + .footer {
    margin-top: 0 !important;
}

.utility-card {
    max-width: 720px;
    margin: 0 auto;
}

.btn-outline-primary.active,
.video-filter a.active {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

@media (max-width: 991.98px) {
    .site-brand-title {
        font-size: 1.1rem;
    }
    .site-logo {
        height: 40px;
    }
}

/*** Simple Footer ***/

.simple-footer {
    color: #c9c9c9;
    background-color: #171717;
    border-top: 4px solid var(--primary);
}

.simple-footer a {
    text-decoration: none;
}

.simple-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.simple-footer-logo {
    width: 66px;
    height: 66px;
    padding: 5px;
    object-fit: contain;
    border-radius: 10px;
    background-color: #ffffff;
}

.simple-footer-brand span {
    display: flex;
    flex-direction: column;
}

.simple-footer-brand strong {
    color: #ffffff;
    font-family: "Nunito", sans-serif;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
}

.simple-footer-brand small {
    margin-top: 4px;
    color: #a9a9a9;
    font-size: 13px;
}

.simple-footer-description {
    max-width: 360px;
    margin-bottom: 20px;
    color: #b8b8b8;
    font-size: 14px;
    line-height: 1.8;
}

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

.simple-footer-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 1px solid #3f3f3f;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.simple-footer-social a:hover {
    color: #ffffff;
    border-color: var(--primary);
    background-color: var(--primary);
}

.simple-footer-section h4 {
    position: relative;
    margin-bottom: 22px;
    padding-bottom: 10px;
    color: #ffffff;
    font-family: "Nunito", sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.simple-footer-section h4::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    content: "";
    background-color: var(--primary);
}

.simple-footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.simple-footer-links li {
    margin-bottom: 11px;
}

.simple-footer-links a {
    display: inline-block;
    color: #b8b8b8;
    font-size: 14px;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.simple-footer-links a::before {
    margin-right: 8px;
    color: var(--primary);
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-size: 12px;
    font-weight: 900;
}

.simple-footer-links a:hover {
    padding-left: 4px;
    color: #ffffff;
}

.simple-footer-contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

.simple-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: #b8b8b8;
    font-size: 14px;
    line-height: 1.6;
}

.simple-footer-contact li > i {
    width: 18px;
    flex: 0 0 18px;
    margin-top: 5px;
    color: var(--primary);
    text-align: center;
}

.simple-footer-contact a {
    color: #b8b8b8;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.simple-footer-contact a:hover {
    color: #ffffff;
}

.simple-contact-divider {
    margin: 0 5px;
    color: #666666;
}

.simple-footer-bottom {
    padding: 18px 0;
    border-top: 1px solid #343434;
    background-color: #111111;
}

.simple-footer-bottom p {
    margin: 0;
    color: #979797;
    font-size: 13px;
}

.simple-footer-bottom a {
    color: #d5d5d5;
    transition: color 0.2s ease;
}

.simple-footer-bottom a:hover {
    color: var(--primary);
}

.simple-footer-bottom-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.simple-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.simple-footer-legal a {
    color: #a9a9a9;
    font-size: 12px;
}

.simple-footer-developer {
    padding-left: 20px;
    border-left: 1px solid #3b3b3b;
    white-space: nowrap;
}

/* Tablet */

@media (max-width: 991.98px) {
    .simple-footer-bottom-right {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }

    .simple-footer-developer {
        padding-left: 0;
        border-left: 0;
    }
}

/* Mobile */

@media (max-width: 575.98px) {
    .simple-footer {
        margin-top: 3rem !important;
    }

    .simple-footer .py-5 {
        padding-top: 2.75rem !important;
        padding-bottom: 2.75rem !important;
    }

    .simple-footer-logo {
        width: 58px;
        height: 58px;
    }

    .simple-footer-brand strong {
        font-size: 18px;
    }

    .simple-footer-description {
        font-size: 13px;
        line-height: 1.7;
    }

    .simple-footer-section h4 {
        margin-bottom: 18px;
        font-size: 15px;
    }

    .simple-footer-links li {
        margin-bottom: 9px;
    }

    .simple-footer-links a {
        font-size: 13px;
    }

    .simple-footer-contact li {
        font-size: 13px;
    }

    .simple-footer-contact li:nth-child(2) span {
        display: flex;
        flex-direction: column;
    }

    .simple-contact-divider {
        display: none;
    }

    .simple-footer-legal {
        gap: 8px 12px;
    }
}
