/* ==========================================================================
   BMC EVENT MANAGEMENT SYSTEM - RESPONSIVE STYLESHEET
   Matching Image 8 layout for 1920px, 1440px, 1024px, 768px, 480px, 360px
   ========================================================================== */

@media (max-width: 992px) {
  .hero-slide-item {
    min-height: 420px;
    padding: 30px 0 60px;
  }
  .hero-slide-bg-cover {
    background-position: center center;
    opacity: 0.45; /* Soften background image on tablets so foreground text is 100% readable */
  }
  .hero-content-wrap {
    max-width: 100%;
    text-align: center;
  }
  .hero-lead-text {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-features-bar {
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-cta-buttons {
    justify-content: center;
  }
  .stats-bar-section {
    margin-top: -34px;
    margin-bottom: 24px;
  }
  .stats-unified-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 18px 20px;
  }
  .stat-metric-group:not(:last-child)::after {
    display: none;
  }
  .hero-slider-arrow {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
  .hero-slider-arrow.prev { left: 12px; }
  .hero-slider-arrow.next { right: 12px; }
  .upcoming-section-wrap,
  .categories-section-wrap,
  .how-it-works-wrap,
  .featured-event-wrap,
  .student-reviews-wrap,
  .newsletter-banner-section {
    padding: 18px 0 20px;
  }
  .section-heading-wrap,
  .events-header-row,
  .reviews-nav-header {
    margin-bottom: 18px;
  }
  .events-4col-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .categories-6col-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .how-steps-4col-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .how-connector-arrow {
    display: none;
  }
  .featured-event-box {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 22px 24px;
    gap: 20px;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .reviews-3col-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .newsletter-gradient-box {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 20px 24px;
  }
  .newsletter-left-info {
    flex-direction: column;
  }
  .footer-grid,
  .footer-5col-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .brand-logo {
    height: 56px;
    max-width: 220px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    height: 66px;
  }
  .brand-logo {
    height: 52px;
    max-width: 190px;
  }
  .hero-slide-item {
    min-height: 380px;
    padding: 24px 0 52px;
  }
  .hero-slide-bg-cover {
    background-image: var(--bg-mobile, var(--bg-desktop));
    background-position: center center;
    opacity: 0.35;
  }
  .hero-heading-main {
    font-size: 32px;
  }
  .stats-bar-section {
    margin-top: -28px;
  }
  .stats-unified-card {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px 18px;
    gap: 12px;
  }
  .upcoming-section-wrap,
  .categories-section-wrap,
  .how-it-works-wrap,
  .featured-event-wrap,
  .student-reviews-wrap,
  .newsletter-banner-section {
    padding: 16px 0 18px;
  }
  .section-heading-wrap,
  .events-header-row,
  .reviews-nav-header {
    margin-bottom: 16px;
  }
  .events-4col-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .categories-6col-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .how-steps-4col-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .nav-container {
    height: 64px;
    padding: 0 12px;
  }
  .brand-logo {
    height: 44px;
    width: auto;
    max-width: 150px;
  }
  .nav-actions {
    gap: 6px;
  }
  .btn-nav-login {
    display: none;
  }
  .btn-nav-register {
    padding: 6px 12px;
    font-size: 11.5px;
  }
  .hero-slide-item {
    padding: 18px 0 46px;
  }
  .hero-heading-main {
    font-size: 28px;
    line-height: 1.15;
  }
  .hero-cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .btn-hero-explore, .btn-hero-video {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }
  .events-4col-grid {
    grid-template-columns: 1fr;
  }
  .events-search-box,
  .events-status-box {
    min-width: 100% !important;
  }
  .categories-6col-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feat-thumb-item {
    flex: 0 0 82px;
  }
  .how-steps-4col-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .upcoming-section-wrap,
  .categories-section-wrap,
  .how-it-works-wrap,
  .featured-event-wrap,
  .student-reviews-wrap,
  .newsletter-banner-section {
    padding: 14px 0 16px;
  }
  .section-heading-wrap,
  .events-header-row,
  .reviews-nav-header {
    margin-bottom: 14px;
  }
  .featured-event-box {
    padding: 18px 16px;
    gap: 16px;
  }
  .newsletter-gradient-box {
    padding: 18px 16px;
  }
  .stats-bar-section {
    margin-top: -22px;
    margin-bottom: 16px;
  }
  .stats-unified-card {
    grid-template-columns: repeat(2, 1fr);
    padding: 12px 14px;
    gap: 10px;
    border-radius: 14px;
  }
  .stat-metric-group {
    padding: 2px 4px;
    gap: 8px;
  }
  .stat-circle-box {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .stat-val-bold {
    font-size: 16px;
  }
  .stat-lbl-sub {
    font-size: 10px;
  }
  .footer-grid,
  .footer-5col-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 20px;
  }
  .site-footer {
    padding: 26px 0 0;
  }
  .footer-social-row {
    flex-wrap: wrap;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 16px 0 24px;
  }
  .footer-bottom-left,
  .footer-bottom-center,
  .footer-bottom-right {
    width: 100%;
    text-align: center;
  }
  .footer-bottom-left {
    font-size: 11px;
    line-height: 1.4;
    word-break: break-word;
  }
  .footer-bottom-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 11.5px;
  }
  .footer-bottom-right {
    font-size: 11.5px;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    height: 40px;
    max-width: 130px;
  }
  .hero-slide-item {
    padding: 16px 0 42px;
  }
  .hero-heading-main {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.3px;
    word-break: normal;
  }
  .hero-lead-text {
    font-size: 13px;
    line-height: 1.5;
  }
  .hero-features-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .hero-feat-chip {
    padding: 6px 8px;
  }
  .btn-hero-explore, .btn-hero-video {
    width: 100%;
    justify-content: center;
  }
  .hero-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .featured-actions-row {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }
  .featured-actions-row .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .newsletter-form-right {
    flex-direction: column;
  }
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: #03040a;
  border-bottom: 2px solid #e11d48;
  padding: 20px;
  z-index: 999;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.mobile-nav-links a:hover {
  color: #facc15;
}

/* ==========================================================================
   PAGE-SPECIFIC COMPONENT RESPONSIVE FIXES
   ========================================================================== */

/* 1. Checkout Page */
@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

@media (max-width: 560px) {
  .checkout-panel {
    padding: 18px 16px !important;
    border-radius: 16px !important;
  }
  .checkout-app-pills {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}

/* 2. Registration Page */
@media (max-width: 768px) {
  .reg-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .form-card {
    padding: 22px 18px !important;
    border-radius: 16px !important;
  }
  #btn_proceed_payment {
    max-width: 100% !important;
  }
}

/* 3. Event Details Page */
@media (max-width: 768px) {
  .event-details-card-body {
    padding: 20px 18px !important;
  }
  .event-details-header-actions {
    flex-direction: column !important;
    width: 100% !important;
  }
  .event-details-header-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .instructions-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 4. Contact Page */
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  .contact-info-panel,
  .contact-form-panel {
    padding: 22px 18px !important;
  }
}

/* 5. Pass Presentation */
@media (max-width: 640px) {
  .pass-header-strip {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    text-align: center !important;
  }
  .pass-inner-grid {
    grid-template-columns: 1fr !important;
    padding: 18px 16px !important;
    gap: 20px !important;
  }
  .qr-col-wrap {
    border-left: none !important;
    border-top: 1px dashed #232342 !important;
    padding-left: 0 !important;
    padding-top: 20px !important;
  }
  .pass-actions-row .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* 6. My Passes Lookup & Payment Success */
@media (max-width: 560px) {
  .lookup-card,
  .success-details-card {
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }
  .success-details-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .success-actions-row .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* 7. Admin Login */
@media (max-width: 480px) {
  .login-card {
    padding: 26px 18px !important;
    border-radius: 16px !important;
  }
}
