/* ============================================
   PrakashNotes Mobile-First CSS
   Optimized for mobile devices (320px - 480px)
   ============================================ */

/* ===== CSS RESET & BASE MOBILE ===== */
:root {
  --mobile-nav-height: 3.5rem;
  --mobile-bottom-nav-height: 3.75rem;
  --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
  --mobile-safe-top: env(safe-area-inset-top, 0px);
  --mobile-radius: 1rem;
  --mobile-radius-sm: 0.75rem;
  --mobile-radius-lg: 1.25rem;
  --mobile-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --mobile-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --mobile-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --mobile-color-primary: #0B6E99;
  --mobile-color-secondary: #F28C28;
  --mobile-color-accent: #14B8A6;
}

/* ===== GLOBAL MOBILE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  /* Prevent iOS zoom on input focus */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  input[type="url"],
  textarea,
  select {
    font-size: 16px !important;
  }

  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
  }

  /* Body adjustments */
  body {
    padding-bottom: calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-bottom));
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
  }

  /* Hide scrollbar for cleaner mobile look */
  ::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  /* Larger touch targets */
  a, button, [role="button"], input, select, textarea {
    min-height: 44px;
  }

  /* Better tap targets for links */
  .sidebar-link,
  .nav-link,
  .dropdown-item,
  .profile-item {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  /* Container padding */
  .container, .mx-auto {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* ===== MOBILE BOTTOM NAVIGATION BAR ===== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: var(--mobile-safe-bottom);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: var(--mobile-bottom-nav-height);
    padding: 0.25rem 0.5rem;
  }

  /* Hide desktop footer on mobile - replace with bottom nav */
  footer {
    display: none !important;
  }

  /* Hide entire desktop nav on mobile — replaced by minimal mobile header + bottom nav */
  .PrakashNotes-nav {
    display: none !important;
  }
}

.mobile-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--mobile-radius);
  color: #64748b;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--mobile-transition);
  position: relative;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  border: none;
  background: none;
  min-width: 3.5rem;
}

.mobile-bottom-nav-item svg {
  width: 1.35rem;
  height: 1.35rem;
  transition: all var(--mobile-transition);
  stroke-width: 1.8;
}

.mobile-bottom-nav-item.active {
  color: var(--mobile-color-primary);
}

.mobile-bottom-nav-item.active svg {
  transform: scale(1.1) translateY(-1px);
  filter: drop-shadow(0 2px 4px rgba(11, 110, 153, 0.3));
}

.mobile-bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: -0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.25rem;
  height: 0.2rem;
  background: linear-gradient(90deg, var(--mobile-color-primary), var(--mobile-color-accent));
  border-radius: 0 0 9999px 9999px;
}

/* Search button special styling */
.mobile-bottom-nav-item.mobile-search-btn {
  position: relative;
}

.mobile-bottom-nav-item.mobile-search-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, var(--mobile-color-primary), var(--mobile-color-accent));
  color: white;
  padding: 0.35rem;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(11, 110, 153, 0.35);
}

/* ===== MOBILE MINIMAL HEADER ===== */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding: 0.5rem 1rem;
  padding-top: calc(0.5rem + var(--mobile-safe-top));
}

@media (max-width: 768px) {
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Hide desktop nav completely on mobile */
  .PrakashNotes-nav {
    display: none !important;
  }
}

.mobile-header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.mobile-header-logo img {
  height: 2rem;
  width: auto;
}

.mobile-header-logo span {
  font-weight: 800;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--mobile-color-primary), var(--mobile-color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-header-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--color-surface-soft, #eef5fa);
  color: var(--color-text, #0f172a);
  cursor: pointer;
  transition: all var(--mobile-transition);
  -webkit-tap-highlight-color: transparent;
}

.mobile-header-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.mobile-header-btn:active {
  transform: scale(0.92);
  background: rgba(11, 110, 153, 0.1);
}

/* ===== MOBILE BOTTOM SHEET ===== */
.mobile-bottom-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-bottom-sheet-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  background: white;
  border-radius: var(--mobile-radius-lg) var(--mobile-radius-lg) 0 0;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: var(--mobile-safe-bottom);
}

.mobile-bottom-sheet.active {
  transform: translateY(0);
}

.mobile-bottom-sheet-handle {
  width: 2rem;
  height: 0.25rem;
  background: #d1d5db;
  border-radius: 9999px;
  margin: 0.75rem auto 0.5rem;
}

.mobile-bottom-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.25rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-bottom-sheet-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text, #0f172a);
}

.mobile-bottom-sheet-close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  transition: all var(--mobile-transition);
}

.mobile-bottom-sheet-close:active {
  background: #e2e8f0;
  transform: scale(0.9);
}

.mobile-bottom-sheet-content {
  padding: 0.75rem 1.25rem 1.25rem;
}

/* ===== MOBILE SEARCH — USE EXISTING POPUP MODAL ===== */
@media (max-width: 768px) {
  /* Make existing search-modal mobile-friendly */
  #search-modal {
    padding-top: 5vh;
    z-index: 200;
  }

  #search-modal > div {
    max-width: 100%;
    margin: 0 0.75rem;
    border-radius: 1rem;
    max-height: 80vh;
  }

  /* Hide keyboard hints on mobile */
  #search-close-kbd {
    display: none !important;
  }

  #search-results {
    max-height: 55vh;
  }

  /* Make search input larger for touch */
  #search-input {
    font-size: 16px !important;
    padding: 0.875rem 3rem 0.875rem 3rem;
    border-radius: 0.75rem;
  }

  /* Footer hints — hide on mobile */
  #search-modal .border-t {
    display: none;
  }
}

/* Remove the old full-screen mobile search overlay — we use the popup instead */
.mobile-search-overlay {
  display: none !important;
}

/* ===== MOBILE CARD STYLES ===== */
@media (max-width: 768px) {
  /* Horizontal scroll cards */
  .mobile-scroll-container {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mobile-scroll-container::-webkit-scrollbar {
    display: none;
  }

  .mobile-scroll-item {
    flex: 0 0 85%;
    scroll-snap-align: start;
    min-width: 0;
  }

  /* Card styling */
  .card, .note-card, .blog-card {
    border-radius: var(--mobile-radius) !important;
    box-shadow: var(--mobile-shadow) !important;
    transition: all var(--mobile-transition) !important;
    overflow: hidden;
  }

  .card:active, .note-card:active, .blog-card:active {
    transform: scale(0.98);
    box-shadow: var(--mobile-shadow-lg) !important;
  }

  /* Grid adjustments */
  .grid-cols-1, .grid-cols-2, .grid-cols-3, .grid-cols-4 {
    gap: 0.75rem !important;
  }

  /* Hero section mobile */
  .hero-section, [class*="hero"] {
    padding: 2rem 1rem !important;
  }

  /* Section headings */
  h1 {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
  }

  h3 {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
  }

  /* Paragraphs */
  p {
    line-height: 1.65 !important;
    font-size: 0.95rem !important;
  }

  /* Lists */
  ul, ol {
    padding-left: 1.25rem !important;
  }

  li {
    margin-bottom: 0.35rem !important;
    line-height: 1.5 !important;
  }

  /* Images */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Tables */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Code blocks */
  pre, code {
    font-size: 0.85rem !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ===== MOBILE BUTTON STYLES ===== */
@media (max-width: 768px) {
  .btn, button[type="submit"], .nav-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--mobile-radius);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--mobile-transition);
    -webkit-tap-highlight-color: transparent;
  }

  .btn:active, button[type="submit"]:active {
    transform: scale(0.97);
  }

  /* Primary button */
  .btn-primary, .nav-btn-primary {
    background: linear-gradient(135deg, var(--mobile-color-primary), var(--mobile-color-accent)) !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(11, 110, 153, 0.3) !important;
  }

  .btn-primary:active, .nav-btn-primary:active {
    box-shadow: 0 2px 8px rgba(11, 110, 153, 0.4) !important;
  }

  /* Secondary button */
  .btn-secondary, .nav-btn-secondary {
    border: 1.5px solid var(--color-border, #d2e4ef) !important;
    background: white !important;
    color: var(--color-text, #0f172a) !important;
  }
}

/* ===== MOBILE FORM STYLES ===== */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  input[type="url"],
  textarea,
  select {
    width: 100% !important;
    padding: 0.875rem 1rem !important;
    font-size: 16px !important;
    border-radius: var(--mobile-radius) !important;
    border: 1.5px solid #e2e8f0 !important;
    background: white !important;
    transition: all var(--mobile-transition);
    box-sizing: border-box;
  }

  input:focus, textarea:focus, select:focus {
    border-color: var(--mobile-color-primary) !important;
    box-shadow: 0 0 0 3px rgba(11, 110, 153, 0.1) !important;
    outline: none;
  }

  /* Form groups */
  .form-group, [class*="form"] > div {
    margin-bottom: 1rem;
  }

  label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    display: block;
  }
}

/* ===== MOBILE QUIZ/MCQ STYLES ===== */
@media (max-width: 768px) {
  .quiz-option, .mcq-option, [class*="option"] {
    padding: 1rem !important;
    border-radius: var(--mobile-radius) !important;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all var(--mobile-transition);
    border: 1.5px solid #e2e8f0;
    background: white;
  }

  .quiz-option:active, .mcq-option:active {
    transform: scale(0.98);
    border-color: var(--mobile-color-primary);
    background: rgba(11, 110, 153, 0.05);
  }

  .quiz-option.selected, .mcq-option.selected {
    border-color: var(--mobile-color-primary);
    background: rgba(11, 110, 153, 0.08);
    box-shadow: 0 0 0 2px rgba(11, 110, 153, 0.15);
  }
}

/* ===== MOBILE TOAST/NOTIFICATION ===== */
.mobile-toast {
  position: fixed;
  top: calc(1rem + var(--mobile-safe-top));
  left: 1rem;
  right: 1rem;
  z-index: 10003;
  background: white;
  border-radius: var(--mobile-radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--mobile-shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(-120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  border-left: 4px solid var(--mobile-color-primary);
}

.mobile-toast.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-toast-success {
  border-left-color: #22c55e;
}

.mobile-toast-error {
  border-left-color: #ef4444;
}

.mobile-toast-message {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== MOBILE PULL TO REFRESH ===== */
.mobile-pull-refresh {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 51;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mobile-color-primary);
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.3s ease;
}

.mobile-pull-refresh.active {
  opacity: 1;
  transform: translateY(0);
}

.mobile-pull-refresh-spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #e2e8f0;
  border-top-color: var(--mobile-color-primary);
  border-radius: 50%;
  animation: mobile-spin 0.8s linear infinite;
}

@keyframes mobile-spin {
  to { transform: rotate(360deg); }
}

/* ===== MOBILE BACK TO TOP BUTTON ===== */
.mobile-back-to-top {
  display: none;
  position: fixed;
  bottom: calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-bottom) + 1rem);
  right: 1rem;
  z-index: 998;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: white;
  color: var(--mobile-color-primary);
  border: 1.5px solid #e2e8f0;
  box-shadow: var(--mobile-shadow);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--mobile-transition);
  opacity: 0;
  transform: scale(0.8);
}

.mobile-back-to-top.visible {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

.mobile-back-to-top:active {
  transform: scale(0.9);
}

.mobile-back-to-top svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* ===== MOBILE SWIPE INDICATOR ===== */
.mobile-swipe-hint {
  display: none;
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: #94a3b8;
  animation: mobile-swipe-hint 2s ease-in-out infinite;
}

@keyframes mobile-swipe-hint {
  0%, 100% { transform: translateX(-50%); opacity: 0.5; }
  50% { transform: translateX(calc(-50% + 10px)); opacity: 1; }
}

/* ===== MOBILE CONTENT AREA ===== */
@media (max-width: 768px) {
  /* Add padding for bottom nav */
  .content-area, main, [role="main"] {
    padding-bottom: 1rem;
  }

  /* Mobile-specific spacing */
  .section, section, [class*="section"] {
    padding: 1.5rem 0;
  }

  /* Hero sections */
  .hero, [class*="hero"] {
    padding: 1.5rem 1rem !important;
    min-height: auto !important;
  }

  /* Footer replacement - mobile footer */
  .mobile-footer {
    display: block;
    padding: 1.5rem 1rem;
    padding-bottom: calc(1.5rem + var(--mobile-safe-bottom));
    background: var(--color-surface-soft, #eef5fa);
    border-top: 1px solid var(--color-border, #d2e4ef);
  }

  .mobile-footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .mobile-footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--color-text-muted, #4b5563);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 44px;
  }

  .mobile-footer-link:active {
    color: var(--mobile-color-primary);
  }

  .mobile-footer-copyright {
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
  }

  .mobile-footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
  }

  .mobile-footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
    transition: all var(--mobile-transition);
  }

  .mobile-footer-social a:active {
    background: var(--mobile-color-primary);
    color: white;
    transform: scale(0.9);
  }
}

/* Hide desktop footer on mobile, show mobile footer */
@media (min-width: 769px) {
  .mobile-footer {
    display: none;
  }
}

/* ===== MOBILE LOADING SKELETON ===== */
@media (max-width: 768px) {
  .skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: mobile-skeleton 1.5s ease-in-out infinite;
    border-radius: var(--mobile-radius-sm);
  }

  @keyframes mobile-skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }
}

/* ===== MOBILE ANIMATIONS ===== */
@media (max-width: 768px) {
  @keyframes mobile-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }

  @keyframes mobile-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes mobile-scale-in {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }

  .mobile-animate-in {
    animation: mobile-slide-up 0.4s ease-out;
  }

  .mobile-fade-in {
    animation: mobile-fade-in 0.3s ease-out;
  }

  .mobile-scale-in {
    animation: mobile-scale-in 0.3s ease-out;
  }
}

/* ===== MOBILE DARK MODE SUPPORT ===== */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
  :root {
    --mobile-color-bg: #0f172a;
    --mobile-color-surface: #1e293b;
  }

  .mobile-bottom-nav {
    background: rgba(15, 23, 42, 0.95);
    border-top-color: rgba(255, 255, 255, 0.06);
  }

  .mobile-header {
    background: rgba(15, 23, 42, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.04);
  }

  .mobile-bottom-sheet {
    background: #1e293b;
  }

  .mobile-search-overlay {
    background: #0f172a;
  }

  .mobile-search-input {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
  }

  .mobile-toast {
    background: #1e293b;
    color: #f1f5f9;
  }
}

/* ===== FIX DISTORTED SWIPER CAROUSEL BULLETS ON MOBILE ===== */
@media (max-width: 768px) {
  /* Swiper pagination container */
  .swiper-pagination {
    position: relative !important;
    margin-top: 0.75rem;
    bottom: auto !important;
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  /* ALL bullet bases — force perfect circle + fixed size */
  .swiper-pagination-bullet,
  .swiper-pagination-bullet-active,
  .hero-carousel .swiper-pagination-bullet,
  .hero-carousel .swiper-pagination-bullet-active,
  [class*="carousel"] .swiper-pagination-bullet,
  [class*="carousel"] .swiper-pagination-bullet-active,
  [class*="slider"] .swiper-pagination-bullet,
  [class*="slider"] .swiper-pagination-bullet-active,
  .notes-pagination .swiper-pagination-bullet,
  .notes-pagination .swiper-pagination-bullet-active,
  .blog-pagination .swiper-pagination-bullet,
  .blog-pagination .swiper-pagination-bullet-active {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    max-height: 8px !important;
    border-radius: 50% !important;
    margin: 0 3px !important;
    opacity: 0.35;
    background: var(--color-primary, #0B6E99) !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0;
  }

  /* Active bullet — pill shape */
  .swiper-pagination-bullet-active,
  .hero-carousel .swiper-pagination-bullet-active,
  [class*="carousel"] .swiper-pagination-bullet-active,
  [class*="slider"] .swiper-pagination-bullet-active,
  .notes-pagination .swiper-pagination-bullet-active,
  .blog-pagination .swiper-pagination-bullet-active {
    width: 20px !important;
    height: 8px !important;
    min-height: 8px !important;
    max-height: 8px !important;
    border-radius: 9999px !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, var(--color-primary, #0B6E99), var(--color-accent, #8B5CF6)) !important;
  }

  /* Fix swiper container overflow */
  .swiper, .swiper-container {
    overflow: clip !important;
    padding-bottom: 0 !important;
  }

  /* Fix carousel card overflow */
  .swiper-slide {
    overflow: hidden;
    border-radius: var(--mobile-radius);
  }

  /* Hide arrows on mobile */
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }

  /* Ensure proper positioning */
  .swiper-horizontal > .swiper-pagination-bullets,
  .swiper-pagination-horizontal {
    bottom: auto !important;
    top: auto !important;
  }
}
