/* Gallery */

#waterfall {
    margin: 10px;
    overflow: hidden;
}

#waterfall.min {
    margin: 0;
}

#waterfall li {
    left: 0;
    top: 0;
    opacity: 0;
    z-index: 0;
    transform: translateY(100px);
}

#waterfall li:hover {
    z-index: 1;
}

#waterfall li.show {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s, top 1s;
}

#waterfall li>div {
    color: rgba(0, 0, 0, 0.6);
    font-size: 32px;
    border-radius: 3px;
    margin: 10px;
    background: rgb(255, 255, 255);
    border: 1px solid rgba(038, 191, 64, 0);
    transition: all 0.5s;
}

#waterfall li>div:hover {
    /* transform: translateY(-10px); */
    /* border: 1px solid var(--secondary-color2);
    box-shadow: 0px 0px 80px var(--secondary-color2); */
    transition: all 0.3s;
    cursor: pointer;
}

#waterfall li.min>div {
    margin: 0;
    transform: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#waterfall li.min>div:hover {
    transform: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

ol,
ul {
    list-style: none
};
.upperBigImg1 .detailArr span, .videosGallery .detailArr span {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
}

.photosGallery img {
    border-radius: 8px;
}
.photosGallery a span, .videosGalleryContainer a span {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
}

.thumbnail {
    width: 100%;
    /* Ensure thumbnails fill their containers */
    height: auto;
    cursor: pointer;
    transition: 0.3s;
}

.thumbnail:hover {
    opacity: 0.7;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 10;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 70vh;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 15px 15px;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    background-color: unset !important;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
}

.caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

.responsive-iframe {
    max-height: 80vh;
    border: none;
}

footer .copyRightText span p {
    margin-bottom: 0rem !important;
}
/* Premium UI Overrides */
.text-primary { color: #FE5D37 !important; }
.btn-primary { 
    background-color: #FE5D37 !important; 
    border-color: #FE5D37 !important; 
    color: white !important;
}
.bg-primary { background-color: #FE5D37 !important; }
.btn-dark {
    background-color: #103741 !important;
    border-color: #103741 !important;
    color: white !important;
}

.header-carousel .owl-carousel-item img {
    object-fit: cover;
}

.facility-item {
    transition: .5s;
    background: #FFF5F3 !important;
    border-radius: 15px;
}

.facility-item:hover {
    margin-top: -10px;
}

.about-img img {
    border: 10px solid #FFF5F3;
}

.nav-link {
    font-weight: 600;
    color: #103741 !important;
}

.nav-link.active {
    color: #FE5D37 !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #103741;
}

.carousel-inner img {
    height: 600px;
    object-fit: cover;
}

/* Hero Header & Curves */
.hero-header {
    position: relative;
    overflow: hidden;
}

.header-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 10;
}

.header-curve svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.header-curve .shape-fill {
    fill: #FFFFFF;
}

/* Scalloped edge for Navbar */
.navbar {
    position: relative;
    background: #fff !important;
}

.navbar::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px; /* Adjust according to size */
    width: 100%;
    height: 20px;
    background-image: radial-gradient(circle at 10px -5px, transparent 12px, #fff 13px);
    background-size: 20px 20px;
    z-index: 11;
}

/* Carousel Nav Buttons */
.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 12;
}

.header-carousel .owl-nav button {
    width: 45px;
    height: 45px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    background: #FE5D37 !important;
    border-radius: 45px;
    font-size: 18px;
    transition: .5s;
}

.header-carousel .owl-nav button:hover {
    background: #103741 !important;
}

/* ── Hero text styles ── */
.hero-slide-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}
.hero-overlay { z-index: 2; }

.hero-title {
    font-size: clamp(1.6rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: clamp(13px, 2.5vw, 18px);
    font-weight: 500;
    margin-bottom: 24px;
    opacity: 0.92;
    max-width: 480px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-btn {
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 600;
}

@media (max-width: 767px) {
    .hero-slide-img { height: 380px !important; }
    .hero-title { font-size: clamp(1.4rem, 6vw, 2rem) !important; margin-bottom: 10px; }
    .hero-subtitle { font-size: 13px !important; margin-bottom: 16px; }
    .hero-btn { padding: 8px 18px !important; font-size: 13px !important; }
}
@media (max-width: 575px) {
    .hero-slide-img { height: 300px !important; }
    .hero-title { font-size: 1.35rem !important; }
    .hero-subtitle { font-size: 12px !important; margin-bottom: 14px; }
    .hero-btns { gap: 8px; }
    .hero-btn { padding: 7px 16px !important; font-size: 12px !important; }
    /* Move nav buttons to bottom-right, smaller */
    .header-carousel .owl-nav {
        top: auto;
        bottom: 14px;
        right: 14px;
        flex-direction: row;
        transform: none;
    }
    .header-carousel .owl-nav button {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
        margin: 0 3px !important;
    }
}

/* Animations */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes slideInDown {
    from {
        transform: translate3d(0, -100%, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}
.slideInDown { animation-name: slideInDown; }

@keyframes slideInLeft {
    from {
        transform: translate3d(-100%, 0, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}
.slideInLeft { animation-name: slideInLeft; }

@keyframes slideInRight {
    from {
        transform: translate3d(100%, 0, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}
.slideInRight { animation-name: slideInRight; }

/* Typography & Colors */
body {
    font-family: 'Heebo', sans-serif !important;
}

h1, h2, .display-2 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
}

.text-primary {
    color: #FE5D37 !important;
}

.navbar .navbar-nav .nav-link {
    padding: 12px 12px;
    font-size: 15px;
    font-weight: 600;
    transition: .5s;
}

.navbar .navbar-brand h1 {
    color: #FE5D37 !important;
    font-size: 24px !important;
}

.navbar-brand i {
    font-size: 24px !important;
}

.navbar .btn-primary {
    padding: 6px 15px !important;
    font-size: 14px;
}

/* Cleanup Wavy Nav */
.navbar::after {
    display: none;
}

.sticky-top {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Carousel Overlay Text fix */
.header-carousel .owl-carousel-item h1 {
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE FIXES
   ═══════════════════════════════════════════ */

/* ── Navbar mobile ── */
@media (max-width: 991px) {
    .navbar { padding: 10px 16px !important; }
    .navbar-brand h1 { font-size: 20px !important; }
    .navbar-collapse { background: #fff; padding: 12px 0; border-top: 1px solid #f0f0f0; margin-top: 8px; }
    .navbar-nav .nav-link { padding: 10px 16px !important; border-bottom: 1px solid #f5f5f5; }
    .navbar-nav .dropdown-menu { box-shadow: none; border: none; background: #f9f9f9; padding-left: 16px; }
    .navbar .btn-primary { display: block !important; margin: 12px 16px 4px; text-align: center; }
}

/* ── Hero carousel mobile ── */
@media (max-width: 575px) {
    .hero-slide-img { height: 280px !important; object-fit: cover; }
    .header-carousel .owl-carousel-item img { height: 280px !important; object-fit: cover; }
    .header-carousel .owl-nav { right: 8px; }
    .header-carousel .owl-nav button { width: 34px !important; height: 34px !important; font-size: 13px !important; }
    .header-curve svg { height: 24px; }
}

/* ── Facility cards — 2 per row on mobile ── */
@media (max-width: 575px) {
    .facility-item { padding: 16px 10px !important; }
    .facility-item .mx-auto { width: 56px !important; height: 56px !important; }
    .facility-item h4 { font-size: 13px !important; margin-bottom: 6px !important; }
    .facility-item p { font-size: 11px !important; }
    .facility-item i { font-size: 1.4rem !important; }
    /* Force 2 columns */
    .container-xxl .row .col-lg-3.col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}

/* ── Section spacing mobile ── */
@media (max-width: 575px) {
    .container-xxl { padding-left: 12px !important; padding-right: 12px !important; }
    .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    h1.mb-5 { font-size: 22px !important; margin-bottom: 1.2rem !important; }
    h1.display-5 { font-size: 24px !important; }
}

/* ── About us section mobile ── */
@media (max-width: 767px) {
    .about-img { margin-bottom: 24px; }
    .about-img img { width: 100%; height: auto; }
}

/* ── Call to action section mobile ── */
@media (max-width: 575px) {
    .bg-light.rounded .row { flex-direction: column; }
    .bg-light.rounded .col-lg-6 { min-height: 200px !important; }
    .bg-light.rounded .p-5 { padding: 24px 20px !important; }
    .bg-light.rounded h1 { font-size: 20px !important; }
    .bg-light.rounded p { font-size: 13px !important; }
    .bg-light.rounded .btn { padding: 10px 20px !important; font-size: 13px !important; }
}

/* ── Announcement section mobile ── */
@media (max-width: 575px) {
    .annaouncementSection .mainRow { flex-direction: column; }
    .annaouncementSection .imgDiv { display: none; }
    .annaouncementSection .commonTitle { font-size: 20px !important; }
    .announcementCardWrapper .card { padding: 12px !important; }
}

/* ── Counter cards mobile ── */
@media (max-width: 575px) {
    .ctcaCardsRow .col-12 { flex: 0 0 50%; max-width: 50%; }
    .ctcaSection .cardTitle { font-size: 13px !important; }
    .ctcaSection .cardDesc { font-size: 20px !important; }
}

/* ── FAQ section mobile ── */
@media (max-width: 575px) {
    .faqs .accordion-button { font-size: 14px !important; padding: 12px 14px !important; }
    .faqs .accordion-body { font-size: 13px !important; padding: 12px 14px !important; }
    .faqs .sideImgs { display: none; }
}

/* ── Gallery section mobile ── */
@media (max-width: 575px) {
    .ourPhotos .col-6 { flex: 0 0 50%; max-width: 50%; }
}

/* ── Blog cards mobile ── */
@media (max-width: 575px) {
    .blog-card .blog-title { font-size: 15px !important; }
    .blog-card .blog-excerpt { font-size: 12px !important; }
}

/* ── Review cards mobile ── */
@media (max-width: 575px) {
    .rv-card { padding: 18px 16px !important; }
    .rv-form-wrap { padding: 20px 16px !important; }
    .rv-section-title { font-size: 22px !important; }
}

/* ── Page headers mobile ── */
@media (max-width: 575px) {
    .blog-page-header { height: 90px !important; }
    .blog-page-header .page-title { font-size: 22px !important; }
    .review-page-header { height: 90px !important; }
    .review-page-header .page-title { font-size: 22px !important; }
    .contact-page-header { padding: 30px 0 36px !important; }
    .contact-page-header h1 { font-size: 22px !important; }
}

/* ── Contact page mobile ── */
@media (max-width: 575px) {
    .contact-info-card { padding: 16px 14px !important; }
    .contact-info-icon { width: 42px !important; height: 42px !important; font-size: 16px !important; }
    .contact-form-card { padding: 20px 14px !important; }
    .contact-map-card { min-height: 220px !important; }
    .contact-map-card iframe { min-height: 220px !important; }
}

/* ── Footer mobile ── */
@media (max-width: 575px) {
    .sch-footer-top .row { gap: 12px 0; }
    .sch-footer-body { padding: 32px 0 20px !important; }
    .sch-footer-heading { font-size: 14px !important; }
    .sch-footer-links li a { font-size: 12px !important; }
    .sch-footer-desc { font-size: 12px !important; }
    .sch-footer-bottom { font-size: 12px !important; padding: 14px 0 !important; }
}

/* ── General text overflow fix ── */
* { word-break: break-word; }
img { max-width: 100%; height: auto; }

/* ── Smooth scrolling ── */
html { scroll-behavior: smooth; }

/* ── Fix Bootstrap 5 container on small screens ── */
@media (max-width: 575px) {
    .container, .container-fluid, .container-xxl {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}
