/*** 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 ***/

/* Root variables for easy theme tweaks */
:root {
    --sub-title-size: 1.8rem; /* default subtitle size - adjust this value site-wide */
        /* Carousel specific text sizes (adjust to change hero carousel typography) */
        --carousel-subtitle-size: 1rem; /* h5 above hero */
        --carousel-title-size: 1.5rem; /* h1 hero title */
        --carousel-copy-size: 1rem; /* paragraph under hero */
}

/* Global responsive base */
html {
    box-sizing: border-box;
    font-size: 16px; /* base for rem calculations */
	color: black  !important;
}
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; font-family: 'Open Sans', sans-serif; line-height: 1.5; -webkit-font-smoothing:antialiased;  color:#232222 !important; }

/* Make all images fluid and prevent overflow */
img, picture, svg { max-width: 100%; height: auto; display: block; }

/* Constrain main container width on large screens for readable line-length */
.container {
    max-width: 1200px;
    width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;
}

/* Prevent horizontal overflow due to negative row margins or wide content
   by ensuring containers include their padding in width calculations. */
.container {
    box-sizing: border-box;
}

/* Prevent horizontal overflow from long words or large elements */
html, body { overflow-x: hidden; }

/* Form controls and buttons responsive defaults */
input, textarea, select, .form-control, .form-select { width: 100%; box-sizing: border-box; }
.btn { white-space: nowrap; }

/* Layout: prefer flexbox for hero caption */
.header-carousel .header-carousel-item {
    /* Reduced height to make the hero area tighter. Change if you want a different scale. */
    min-height: 45vh; /* previously 60vh */
    max-height: 300px; /* cap height on very tall viewports */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0; /* remove large fixed margin used previously */
}

.header-carousel .header-carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    margin-top: 50px;
    /* nudge image down slightly so taller images are fully visible behind the fixed-height carousel
       keep the image centered horizontally but positioned slightly lower vertically */
    
}
/* Specific fallback: if HTML doesn't include the .header-carousel wrapper, target the carousel-1 image by src
   and any full-width fluid image used as a hero. This adds a small top margin to push the image down. */
img[src*="carousel-1"],img[src*="carousel-2"],img[src*="carousel-3"]{
     display: block; /* ensure margin behaves predictably */
     /* Full-bleed pattern: span the viewport and center content
         Use calc centering to counteract container padding/margins. */
     width: 100dvw;
     max-width: none; /* override responsive max-width from generic img rules */
    
    
     
     height: 80vh;
     /* Use cover so the image fills horizontally and crops vertically where necessary */
     object-fit: cover;
     /* GPU hint to reduce subpixel hairline gaps on some browsers */
     transform: translateZ(0);
     margin-top: rem; /* keep a small vertical nudge */
}
@media (max-width: 768px) {
  img[src*="carousel-1"] {
    height: 100vh;
     object-fit: contain;
      height: auto;       /* fix height hata do */
         width: 100%;        /* responsive width */
         margin:auto; 
  }
}
/* For all the other hero pages  */
/* ---------------------------------- */
 img[src*="about"],img[src*="service"],img[src*="college"],img[src*="school"],img[src*="contact"],img[src*="staff"],img[src*="parent"],img[src*="custom"]{
     display: block; /* ensure margin behaves predictably */
     /* Full-bleed pattern: span the viewport and center content
         Use calc centering to counteract container padding/margins. */
     width: 100dvw;
     max-width: none; /* override responsive max-width from generic img rules */
    
    
     
     height: 50vh;
     /* Use cover so the image fills horizontally and crops vertically where necessary */
     object-fit: cover;
     /* GPU hint to reduce subpixel hairline gaps on some browsers */
     transform: translateZ(0);
     margin-top: 2rem; /* keep a small vertical nudge */
}
@media (max-width: 768px) {
   img[src*="about"],img[src*="service"],img[src*="college"],img[src*="school"],img[src*="contact"],img[src*="staff"],img[src*="parent"],img[src*="custom"] {
     /* mobile pe thoda kam, taaki content niche bhi dikh sake */
     object-fit: contain;
         height: auto;       /* fix height hata do */
         width: 100%;        /* responsive width */
         margin:auto;

      
    
  }
}
/* Broader fallback for full-width hero images (less specific) */
img.img-fluid.w-100.hero-nudge{
    margin-top: 1.2rem;
}

.header-carousel .header-carousel-item .carousel-caption {
    position: absolute;
    inset: 0; /* top/right/bottom/left: 0 */
    display: flex;
    align-items: center;
    justify-content: center;
    /* remove dark overlay so images show without shading */
    background: transparent;
}

.header-carousel .carousel-caption-content {
    width: min(1100px, 92%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center; /* centered on mobile */
    text-align: center;
    padding: 2rem;
}

/* Keep caption text readable on bright/dark images by adding a subtle text-shadow */
.header-carousel .carousel-caption-content { text-shadow: 0 2px 8px rgba(0,0,0,0.45); }

/* Desktop: left-align hero text for better reading */
@media (min-width: 768px) {
    .header-carousel .carousel-caption-content {
        align-items: flex-start;
        text-align: left;
        padding: 3rem; /* slightly reduced padding to match the shorter hero */
    }
}

/* Use CSS variables for hero typography already defined */
.header-carousel .carousel-caption-content h5 { font-size: var(--carousel-subtitle-size); margin:0; }
.header-carousel .carousel-caption-content h1 { font-size: var(--carousel-title-size); margin:0; line-height:1.1; }
.header-carousel .carousel-caption-content p  { font-size: var(--carousel-copy-size); margin:0; }

/* Buttons in hero: full width on small devices, inline on larger */
.header-carousel .carousel-caption-content .btn { width: 100%; max-width: 320px; }
@media (min-width: 768px) { .header-carousel .carousel-caption-content .btn { width: auto; } }

/* Header logo sizing: slightly larger on desktop, scaled on small screens */
.navbar-brand img { height: 80px; width: auto; }
@media (max-width: 575.98px) {
    .navbar-brand img { height: 56px; }
}

/* Services grid: ensure cards don't overflow and scale gracefully. Use bootstrap cols but also protect elements */
.service .service-item { overflow: visible; }
.service .service-content .btn { width: 100%; }
@media (min-width: 768px) { .service .service-content .btn { width: auto; } }

/* Utility: clamp descriptions to 5 lines with graceful fallback and subtle fade */
.clamp-5{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5; /* webkit */
    overflow: hidden;
    line-clamp: 5; /* standard (where supported) */
    /* subtle fade at the bottom for browsers that support mask-image */
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 60%, rgba(0,0,0,0));
    mask-image: linear-gradient(180deg, rgba(0,0,0,1) 60%, rgba(0,0,0,0));
}

/* Service icon block: consistent size, spacing and hover transitions */
.service-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* card controls background via .service-content */
    min-height: 140px; /* gives vertical space similar to previous images */
}
.service-img .d-inline-flex {
    width: 96px;
    height: 96px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform .28s cubic-bezier(.2,.9,.3,1), box-shadow .28s ease;
}
.service-img .d-inline-flex i {
    line-height: 1;
}

/* Hover/active effects for icons */
.service-item:hover .service-img .d-inline-flex,
.service-item:focus-within .service-img .d-inline-flex {
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 12px 28px rgba(9,30,66,0.08);
}

/* Slightly smaller icons on mobile to keep proportions */
@media (max-width: 575.98px) {
    .service-img { min-height: 120px; }
    .service-img .d-inline-flex { width: 72px; height: 72px; }
    .service-img .d-inline-flex i { font-size: 1.6rem; }
}

/* Layout: stack icon on top and content below for a vertical card layout */
.service .service-item {
    display: flex;
    flex-direction: column; /* icon on top, content below */
    align-items: stretch;
    gap: 0;
    /* smooth card-level transition for lift and shadow */
    transition: transform .32s cubic-bezier(.2,.9,.3,1), box-shadow .32s cubic-bezier(.2,.9,.3,1);
    transform-origin: center;
    will-change: transform, box-shadow;
}

/* Card hover/focus: gentle lift + soft shadow and slightly brighter content */
.service .service-item:hover,
.service .service-item:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(9,30,66,0.08);
}

/* Subtle background highlight for the content area on hover */
.service .service-item:hover .service-content,
.service .service-item:focus-within .service-content {
    background-color: #fbfdff; /* near-white tint to show interactivity */
}

/* Reduce motion for users that prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .service .service-item,
    .service .service-item:hover,
    .service .service-item:focus-within,
    .service-img .d-inline-flex {
        transition: none !important;
        transform: none !important;
    }
}

/* Top section: icon area (full width) */
.service .service-img {
    width: 100%;
    flex: 0 0 auto;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.service .service-img .d-inline-flex {
    width: 96px;
    height: 96px;
}

/* Content below the icon */
.service .service-content {
    flex: 1 1 auto;
    padding: 1rem 1.25rem;
    border-top-right-radius: .5rem;
    border-bottom-right-radius: .5rem;
}

/* Polished internal content styling for service cards */
.service .service-content-inner { display: flex; flex-direction: column; gap: .75rem; height: 100%; }
.service .service-content-inner h5 { margin: 0; font-size: 1.125rem; font-weight: 600; color: #0b2540; }
.service .service-content-inner p { margin: 0; color: #495567; line-height: 1.5; }

/* Push the Read More button to the bottom of the card content */
.service .service-content-inner .btn { margin-top: auto; align-self: flex-start; min-width: 140px; }
@media (max-width: 576px) { .service .service-content-inner .btn { width: 100%; align-self: stretch; } }

/* Base subtle shadow for cards to sit above background; combined with hover lift for depth */
.service .service-item { box-shadow: 0 6px 18px rgba(9,30,66,0.04); }

/* Keyboard focus visible outline */
.service .service-item:focus-within { outline: 3px solid rgba(13,110,253,0.08); outline-offset: 2px; }

/* Minor adjustment: make the icon circle use the primary background on hover to emphasize */
.service .service-item:hover .d-inline-flex { background: rgba(13,110,253,0.05); }

/* On very small screens, make icon slightly smaller to preserve space */
@media (max-width: 575.98px) {
    .service .service-img { width: 88px; flex: 0 0 88px; padding: .6rem; }
    .service .service-img .d-inline-flex { width: 64px; height: 64px; }
    .service .service-content { padding: .75rem 1rem; }
}


/* Ensure feature & testimonial cards scale with rems */
.feature .feature-item, .testimonial .testimonial-inner { gap: 1rem; }

/* Tighter vertical spacing for feature cards so they sit closer together.
   Keep a bit more room on very small screens for touch comfort. */
.feature .feature-item {
    margin-bottom: 0.25rem; /* reduce default bottom spacing */
}

@media (max-width: 575.98px) {
    .feature .feature-item { margin-bottom: 0.6rem; }
}

/* About page: make feature-style cards equal height and clamp descriptions to 3 lines */
.about .row.g-4 > [class*="col-"] {
    display: flex;             /* allow children to stretch vertically */
    flex-direction: column;    /* stack cards vertically inside column */
    gap: 1rem;
}
.about .feature-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    flex: 1 1 auto;            /* allow cards to grow and match height when parent allows */
    min-height: 140px;        /* baseline height for visual consistency */
    box-shadow: 0 6px 18px rgba(9,30,66,0.04);
    transition: transform .22s ease, box-shadow .22s ease;
}

/* Clamp Feature card descriptions to 3 lines with an ellipsis */
.feature .feature-content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-clamp: 3;
    max-height: calc(1.4em * 3); /* fallback to prevent layout shifts */
}
.about .feature-item:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(9,30,66,0.08); }

/* Clamp the description inside feature-content to 3 lines with ellipsis */
.about .feature-item .feature-content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-clamp: 3;
}

/* Ensure the inner flex row (icon + content) doesn't shrink the content area */
.about .feature-item > .d-flex { flex: 1 1 auto; }

/* Service cards: ensure consistent heights and show full content
    - Make the column wrappers use flex so .h-100 / flex children stretch equally.
    - Remove -webkit-line-clamp/overflow so full descriptions are visible.
*/
.service .row.g-4 > [class*="col-"] { display: flex; flex-direction: column; }
.service .service-item { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; flex: 1 1 auto; min-height: 220px; transition: transform .22s ease, box-shadow .22s ease; }
.service .service-item:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(9,30,66,0.08); }
.service .service-content { flex: 1 1 auto; }
.service .service-content { flex: 1 1 auto; }
.service .service-content p { display: block; overflow: visible; -webkit-line-clamp: unset; line-clamp: unset; }

/* On small screens keep original stacked layout but still clamp text */
@media (max-width: 575.98px) {
    .service .service-item { min-height: 180px; }
}

/* Feature-item cards used inside the Services section
   (we reuse the site's card effects and centralize icon sizing here) */

.service .feature-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 220px;
    box-shadow: 0 6px 18px rgba(9,30,66,0.04);
    transition: transform .32s cubic-bezier(.2,.9,.3,1), box-shadow .32s cubic-bezier(.2,.9,.3,1);
    transform-origin: center;
    will-change: transform, box-shadow;
}
.service .feature-item:hover,
.service .feature-item:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(9,30,66,0.08);
}

/* Footer: ensure mailto icon + address sit inline and nudge contact column left on desktop */
.footer .footer-item a[href^="mailto:"] {
    display: inline-flex;
    align-items: center;
    gap: .5rem; /* space between icon and text (me-2 exists but keep a consistent gap) */
    text-decoration: none; /* keep consistent with footer style */
}

.footer .footer-item a[href^="mailto:"] i {
    line-height: 1;
    min-width: 18px;
}

/* Slight left nudge for the contact column so the contact block visually aligns with other footer items on wide screens */
.footer .row > div:nth-child(4) .footer-item {
    transform: translateX(-6px);
}

@media (max-width: 767.98px) {
    /* reset transform on small screens to avoid layout issues */
    .footer .row > div:nth-child(4) .footer-item { transform: none; }
}

/* Centralize feature-icon sizing and hover lift */
.service .feature-item .feature-icon .d-inline-flex {
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform .28s cubic-bezier(.2,.9,.3,1), box-shadow .28s ease;
}
.service .feature-item:hover .feature-icon .d-inline-flex,
.service .feature-item:focus-within .feature-icon .d-inline-flex {
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 12px 28px rgba(9,30,66,0.08);
}

/* Modules: keep icon and heading inline on desktop, stack on small screens
   Scoped to the .modules container so other feature/service sections are unaffected. */
.modules .feature-item .d-inline-flex {
    /* slightly smaller than the generic feature size to keep headings inline */
    width: 56px;
    height: 56px;
}

@media (min-width: 992px) {
    /* Desktop: inline alignment (icon + heading on one line) */
    .modules .feature-item .feature-icon {
        display: inline-flex;
        vertical-align: middle;
        margin-right: .75rem; /* gap between icon and heading */
    }
    .modules .feature-item .feature-content {
        display: inline-block;
        vertical-align: middle;
        margin-left: 0; /* spacing handled by .feature-icon margin-right */
    }
    .modules .feature-item .feature-content h5 {
        display: inline-block;
        font-size: 1rem; /* slightly reduced to help long headings fit */
        font-weight: 600;
        margin: 0;
        line-height: 1.1;
        white-space: nowrap; /* keep title on a single line next to icon */
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 80px); /* keep room for the icon */
        vertical-align: middle;
    }
}

@media (max-width: 991.98px) {
    /* Tablet and below: restore stacked layout and slightly larger heading for readability */
    .modules .feature-item .feature-icon { display: block; margin-right: 0; margin-bottom: .5rem; }
    .modules .feature-item .feature-content { display: block; }
    .modules .feature-item .feature-content h5 { display: block; font-size: 1.05rem; white-space: normal; }
}

@media (max-width: 575.98px) {
    /* Small screens: slightly reduce icon size and heading to fit narrow widths */
    .modules .feature-item .d-inline-flex { width: 48px; height: 48px; }
    .modules .feature-item .feature-content h5 { font-size: 1rem; }
}

/* Benefits section: make icon and heading inline on wider screens */
.benefits .feature-item .feature-icon { display: inline-flex; vertical-align: middle; }
.benefits .feature-item .feature-content { display: inline-block; vertical-align: middle; text-align: left; margin-left: .75rem; }
.benefits .feature-item .feature-content h5 { display: inline-block; margin: 0; font-size: 1.05rem; }

/* If headings still wrap on medium screens, reduce font-size to keep them inline */
@media (max-width: 768px) {
    .benefits .feature-item .feature-content h5 { font-size: 0.95rem; }
}

@media (max-width: 576px) {
    /* On small screens stack as before but keep reasonable sizes */
    .benefits .feature-item .feature-icon,
    .benefits .feature-item .feature-content { display: block; text-align: center; margin-left: 0; }
    .benefits .feature-item .feature-content h5 { font-size: 1rem; }
}

/* CENTER ICONS: ensure <i> icons sit perfectly centered inside their circular wrappers
   Applied across Modules, Benefits, Services and Feature cards for consistency. */
.feature-item .d-inline-flex,
.feature-icon .d-inline-flex,
.service-img .d-inline-flex {
    display: inline-flex !important; /* preserve inline behavior but allow flex centering */
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
}

.feature-item .d-inline-flex i,
.feature-icon .d-inline-flex i,
.service-img .d-inline-flex i {
    display: block !important; /* block allows sizing via font-size and removes baseline shifts */
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important; /* ignore extra padding that could offset centering */
}

/* Small adjustment for very small circular wrappers to keep icon visually centered */
@media (max-width: 575.98px) {
    .feature-item .d-inline-flex i, .feature-icon .d-inline-flex i { font-size: 1.25rem !important; }
}

/* Anchor landing fix: when jumping to a card using #id links from the navbar dropdown,
   ensure the targeted element is visible below the fixed navbar by adding a scroll-margin-top.
   Also enable smooth scrolling for nicer UX. Adjust the value if your navbar height changes. */
html { scroll-behavior: smooth; }
.service [id], .feature-item[id] {
    /* assume navbar height ~72px on desktop; add slight extra space for breathing room */
    scroll-margin-top: 88px;
}

/* Compact appointment form: reduce vertical footprint so form fits on most screens without internal scrolling */
.appointment-form {
    padding: .75rem !important; /* smaller padding so form fits vertically */
    max-height: none; /* allow page scrolling instead of internal scrolling */
    overflow: visible; /* let the page handle scrolling */
}

.appointment-form .hero-title { font-size: 1rem; margin-bottom: .6rem; }
.appointment-form p.fs-4 { font-size: .2rem; margin-bottom: .35rem; }

.appointment-form .form-control,
.appointment-form .form-select,
.appointment-form textarea {
    padding-top: .35rem; padding-bottom: .35rem; /* compact inputs */
    font-size: .95rem;
}

.appointment-form textarea { height: 56px; } /* compact but usable textarea */

/* Ensure submit button stays visible and compact */
.appointment-form .btn { padding-top: .55rem; padding-bottom: .55rem; }

@media (max-width: 576px) {
    /* Small screens: allow normal flow and slightly taller textarea for typing */
    .appointment-form { padding: 1rem !important; max-height: none; overflow: visible; }
    .appointment-form textarea { height: 96px; }
}



/* Typography and description styling to match service cards */
.service .feature-content h5 { margin: 0; font-size: 1.125rem; font-weight: 600; color: #0b2540; }
.service .feature-content p { margin: 0; color: #495567; line-height: 1.5; text-align: justify; display: block; overflow: visible; -webkit-line-clamp: unset; line-clamp: unset; }

@media (max-width: 575.98px) {
    .service .feature-item .feature-icon .d-inline-flex { width: 56px; height: 56px; }
    /* Allow full text on small screens as well */
    .service .feature-content p { display: block; overflow: visible; -webkit-line-clamp: unset; line-clamp: unset; }
}


/* Small devices: stack controls and make cards full width */
@media (max-width: 576px) {
    .header-carousel .carousel-caption-content { padding: 1.5rem; }
    .hero-title { font-size: 1.4rem; }
    .section-title { padding-left: 1rem; padding-right: 1rem; }
    .service .service-item { margin-left: 0; margin-right: 0; }
    .btn.btn-primary, .btn.btn-light { width: 100%; }
}

/* Laptop: adjust hero title scale */
@media (min-width: 1024px) {
    :root { --carousel-title-size: 1.5rem; --carousel-subtitle-size: 1.125rem; --carousel-copy-size: 1.125rem; }
    .hero-title { font-size: 2.2rem; }
}

/* Large desktop: keep content in readable container */
@media (min-width: 1440px) {
    /* allow wider containers on very large screens so 4 columns can fit comfortably */
    .container { max-width: 1400px; }
    .header-carousel .carousel-caption-content { width: 100%; max-width: 1200px; }
}

/* Ultra-wide screens (1440px+) - give even more room on 1920x1080 displays */
@media (min-width: 1920px) {
    .container { max-width: 1600px; }
    .header-carousel .carousel-caption-content { max-width: 1600px; }
}



.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;


/* ===== App Features — Parent tab: equal-height cards & tighter spacing ===== */
/* Scoped to #parent to avoid global changes */
#parent .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}
#parent .feature-item {
    display: flex;             /* ensure feature-item remains flex */
    flex-direction: column;    /* stack for small screens, row on sm+ handled inline */
    justify-content: flex-start;
    align-items: stretch;
    flex: 1 1 auto;            /* allow card to grow to match siblings */
}
#parent .feature-item > .feature-content {
    display: flex;
    /* Hero image styling (copied from index.html hero behavior) - apply site-wide
         This targets the full-width hero image used on index.html and also images placed
         inside the breadcrumb/hero container on other pages.
         Selectors include:
             - the index pattern: .container-fluid.position-relative.p-0 + img.img-fluid.w-100
             - any image inside .container-fluid.bg-breadcrumb (pages that use that wrapper)
             - img.hero-image (useful if you add the class explicitly)
             - fallback selector for carousel-1 by src
    */
    .container-fluid.position-relative.p-0 + img.img-fluid.w-100,
    .container-fluid.bg-breadcrumb img,
    img.hero-image,
    img[src*="carousel-12"] {
            display: block; /* ensure margin behaves predictably */
            /* Full-bleed: span the viewport and override generic img max-width */
            width: 100vw;
            max-width: none;
            height: 75vh;
            object-fit: cover; /* fill and crop as needed */
            transform: translateZ(0); /* GPU hint to avoid hairline gaps */
            margin-top: 1rem; /* small vertical nudge so caption sits comfortably */
    }
    @media (max-width: 768px) {
        .container-fluid.position-relative.p-0 + img.img-fluid.w-100,
        .container-fluid.bg-breadcrumb img,
        img.hero-image,
        img[src*="carousel-12"] {
            height: 70vh; /* slightly shorter on small screens */
            margin-top: 0.6rem;
        }
    }
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 auto;            /* content area grows to fill card height */
}
#parent .feature-item > .feature-content p {
    margin-bottom: 0.25rem;    /* tighten space below description */
}
#parent .row { align-items: stretch; }

/* keep icons consistent and slightly smaller on very small screens */
#parent .feature-icon .d-inline-flex { width: 64px; height: 64px; }
@media (max-width: 576px) {
    #parent .feature-icon[style] { width: 48px !important; }
    #parent .feature-item { padding: .75rem; }
}

/* small accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    #parent .feature-item, #parent .feature-icon .d-inline-flex { transition: none !important; transform: none !important; }
}

/* ===== App Features — Teacher tab: equal-height cards & tighter spacing ===== */
#teacher .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}
#teacher .feature-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    flex: 1 1 auto;
}
#teacher .feature-item > .feature-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 auto;
}
#teacher .feature-item > .feature-content p { margin-bottom: 0.25rem; }
#teacher .row { align-items: stretch; }
#teacher .feature-icon .d-inline-flex { width: 64px; height: 64px; }
@media (max-width: 576px) { #teacher .feature-icon[style] { width: 48px !important; } #teacher .feature-item { padding: .75rem; } }

/* ===== App Features — Student tab: equal-height cards & tighter spacing ===== */
#student .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}
#student .feature-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    flex: 1 1 auto;
}
#student .feature-item > .feature-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 auto;
}
#student .feature-item > .feature-content p { margin-bottom: 0.25rem; }
#student .row { align-items: stretch; }
#student .feature-icon .d-inline-flex { width: 64px; height: 64px; }
@media (max-width: 576px) { #student .feature-icon[style] { width: 48px !important; } #student .feature-item { padding: .75rem; } }

/* respect reduced motion for teacher & student tabs */
@media (prefers-reduced-motion: reduce) {
    #teacher .feature-item, #teacher .feature-icon .d-inline-flex, #student .feature-item, #student .feature-icon .d-inline-flex { transition: none !important; transform: none !important; }
}

/* ===== App Features — Director tab: equal-height cards & tighter spacing ===== */
#director .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}
#director .feature-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    flex: 1 1 auto;
}
#director .feature-item > .feature-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 auto;
}
#director .feature-item > .feature-content p { margin-bottom: 0.25rem; }
#director .row { align-items: stretch; }
#director .feature-icon .d-inline-flex { width: 64px; height: 64px; }
@media (max-width: 576px) { #director .feature-icon[style] { width: 48px !important; } #director .feature-item { padding: .75rem; } }

@media (prefers-reduced-motion: reduce) {
    #director .feature-item, #director .feature-icon .d-inline-flex { transition: none !important; transform: none !important; }
}

/* ===== App Features — Admin tab: equal-height cards & tighter spacing ===== */
#admin .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}
#admin .feature-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    flex: 1 1 auto;
}
#admin .feature-item > .feature-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 auto;
}
#admin .feature-item > .feature-content p { margin-bottom: 0.25rem; }
#admin .row { align-items: stretch; }
#admin .feature-icon .d-inline-flex { width: 64px; height: 64px; }
@media (max-width: 576px) { #admin .feature-icon[style] { width: 48px !important; } #admin .feature-item { padding: .75rem; } }

@media (prefers-reduced-motion: reduce) {
    #admin .feature-item, #admin .feature-icon .d-inline-flex { transition: none !important; transform: none !important; }
}



/* Modules: icon-left cards that match feature-item pattern
     - icon stacked above text on xs
     - side-by-side on sm+
     - equal height across the row with small inner padding and tight gaps
*/
.modules > .col-12[class*="col-"] { display: flex; flex-direction: column; }
.modules .feature-item { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; flex: 1 1 auto; min-height: 180px; padding: .9rem; box-shadow: 0 6px 18px rgba(9,30,66,0.04); transition: transform .28s cubic-bezier(.2,.9,.3,1), box-shadow .28s ease; }
.modules .feature-item:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(9,30,66,0.08); }
.modules .feature-icon { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.modules .feature-icon .d-inline-flex { width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; transition: transform .22s ease; }
.modules .feature-item:hover .feature-icon .d-inline-flex { transform: translateY(-4px) scale(1.04); }
.modules .feature-content { flex: 1 1 auto; padding-left: .5rem; padding-right: .25rem; }
.modules .feature-content h5 { margin: 0 0 .25rem 0; font-size: 1.05rem; }
.modules .feature-content p { margin: 0; color: #495567; line-height: 1.45; }

@media (max-width: 575.98px) {
    .modules .feature-item { flex-direction: column; gap: .6rem; min-height: 140px; }
    .modules .feature-content { padding-left: 0; padding-right: 0; }
    .modules .feature-icon .d-inline-flex { width: 56px; height: 56px; }
}

/* Reduce outer whitespace between cards so grid looks tight */
.modules.row.g-4 { margin-left: 0; margin-right: 0; }
.modules.row.g-4 > [class*="col-"] { padding-left: .5rem; padding-right: .5rem; }
}

/* App Features: equal-height cards and tighter grid spacing */
.feature .row.g-4 > [class*="col-"] { display: flex; flex-direction: column; }
.feature .feature-item { flex: 1 1 auto; min-height: 200px; padding: 0.9rem; margin: 0; }
.feature .feature-item .feature-content { padding: 0.75rem 0.6rem; }
.feature .feature-item { box-shadow: 0 6px 18px rgba(9,30,66,0.04); }
.feature .feature-item .feature-icon .d-inline-flex { width: 56px; height: 56px; }
.feature .feature-item .feature-content h5 { font-size: 1.05rem; }


/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 23px;
    height: 23px;
}

.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 {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.section-title .sub-style {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.section-title .sub-style::before {
    content: "";
    width: 100px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-left: -100px;
    border: 1px solid var(--bs-primary) !important;
}

.section-title .sub-style::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-bottom: 5px;
    margin-left: -50px;
    border: 1px solid var(--bs-primary) !important;
}

.sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
    font-size: var(--sub-title-size);
}

.sub-title::before {
    content: "";
    width: 100px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-right: -100px;
    border: 1px solid var(--bs-primary) !important;
}

.sub-title::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-bottom: 8px;
    margin-right: -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: 576px) {
    .topbar {
        display: none;    
    }
}
/*** Topbar End ***/


/*** Navbar ***/

.navbar-light .navbar-nav .nav-link {
    font-family: 'Open Sans', sans-serif;
	color:black;
    position: relative;
    margin-right: 25px;
    padding-top: 0px ;
    padding-bottom: 0px;
    color: var(--bs-dark) !important;
    font-size: 12px;
    font-weight: 400;
    outline: none;
    transition: .5s;
}
    /* Force navbar labels to uppercase across the site (links & dropdowns) */
    .navbar-light .navbar-nav .nav-link,
    .navbar .dropdown-item,
    .navbar .btn {
        text-transform: uppercase !important;
        letter-spacing: .02em;
        font-size: 15px !important;
		
    }

.sticky-top.navbar-light .navbar-nav .nav-link {
    color: black !important;
    padding-right: .5rem;
    padding-left: .5rem;
}

.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: 80px;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 72px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    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) !important;
    transition: .5s;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: relative;
        background: var(--bs-white);
    }

    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 0px 0px;
        border: 1px solid var(--bs-primary);
        color: var(--bs-primary);
    }

    .navbar-light .navbar-collapse {
        margin-top: 0px;
        border-top: 1px solid #DDDDDD;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0 !important;
        margin-left: 0;
        color: var(--bs-dark) !important;
    }

    .navbar-light .navbar-brand img {
        max-height: 56px;
    }
}

@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) !important;
    }

    /* Keep navbar height and logo size consistent when sticky class is toggled */
    .sticky-top.navbar-light,
    .navbar-light {
        /* ensure padding matches the non-sticky state */
        padding-top: 0rem !important;
        padding-bottom: 0rem !important;
    }

    .sticky-top.navbar-light .navbar-brand img,
    .navbar-light .navbar-brand img {
        max-height: 72px !important; /* keep logo from shrinking */
    }

    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--bs-primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: calc(100% - 2px);
        left: 1px;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
}
/*** Carousel Hero Header Start ***/
.header-carousel {
    position: relative; 
}

.header-carousel .owl-nav .owl-prev {
    position: absolute;
    width: 70px;
    height: 70px;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--bs-primary);
    color: var(--bs-white);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.header-carousel .owl-nav .owl-next {
    position: absolute;
    width: 70px;
    height: 70px;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--bs-primary);
    color: var(--bs-white);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    box-shadow: inset 150px 0 0 0 var(--bs-light) !important;
    color: var(--bs-primary) !important;
}

@media (max-width: 576px) {
    .header-carousel .owl-nav .owl-prev,
    .header-carousel .owl-nav .owl-next {
        top: 630px;
        transition: 0.5s;
    }

    .header-carousel .header-carousel-item .carousel-caption .carousel-caption-content {
        width: 95% !important;
    }
 
}

.header-carousel .header-carousel-item,
.header-carousel .header-carousel-item img {
    position: relative;
    width: 100%;
    height: 80vh;
    margin-top: 95px;
    display: block;
    object-fit: contain;
    transition: 0.5s;
    

}

/* Footer logo sizing: keep it small and responsive */
.footer-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

/* Welcome modal styling to match site theme */
/* Welcome Modal compact & centered */
#welcomeModal .modal-dialog {
  max-width: 480px;          /* modal ko chhota rakhega */
  margin: auto;              /* vertical + horizontal center */
}

#welcomeModal .modal-content {
  height: auto;              /* jitna content utni height */
  max-height: 100vh;          /* safety: screen ke bahar na nikle */
  overflow-y: auto;          /* agar content zyada ho to scroll ho jaye */
  border-radius: 0.6rem;     /* thoda rounded look */
}

#welcomeModal .modal-body {
  padding: 1rem;             /* compact padding */
}

#welcomeModal .form-control,
#welcomeModal textarea {
  padding-top: .35rem;
  padding-bottom: .35rem;
  font-size: .95rem;
}

#welcomeModal textarea {
  height: 80px;              /* chhoti textarea */
}

#welcomeModal .btn {
  padding-top: .45rem;
  padding-bottom: .45rem;
}

/* Add breathing room above the submit button in the welcome modal */
#welcomeModal .modal-body .btn {
        margin-top: 0.75rem; /* small gap above submit */
}


.modal-content.rounded {
    border-radius: 0.75rem;
}
.modal-header.bg-primary {
    background: var(--bs-primary, #0d6efd);
}
.modal-header .modal-title {
    font-weight: 600;
}
.modal-content.shadow-sm {
    box-shadow: 0 10px 30px rgba(13,110,253,0.12), 0 4px 10px rgba(0,0,0,0.06);
    border: 0;
}
.modal-body .form-label {
    font-weight: 600;
}
.btn-close-white {
    filter: invert(1) brightness(1.2);
}

/* Blur background when modal is open */
.modal-open-blur > *:not(.modal-backdrop):not(.modal) {
    filter: blur(6px) saturate(0.98);
    transition: filter 0.3s ease;
    pointer-events: none; /* keep interactions to the modal */
}
.modal-backdrop.show {
    backdrop-filter: blur(4px);
}

/* Prevent background scrolling while the custom modal blur class is active
   This mirrors Bootstrap's default .modal-open behaviour but uses the
   project's custom class so we don't need to change the JS that toggles it. */
body.modal-open-blur,
html.modal-open-blur {
    overflow: hidden !important;
    overscroll-behavior: none !important; /* stop touch/trackpad bounce */
    touch-action: none !important;
}

/* If the appointment section uses a fixed background, disable fixed
   attachment while the modal is open to avoid background scrolling artifacts */
body.modal-open-blur .appointment {
    background-attachment: scroll !important;
}

/* =======================================================================
   Ensure Bootstrap modal locks background scroll (covers default behaviour)
   - Bootstrap toggles `body.modal-open` to prevent page scroll. If some
     global styles or fixed backgrounds interfere, explicitly enforce it here.
   - Make the modal content/body the scrollable region so long forms scroll
     inside the modal, not the page behind it.
   ======================================================================= */
/* Lock page scrolling when Bootstrap modal is open */
body.modal-open,
html.modal-open {
    overflow: hidden !important;           /* prevents page scroll */
    overscroll-behavior: none !important;  /* stops touch bounce on mobile */
}

/* Constrain dialog and make modal body scrollable when content is long */
.modal-dialog {
    max-height: 100vh;          /* ensure dialog never exceeds viewport */
    margin: 1.75rem auto;       /* keep bootstrap spacing */
    display: flex;
    align-items: center;        /* center vertically where appropriate */
}
.modal-content {
    max-height: calc(100vh - 3.5rem); /* leave space for margins */
    display: flex;
    flex-direction: column;
    overflow: hidden;           /* keep scrolling inside modal-body */
}
.modal-body {
    overflow-y: auto;           /* allow only modal body to scroll */
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

/* If you use .modal-dialog-scrollable (Bootstrap helper) keep that behaviour */
.modal-dialog-scrollable .modal-content {
    max-height: 100%;
}
.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

/* If a section uses background-attachment: fixed (parallax) disable it while modal is open
   so you don't get visual/scroll artifacts. Already handled for .appointment above. */
body.modal-open .appointment { background-attachment: scroll !important; }
/* Also disable fixed attachment for other parallax sections while modal is open */
body.modal-open .testimonial,
body.modal-open .contact,
body.modal-open-blur .testimonial,
body.modal-open-blur .contact {
    background-attachment: scroll !important;
}


@media (max-width: 576px) {
    .footer-logo {
        max-width: 120px;
    }
}

/* Hero title override - edit only this selector to change hero heading sizes */
.hero-title {
    font-size: 1.2rem; /* desktop default - change this value */
    line-height: 1.05;
    font-weight: 600;
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .hero-title { font-size: 1.6rem; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 0.9rem; }
}

@media (max-width: 992px) {
    .header-carousel .header-carousel-item,
    .header-carousel .header-carousel-item img {
        margin-top: 0;
        transition: 0.5s;
    }

}

@media (min-width: 992px) {
    .header-carousel .owl-nav .owl-prev,
    .header-carousel .owl-nav .owl-next {
        margin-top: 50px;
    }
}

.header-carousel .header-carousel-item .carousel-caption {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .2);
}

.header-carousel .header-carousel-item .carousel-caption .carousel-caption-content {
    position: relative;
    width: 75%;
    }

    /* Carousel caption typography controls */
    .header-carousel .carousel-caption-content h5 {
        font-size: var(--carousel-subtitle-size);
    }

    .header-carousel .carousel-caption-content h1 {
        font-size: var(--carousel-title-size);
    }

    .header-carousel .carousel-caption-content p {
        font-size: var(--carousel-copy-size);
    }
/*** Carousel Hero Header End ***/


/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../img/carousel-2.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 160px 0 60px 0;
    margin-bottom: 1rem;
    
}

.bg-breadcrumb .breadcrumb-item a {
    color: var(--bs-white) !important;
}
/*** Single Page Hero Header End ***/


/*** Service Start ***/
.service .service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .2) ;
}

.service .service-item .service-img {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service .service-item .service-img img {
    transition: 0.5s;
}

.service .service-item .service-img::before {
    width: 100%;
    height: 0;
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    transition: 0.5s;
    z-index: 5;
    
}

.service .service-item:hover .service-img::before {
    height: 100%;
    background: rgba(21, 185, 217, .3);
}

.service .service-item .service-img:hover img {
    transform: scale(1.3);
}

.service .service-item .service-content {
    position: relative;
    z-index: 2;

}

.service .service-item .service-content::before {
    width: 100%;
    height: 8px;
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: rgba(21, 185, 217, .5);
    transition: 0.5s;
    z-index: 3;
}

.service .service-item:hover .service-content::before {
    background: rgba(21, 185, 217, .5);
    height: 100%;
}

.service .service-item .service-content .service-content-inner {
    transition: 0.5s;
}


.service .service-item:hover .service-content .service-content-inner {
    position: relative;
    color: var(--bs-white) !important;
    z-index: 9;
}
.service .service-item:hover .service-content .service-content-inner h5 {
    color: var(--bs-secondary);
}

/* Service card hover: lift + shadow, and image zoom on hover */
.service-item {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    will-change: transform;
}
.service-item:hover,
.service-item:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16,24,40,0.12);
}

.service-img {
    position: relative;
    overflow: hidden; /* ensure the zoomed image doesn't overflow the card */
}
.service-img img {
    transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
    transform-origin: center center;
    will-change: transform;
}

/* Zoom the image slightly when the parent card is hovered */
.service-item:hover .service-img img,
.service-item:focus-within .service-img img {
    transform: scale(1.06);
}

/* Optional: subtle overlay while hovering to improve contrast */
.service-item .service-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.06) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.service-item:hover .service-img::after,
.service-item:focus-within .service-img::after {
    opacity: 1;
}

/* Ensure service-content stays readable and doesn't shift layout when image scales */
.service-item .service-content { z-index: 2; position: relative; }

/* Improve accessibility: keyboard focus should show the same effect */
.service-item:focus-within { outline: none; }
/*** Service End ***/

/* Icon step styling: center icons and scale on hover */
.icon-step {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease, box-shadow 0.25s ease;
}
.service-item:hover .icon-step,
.service-item:focus-within .icon-step {
    transform: scale(1.06);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/*** About Start ***/
.about .about-img {
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: 10px;
}

.about .about-img .about-img-inner {
    position: absolute;
    left: 0; 
    bottom: 0; 
    border: 10px solid; 
    border-color: var(--bs-white) var(--bs-white) var(--bs-white) var(--bs-white);
    border-radius: 50%;

}

.about .about-img .about-experience {
    position: absolute;
    top: 125px; 
    left: -125px; 
    transform: rotate(-90deg);
    background: transparent;
    color: var(--bs-primary);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 4px;
}

/*** About End ***/

.feature .feature-item {
    position: relative;
    display: flex;
    flex-direction: column; /* stack icon -> content vertically */
    align-items: stretch;
    border: 1px solid var(--bs-primary);
    border-radius: 10px;
    background: var(--bs-light);
    transition: 0.35s;
    overflow: hidden; /* prevent inner content from spilling out */
    min-height: 100px; /* give cards a consistent height */
}

.feature .feature-item::before {
    width: 0;
    height: 100%;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
    transition: 0.5s;
}

.feature .feature-item:hover::before {
    width: 100%;
    background: var(--bs-primary);
}

.feature .feature-item .feature-icon {
    display: flex;
    width: 100%;
    justify-content: center; /* center horizontally */
    align-items: center;
    border-radius: 10px;
    transition: 0.35s;
}

.feature .feature-item .feature-icon .p-3 {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feature .feature-item .feature-content {
    /* ensure content sits below the icon and stays readable */
    padding-top: 0.25rem;
}

.feature .feature-item:hover {
    box-shadow: 0 12px 30px rgba(13,110,253,0.12);
}

.feature .feature-item:hover .feature-icon {
    position: relative;
    z-index: 2;
}

.feature .feature-item:hover .feature-content {
    position: relative;
    color: var(--bs-white);
    z-index: 2;
}

.feature .feature-item:hover .feature-content h5 {
    color: var(--bs-dark);
}
/*** Feature End ***/


/*** Appointment Start ***/
.appointment {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url(../img/carousel-2.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.appointment .appointment-form {
    background: rgba(239, 162, 134, 0.3);
    padding: 1rem !important; /* reduce padding from p-5 */
    max-height: none; /* allow page scrolling instead of internal scrolling */
    overflow: visible; /* let the page handle scrolling */
}

.appointment .appointment-form .btn.btn-primary {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.appointment .appointment-form .btn.btn-primary:hover {
    box-shadow: inset 600px 0 0 0 var(--bs-light) !important;
    color: var(--bs-primary) !important;
}
/*** Youtube Video start ***/
.video {
    position: relative;
}

.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: content-box;
    display: block;
    width: 33px;
    height: 44px;
    border-radius: 50%;
    transition: 0.5s;
    

}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 115px;
    height: 115px;
    background: var(--bs-primary);
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
    transition: 0.5s;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--bs-secondary);
    border-radius: 50%;
    transition: all 300ms;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 33px solid var(--bs-white);
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    margin-left: 5px;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

#videoModal {
    z-index: 99999;
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 640px; /* reduced to match appointment form column visually */
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #ffffff;
    background: #000000;
    opacity: 1;
}
/*** Youtube Video End ***/
/*** Appointment End ***/


/*** Team Start ***/
.team .team-item .team-img {
    position: relative;
    overflow: hidden;
}

.team .team-item .team-img::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    transition: 0.5s;
}

.team .team-item .team-img .team-icon {
    position: absolute;
    bottom: -125px;
    left: 50%;
    transform: translateX(-50%);
    transition: 0.5s;
}

.team .team-item .team-img:hover .team-icon {
    margin-bottom: 145px;
}

.team .team-item:hover .team-img::before {
    background: rgba(21, 185, 217, .3);
}

.team .team-item .team-content {
    color: var(--bs-primary);
    transition: 0.5s;
}

.team .team-item .team-content h5 {
    color: var(--bs-secondary);
    transition: 0.5s;
}

.team .team-item:hover .team-content h5 {
    color: var(--bs-dark);
}

.team .team-item:hover .team-content {
    background: var(--bs-primary);
    color: var(--bs-white);
}
/*** Team End ***/


/*** testimonial Start ***/
.testimonial {
    background: linear-gradient(rgba(21, 185, 217, 0.9), rgba(21, 185, 217, 0.9)), url(../img/carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.testimonial .testimonial-item .testimonial-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    background: transparent;
}

.testimonial .testimonial-item .testimonial-inner .testimonial-inner-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid var(--bs-white);
}

.testimonial .testimonial-carousel.owl-carousel {
    position: relative;
}

.testimonial .testimonial-carousel .owl-nav .owl-prev {
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--bs-light);
    color: var(--bs-primary);
    transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--bs-light);
    color: var(--bs-primary);
    transition: 0.5s;
}


.testimonial .testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial .testimonial-carousel .owl-nav .owl-next:hover {
    box-shadow: inset 100px 0 0 0 var(--bs-primary) !important;
    color: var(--bs-white) !important;
}


@media (max-width: 900px) {
    .testimonial .testimonial-carousel .owl-nav .owl-prev {
        margin-top: -190px;
        margin-left: 40px;
    }

    .testimonial .testimonial-carousel .owl-nav .owl-next {
        margin-top: -190px;
        margin-right: 40px;
    }
    
}

.testimonial-carousel .owl-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 15px;
    border: 1px solid var(--bs-white);
    background: transparent;
    transition: 0.5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 20px;
    height: 20px;
    background: var(--bs-secondary) !important;
}

.testimonial-carousel .owl-dots .owl-dot span {
    position: relative;
    margin-top: 50%;
    margin-left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Override: keep service card text dark/black on hover */
/* The template changes card text color on hover; for the Services grid we force headings and paragraphs to remain dark for better readability */
.service .service-item:hover .service-content .service-content-inner,
.service .service-item:focus-within .service-content .service-content-inner {
    color: var(--bs-dark) !important;
}
.service .service-item:hover .service-content .service-content-inner h5,
.service .service-item:focus-within .service-content .service-content-inner h5 {
    color: var(--bs-dark) !important;
}
.service .service-item:hover .service-content .service-content-inner p,
.service .service-item:focus-within .service-content .service-content-inner p {
    color: var(--bs-dark) !important;
}

.testimonial-carousel .owl-dots .owl-dot span::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial .testimonial-carousel .testimonial-item .testimonial-inner p.fs-7 {
    transition: 0.5s;
}

@media (min-width: 900px) {
    .testimonial .testimonial-carousel .testimonial-item .testimonial-inner p.fs-7 {
        font-size: 20px;
    }
}


/* Testimonial Section Title Start */
.testimonial .section-title {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.testimonial .section-title .sub-style {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.testimonial .section-title .sub-style::before {
    content: "";
    width: 100px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-left: -100px;
    border: 1px solid var(--bs-white) !important;
}

.testimonial .section-title .sub-style::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-bottom: 5px;
    margin-left: -50px;
    border: 1px solid var(--bs-white) !important;
}

.testimonial .section-title .sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
    
}

.testimonial .section-title .sub-title::before {
    content: "";
    width: 100px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-right: -100px;
    border: 1px solid var(--bs-white) !important;
}

.testimonial .section-title .sub-title::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-bottom: 8px;
    margin-right: -50px;
    border: 1px solid var(--bs-white) !important;
}
/*** Testimonial End ***/


/*** Blog Start ***/
.blog .blog-item .blog-img {
    position: relative;
    overflow: hidden;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

.blog .blog-item .blog-img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    transition: 0.5s;
}

.blog .blog-item .blog-img img {
    transition: 0.5s;
}

.blog .blog-item .blog-img:hover img {
    transform: scale(1.3);
}

.blog .blog-item:hover .blog-img::after {
    background: rgba(21, 185, 217, .5);
}

.blog .blog-item .blog-centent {
    background: var(--bs-light);
    border: 1px solid var(--bs-primary);
    border-top: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
/*** Blog End ***/


/*** Contact Start ***/
.contact {
    background: linear-gradient(rgba(21, 185, 217, 0.9), rgba(21, 185, 217, 0.9)), url(../img/carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}


.contact .contact-form .btn.btn-light {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.contact .contact-form .btn.btn-light:hover {
    box-shadow: inset 600px 0 0 0 var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

.contact .contact-form .form-floating input,
.contact .contact-form .form-floating textarea,
.contact .contact-form .form-floating label {
    color: var(--bs-light);
}



/* Testimonial Section Title Start */
.contact .section-title {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.contact .section-title .sub-style {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.contact .section-title .sub-style::before {
    content: "";
    width: 100px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-left: -100px;
    border: 1px solid var(--bs-white) !important;
}

.contact .section-title .sub-style::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-bottom: 5px;
    margin-left: -50px;
    border: 1px solid var(--bs-white) !important;
}

.contact .section-title .sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.contact .section-title .sub-title::before {
    content: "";
    width: 100px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-right: -100px;
    border: 1px solid var(--bs-white) !important;
}

.contact .section-title .sub-title::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-bottom: 8px;
    margin-right: -50px;
    border: 1px solid var(--bs-white) !important;
}
/*** Contact End ***/


/*** Footer Start ***/
.footer {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url(../img/carousel-2.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
.footer .footer-item a {
    line-height: 35px;
    color: #ffffff; /* visible on dark footer */
    transition: color 0.25s ease, text-decoration-color 0.25s ease;
    display: inline-block; /* make hover effects not cause inline reflow */
}

.footer .footer-item p {
    line-height: 35px;
    color: #ffffff; /* ensure paragraphs are visible */
}

.footer .footer-item a:hover {
    /* Avoid underline and layout shift: only change color on hover */
    color: var(--bs-primary);
    text-decoration: none;
}

.footer .footer-item h4,
.footer .footer-item h5,
.footer .footer-item h6 {
    color: #ffffff; /* headings in footer */
}

/*** Footer End ***/

/* Footer layout: arrange footer sections in a single row on larger screens
   Keep default stacked behavior on small screens for accessibility and readability */
@media (min-width: 992px) {
    /* Target the main footer row inside the footer container */
    .footer .container > .row.g-5 {
        display: flex;
        flex-wrap: nowrap; /* keep the columns on a single line */
        gap: 1.5rem;
        align-items: flex-start;
    }

    /* Make each column take up an equal share (4 columns -> 25% each) */
    .footer .container > .row.g-5 > [class*="col-"] {
        flex: 0 0 25%;
        max-width: 25%;
    }

    /* Ensure the inner footer-item fills its column and uses column layout */
    .footer .footer-item {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    /* Slightly shift the contact column (4th column) left by reducing left padding
       and allow long addresses to wrap nicely to avoid truncation or overflow. */
    .footer .container > .row.g-5 > [class*="col-"]:nth-child(4) .footer-item {
        padding-left: 0.25rem;
        padding-right: 0.5rem;
    }
    .footer .container > .row.g-5 > [class*="col-"]:nth-child(4) .footer-item a {
        display: inline-block; /* allow width constraints and wrapping */
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    /* For medium screens, two columns per row (50% each) */
    .footer .container > .row.g-5 {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .footer .container > .row.g-5 > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
    /* Also reduce padding for the contact column on medium screens */
    .footer .container > .row.g-5 > [class*="col-"]:nth-child(4) .footer-item {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .footer .container > .row.g-5 > [class*="col-"]:nth-child(4) .footer-item a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

/*** copyright Start ***/
.copyright {
    background: var(--bs-dark) !important;
}
/*** copyright end ***/

/* Ensure Owl carousel elements are visible even if JS fails to initialize */
/* This overrides the library's default .owl-carousel { display: none; } */
.owl-carousel {
    display: block !important;
}

/* Prefer visible header-carousel items by default so local images appear */
.header-carousel .header-carousel-item {
    display: block !important;
}

/* For the left/right service-item layout the markup still includes top/bottom padding (py-*)
   from the original stacked card; reduce that vertical padding so the content column is visible
   and vertically aligned. Use !important to override utility classes (py-5) applied in HTML. */
.service .service-img {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    min-height: auto;
}

/* Keep the circular icon visually centered with a slightly smaller circle when in row mode */
.service .service-img .d-inline-flex {
    width: 72px;
    height: 72px;
}

/* Ensure service columns stretch so cards in the same row have equal height */
.service .row > [class*="col-"] {
    display: flex;
    align-items: stretch;
}

/* ------------------------------------------------------------------
     Homepage (index) scoped rules
     - justify paragraphs only on the homepage to avoid affecting other pages
     ------------------------------------------------------------------ */
.home p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

@media (max-width: 575.98px) {
    /* On small screens, slightly relax justification for better word-wrapping */
    .home p {
        text-align: justify;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
}

/* ------------------------------------------------------------------
     Site-wide paragraph justification
     - Applies to all pages; use .no-justify on containers to opt-out when needed
     ------------------------------------------------------------------ */
body p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

/* Allow exceptions: add .no-justify to parent to prevent forced justification */
.no-justify p {
    text-align: left !important;
}

@media (max-width: 575.98px) {
    body p {
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
}

/* ------------------------------------------------------------------
   Enhanced visual effects for feature/service/modules cards
   - subtle lift + stronger shadow on hover
   - animated icon movement and slight rotation on hover
   - heading accent bar that grows on hover
   - gentle background overlay to indicate focus
   - respects prefers-reduced-motion
   ------------------------------------------------------------------ */
.feature-item {
    position: relative;
    overflow: visible; /* allow icon shadow to extend outside */
    transition: transform .36s cubic-bezier(.2,.9,.3,1), box-shadow .36s cubic-bezier(.2,.9,.3,1), background-color .28s;
    will-change: transform, box-shadow;
}

.feature-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: .5rem;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(13,110,253,0.02), rgba(13,110,253,0));
    opacity: 0;
    transition: opacity .36s ease;
}

.feature-item:hover::after,
.feature-item:focus-within::after {
    opacity: 1;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(9,30,66,0.12);
}

.feature-item .feature-icon .d-inline-flex {
    transition: transform .40s cubic-bezier(.2,.9,.3,1), box-shadow .36s ease;
}
.feature-item:hover .feature-icon .d-inline-flex,
.feature-item:focus-within .feature-icon .d-inline-flex {
    transform: translateY(-8px) scale(1.08) rotate(-6deg);
    box-shadow: 0 12px 28px rgba(9,30,66,0.12);
}

.feature-item .feature-content h5,
.feature-item .feature-content h6 {
    position: relative;
    display: inline-block;
    transition: color .28s ease;
}

/* Additional defensive rules to keep icons from forcing overflow and allow headings to wrap */
.modules .feature-item {
    box-sizing: border-box;
}
.modules .feature-item .feature-icon {
    flex-shrink: 0;
    width: 64px;
    max-width: 64px;
}
.modules .feature-item .feature-content h5,
.modules .feature-item .feature-content h6 {
    white-space: normal;
    overflow: visible;
    word-break: break-word;
}
.modules .feature-item .feature-content p {
    /* ensure paragraph text wraps and cannot overflow parent */
    min-width: 0;
}

/* Footer: normalize share icon and social button sizes and spacing */
.footer .fa-share {
    line-height: 1;
    font-size: 1.6rem; /* slightly larger than surrounding text */
    vertical-align: middle;
}
.footer .btn-square.btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.footer .d-flex.align-items-center > .fa-share {
    margin-right: 8px;
}
.footer .d-flex.align-items-center a.btn-square {
    margin-left: 6px;
    margin-right: 6px;
}
/* Ensure icons don't appear too large on small screens */
@media (max-width: 576px) {
    .footer .fa-share { font-size: 1.3rem; }
    .footer .btn-square.btn { width: 34px; height: 34px; font-size: 0.9rem; }
}

/* Floating action buttons (bottom-right) */
.floating-actions {
    position: fixed;
    left: 18px; /* moved to left side */
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1060; /* above modals */
}
.floating-actions .fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    transition: transform .15s ease, box-shadow .15s ease;
}
.floating-actions .fab:active,
.floating-actions .fab:focus {
    transform: translateY(1px) scale(.99);
    outline: none;
}
.floating-actions .wa-fab {
    background: #25D366; /* WhatsApp green */
}
.floating-actions .call-fab {
    background: #0d6efd; /* Bootstrap primary blue */
}
.floating-actions .fab i { font-size: 1.25rem; }

/* Floating FAB pulse (kept but made size-aware) */
.floating-actions .fab::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(0,0,0,0.12);
    animation: fab-pulse 2.2s infinite ease-out;
    z-index: -1;
    pointer-events: none;
}
@keyframes fab-pulse {
    0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.6; }
    70% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* Hide on very small screens if space is tight */
@media (max-width: 360px) {
    .floating-actions { left: 10px; bottom: 14px; }
    .floating-actions .fab { width: 46px; height: 46px; }
    .floating-actions .fab::after { width: 46px; height: 46px; }
}

/* Stronger, size-aware blink animation for icons */
@keyframes icon-blink {
    0% {
        transform: scale(1);
        opacity: 1;
        text-shadow: none;
        filter: drop-shadow(0 0 0 rgba(0,0,0,0));
    }
    40% {
        transform: scale(var(--blink-scale, 1.08));
        opacity: 0.95;
        text-shadow: 0 6px 18px rgba(0,0,0,0.12);
        filter: drop-shadow(0 6px calc(0.6em) rgba(0,0,0,0.12));
    }
    70% {
        transform: scale(calc(var(--blink-scale, 1.08) - 0.02));
        opacity: 0.82;
        text-shadow: 0 10px 28px rgba(0,0,0,0.18);
        filter: drop-shadow(0 10px calc(0.9em) rgba(0,0,0,0.18));
    }
    100% {
        transform: scale(1);
        opacity: 1;
        text-shadow: none;
        filter: drop-shadow(0 0 0 rgba(0,0,0,0));
    }
}

.icon-blink {
    /* defaults (can be overridden per-context) */
    --blink-scale: 1.08;
    animation: icon-blink 1.4s cubic-bezier(.25,.8,.25,1) infinite;
    will-change: transform, opacity, filter, text-shadow;
}

/* Apply blink to footer icons and fabs; set context-aware variables so bigger icons blink stronger */
.footer .btn-square.btn i,
.footer .fa-share {
    --blink-scale: 1.10; /* subtle but visible */
    font-size: 1.05rem; /* normalize slightly */
    animation: icon-blink 1.6s cubic-bezier(.25,.8,.25,1) infinite;
}



.floating-actions .fab i {
    --blink-scale: 1.16; /* stronger for floating action buttons */
    animation: icon-blink 1.2s cubic-bezier(.25,.8,.25,1) infinite;
    color: #fff; /* ensure icon color contrasts with glow */
}

/* optional helper classes if you want explicit tuning on specific icons */
.icon-lg { --blink-scale: 1.20; }
.icon-md { --blink-scale: 1.12; }
.icon-sm { --blink-scale: 1.06; }

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .icon-blink,
    .footer .btn-square.btn i,
    .footer .fa-share,
    .floating-actions .fab i,
    .floating-actions .fab::after {
        animation: none !important;
        transition: none !important;
    }
}
.feature-item .feature-content h5::after,
.feature-item .feature-content h6::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, var(--bs-primary), rgba(13,110,253,0.45));
    transform-origin: left;
    transform: scaleX(0);
    transition: transform .36s cubic-bezier(.2,.9,.3,1);
    border-radius: 2px;
}

.feature-item:hover .feature-content h5::after,
.feature-item:hover .feature-content h6::after,
.feature-item:focus-within .feature-content h5::after,
.feature-item:focus-within .feature-content h6::after {
    transform: scaleX(1);
}

.feature-item .feature-content p {
    transition: color .28s ease;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .feature-item,
    .feature-item::after,
    .feature-item .feature-icon .d-inline-flex,
    .feature-item .feature-content h5::after,
    .feature-item .feature-content h6::after {
        transition: none !important;
        transform: none !important;
    }
}

/* Footer spacing overrides: tighten vertical and horizontal spacing */
.footer {
    padding-top: 2.25rem; /* slightly reduce vertical padding */
    padding-bottom: 2.25rem;
}

/* Reduce gap between footer columns */
.footer .container > .row.g-5 {
    gap: 1rem !important;
}

/* Tighter heading and link spacing inside footer columns */
.footer .footer-item h4,
.footer .footer-item h5,
.footer .footer-item h6 {
    margin-bottom: 0.4rem;
    font-size: 1.03rem;
}

.footer .footer-item a {
    line-height: 1.5;
    display: block;
    margin-bottom: 0.25rem;
}

.footer .footer-item p {
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

/* Slightly tighten social icons spacing */
.footer .d-flex.align-items-center > .btn-square {
    margin-right: 0.35rem;
    padding: 0.35rem; /* keep buttons compact */
}

/* Ensure the contact column links wrap nicely */
.footer .footer-item a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Additional compact footer spacing overrides (placed at file end to ensure precedence) */
.footer .container {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}
.footer .container .row.g-5 {
    gap: 0.75rem !important; /* even tighter horizontal gap */
}
.footer .footer-item {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}
.footer .footer-item a, .footer .footer-item p {
    margin-bottom: 0.2rem;
}
.footer .footer-item .footer-logo { margin-bottom: 0.4rem; }

/* Reduce top spacing before mission/vision/goals/commitment grid on About page */
.mission-grid {
    margin-top: 0.25rem !important; /* small nudge up; override Bootstrap/other rules */
    padding-top: 0 !important;
}

/* Ensure icon and heading sit on the same line inside each mission card */
.mission-grid .d-flex.align-items-center h5 {
    display: inline-block;
    margin: 0;
    vertical-align: middle;
    font-weight: 600;
}

/* Prevent the icon wrapper from shrinking so it stays left of the heading */
.mission-grid .d-flex.align-items-center > div {
    flex: 0 0 auto;
}

/* Navbar dropdown open on hover (desktop only) */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* gap remove */
  }

  /* Ensure toggle arrow stays active */
  .navbar .dropdown-toggle::after {
    
    transition: transform 0.2s;
  }

  .navbar .dropdown:hover .dropdown-toggle::after {
    transform: rotate(0deg);
  }
}

/* Card hover effects for service/feature items */
.service .feature-item {
    transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms cubic-bezier(.2,.9,.2,1), background-color 220ms;
    will-change: transform, box-shadow;
    position: relative;
    overflow: visible;
}
.service .feature-item::before{
    content: '';
    position: absolute;
    inset: 0;
    border-radius: .5rem;
    background: linear-gradient(90deg, rgba(2,136,209,0.03), rgba(2,136,209,0));
    opacity: 0;
    transition: opacity 220ms;
    pointer-events: none;
}
.service .feature-item .feature-icon > div { transition: transform 260ms ease, box-shadow 260ms ease; }
.service .feature-item:hover::before{ opacity: 1; }
.service .feature-item:hover{ transform: translateY(-8px); box-shadow: 0 18px 40px rgba(12,46,87,0.12); }
.service .feature-item:hover .feature-icon > div{ transform: scale(1.06); box-shadow: 0 6px 18px rgba(2,136,209,0.12); }

/* Make headings slightly more prominent on hover */
.service .feature-item:hover h5 { color: #064f7c; }

/* Reduce hover effects on touch devices to avoid jumpiness */
@media (hover: none), (pointer: coarse) {
    .service .feature-item, .service .feature-item::before, .service .feature-item .feature-icon > div { transition: none; }
    .service .feature-item:hover{ transform: none; box-shadow: none; }
}

/* Small responsive tweak: tighten padding on small screens */
@media (max-width: 575.98px) {
    .service .feature-item { padding: 1.25rem; }
    .service .feature-item .feature-icon { width: 56px; }
}

