@media(min-width:800px){
  html, body {
  height: 100%;
}
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}
.ramaniyam-flex-images {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 40px;
}

/* CARD */
.ramaniyam-card {
  width: 260px;
  text-align: center;
}

/* IMAGE */
.ramaniyam-card img {
  width: 100%;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  border-radius: 22px;
  display: block;
}

/* TEXT */
.ramaniyam-card h4 {
  margin-top: 16px;
  margin-bottom: 4px;
  font-size: 22px;
  color: #fff;
}

.ramaniyam-card p {
  margin: 0;
  font-size: 14px;
  color: #fff;
}

/* Larger screens */
@media (min-width: 1400px) {
  .ramaniyam-card {
    width: 280px;
  }
}

header,footer {
    font-family: "poppins";
}

/*home page styling*/
*{
    margin: 0; 
    padding: 0;
    box-sizing: border-box;
}

header {
    
    border-bottom: 2px solid #722525;
    background-color: white;
}

.navbar-brand img {
    width: 100px;
}

.navbar-nav .nav-link {
    color: #000;
    font-weight: 500;
}

/* Remove default Bootstrap dropdown hover behavior for desktop */
.navbar .dropdown-menu {
    transition: all 0.3s ease;
    visibility: hidden;
    opacity: 0;
    display: none;

}



/* Mega dropdown positioning */
.dropdown-mega {
    position: static;
}

/* --- Mega menu fix: keep gap and allow selection --- */


/* Show mega menu when parent has .show or menu has .show */
.nav-item.dropdown.show .dropdown-menu.megamenu,
.dropdown-menu.megamenu.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: block !important;
}

/* Also ensure all dropdown-menus are selectable when .show is present */
.dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.megamenu .col-md-3 {
    margin-bottom: 1rem;
}

.megamenu .icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: #b00;
}

.nav-link {
    font-weight: 500;
}

.dropdown-item.active, .dropdown-item:active {
    color:#722525 !important;
}

.dropdown-item:focus, .dropdown-item:hover {
    color:#722525 !important;
    background: transparent !important;
}

.megamenu a:hover {
  color: #b71c1c !important; 
}


.dropdown-mega:hover > .dropdown-menu {
  display: block;
  margin-top: 0; /* removes gap so it doesn’t disappear */
}

/* Make sure mega menu aligns properly */
.dropdown-menu.megamenu {
  left: 0;
  right: 0;
  top: 100%;
  border-radius: 0;
  background: #ddd;
  background: #ddd;
  border: 1px solid #ddd;
  box-shadow: none;

}

.newbutton {
    /* background-color: #722525; */
    border: none;
    color: white;
    border-radius: 7px;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    background: linear-gradient(5deg, #722525, #9B3232, #E58383);
}

.enquirenow .text {
    line-height: 1.2;
}

@media (max-width: 991.98px) {
    #mainNavbar {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .dropdown-menu.dropdown-row {
        white-space: nowrap;
        padding: 10px 15px;
    }

    .dropdown-menu.dropdown-row li {
        display: inline-block;
        margin-right: 10px;
    }

    .dropdown-menu.dropdown-row .dropdown-item {
        display: inline-block;
        padding: 10px 15px;
        text-align: center;
    }
}

/* Remove hover-based dropdown for desktop, JS will handle it */
@media (min-width: 992px) {
  

    .navbar .dropdown-menu {
        display: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }
}

/* footer styling */
footer {
    padding: 10px;
    border-top: solid 1px white;
    font-size: 14px;
    /* background-color: #722525; */
    color: white;
    
}


@media (max-width: 800px) {
    .Footer-elements {
        margin-top: 10px;
    }
}

.social-circle {
  width: 38px;
  height: 38px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.3s ease;
}

.social-circle i {
  color: #ffffff;
  font-size: 18px;
  transition: 0.3s ease;
}

.Footer-elements {
  
  gap: 14px;
}

/* Hover Effect */
.social-circle:hover {
  border-color: #722525;
}


@media (min-width:100px) and (max-width:768px) {
  
  .social-circle{
  width: 38px;
  height: 38px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.3s ease;
}
.location-circle {
  width: 45px;
  height: 45px;
  
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.3s ease;
}

.social-circle i,
.location-circle i {
  color: #ffffff;
  font-size: 18px;
  transition: 0.3s ease;
}

/* Hover */
.social-circle:hover,
.location-circle:hover {
  border-color: #722525;
}

.social-circle:hover i,
.location-circle:hover i {
  color: #722525;
}

/* Small alignment fix for location icon */
.location-circle i {
  font-size: 20px;
  margin-top: 2px; 
}
}



/* ===== PAGE BACKGROUND SPLIT ===== */
html, body {
  min-height: 100%;
}

body {
  margin: 0;
  background-size: 100% 200%;
  background-position: bottom; /* 🔑 start from bottom */
  background-image: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffffff 50%,
    #722525 50%,
    #722525 100%
  );
  animation: splitFill 4.8s ease-in-out forwards;
}

/* ===== Animation ===== */
@keyframes splitFill {
  0% {
    background-position: 0% 0%;   /* bottom */
  }
  100% {
    background-position: 0% 50%;  /* center */
  }
}


.ramaniyam-flex-images {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-family: 'Poppins';
}

/* CARD */
.ramaniyam-card {
  width: 260px;                  /* 🔑 same width for image & text */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* IMAGE */
.ramaniyam-card img {
  width: 100%;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  border-radius: 22px;
  display: block;
}

/* NUMBER */
.ramaniyam-card h4 {
  margin-top: 16px;
  margin-bottom: 4px;
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
}

/* LABEL */
.ramaniyam-card p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #ffffff;
}

/* Desktop refinement */
@media (min-width: 1200px) {
  .ramaniyam-card {
    width: 280px;
  }
}


/* Tablets & mobiles – STILL 4 IMAGES */
@media (max-width: 991px) {
  .ramaniyam-flex-images img {
    height: 360px;
  }
}

@media (max-width: 576px) {
  .ramaniyam-flex-images img {
    height: 300px;
  }
}



/* =====================================================
   QUOTE — CLIP DRAW REVEAL (ARCHITECT STYLE)
===================================================== */
.animate-hidden {
  opacity: 1;                         /* REQUIRED for clip-path */
  clip-path: inset(0 100% 0 0);       /* hidden from right */
}

.animate-hidden.show {
  animation: clipDraw 3.6s ease-in-out forwards;
}

@keyframes clipDraw {
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* =====================================================
   GENERIC ANIMATIONS
===================================================== */
/* ===============================
   IMAGE — ELEVATED ZOOM-IN
================================ */
.zoom-hidden {
  opacity: 0;
  transform: scale(0.88) translateY(14px);
  filter: blur(1.5px);
}

.zoom-in {
  animation: zoomLift 1.6s cubic-bezier(.22,.61,.36,1) forwards;
}

@keyframes zoomLift {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(14px);
    filter: blur(1.5px);
  }
  60% {
    opacity: 1;
    transform: scale(1.02) translateY(-2px);
    filter: blur(0.4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

/* =====================================================
   BASE STAT STYLE
===================================================== */
.stat {
  opacity: 0;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  margin: 0;
}

/* =====================================================
   1️⃣ YEARS — SETTLING REVEAL
===================================================== */
.stat-years {
  transform: translateY(18px) scale(0.98);
}

.stat-years.show {
  animation: yearsSettle 2.2s cubic-bezier(.22,.61,.36,1) forwards;
}

@keyframes yearsSettle {
  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =====================================================
   2️⃣ SQ.FT — ARCHITECT DRAW-IN
===================================================== */
.stat-sqft {
  opacity: 1;
  clip-path: inset(0 100% 0 0);
}

.stat-sqft.show {
  animation: sqftDraw 2.4s ease-in-out forwards;
}

@keyframes sqftDraw {
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* =====================================================
   3️⃣ PROJECTS — PRECISION REVEAL
===================================================== */
.stat-projects {
  opacity: 0;
  transform: translateY(6px);
  letter-spacing: 1.5px;
}

.stat-projects.show {
  animation: projectsPrecision 2.2s cubic-bezier(.25,.8,.25,1) forwards;
}

@keyframes projectsPrecision {
  0% {
    opacity: 0;
    transform: translateY(6px);
    letter-spacing: 1.5px;
  }
  60% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.8px;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.4px;
  }
}

/* =====================================================
   4️⃣ DREAMS — GENTLE HOLD (SAFE)
===================================================== */
.stat-dreams {
  opacity: 0;
}

.stat-dreams.show {
  animation: dreamsHold 3s ease-in-out forwards;
  opacity: 1;
}

@keyframes dreamsHold {
  0% { opacity: 0; }
  60% { opacity: 1; }
  100% { opacity: 1; }
}

/* =====================================================
   NUMBER STYLE
===================================================== */
.count-number {
  font-variant-numeric: tabular-nums;
}

/* =====================================================
   QUOTE TYPOGRAPHY
===================================================== */
.hero-quote {
  letter-spacing: 1.5px;
  line-height: 1.6;
}



/* =====================================================
   HEADER & FOOTER — FADE UP (FINAL STEP)
===================================================== */

/* Initial hidden state */
.header-animate,
.footer-animate {
  opacity: 0;
  transform: translateY(24px);
}

/* When JS adds class */
.header-show,
.footer-show {
  animation: headerFooterFade 2.4s cubic-bezier(.22,.61,.36,1) forwards;
}

@keyframes headerFooterFade {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ===============================
   STAGE SWITCH SYSTEM
================================ */

.ramaniyam-stage {
  position: relative;
  min-height: 620px;
}

/* Overlapping stages */
.stage {
  position: absolute;
  inset: 0;
  width: 100%;
  transition: opacity 1.6s cubic-bezier(.22,.61,.36,1),
              transform 1.6s cubic-bezier(.22,.61,.36,1);
}

/* Visible stage */
.stage-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hidden stage */
.stage-hidden {
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
}

/* ===============================
   STAGE 2 TYPOGRAPHY
================================ */

.stage-two-header {
  margin-top: 20px;
  margin-bottom: 30px;
}

.ramaniyam-title {
  font-family: 'Poppins';
  font-size: 30px;
  letter-spacing: 3px;
  color: #ffffff;
  margin-bottom: 6px;
}

.ramaniyam-since {
  font-family: 'poppins';
  font-size: 12px;
  letter-spacing: 3px;
  color: #ffffff;
  opacity: 0.85;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  display: inline-block;
  font-weight: 100;
}

.stage-two-card {
  position: relative;
  width: 260px;
  aspect-ratio: 3 / 5;
  border-radius: 22px;
  overflow: hidden;

  /* 🔑 IMPORTANT: prevents background flash */
  background-color: #722525; /* match your brand / image edge */
}

/* Layers */
.stage-two-card .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;

  /* 🔑 overlap fade, not replace */
  transition: opacity 1.8s ease-in-out;
}

/* Layer A always visible initially */
.stage-two-card .layer-a {
  opacity: 1;
}

/* Toggle */
.stage-two-card.show-b .layer-a {
  opacity: 0.01; /* NOT zero */
}

.stage-two-card.show-b .layer-b {
  opacity: 1;
}


.next-card{
  margin-top: 83px !important;
}





/* Mobile and Tab css */
/* Mobile & Tablet only */
.mobile-hero {
  width: 100vw;
  height: auto;          /* Full screen height */
  overflow: hidden;
}

.mobile-hero img {
  width: 100%;
  height: 450px;
  object-fit: cover;     /* Cover without distortion */
  display: block;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

/* Base image */
.hero-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transform: translateX(100%);
  visibility: hidden;

  will-change: transform;
  animation: heroSlide 24s cubic-bezier(.22,.61,.36,1) infinite;
}

/* Timing offsets */
.hero-slider img:nth-child(1) { animation-delay: 0s; }
.hero-slider img:nth-child(2) { animation-delay: 3s; }
.hero-slider img:nth-child(3) { animation-delay: 6s; }
.hero-slider img:nth-child(4) { animation-delay: 9s; }
.hero-slider img:nth-child(5) { animation-delay: 12s; }
.hero-slider img:nth-child(6) { animation-delay: 15s; }
.hero-slider img:nth-child(7) { animation-delay: 18s; }
.hero-slider img:nth-child(8) { animation-delay: 21s; }

/* KEYFRAME — FAST ENTRY, SMOOTH EXIT */
@keyframes heroSlide {
  0% {
    transform: translateX(100%);
    visibility: hidden;
  }

  6% {
    transform: translateX(0);
    visibility: visible;
  }

  52% {
    transform: translateX(0);
    visibility: visible;
  }

  60% {
    transform: translateX(-100%);
    visibility: hidden;
  }

  100% {
    transform: translateX(-100%);
    visibility: hidden;
  }
}
.hero-slider img {
  backface-visibility: hidden;
  transform-style: preserve-3d;
  /* -webkit-transform: translateZ(0); */
}

/* Mini white icon row (stacked above the red nav) */
.ramaniyam-mini-row {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 66px;            /* height of red nav + gap; adjust if red nav height changes */
  height: 56px;            /* mini row height */
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 10001;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}

/* Items inside mini row */
.ramaniyam-mini-row .mini-item {
  display: flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  color: #5a2b2b;          /* brownish text to match brand */
  font-size: 14px;
  padding: 6px 8px;
}

.mini-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: inline-block;
}

/* Red bottom nav (keeps your existing styles, slight tweak to height if needed) */
.ramaniyam-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #722525;   /* adjust to your brand red if needed */
    padding: 10px 0 8px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10000;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* bottom nav items (your previous rules kept) */
.rbn-item {
    text-align: center;
    color: white;
    font-size: 13px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rbn-item span {
    margin-top: 3px;
    font-weight: 500;
}

.rbn-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* SHOW only on mobile/tablet, hide on desktop */
@media (min-width: 992px) {
  .ramaniyam-mini-row,
  .ramaniyam-bottom-nav { display: none !important; }
}

/* Reserve bottom space so page content is not hidden behind the two bars */
@media (max-width: 991.98px) {
  body { padding-bottom: calc(56px + 66px + 16px) !important; /* mini + red + breathing room */ }
}



/* Hide by default */
.scroll-down-btn {
  display: none;
}

/* Mobile & Tablet */
@media (max-width: 2991px) {
  .scroll-down-btn {
    position: fixed;
    bottom: 180px;
    right: 20px;

    width: 42px;
    height: 42px;
    border-radius: 50%;

    /* 🔥 Premium amber-gold */
    background: white;
    color: #722525;

    border: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 22px rgba(0,0,0,0.28);
    z-index: 9999;

    animation: arrowBounce 1.8s ease-in-out infinite;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .scroll-down-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 14px 30px rgba(0,0,0,0.35);
  }
}

/* Arrow styling */
.scroll-arrow {
  width: 22px;
  height: 22px;
}

/* Vertical bounce only */
@keyframes arrowBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}



/* Ensure modal is always on top */
.modal {
  z-index: 20000 !important;
}

.modal-backdrop {
  z-index: 19999 !important;
}

#scrollToggle {
  position: fixed;
  bottom: 30px;
  right: 30px;

  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;

  background: #ffffff;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;
  animation: bounce 2.2s infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#scrollToggle:hover {
  transform: scale(1.12);
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
}

/* Arrow direction */
.arrow {
  transition: transform 0.3s ease;
}

.arrow.down {
  transform: rotate(0deg);
}

.arrow.up {
  transform: rotate(180deg);
}

/* Elegant bounce */
@keyframes bounce {
  0%   { transform: translateY(0); }
  20%  { transform: translateY(0); }
  40%  { transform: translateY(-7px); }
  60%  { transform: translateY(-3px); }
  80%  { transform: translateY(0); }
  100% { transform: translateY(0); }
}

/*.skip-btn {*/
/*  position: absolute;*/
/*  bottom: 20px;*/
/*  left: 20px;*/
/*  background: transparent;*/
/*  border: 1.5px solid #722525;*/
/*  color: #722525;*/
/*  font-size: 13px;*/
/*  font-weight: 600;*/
/*  padding: 6px 14px;*/
/*  border-radius: 20px;*/
/*  letter-spacing: 1px;*/
/*  z-index: 20;*/
/*}*/

/* Mobile spacing tweak */
/*@media (max-width: 768px) {*/
/*  .skip-btn {*/
/*    bottom: 18px;*/
/*    left: 15px;*/
/*  }*/
/*}*/


.btn.skip-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;

  padding: 10px 20px;
  border-radius: 6px;

  background: #ffffff;   
  color: #8b1e1e;
  border: none;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;

  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.2s ease;

  z-index: 9999;
}

/* Hover */
.btn.skip-btn:hover {
  background: #722525;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Active */
.btn.skip-btn:active {
  transform: translateY(0);
}

/* Tablet */
@media (max-width: 768px) {
  .btn.skip-btn {
    bottom: 170px;
    left: 18px;
    padding: 9px 18px;
    font-size: 13px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .btn.skip-btn {
    bottom: 170px;
    left: 14px;
    padding: 8px 16px;
    font-size: 12px;
  }
}
/* Icon styling */
.skip-icon {
  margin-left: 8px;
  display: inline-block;
  transition: transform 0.2s ease;
}

@keyframes skipNudge {
  0%   { transform: translateX(0); }
  40%  { transform: translateX(0); }
  60%  { transform: translateX(8px); }
  80%  { transform: translateX(0); }
  100% { transform: translateX(0); }
}

.btn.skip-btn {
  animation: skipNudge 2.5s ease-in-out infinite;
}



/* Pause animation on hover */
.btn.skip-btn:hover {
  animation-play-state: paused;
}




/* ================= VIDEO POPUP SECTION ================= */

.ramaniyam-video-section {
  padding: 90px 20px;
  background: #722525;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.video-small-title {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 12px;
}

.video-main-title {
  font-family: "Aboreto", serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  margin-bottom: 34px;
}

.video-play-btn {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #ffffff;
  color: #722525;
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  transition: all 0.3s ease;
  animation: videoPulse 2s infinite;
}

.video-play-btn i {
  margin-left: 5px;
}

.video-play-btn:hover {
  transform: scale(1.08);
  background: transparent;
  color: #ffffff;
}

@keyframes videoPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255,255,255,0.35);
  }
  70% {
    box-shadow: 0 0 0 22px rgba(255,255,255,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255,255,255,0);
  }
}

/* Modal */
.ramaniyam-video-modal {
  z-index: 21000 !important;
}

.ramaniyam-video-modal .modal-content {
  background: transparent;
  border: none;
  position: relative;
}

.video-popup-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0,0,0,0.45);
}

.video-popup-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-close-btn {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: #722525;
  font-size: 28px;
  line-height: 1;
  z-index: 5;
  cursor: pointer;
}

@media (max-width: 768px) {
  .ramaniyam-video-section {
    padding: 70px 16px;
  }

  .video-play-btn {
    width: 72px;
    height: 72px;
    font-size: 24px;
  }

  .video-close-btn {
    top: -42px;
    right: 4px;
  }
}

/* ================= FULL COVER CENTER VIDEO POPUP ================= */

.ramaniyam-video-modal {
  z-index: 21000 !important;
}

.ramaniyam-video-modal .modal-dialog {
  max-width: min(1180px, 94vw);
  margin: 0 auto;
}

.ramaniyam-video-modal .modal-content {
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* main video wrapper */
.video-popup-wrap {
  position: relative;
  width: 100%;
  height: min(88vh, 700px);
  background: #000;
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 32px 95px rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255,255,255,0.16);
}

/* video full cover */
.popup-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #000;
}

/* close button inside aligned */
.video-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  color: #722525;
  font-size: 32px;
  line-height: 38px;
  text-align: center;
  z-index: 20;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  transition: all 0.25s ease;
}

.video-close-btn:hover {
  background: #722525;
  color: #fff;
  transform: scale(1.05);
}

/* backdrop darker premium */
.modal-backdrop.show {
  opacity: 0.78;
}

/* tablet */
@media (max-width: 991px) {
  .ramaniyam-video-modal .modal-dialog {
    max-width: calc(100vw - 28px);
  }

  .video-popup-wrap {
    height: 62vh;
    border-radius: 18px;
  }
}

/* mobile */
@media (max-width: 576px) {
  .video-popup-wrap {
    height: 54vh;
    border-radius: 16px;
  }

  .video-close-btn {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 28px;
    line-height: 33px;
  }
}