﻿/* About page (scoped) */
.aboutpage .hero--about{
  position:relative;
  min-height:600px;
  overflow:hidden;
  background:
    url("images/about_us_hero_section.png") right center/cover no-repeat;
}
.aboutpage .hero--about > .container-fluid{position:relative;z-index:1;padding-left:0;padding-right:0}
.aboutpage .hero--about .hero__card{height:auto;min-height:600px;padding-bottom:0;background:transparent;border-radius:0;border-left:0;border-right:0;box-shadow:none;background-image:none}
.aboutpage .hero__grid{align-items:center;grid-template-columns:1.08fr .92fr}
.aboutpage .hero--about .hero__content{padding-right:0;background:rgba(255,255,255,.78);border:1px solid rgba(64,44,36,.12);border-radius:22px;padding:22px;box-shadow:var(--shadow-soft);backdrop-filter:blur(2px)}
.aboutpage .about-heroSpacer{min-height:460px}
.aboutpage .about-heroSpacer:empty{display:block}
.aboutpage .about-lead{max-width:720px;color:#5f5853;font-weight:500;line-height:1.75}
.aboutpage .about-badges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 16px;align-items:start;justify-items:stretch;grid-auto-flow:row}
.aboutpage .about-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;border:1px solid rgba(64,44,36,.12);background:rgba(255,255,255,.65);font-weight:800;color:#3a312c;width:100%;line-height:1.2}
.aboutpage .about-badge i{color:var(--orange)}

@media (max-width: 991.98px){
  .aboutpage .hero__grid{grid-template-columns:1fr}
  .aboutpage .about-heroSpacer{display:none}
  .aboutpage .hero--about .hero__card{min-height:auto}
}

/* About page FAQ heading: left/right layout */
.aboutpage .cpage-faqHead.cpage-faqHead--split{
  margin-top:18px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  text-align:left;
}
.aboutpage .cpage-faqHead__left{display:grid;gap:6px}
.aboutpage .cpage-faqHead__right{display:flex;align-items:center;justify-content:flex-end}
.aboutpage .cpage-faqHead__icon{
  width:46px;height:46px;border-radius:16px;
  display:inline-grid;place-items:center;
  background:rgba(246,198,167,.30);
  border:1px solid rgba(64,44,36,.12);
  box-shadow:var(--shadow-soft);
  color:var(--orange);
}
@media (max-width: 575.98px){
  .aboutpage .cpage-faqHead.cpage-faqHead--split{text-align:center;justify-content:center}
  .aboutpage .cpage-faqHead__right{justify-content:center}
}

.aboutpage .about-section{padding:34px 0}
.aboutpage .about-h2{font-weight:950;font-size:34px;color:#3a312c;margin:0}
.aboutpage .about-storyBox .about-h2{margin:0}
.aboutpage .about-storyBox__kicker{margin:8px 0 14px;color:#6b655f;font-weight:700;line-height:1.6;}
.aboutpage .about-storyBox{
  position:relative;
  overflow:hidden;
  border-radius:22px;
  border:1px solid rgba(64,44,36,.12);
  background:linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.70));
  box-shadow:0 18px 34px rgba(24,18,14,.10);
  padding:22px;
  min-height:200px;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .25s ease;
}
.aboutpage .about-storyBox:before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(900px 280px at 16% 0%, rgba(246,198,167,.38), rgba(255,255,255,0) 60%),
    radial-gradient(800px 260px at 92% 30%, rgba(246,198,167,.24), rgba(255,255,255,0) 62%);
  pointer-events:none;
  opacity:.9;
  transition:opacity .25s ease;
}
.aboutpage .about-storyBox > *{position:relative}
.aboutpage .about-storyBox:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 44px rgba(24,18,14,.14);
  border-color:rgba(230,123,42,.22);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(246, 198, 167, .55), transparent 60%), radial-gradient(900px 600px at 90% 10%, rgba(246, 198, 167, .40), transparent 55%), linear-gradient(180deg, #f9f1ea 0%, #f5ebe4 45%, #f8f1eb 100%);
}


.aboutpage .about-storyBox:hover:before{opacity:0}
.aboutpage .about-stat,
.aboutpage .about-card{
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .25s ease;
}
.aboutpage .about-stat:hover,
.aboutpage .about-card:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 34px rgba(24,18,14,.12);
  border-color:rgba(230,123,42,.22);
}

@media (max-width: 575.98px){
  .aboutpage .about-storyBox{padding:16px;border-radius:18px}
}
.aboutpage .about-h2 .text-red{color:var(--red)}
.aboutpage .about-muted{color:#6b655f;line-height:1.75;margin-top:10px}

.aboutpage .about-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:18px}

.aboutpage .about-stats__note{margin-top:10px;color:#6b655f;font-weight:700;display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;line-height:1.55}
.aboutpage .about-stats__note:before{content:"";width:10px;height:10px;border-radius:999px;background:linear-gradient(90deg,var(--orange),var(--orange2));box-shadow:0 10px 16px rgba(24,18,14,.10)}
.aboutpage .about-stat{height:200px;display:flex;flex-direction:column;justify-content:center;gap:6px;background:linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.70));border:1px solid rgba(64,44,36,.12);border-radius:18px;padding:16px;box-shadow:var(--shadow-soft);position:relative;overflow:hidden}
.aboutpage .about-stat__num{font-weight:950;font-size:34px;color:#3a312c;line-height:1;text-align:center}
.aboutpage .about-stat__lbl{margin:0;color:#6b655f;font-weight:800;text-align:center;line-height:1.25}


.aboutpage .about-stat:before{content:"";position:absolute;inset:-2px;background:radial-gradient(500px 140px at 18% 0%, rgba(246,198,167,.34), rgba(255,255,255,0) 60%),radial-gradient(360px 120px at 92% 80%, rgba(246,198,167,.18), rgba(255,255,255,0) 62%);pointer-events:none}
.aboutpage .about-stat > *{position:relative}

.aboutpage .about-grid2{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;align-items:stretch;margin-top:18px}
.aboutpage .about-card{background:rgba(255,255,255,.72);border:1px solid rgba(64,44,36,.12);border-radius:18px;padding:18px;height:100%;box-shadow:var(--shadow-soft)}
.aboutpage .about-card h3{margin:0;font-weight:950;color:#3a312c;font-size:20px}
.aboutpage .about-card p{margin:10px 0 0;color:#6b655f;}


.aboutpage .about-branches{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:16px}
.aboutpage .about-branch__head{display:flex;align-items:center;gap:10px}
.aboutpage .about-branch__head i{color:var(--orange)}
.aboutpage .about-branch__title{font-weight:950;color:#3a312c;margin:0}
.aboutpage .about-branch__addr{margin-top:10px;color:#6b655f;line-height:1.7}
.aboutpage .about-branch__phone{margin-top:10px;font-weight:900;color:#3a312c}

.aboutpage .about-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.aboutpage .about-tag{padding:8px 12px;border-radius:999px;background:rgba(246,198,167,.35);border:1px solid rgba(230,123,42,.18);font-weight:800;color:#4f4945}

@media (max-width: 991.98px){
  .aboutpage .about-stats{grid-template-columns:repeat(2,1fr)}
  .aboutpage .about-grid2{grid-template-columns:1fr}
  
  .aboutpage .about-branches{grid-template-columns:1fr}
  .aboutpage .about-founder{grid-template-columns:120px 1fr}
  .aboutpage .about-founder img{width:120px;height:120px}
}

@media (max-width: 575.98px){
  .aboutpage .about-stats{grid-template-columns:1fr}
  
}
/* Our Office */
.aboutpage .about-officeCarousel{position:relative;margin-top:16px}
.aboutpage .about-officeCarousel .carousel-btn{top:50%}
.aboutpage .about-officeTrack{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - 28px) / 3);
  gap:14px;
  overflow:hidden;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
}
.aboutpage .about-officeShot{
  margin:0;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(64,44,36,.12);
  background:rgba(255,255,255,.72);
  box-shadow:var(--shadow-soft);
  scroll-snap-align:start;
}
.aboutpage .about-officeShot img{width:100%;height:220px;object-fit:cover;display:block}
@media (max-width: 991.98px){
  .aboutpage .about-officeTrack{grid-auto-columns:calc((100% - 14px) / 2)}
  .aboutpage .about-officeShot img{height:200px}
}
@media (max-width: 575.98px){
  .aboutpage .about-officeTrack{grid-auto-columns:100%}
  .aboutpage .about-officeCarousel .carousel-btn{display:flex}
  .aboutpage .about-officeShot img{height:220px}
}

/* =========================
   Carousel Container
========================= */
.about-officeCarousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
}

/* Track */
.about-officeTrack {
    display: flex;
    width: 100%;
}

/* Each Slide */
.about-officeShot {
    min-width: 100%;
    margin: 0;
    flex-shrink: 0;
}

/* Image */
.about-officeShot img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

/* =========================
   Arrow Buttons
========================= */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}

/*  lefteft Arrow */
[data-carousel-prev] {
    left: 12px;
    margin-left: 20px;   
    margin-right: 0;
}

/* Right Arrow */
[data-carousel-next] {
    right: 12px;
}

/* =========================
   Tablet
========================= */
@media (max-width: 991px) {
    .about-officeShot img {
        height: 250px;
    }
}

/* =========================
   Mobile
========================= */
@media (max-width: 767px) {
    .about-officeShot img {
        height: 220px;
        border-radius: 12px;
    }

    .carousel-btn {
        display: flex !important;
        width: 36px;
        height: 36px;
        font-size: 22px;
        opacity: 1 !important;
        visibility: visible !important;
    }

    [data-carousel-prev] {
        left: 8px;
         margin-left: 20px;
    }

    [data-carousel-next] {
        right: 8px;
        margin-right: 0;
    }
}

/* =========================
   Small Mobile
========================= */
@media (max-width: 480px) {
    .about-officeShot img {
        height: 180px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    [data-carousel-prev] {
        left: 6px;
    }

    [data-carousel-next] {
        right: 6px;
    }
}



/* =========================================
   BOOK CONSULTATION BUTTON
========================================= */

.aboutpage .cpage-bookBtnWrap{
    margin-top:10px;
}

.aboutpage .cpage-bookBtn{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:56px;
    padding:14px 20px;
    border-radius:16px;
    font-weight:800;
    text-decoration:none;
}

.aboutpage .cpage-bookBtn i{
    font-size:18px;
}

/* =========================================
   CONTACT LINKS
========================================= */

.aboutpage .cpage-contactRow a{
    color:#3a312c;
    text-decoration:none;
    font-weight:600;
    transition:.2s ease;
}

.aboutpage .cpage-contactRow a:hover{
    color:var(--orange);
}


/* =========================
   Mobile Responsive Layout
   Image → Name → Designation → Paragraph
   ========================= */
@media (max-width: 768px) {

    /* Card */
    .about-card {
        padding: 20px !important;
        border-radius: 16px !important;
    }

    /* Stack all content vertically */
    .about-founder {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        text-align: center !important;
    }

    /* Image block */
    .about-founder > div:first-child {
        flex: none !important;
        width: 100% !important;
        text-align: center !important;
        order: 1 !important;
    }

    .about-founder > div:first-child img {
        width: 200px !important;
        height: 200px !important;
        max-width: 100% !important;
        object-fit: cover !important;
        border-radius: 12px !important;
        display: block !important;
        margin: 0 auto !important;
    }

    /* Content block */
    .about-founder > div:last-child {
        width: 100% !important;
        order: 2 !important;
    }

    /* Remove negative margins from inline styles */
    .about-founder h2,
    .about-founder p {
        margin-left: 0 !important;
        margin-left: 40px;
    }

    /* Name */
    .about-founder h2 {
        margin: 0 0 8px 0 !important;
        margin-top: 0 !important;
        font-size: 24px !important;
        line-height: 1.3 !important;
        text-align: center !important;
        margin-left: 60px;
    }

    /* Designation */
.about-founder p:nth-of-type(1) {
    margin: 0 0 12px 60px !important; /* top right bottom left */
    font-size: 15px !important;
    line-height: 1.5 !important;
    text-align: left !important;
    color: #6b625a;
}


    /* Intro paragraph */
    .about-founder p:nth-of-type(2) {
        margin: 0 !important;
        font-size: 15px !important;
        text-align: justify !important;
        margin-left: 80px;
    }
    
    


    /* Bottom paragraph */
    .about-card > p:last-child {
        margin-top: 12px !important;
        font-size: 15px !important;
        text-align: justify !important;
        margin-top: -10px;
    }

    /* Remove extra spacing from <br> used only for gap */
    .about-founder br {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .about-card {
        padding: 16px !important;
    }

    .about-founder > div:first-child img {
        width: 170px !important;
        height: 170px !important;
    }

    .about-founder h2 {
        font-size: 21px !important;
    }

    .about-founder p:nth-of-type(1),
    .about-founder p:nth-of-type(2),
    .about-card > p:last-child {
        font-size: 14px !important;
        text-align: justify !important;
    }

}



/* Mobile Responsive */
@media (max-width: 768px) {
    .about-founder p:nth-of-type(1) {
        margin: 0 0 12px 0 !important; /* remove left margin */
        text-align: left !important;
        font-size: 14px !important;
        text-align: justify !important;
    }
     .about-founder p:nth-of-type(2) span {
        display: block !important; /* Always next line */
        margin-left: 20px !important;   /* align with paragraph start */
        margin-top: 4px !important;  /* small gap from above text */
        text-align: left !important;
        text-align: justify !important;
    }
     .about-founder p {
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left !important;
        width: 100% !important;
    }

    .about-founder p span {
        display: block !important;   /* Force next line */
        width: 100% !important;
        clear: both !important;
        margin-top: 4px !important;
        text-align: left !important;
    }
     /* Doctor Name Left Align */
    .about-founder h2 {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 20px !important;
        text-align: left !important;
        width: 100% !important;
    }
      /* Image block */
    .about-founder > div:first-child {
        flex: none !important;
        width: 100% !important;
        text-align: left !important;   /* Center se left */
        order: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .about-founder > div:first-child img {
        width: 200px !important;
        height: 200px !important;
        max-width: 100% !important;
        object-fit: cover !important;
        border-radius: 12px !important;
        display: block !important;
        margin: 0 !important;          /* Remove auto center */
        margin-left: 0 !important;     /* Force left */
        margin-right: auto !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .about-heroSpacer {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 0 !important;
        overflow: hidden !important;
        margin-bottom: -80px;
    }
}




