@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");
@import url("https://smc.org.in/fonts/uroob.css");
@import url("https://fonts.googleapis.com/css2?family=Anek+Malayalam:wght@100..800&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Khand:wght@300;400;500;600;700&display=swap');


:root {
  --primary-color: #4b0010;
  --secondary-color: #ffffff;
  --links-initial-clr: #989898;
  --link-hover: #ed585f;
  --primary-btn-padding: 10px 18px;
  --font-family: "Poppins", sans-serif;
  --mal-font-family: "Uroob", sans-serif;
  --font-malayalam-anek: "Anek Malayalam", sans-serif;
  --hover-border-color: #ffb6c1;
  --clicked-border-color: #ffb6c1;
  --text-color: #fff;
  --placeholder-color: #ffb6c1;
  --input-height: 50px;
  --box-h1-size: 71px;
  --box-h2-size: 37px;
  --max-width: 1100px;
  --gap: 16px;
  --card-height: clamp(180px, 22vw, 200px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--secondary-color);
  font-family: var(--font-family);
}

a {
  text-decoration: none;
  color: inherit;
}

ul li {
  list-style: none;
}

/*----------------------------- NAVBAR -----------------------------*/
.navbar-brand .logo img {
  width: 70px;
  height: 70px;
  object-fit: cover;
}

.navbar-brand h5 {
  color: var(--secondary-color);
  text-decoration: none;
  transition: none;
  font-family: 'Khand', sans-serif;
}

.navbar-brand h6 {
  
  font-family: 'Khand', sans-serif;

}

@media (max-width: 576px) {
  .navbar-brand h5 {
    font-size: 0.8rem;
  }
}

.navbar-brand:hover h5 {
  color: var(--secondary-color);
  text-decoration: none;
}

.navbar {
  background-color: var(--primary-color);
  z-index: 1035;
}

.navbar .nav-link,
.navbar .navbar-brand {
  color: var(--links-initial-clr) !important;
}

.navbar .nav-link.active {
  color: var(--secondary-color) !important;
}

.navbar .nav-link:hover,
.navbar .navbar-brand:hover {
  color: var(--link-hover) !important;
}

.navbar .nav-link {
  position: relative;
  text-decoration: none;
}

.navbar .nav-link:hover {
  color: var(--link-hover) !important;
}

.navbar .nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background-color: var(--link-hover);
}

#navbarNav {
  margin-left: auto;
}

/* Add spacing on desktop only */
@media (min-width: 992px) {
  #navbarNav {
    margin-right: 20px; /* adjust as needed */
  }
}


.btn-primary {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  padding: var(--primary-btn-padding);
  border: none !important;
  border-radius: 50px;
  box-shadow: none !important;
  outline: none !important;
}

.btn-primary,
.btn-primary .bi-chevron-right {
  transition: all 0.4s ease;
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  box-shadow: none !important;
  outline: none !important;
  border: none !important;
}

.btn-primary:hover {
  background-color: var(--link-hover) !important;
  color: var(--primary-color) !important;
}

.btn-primary .bi-chevron-right {
  background-color: var(--primary-color);
  padding: 8px;
  border-radius: 50%;
  color: var(--secondary-color);
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 14px;
  transition: background-color 0.3s, color 0.3s;
}

.btn-primary:hover .bi-chevron-right {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
}

.btn-primary:focus-within {
  outline: none !important;
  box-shadow: none !important;
}
/*----------------------------- NAVBAR -----------------------------*/

/*----------------------------- BANNER -----------------------------*/
.carousel-item {
  position: relative;
}

.overlay-content {
  z-index: 10;
}

.overlay-content > * {
  pointer-events: auto;
}

.overlay-inner h1 {
  font-family: var(--mal-font-family);
  font-size: 6vw;
}

@media (max-width: 1382px) {
  .overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .overlay-inner {
    position: relative;
    top: 20%;
  }
}

@media (max-width: 1382px) {
  .overlay-content .img-1,
  .overlay-content h1 {
    text-align: center;
  }

  .overlay-content .img-1 img {
    width: 300px;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 881px) {
  .overlay-content .img-1 img {
    width: 170px;
  }
}

@media (max-width: 556px) {
  .overlay-content .img-1 img {
    width: 100px;
  }
}

.banner-wrapper {
  position: relative;
}

.search-header {
  z-index: 2;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
}

.carousel-inner {
  position: relative;
  z-index: 1;
}

.carousel-item img {
  display: block;
  height: auto;
}

.search {
  /* display: flex;
  align-items: center;
  justify-content: end; */
  position: absolute;
  right: 15px;
  z-index: 99;
  top: 20px;
}

.search-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--secondary-color);
  border-radius: 999px;
  padding: 0 15px;
  height: var(--input-height, 48px);
  width: 280px;
  transition: border 0.3s ease;
}

.search-wrapper:hover {
  border-color: var(--hover-border-color);
}

.search-wrapper:has(input:focus) {
  border-color: var(--clicked-border-color);
}

.search-wrapper input {
  border: none;
  background: transparent;
  color: var(--text-color);
  font-size: 16px;
  font-style: italic;
  width: 100%;
  padding-left: 10px;
  outline: none;
}

.search-wrapper input::placeholder {
  color: var(--placeholder-color);
}

.search-icon {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .search {
    display: flex;
    justify-content: center;
    background-color: transparent;
    /* position: static; */
    /* padding: 0 1rem; */
    /* margin-top: 1rem; */
    z-index: 99;
  }

  .search-wrapper {
    width: 100%;
    max-width: 150px;
    height: 30px;
  }

  .search-wrapper input {
    font-size: 14px;
    padding-left: 8px;
  }
}
/*----------------------------- BANNER -----------------------------*/

/*----------------------------- BLOGS -----------------------------*/

/* Section wrapper */
.blogs-intro {
  padding: 2rem 1rem;
}

/* Grid layouts */
.custom-grid,
.custom-grid-2 {
  display: grid;
  gap: var(--gap);
  max-width: var(--max-width);
  margin: 0 auto;
  /* Change this line to stack items */
  grid-template-columns: 1fr; 
}

.custom-grid {
  grid-template-columns: 1.5fr 2fr 2fr;
}

.custom-grid-2 {
  grid-template-columns: 2fr 2fr 1.5fr;
}

/* Card box styles */
.box {
  display: block;
  height: var(--card-height);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #f5f5f5;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(14, 21, 47, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(14, 21, 47, 0.08);
}

/* Images inside cards */
.box .media {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* keep full image inside */
  object-position: center;
  display: block;
  /* background: #000; */
}

/* Arrow icon */
.arrow-icon {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 68px;
  height: auto;
  transition: transform 0.22s ease;
  z-index: 5;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.box:hover .arrow-icon {
  transform: scale(1.15);
}

/* Fix for box-6 (help desk) */
.box-6 {
  position: relative;
  border-radius: 12px; /* same as .box */
  overflow: hidden;
}

/* Gradient border for box-6 */
.box-6::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, #AC4B00 0%, #CA5323 47%, #0099FF 100%);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}



/* Helper spacing */
.mt-3 {
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 992px) {
  .custom-grid,
  .custom-grid-2 {
    grid-template-columns: 1fr;
  }

  .box {
  display: block;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #f5f5f5;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(14, 21, 47, 0.06);
  /* aspect-ratio: 4/3; */
}

}

@media (max-width: 576px) {
  .custom-grid,
  .custom-grid-2 {
    grid-template-columns: 1fr;
  }

  :root {
    /* --card-height: clamp(140px, 36vw, 200px); */
  }
}

/* .custom-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr 2fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.custom-grid-2 {
  display: grid;
  grid-template-columns: 2fr 2fr 1.5fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.box {
  height: 200px;
  border-radius: 12px;
  text-align: center;
  font-weight: bold;
  font-family: Arial, sans-serif;
  position: relative;
  overflow: hidden;
  object-fit: cover;
} */

/* .box h1 h2 {
  font-family: var(--mal-font-family);
  font-weight: 100;
}

.box h1 {
  font-size: var(--box-h1-size);
  font-family: var(--mal-font-family);
  margin: 0px;
}

.box h2 {
  font-size: var(--box-h2-size);
  font-family: var(--mal-font-family);
} */

/* .arrow-icon {
  position: absolute;
  bottom: 2px;
  right: 2px;
  height: auto;
  transition: transform 0.3s ease;
  z-index: 999;
}

.box:hover .arrow-icon {
  transform: scale(1.3);
} */

/* .box-1 {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c60037, #460048);
} */

/* .box-1 .img-card{
  height: 200px;
  object-fit: cover;
} */

/* .box-2 {
  width: 100%;
  position: relative;
} */

/* .box-2 .text-box {
  color: var(--secondary-color);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
} */
/* 
.box-3 {
  background: linear-gradient(190deg, #249a44, #b3be75);
  position: relative;
} */

/* .box-3 .modi {
  position: absolute;
  right: 0;
  left: -10px;
} */

/* .box-4 {
  background: linear-gradient(190deg, #0ba6ff, #a8a5fd);
  position: relative;
} */

/* .box-4 .rajeev {
    width: 250px;
    position: absolute;
    right: 0;
    left: 8px;
}

.for-margin {
  position: relative;
  bottom: 20px;
} */

/* .box-5 {
  width: 100%;
  position: relative;
} */

/* .box-5 .text-box {
  color: var(--secondary-color);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
} */

/* .box-6 {
  background: linear-gradient(135deg, #ac4b00, #ff6262, #0099ff);
  padding: 2px;
  border-radius: 12px;
  display: inline-block;
}

.box-6-inner {
  background: #fff5d9;
  border-radius: 12px;
  padding: 16px;
}

.box-6-inner .help-desk {
  width: 155px;
  height: 164px;
} */

/* .text-box-2 {
  position: absolute;
  color: var(--secondary-color);
  text-align: end;
  right: 12px;
  top: 10px;
  z-index: 999;
} */

/* @media (max-width: 768px) {
  .custom-grid,
  .custom-grid-2 {
    grid-template-columns: 1fr;
  }
} */

/*----------------------------- BLOGS -----------------------------*/

/*----------------------------- FOOTER -----------------------------*/
.footer {
  background: #4b0010
}

footer img {
  width: 250px;
  height: 250px;
}

.menu-border-left {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  height: fit-content;
}

.footer-menu h4 {
  font-weight: 300;
}

.footer-menu li a {
  color: var(--secondary-color);
  opacity: 0.5;
}

.footer-menu li a:hover {
  color: var(--link-hover);
  opacity: 1;
}

.credits {
  opacity: 0.5;
  font-weight: 300;
}

.second-row h5 {
  font-weight: 300;
}

.social-icons li a {
  font-size: 26px;
  color: #ffffff;
}

.social-icons li a:hover {
  color: var(--link-hover);
}
/*----------------------------- FOOTER -----------------------------*/

/*-------------------------------------------- PAGE-2 -- BLOG-1 --------------------------------------------*/
/*----------------------------- BANNER -----------------------------*/
/* .slide-2 {
  height: 460px;
} */

.carousel-slide-wrapper {
  height: 100%;
  overflow: hidden;
  position: relative;
}

.gradient-overlay {
  background: linear-gradient(to bottom, #00abe9 49%, #0078c2 100%);
  opacity: 0.8;
  z-index: 1;
}

.carousel-slide-wrapper img {
  height: 100%;
  object-fit: cover;
}

.content-wrapper {
  z-index: 2;
  color: var(--secondary-color);
}

.breadcrumb {
  z-index: 2;
  color: var(--secondary-color) !important;
}

.breadcrumb a {
  color: var(--secondary-color) !important;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--secondary-color) !important;
}

.blog-content h1 {
  font-size: 9vw;
  font-family: var(--mal-font-family);
}

.blog-content h4 {
  font-family: var(--font-malayalam-anek);
  font-weight: 300;
}

.thanking-modi img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 65px;
  margin-right: 0;
  object-fit: contain;
}

@media (max-width: 658px) {
  .content-row h4 {
    font-size: 12px;
  }
}
/*----------------------------- BANNER -----------------------------*/

/*----------------------------- SEARCH-BAR-2 -----------------------------*/
.search-bar-2 {
  display: flex;
  align-items: center;
  justify-content: end;
}

.search-wrapper-2 {
  display: flex;
  align-items: center;
  border: 1px solid var(--primary-color);
  border-radius: 999px;
  padding: 0 15px;
  height: var(--input-height, 48px);
  width: 280px;
  transition: border 0.3s ease;
}

.search-wrapper-2 input {
  border: none;
  background: transparent;
  color: var(--primary-color);
  font-size: 16px;
  font-style: italic;
  width: 100%;
  padding-left: 10px;
  outline: none;
}

.search-wrapper-2 input::placeholder {
  color: var(--primary-color);
}

.search-icon-2 {
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 18px;
  cursor: pointer;
}
/*----------------------------- SEARCH-BAR-2 -----------------------------*/

.blog-img-1 img {
  object-fit: cover;
}

.blog-img-1 h1 {
  font-family: var(--font-malayalam-anek);
  font-size: 3vw;
  font-weight: 600;
}

.blog-img-1 h4 {
  font-family: var(--font-malayalam-anek);
}

.btn-read {
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 16px;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  transition: 0.3s ease-out;
}

.btn-read:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/*------------------------- BLOGS-SLIDER -------------------------*/
.blog-heading h4 {
  font-weight: 400;
}

.custom-carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: transparent;
  border: 3px solid black;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.carousel-control-prev.custom-carousel-control {
  left: -10px;
}

.carousel-control-next.custom-carousel-control {
  right: -10px;
}

.custom-carousel-control i {
  font-size: 24px;
  font-weight: 600;
  color: black;
}

/*----- CARD-SLIDER -----*/
.card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-img-top-custom {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

@media (max-width: 768px) {
  .card-img-top-custom {
    height: 160px;
  }
}

@media (max-width: 576px) {
  .card-img-top-custom {
    height: 140px;
  }
}

/* Mobile/tablet: center CTA menu */
@media (max-width: 991.98px) {
  .cta-menu-wrapper {
    text-align: center;
    width: 100%;
    margin-top: 1rem; 
  }

  .cta-menu-wrapper .btn {
    display: inline-block;
  }
}


/* .card-content {
  font-family: var(--font-malayalam-anek);
} */

.card-content h4 {
  font-weight: 600;
}

.card-content .bi-share-fill {
  font-size: 25px;
}

/* FOGG-EFFECT */
.carousel-fog-overlay-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 100%;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0)
  );
  z-index: 9;
  pointer-events: none;
}

/*-------------------------------------------- PAGE-3 -- BLOG-DETAILS --------------------------------------------*/
/* Custom Styles  */
.font-ml-1 {
  font-family: var(--font-malayalam-anek);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-malayalam-anek);
}
.card {
  border-radius: 10px;
  overflow: hidden; /* ensures inner elements respect the rounded corners */
  font-family: var(--font-malayalam-anek);
}

.card-img-top {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.card-body {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}




.card {
  background-color: #e6e6e6 !important; /* replace with your desired color */
}

.card-contact {
  background-color: #db8feb !important; /* replace with your desired color */
}

.bg-white {
    background-color: #e6e6e6 !important;
}

body {
    margin: 0;
    font-family: var(--bs-font-sans-serif);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: rgb(80, 80, 80);
    background-color: #f1f0ed;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

.contact-page-card  {
  background-color:#662130;  /* contact page */
   color: rgb(185, 180, 180);
}



.text-dark {
    color: rgb(80, 80, 80) !important;   /* all pages */
    font-size: 1.125rem;
}


.wp-block-button__link {
    font-size: 1.125rem;
}


.wp-block-button.readmore-bt.is-style-outline.is-style-outline--1 {
    padding: 10px 40px; /* Adjust padding as needed */
}

.wp-block-button.has-custom-width.wp-block-button__width-25.is-style-fill {
    width: 200px;
    font-size: 1.125rem;
}


.large-image {
  height: 450px;
  object-fit: cover;
  width: 100%;
}


.page-id-1203 .entry-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
}

.menu-item {
  list-style: none;       /* no bullet/marker */
  padding-left: 0;        /* remove left padding */
  margin-left: 0;         /* remove left margin */
}

#breadcrumbs {
  font-size: 18px;
  color: rgb(80, 80, 80); /* light grey */
  margin: 20px 0 20px;
  /* padding: 10px 0px 0px 10px; */
}

#breadcrumbs a {
  color: #999;
  text-decoration: none;
}

#breadcrumbs a:hover {
  color: #555; /* darker grey on hover */
}

/* CSS for breadcrumbs */
.breadcrumbs-link {
    color: #999;
}

.breadcrumbs-link:hover {
    color: #555; /* Optional: color change on hover */
}

.breadcrumbs-active {
    color: #555555;
}


/* Bright color for breadcrumbs on the contact page */
.breadcrumbs-bright a {
    color: #dbd4d2; /* Bright color for links */
    text-decoration: none;
}

.breadcrumbs-bright .breadcrumbs-active {
    color: #dbd4d2; /* Bright color for active breadcrumb */
}

.breadcrumbs-bright .breadcrumbs-link {
    color: #c7c5c5; /* Bright color for "Home" link */
}






/* .profile-card {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 2rem auto 40px;
  max-width: 1200px;
} */


/* Each column acts like a card */
.profile-card .wp-block-column {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  text-align: center;
  flex: 1 1 250px;
  max-width: 250px;
}

/* Images inside cards */
.profile-card .wp-block-image img {
  border-radius: 12px 12px 0 0;
  width: 100%;         /* fill container width */
  height: 220px;       /* consistent height */
  object-fit: cover;   /* crop nicely */
  margin-bottom: 1rem;
  display: block;      /* remove inline gap */
}


.team-button{
font-size: 16px; /*Team button */
}

.wp-block-columns.is-layout-flex {
  margin: 30px auto 40px;
  justify-content: center;
  gap: 2rem; /* keep spacing uniform */
  /* padding-left: 80px; */
  /* padding-right: 20px; */
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .profile-card .wp-block-column {
    flex: 1 1 45%; /* 2 cards per row */
  }
}

@media (max-width: 600px) {
  .profile-card .wp-block-column {
    flex: 1 1 100%; /* single column */
  }
}

/*-------------------------------------------- PHOTO-GALLERY --------------------------------------------*/


.photo-card-body {
   background-color: #e6e6e6;
   padding: 20px;
}

/* Main gallery container */
.rl-gallery {
   display: flex;
   flex-wrap: wrap;
   gap: 15px; /* Adjust the gap between items */
   justify-content: space-between; /* Distribute items evenly across the container */
   padding: 20px 0;
}

/* Each gallery item */
.rl-gallery-item {
   flex: 0 1 23%; /* Set each item to take up 23% of the container's width */
   height: 200px; /* Fixed height for each image */
   overflow: hidden;
   border-radius: 10px;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
   transition: transform 0.35s ease, box-shadow 0.35s ease;
   position: relative;
}

/* Image styling */
.rl-gallery-item img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
   border-radius: 10px;
   transition: transform 0.4s ease;
}

/* Hover effects */
.rl-gallery-item:hover {
   transform: translateY(-6px);
   box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.rl-gallery-item:hover img {
   transform: scale(1.08);
}

.rl-gallery::after {
   content: none !important;  /* Remove the content from the ::after pseudo-element */
   display: none !important;  /* Ensure it does not affect the layout */
}

/* Responsive adjustments */

/* For screens larger than 1024px, 4 items per row */
@media (min-width: 1025px) {
   .rl-gallery-item {
      flex: 0 1 23%; /* 4 items per row */
   }
}

/* For tablets (1024px and below), 2 items per row */
@media (max-width: 1024px) {
   .rl-gallery-item {
      flex: 0 1 48%; /* 2 items per row */
      height: 200px; /* Keep the height consistent */
   }
}

/* For mobile devices (768px and below), 2 items per row */
@media (max-width: 768px) {
   .rl-gallery-item {
      flex: 0 1 48%; /* 2 items per row */
      height: 160px; /* Slightly smaller height for mobile */
   }
}

/* For smaller mobile devices (480px and below), 1 item per row */
@media (max-width: 480px) {
   .rl-gallery-item {
      flex: 0 1 100%; /* 1 item per row */
      height: 150px; /* Smallest height for mobile */
   }
}




/*-------------------------------------------- Karyakartha-Corner --------------------------------------------*/


.full-width-card-container {
  display: block;
  max-width: var(--max-width); /* same width as .custom-grid */
  margin: var(--gap) auto;     /* same top/bottom spacing */
  padding: 0;                  /* align perfectly with other cards */
  box-sizing: border-box;
  /* justify-content: center;
  align-items: center; */
}

.full-width-card {
  width: 100%;
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden; /* ensures clean edges */
}

.full-width-card .media {
  /* width: 100%;
  height: auto; */
  display: block;
  border-radius: 12px;
}

/* .arrow-icon {
  position: absolute;
  bottom: 25px;
  right: 25px;
  width: 40px;
  height: auto;
} */




/* ------------------------------
   Login Page Styling
--------------------------------*/

.login-wrapper {
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f1f0ed;
  padding: 50px 15px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 12px;
  padding: 35px 30px;
  transition: all 0.3s ease;
}

.login-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.login-card h4 {
  font-weight: 600;
  color: #7a0000; 
}

.btn-login {
  background-color: #7b0000;
  color: #f1f1f1;
  font-weight: 500;
  border-radius: 24px;
  padding: 10px 30px;
  transition: 0.3s ease;
  display: block;
  margin: 0 auto; /* centers the button */
  width: auto; /* makes it adjust to content */
  min-width: 120px; /* optional: gives a nice width */
  text-align: center;
}


.login-btn{
    width: 50% !important;
    justify-content: center;
}

.btn-login:hover {
  background-color: #5a0000;
  color: #757575;
}

.form-control {
  border-radius: 18px;
  border: 1px solid #ccc;
  padding: 10px 12px;
  transition: border-color 0.3s;
  font-size: 12px;
}

.form-control:focus {
  border-color: #7b0000;
  box-shadow: 0 0 5px rgba(123,0,0,0.3);
}



/* -----------------------------------
   Styled Bootstrap Dropdown Form
------------------------------------*/

.filter-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 75vh;
  background: #f1f0ed;
  padding: 20px;
}

#person-filter-form {
  max-width: 420px;
  width: 100%;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 60px;

}

.form-select:focus {
  border-color: #5a0000;
  box-shadow: 0 0 4px rgba(90, 0, 0, 0.3);
}

.btn-maroon {
  background-color: #5a0000;
  color: #fff;
  transition: all 0.3s ease;
}

.btn-maroon:hover {
  background-color: #7a0000;
  transform: translateY(-1px);
}

#person-filter-form .form-title {
  color: #7a0000;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 600px) {
  #person-filter-form {
    padding: 25px 20px;
  }
}

/* Select2 identical to .form-select */
.select2-container--default .select2-selection--single {
  background-color: #fff;
  border: 1px solid #ccc !important;
  border-radius: 24px !important;
  padding: 10px 15px !important;
  font-size: 15px !important;
  color: #333 !important;
  box-shadow: none !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/*Focus or open state (same as .form-select:focus) */
.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #5a0000 !important;
  box-shadow: 0 0 4px rgba(90, 0, 0, 0.3) !important;
  outline: none !important;
}

/* Text inside the box */
.select2-selection__rendered {
  color: #333 !important;
  line-height: normal !important;
  padding-left: 0 !important;
}

/* Arrow (caret) alignment */
.select2-selection__arrow {
  height: 100% !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* Dropdown panel styling */
.select2-dropdown {
  border: 1px solid #ccc !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1) !important;
}

/* ✨ Options inside dropdown */
.select2-results__option {
  padding: 8px 12px !important;
  font-size: 15px !important;
  color: #333 !important;
}

/*Highlighted (hovered or selected) option */
.select2-results__option--highlighted {
  background-color: #5a0000 !important;
  color: #fff !important;
}

/*Search box inside dropdown — underline style only */
.select2-search--dropdown .select2-search__field {
  border: none !important;                /* remove full border */
  border-bottom: 1px solid #ccc !important; /* only bottom line */
  border-radius: 0 !important;             /* remove rounded corners */
  background: transparent !important;      /* no background box */
  padding: 6px 0 !important;               /* minimal padding */
  outline: none !important;                /* no default outline */
  width: 100% !important;                  /* full width */
  font-size: 15px !important;
  color: #333 !important;
  transition: border-color 0.3s ease !important;
}

/*Focus effect — maroon underline when active */
.select2-search--dropdown .select2-search__field:focus {
  border-bottom: 1px solid #5a0000 !important;
  box-shadow: none !important; /* no glow */
}

/* ============================================
   🔹 Grid for page-choose-action.php only
   ============================================ */

.choose-grid {
  display: flex;
  justify-content: center;  /* centers horizontally */
  align-items: center;
  flex-wrap: wrap;           /* responsive stacking */
  gap: 30px;                 /* space between boxes */
  margin: 60px auto;
  text-align: center;
}

/* Optional: control box size */
.choose-grid .box {
  width: 340px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.choose-grid .box:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive tweak */
@media (max-width: 100px) {
  .choose-grid {
    flex-direction: column;
  }
}



/* mission-2025 */

.mission-card {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
  font-size: 15px;
  margin-bottom: 40px;
}

@media (max-width: 100px) {
  .mission-card {
    max-width: 95%;
  }
}

#mission-2025-form {
  max-width: 400px; /* Decreased width */
  margin: 0 auto; /* Center the form */
  padding: 20px; /* Add padding around the form */
}

#mission-2025-form .form-control {
  padding: 10px; /* Add padding inside the input fields */
  border-radius: 8px; /* Round corners for a smooth look */
  font-size: 15px; /* Same font size for input text */
}


#mission-2025-form .form-label {
  font-weight: 600; /* Bold label text */
  margin-bottom: 10px; /* Add spacing between label and input */
}

.mission-title {
  color: #7b0000;
}

/* +91 inside input styling */
.position-relative {
  position: relative;
}

.inside-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #212529;
  font-weight: 400;
  font-size: 15px;
  pointer-events: none;
}

.contact-input {
  padding-left: 45px !important; /* creates space for +91 */
  border-radius: 8px;
  height: 45px;
  font-size: 15px;
}

/* Match placeholder font size to text font size */
.form-control::placeholder {
  font-size: 15px;
  color: #999;
}

/* Focus style */
.contact-input:focus,
.form-control:focus {
  border-color: #7b0000;
  box-shadow: 0 0 4px rgba(123, 0, 0, 0.3);
  outline: none;
}


.btn-primary-submit{
  background-color: #7b0000;
  color: #f1f1f1;
  font-weight: 500;
  border-radius: 24px;
  padding: 10px 30px;
  transition: 0.3s ease;
  display: block;
  margin: 0 auto; /* centers the button */
  width: auto; /* makes it adjust to content */
  min-width: 120px; /* optional: gives a nice width */
  text-align: center;
}

.btn-primary-submit:hover {
  background-color: #5a0000;
  color: #757575;
}


.success-message {
  font-size: 14px;
  padding: 10px;
  margin: 20px auto; /* centers it horizontally */
  text-align: center; /* centers text inside */
  width: fit-content; /* adjusts width to content */
  display: block;
}


/* Toast container wrapper (just above card) */
.mission-toast-wrapper {
  text-align: center;
  margin-bottom: 12px;
}

/* Success toast */
.mission-toast {
  background: linear-gradient(to right, #4CAF50, #81C784) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 12px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 12px 20px !important;
  font-size: 15px;
  letter-spacing: 0.3px;
}

/* Error toast */
.mission-toast-error {
  background: linear-gradient(to right, #b71c1c, #e53935) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  padding: 12px 20px !important;
  font-size: 15px;
  letter-spacing: 0.3px;
}

/* Toast animation */
.toastify {
  animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/*  Red border highlight */
.input-error {
  border: 2px solid rgb(148, 58, 58) !important;
  box-shadow: 0 0 4px rgba(209, 68, 68, 0.4);
}


/* Make Toastify close 'X' button white */
.toast-close {
  color: #fff !important;
  opacity: 2 !important;
}

/* Optional: make it slightly larger and bolder for better visibility */
.toast-close:hover {
  opacity: 0.8 !important;
  transform: scale(1.1);
}


.mission-toast-error {
  background: #be0d0d !important; /* Darker red */
  color: #ffffff !important;
}


/* Mission details container - center and control width */
.mission-details-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 2rem;
}

/* Mission card width control */
.mission-card {
    width: 90%;            
    max-width: 420px;     
}

/* Card body styling */
.mission-card-body {
    text-align: center;
    padding: 35px 40px;    /* Increase internal spacing */
    background-color: #e6e6e6;
    border-radius: 10px;
}



