:root {
    --primary-color: #6c4ab6;
    --primary-dark: #5a3a9e;
    --primary-light: #8d6bd6;
    --secondary-color: #f8b400;
    --secondary-dark: #d89a00;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --white-color: #ffffff;
    --black-color: #000000;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  /* Dark Mode Variables */
  .dark-mode {
    --white-color: #1a1a2e; /* Dark mode white elements */
    --white-bg: #1a1a2e; /* Dark mode white backgrounds */
    --black-color: #f8f9fa; /* Dark mode black text */
    --black-bg: #f8f9fa; /* Dark mode black backgrounds */
    --light-color: #1a1a2e; /* This should match dark mode background */
  }
/* Base Styles */
body {
  font-family: "Poppins", sans-serif;
  background-color: var(--light-color);
  color: var(--dark-color);
  overflow-x: hidden;
  transition: var(--transition);
  line-height: 1.7;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: var(--dark-color);
  color: var(--light-color);
}

/* Text Colors */
.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.dark-mode .text-dark {
  color: var(--light-color) !important;
}

.dark-mode .text-light {
  color: var(--dark-color) !important;
}

/* Background Colors */
.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.dark-mode .bg-dark {
  background-color: var(--light-color) !important;
}

.dark-mode .bg-light {
  background-color: var(--dark-color) !important;
}

/* Preloader Styles */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.dark-mode .preloader {
  background: var(--dark-color);
}

.spinner {
  width: 70px;
  height: 70px;
  position: relative;
}

.double-bounce1,
.double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary-color);
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: sk-bounce 2s infinite ease-in-out;
}

.double-bounce2 {
  animation-delay: -1s;
}

@keyframes sk-bounce {
  0%,
  100% {
    transform: scale(0);
  }

  50% {
    transform: scale(1);
  }
}

/* Floating Particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  background: var(--primary-light);
  border-radius: 50%;
  opacity: 0.3;
  animation: float-up linear infinite;
}

.dark-mode .particle {
  background: var(--secondary-color);
  opacity: 0.2;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) scale(0.5);
    opacity: 0;
  }

  10% {
    opacity: 0.3;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* Dark Mode Toggle */
.theme-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.btn-theme {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 5px 20px rgba(108, 74, 182, 0.3);
}

.btn-theme:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(108, 74, 182, 0.4);
}

.btn-theme .fa-sun {
  display: none;
}

.dark-mode .btn-theme .fa-moon {
  display: none;
}

.dark-mode .btn-theme .fa-sun {
  display: block;
}

/* Back to Top Button */
.back-to-top {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(108, 74, 182, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(108, 74, 182, 0.4);
  opacity: 1 !important;
}

/* Navbar Mobile Fixes */
/* Navbar Mobile Fixes */
@media (max-width: 991.98px) {
  .navbar {
    padding: 10px 0;
    background-color: var(--light-color) !important;
  }

  .navbar-collapse {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
    z-index: 1000;
  }

  .navbar-dark .navbar-nav .nav-link {
    color: var(--black-color) !important;
    padding: 10px 0;
    margin: 5px 0;
  }
  
  .dropdown-menu {
    background-color: var(--light-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
  }

  .dropdown-item {
    color: var(--black-color) !important;
    padding: 8px 15px;
  }

  .dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--white-color) !important;
  }
}

/* Dark mode adjustments for mobile */
.dark-mode .navbar-collapse {
  background-color: var(--light-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .dropdown-menu {
  background-color: var(--light-color);
  border-color: rgba(255, 255, 255, 0.1);
}


/* Navbar Toggle Button Fixes */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  transition: all 0.3s ease;
}

.navbar-toggler-icon {
  /* Base Styles */
  width: 1.75em;
  height: 1.75em;
  background-size: 100%;
  position: relative;
  transition: all 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
  
  /* Custom SVG with brand colors */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%235e35b1' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  
  /* Animation Prep */
  transform-origin: center center;
}

/* Dark Mode Adjustment */
.dark-mode .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='%23ffab00' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Active/Hover States */
.navbar-toggler:hover .navbar-toggler-icon,
.navbar-toggler:focus .navbar-toggler-icon {
  transform: scale(1.1);
  opacity: 0.9;
}

.navbar-toggler[aria-expanded='true'] .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='%23ffab00' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M6 6L24 24M6 24L24 6'/%3e%3c/svg%3e");
  transform: rotate(180deg);
}

/* Micro-interactions */
.navbar-toggler:active .navbar-toggler-icon {
  transform: scale(0.95);
}

/* Mobile-specific adjustments */
@media (max-width: 991.98px) {
  .navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    stroke-width: 2;
  }
  
  /* Animate when menu opens */
  .navbar-toggler[aria-expanded='true'] .navbar-toggler-icon {
    animation: togglerSpin 0.6s ease;
  }
}

@keyframes togglerSpin {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(180deg); }
}

/* Focus accessibility */
.navbar-toggler:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 3px;
}

/* Navbar Styles */
.navbar {
  padding: 20px 0;
  transition: all 0.3s ease;
  background-color: transparent;
}

.navbar.scrolled {
  padding: 10px 0;
  background-color: var(--light-color) !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-nav .nav-link {
  color: white;
  font-weight: 500;
  padding: 8px 15px;
  margin: 0 5px;
  position: relative;
}

.navbar-dark.scrolled .navbar-nav .nav-link {
  color: var(--black-color);
}

.navbar-dark .navbar-nav .nav-link:before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--white-color);
  bottom: 0;
  left: 0;
  transition: all 0.3s ease;
}

.navbar-dark.scrolled .navbar-nav .nav-link:before {
  background: var(--primary-color);
}

.navbar-dark .navbar-nav .nav-link:hover:before,
.navbar-dark .navbar-nav .nav-link.active:before {
  width: 100%;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px 0;
  margin-top: 10px;
  background-color: var(--light-color);
}

.dropdown-item {
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  color: var(--black-color);
}

.dropdown-item:hover {
  background-color: var(--primary-color);
  color: var(--white-color) !important;
}

/* Ensure container takes full width on small devices */
@media (max-width: 576px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden;
  }
}



/* Hero Section */
.hero-banner {
  height: 80vh;
  min-height: 600px;
  background: linear-gradient(rgba(26, 26, 46, 0.7), rgba(26, 26, 46, 0.7)),
    url("https://images.unsplash.com/photo-1544716278-ca5e3f4abd8c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80")
      center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 80px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white-color);
  padding: 0 20px;
  max-width: 800px;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.2s forwards;
  opacity: 0;
}

.hero-cta {
  animation: fadeInUp 1s ease-out 0.4s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.floating-cross {
  position: absolute;
  color: rgba(255, 255, 255, 0.15);
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--secondary-color);
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 15px;
  display: inline-block;
  position: relative;
  letter-spacing: 1px;
}

.section-subtitle::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.section-description {
  color: var(--gray-color);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.dark-mode .section-description {
  color: rgba(255, 255, 255, 0.7);
}

/* Search Bar */
.search-bar {
  max-width: 700px;
  margin: 0 auto 60px;
  position: relative;
}

/* Light mode - default */
.custom-placeholder::placeholder {
  color: #212529;
  /* Bootstrap's text-dark */
}

/* Dark mode - detect via Bootstrap's dark class */
body.bg-dark .custom-placeholder::placeholder,
body.dark-mode .custom-placeholder::placeholder {
  color: #ffffff;
  /* white for dark backgrounds */
}

.search-bar .form-control {
  height: 60px;
  border-radius: 50px;
  padding-left: 30px;
  border: 2px solid var(--primary-color);
  font-size: 1.1rem;
  background-color: var(--white-color);
  color: var(--dark-color);
  box-shadow: 0 5px 20px rgba(108, 74, 182, 0.1);
  transition: var(--transition);
}

.dark-mode .search-bar .form-control {
  background-color: var(--dark-color);
  color: var(--light-color);
  border-color: var(--primary-light);
  box-shadow: 0 5px 20px rgba(108, 74, 182, 0.2);
}

.search-bar .form-control:focus {
  box-shadow: 0 5px 25px rgba(108, 74, 182, 0.2);
  border-color: var(--primary-dark);
}

.search-bar .btn {
  position: absolute;
  right: 8px;
  top: 8px;
  height: 44px;
  width: 44px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: var(--transition);
}

.search-bar .btn:hover {
  background-color: var(--primary-dark);
  transform: scale(1.1);
}

/* Book Card */
.book-card {
  background-color: var(--white-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  margin-bottom: 30px;
  height: 100%;
  position: relative;
}

.dark-mode .book-card {
  background-color: var(--dark-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.book-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.dark-mode .book-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.book-cover {
  height: 300px;
  overflow: hidden;
  position: relative;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.book-card:hover .book-cover img {
  transform: scale(1.1);
}

.book-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--secondary-color);
  color: var(--dark-color);
  font-weight: 600;
  padding: 6px 15px;
  border-radius: 30px;
  font-size: 0.875rem;
  box-shadow: 0 3px 10px rgba(248, 180, 0, 0.3);
  z-index: 1;
}

.book-details {
  padding: 25px;
}

.book-title {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark-color);
}

.dark-mode .book-title {
  color: var(--white-color);
}

.book-author {
  color: var(--gray-color);
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.dark-mode .book-author {
  color: rgba(255, 255, 255, 0.7);
}

.book-rating {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 0.9375rem;
}

.book-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.book-price del {
  color: var(--gray-color);
  font-size: 1rem;
  margin-right: 10px;
}

.dark-mode .book-price del {
  color: rgba(255, 255, 255, 0.5);
}

.book-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
  flex: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(108, 74, 182, 0.3);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 8px;
  border-radius: 50%;
  font-weight: 500;
  transition: var(--transition);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-mode .btn-outline-primary {
  color: var(--primary-light);
  border-color: var(--primary-light);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-3px);
}

.dark-mode .btn-outline-primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
}

/* Category Card */
.category-card {
  background-color: var(--white-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  margin-bottom: 30px;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .category-card {
  background-color: var(--dark-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.05);
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary-dark)
  );
  opacity: 0;
  z-index: -1;
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: transparent;
}

.dark-mode .category-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.category-card:hover::before {
  opacity: 0.1;
}

.category-icon {
  font-size: 50px;
  color: var(--primary-color);
  margin-bottom: 25px;
  transition: var(--transition);
}

.dark-mode .category-icon {
  color: var(--primary-light);
}

.category-card:hover .category-icon {
  color: var(--secondary-color);
  transform: scale(1.1);
}

.category-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.dark-mode .category-title {
  color: var(--white-color);
}

.category-count {
  color: var(--gray-color);
  font-size: 0.9375rem;
}

.dark-mode .category-count {
  color: rgba(255, 255, 255, 0.7);
}

/* Advert Banner */
.advert-banner {
  background-color: var(--white-color);
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .advert-banner {
  background-color: var(--dark-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.05);
}

.advert-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(108, 74, 182, 0.05),
    rgba(248, 180, 0, 0.05)
  );
  z-index: 0;
}

.advert-banner-content {
  position: relative;
  z-index: 1;
}

.advert-banner img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.advert-banner h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  color: var(--dark-color);
  margin-bottom: 20px;
  line-height: 1.3;
}

.dark-mode .advert-banner h3 {
  color: var(--white-color);
}

.advert-banner p {
  color: var(--gray-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

.dark-mode .advert-banner p {
  color: rgba(255, 255, 255, 0.7);
}

.advert-slide {
  display: none;
}

.advert-slide.active {
  display: block;
  animation: fadeIn 1s ease-in-out;
}

.advert-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.advert-dot {
  width: 12px;
  height: 12px;
  background-color: var(--light-gray);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.dark-mode .advert-dot {
  background-color: rgba(255, 255, 255, 0.2);
}

.advert-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

.dark-mode .advert-dot.active {
  background-color: var(--secondary-color);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Advert Card */
.advert-card {
  background-color: var(--white-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  margin-bottom: 30px;
  border: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .advert-card {
  background-color: var(--dark-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.05);
}

.advert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dark-mode .advert-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.advert-image {
  height: 200px;
  overflow: hidden;
}

.advert-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.advert-card:hover .advert-image img {
  transform: scale(1.1);
}

.advert-content {
  padding: 25px;
}

.advert-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  color: var(--dark-color);
  margin-bottom: 15px;
}

.dark-mode .advert-content h3 {
  color: var(--black-color);
}

.advert-content p {
  color: var(--gray-color);
  margin-bottom: 20px;
  font-size: 0.9375rem;
}

.dark-mode .advert-content p {
  color: rgba(255, 255, 255, 0.7);
}

/* Featured Books Section */
.featured-books {
  padding: 80px 0;
}

/* Categories Section */
.categories-section {
  padding: 80px 0;
  background-color: rgba(248, 249, 250, 0.5);
}

.dark-mode .categories-section {
  background-color: rgba(26, 26, 46, 0.5);
}

/* Footer Styles */
.footer {
    background-color: #1a1a2e; /* Fixed dark color */
    color: #ffffff; /* Fixed white text */
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
  }
  
  .footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80")
      center/cover;
    opacity: 0.05;
    z-index: 0;
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
  }
  
  .footer-about {
    max-width: 300px;
  }
  
  .footer-logo {
    height: 40px;
    margin-bottom: 20px;
  }
  
  .footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.6;
  }
  
  .footer-social {
    display: flex;
    gap: 15px;
  }
  
  .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff !important;
    transition: all 0.3s ease;
  }
  
  .footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
  }
  
  .footer-heading {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: #ffffff !important;
  }
  
  .footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
  }
  
  .footer-menu {
    list-style: none;
    padding: 0;
  }
  
  .footer-menu li {
    margin-bottom: 12px;
  }
  
  .footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    text-decoration: none;
  }
  
  .footer-menu a::before {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
  }
  
  .footer-menu a:hover {
    color: var(--white-color);
    transform: translateX(5px);
  }
  
  .footer-menu a:hover::before {
    width: 100%;
  }
  
  .contact-info {
    list-style: none;
    padding: 0;
  }
  
  .contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
  }
  
  .contact-icon {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 3px;
    font-size: 16px;
  }
  
  .contact-info span {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
  }
  
  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
  }
  
  .copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .footer-legal {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all 0.3s ease;
  }
  
  .footer-legal a:hover {
    color: var(--primary-color);
  }
  
  .legal-separator {
    color: rgba(255, 255, 255, 0.3);
  }
  
  .footer-prayer {
    position: absolute;
    bottom: -20px;
    right: -20px;
    opacity: 0.1;
    z-index: 0;
  }
  
  .footer-prayer img {
    width: 150px;
    height: auto;
  }
  
  /* Dark Mode Adjustments */
  .dark-mode .footer {
    background-color: #1a1a2e !important; /* Force dark background */
    color: #ffffff !important; /* Force white text */
  }
  
  .dark-mode .footer-description,
  .dark-mode .footer-menu a,
  .dark-mode .contact-info span,
  .dark-mode .copyright,
  .dark-mode .footer-legal a {
    color: rgba(
      255,
      255,
      255,
      0.7
    ) !important; /* Force light text with opacity */
  }
  
  .dark-mode .footer-menu a:hover,
  .dark-mode .footer-legal a:hover {
    color: #ffffff !important; /* Force white text on hover */
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .footer-grid {
      grid-template-columns: 1fr;
      gap: 30px;
    }
  
    .footer-about {
      max-width: 100%;
    }
  
    .footer-heading {
      margin-bottom: 15px;
    }
  
    .footer-bottom {
      flex-direction: column;
      text-align: center;
    }
  
    .footer-legal {
      margin-top: 10px;
    }
  
    .footer-prayer {
      display: none;
    }
  }
  
  @media (max-width: 480px) {
    .footer {
      padding: 40px 0 20px;
    }
  
    .footer-legal {
      flex-direction: column;
      gap: 8px;
    }
  
    .legal-separator {
      display: none;
    }
  }




/* Responsive Styles */
@media (max-width: 1199.98px) {
  .hero-banner {
    height: 70vh;
  }
}

@media (max-width: 991.98px) {
  .hero-banner {
    height: 60vh;
    min-height: 500px;
  }

  .book-cover {
    height: 250px;
  }

  .advert-banner {
    padding: 30px;
  }

  .advert-banner img {
    height: 200px;
  }
}

@media (max-width: 767.98px) {
  .hero-banner {
    height: 500px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .book-card,
  .category-card,
  .advert-card {
    margin-bottom: 25px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-about {
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .hero-banner {
    height: 450px;
  }

  .search-bar .form-control {
    height: 50px;
    padding-left: 20px;
    font-size: 1rem;
  }

  .search-bar .btn {
    width: 40px;
    height: 40px;
    right: 5px;
    top: 5px;
  }

  .advert-banner {
    padding: 25px;
  }

  .advert-banner h3 {
    font-size: 1.5rem;
  }

  .advert-banner p {
    font-size: 1rem;
  }

  .footer-legal {
    flex-direction: column;
    gap: 10px;
  }

  .legal-separator {
    display: none;
  }

  .theme-toggle {
    bottom: 20px;
    right: 20px;
  }
}

/* Mobile Grid for Books (2 columns) */
@media (max-width: 767.98px) {
  .book-grid .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .book-cover {
    height: 200px;
  }

  .book-details {
    padding: 15px;
  }

  .book-title {
    font-size: 1.1rem;
  }

  .book-price {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .btn-primary,
  .btn-outline-primary {
    padding: 8px 15px;
    font-size: 0.875rem;
  }

  .btn-outline-primary {
    width: 40px;
    height: 40px;
  }
}
/* Additional styles for cart page */
.cart-header {
  padding: 80px 0 40px;
  background-color: rgba(248, 249, 250, 0.5);
  text-align: center;
}

.dark-mode .cart-header {
  background-color: rgba(26, 26, 46, 0.5);
}

.cart-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.dark-mode .cart-title {
  color: var(--white-color);
}

.cart-breadcrumb {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
}

.cart-breadcrumb li {
  margin: 0 10px;
  position: relative;
  color: var(--gray-color);
}

.dark-mode .cart-breadcrumb li {
  color: rgba(255, 255, 255, 0.7);
}

.cart-breadcrumb li.active {
  color: var(--primary-color);
  font-weight: 500;
}

.cart-breadcrumb li:not(:last-child)::after {
  content: "/";
  position: absolute;
  right: -12px;
}

.cart-section {
  padding: 60px 0;
}

.cart-table {
  width: 100%;
  margin-bottom: 30px;
  border-collapse: separate;
  border-spacing: 0 15px;
}

.cart-table thead th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: var(--black-color);
  border-bottom: 2px solid var(--light-gray);
}

.dark-mode .cart-table thead th {
  color: var(--black-color);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.cart-item {
  background-color: var(--white-color);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.dark-mode .cart-item {
  background-color: var(--dark-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cart-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dark-mode .cart-item:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.cart-item td {
  padding: 20px;
  vertical-align: middle;
}

.cart-item-image {
  width: 100px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  padding-left: 20px;
}

.cart-item-title {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--black-color);
}

.dark-mode .cart-item-title {
  color: var(--black-color);
}

.cart-item-author {
  color: var(--gray-color);
  font-size: 0.875rem;
  margin-bottom: 10px;
}

.dark-mode .cart-item-author {
  color: rgba(255, 255, 255, 0.7);
}

.cart-item-price {
  font-weight: 600;
  color: var(--primary-color);
}

.cart-item-price del {
  color: var(--gray-color);
  font-size: 0.875rem;
  margin-right: 8px;
}

.dark-mode .cart-item-price del {
  color: rgba(255, 255, 255, 0.5);
}

.quantity-control {
  display: flex;
  align-items: center;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: none;
  background-color: var(--light-gray);
  color: var(--dark-color);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.dark-mode .quantity-btn {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--black-color);
}

.quantity-btn:hover {
  background-color: var(--primary-color);
  color: var(--black-color);
}

.quantity-input {
  width: 50px;
  text-align: center;
  margin: 0 10px;
  border: 1px solid var(--light-gray);
  border-radius: 5px;
  padding: 5px;
  font-weight: 600;
}

.dark-mode .quantity-input {
  background-color: var(--dark-color);
  color: var(--black-color);
  border-color: rgba(255, 255, 255, 0.1);
}

.remove-item {
  color: var(--gray-color);
  font-size: 1.25rem;
  transition: var(--transition);
  cursor: pointer;
}

.dark-mode .remove-item {
  color: rgba(255, 255, 255, 0.7);
}

.remove-item:hover {
  color: var(--primary-color);
  transform: scale(1.2);
}

.cart-summary {
  background-color: var(--white-color);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  margin-top: 15px;
  border: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .cart-summary {
  background-color: var(--dark-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.05);
}

.summary-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--black-color);
  position: relative;
  padding-bottom: 15px;
}

.dark-mode .summary-title {
  color: var(--black-color);
}

.summary-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--light-gray);
}

.dark-mode .summary-row {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.summary-label {
  color: var(--black-color);
}

.dark-mode .summary-label {
  color: rgba(255, 255, 255, 0.7);
}

.summary-value {
  font-weight: 600;
  color: var(--black-color);
}

.dark-mode .summary-value {
  color: var(--black-color);
}

.summary-total {
  font-size: 1.25rem;
  color: var(--primary-color);
  font-weight: 700;
}

.coupon-form {
  display: flex;
  margin-bottom: 30px;
}

.coupon-input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid var(--primary-color);
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
  background-color: var(--white-color);
  color: var(--black-color);
}

.dark-mode .coupon-input {
  background-color: var(--dark-color);
  color: var(--black-color);
  border-color: var(--primary-light);
}

.coupon-btn {
  padding: 0 25px;
  border: none;
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 0 50px 50px 0;
  font-weight: 600;
  transition: var(--transition);
}

.coupon-btn:hover {
  background-color: var(--primary-dark);
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.btn-continue {
  background-color: var(--light-gray);
  color: var(--black-color);
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.dark-mode .btn-continue {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--black-color);
}

.btn-continue:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-checkout {
  padding: 12px 40px;
  font-weight: 600;
}

.empty-cart {
  text-align: center;
  padding: 60px 0;
}

.empty-cart-icon {
  font-size: 5rem;
  color: var(--gray-color);
  margin-bottom: 30px;
}

.dark-mode .empty-cart-icon {
  color: rgba(255, 255, 255, 0.3);
}

.empty-cart-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.dark-mode .empty-cart-title {
  color: var(--white-color);
}

.empty-cart-text {
  color: var(--gray-color);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.dark-mode .empty-cart-text {
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .cart-table thead {
    display: none;
  }

  .cart-table tbody tr {
    display: block;
    margin-bottom: 30px;
  }

  .cart-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    padding: 15px;
  }

  .cart-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--black-color);
    margin-right: auto;
    padding-right: 20px;
  }

  .dark-mode .cart-table tbody td::before {
    color: var(--black-color);
  }

  .cart-item-image {
    margin: 0 auto 15px;
  }

  .cart-item-details {
    padding-left: 0;
    text-align: center;
    margin-bottom: 15px;
  }

  .quantity-control {
    justify-content: flex-end;
  }
}

@media (max-width: 767.98px) {
  .cart-header {
    padding: 60px 0 30px;
  }

  .cart-title {
    font-size: 2rem;
  }

  .cart-actions {
    flex-direction: column;
    gap: 15px;
  }

  .btn-continue,
  .btn-checkout {
    width: 100%;
    text-align: center;
  }

  .coupon-form {
    flex-direction: column;
  }

  .coupon-input {
    border-radius: 50px;
    margin-bottom: 10px;
  }

  .coupon-btn {
    border-radius: 50px;
    padding: 12px;
  }
}

@media (max-width: 575.98px) {
  .cart-title {
    font-size: 1.75rem;
  }

  .empty-cart-title {
    font-size: 1.5rem;
  }

  .empty-cart-icon {
    font-size: 3.5rem;
  }
}



/* Mobile-First Base Styles (applies to all screens) */
/* All your existing base styles remain here */

/* ==================== */
/* Universal Mobile Adjustments (0-767px) */
/* ==================== */
@media (max-width: 767.98px) {
  /* Global Typography Adjustments */
  html {
    font-size: 14px;
  }
  
  body {
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }
  
  /* Container & Spacing */
  .container, 
  .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  section {
    padding: 40px 0;
  }
  
  /* Buttons & Interactive Elements */
  .btn, 
  .btn-primary, 
  .btn-outline-primary {
    padding: 10px 18px;
    font-size: 0.9rem;
    min-width: 44px; /* Minimum touch target size */
    min-height: 44px;
  }
  
  /* Forms & Inputs */
  .form-control, 
  .form-select {
    height: 48px;
    font-size: 1rem;
    padding: 10px 15px;
  }
  
  /* Cards & Boxes */
  .card, 
  .book-card, 
  .category-card, 
  .advert-card {
    margin-bottom: 20px;
    border-radius: 12px;
  }
  
  /* Images */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Utility Classes */
  .text-center-mobile {
    text-align: center !important;
  }
  
  .d-block-mobile {
    display: block !important;
  }
}

/* ==================== */
/* Small Mobile Devices (0-575px) */
/* ==================== */
@media (max-width: 575.98px) {
  /* Hero Section */
  .hero-banner {
    height: 90vh;
    min-height: 500px;
    margin-bottom: 40px;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  /* Section Headers */
  .section-header {
    margin-bottom: 30px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  /* Book Grid */
  .book-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .book-cover {
    height: 180px;
  }
  
  .book-details {
    padding: 15px;
  }
  
  /* Search Bar */
  .search-bar {
    margin-bottom: 30px;
  }
  
  .search-bar .form-control {
    height: 48px;
    padding-left: 20px;
    font-size: 0.9rem;
  }
  
  .search-bar .btn {
    width: 40px;
    height: 40px;
    right: 4px;
    top: 4px;
  }
  
  /* Footer */
  .footer {
    padding: 30px 0 15px;
    text-align: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  /* Theme Toggle */
  .theme-toggle {
    bottom: 15px;
    right: 15px;
  }
  
  .btn-theme, 
  .back-to-top {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}

/* ==================== */
/* Medium Mobile Devices (576px-767px) */
/* ==================== */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Book Grid */
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .book-cover {
    height: 200px;
  }
  
  /* Hero Section */
  .hero-title {
    font-size: 2.2rem;
  }
  
  /* Category Cards */
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Advert Banner */
  .advert-banner {
    padding: 25px;
  }
  
  .advert-banner h3 {
    font-size: 1.5rem;
  }
}

/* ==================== */
/* Tablet Devices (768px-991px) */
/* ==================== */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Book Grid */
  .book-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Hero Section */
  .hero-banner {
    height: 70vh;
    min-height: 550px;
  }
  
  /* Section Headers */
  .section-header {
    margin-bottom: 45px;
  }
  
  /* Category Cards */
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==================== */
/* Special Cases & Device-Specific Fixes */
/* ==================== */

/* iPhone 5/SE Landscape */
@media (max-width: 568px) and (orientation: landscape) {
  .hero-banner {
    height: 100vh;
  }
  
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* iPad Portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .book-cover {
    height: 220px;
  }
}

/* Tall Mobile Devices */
@media (max-height: 700px) {
  .hero-banner {
    height: 100vh;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
}

/* iOS Viewport Unit Fix */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 767.98px) {
    .hero-banner {
      height: -webkit-fill-available;
      min-height: -webkit-fill-available;
    }
    
    .book-cover {
      height: 40vw;
      max-height: 200px;
    }
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark Mode Mobile Adjustments */
@media (max-width: 767.98px) {
  .dark-mode {
    /* Mobile-specific dark mode overrides */
    .book-card {
      background-color: var(--dark-color);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .search-bar .form-control {
      background-color: var(--dark-color);
      color: var(--light-color);
    }
    
    .navbar-collapse {
      background-color: var(--dark-color);
    }
  }
}

/* ==================== */
/* Component-Specific Mobile Adjustments */
/* ==================== */

/* Book Cards */
@media (max-width: 767.98px) {
  .book-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .book-title {
    font-size: 1.1rem;
  }
  
  .book-price {
    font-size: 1.1rem;
  }
  
  .book-actions {
    flex-direction: row;
    gap: 8px;
  }
  
  .btn-outline-primary {
    width: 40px;
    height: 40px;
  }
}

/* Category Cards */
@media (max-width: 767.98px) {
  .category-card {
    padding: 25px 15px;
  }
  
  .category-icon {
    font-size: 40px;
    margin-bottom: 15px;
  }
  
  .category-title {
    font-size: 1.2rem;
  }
}

/* Advert Banner */
@media (max-width: 767.98px) {
  .advert-banner {
    padding: 20px;
  }
  
  .advert-banner img {
    height: 180px;
    margin-bottom: 20px;
  }
  
  .advert-banner h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }
  
  .advert-banner p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
}

/* Navigation */
@media (max-width: 991.98px) {
  .navbar {
    padding: 10px 0;
  }
  
  .navbar-collapse {
    padding: 15px;
    margin-top: 10px;
  }
  
  .navbar-nav .nav-link {
    padding: 10px 0;
    margin: 5px 0;
  }
}

/* Forms */
@media (max-width: 767.98px) {
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-label {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
}

/* Utility Classes for Mobile */
.mobile-mt-20 { margin-top: 20px !important; }
.mobile-mb-20 { margin-bottom: 20px !important; }
.mobile-pt-20 { padding-top: 20px !important; }
.mobile-pb-20 { padding-bottom: 20px !important; }

@media (max-width: 767.98px) {
  .mobile-hide {
    display: none !important;
  }
  
  .mobile-full-width {
    width: 100% !important;
  }
  
  .mobile-text-center {
    text-align: center !important;
  }
}


/* Footer - Mobile */
@media (max-width: 767.98px) {
  .footer {
    padding: 40px 0 20px;
    text-align: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-about {
    max-width: 100%;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-menu {
    margin-bottom: 20px;
  }
  
  .footer-menu li {
    margin-bottom: 8px;
  }
  
  .contact-info li {
    justify-content: center;
    text-align: center;
  }
  
  .footer-bottom {
    padding-top: 20px;
    margin-top: 30px;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 8px;
  }
  
  .legal-separator {
    display: none;
  }
}

/* Theme Toggle - Mobile */
@media (max-width: 767.98px) {
  .theme-toggle {
    bottom: 20px;
    right: 20px;
  }
  
  .btn-theme {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* Footer - Mobile Enhancements */
@media (max-width: 767.98px) {
  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-menu a {
    display: inline-block;
    padding: 5px 0;
  }
  
  .contact-info li {
    justify-content: center;
  }
}