:root {
  --primary-color: #9a0036;
  --white: #fff;
  --silver: #ebebeb;
  --stone: #787878;
  --black: #141414;
  --primary-color-hover: #fe9ec6;
  --red-shape: #51001d;
  --primary-result-title: #008e87
}
/* Common styles */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: #fff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Login/Auth pages container */
.auth-container {
  display: flex;
  min-height: 100vh;
}

/* Header Styles */
.top-header {
  background: var(--primary-color);
  padding: 24px 0;
  color: white;
}

.top-header .col-md-2,
.top-header .col-md-4 {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Language selector */
.language-selector {
  font-size: 14px;
  font-weight: 500;
}

/* Notification */
.notification {
  cursor: pointer;
}

/* User info */
.user-info {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  color: white;
  font-size: 14px;
  line-height: 1.2;
}

.user-id {
  color: white;
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.2;
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  background: white;
  min-width: 200px;
  margin-top: 8px;
  padding: 8px 0;
  border-radius: 8px;
  border: none;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.15); */
  z-index: 1000;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--black);
  text-decoration: none;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background-color: rgba(154, 0, 54, 0.1);
  color: var(--primary-color);
}

/* Common search box styles */
.search-box {
  position: relative;
  width: 100%;
}

.search-box input {
  width: 100%;
  height: 44px;
  padding: 10px 44px 10px 20px;
  border-radius: 50px;
  border: none;
  font-size: 14px;
  background: white;
}

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

.search-box button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box button img {
  width: 24px;
  height: 24px;
}

/* Language and notification container */
.d-flex.justify-content-end {
  width: 100%;
  justify-content: center !important;
}

/* Banner Section */
.banner-section {
  padding: 0;
}

.banner-image {
  height: 100%;
  overflow: hidden;
}

.banner-image img {
  height: 100%;
  max-height: 400px;
  object-fit: fill;
}

/* News Section */
.news-section {
  background: var(--primary-color);
  color: white;
  padding: 20px;
  border-radius: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-header {
  margin-bottom: 10px;
}

.news-header h5 {
  font-size: 18px;
  font-weight: 600;
}

.news-content {
  margin: 15px 0;
  max-height: 300px;
  overflow-y: auto;
  flex: 1;
}

.news-item {
  padding: 5px 0;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item a {
  text-decoration: none;
  color: white;
  font-size: 14px;
  transition: opacity 0.2s;
  display: block;
}

.news-item a:hover {
  opacity: 0.8;
}

/* News Pagination */
.news-pagination {
  margin-top: auto;
  padding-top: 15px;
}

.news-pagination .pagination {
  gap: 4px;
}

.news-pagination .page-link {
  color: var(--stone);
  background-color: transparent;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  border: none;
  transition: all 0.2s ease;
}

.news-pagination .page-item.active .page-link {
  background-color: transparent;
  color: var(--white);
  border: none;
}

.news-pagination .page-link:hover {
  background-color: transparent;
  color: var(--primary-color-hover);
}

.news-pagination .page-item.active .page-link:hover {
  color: var(--white);
  background-color: transparent;
}

.gap-2 {
  gap: 2px;
}

.gap-3 {
  gap: 10px;
}

/* Common footer styles */
footer {
  background: var(--primary-color);
  color: white;
  padding: 40px 0;
  margin-top: 50px;
  width: 100%;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  max-width: 160px;
  height: auto;
}

footer h5 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

footer h6 {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.footer-section {
  margin-bottom: 0;
}

.contact-info p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 6px;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  display: inline-block;
}

footer a:hover {
  color: white;
}

footer ul li {
  margin-bottom: 8px;
}

.address {
  margin-bottom: 20px;
}

@media (max-width: 992px) {
  .footer-logo {
      text-align: center;
      margin-bottom: 30px;
  }

  .footer-section {
      margin-bottom: 30px;
  }
}

.under-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
}

.under-footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin: 0;
}

.under-footer ul {
  display: flex;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.under-footer ul li a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.under-footer ul li a:hover {
  background: white;
  color: var(--primary-red);
  transform: translateY(-2px);
}

.under-footer ul li a i {
  font-size: 14px;
}

@media (max-width: 767px) {
  .under-footer {
      flex-direction: column;
      text-align: center;
      gap: 15px;
  }

  .under-footer ul {
      justify-content: center;
  }
}

/* Responsive utilities */
@media (max-width: 992px) {
  .container {
    padding: 0 10px;
  }

  .top-header .row > div {
    margin-bottom: 10px;
    justify-content: center;
  }

  .search-box {
    margin: 10px auto;
    width: 100%;
    max-width: 300px;
  }

  .user-info {
    justify-content: center;
  }

  .d-flex.justify-content-end {
    justify-content: center !important;
  }
}

/* Section layouts */
.left-section {
  position: relative;
  flex: 1;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.right-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

/* Responsive layout */
@media (max-width: 900px) {
  .auth-container {
    flex-direction: column;
  }
  .left-section,
  .right-section {
    flex: none;
    width: 100%;
    height: 50vh;
  }
}

.register-number-box {
  border-radius: 8px;
  background-color: #EDF1FF;
  border:1px solid #EDF1FF;
  min-height: 280px;
}

.countdown-section-confirm-new {
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    background: #FFF6F9;
    min-height: 280px;
}

.countdown-section-confirm-new h5 {
    color: var(--stone);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.countdown-section-confirm-new .countdown-remaining p {
    color: var(--stone);
    font-size: 14px;
    margin-bottom: 8px;
}

.countdown-digits-new {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.digit-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.number-circle {
  color: white;
  font-size: 24px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 50%;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
}

.digit-new span {
  display: block;
  font-size: 12px;
  font-weight: normal;
  color: var(--stone);
  margin-top: 0;
}

@media (max-width: 768px) {
  .countdown-digits-new {
    gap: 12px;
  }

  .number-circle {
    font-size: 20px;
    padding: 8px 12px;
    min-width: 50px;
    min-height: 50px;
  }

  .content-section .row.g-4 {
    display: block;
  }

  .content-section .row.g-4 > .col-md-6 {
    display: block;
    margin-bottom: 20px;
  }

  .register-number-box {
    min-height: auto;
  }

  .countdown-section-confirm {
    min-height: auto;
  }
}

/* Navigation Menu */
.nav-menu {
  background: white;
  padding: 15px 0;
  box-shadow: 0 8px 4px rgba(0,0,0,0.1);
}

.nav-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--stone);
  padding: 8px 16px;
  transition: all 0.3s;
  gap: 12px;
}

.nav-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.nav-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.nav-item span {
  font-size: 14px;
  font-weight: 500;
}

.nav-item:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.nav-item:hover .nav-icon {
  transform: translateY(-2px);
}

/* Active navigation item */
.nav-item.active {
  color: var(--primary-color);
}

/* Add spacing between nav items */
.col-auto {
  padding: 0 8px;
}

.gap-2 {
  gap: 2px;
}

/* Content Section */
.content-section {
  padding: 30px 0;
}

/* Banner Carousel Styles */
.banner-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0;
}

.banner-carousel {
  position: relative;
  width: 100%;
  height: 400px; /* Set a fixed height */
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(100%);
  opacity: 0;
}

.carousel-item.active {
  transform: translateX(0);
  opacity: 1;
}

.carousel-item.prev {
  transform: translateX(-100%);
  opacity: 0;
}

.carousel-item.next {
  transform: translateX(100%);
  opacity: 0;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

/* Carousel Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-control:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

.carousel-control i {
  font-size: 18px;
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Responsive banner styles */
@media (max-width: 768px) {
  .banner-carousel {
    height: 250px;
  }
  
  .carousel-control {
    width: 40px;
    height: 40px;
  }
  
  .carousel-control i {
    font-size: 14px;
  }
  
  .prev-btn {
    left: 10px;
  }
  
  .next-btn {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .banner-carousel {
    height: 200px;
  }
  
  .carousel-control {
    width: 35px;
    height: 35px;
  }
  
  .carousel-control i {
    font-size: 12px;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
  }
}
