/*home page styling*/
*{
    margin: 0%; 
    padding: 0%;
    box-sizing: border-box;
}

body{
    height: 50% vh;
    background-color: white;
    font-family: poppins;
    
}
/* header styling */
header {
    border-bottom: 2px solid brown;
    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;

}

/* Remove hover-based dropdown opening, JS will handle it */


/* 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;
    }
}

/* MAINCONTENT STYLING */
.left-section {
  background: url('Ramaniyamimages/SENIOR LIVING 1.png') no-repeat center center;
  background-size: cover;
  color: #333;
}

/* Breadcrumb arrow */
.breadcrumb-item + .breadcrumb-item::before {
  content: " > ";
}
.Heading-content{
    background-color: rgba(236, 236, 221,0.7);
}
.Heading-content h1{
    color: rgb(131, 15, 15);
}
.Heading-content h4{
    font-family: IBM plex serif;
    font-weight: semibold;
}
.Body-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  
  
}

.Body-content {
  background-color: rgba(236, 236, 221, 0.7);
  width: auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.Body-content p{
    line-height: 50px;
}
.Body-content li{
    line-height: 40px;
}
.Flat{
    margin-bottom: -2px;
    border-left: 2px solid rgb(145, 26, 26) ;
    object-fit: cover;
}
/* --- Responsive Hiding for Small & Medium Screens --- */
@media (max-width: 991.98px) {
  .left-section {
    width: 100%;
  }

  .Flat {
    display: none !important;
  }
}
/* footer styling */
footer {
    padding: 10px;
    border-top: solid 1px white;
    /* font-weight: 300; */
    font-size: 14px;
    background-color: #722525;
}


@media (max-width: 450px) {
    .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; 
}

}

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main content should take remaining space */
main {
  flex: 1 0 auto;
}

/* Footer stays at bottom on lg screens */
footer {
  flex-shrink: 0;
}

/* Optional: small padding for mobile stacked layout */
@media (max-width: 991.98px) {
  footer {
    position: relative;
  }
}



#scrollToggle {
  position: fixed;
  bottom: 30px;
  right: 20px;

  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); }
}



/* Section */
.usb-blog-carousel-wrap {
  max-width: 1280px;
  margin: auto;
  padding: 50px 40px;
}

/* Header */
.usb-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.usb-carousel-title {
  font-size: 26px;
  font-weight: 500;
  margin: 0;
}

/* Nav buttons */
.usb-carousel-nav {
  display: flex;
  gap: 12px;
}

.usb-nav {
  background: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.usb-nav:hover {
  background: #722525;
  color: #fff;
}

/* Carousel */
.usb-carousel-box {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.usb-carousel-box::-webkit-scrollbar {
  display: none;
}

.usb-carousel-track {
  display: flex;
  gap: 32px;
  padding-bottom: 10px;
}

/* Cards */
.usb-blog-card {
  flex: 0 0 calc(33.333% - 22px);
  display: flex;
  flex-direction: column;
}

@media (max-width: 1024px) {
  .usb-blog-card {
    flex: 0 0 calc(50% - 16px);
  }
}

@media (max-width: 640px) {
  .usb-blog-card {
    flex: 0 0 100%;
  }

  .usb-carousel-title {
    font-size: 17px;
  }

  .usb-nav {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
}

/* Card content */
.usb-blog-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.usb-blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #777;
  margin-bottom: 8px;
}

.usb-blog-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.usb-blog-desc {
  font-size: 15px;
  color: #555;
  margin-bottom: 10px;
}

.usb-blog-link {
  margin-top: auto;
  color: #722525;
  font-weight: 600;
  text-decoration: none;

}

.usb-blog-link:hover{
  text-decoration: underline;
}



/* Senoirliving main new design css */
/* ===============================
   PREMIUM SAMPARPAN SECTION
=============================== */

.samarpan-section {
  position: relative;
  padding: 100px 0;
  background: #ffffff;
  font-family: "Poppins", sans-serif;
  overflow: hidden;
}

.samarpan-bg-word {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(58px, 11vw, 160px);
  font-weight: 800;
  letter-spacing: 10px;
  color: rgba(114, 37, 37, 0.035);
  white-space: nowrap;
  pointer-events: none;
}

.samarpan-header {
  position: relative;
  max-width: 860px;
  margin: 0 auto 80px;
  z-index: 2;
}

.samarpan-header span,
.samarpan-label {
  display: inline-block;
  color: #722525;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.samarpan-header h2 {
  /* font-family: "Aboreto", serif; */
  font-size: clamp(34px, 5vw, 62px);
  color: #111;
  margin-bottom: 16px;
}

.samarpan-header h2::after {
  content: "";
  display: block;
  width: 86px;
  height: 3px;
  background: #722525;
  margin: 18px auto 0;
  border-radius: 20px;
}

.samarpan-header p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 0;
}

/* Rows */
.samarpan-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
  align-items: center;
  margin-bottom: 95px;
}

.samarpan-row.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.samarpan-row.reverse .samarpan-content {
  order: 2;
}

.samarpan-row.reverse .samarpan-image-wrap {
  order: 1;
}

/* Content Card */
.samarpan-content {
  position: relative;
  padding: 34px 36px;
  border-radius: 28px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(114, 37, 37, 0.12);
  box-shadow: 0 22px 65px rgba(0,0,0,0.06);
  backdrop-filter: blur(12px);
  transition: all 0.45s ease;
}

.samarpan-content:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(114,37,37,0.12);
}

.samarpan-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 32px;
  width: 4px;
  height: 74px;
  background: #722525;
  border-radius: 0 20px 20px 0;
}

.samarpan-content h3 {
  color: #1f1f1f;
  font-size: clamp(25px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 22px;
}

.samarpan-content p {
  color: #555;
  font-size: 15.5px;
  line-height: 1.9;
  margin-bottom: 14px;
  text-align: justify;
}

/* Image */
.samarpan-image-wrap {
  position: relative;
  width: 100%;
}

.samarpan-image-wrap::before {
  content: "";
  position: absolute;
  inset: 24px -14px -14px 24px;
  /* border: 1px solid rgba(114,37,37,0.18); */
  border-radius: 30px;
  z-index: 0;
}

.samarpan-image-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 430px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
  border-radius: 28px;
  transition: transform 0.75s ease;
}

.samarpan-image-wrap:hover img {
  transform: translateY(-8px) scale(1.02);
}

/* Final Highlight */
.samarpan-highlight {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  margin-top: 20px;
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(135deg, #fff 0%, #faf7f5 100%);
  border: 1px solid rgba(114,37,37,0.12);
  box-shadow: 0 28px 80px rgba(0,0,0,0.08);
}

.samarpan-highlight-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 26px;
  transition: transform 0.75s ease;
}

.samarpan-highlight:hover .samarpan-highlight-img img {
  transform: scale(1.025);
}

.samarpan-highlight-content {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.16), transparent 35%),
    linear-gradient(145deg, #722525, #351313);
  color: #fff;
  border-radius: 28px;
  padding: 42px;
  box-shadow: 0 24px 70px rgba(114,37,37,0.28);
  overflow: hidden;
}

.samarpan-highlight-content::after {
  content: "Ramaniyam";
  position: absolute;
  right: 12px;
  bottom: 1px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.045);
}

.samarpan-highlight-content span {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.samarpan-highlight-content h3 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.28;
  margin-bottom: 18px;
}

.samarpan-highlight-content p {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.86);
  font-size: 15.5px;
  line-height: 1.9;
  margin-bottom: 0;
  text-align: justify;
}

/* ===============================
   ENTRANCE ANIMATION
=============================== */

.samarpan-animate {
  opacity: 0;
  filter: blur(5px);
  transition:
    opacity 0.95s cubic-bezier(.22,.61,.36,1),
    transform 0.95s cubic-bezier(.22,.61,.36,1),
    filter 0.95s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform, filter;
}

.samarpan-animate.fade-up {
  transform: translateY(45px);
}

.samarpan-animate.fade-left {
  transform: translateX(55px);
}

.samarpan-animate.fade-right {
  transform: translateX(-55px);
}

.samarpan-animate.show {
  opacity: 1;
  transform: translate(0, 0);
  filter: blur(0);
}

/* Tablet */
@media (max-width: 991px) {
  .samarpan-section {
    padding: 75px 0;
  }

  .samarpan-header {
    margin-bottom: 54px;
  }

  .samarpan-row,
  .samarpan-row.reverse,
  .samarpan-highlight {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 64px;
  }

  .samarpan-row.reverse .samarpan-content,
  .samarpan-row.reverse .samarpan-image-wrap {
    order: initial;
  }

  .samarpan-image-wrap {
    order: 1;
  }

  .samarpan-content {
    order: 2;
    padding: 32px 28px;
  }

  .samarpan-image-wrap::before {
    display: none;
  }

  .samarpan-image-wrap img {
    height: auto;
    width: 100%;
    border-radius: 24px;
  }

  .samarpan-highlight {
    padding: 24px;
    border-radius: 28px;
  }

  .samarpan-highlight-content {
    padding: 36px 30px;
  }

  .samarpan-animate.fade-left,
  .samarpan-animate.fade-right {
    transform: translateY(45px);
  }

  .samarpan-animate.show {
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 576px) {
  .samarpan-section {
    padding: 60px 0;
  }

  .samarpan-bg-word {
    display: none;
  }

  .samarpan-header {
    margin-bottom: 42px;
  }

  .samarpan-content {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .samarpan-content h3,
  .samarpan-highlight-content h3 {
    font-size: 24px;
  }

  .samarpan-content p,
  .samarpan-highlight-content p {
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
  }

  .samarpan-highlight {
    padding: 16px;
    border-radius: 22px;
  }

  .samarpan-highlight-img img {
    border-radius: 18px;
  }

  .samarpan-highlight-content {
    padding: 30px 22px;
    border-radius: 20px;
  }

  .samarpan-highlight-content::after {
    font-size: 28px;
  }
}