
/*** Spinner Start ***/
/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%;
}

.btn.btn-primary {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.btn.btn-primary:hover {
    box-shadow: inset 300px 0 0 0 var(--bs-light) !important;
    color: var(--bs-primary) !important;
}

.btn.btn-light {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.btn.btn-light:hover {
    box-shadow: inset 300px 0 0 0 var(--bs-primary);
    color: var(--bs-light) !important;
}

.btn-hover {
    transition: 0.5s;
}

.btn-hover:hover {
    color: var(--bs-secondary) !important;
}

/*** Section Title Start ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.section-title::before {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-right: -50px;
    border: 1px solid var(--bs-primary) !important;
}

.section-title::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-left: -50px;
    border: 1px solid var(--bs-primary) !important;
}


/*** Topbar Start ***/
.fixed-top .container {
    transition: 0.5s;
}

.topbar {
    padding: 2px 10px 2px 20px;
    background: var(--bs-primary) !important;
}

.topbar a,
.topbar a i {
    transition: 0.5s;
}

.topbar a:hover,
.topbar a i:hover {
    color: var(--bs-secondary) !important;
}


@media (max-width: 768px) {
    .topbar {
        display: none;    
    }
}
/*** Topbar End ***/


/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
    font-family: 'Roboto', sans-serif;
    position: relative;
    padding: 35px 15px;
    color: var(--bs-white) !important;
    font-size: 17px;
    font-weight: 400;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 15px;
    color: var(--bs-dark) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-white) !important;
}

.navbar-light .navbar-brand h1 {
    color: var(--bs-white);
}

.sticky-top.navbar-light .navbar-brand h1 {
    color: var(--bs-primary);
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 45px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        transition: .5s;
        opacity: 0;
    }
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light);
    transition: .5s;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: relative;
        background: var(--bs-white);
    }

    .navbar-light .navbar-brand h1 {
        color: var(--bs-primary);
    }

    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 10px 20px;
        border: 1px solid var(--bs-primary);
        color: var(--bs-primary);
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        color: var(--bs-dark) !important;
    }

    .navbar-light .navbar-nav .nav-link:hover,
    .navbar-light .navbar-nav .nav-link.active  {
        color: var(--bs-primary) !important;
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }
}

@media (min-width: 992px) {
    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        z-index: 999;
    }
    
    .sticky-top.navbar-light {
        position: fixed;
        background: var(--bs-light);
    }

    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 100%;
        height: 0;
        bottom: -1px;
        left: 0;
        background: var(--brand);
        transition: .5s;
        z-index: -1;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        height: calc(100% + 1px);
        left: 1px;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
}

/*** Carousel Hero Header Start ***/
.carousel-header .carousel-control-prev,
.carousel-header .carousel-control-next {
    background: transparent;
}

.carousel-header .carousel-control-prev .carousel-control-prev-icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding: 25px 30px;
    border-top-left-radius: 0;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 50px;
    background-size: 60% 60%;
}

.carousel-header .carousel-control-next .carousel-control-next-icon {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    padding: 25px 30px;
    border-top-left-radius: 50px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 0;
    background-size: 60% 60%;

}

.carousel-header .carousel .carousel-indicators li,
.carousel-header .carousel .carousel-indicators li,
.carousel-header .carousel .carousel-indicators li {
    opacity: 0;
}

.carousel-header .carousel-inner .carousel-item {
    position: relative;
    min-height: 100vh 
}

.carousel-header .carousel-inner .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-header .carousel-inner .carousel-item .carousel-caption  {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, 0.5));
    background-size: cover;
}

@media (max-width: 768px) {
    .carousel-header .carousel-inner .carousel-item img,
    .carousel-header .carousel-inner .carousel-item .carousel-caption {
        height: 700px;
        margin-top: -100px;
    }

    .carousel-header {
        height: 700px !important;
    }

    .carousel-header .carousel-control-prev .carousel-control-prev-icon,
    .carousel-header .carousel-control-next .carousel-control-next-icon {
        opacity: 0;
    }
    
    .search-bar {
        margin-top: -100px;
        transition: 0.5s;
    }
}
/*** Carousel Hero Header End ***/


/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    background: linear-gradient(120deg, #0a5888 0%, #084a73 55%, #063a5b 100%);
    padding: 60px 0 50px 0;
}

.bg-breadcrumb .text-white {
    color: #fff !important;
}

.bg-breadcrumb .breadcrumb-item a {
    color: #cfe6f5 !important;
}

.bg-breadcrumb .breadcrumb-item.active {
    color: #fff !important;
}
/*** Single Page Hero Header End ***/


/*** About Start ***/
.about .container .section-about-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.about .container .section-about-title::before {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-right: -50px;
    border: 1px solid var(--bs-primary) !important;
}
/*** About End ***/


/*** Services Start ***/
.service .service-content-inner {
    transition: 0.5s;
}
.service .service-content-inner:hover {
    position: relative;
    background: var(--bs-primary) !important;
}

.service .service-content-inner .service-content h5,
.service .service-content-inner .service-content p,
.service .service-content-inner .service-icon i {
    transition: 0.5s;
}

.service .service-content-inner:hover .service-content h5,
.service .service-content-inner:hover .service-content p,
.service .service-content-inner:hover .service-icon i {
    color: var(--bs-white) !important;
}
/*** Service End ***/


/*** Destination Start ***/
.destination .tab-class .tab-content .tab-pane .destination-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    z-index: 1;
}

.destination .tab-class .tab-content .tab-pane .destination-img .destination-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    z-index: 3;
    transition: 0.5s;
}

.destination .tab-class .tab-content .tab-pane .destination-img .search-icon {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    display: flex;
    justify-content: end;
    padding: 20px 20px 0 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: 0.5s;

}

.destination .tab-class .tab-content .tab-pane .destination-img .search-icon a i {
    opacity: 0;
    transition: 0.5s;
}

.destination .tab-class .nav-item {
    padding: 0 0 20px 0;
}
.destination .tab-class .nav-item a.active {
    background: var(--bs-primary) !important;
}

.destination .tab-class .nav-item a.active span {
    color: var(--bs-white) !important;
}

.destination .tab-class .tab-content .destination-img:hover .search-icon {
    background: rgba(10, 88, 136, 0.4);
}

.destination .tab-class .tab-content .destination-img:hover .destination-overlay {
    bottom: 0;
}

.destination .tab-class .tab-content .destination-img:hover .search-icon a i {
    opacity: 1;
}

.destination .tab-class .tab-content .destination-img img {
    transition: 0.5s;
}

.destination .tab-class .tab-content .destination-img:hover img {
    transform: scale(1.2);
}
/*** Destination End ***/


/*** Packages Start ***/
.packages .packages-item .packages-img {
    position: relative;
    overflow: hidden;
    transition: 0.5s;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    z-index: 1;
}

.packages .packages-item .packages-img .packages-info {
    background: rgba(0, 0, 0, .3);
}

.packages .packages-item .packages-img .packages-info small,
.packages .packages-item .packages-img .packages-info small i {
    color: var(--bs-white);
    transition: 0.5s;
}

.packages .packages-item .packages-img::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 0px solid;
    border-radius: 10px !important;
    visibility: hidden;
    transition: 0.7s;
    z-index: 3;
}

.packages .packages-item .packages-img:hover.packages-img::after {
    width: 100%;
    height: 100%;
    border: 300px solid;
    border-color: rgba(10, 88, 136, 0.6) rgba(10, 88, 136, 0.6) rgba(10, 88, 136, 0.6) rgba(10, 88, 136, 0.6);
    visibility: visible;
}

.packages .packages-item .packages-img small,
.packages .packages-item .packages-img small i {
    transition: 0.5s;
}

.packages .packages-item .packages-img:hover small,
.packages .packages-item .packages-img:hover small i {
    color: var(--bs-white) !important;

}

.packages .packages-item .packages-img img {
    transition: 0.5s;
}

.packages .packages-item .packages-img:hover img {
    transform: scale(1.3);
}

.packages .packages-item .packages-img .packages-price {
    position: absolute;
    width: 100px; 
    top: 0; 
    left: 50%; 
    transform: translateX(-50%);
    display: inline-block;
    background: var(--bs-primary);
    color: var(--bs-white);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px; 
    z-index: 5;
}

.packages .packages-carousel {
    position: relative;
}

.packages .packages-carousel .owl-nav .owl-prev {
    position: absolute;
    top: -50px;
    left: 0;
    padding: 5px 30px;
    border: 1px solid var(--bs-primary);
    border-radius: 30px;
    transition: 0.5s;
}

.packages .packages-carousel .owl-nav .owl-next {
    position: absolute;
    top: -50px;
    right: 0;
    padding: 5px 30px;
    border: 1px solid var(--bs-primary);
    border-radius: 30px;
    transition: 0.5s;
}

.packages .packages-carousel .owl-nav .owl-prev i,
.packages .packages-carousel .owl-nav .owl-next i {
    color: var(--bs-primary);
    font-size: 17px;
    transition: 0.5s;
}

.packages .packages-carousel .owl-nav .owl-prev:hover,
.packages .packages-carousel .owl-nav .owl-next:hover {
    background: var(--bs-primary);
}

.packages .packages-carousel .owl-nav .owl-prev:hover i,
.packages .packages-carousel .owl-nav .owl-next:hover i {
    color: var(--bs-white);
}
/*** Packages End ***/


/*** Explore Tour Start ***/
.ExploreTour .tab-class .nav-item {
    padding: 0 0 20px 0;
}
.ExploreTour .tab-class .nav-item a.active {
    background: var(--bs-primary) !important;
}

.ExploreTour .tab-class .nav-item a.active span {
    color: var(--bs-white) !important;
}


/* National Tour Start */
.ExploreTour #NationalTab-1 .national-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.ExploreTour #NationalTab-1 .national-item img {
    transition: 0.5s;
}

.ExploreTour #NationalTab-1 .national-item:hover img {
    transform: scale(1.2);
}

.ExploreTour #NationalTab-1 .national-item .national-content {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, .2);
    display: flex;
    align-items: end;
    justify-content: center;
    transition: 0.5s;
}

.ExploreTour #NationalTab-1 .national-item:hover .national-content {
    background: rgba(10, 88, 136, .6);
}

.ExploreTour #NationalTab-1 .national-item .national-plus-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s;
    opacity: 0;
}

.ExploreTour #NationalTab-1 .national-item:hover .national-plus-icon {
    opacity: 1;
}

.ExploreTour #NationalTab-1 .national-item .tour-offer {
    position: absolute;
    top: -1px;
    left: -1px;
    padding: 20px;
    border-top-right-radius: 40px;
    border-top-left-radius: 20px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 80px;
    background: var(--bs-primary);
    color: var(--bs-white);
}

/* International Tour Start */
.ExploreTour #InternationalTab-2 .international-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.ExploreTour #InternationalTab-2 .international-item img {
    transition: 0.5s;
}

.ExploreTour #InternationalTab-2 .international-item:hover img {
    transform: scale(1.2);
}

.ExploreTour #InternationalTab-2 .international-item .tour-offer {
    position: absolute;
    top: -1px;
    left: -1px;
    padding: 20px;
    border-top-right-radius: 30px;
    border-top-left-radius: 20px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 80px;
    background: var(--bs-primary);
    color: var(--bs-white);
}

.ExploreTour #InternationalTab-2 .international-item .international-content {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, .3);
    display: flex;
    align-items: end;
    justify-content: center;
    transition: 0.5s;
}

.ExploreTour #InternationalTab-2 .international-item:hover .international-content {
    background: rgba(10, 88, 136, .6);
}

.ExploreTour #InternationalTab-2 .international-item .international-content .international-info a {
    font-size: 14px;
}

.ExploreTour #InternationalTab-2 .international-item .international-plus-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s;
    opacity: 0;
}

.ExploreTour #InternationalTab-2 .international-item:hover .international-plus-icon {
    opacity: 1;
}

/* carousel Start */
.ExploreTour #InternationalTab-2 .InternationalTour-carousel .international-item {
    position: relative;
    overflow: hidden;
}

.ExploreTour #InternationalTab-2 .InternationalTour-carousel .owl-dots {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ExploreTour #InternationalTab-2 .InternationalTour-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--bs-light);
    border: 1px solid var(--bs-primary);
    border-radius: 10px;
    transition: 0.5s;
}

.ExploreTour #InternationalTab-2 .InternationalTour-carousel .owl-dot.active {
    width: 40px;
    background: var(--bs-primary);
}
/*** Explore Tour End ***/


/*** Gallery Start ***/
.gallery .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery .gallery-item img {
    min-height: 300px;
    object-fit: cover;
}

.gallery .gallery-item .gallery-content {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    transition: 0.5s;
}

.gallery .gallery-item .gallery-content .gallery-info {
    position: relative;
    margin-bottom: -100%;
    opacity: 0;
    transition: 0.5s;
}

.gallery .gallery-item .gallery-plus-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s;
    opacity: 0;
}

.gallery .gallery-item:hover .gallery-content .gallery-info,
.gallery .gallery-item:hover .gallery-plus-icon {
   opacity: 1;
   margin: 0;
}

.gallery .gallery-item img {
    transition: 0.5s;
}

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

.gallery .gallery-item:hover .gallery-content {
    background: rgba(10, 88, 136, 0.8);
}

.gallery .tab-class .nav-item {
    padding: 0 0 20px 0;
}
.gallery .tab-class .nav-item a.active {
    background: var(--bs-primary) !important;
}

.gallery .tab-class .nav-item a.active span {
    color: var(--bs-white) !important;
}

/*** Gallery End ***/

/*** Tour Booking Start ***/
.booking {
    background: linear-gradient(rgba(10, 88, 136, .8), rgba(10, 88, 136, .8)), url(../img/tour-booking-bg.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    
}


.booking .container .section-booking-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-white);
}

.booking .container .section-booking-title::before {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-right: -50px;
    border: 1px solid var(--bs-white) !important;
}

.booking .container form .btn.btn-primary {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.booking .container form .btn.btn-primary:hover {
    box-shadow: inset 800px 0 0 0 var(--bs-light) !important;
    color: var(--bs-primary) !important;
}



/*** Tour Booking end ***/

/*** Travel Guide Start ***/
.guide .guide-item .guide-img {
    position: relative;
}

.guide .guide-item .guide-img .guide-icon {
    position: absolute;
    bottom: 0; 
    left: 50%; 
    transform: translate(-50%, -50%);
    margin-bottom: -50px;
    display: flex;
    justify-content: center;
    border: 1px solid var(--bs-primary);
    background: var(--bs-light);
    z-index: 9;
}

.guide .guide-item .guide-img .guide-img-efects {
    position: relative;
    overflow: hidden;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

.guide .guide-item .guide-img .guide-img-efects::after {
    content: "";
    width: 100%;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}

.guide .guide-item:hover .guide-img-efects::after {
    height: 100%;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    background: rgba(10, 88, 136, .5);
}

.guide .guide-item .guide-img-efects img {
    transition: 0.5s;
}
.guide .guide-item:hover .guide-img-efects img {
    transform: scale(1.1);
}

.guide .guide-item .guide-title {
    position: relative;
    background: var(--bs-light);
    transition: 0.5s;
}

.guide .guide-item .guide-title::after {
    content: "";
    width: 100%;
    height: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    transition: 0.5s;
}

.guide .guide-item:hover .guide-title::after {
    height: 100%;
    background: var(--bs-primary) !important;
    color: var(--bs-white);
}

.guide .guide-item .guide-title .guide-title-inner,
.guide .guide-item:hover .guide-title .guide-title-inner h4 {
    transition: 0.5s;
}

.guide .guide-item:hover .guide-title .guide-title-inner {
    position: relative;
    color: var(--bs-white) !important;
    z-index: 2;
}

.guide .guide-item:hover .guide-title .guide-title-inner h4 {
    color: var(--bs-white);
}
/*** Travel Guide End ***/


/*** Blog Start ***/
.blog .blog-item .blog-img {
    position: relative;
}

.blog .blog-item .blog-img .blog-info {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    display: flex;
    background: rgba(255, 255, 255, .2);
    color: var(--bs-white);
}

.blog .blog-item .blog-img .blog-img-inner {
    position: relative;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

.blog .blog-item .blog-img .blog-img-inner .blog-icon {
    position: absolute;
    width: 100%;
    height: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.blog .blog-item .blog-img .blog-img-inner .blog-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.5s;
}

.blog .blog-item .blog-img:hover .blog-img-inner .blog-icon a {
    opacity: 1;
}

.blog .blog-item .blog-img:hover .blog-img-inner .blog-icon {
    height: 100%;
    background: rgba(10, 88, 136, .6);
    opacity: 1;
}

.blog .blog-item .blog-img .blog-img-inner {
    overflow: hidden;
}

.blog .blog-item .blog-img .blog-img-inner img {
    transition: 0.5s;
}

.blog .blog-item .blog-img:hover .blog-img-inner img {
    transform: scale(1.2);
}
/*** Blog End ***/

/*** Testimonial Start ***/
.testimonial .testimonial-carousel {
    position: relative;
}

.testimonial .testimonial-carousel .testimonial-item .testimonial-img {
    position: relative;
    width: 100px; 
    height: 100px; 
    top: 0; left: 50%; 
    transform: translate(-50%, -50%);
    border: 3px solid var(--bs-primary); 
    border-style: dotted;
    border-radius: 50%;
}

.testimonial .testimonial-carousel .owl-dots {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial .testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--bs-light);
    border: 1px solid var(--bs-primary);
    border-radius: 10px;
    transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-dot.active {
    width: 40px;
    background: var(--bs-primary);
}

.testimonial .testimonial-carousel .owl-nav .owl-prev {
    position: absolute;
    top: -55px;
    left: 0;
    padding: 5px 30px;
    border: 1px solid var(--bs-primary);
    border-radius: 30px;
    transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-nav .owl-next {
    position: absolute;
    top: -55px;
    right: 0;
    padding: 5px 30px;
    border: 1px solid var(--bs-primary);
    border-radius: 30px;
    transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-nav .owl-prev i,
.testimonial .testimonial-carousel .owl-nav .owl-next i {
    color: var(--bs-primary);
    font-size: 17px;
    transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial .testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--bs-primary);
}

.testimonial .testimonial-carousel .owl-nav .owl-prev:hover i,
.testimonial .testimonial-carousel .owl-nav .owl-next:hover i {
    color: var(--bs-white);
}

.testimonial .testimonial-carousel .owl-item.center .testimonial-item .testimonial-comment {
    background: var(--bs-primary) !important;
    color: var(--bs-white);
    transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-item.center .testimonial-item .testimonial-img {
    border: 3px solid var(--bs-white); 
    border-style: dotted;
    transition: 0.5s;
}
/*** Testimonial End ***/

/*** Contact Start ***/
.contact .container form .btn.btn-primary {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.contact .container form .btn.btn-primary:hover {
    box-shadow: inset 1000px 0 0 0 var(--bs-light) !important;
    color: var(--bs-primary) !important;
}
/*** Contact End ***/

/*** Subscribe Start ***/
.subscribe {
    background: linear-gradient(rgba(10, 88, 136, .6), rgba(10, 88, 136, .6)), url(../img/subscribe-img.jpg);
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.subscribe .subscribe-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-white);
}

.subscribe .subscribe-title::before {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-right: -50px;
    border: 1px solid var(--bs-white) !important;
}

.subscribe .subscribe-title::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-left: -50px;
    border: 1px solid var(--bs-white) !important;
}
/*** Subscribe End ***/

/*** Footer Start ***/
.footer {
    /* background: var(--bs-dark); */
    background-color: var(--brand);
}
.footer .footer-item a {
    line-height: 30px;
    color: var(--bs-white);
    transition: 0.5s;
}

.footer .footer-item a:hover {
    letter-spacing: 2px;
    color: var(--bs-primary);
}

/*** Footer End ***/

/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-dark) !important;
}
/*** copyright end ***/

.bg-color {
    background-color: var(--brand);
    color: #fff;
}

/*** Site Header (Rayat-style) ***/
:root {
    /* Brand palette taken from the calligraphy logo (#0a5888) */
    --brand: #0a5888;
    --brand-dark: #073f63;
    --brand-accent: #4fa3d9;
    --brand-tint: #eef5fa;
}

body.lang-mr {
    font-family: 'Mukta', 'Roboto', sans-serif;
}

.site-header {
    position: relative;
    z-index: 1000;
}

/* Utility strip */
.header-strip {
    background: var(--brand-dark);
    color: #dcecf7;
    font-size: 14px;
}

.header-strip .container {
    min-height: 38px;
}

.header-strip-tagline {
    letter-spacing: 1px;
}

.header-strip a {
    color: #dcecf7;
    transition: .3s;
}

.header-strip a:hover {
    color: var(--brand-accent);
}

.header-social a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    border-radius: 50%;
    border: 1px solid rgba(245, 230, 200, .35);
    font-size: 12px;
}

.header-social a.header-youtube-link {
    color: #ff0000;
}

.header-social a.header-youtube-link:hover {
    color: #cc0000;
}

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--brand-accent);
    border-radius: 20px;
    overflow: hidden;
}

.lang-switch a {
    padding: 2px 12px;
    font-size: 13px;
}

.lang-switch a.active {
    background: var(--brand-accent);
    color: var(--brand-dark);
    font-weight: 600;
}

/* Brand band */
.header-brand {
    background: var(--brand-tint);
    border-bottom: 4px solid var(--brand-accent);
    padding: 14px 0;
}

.header-logo img,
.header-portrait img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--brand-accent);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
    background: #fff;
}

.header-portrait img {
    object-position: top;
}

.header-title {
    flex: 1;
    padding: 0 20px;
}

.header-kicker {
    color: var(--brand-accent);
    font-weight: 600;
    letter-spacing: 3px;
    font-size: 14px;
    text-transform: uppercase;
}

.header-title h1 {
    margin: 2px 0 6px;
    font-family: 'Tiro Devanagari Marathi', 'Jost', serif;
    font-size: 52px;
    line-height: 1.15;
}

.header-title h1 a {
    color: var(--brand);
}

.header-motto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #444;
    font-size: 17px;
}

.header-motto::before,
.header-motto::after {
    content: "";
    flex: 0 1 70px;
    height: 2px;
    background: var(--brand);
}

/* Main menu bar */
.main-nav {
    background: var(--brand);
    padding: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
}

.main-nav.navbar .navbar-nav .nav-link {
    color: #fff;
    font-size: 16px;
    padding: 14px 16px;
    transition: .3s;
}

.main-nav.navbar .navbar-nav .nav-link:hover,
.main-nav.navbar .navbar-nav .nav-link.active {
    background: var(--brand-accent);
    color: var(--brand-dark);
}

.main-nav .navbar-brand {
    color: #fff;
    font-size: 16px;
}

.main-nav .navbar-toggler {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .5);
    margin: 8px 0;
}

.main-nav .dropdown-menu {
    border: 0;
    border-top: 3px solid var(--brand-accent);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
    padding: 0;
}

.main-nav .dropdown-item {
    padding: 10px 18px;
    border-bottom: 1px solid #e1edf5;
}

.main-nav .dropdown-item:hover,
.main-nav .dropdown-item.active {
    background: var(--brand);
    color: #fff;
}

/* Hero no longer sits under a transparent navbar */
.carousel-header .carousel-inner .carousel-item {
    min-height: 75vh;
}

.carousel-header .carousel-inner .carousel-item .carousel-caption {
    padding-top: 0;
}

@media (max-width: 991.98px) {
    .header-title h1 {
        font-size: 36px;
    }

    .header-logo img,
    .header-portrait img {
        width: 85px;
        height: 85px;
    }
}

@media (max-width: 575.98px) {
    .header-brand .container {
        flex-direction: column;
    }

    .header-title {
        padding: 8px 0 0;
    }

    .header-title h1 {
        font-size: 28px;
    }

    .header-motto {
        font-size: 14px;
    }

    .header-motto::before,
    .header-motto::after {
        display: none;
    }
}
/*** Site Header End ***/

/* Letter-spacing breaks Devanagari conjuncts */
body.lang-mr .header-kicker,
body.lang-mr .header-strip-tagline {
    letter-spacing: 0;
}

/* Logo (face + calligraphy) and family portraits */
.header-logo img {
    width: auto;
    height: 100px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.header-family {
    gap: 12px;
}

.header-family figure {
    margin: 0;
    width: 92px;
    text-align: center;
}

.header-family img {
    width: 80px;
    height: 92px;
    object-fit: cover;
    object-position: top;
    border-radius: 45%;
    border: 3px solid var(--brand-accent);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
}

.header-family figcaption {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.2;
    color: var(--brand);
    font-weight: 600;
}

@media (max-width: 1199.98px) {
    .header-title h1 {
        font-size: 38px;
    }
    .header-logo img {
        height: 80px;
    }
}

@media (max-width: 575.98px) {
    .header-logo img {
        height: 70px;
    }
}

/*** Content pages ***/
.content-section {
    padding: 60px 0;
}

.content-section.alt {
    background: var(--brand-tint);
}

.content-section h2 {
    color: var(--brand);
    margin-bottom: 20px;
}

.content-section p {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
}

.section-kicker {
    display: inline-block;
    color: var(--brand-accent);
    font-weight: 600;
    margin-bottom: 6px;
}

.photo-frame {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    margin: 0;
}

.photo-frame img {
    width: 100%;
    display: block;
}

.photo-frame figcaption {
    background: #fff;
    padding: 10px 14px;
    font-size: 14px;
    color: #666;
}

/* Fact / stat tiles */
.fact-tile {
    background: #fff;
    border-top: 4px solid var(--brand-accent);
    border-radius: 8px;
    padding: 22px 16px;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .07);
}

.fact-tile .num {
    font-size: 34px;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.1;
}

.fact-tile .label {
    color: #555;
    margin-top: 6px;
}

/* Info cards */
.info-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
}

.info-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.info-card .body {
    padding: 18px 20px;
    flex: 1;
}

.info-card h5 {
    color: var(--brand);
    margin-bottom: 6px;
}

.info-card .meta {
    color: var(--brand-accent);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.info-card .icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 32px;
    border-left: 3px solid var(--brand-accent);
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -42px;
    top: 6px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--brand);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--brand-accent);
}

.timeline-year {
    font-weight: 700;
    color: var(--brand);
    font-size: 20px;
}

.timeline-item p {
    margin: 2px 0 0;
    font-size: 16px;
}

/* Quotes */
.quote-card {
    background: #fff;
    border-left: 5px solid var(--brand-accent);
    border-radius: 8px;
    padding: 28px 26px 22px 60px;
    position: relative;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .07);
}

.quote-card::before {
    content: "\201C";
    position: absolute;
    left: 16px;
    top: 0;
    font-size: 70px;
    color: var(--brand);
    font-family: Georgia, serif;
}

.quote-card blockquote {
    font-size: 19px;
    line-height: 1.7;
    color: #333;
    margin: 0 0 10px;
}

.quote-card cite {
    color: var(--brand);
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
}

.source-note {
    font-size: 14px;
    color: #777;
    text-align: center;
    margin-top: 30px;
}
/*** Content pages end ***/

/* Accent text on light backgrounds needs a darker blue for contrast */
.header-kicker,
.section-kicker,
.info-card .meta {
    color: #2f7aab;
}

.header-logo img {
    width: 110px;
    height: 110px;
}

@media (max-width: 1199.98px) {
    .header-logo img { width: 90px; height: 90px; }
}

@media (max-width: 575.98px) {
    .header-logo img { width: 80px; height: 80px; }
}

/*** Page hero (breadcrumb banner) ***/
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 84px;
    color: #fff;
    background:
        linear-gradient(110deg, rgba(7, 63, 99, .96) 0%, rgba(10, 88, 136, .9) 55%, rgba(10, 88, 136, .72) 100%),
        url(/images/banner/img_1-web.jpg) center 30% / cover no-repeat;
}

.page-hero-rings {
    position: absolute;
    right: -120px;
    top: 50%;
    width: 420px;
    height: 420px;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .12);
    box-shadow:
        0 0 0 40px rgba(255, 255, 255, .04),
        0 0 0 90px rgba(255, 255, 255, .03);
    pointer-events: none;
}

.page-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #bfe0f5;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
}

.page-hero-kicker::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: var(--brand-accent);
}

.page-hero-title {
    color: #fff;
    font-size: 46px;
    font-weight: 700;
    margin: 0 0 18px;
    line-height: 1.2;
}

body.lang-mr .page-hero-title {
    font-family: 'Tiro Devanagari Marathi', 'Mukta', serif;
    font-weight: 400;
}

.page-hero-crumbs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 7px 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(4px);
    font-size: 14px;
}

.page-hero-crumbs li {
    display: inline-flex;
    align-items: center;
    color: #fff;
}

.page-hero-crumbs li + li::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin: 0 10px;
    color: var(--brand-accent);
    font-size: 12px;
}

.page-hero-crumbs a {
    color: #dcecf7;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: .3s;
}

.page-hero-crumbs a:hover {
    color: #fff;
}

.page-hero-crumbs li[aria-current] {
    color: #fff;
    font-weight: 600;
}

.page-hero-curve {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 40px;
    fill: #fff;
}

@media (max-width: 767.98px) {
    .page-hero {
        padding: 36px 0 64px;
    }

    .page-hero-title {
        font-size: 32px;
    }

    .page-hero-rings {
        display: none;
    }
}
/*** Page hero end ***/

/*** Responsive refinements ***/
img {
    max-width: 100%;
}

/* Home slider: undo the template's -100px pull-up (meant for the old transparent navbar) */
.carousel-header,
.carousel-header .carousel-inner .carousel-item,
.carousel-header .carousel-inner .carousel-item img,
.carousel-header .carousel-inner .carousel-item .carousel-caption {
    height: auto !important;
    margin-top: 0 !important;
}

.carousel-header .carousel-inner .carousel-item {
    min-height: clamp(340px, 70vh, 720px);
}

.carousel-header .carousel-inner .carousel-item img,
.carousel-header .carousel-inner .carousel-item .carousel-caption {
    height: 100% !important;
}

.carousel-header .carousel-caption h1 {
    font-size: clamp(28px, 6vw, 64px);
}

.carousel-header .carousel-caption p {
    font-size: clamp(15px, 2.2vw, 20px) !important;
}

/* Tablet */
@media (max-width: 991.98px) {
    .main-nav .navbar-collapse {
        padding-bottom: 10px;
    }

    .main-nav.navbar .navbar-nav .nav-link {
        padding: 12px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .main-nav .dropdown-menu {
        border-radius: 0;
        box-shadow: none;
        margin: 0 0 6px !important;
    }

    .main-nav .dropdown-item {
        padding: 10px 28px;
        white-space: normal;
    }

    .content-section {
        padding: 44px 0;
    }
}

/* Phone */
@media (max-width: 575.98px) {
    .header-strip .container {
        justify-content: center !important;
    }

    .header-strip .ms-auto {
        margin-left: 0 !important;
        width: 100%;
        justify-content: space-between;
    }

    /* Logo and name side by side instead of stacked */
    .header-brand {
        padding: 10px 0;
    }

    .header-brand .container {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
    }

    .header-logo img {
        width: 64px;
        height: 64px;
    }

    .header-title {
        text-align: left !important;
        padding: 0;
    }

    .header-kicker {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .header-title h1 {
        font-size: 24px;
        margin: 0 0 2px;
    }

    .header-motto {
        justify-content: flex-start;
        font-size: 12px;
        line-height: 1.4;
    }

    .content-section {
        padding: 36px 0;
    }

    .content-section h2 {
        font-size: 26px;
    }

    .content-section p {
        font-size: 16px;
    }

    .fact-tile {
        padding: 16px 10px;
    }

    .fact-tile .num {
        font-size: 26px;
    }

    .fact-tile .label {
        font-size: 14px;
    }

    .quote-card {
        padding: 24px 18px 18px 48px;
    }

    .quote-card::before {
        left: 10px;
        font-size: 56px;
    }

    .quote-card blockquote {
        font-size: 17px;
    }

    .timeline {
        padding-left: 24px;
    }

    .timeline-item::before {
        left: -34px;
    }

    .page-hero-title {
        font-size: 28px;
    }

    .page-hero-crumbs {
        font-size: 13px;
        padding: 6px 14px;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
    }
}

/* Very small phones */
@media (max-width: 374.98px) {
    .header-title h1 {
        font-size: 21px;
    }

    .lang-switch a {
        padding: 2px 8px;
    }
}

/* Large desktops */
@media (min-width: 1600px) {
    .header-title h1 {
        font-size: 58px;
    }
}
/*** Responsive refinements end ***/

/* Wide g-5 gutters overflow the container on phones; tighten them */
@media (max-width: 575.98px) {
    .row.g-5,
    .row.gx-5 {
        --bs-gutter-x: 1.5rem;
    }

    .row.g-5 {
        --bs-gutter-y: 2rem;
    }
}

/*** Fixed, compact header ***/
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}

/* Smaller default header */
.header-strip .container {
    min-height: 32px;
}

.header-brand {
    padding: 8px 0;
    border-bottom-width: 3px;
}

.header-logo img {
    width: 84px;
    height: 84px;
    transition: width .3s, height .3s;
}

.header-title h1 {
    font-size: 40px;
    margin: 0 0 2px;
    transition: font-size .3s;
}

.header-motto {
    font-size: 15px;
}

.header-family figure {
    width: 78px;
}

.header-family img {
    width: 64px;
    height: 72px;
}

.header-family figcaption {
    font-size: 11px;
}

.main-nav.navbar .navbar-nav .nav-link {
    padding-top: 11px;
    padding-bottom: 11px;
}

/* The template script adds .sticky-top to .navbar on scroll; the whole header is sticky instead */
.main-nav.sticky-top {
    position: static;
}

/* Scrolled state: single compact bar */
.site-header.is-scrolled .header-strip,
.site-header.is-scrolled .header-motto,
.site-header.is-scrolled .header-family figcaption {
    display: none !important;
}

.site-header.is-scrolled .header-brand {
    padding: 4px 0;
}

.site-header.is-scrolled .header-logo img {
    width: 48px;
    height: 48px;
}

.site-header.is-scrolled .header-title h1 {
    font-size: 26px;
    margin: 0;
}

.site-header.is-scrolled .main-nav.navbar .navbar-nav .nav-link {
    padding-top: 8px;
    padding-bottom: 8px;
}

@media (max-width: 1199.98px) {
    .header-title h1 { font-size: 34px; }
    .header-logo img { width: 72px; height: 72px; }
}

@media (min-width: 1600px) {
    .header-title h1 { font-size: 44px; }
}

@media (max-width: 991.98px) {
    /* Let the opened mobile menu scroll inside the fixed header */
    .main-nav .navbar-collapse.show,
    .main-nav .navbar-collapse.collapsing {
        max-height: calc(100vh - 150px);
        overflow-y: auto;
    }
}

@media (max-width: 575.98px) {
    .header-logo img { width: 56px; height: 56px; }
    .header-title h1 { font-size: 22px; }
    .header-motto { font-size: 11px; }
    .site-header.is-scrolled .header-logo img { width: 40px; height: 40px; }
    .site-header.is-scrolled .header-title h1 { font-size: 20px; }
    .main-nav .navbar-toggler { margin: 5px 0; }
}
/* Family photos stay visible in the compact bar, smaller and without captions */
.header-family img {
    transition: width .3s, height .3s;
}

.site-header.is-scrolled .header-family {
    gap: 8px;
}

.site-header.is-scrolled .header-family figure {
    width: auto;
}

.site-header.is-scrolled .header-family img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border-width: 2px;
}
/*** Fixed header end ***/

/*** Page hero v2: light banner (overrides the blue version above) ***/
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 44px 0 40px;
    color: var(--brand-dark);
    background:
        radial-gradient(circle at 1px 1px, rgba(10, 88, 136, .12) 1px, transparent 0) 0 0 / 18px 18px,
        linear-gradient(120deg, #f7fbfe 0%, var(--brand-tint) 60%, #e3eff8 100%);
}

.page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-dark), var(--brand), var(--brand-accent));
}

.page-hero-watermark {
    position: absolute;
    right: -10px;
    bottom: -18px;
    font-size: 120px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    color: rgba(10, 88, 136, .06);
    pointer-events: none;
    user-select: none;
}

body.lang-mr .page-hero-watermark {
    font-family: 'Tiro Devanagari Marathi', serif;
    font-weight: 400;
}

.page-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.page-hero-kicker {
    color: #2f7aab;
}

.page-hero-kicker::before {
    background: var(--brand);
}

.page-hero-title {
    position: relative;
    color: var(--brand-dark);
    margin: 0;
    padding-bottom: 12px;
}

.page-hero-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-accent));
}

.page-hero-crumbs {
    background: #fff;
    border: 1px solid #d6e7f3;
    box-shadow: 0 6px 18px rgba(10, 88, 136, .10);
    backdrop-filter: none;
    padding: 9px 20px;
}

.page-hero-crumbs li {
    color: var(--brand-dark);
}

.page-hero-crumbs a {
    color: var(--brand);
}

.page-hero-crumbs a:hover {
    color: var(--brand-dark);
}

.page-hero-crumbs li[aria-current] {
    color: #555;
    font-weight: 600;
}

.page-hero-crumbs li + li::before {
    color: var(--brand-accent);
}

@media (max-width: 767.98px) {
    .page-hero {
        padding: 30px 0 28px;
    }

    .page-hero-watermark {
        font-size: 70px;
        bottom: -10px;
    }

    .page-hero-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }
}
/*** Page hero v2 end ***/

/* Keep the name truly centred: equal side columns around it */
@media (min-width: 576px) {
    .header-brand .container {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    .header-logo {
        justify-self: start;
    }

    .header-title {
        text-align: center !important;
        padding: 0 16px;
    }

    .header-family {
        justify-self: end;
    }

    .header-motto {
        justify-content: center;
    }
}

@media (min-width: 576px) {
    .header-brand .container {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }
}

/* Small laptops: slimmer family photos so the side columns stay balanced */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .header-family {
        gap: 6px;
    }

    .header-family figure {
        width: 62px;
    }

    .header-family img {
        width: 52px;
        height: 60px;
    }

    .header-family figcaption {
        font-size: 10px;
    }

    .header-title h1 {
        font-size: 30px;
    }
}

/* Wide gutters can poke a few px past the viewport at breakpoint edges */
.content-section {
    overflow-x: clip;
}

/*** Single About page ***/
.about-jump {
    background: #fff;
    border-bottom: 1px solid #e1edf5;
}

.about-jump ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 16px 0;
}

.about-jump a {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid #cfe2f0;
    color: var(--brand);
    font-size: 15px;
    transition: .3s;
}

.about-jump a:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* Land below the fixed header when jumping to a section */
.about-block {
    scroll-margin-top: 110px;
}

.about-block-head {
    padding-top: 50px;
}

.about-block-head h2 {
    position: relative;
    display: inline-block;
    color: var(--brand-dark);
    font-size: 34px;
    margin: 0;
    padding-bottom: 10px;
}

.about-block-head h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-accent));
}

.about-block .content-section:first-of-type {
    padding-top: 30px;
}

body.lang-mr .about-block-head h2 {
    font-family: 'Tiro Devanagari Marathi', serif;
    font-weight: 400;
}

@media (max-width: 575.98px) {
    .about-jump ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 12px 0;
        -webkit-overflow-scrolling: touch;
    }

    .about-jump a {
        white-space: nowrap;
        font-size: 14px;
    }

    .about-block-head {
        padding-top: 34px;
    }

    .about-block-head h2 {
        font-size: 26px;
    }
}
/*** Single About page end ***/

/*** Horizontal era timeline ***/
.era-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 30px 0 34px;
    padding-top: 6px;
}

/* The line running through the dots */
.era-track::before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 22px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #cfe2f0, var(--brand-accent), var(--brand));
}

.era-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 4px 12px;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--brand-dark);
    text-align: center;
}

.era-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #cfe2f0;
    box-shadow: 0 0 0 4px #fff;
    transition: .3s;
    margin-bottom: 6px;
}

.era-years {
    font-weight: 700;
    font-size: 18px;
}

.era-name {
    font-size: 14px;
    color: #666;
}

.era-node:hover .era-dot {
    border-color: var(--brand-accent);
}

.era-node.active .era-dot {
    background: var(--brand);
    border-color: var(--brand-accent);
    transform: scale(1.15);
}

.era-node.active .era-years {
    color: var(--brand);
}

/* Little pointer under the active node, towards the panel */
.era-node.active::after {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-bottom-color: var(--brand-tint);
}

.era-node:focus-visible {
    outline: 3px solid var(--brand-accent);
    outline-offset: 2px;
    border-radius: 8px;
}

.era-panel {
    background: var(--brand-tint);
    border-radius: 12px;
    padding: 28px;
    animation: eraFade .35s ease;
}

@keyframes eraFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.era-panel-title {
    color: var(--brand-dark);
    font-size: 26px;
    margin-bottom: 16px;
}

.era-panel-title small {
    font-size: 16px;
    color: #2f7aab;
    margin-left: 6px;
}

.era-events {
    list-style: none;
    margin: 0;
    padding: 0;
}

.era-events li {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed #c9dcea;
    line-height: 1.6;
}

.era-events li:last-child {
    border-bottom: 0;
}

.era-event-year {
    flex: 0 0 92px;
    font-weight: 700;
    color: var(--brand);
}

.era-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.era-photos figure {
    margin: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(10, 88, 136, .10);
}

.era-photos img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform .4s;
}

.era-photos a:hover img {
    transform: scale(1.06);
}

.era-photos a {
    display: block;
    overflow: hidden;
}

.era-photos figcaption {
    padding: 8px 10px;
    font-size: 13px;
    color: #555;
}

/* Phones: timeline scrolls sideways */
@media (max-width: 767.98px) {
    .era-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin: 20px -12px 30px;
        padding: 6px 12px 0;
        -webkit-overflow-scrolling: touch;
    }

    .era-track::before {
        left: 12px;
        right: auto;
        width: 640px;
    }

    .era-node {
        flex: 0 0 128px;
        scroll-snap-align: center;
    }

    .era-years {
        font-size: 16px;
    }

    .era-panel {
        padding: 20px 16px;
    }

    .era-event-year {
        flex-basis: 70px;
    }

    .era-photos img {
        height: 110px;
    }
}
/*** Horizontal era timeline end ***/

/*** Family tree ***/
.family-tree-scroll {
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.family-tree {
    --ft-line: #9cc6e3;
    min-width: 820px;
    max-width: 1000px;
    margin: 0 auto;
}

.ft-gen {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: start;
}

.ft-gen-main {
    grid-template-columns: 1fr;
    padding-top: 48px;
    margin-bottom: 0;
}

/* Parents -> Ramsheth & Shakuntala: drop from both families, join, then down */
.ft-gen-parents .ft-couple::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -24px;
    height: 24px;
    border-left: 3px solid var(--ft-line);
}

.ft-gen-main::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 25%;
    right: 25%;
    border-top: 3px solid var(--ft-line);
}

.ft-gen-main::after {
    content: "";
    position: absolute;
    top: 24px;
    left: 50%;
    height: 24px;
    border-left: 3px solid var(--ft-line);
}

/* Ramsheth & Shakuntala -> sons */
.ft-gen-children {
    padding-top: 48px;
}

.ft-gen-children::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    height: 24px;
    border-left: 3px solid var(--ft-line);
}

.ft-gen-children::after {
    content: "";
    position: absolute;
    top: 24px;
    left: 25%;
    right: 25%;
    border-top: 3px solid var(--ft-line);
}

.ft-branch {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ft-branch::before {
    content: "";
    position: absolute;
    top: -24px;
    left: 50%;
    height: 24px;
    border-left: 3px solid var(--ft-line);
}

/* Couple card */
.ft-couple {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    background: #fff;
    border: 1px solid #d6e7f3;
    border-radius: 14px;
    padding: 14px 12px 12px;
    box-shadow: 0 6px 18px rgba(10, 88, 136, .08);
}

.ft-couple-main {
    border: 2px solid var(--brand);
    background: linear-gradient(180deg, #fff, var(--brand-tint));
    box-shadow: 0 10px 26px rgba(10, 88, 136, .18);
}

.ft-heart {
    align-self: center;
    margin-top: -24px;
    color: #d9534f;
    font-size: 14px;
}

.ft-person {
    width: 150px;
    text-align: center;
}

.ft-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 3px solid var(--brand-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.ft-initial {
    background: linear-gradient(135deg, var(--brand), var(--brand-accent));
    color: #fff;
    font-size: 30px;
    font-weight: 600;
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--brand-accent);
}

.ft-highlight .ft-avatar {
    width: 92px;
    height: 92px;
    border-color: var(--brand);
}

.ft-name {
    margin-top: 8px;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.3;
    font-size: 15px;
}

.ft-rel {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 10px;
    border-radius: 10px;
    background: var(--brand-tint);
    color: #2f7aab;
    font-size: 12px;
    font-weight: 600;
}

.ft-note {
    margin-top: 4px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Grandchildren under each son */
.ft-grandkids {
    position: relative;
    display: flex;
    gap: 24px;
    margin-top: 48px;
}

.ft-grandkids::before {
    content: "";
    position: absolute;
    top: -48px;
    left: 50%;
    height: 24px;
    border-left: 3px solid var(--ft-line);
}

.ft-grandkids::after {
    content: "";
    position: absolute;
    top: -24px;
    left: 25%;
    right: 25%;
    border-top: 3px solid var(--ft-line);
}

.ft-grandkids .ft-person {
    position: relative;
    background: #fff;
    border: 1px solid #d6e7f3;
    border-radius: 12px;
    padding: 12px 8px 10px;
    width: 120px;
}

.ft-grandkids .ft-person::before {
    content: "";
    position: absolute;
    top: -25px;
    left: 50%;
    height: 24px;
    border-left: 3px solid var(--ft-line);
}

.ft-small .ft-avatar {
    width: 54px;
    height: 54px;
    font-size: 22px;
}

/* Siblings */
.ft-siblings {
    max-width: 820px;
    margin: 40px auto 0;
    text-align: center;
    background: var(--brand-tint);
    border-radius: 14px;
    padding: 24px;
}

.ft-siblings h3 {
    color: var(--brand-dark);
    font-size: 22px;
    margin-bottom: 4px;
}

.ft-siblings ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.ft-siblings li {
    background: #fff;
    border: 1px solid #cfe2f0;
    border-radius: 20px;
    padding: 5px 14px;
    color: var(--brand-dark);
    font-size: 14px;
}

@media (max-width: 991.98px) {
    .family-tree-scroll::after {
        content: "";
    }
}
/*** Family tree end ***/

.ft-gen-parents {
    align-items: stretch;
}

/*** Site footer ***/
.site-footer {
    color: #cfe2f0;
    background: var(--brand-dark);
}

.footer-cta {
    background: linear-gradient(110deg, var(--brand) 0%, #0d6aa3 100%);
    padding: 28px 0;
}

.footer-cta h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 4px;
}

.footer-cta p {
    color: #dcecf7;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: var(--brand-dark);
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 30px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
    transition: .3s;
}

.footer-cta-btn:hover {
    background: var(--brand-accent);
    color: #fff;
}

.footer-main {
    padding: 56px 0 40px;
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .05) 1px, transparent 0) 0 0 / 20px 20px,
        var(--brand-dark);
}

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

.footer-brand img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.footer-brand-name {
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

body.lang-mr .footer-brand-name {
    font-family: 'Tiro Devanagari Marathi', serif;
    font-weight: 400;
    font-size: 23px;
}

.footer-brand-sub {
    font-size: 13px;
    color: #9cc6e3;
}

.footer-about {
    font-size: 15px;
    line-height: 1.7;
    color: #cfe2f0;
}

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

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transition: .3s;
}

.footer-social a:hover {
    background: var(--brand-accent);
}

.footer-heading {
    position: relative;
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: var(--brand-accent);
}

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

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

.footer-links a {
    color: #cfe2f0;
    font-size: 15px;
    transition: .3s;
}

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

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

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

.footer-contact i {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(79, 163, 217, .15);
    color: var(--brand-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.footer-contact span,
.footer-contact a {
    padding-top: 5px;
    color: #cfe2f0;
    word-break: break-word;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: #052f4b;
    padding: 16px 0;
    font-size: 14px;
    color: #9cc6e3;
}

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

.footer-bottom-links a {
    color: #cfe2f0;
}

.footer-bottom-links a:hover {
    color: #fff;
}

@media (max-width: 767.98px) {
    .footer-cta {
        text-align: center;
    }

    .footer-cta .container {
        justify-content: center !important;
    }

    .footer-cta h3 {
        font-size: 20px;
    }

    .footer-main {
        padding: 40px 0 24px;
    }

    .footer-bottom .container {
        justify-content: center !important;
        text-align: center;
    }
}
/*** Site footer end ***/

/* Seven top-level menu items: tighten spacing on small laptops */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .main-nav.navbar .navbar-nav .nav-link {
        padding-left: 9px;
        padding-right: 9px;
        font-size: 15px;
    }

    .main-nav .nav-link i {
        display: none;
    }
}

.footer-main {
    overflow-x: clip;
}

.footer-visitors {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
    color: #cfe2f0;
}

.footer-visitors i {
    color: var(--brand-accent);
}

.footer-visitors strong {
    color: #fff;
    letter-spacing: .5px;
}

/*** Home page ***/
.home-hero .carousel-item {
    position: relative;
    height: clamp(380px, 72vh, 680px);
    background: var(--brand-dark);
}

.home-hero .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.home-hero-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(5, 47, 75, .88) 0%, rgba(7, 63, 99, .6) 45%, rgba(7, 63, 99, 0) 80%);
    padding-bottom: 40px;
}

.home-hero-text {
    max-width: 600px;
    color: #fff;
}

.home-hero-kicker {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .3);
    font-size: 14px;
    margin-bottom: 14px;
}

.home-hero-text h2 {
    color: #fff;
    font-size: clamp(28px, 4.6vw, 54px);
    line-height: 1.2;
    margin-bottom: 14px;
}

body.lang-mr .home-hero-text h2 {
    font-family: 'Tiro Devanagari Marathi', serif;
    font-weight: 400;
}

.home-hero-text p {
    font-size: clamp(15px, 1.6vw, 19px);
    color: #dcecf7;
    margin-bottom: 24px;
}

.home-hero .carousel-indicators {
    margin-bottom: 64px;
}

.home-hero .carousel-control-prev,
.home-hero .carousel-control-next {
    width: 6%;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 26px;
    border-radius: 30px;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    border: 2px solid var(--brand);
    transition: .3s;
}

.home-btn:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.home-hero .home-btn {
    background: #fff;
    color: var(--brand-dark);
    border-color: #fff;
}

.home-hero .home-btn:hover {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
}

.home-btn-outline {
    background: transparent;
    color: var(--brand);
}

.home-btn-outline:hover {
    background: var(--brand);
    color: #fff;
}

.home-btn-light {
    background: #fff;
    color: var(--brand-dark);
    border-color: #fff;
}

.home-btn-light:hover {
    background: transparent;
    color: #fff;
}

/* Stats overlapping the slider */
.home-stats {
    position: relative;
    z-index: 5;
    margin-top: -48px;
}

.home-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(10, 88, 136, .15);
    border-bottom: 4px solid var(--brand);
}

.home-stat i {
    flex: 0 0 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.home-stat .num {
    font-size: 26px;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.1;
}

.home-stat .label {
    font-size: 14px;
    color: #555;
}

/* Intro photo */
.home-intro-photo {
    position: relative;
    padding: 0 0 24px 24px;
}

.home-intro-photo::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70%;
    height: 70%;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-accent));
}

.home-intro-photo img {
    position: relative;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
}

.home-intro-badge {
    position: absolute;
    right: -10px;
    bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 220px;
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 10px 24px rgba(10, 88, 136, .2);
    font-size: 14px;
    line-height: 1.3;
    color: #444;
}

.home-intro-badge .num {
    font-size: 36px;
    font-weight: 700;
    color: var(--brand);
}

/* Section heading row with "view all" link */
.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.home-section-head h2 {
    margin-bottom: 0;
}

.home-link {
    color: var(--brand);
    font-weight: 600;
}

.home-link:hover {
    color: var(--brand-dark);
}

/* Journey strip */
.home-journey {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    padding-top: 28px;
}

.home-journey::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #cfe2f0, var(--brand-accent), var(--brand));
    border-radius: 2px;
}

.home-journey-item {
    position: relative;
}

.home-journey-item::before {
    content: "";
    position: absolute;
    top: -27px;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--brand-accent);
}

.home-journey-item .year {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand);
}

.home-journey-item p {
    font-size: 15px;
    margin: 4px 0 0;
}

/* Institution cards are links */
.home-inst {
    color: inherit;
    transition: transform .3s, box-shadow .3s;
}

.home-inst:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(10, 88, 136, .18);
    color: inherit;
}

.home-inst img {
    height: 180px;
}

/* Quote band */
.home-quote {
    padding: 70px 0;
    color: #fff;
    background:
        linear-gradient(110deg, rgba(5, 47, 75, .94), rgba(10, 88, 136, .9)),
        url(/images/banner/img_2-web.jpg) center / cover; /* not 'fixed': fixed backgrounds repaint on every scroll frame and make scrolling stutter */
}

.home-quote > .container > i {
    font-size: 40px;
    color: var(--brand-accent);
    margin-bottom: 16px;
}

.home-quote blockquote {
    max-width: 820px;
    margin: 0 auto 14px;
    font-size: clamp(20px, 2.6vw, 30px);
    line-height: 1.6;
}

body.lang-mr .home-quote blockquote {
    font-family: 'Tiro Devanagari Marathi', serif;
}

.home-quote cite {
    font-style: normal;
    color: #bfe0f5;
    font-weight: 600;
}

/* Gallery grid */
.home-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    gap: 12px;
}

.home-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

.home-gallery a:first-child {
    grid-row: span 2;
}

.home-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.home-gallery a:hover img {
    transform: scale(1.07);
}

@media (max-width: 991.98px) {
    .home-journey {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 40px;
    }

    .home-journey::before {
        display: none;
    }

    .home-intro-badge {
        right: 10px;
    }
}

@media (max-width: 767.98px) {
    .home-hero-caption {
        background: linear-gradient(0deg, rgba(5, 47, 75, .92) 0%, rgba(7, 63, 99, .55) 60%, rgba(7, 63, 99, .2) 100%);
        align-items: flex-end;
        padding-bottom: 70px;
    }

    .home-hero .carousel-control-prev,
    .home-hero .carousel-control-next {
        display: none;
    }

    .home-stats {
        margin-top: -30px;
    }

    .home-stat {
        flex-direction: column;
        text-align: center;
        padding: 14px 10px;
        gap: 8px;
    }

    .home-stat .num {
        font-size: 22px;
    }

    .home-quote {
        background-attachment: scroll;
        padding: 50px 0;
    }

    .home-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
}

@media (max-width: 575.98px) {
    .home-journey {
        grid-template-columns: repeat(2, 1fr);
    }
}
/*** Home page end ***/

/*** Gallery page ***/
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.gallery-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 24px;
    border: 1px solid #cfe2f0;
    background: #fff;
    color: var(--brand-dark);
    font-size: 15px;
    cursor: pointer;
    transition: .25s;
}

.gallery-filter .count {
    min-width: 26px;
    padding: 1px 8px;
    border-radius: 12px;
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
}

.gallery-filter:hover {
    border-color: var(--brand-accent);
}

.gallery-filter.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.gallery-filter.active .count {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.gallery-filter:focus-visible {
    outline: 3px solid var(--brand-accent);
    outline-offset: 2px;
}

/* Masonry: photos keep their own shape */
.gallery-grid {
    column-count: 4;
    column-gap: 12px;
}

.gallery-tile {
    position: relative;
    display: block;
    margin-bottom: 12px;
    border-radius: 10px;
    overflow: hidden;
    break-inside: avoid;
    background: var(--brand-tint);
}

.gallery-tile img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .5s;
}

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

.gallery-tile-tag {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 2px 10px;
    border-radius: 12px;
    background: rgba(7, 63, 99, .8);
    color: #fff;
    font-size: 12px;
    opacity: 0;
    transform: translateY(6px);
    transition: .3s;
}

.gallery-tile:hover .gallery-tile-tag {
    opacity: 1;
    transform: none;
}

@media (max-width: 1199.98px) {
    .gallery-grid { column-count: 3; }
}

@media (max-width: 767.98px) {
    .gallery-grid { column-count: 2; column-gap: 8px; }
    .gallery-tile { margin-bottom: 8px; }

    .gallery-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-filter { white-space: nowrap; font-size: 14px; }
}
/*** Gallery page end ***/

/*** Photo strip (album photos inside content pages) ***/
.photo-strip {
    margin-top: 40px;
}

.photo-strip-title {
    color: var(--brand-dark);
    font-size: 22px;
    margin-bottom: 16px;
}

.photo-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.photo-strip-grid a {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--brand-tint);
}

.photo-strip-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.photo-strip-grid a:hover img {
    transform: scale(1.06);
}

.photo-strip-grid span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 10px 8px;
    background: linear-gradient(0deg, rgba(5, 47, 75, .85), transparent);
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
}

@media (max-width: 767.98px) {
    .photo-strip-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/*** News & Media ***/
.media-subnav {
    background: #fff;
    border-bottom: 1px solid #e1edf5;
}

.media-subnav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 14px 0;
}

.media-subnav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 22px;
    color: var(--brand-dark);
    font-size: 15px;
    transition: .25s;
}

.media-subnav a i {
    color: var(--brand-accent);
}

.media-subnav a:hover {
    background: var(--brand-tint);
}

.media-subnav a.active {
    background: var(--brand);
    color: #fff;
}

.media-subnav a.active i {
    color: #fff;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2f7aab;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.news-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    background: #d9534f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin-right: 10px;
}

/* Lead story */
.news-lead {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 88, 136, .12);
}

.news-lead-img img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.news-lead-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.news-lead-body h2 {
    color: var(--brand-dark);
    font-size: 30px;
    margin: 6px 0 12px;
}

/* Cards */
.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(10, 88, 136, .08);
    transition: transform .3s, box-shadow .3s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(10, 88, 136, .15);
}

.news-card img,
.news-card-noimg {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-accent));
    color: rgba(255, 255, 255, .85);
    font-size: 48px;
}

.news-card .body {
    padding: 18px 20px 20px;
    flex: 1;
}

.news-card h5 {
    color: var(--brand-dark);
    line-height: 1.4;
}

.news-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

/* Press releases */
.press-list {
    max-width: 900px;
    margin: 0 auto;
}

.press-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid #e1edf5;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
}

.press-icon {
    flex: 0 0 56px;
    height: 56px;
    border-radius: 12px;
    background: #fdecea;
    color: #d9534f;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.press-body {
    flex: 1;
}

/* Clippings */
.clip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.clip-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(10, 88, 136, .08);
    color: inherit;
}

.clip-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top;
}

.clip-card .body {
    padding: 14px 16px;
}

.clip-paper {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
}

/* Video cards */
.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(10, 88, 136, .08);
}

.video-card .body {
    padding: 14px 16px;
}

/* Parliament speeches */
.speech-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: sp;
}

.speech-list li {
    display: flex;
    gap: 18px;
    padding: 18px 20px;
    margin-bottom: 12px;
    background: #fff;
    border-left: 4px solid var(--brand);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(10, 88, 136, .07);
}

.speech-date {
    flex: 0 0 130px;
    font-weight: 700;
    color: var(--brand);
    font-size: 15px;
}

.speech-list h5 {
    color: var(--brand-dark);
    margin-bottom: 4px;
}

.speech-list p {
    margin: 0;
    font-size: 15px;
}

/* Publications */
.pub-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 44px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.pub-cover {
    position: relative;
    aspect-ratio: 3 / 4.3;
    border-radius: 6px 14px 14px 6px;
    padding: 34px 26px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at 80% 15%, rgba(255, 255, 255, .15), transparent 45%),
        linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 70%);
    box-shadow: -8px 0 0 #052f4b inset, 0 18px 40px rgba(5, 47, 75, .35);
    transform: perspective(900px) rotateY(-8deg);
}

.pub-cover-title {
    font-family: 'Tiro Devanagari Marathi', serif;
    font-size: 54px;
    line-height: 1.1;
}

.pub-cover-sub {
    font-size: 16px;
    color: #bfe0f5;
}

.pub-cover-author {
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, .3);
    padding-top: 12px;
}

.pub-sub {
    font-size: 18px !important;
    color: #2f7aab !important;
}

.pub-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.pub-meta li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed #d6e7f3;
}

.pub-meta i {
    width: 20px;
    color: var(--brand-accent);
}

.pub-meta span {
    font-weight: 600;
    color: var(--brand-dark);
}

/* Empty state */
.media-empty {
    max-width: 560px;
    margin: 20px auto;
    text-align: center;
    padding: 44px 30px;
    border: 2px dashed #cfe2f0;
    border-radius: 16px;
    background: var(--brand-tint);
}

.media-empty-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(10, 88, 136, .12);
}

.media-empty h3 {
    color: var(--brand-dark);
    font-size: 24px;
}

/* Hub cards */
.media-hub-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 14px;
    padding: 24px 20px;
    border: 1px solid #e1edf5;
    color: inherit;
    transition: .3s;
}

.media-hub-card:hover {
    border-color: var(--brand-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(10, 88, 136, .12);
    color: inherit;
}

.media-hub-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--brand-tint);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.media-hub-card h5 {
    color: var(--brand-dark);
}

.media-hub-card p {
    font-size: 14px;
    color: #666;
    flex: 1;
}

.media-hub-count {
    font-size: 13px;
    font-weight: 700;
    color: #2f7aab;
}

@media (max-width: 991.98px) {
    .news-lead {
        grid-template-columns: 1fr;
    }

    .news-lead-img img {
        min-height: 220px;
        max-height: 320px;
    }

    .pub-card {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pub-cover {
        max-width: 260px;
        margin: 0 auto;
        transform: none;
    }
}

@media (max-width: 767.98px) {
    .media-subnav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .media-subnav a {
        white-space: nowrap;
        font-size: 14px;
    }

    .news-lead-body {
        padding: 22px;
    }

    .news-lead-body h2 {
        font-size: 24px;
    }

    .speech-list li {
        flex-direction: column;
        gap: 4px;
    }

    .speech-date {
        flex-basis: auto;
    }

    .press-item {
        flex-wrap: wrap;
    }

    .pub-cover-title {
        font-size: 44px;
    }
}
/*** News & Media end ***/

/*** Contact page ***/
.contact-card {
    height: 100%;
    text-align: center;
    background: #fff;
    border: 1px solid #e1edf5;
    border-radius: 14px;
    padding: 28px 18px;
    transition: .3s;
}

.contact-card:hover {
    border-color: var(--brand-accent);
    box-shadow: 0 12px 28px rgba(10, 88, 136, .12);
    transform: translateY(-4px);
}

.contact-card .icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-accent));
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card h5 {
    color: var(--brand-dark);
    margin-bottom: 6px;
}

.contact-card a,
.contact-card p {
    color: #555;
    margin: 0;
    word-break: break-word;
}

.contact-card a:hover {
    color: var(--brand);
}

.contact-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(10, 88, 136, .10);
}

.contact-form-card h3 {
    color: var(--brand-dark);
}

.contact-form-card .form-label {
    font-weight: 600;
    color: var(--brand-dark);
    font-size: 15px;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    border-radius: 10px;
    border-color: #cfe2f0;
    padding: 10px 14px;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 .2rem rgba(79, 163, 217, .25);
}

.contact-form-card .req {
    color: #d9534f;
}

.contact-note {
    font-size: 13px;
    color: #777;
}

.contact-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 15px;
}

.contact-alert i {
    font-size: 20px;
    margin-top: 2px;
}

.contact-alert.success {
    background: #e8f6ee;
    color: #1e6b3a;
    border: 1px solid #b9e3c8;
}

.contact-alert.error {
    background: #fdecea;
    color: #a4322b;
    border: 1px solid #f5c2bd;
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 88, 136, .10);
    height: 320px;
    background: var(--brand-tint);
}

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

.contact-side {
    margin-top: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    border-left: 4px solid var(--brand);
}

.contact-side h5 {
    color: var(--brand-dark);
}

.contact-social a {
    background: var(--brand-tint);
    color: var(--brand);
}

.contact-social a:hover {
    background: var(--brand);
    color: #fff;
}

@media (max-width: 575.98px) {
    .contact-form-card {
        padding: 22px 16px;
    }

    .contact-map {
        height: 260px;
    }
}
/*** Contact page end ***/

/*** Public Connect ***/
.pc-photo {
    position: relative;
    max-width: 460px;
    margin: 0 auto;
}

.pc-photo img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    object-position: top;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(10, 88, 136, .2);
}

.pc-photo-badge {
    position: absolute;
    left: -16px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(10, 88, 136, .3);
}

.pc-cat {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    height: 100%;
    padding: 20px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e1edf5;
    color: inherit;
    transition: .3s;
}

.pc-cat:hover {
    border-color: var(--brand-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(10, 88, 136, .12);
    color: inherit;
}

.pc-cat .icon {
    flex: 0 0 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

.pc-cat:hover .icon {
    background: var(--brand);
    color: #fff;
}

.pc-cat strong {
    display: block;
    color: var(--brand-dark);
    font-size: 17px;
    margin-bottom: 2px;
}

.pc-cat small {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.pc-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 960px;
    margin: 0 auto;
}

.pc-steps::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 16%;
    right: 16%;
    border-top: 3px dashed #bcd9ec;
}

.pc-step {
    position: relative;
    text-align: center;
}

.pc-step .num {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-accent));
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px #fff, 0 8px 20px rgba(10, 88, 136, .25);
}

.pc-step h5 {
    color: var(--brand-dark);
}

.pc-step p {
    font-size: 15px;
    color: #555;
}

.pc-success {
    text-align: center;
    padding: 26px 20px;
    margin-bottom: 24px;
    border-radius: 14px;
    background: #e8f6ee;
    border: 1px solid #b9e3c8;
    color: #1e6b3a;
}

.pc-success > i {
    font-size: 40px;
    margin-bottom: 8px;
}

.pc-success h4 {
    color: #1e6b3a;
}

.pc-ref {
    display: inline-block;
    margin: 4px 0 12px;
    padding: 10px 22px;
    border-radius: 10px;
    background: #fff;
    border: 2px dashed #6cc08b;
    font-family: Consolas, monospace;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--brand-dark);
}

.pc-faq details {
    border-bottom: 1px solid #e1edf5;
    padding: 10px 0;
}

.pc-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--brand-dark);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.pc-faq summary::-webkit-details-marker {
    display: none;
}

.pc-faq summary::after {
    content: "+";
    color: var(--brand);
    font-size: 20px;
    line-height: 1;
}

.pc-faq details[open] summary::after {
    content: "\2212";
}

.pc-faq p {
    margin: 8px 0 0;
    font-size: 14px;
    color: #555;
}

@media (max-width: 767.98px) {
    .pc-steps {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .pc-steps::before {
        display: none;
    }

    .pc-photo-badge {
        left: 10px;
    }

    .pc-ref {
        font-size: 20px;
    }
}
/*** Public Connect end ***/

/*** Fixed header without layout jumps ***/
/* Fallback heights until the script measures the real one */
:root {
    --header-h: 200px;
}

@media (max-width: 991.98px) {
    :root { --header-h: 190px; }
}

@media (max-width: 575.98px) {
    :root { --header-h: 150px; }
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

body {
    padding-top: var(--header-h);
}

/* In-page anchors land below the compact header */
[id] {
    scroll-margin-top: 110px;
}

/*** Animations ***/
/* Scroll reveal (only when js/site.js is running) */
.js-anim .reveal {
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

.js-anim .reveal-up {
    opacity: 0;
    transform: translateY(28px);
}

.js-anim .reveal-zoom {
    opacity: 0;
    transform: scale(.94);
}

.js-anim .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Page banner entrance */
@keyframes heroRise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@keyframes heroLine {
    from { width: 0; }
    to { width: 64px; }
}

@keyframes watermarkDrift {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: none; }
}

.page-hero-kicker,
.page-hero-title {
    animation: heroRise .7s ease both;
}

.page-hero-title {
    animation-delay: .1s;
}

.page-hero-title::after {
    animation: heroLine .8s .5s ease both;
}

.page-hero-crumbs {
    animation: heroRise .7s .25s ease both;
}

.page-hero-watermark {
    animation: watermarkDrift 1.2s .2s ease both;
}

/* Home slider: slow zoom + staggered caption on the active slide */
@keyframes kenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.home-hero .carousel-item.active img {
    animation: kenBurns 7s ease-out both;
}

.home-hero .carousel-item.active .home-hero-text > * {
    animation: heroRise .8s ease both;
}

.home-hero .carousel-item.active .home-hero-text > :nth-child(2) { animation-delay: .15s; }
.home-hero .carousel-item.active .home-hero-text > :nth-child(3) { animation-delay: .3s; }
.home-hero .carousel-item.active .home-hero-text > :nth-child(4) { animation-delay: .45s; }

/* Button shine on hover */
.home-btn,
.footer-cta-btn {
    position: relative;
    overflow: hidden;
}

.home-btn::after,
.footer-cta-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
    pointer-events: none;
}

.home-btn:hover::after,
.footer-cta-btn:hover::after {
    left: 130%;
}

/* Gentle lift on cards and photos */
.info-card,
.fact-tile,
.photo-frame,
.quote-card,
.home-stat {
    transition: transform .35s ease, box-shadow .35s ease;
}

.info-card:hover,
.quote-card:hover,
.home-stat:hover,
.fact-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(10, 88, 136, .16);
}

.photo-frame img {
    transition: transform .6s ease;
}

.photo-frame:hover img {
    transform: scale(1.04);
}

.info-card img {
    transition: transform .6s ease;
}

.info-card:hover img {
    transform: scale(1.05);
}

.info-card .icon,
.home-stat i,
.contact-card .icon {
    transition: transform .4s ease;
}

.info-card:hover .icon,
.home-stat:hover i,
.contact-card:hover .icon {
    transform: rotate(-8deg) scale(1.1);
}

/* Header logo: soft pulse ring once on load */
@keyframes ringPulse {
    0% { box-shadow: 0 0 0 0 rgba(79, 163, 217, .6); }
    100% { box-shadow: 0 0 0 14px rgba(79, 163, 217, 0); }
}

.header-logo img {
    border-radius: 50%;
    animation: ringPulse 1.6s .6s ease-out 2;
}

/* Timeline active dot breathes */
@keyframes dotBreathe {
    0%, 100% { box-shadow: 0 0 0 4px #fff, 0 0 0 4px rgba(79, 163, 217, .0); }
    50% { box-shadow: 0 0 0 4px #fff, 0 0 0 10px rgba(79, 163, 217, .35); }
}

.era-node.active .era-dot {
    animation: dotBreathe 2.2s ease-in-out infinite;
}

/* Quote band icon float */
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.home-quote > .container > i,
.pc-photo-badge {
    animation: floatY 3.5s ease-in-out infinite;
}

/* Back-to-top button hover */
.back-to-top {
    transition: transform .3s ease;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* Respect reduced-motion preferences everywhere */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
/*** Animations end ***/

/* Hover lift must win over the revealed resting state */
.js-anim .reveal.is-visible.info-card:hover,
.js-anim .reveal.is-visible.quote-card:hover,
.js-anim .reveal.is-visible.home-stat:hover,
.js-anim .reveal.is-visible.fact-tile:hover,
.js-anim .reveal.is-visible.news-card:hover,
.js-anim .reveal.is-visible.contact-card:hover,
.js-anim .reveal.is-visible.pc-cat:hover,
.js-anim .reveal.is-visible.media-hub-card:hover {
    transform: translateY(-5px);
    transition-delay: 0s;
    transition-duration: .35s;
}

/* Back-to-top appears after scrolling down (toggled by js/site.js) */
.back-to-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
}

.back-to-top.is-shown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/*** Mobile menu fixes ***/
/* The template colours the toggler with --bs-primary (now the same blue as the bar), making it invisible */
.main-nav.navbar.navbar-expand-lg .navbar-toggler {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 18px;
}

.main-nav.navbar.navbar-expand-lg .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(79, 163, 217, .5);
}

/* Dropdown arrow flips when open (mobile) */
.main-nav .dropdown-toggle::after {
    transition: transform .3s ease;
    display: inline-block;
}

.main-nav .dropdown-toggle.show::after,
.main-nav .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Hide back-to-top while the mobile menu is open (it overlaps the last items) */
.menu-open .back-to-top {
    opacity: 0 !important;
    visibility: hidden !important;
}
/*** Mobile menu fixes end ***/

/*** Larger header name ***/
.header-title h1 {
    font-size: 50px;
}

@media (min-width: 1600px) {
    .header-title h1 { font-size: 56px; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .header-title h1 { font-size: 38px; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .header-title h1 { font-size: 42px; }
}

@media (max-width: 575.98px) {
    .header-title h1 { font-size: 26px; }
}

@media (max-width: 374.98px) {
    .header-title h1 { font-size: 23px; }
}

/* Compact (scrolled) bar */
.site-header.is-scrolled .header-title h1 {
    font-size: 30px;
}

@media (max-width: 575.98px) {
    .site-header.is-scrolled .header-title h1 { font-size: 22px; }
}

/* "Lokneta Ramsheth Thakur" is longer than the Marathi name: keep it on one line on phones */
@media (max-width: 575.98px) {
    body.lang-en .header-title h1 { font-size: 21px; }
}

@media (max-width: 374.98px) {
    body.lang-en .header-title h1 { font-size: 18px; }
}
/*** Larger header name end ***/

/* Group photos: caption at the bottom so faces stay clear (desktop + mobile) */
.home-hero-caption.caption-bottom {
    align-items: flex-end;
    padding-bottom: 78px;
    background: linear-gradient(0deg, rgba(5, 47, 75, .92) 0%, rgba(7, 63, 99, .55) 30%, rgba(7, 63, 99, 0) 55%);
}

.home-hero-caption.caption-bottom .home-hero-text {
    max-width: 760px;
}

.home-hero-caption.caption-bottom .home-hero-text h2 {
    font-size: clamp(26px, 3.6vw, 44px);
    margin-bottom: 8px;
}

.home-hero-caption.caption-bottom .home-hero-text p {
    margin-bottom: 14px;
}

.home-hero-caption.caption-bottom .home-hero-kicker {
    display: none;
}

.home-hero .carousel-item img[src*="slide-"] {
    object-position: center 25%;
}

/*** Header v3: calligraphy logo + guiding figures ***/
@media (min-width: 0px) {
    .header-brand .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center;
    }
}

.site-header .header-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

/* Undo the old round-photo logo styles */
.site-header .header-logo img {
    width: 210px;
    height: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    animation: none;
    transition: width .3s ease;
}

.header-logo-sub {
    margin-top: 4px;
    padding: 2px 14px;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    line-height: 1.5;
}

.header-family-placeholder {
    width: 64px;
    height: 72px;
    margin: 0 auto;
    border-radius: 45%;
    border: 3px solid var(--brand-accent);
    background: linear-gradient(135deg, var(--brand), var(--brand-accent));
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Compact bar after scrolling */
.site-header.is-scrolled .header-logo img {
    width: 120px;
}

.site-header.is-scrolled .header-logo-sub {
    display: none;
}

.site-header.is-scrolled .header-family-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    border-width: 2px;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-header .header-logo img { width: 180px; }
    .header-family-placeholder { width: 52px; height: 60px; font-size: 22px; }
}

@media (max-width: 991.98px) {
    .header-brand .container { justify-content: center !important; }
    .site-header .header-logo img { width: 170px; }
}

@media (max-width: 575.98px) {
    .site-header .header-logo img { width: 140px; }
    .header-logo-sub { font-size: 12px; padding: 1px 10px; }
    .site-header.is-scrolled .header-logo img { width: 100px; }
}
/*** Header v3 end ***/

/* Keep the header compact: calligraphy is tall for its width */
.site-header .header-logo img { width: 170px; }
.header-brand { padding: 6px 0; }

@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-header .header-logo img { width: 150px; }
}

@media (max-width: 991.98px) {
    .site-header .header-logo img { width: 145px; }
}

@media (max-width: 575.98px) {
    .site-header .header-logo img { width: 112px; }
    .header-logo-sub { margin-top: 2px; }
}

/*** Logo sizing fix: always keep the calligraphy's own proportions ***/
.site-header .header-logo img,
.site-header.is-scrolled .header-logo img {
    height: auto !important;
    max-height: none;
    object-fit: contain;
}

/* Normal header: a bit smaller */
.site-header .header-logo img { width: 150px; }

@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-header .header-logo img { width: 135px; }
}

@media (max-width: 991.98px) {
    .site-header .header-logo img { width: 130px; }
}

@media (max-width: 575.98px) {
    .site-header .header-logo img { width: 105px; }
}

/* Compact bar after scrolling: small, uncut, vertically centred */
.site-header.is-scrolled .header-logo img { width: 92px; }

@media (max-width: 575.98px) {
    .site-header.is-scrolled .header-logo img { width: 80px; }
}

.site-header.is-scrolled .header-brand {
    padding: 5px 0;
}

/* Couples without the heart between them: keep a little breathing room */
.ft-couple {
    gap: 14px;
}

/*** Publications bookshelf ***/
.book-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.book-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e1edf5;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(10, 88, 136, .14);
}

.book-cover {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 28px 24px 22px;
    background: radial-gradient(circle at 50% 35%, #ffffff 0%, var(--brand-tint) 70%);
}

.book-cover img {
    width: 62%;
    max-width: 210px;
    aspect-ratio: 5 / 7;
    object-fit: cover;
    border-radius: 3px 8px 8px 3px;
    box-shadow: -6px 0 0 rgba(0, 0, 0, .12) inset, 0 14px 28px rgba(7, 63, 99, .28);
    transition: transform .4s ease;
}

.book-card:hover .book-cover img {
    transform: perspective(900px) rotateY(-10deg) scale(1.03);
}

.book-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 3px 10px;
    border-radius: 12px;
    background: #d9534f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.book-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 20px 20px;
}

.book-body h3 {
    color: var(--brand-dark);
    font-size: 24px;
    margin-bottom: 4px;
}

body.lang-mr .book-body h3 {
    font-family: 'Tiro Devanagari Marathi', serif;
    font-weight: 400;
}

.book-sub {
    color: #2f7aab !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 10px;
}

.book-meta {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    font-size: 14px;
}

.book-meta li {
    display: flex;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px dashed #e1edf5;
}

.book-meta i {
    width: 16px;
    margin-top: 3px;
    color: var(--brand-accent);
}

.book-meta span {
    font-weight: 600;
    color: var(--brand-dark);
    white-space: nowrap;
}

.book-more {
    margin-bottom: 12px;
    font-size: 14px;
}

.book-more summary {
    cursor: pointer;
    color: var(--brand);
    font-weight: 600;
}

.book-more p {
    margin: 8px 0 0;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.book-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.book-actions .home-btn {
    padding: 9px 18px;
    font-size: 14px;
}

@media (max-width: 991.98px) {
    .book-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 575.98px) {
    .book-grid { grid-template-columns: 1fr; }
    .book-cover img { width: 55%; }
}
/*** Publications bookshelf end ***/

/* Award / accreditation badge on institution cards */
.inst-badge {
    display: inline-block;
    margin: 2px 0 10px;
    padding: 4px 12px;
    border-radius: 14px;
    background: #fff6e0;
    border: 1px solid #f0d58a;
    color: #8a6100;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

/*** Publications: one large card per book, real cover in the tilted 3D style ***/
.pub-card + .pub-card {
    margin-top: 56px;
    padding-top: 56px;
    border-top: 1px dashed #d6e7f3;
}

/* Alternate sides on large screens for a magazine feel */
@media (min-width: 992px) {
    .pub-card:nth-of-type(even) {
        grid-template-columns: 1fr 300px;
    }

    .pub-card:nth-of-type(even) .pub-cover {
        order: 2;
        transform: perspective(900px) rotateY(8deg);
    }
}

.pub-cover.pub-cover-photo {
    display: block;
    padding: 0;
    overflow: hidden;
    background: #e9f1f7;
}

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

.pub-cover {
    transition: transform .5s ease;
}

.pub-card:hover .pub-cover {
    transform: perspective(900px) rotateY(0deg) scale(1.02);
}

.pub-body h2 {
    color: var(--brand-dark);
}

body.lang-mr .pub-body h2 {
    font-family: 'Tiro Devanagari Marathi', serif;
    font-weight: 400;
    font-size: 40px;
}

/* Family tree: only the parents above (father-in-law removed) — one straight line down */
.ft-gen-parents.ft-single {
    grid-template-columns: 1fr;
}

.ft-gen-parents.ft-single + .ft-gen-main::before {
    display: none;
}

/* Ramsheth first in the siblings list, highlighted */
.ft-siblings li.ft-sibling-self {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
}

/* Rayat institution card without a photo yet */
.rayat-photo-placeholder {
    height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--brand-tint), #dcebf6);
    color: #2f7aab;
    font-size: 14px;
    font-weight: 600;
}

.rayat-photo-placeholder i {
    font-size: 44px;
    color: var(--brand-accent);
}

/* Portrait slides: photo sits on the right so the caption never covers the face */
.home-hero .carousel-item.photo-right img {
    position: absolute;
    right: 0;
    width: 68%;
    object-position: center 25%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}

.home-hero .carousel-item.photo-right .home-hero-caption {
    background: linear-gradient(90deg, rgba(5, 47, 75, .95) 0%, rgba(7, 63, 99, .7) 35%, rgba(7, 63, 99, 0) 60%);
}

@media (max-width: 991.98px) {
    .home-hero .carousel-item.photo-right img {
        width: 100%;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .home-hero .carousel-item.photo-right .home-hero-caption {
        align-items: flex-end;
        padding-bottom: 78px;
        background: linear-gradient(0deg, rgba(5, 47, 75, .94) 0%, rgba(7, 63, 99, .6) 35%, rgba(7, 63, 99, 0) 60%);
    }
}

/* Institution card website link */
.info-card .inst-website {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid var(--brand, #0a5888);
    color: var(--brand, #0a5888);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.info-card .inst-website .fa-external-link-alt { font-size: 11px; }
.info-card .inst-website:hover,
.info-card .inst-website:focus {
    background: var(--brand, #0a5888);
    color: #fff;
}
