@keyframes marquee {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

@font-face {
  font-family: "poppins-regular";
  src: url("../fonts/Poppins/Poppins-Regular.ttf") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

.animate-marquee {
  animation: marquee 18s linear infinite;
}

.bg-maroon {
  background-color: #7f2730;
}

/* Unique Marquee Container */
.dws-marquee {
  height: 100px;
  background-color: #7f2730;
  /* Maroon color */
  font-family: "Poppins", sans-serif;
}

/* Text Styling */
.dws-marquee-text {
  color: white;
  font-weight: 700;
  font-size: 2rem;
  /* Adjust for size */
  animation: dws-scroll 18s linear infinite;
}

/* Keyframes for marquee animation */
@keyframes dws-scroll {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Pause on hover */
.dws-marquee:hover .dws-marquee-text {
  animation-play-state: paused;
}

/* Container */
.dws-marquee {
  height: 100px;
  background-color: #7f2730;
  /* Maroon */
  font-family: "Poppins-regular", sans-serif;
  color: #fff;
  font-weight: 700;
  font-size: 2rem;
  margin-top: 47px;
}

/* Scrolling track */
.dws-marquee-track {
  display: flex;
  animation: dws-scroll 25s linear infinite;
  margin-top: 23px;
}

/* Prevent wrapping */
.dws-marquee-text {
  white-space: nowrap;
}

/* Keyframes for continuous scroll */
@keyframes dws-scroll {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Pause on hover */
.dws-marquee:hover .dws-marquee-track {
  animation-play-state: paused;
  margin-top: 23px;
}

/* =========================
   DWS UNIQUE IMAGE BOX GRID
   Prefix: dws-
   ========================= */

/* variables (easy to tweak) */
:root {
  --dws-maroon: #7f2730;
  --dws-overlay-gradient: linear-gradient(
    to top,
    rgba(15, 15, 15, 0.78),
    rgba(15, 15, 15, 0.18)
  );
  --dws-white: #ffffff;
  --dws-radius: 12px;
  --dws-gap: 24px;
  --dws-card-height: 340px;
  /* desktop card height */
  --dws-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}

/* container grid */
.dws-cards {
  display: grid;
  gap: var(--dws-gap);
  grid-template-columns: repeat(3, 1fr);
  /* 3 columns desktop */
  align-items: stretch;
  margin: 0 auto;
}

/* responsive columns */
@media (max-width: 1100px) {
  .dws-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .dws-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* each card */
.dws-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--dws-radius);
  height: var(--dws-card-height);
  background: #f3f3f3;
  box-shadow: 0 8px 20px rgba(11, 18, 25, 0.06);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.35s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  /* to allow content centering if needed */
  flex-direction: column;
}

/* image fills card */
.dws-card img.dws-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: transform;
}

/* subtle lift on hover/focus */
.dws-card:hover,
.dws-card:focus-within,
.dws-card:active {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(11, 18, 25, 0.12);
}

/* zoom image on interaction */
.dws-card:hover img.dws-card-img,
.dws-card:focus-within img.dws-card-img {
  transform: scale(1.08);
}

/* bottom overlay for title + optional text */
.dws-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px;
  background: var(--dws-overlay-gradient);
  color: var(--dws-white);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(2px);
}

/* title styles (centered, bottom) */
.dws-card-title {
  font-family: var(--dws-font);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.2px;
  color: var(--dws-white);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* optional description (smaller) */
.dws-card-desc {
  font-family: var(--dws-font);
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  max-width: 92%;
}

/* read more link (optional) */
.dws-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--dws-white);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s;
  font-size: 0.85rem;
}

.dws-card-link:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

/* keyboard focus for accessibility */
.dws-card:focus-within {
  outline: 3px solid rgba(127, 39, 48, 0.14);
  outline-offset: 6px;
}

/* ensure overlay text centers on small screens */
@media (max-width: 420px) {
  .dws-card-overlay {
    padding: 14px;
  }

  .dws-card-title {
    font-size: 1rem;
  }

  .dws-card-desc {
    font-size: 0.78rem;
  }

  :root {
    --dws-card-height: 210px;
  }
}

/* utility to force a card to show heading inside image bottom center only */
.dws-card--title-only .dws-card-desc,
.dws-card--title-only .dws-card-link {
  display: none;
}

/* optional variant: outline style */
.dws-card.outline {
  background: transparent;
  box-shadow: none;
  border: 1px solid rgba(10, 10, 10, 0.04);
}

/* keep layout consistent if images missing (fallback) */
.dws-card .dws-card-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-family: var(--dws-font);
  padding: 16px;
  text-align: center;
}

/* === Delhi World School Color Palette === */

/* Primary Colors */
.dws-font-green {
  color: #0f4221;
  /* Dark Green */
}

.dws-font-maroon {
  color: #7b1315;
  /* Deep Maroon */
}

.dws-font-white {
  color: #ffffff;
  /* White */
}

/* Secondary Colors */
.dws-font-orange {
  color: #f79320;
  /* Bright Orange */
}

.dws-font-red {
  color: #bd202e;
  /* Bold Red */
}

.dws-font-blue {
  color: #174a97;
  /* Deep Blue */
}

/* Optional Background Versions */
.bg-dws-green {
  background-color: #0f4221;
  color: #fff;
}

.bg-dws-maroon {
  background-color: #7b1315;
  color: #fff;
}

.bg-dws-white {
  background-color: #ffffff;
  color: #0f4221;
}

.bg-dws-orange {
  background-color: #f79320;
  color: #fff;
}

.bg-dws-red {
  background-color: #bd202e;
  color: #fff;
}

.bg-dws-blue {
  background-color: #174a97;
  color: #fff;
}

/* Light Gray */
.dws-font-lightgray {
  color: #d3d3d3;
}

.bg-dws-lightgray {
  background-color: #d3d3d3;
}

/* =========================
   Branch Modal Styling
   ========================= */

.branches-modal {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  max-width: 600px;
  margin: 2% auto;
  padding: 30px;
  animation: slideIn 0.5s ease;
  border-top: 6px solid #7b1315;
  /* Maroon accent top border */
}

.branches-modal h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  color: #0f4221;
  /* Dark Green */
  text-align: center;
  border-bottom: 2px solid #f79320;
  /* Orange underline */
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* Branch List Layout */
.branches-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.branches-list li {
  position: relative;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.branches-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 16px 18px;
  font-family: "poppins-regular", sans-serif;
  transition: all 0.3s ease;
  font-size: 18px;
}

/* Icon */
.branches-list li i {
  color: #7b1315;
  /* Maroon icon */
  transition: transform 0.3s ease, color 0.3s ease;
  font-size: 1.2rem;
}

/* Hover Effects */
.branches-list li:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, #7b1315 0%, #0f4221 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.branches-list li:hover a {
  color: #fff;
}

.branches-list li:hover i {
  transform: scale(1.3);
  color: #f79320;
  /* Orange accent */
}

/* Subtle animation */
@keyframes slideIn {
  from {
    transform: translateY(40px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 576px) {
  .branches-modal {
    margin: 20px;
    padding: 20px;
  }

  .branches-list {
    grid-template-columns: 1fr;
  }

  .branches-list li {
    font-size: 0.95rem;
  }
}

/* ------------------------------
   Book Tour — match Branch styling
   ------------------------------ */

/* Apply the same glass card look to the inner container */
#bookTour > .container {
  /* make inline bg-white blend with new design */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  max-width: 820px;
  /* preserve your width */
  margin: 2% auto;
  padding: 28px;
  position: relative;
  border-top: 6px solid #7b1315;
  /* maroon top border like branches */
}

/* Time slot chips container */
#timeSlots {
  margin-top: 6px;
}

/* Time-slot chip style */
.time-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #eee;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.18s ease;
  font-weight: 600;
  color: #0f4221;
  font-size: 0.92rem;
}

/* Hover / focus for chips */
.time-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* Selected chip state */
.time-chip.selected {
  background: linear-gradient(90deg, #7b1315 0%, #0f4221 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #bookTour > .container {
    padding: 18px;
    margin: 10px;
  }

  #bookTourForm .btn-success {
    width: 100%;
  }

  #timeSlots {
    gap: 8px;
  }
}

/* Small utility: invalid state */
#bookTourForm .is-invalid {
  border-color: #bd202e !important;
  box-shadow: 0 3px 10px rgba(189, 32, 46, 0.08);
}

#bookTourForm .invalid-feedback {
  color: #bd202e;
}

/* =========================
   Login modal — match DWS style
   ========================= */

.dws-login .modal-content {
  border-radius: 16px;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  border-top: 6px solid #7b1315;
  /* maroon accent */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.96);
}

/* Header */
.dws-login .modal-header {
  background: transparent;
  border-bottom: none;
  padding: 18px 24px;
}

.dws-login .modal-title {
  font-weight: 700;
  color: #0f4221;
  /* dark green */
  letter-spacing: 0.2px;
}

/* Close button */
.dws-login .btn-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  opacity: 0.9;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.dws-login .btn-close:hover {
  transform: scale(1.04);
  opacity: 1;
}

/* Modal body layout: keep the image left and form right */
.dws-login .modal-body {
  padding: 0;
}

.dws-login .col-md-6 img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(0.98);
}

/* Form panel */
.dws-login .col-md-6.p-4 {
  padding: 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.96)
  );
}

/* Form labels */
.dws-login .form-label {
  font-weight: 600;
  color: #174a97;
  /* deep blue for labels */
  font-size: 0.95rem;
}

/* Inputs */
.dws-login .form-control {
  border-radius: 10px;
  border: 1px solid #e7e7e7;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02);
  transition: all 0.18s ease;
  font-family: "Poppins", sans-serif;
}

/* Focus state */
.dws-login .form-control:focus {
  outline: none;
  border-color: #7b1315;
  box-shadow: 0 6px 20px rgba(123, 19, 21, 0.08);
}

/* Login button: maroon gradient like book tour */
.dws-login .btn-success,
.dws-login #loginBtn {
  background: linear-gradient(90deg, #7b1315 0%, #bd202e 100%);
  border: none;
  color: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(123, 19, 21, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dws-login .btn-success:hover,
.dws-login #loginBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(123, 19, 21, 0.22);
}

/* Reduce vertical spacing on smaller viewports */
@media (max-width: 768px) {
  .dws-login .modal-dialog {
    max-width: 720px;
  }

  .dws-login .col-md-6.d-none.d-md-block {
    display: none !important;
  }

  /* hide image on small */
  .dws-login .col-md-6.p-4 {
    padding: 20px;
  }
}

/* Mobile modal full width */
@media (max-width: 576px) {
  .dws-login .modal-dialog {
    margin: 10px;
  }

  .dws-login .btn-success {
    width: 100%;
  }
}

/* Optional: subtle heading underline (use if you want) */
/* .dws-login .modal-title::after {
            content: "";
            display: block;
            height: 3px;
            width: 56px;
            margin-top: 8px;
            background: linear-gradient(90deg, #f79320, #7b1315);
            border-radius: 2px;
        } */

/* Make the login modal consistent with overlay-open darkening */
.overlay-open body::before {
  content: "";
  position: fixed;
  inset: 0;

  z-index: 995;
  pointer-events: none;
}

.dws-login {
  z-index: 9999;
}

.modal-content {
  border-radius: 0 !important;
}

.modal-header {
  border-radius: 0 !important;
}

.modal-content.glass-effect .form-control {
  border-radius: 0 !important;
}

.modal-content.glass-effect .btn {
  border-radius: 0 !important;
}

.modal-content.glass-effect .form-select {
  border-radius: 0 !important;
}

::placeholder {
  color: rgba(160, 160, 160, 0.6) !important;
  /* light white tone */
  font-weight: 400;
}

/* === Glass Effect Modal Style === */
.glass-effect {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);

  overflow: hidden;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  color: #fff;
  background-image: url("../assets/img/modal-bg.jpg");
  /* ✅ Replace with your background image path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Form styling */
.glass-effect .form-control,
.glass-effect .form-select {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  color: #4b4b4b;
  transition: 0.3s;
}

.glass-effect .form-control:focus,
.glass-effect .form-select:focus {
  border-color: #7b1315;
  box-shadow: 0 0 8px rgba(123, 19, 21, 0.4);
}

/* Modal Header */
.glass-effect .modal-header {
  background: rgba(255, 255, 255, 0.8);
  border-bottom: none;
}

/* Button Hover */
.glass-effect .btn:hover {
  transform: scale(1.03);
  transition: all 0.3s ease;
}

/* Base select styling */
.custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
  padding: 10px 40px 10px 12px;
  font-size: 15px;
  line-height: 1.5;
  border-radius: 0;
  /* no curve */
  width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230f4221' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  cursor: pointer;
}

/* Focus effect */
.custom-select:focus {
  border-color: #0f4221;
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 66, 33, 0.25);
}

.modal-title.dws-font-green {
  font-family: "Poppins-medium", sans-serif;
}

/* Fullscreen Overlay */
#preloader {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(15, 20, 15, 0.75);
  backdrop-filter: blur(10px);
  z-index: 9999;
  transition: opacity 0.6s ease;
}

/* Circle Container */
.preloader-circle {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 40px rgba(30, 128, 64, 0.3);
}

/* Spinner Ring */
.spinner-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #1e8040;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

/* Centered Logo */
.preloader-logo img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  animation: zoomPulse 2.5s ease-in-out infinite;
  box-shadow: 0 0 25px rgba(30, 128, 64, 0.4);
  display: block;
  margin: auto;
}

/* Zoom Animation */
@keyframes zoomPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(30, 128, 64, 0.8));
  }
}

/* Spinner Rotation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
