/* ===== CSS Variables ===== */
:root {
  --brown: #E1A0A4;
  --brown-dark: #4A4163;
  --brown-light: #8577A6;
  --white: #FFFFFF;
  --off-white: #F8F5FA;
  --light-blue: #695E89;
  --light-blue-dark: #D4868B;
  --text-dark: #2C2339;
  --text-muted: #6C757D;
  --shadow: 0 4px 15px rgba(225, 160, 164, 0.15);
  --shadow-lg: 0 10px 30px rgba(225, 160, 164, 0.2);
  --transition: all 0.3s ease;
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--off-white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: var(--brown-dark);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--brown);
  display: inline-block;
  position: relative;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--brown), var(--light-blue));
  border-radius: 2px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 10px;
}

/* ===== Navbar ===== */
.navbar {
  background-color: var(--brown) !important;
  padding: 12px 0;
  box-shadow: var(--shadow);
  z-index: 1050;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white) !important;
  font-weight: 700;
  font-size: 1.3rem;
}

.navbar-brand .logo-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 8px 16px !important;
  border-radius: 5px;
  transition: var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--white) !important;
  background-color: rgba(255, 255, 255, 0.15);
}

.navbar .admin-link {
  background-color: var(--light-blue);
  color: var(--off-white) !important;
  border-radius: 50px;
  padding: 6px 15px !important;
  font-weight: 600;
}

.navbar .admin-link:hover {
  background-color: var(--light-blue-dark);
  transform: scale(1.05);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Hero Section ===== */
.hero-section {
  background: linear-gradient(135deg, rgba(225, 160, 164, 0.9), rgba(74, 65, 99, 0.85)),
              url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?w=1600') center/cover no-repeat;
  min-height: 90vh;
  display: flex;
  align-items: center;
  text-align: left;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(105, 94, 137, 0.1);
  border-radius: 50%;
}

.hero-section h1 {
  font-size: 3.5rem;
  color: var(--white);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-section h1 span {
  color: var(--light-blue);
}

.hero-section p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.8;
}

/* ===== Buttons ===== */
.btn-primary-custom {
  background-color: var(--brown);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(225, 160, 164, 0.3);
}

.btn-primary-custom:hover {
  background-color: var(--brown-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 160, 164, 0.4);
}

.btn-accent-custom {
  background-color: var(--light-blue);
  color: var(--off-white);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-accent-custom:hover {
  background-color: var(--light-blue-dark);
  color: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(105, 94, 137, 0.4);
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline-custom:hover {
  background-color: var(--white);
  color: var(--brown);
  transform: translateY(-2px);
}

/* ===== Cards ===== */
.custom-card {
  background: var(--white);
  border: none;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
}

.custom-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.custom-card .card-body {
  padding: 30px;
}

.custom-card .card-icon {
  width: 70px;
  height: 70px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

.icon-brown {
  background-color: rgba(225, 160, 164, 0.1);
  color: var(--brown);
}

.icon-blue {
  background-color: rgba(105, 94, 137, 0.3);
  color: var(--brown-dark);
}

/* ===== Swinging Watch Countdown ===== */
.watch-track {
  width: 100%;
  overflow: visible;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0;
  background: transparent;
  position: relative;
  z-index: 1040;
  height: 0;
}

.watch-swing {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: swingWatch 6s ease-in-out infinite;
  transform-origin: top center;
  margin-right: 40px;
  position: relative;
  top: 0;
}

@keyframes swingWatch {
  0%   { transform: rotate(-5deg); }
  50%  { transform: rotate(5deg); }
  100% { transform: rotate(-5deg); }
}

/* Straps */
.watch-strap-top,
.watch-strap-bottom {
  width: 48px;
  background: var(--brown);
  border-radius: 6px;
}

.watch-strap-top {
  height: 24px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--brown-dark), var(--brown));
}

.watch-strap-bottom {
  height: 30px;
  border-radius: 2px 2px 10px 10px;
  background: linear-gradient(180deg, var(--brown), var(--brown-dark));
}

/* Watch face */
.watch-face {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8f5fa, #fff);
  box-shadow:
    0 0 0 5px var(--brown),
    0 0 0 9px var(--brown-light),
    0 4px 15px rgba(0,0,0,0.25),
    inset 0 2px 6px rgba(225,160,164,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.watch-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

/* Crown (knob) on the right */
.watch-crown {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 22px;
  background: var(--brown);
  border-radius: 0 4px 4px 0;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Event name */
.watch-event-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  max-width: 140px;
  text-align: center;
  line-height: 1.15;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Digits row */
.watch-digits {
  display: flex;
  align-items: center;
  gap: 4px;
}

.watch-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.watch-num {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brown-dark);
  letter-spacing: -0.5px;
}

.watch-lbl {
  font-size: 0.55rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.watch-sep {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brown-light);
  margin-top: -6px;
  animation: blinkSep 1s step-end infinite;
}

@keyframes blinkSep {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* Date line */
.watch-event-date {
  font-size: 0.55rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 1px;
}

/* Tick marks around the watch face */
.watch-face::before {
  content: '';
  position: absolute;
  width: 164px;
  height: 164px;
  border-radius: 50%;
  border: 1px dashed rgba(225,160,164,0.15);
}

/* Dark mode */
body.dark-mode .watch-track {
  background: #1a1a2e;
}

body.dark-mode .watch-face {
  background: linear-gradient(135deg, #16213e, #1a1a2e);
  box-shadow:
    0 0 0 4px var(--light-blue),
    0 0 0 7px rgba(105,94,137,0.3),
    0 4px 15px rgba(0,0,0,0.4),
    inset 0 2px 6px rgba(105,94,137,0.1);
}

body.dark-mode .watch-num {
  color: var(--light-blue);
}

body.dark-mode .watch-event-name {
  color: var(--light-blue);
}

body.dark-mode .watch-sep {
  color: rgba(105,94,137,0.5);
}

body.dark-mode .watch-crown {
  background: var(--light-blue);
}

body.dark-mode .watch-strap-top,
body.dark-mode .watch-strap-bottom {
  background: var(--light-blue-dark);
}

body.dark-mode .watch-face::before {
  border-color: rgba(105,94,137,0.15);
}

@media (max-width: 768px) {
  .watch-track {
    overflow: visible;
    justify-content: flex-end;
    align-items: flex-start;
    height: 0;
    padding: 0;
    background: transparent;
  }
  .watch-swing {
    animation: swingWatch 6s ease-in-out infinite;
    margin-right: 10px;
  }
  .watch-face {
    width: 80px;
    height: 80px;
  }
  .watch-num {
    font-size: 0.7rem;
  }
  .watch-strap-top,
  .watch-strap-bottom {
    width: 24px;
  }
  .watch-strap-top {
    height: 14px;
  }
  .watch-strap-bottom {
    height: 18px;
  }
  .watch-crown {
    right: -6px;
    width: 6px;
    height: 12px;
  }
  .watch-event-name {
    font-size: 0.35rem;
    max-width: 65px;
  }
  .watch-digits {
    gap: 1px;
  }
  .watch-lbl {
    font-size: 0.3rem;
  }
  .watch-sep {
    font-size: 0.65rem;
  }
  .watch-event-date {
    font-size: 0.3rem;
  }
  .watch-face::before {
    width: 72px;
    height: 72px;
  }
  @keyframes swingWatch {
    0%   { transform: rotate(-3deg); }
    50%  { transform: rotate(3deg); }
    100% { transform: rotate(-3deg); }
  }
}

/* ===== Highlights Section ===== */
.highlights-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(225, 160, 164, 0.9), rgba(74, 65, 99, 0.85));
}

.highlights-section h2 {
  color: var(--white);
}
  
.highlights-section p {
  color: var(--off-white)
}

/* ===== Quick Links ===== */
.quick-links {
  padding: 60px 0;
  background: var(--off-white);
}

.quick-link-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  color: var(--text-dark);
  margin-bottom: 15px;
}

.quick-link-item:hover {
  transform: translateX(8px);
  background: var(--brown);
  color: var(--white);
}

.quick-link-item:hover .ql-icon {
  background: var(--light-blue);
  color: var(--brown-dark);
}

.quick-link-item .ql-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  background: rgba(225, 160, 164, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--brown);
  transition: var(--transition);
}

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, rgba(225, 160, 164, 0.92), rgba(74, 65, 99, 0.88)),
              url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?w=1600') center/cover no-repeat;
  padding: 120px 0 60px;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.page-header p {
  opacity: 0.85;
  font-size: 1.1rem;
}

.breadcrumb-custom {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  font-size: 0.95rem;
}

.breadcrumb-custom a {
  color: var(--light-blue);
}

.breadcrumb-custom span {
  opacity: 0.7;
}

/* ===== Portal Section ===== */
.portal-cards {
  padding: 80px 0;
}

.portal-card {
  text-align: center;
  padding: 50px 30px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.portal-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.portal-card .portal-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.portal-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.portal-card p {
  color: var(--text-muted);
}

/* ===== Result Checker ===== */
.result-checker {
  padding: 60px 0;
  background: var(--white);
}

.result-form {
  max-width: 500px;
  margin: 0 auto;
  background: var(--off-white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.result-display {
  margin-top: 30px;
  padding: 30px;
  background: var(--off-white);
  border-radius: 15px;
  display: none;
}

.result-display.show {
  display: block;
}

/* ===== Admission Section ===== */
.admission-steps {
  padding: 60px 0;
}

.step-card {
  text-align: center;
  padding: 30px 20px;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

/* ===== About Section ===== */
.mission-vision {
  padding: 60px 0;
}

.mv-card {
  padding: 40px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
  height: 100%;
}

.mv-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.anthem-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--brown), var(--brown-dark));
  color: var(--white);
}

.anthem-section h2 {
  color: var(--white);
}

.anthem-section h2::after {
  background: linear-gradient(90deg, var(--light-blue), var(--white));
}

.anthem-text {
  font-style: italic;
  line-height: 2;
  font-size: 1.1rem;
  white-space: pre-line;
}

.gallery-section {
  padding: 60px 0;
}

.gallery-carousel {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.gallery-carousel .carousel-item {
  height: 450px;
  background: #000;
}

.gallery-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-carousel .carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 10px 20px;
  bottom: 20px;
}

.gallery-carousel .carousel-caption h5 {
  color: var(--white);
  margin: 0;
  font-size: 1.1rem;
}

/* Carousel nav hover preview */
.gallery-carousel .carousel-control-prev,
.gallery-carousel .carousel-control-next {
  width: 12%;
  opacity: 0.7;
}
.gallery-carousel .nav-preview {
  position: absolute;
  bottom: 10px;
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.8);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  transform: scale(0.85);
}
.gallery-carousel .carousel-control-prev .nav-preview {
  left: 10px;
}
.gallery-carousel .carousel-control-next .nav-preview {
  right: 10px;
}
.gallery-carousel .carousel-control-prev:hover .nav-preview,
.gallery-carousel .carousel-control-next:hover .nav-preview {
  opacity: 1;
  transform: scale(1);
}
@media (max-width: 768px) {
  .gallery-carousel .nav-preview {
    width: 50px;
    height: 36px;
  }
}

@media (max-width: 768px) {
  .gallery-carousel .carousel-item {
    height: 250px;
  }
}

.gallery-img {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 250px;
  background: #000;
}

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.gallery-img:hover img {
  transform: scale(1.05);
}

/* ===== YouTube Video Section ===== */
.video-section {
  padding: 60px 0;
  background: var(--off-white);
}

/* Main video player wrapper - 16:9 responsive */
.video-main-player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}

.video-main-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Currently playing video info */
.video-now-playing {
  padding: 15px 0;
}

.video-now-playing h5 {
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 5px;
}

.video-now-playing p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Thumbnail playlist strip */
.video-thumbnails {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 10px 0 15px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep scroll */
.video-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.video-thumbnails::-webkit-scrollbar-thumb {
  background: var(--brown);
  border-radius: 3px;
}

/* Individual thumbnail card */
.video-thumb {
  flex: 0 0 200px;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: var(--white);
  border: 3px solid transparent;
}

.video-thumb:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.video-thumb.active {
  border-color: var(--brown);
}

.video-thumb img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  display: block;
}

.video-thumb .thumb-info {
  padding: 8px 10px;
}

.video-thumb .thumb-info h6 {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0;
  color: var(--brown-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Subscribe button styling */
.yt-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FF0000;
  color: #fff;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  font-size: 0.95rem;
}

.yt-subscribe-btn:hover {
  background: #cc0000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.yt-subscribe-btn i {
  font-size: 1.2rem;
}

/* No videos message */
.no-videos-msg {
  text-align: center;
  color: var(--text-secondary);
  padding: 40px 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-thumb {
    flex: 0 0 160px;
  }
  .video-thumb img {
    height: 90px;
  }
  .video-section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .video-thumb {
    flex: 0 0 140px;
  }
  .video-thumb img {
    height: 78px;
  }
}

/* ===== Contact Section ===== */
.contact-info-section {
  padding: 80px 0;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.contact-card .c-icon {
  width: 55px;
  height: 55px;
  min-width: 55px;
  border-radius: 12px;
  background: rgba(225, 160, 164, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--brown);
}

.contact-card h5 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.contact-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* ===== Forms ===== */
.form-control-custom {
  border: 2px solid #DDD5E8;
  border-radius: 10px;
  padding: 12px 18px;
  transition: var(--transition);
  background: var(--white);
}

.form-control-custom:focus {
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(225, 160, 164, 0.15);
}

.form-label-custom {
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 6px;
}

/* ===== Admin Section ===== */
.admin-dashboard {
  padding: 30px 0;
  min-height: 100vh;
  background: var(--off-white);
}

.dashboard-sidebar {
  background: var(--brown);
  border-radius: 15px;
  padding: 30px 20px;
  color: var(--white);
  height: fit-content;
  position: sticky;
  top: 80px;
}

.dashboard-sidebar a {
  display: block;
  padding: 12px 15px;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  margin-bottom: 5px;
  transition: var(--transition);
}

.dashboard-sidebar a:hover,
.dashboard-sidebar a.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.dashboard-card {
  background: var(--white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 25px;
}

.dashboard-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--off-white);
}

.stat-card {
  background: var(--white);
  border-radius: 15px;
  padding: 25px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card .stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 15px;
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brown);
}

/* ===== Events Section ===== */
.events-section {
  padding: 80px 0;
}

.event-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 25px;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.event-date-badge {
  background: var(--brown);
  color: var(--white);
  text-align: center;
  padding: 15px;
  min-width: 90px;
}

.event-date-badge .day {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.event-date-badge .month {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-countdown {
  display: inline-flex;
  gap: 10px;
  margin-top: 10px;
}

.event-countdown .cd-item {
  background: rgba(225, 160, 164, 0.08);
  padding: 5px 10px;
  border-radius: 8px;
  text-align: center;
  min-width: 45px;
}

.event-countdown .cd-item .cd-num {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brown);
}

.event-countdown .cd-item .cd-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===== Tables ===== */
.table-custom {
  border-radius: 10px;
  overflow: hidden;
}

.table-custom thead {
  background: var(--brown);
  color: var(--white);
}

.table-custom thead th {
  border: none;
  padding: 14px 16px;
  font-weight: 600;
}

.table-custom tbody td {
  padding: 12px 16px;
  border-color: #e8e0ec;
  vertical-align: middle;
}

.table-custom tbody tr:hover {
  background-color: rgba(225, 160, 164, 0.04);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--brown-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 0;
}

.footer h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer a:hover {
  color: var(--light-blue);
  padding-left: 5px;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  margin-right: 10px;
  transition: var(--transition);
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--light-blue);
  color: var(--brown-dark);
  transform: translateY(-3px);
  padding-left: 0;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 0.9rem;
}

.footer-map iframe {
  border-radius: 12px;
  width: 100%;
  height: 220px;
  border: none;
}

/* ===== Admission Marquee ===== */
.marquee-bar {
  background: #1a3a6b;
  color: var(--white);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-content {
  display: inline-flex;
  animation: marqueeScroll 20s linear infinite;
}

.marquee-content span {
  padding: 0 60px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.marquee-content span i {
  margin-right: 8px;
  color: var(--light-blue);
}

.marquee-content a {
  color: var(--light-blue);
  font-weight: 700;
  text-decoration: underline;
  margin-left: 8px;
}

.marquee-content a:hover {
  color: var(--white);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Supervisor Welcome Section ===== */
.supervisor-section {
  padding: 80px 0;
  background: var(--white);
}

.supervisor-img-wrapper {
  display: inline-block;
  border-radius: 50%;
  padding: 5px;
  border: 4px solid var(--brown);
  box-shadow: var(--shadow-lg);
}

.supervisor-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
}

.supervisor-message {
  background: var(--off-white);
  padding: 35px 40px;
  border-radius: 15px;
  border-left: 5px solid var(--brown);
  box-shadow: var(--shadow);
}

.supervisor-message p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
}

body.dark-mode .supervisor-message {
  background: #16213e;
  color: #e0e0e0;
}

body.dark-mode .supervisor-message p {
  color: #e0e0e0;
}

body.dark-mode .supervisor-section {
  background: #1a1a2e;
}

/* ===== Why Choose Us ===== */
.why-choose-section {
  padding: 80px 0;
  background: var(--white);
}

.why-card {
  text-align: center;
  padding: 35px 25px;
  border-radius: 15px;
  background: var(--off-white);
  transition: var(--transition);
  height: 100%;
}

.why-card:hover {
  background: var(--brown);
  color: var(--white);
  transform: translateY(-5px);
}

.why-card:hover h5 {
  color: var(--white);
}

.why-card:hover .why-icon {
  background: var(--light-blue);
  color: var(--brown-dark);
}

.why-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(225, 160, 164, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--brown);
  transition: var(--transition);
}

/* ===== Admission Actions ===== */
.admission-actions {
  padding: 60px 0;
  background: var(--off-white);
}

.action-card {
  background: var(--white);
  border-radius: 20px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.admission-actions .action-card h5 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.admission-actions .action-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.admission-actions .action-card .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.action-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* ===== Modals ===== */
.modal-content {
  border-radius: 15px;
  border: none;
}

.modal-header {
  background: var(--brown);
  color: var(--white);
  border-radius: 15px 15px 0 0;
}

.modal-header .btn-close {
  filter: invert(1);
}

/* ===== Alerts ===== */
.alert-custom {
  border-radius: 12px;
  border: none;
  padding: 15px 20px;
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Carousel ===== */
.hero-carousel .carousel-item {
  min-height: 90vh;
}

.hero-carousel .carousel-item img {
  object-fit: cover;
  min-height: 90vh;
  filter: brightness(0.4);
}

.hero-carousel .carousel-caption {
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
}

/* ===== Dark Mode ===== */
.dark-mode-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition);
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
}

body.dark-mode {
  background-color: #1a1a2e;
  color: #e0e0e0;
}

body.dark-mode .custom-card,
body.dark-mode .portal-card,
body.dark-mode .contact-card,
body.dark-mode .contact-form,
body.dark-mode .result-form,
body.dark-mode .dashboard-card,
body.dark-mode .stat-card,
body.dark-mode .event-card,
body.dark-mode .why-card,
body.dark-mode .action-card,
body.dark-mode .mv-card,
body.dark-mode .quick-link-item {
  background: #16213e;
  color: #e0e0e0;
}

body.dark-mode .highlights-section,
body.dark-mode .why-choose-section,
body.dark-mode .result-checker {
  background: #0f3460;
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5 {
  color: var(--light-blue);
}

body.dark-mode .form-control-custom {
  background: #1a1a2e;
  border-color: #2a2a4e;
  color: #e0e0e0;
}

body.dark-mode .off-white, body.dark-mode .quick-links,
body.dark-mode .admission-actions {
  background: #1a1a2e;
}

/* ===== Badge ===== */
.badge-accent {
  background-color: var(--light-blue);
  color: var(--off-white);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .hero-section {
    min-height: 70vh;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-header {
    padding: 100px 0 40px;
  }

  .dashboard-sidebar {
    position: static;
    margin-bottom: 25px;
  }

  .portal-card {
    padding: 35px 20px;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }

  .countdown-box .number {
    font-size: 2rem;
  }

  .event-date-badge {
    min-width: 70px;
    padding: 10px;
  }
}

/* ===== WhatsApp Chat Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 150px;
  right: 30px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #128C7E;
  color: var(--white);
}

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: scale(1.1);
  background: var(--brown-dark);
}

/* ===== Super Admin Styles ===== */
.sa-link {
  display: inline-block;
  margin-top: 8px;
  color: rgba(255,255,255,0.25);
  font-size: 0.85rem;
  transition: color 0.3s;
  text-decoration: none;
}
.sa-link:hover {
  color: var(--light-blue);
}

.superadmin-navbar {
  background: linear-gradient(90deg, #1a1a2e, #16213e) !important;
}

.superadmin-sidebar {
  background: linear-gradient(180deg, #1a1a2e, #16213e) !important;
}

.superadmin-card {
  border-left: 4px solid var(--light-blue);
}

.form-switch-lg .form-check-input:checked {
  background-color: #198754;
  border-color: #198754;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(225, 160, 164, 0.08);
  color: var(--brown-dark);
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(225, 160, 164, 0.15);
}

/* ---- Login Pages ---- */
.admin-login-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--off-white) 0%, #e8dff0 100%);
}

.admin-login-card {
  max-width: 420px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(74, 65, 99, 0.15);
  border: none;
}

.admin-login-card .login-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
  color: #fff;
}

.superadmin-login-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.superadmin-login-bg .admin-login-card {
  background: #1e1e3a;
  color: #e0e0e0;
}

.superadmin-login-bg .form-control {
  background: #2a2a4a;
  border-color: #3a3a5a;
  color: #e0e0e0;
}

.superadmin-login-bg .form-control:focus {
  background: #2a2a4a;
  border-color: var(--light-blue);
  color: #e0e0e0;
  box-shadow: 0 0 0 3px rgba(105, 94, 137, 0.25);
}

.superadmin-login-bg .form-label {
  color: #b0b0c0;
}

.superadmin-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f3460, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
  color: #e94560;
  border: 2px solid #e94560;
}

@media (max-width: 576px) {
  .admin-login-card {
    margin: 1rem;
    border-radius: 12px;
  }
}
