:root {
  --primary-dark-blue: #003580;
  --primary-blue: #1E3A8A;
  --light-blue: #e6f0ff;
  --lighter-blue: #f0f8ff;
  --white: #ffffff;
}

/* Force proper scrolling on all devices — critical for mobile */
html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  height: 100%;
}

body {
  background-color: var(--white);
  color: #333;
  font-family: 'Cairo', sans-serif;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

/* Ensure main container never blocks scrolling */
main.container-fluid,
main.container {
  overflow: visible !important;
  min-height: auto !important;
}

/* Fix for Bootstrap container on mobile to never clip content */
.container, .container-fluid {
  overflow: visible;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-dark-blue);
  border-color: var(--primary-dark-blue);
}
.btn-primary:hover {
  background-color: #00275c;
  border-color: #00275c;
}

.bg-primary {
  background-color: var(--primary-dark-blue) !important;
}

.btn-outline-primary {
  color: var(--primary-dark-blue);
  border-color: var(--primary-dark-blue);
}
.btn-outline-primary:hover {
  background-color: var(--primary-dark-blue);
  border-color: var(--primary-dark-blue);
  color: white;
}

a {
  color: var(--primary-dark-blue);
}

/* Cards */
.card {
  border: 1px solid #dee2e6;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 53, 128, 0.15);
}
.card-header {
  background-color: var(--primary-dark-blue);
  color: white;
  border-bottom: none;
}
.card-title {
  color: var(--primary-dark-blue);
}

/* Service cards specific */
.service-card {
  border-top: 4px solid var(--primary-blue);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  position: relative;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 53, 128, 0.2);
}
.service-card .icon-wrapper {
  font-size: 3.5rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}
.service-card .cost-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-dark-blue));
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}

/* Text colors */
.text-primary {
  color: var(--primary-dark-blue) !important;
}
.bg-light-blue {
  background-color: var(--light-blue);
}
.bg-lighter-blue {
  background-color: var(--lighter-blue);
}

.hero {
  background: linear-gradient(135deg, #111b3d 0%, #5333b4 60%, #d946ef 100%);
  color: #f8fcff;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://source.unsplash.com/featured/?technology,abstract') no-repeat center center/cover;
  opacity: 0.15;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
}
.hero .lead {
  font-size: 1.5rem;
  opacity: 0.95;
}
@media (max-width: 768px) {
  .hero { padding-top: 3rem; }
  .hero-highlights { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

/* How It Works */
.step-card {
  border: none;
  background: var(--lighter-blue);
  padding: 2rem;
  border-radius: 12px;
  height: 100%;
  transition: transform 0.3s;
}
.step-card:hover {
  transform: translateY(-5px);
  background: white;
  box-shadow: 0 8px 20px rgba(0, 53, 128, 0.1);
}
.step-icon {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

/* Testimonials */
.testimonial-card {
  border-left: 4px solid var(--primary-blue);
  background: var(--lighter-blue);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 53, 128, 0.1);
  background: white;
}
.testimonial-author {
  font-weight: bold;
  margin-top: 1rem;
  color: var(--primary-blue);
}

/* Footer */
.footer {
  background-color: var(--primary-dark-blue);
  color: #e0e0e0;
  padding: 3rem 0 2rem;
}
.footer a {
  color: #e0e0e0;
  text-decoration: none;
}
.footer a:hover {
  color: white;
  text-decoration: underline;
}
.footer .social-icons a {
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: color 0.2s;
}
.footer .social-icons a:hover {
  color: white;
}

/* Navbar */
.navbar {
  background-color: rgba(0, 0, 0, 0.85) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.navbar-brand {
  font-size: 1.8rem;
  font-weight: 800;
  transition: transform 0.2s, opacity 0.2s;
}
.navbar-brand:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  transition: color 0.2s;
  padding-bottom: 0.3rem;
  position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: white !important;
}
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.7);
}
.navbar-toggler-icon {
  filter: invert(1);
}

/* Navbar scroll effect */
.navbar-scrolled {
  background-color: var(--primary-dark-blue) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s, box-shadow 0.3s;
}

/* Enhanced button animations */
.btn {
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ===== Floating AI Chat Icon ===== */
.floating-chat-btn {
  position: fixed;
  top: 100px;
  left: 20px;
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark-blue), #0057b8, #0071c2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 53, 128, 0.4);
  z-index: 1001;
  cursor: pointer;
  border: 3px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: chatPulse 2.5s ease-in-out infinite;
  overflow: hidden;
  text-decoration: none !important;
}
.floating-chat-btn::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.2), transparent, rgba(255,255,255,0.2), transparent);
  animation: chatSpin 4s linear infinite;
  z-index: -1;
}
.floating-chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(0, 53, 128, 0.55);
  animation: none;
}
.floating-chat-btn .chat-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark-blue), #0057b8, #0071c2);
  border-radius: 50%;
  padding: 12px;
  z-index: 1;
}
.floating-chat-btn .chat-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: brightness(1.1);
}
.floating-chat-btn .chat-icon-wrap i {
  font-size: 2.2rem;
  color: #fff;
}
.floating-chat-btn .chat-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ff4757;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  animation: chatBadgeBounce 2s ease-in-out infinite;
}
.floating-chat-btn .chat-tooltip {
  position: absolute;
  left: 95px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 53, 128, 0.95);
  color: #fff;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  transform: translateY(-50%) translateX(-10px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.floating-chat-btn:hover .chat-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}
.floating-chat-btn .chat-ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  animation: chatRipple 2.5s ease-out infinite;
  pointer-events: none;
}
.floating-chat-btn .chat-ripple:nth-child(2) {
  animation-delay: 1.2s;
}

@keyframes chatPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(0, 53, 128, 0.4); }
  50% { box-shadow: 0 8px 40px rgba(0, 53, 128, 0.6), 0 0 50px rgba(0, 87, 184, 0.3); }
}
@keyframes chatSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes chatBadgeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
@keyframes chatRipple {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-dark-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 53, 128, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 1000;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background-color: #00275c;
  transform: scale(1.1);
}

/* Enhanced card glow */
.card.glow:hover {
  box-shadow: 0 15px 35px rgba(0, 53, 128, 0.2);
}

/* Smooth underline animation for nav links */
.navbar-nav .nav-link {
  position: relative;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .table-responsive {
    font-size: 0.9rem;
  }
  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }
  .navbar-nav {
    padding-top: 1rem;
  }
  .navbar-nav .nav-link {
    padding-left: 0;
  }
  .hero {
    padding: 3rem 0;
  }
}

@media (max-width: 576px) {
  .service-card .icon-wrapper i {
    font-size: 2.5rem;
  }
  .card-body {
    padding: 1.5rem;
  }
  .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Chatbot button */
.btn-chat {
  background-color: var(--primary-blue);
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 53, 128, 0.3);
}
.btn-chat:hover {
  background-color: var(--primary-dark-blue);
  transform: scale(1.05);
}

/* Global polish */
body {
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}
.container, .container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}
.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (max-width: 768px) {
  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}
.shadow-subtle {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* File Upload Styling */
.file-upload-wrapper {
  margin-bottom: 1rem;
}
.file-upload-area {
  border: 2px dashed var(--primary-blue);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--lighter-blue);
}
.file-upload-area:hover {
  background-color: #e3f2fd;
  border-color: var(--primary-dark-blue);
}
.file-list {
  font-size: 0.9rem;
}

/* Utility */
.rounded-lg {
  border-radius: 12px;
}
.shadow-lg {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Drag‑over state for file upload */
.file-upload-area.dragover {
  background-color: var(--primary-dark-blue) !important;
  border-color: var(--primary-dark-blue) !important;
  border-style: solid;
  color: white;
}
.file-upload-area.dragover i,
.file-upload-area.dragover p,
.file-upload-area.dragover small {
  color: white !important;
}

/* Selected package in charge balance modal */
.selected-package {
  border-width: 3px !important;
  background-color: rgba(0, 53, 128, 0.05) !important;
}
.hover-shadow {
  transition: transform 0.3s, box-shadow 0.3s;
}
.hover-shadow:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Profile avatar placeholder */
.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E3A8A, #3B82F6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0 auto;
}

/* Gradient background for card headers */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-dark-blue) 0%, var(--primary-blue) 100%) !important;
}

/* Consultation modal scroll */
#modalResponse {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'Cairo', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive adjustments for two‑column layout */
@media (max-width: 992px) {
  .col-lg-8, .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ========================
   ADMIN PANEL STYLES
======================== */

/* Admin Sidebar */
.admin-sidebar {
  width: 250px;
  z-index: 1000;
}
.admin-sidebar .nav-link {
  border-radius: 8px;
  margin-bottom: 5px;
  transition: all 0.2s;
}
.admin-sidebar .nav-link:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Admin Main Content */
.admin-main-content {
  margin-right: 250px;
  padding: 20px;
  transition: margin-right 0.3s ease;
}
@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }
  .admin-main-content {
    margin-right: 0;
  }
  .sidebar-overlay {
    display: block !important;
  }
}

/* Border-left colors for stats cards */
.border-left-primary {
  border-left: 0.25rem solid var(--primary-dark-blue) !important;
}
.border-left-success {
  border-left: 0.25rem solid #28a745 !important;
}
.border-left-info {
  border-left: 0.25rem solid #17a2b8 !important;
}
.border-left-warning {
  border-left: 0.25rem solid #ffc107 !important;
}
.border-left-danger {
  border-left: 0.25rem solid #dc3545 !important;
}

/* Admin card enhancements */
.admin-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.admin-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 53, 128, 0.15);
}
.admin-card .card-header {
  background-color: var(--primary-dark-blue);
  color: white;
  border-bottom: none;
}

/* Legal helper page */
.legal-hero {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.2), transparent 55%), #06103a;
  position: relative;
}
.legal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1600&q=80') no-repeat center/cover;
  opacity: 0.14;
}
.legal-hero-content {
  position: relative;
  z-index: 2;
}
.legal-stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  min-height: 150px;
  transition: transform 0.3s ease;
}
.legal-stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.6);
}
.legal-hero .badge {
  font-size: 1rem;
}
.list-step {
  list-style: decimal;
  padding-left: 1.5rem;
  color: #1f2a4e;
}
.faq-section {
  margin-bottom: 1rem;
}
.legal-resource {
  padding: 1rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}
.legal-resource:last-child {
  border-bottom: none;
}
.file-upload-area.dragover {
  border-color: #0ea5e9;
  background: rgba(14, 165, 233, 0.12);
}
.legal-resource h6 {
  margin-bottom: 0.25rem;
}
.legal-resource p {
  margin-bottom: 0.25rem;
}
.legal-result-card {
  background: #fdfdfd;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
}
.legal-hero h1 {
  letter-spacing: 1px;
}

/* Table enhancements for admin */
.admin-table th {
  background-color: var(--primary-dark-blue);
  color: white;
  border-color: var(--primary-dark-blue);
}
.admin-table td {
  vertical-align: middle;
}

/* Status badges */
.badge-admin {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}
.secondary-links a {
  text-transform: uppercase;
  font-weight: 600;
}

/* ========================
 COMPREHENSIVE MOBILE RESPONSIVENESS
 ======================== */

/* Fix floating chat button on mobile — smaller, positioned bottom-left to avoid navbar */
@media (max-width: 768px) {
.floating-chat-btn {
  top: auto !important;
  bottom: 24px;
  left: 16px;
  width: 60px;
  height: 60px;
  z-index: 9999;
}
.floating-chat-btn .chat-icon-wrap {
  padding: 10px;
}
.floating-chat-btn .chat-icon-wrap i {
  font-size: 1.5rem;
}
.floating-chat-btn .chat-tooltip {
  display: none !important;
}
.floating-chat-btn .chat-badge {
  width: 20px;
  height: 20px;
  font-size: 0.55rem;
  top: -2px;
  right: -2px;
}
}

/* Hero section — reduce vertical padding on mobile */
@media (max-width: 768px) {
.booking-hero {
  padding-top: 2.5rem !important;
  padding-bottom: 2rem !important;
  border-bottom-left-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
}
.booking-hero .display-4 {
  font-size: calc(1.3rem + 1.5vw);
}
.booking-hero .lead {
  font-size: 0.95rem;
}
.booking-hero .hero-logo-badge {
  padding: 10px 14px !important;
}
.booking-hero .hero-logo-badge img {
  max-height: 60px !important;
}
}

/* Hero highlights — more compact on mobile */
@media (max-width: 768px) {
.hero-highlights {
  margin-top: 1rem !important;
  gap: 0.65rem;
}
.hero-highlight-card {
  padding: 0.85rem 1rem !important;
}
.hero-highlight-card h5 {
  font-size: 0.85rem !important;
}
.hero-highlight-card p {
  font-size: 0.75rem !important;
}
.hero-highlight-card i {
  font-size: 1.3rem !important;
}
}

/* Hero promo strip — compact on mobile */
@media (max-width: 576px) {
.hero-promo-strip {
  padding: 1rem !important;
  margin-top: 1rem !important;
}
.hero-promo-strip .fw-semibold {
  font-size: 1rem !important;
  text-align: center;
}
}

/* Global banners — reduce min-height on mobile */
@media (max-width: 576px) {
.global-banners .banner-card {
  min-height: 160px;
}
.global-banners .banner-card h4 {
  font-size: 1.1rem;
}
.global-banners .banner-card p {
  font-size: 0.85rem;
}
.global-banners .banner-content {
  padding: 0.9rem !important;
}
}

/* Service cards — better spacing on mobile */
@media (max-width: 576px) {
.services-section-enhanced .service-card .card-body {
  padding: 1.25rem !important;
}
.services-section-enhanced .service-card .card-title {
  font-size: 1.1rem;
}
.services-section-enhanced .service-card .card-text {
  font-size: 0.85rem;
}
.services-section-enhanced .service-banner {
  padding: 0.85rem !important;
  min-height: 90px !important;
}
.services-section-enhanced .service-banner h5 {
  font-size: 0.95rem;
}
.services-section-enhanced .banner-icon i {
  font-size: 2rem !important;
}
.services-section-enhanced .cost-badge {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
}
}

/* Package cards on mobile */
@media (max-width: 576px) {
.package-card .card-body {
  padding: 1rem !important;
}
.package-card .card-title {
  font-size: 1rem;
}
.package-card .card-img-top {
  height: 120px !important;
}
}

/* About section stats cards — compact on small screens */
@media (max-width: 576px) {
section.py-5[style*="background: linear-gradient(135deg, #0f172a"] .p-4 {
  padding: 0.9rem !important;
}
section.py-5[style*="background: linear-gradient(135deg, #0f172a"] .display-4 {
  font-size: 1.8rem;
}
section.py-5[style*="background: linear-gradient(135deg, #0f172a"] .lead {
  font-size: 0.95rem;
}
section.py-5[style*="background: linear-gradient(135deg, #0f172a"] .display-5 {
  font-size: 1.6rem;
}
section.py-5[style*="background: linear-gradient(135deg, #0f172a"] .d-flex.flex-wrap.gap-3 > div {
  font-size: 0.85rem;
}
}

/* How it works step cards on mobile */
@media (max-width: 576px) {
.step-card h4 {
  font-size: 1.05rem;
}
.step-card p {
  font-size: 0.85rem;
}
}

/* Testimonials on mobile */
@media (max-width: 576px) {
.testimonial-card {
  padding: 1rem;
  font-size: 0.85rem;
}
}

/* Game banners on mobile — more compact */
@media (max-width: 576px) {
.bus-game-banner,
.piano-game-banner {
  padding: 1.25rem !important;
}
.bus-game-banner h3,
.piano-game-banner h3 {
  font-size: 1.15rem;
}
.bus-game-banner p,
.piano-game-banner p {
  font-size: 0.85rem;
}
.bus-game-banner .btn-lg,
.piano-game-banner .btn-lg {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}
}

/* Featured service banners (PDF, YouTube, AI Video) on mobile */
@media (max-width: 576px) {
.card[style*="background: linear-gradient(135deg, #059669"] .card-body,
.card[style*="background: linear-gradient(135deg, #ef4444"] .card-body,
.card[style*="background: linear-gradient(135deg, #7c3aed"] .card-body {
  padding: 1.25rem !important;
}
.card[style*="background: linear-gradient(135deg, #059669"] h3,
.card[style*="background: linear-gradient(135deg, #ef4444"] h3,
.card[style*="background: linear-gradient(135deg, #7c3aed"] h3 {
  font-size: 1.15rem;
}
.card[style*="background: linear-gradient(135deg, #059669"] p,
.card[style*="background: linear-gradient(135deg, #ef4444"] p,
.card[style*="background: linear-gradient(135deg, #7c3aed"] p {
  font-size: 0.85rem;
}
.card[style*="background: linear-gradient(135deg, #059669"] .btn-lg,
.card[style*="background: linear-gradient(135deg, #ef4444"] .btn-lg,
.card[style*="background: linear-gradient(135deg, #7c3aed"] .btn-lg {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  width: 100%;
}
}

/* Navbar mobile improvements */
@media (max-width: 991.98px) {
.main-navbar .navbar-collapse {
  background: linear-gradient(180deg, #003580 0%, #0057b8 55%, #0071c2 100%);
  border-radius: 0 0 1rem 1rem;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
}
.main-navbar .nav-link {
  padding: 0.5rem 0.75rem !important;
  border-radius: 0.5rem;
}
.main-navbar .navbar-cta {
  display: inline-block;
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}
.main-navbar .nav-chip {
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
}
}

/* Back to top — better on mobile */
@media (max-width: 576px) {
.back-to-top {
  bottom: 90px;
  right: 16px;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
}
}

/* Very small phones (320px-400px) */
@media (max-width: 400px) {
.booking-hero {
  padding-top: 2rem !important;
  padding-bottom: 1.5rem !important;
}
.booking-hero .display-4 {
  font-size: 1.4rem !important;
}
.booking-hero h1.display-4 {
  font-size: 1.3rem !important;
}
.hero-highlights {
  grid-template-columns: 1fr !important;
}
.hero-highlight-card {
  padding: 0.7rem 0.85rem !important;
}
.site-announcement {
  font-size: 0.75rem !important;
}
.site-announcement .badge {
  font-size: 0.6rem;
}
.main-navbar .navbar-brand {
  font-size: 0.95rem !important;
}
.navbar-logo {
  max-width: 180px;
  height: 38px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
}
.navbar-logo-wrap {
  min-height: 34px;
  padding: 0;
  background: transparent;
  border: none;
}
.home-gpt-section {
  padding: 1.25rem 0.5rem 1.5rem !important;
}

/* ========================
   CRITICAL MOBILE SCROLLING FIX
   ======================== */

/* Ensure the page can always scroll on mobile — override any hidden overflow */
@media (max-width: 991.98px) {
  html, body {
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    height: auto !important;
    min-height: 100vh;
  }
  
  /* Fix hero section not to clip page content */
  .hero {
    overflow: visible !important;
    overflow-x: hidden !important;
  }
  
  /* Remove any max-height that might clip content */
  main, .container-fluid, .container {
    max-height: none !important;
    overflow: visible !important;
  }
  
  /* Ensure all sections are fully displayed */
  section {
    overflow: visible;
  }
  
  /* Fix AOS library potential overflow conflict */
  [data-aos] {
    overflow: visible !important;
  }
}

/* Fix for very small screens (320px-400px) - ensure scroll never breaks */
@media (max-width: 400px) {
  body {
    overflow-y: auto !important;
    height: auto !important;
  }
  .hero {
    overflow: visible !important;
    overflow-x: hidden !important;
  }
}
.home-gpt-headline {
  font-size: 1rem !important;
}
.services-section-enhanced .service-card .icon-wrapper i {
  font-size: 2.5rem !important;
}
.services-section-enhanced .service-card .btn-lg {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  width: 100%;
}
.package-card .btn-primary {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
}
.floating-chat-btn {
  width: 52px;
  height: 52px;
  left: 12px;
  bottom: 20px;
}
.floating-chat-btn .chat-icon-wrap {
  padding: 8px;
}
.back-to-top {
  bottom: 80px;
  right: 12px;
  width: 40px;
  height: 40px;
  font-size: 1rem;
}
}
