/* 
  Uni-Challenge Consultants - Responsive Breakpoints & Mobile Header Drawer
*/

/* Large Desktop (>= 1400px) */
@media (min-width: 1400px) {
  .main-navbar-sticky .container {
    max-width: 1440px !important;
  }

  .site-logo {
    max-width: 310px;
    max-height: 110px;
  }

  .navbar-nav {
    gap: 3px 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .navbar-nav .nav-link {
    font-size: 0.96rem !important;
    padding: 7px 9px !important;
    white-space: nowrap;
  }

  .btn-gold-nav {
    font-size: 0.90rem !important;
    padding: 8px 16px !important;
    white-space: nowrap !important;
  }

  .sinquest-nav-logo-only {
    height: 26px;
    padding: 2px 6px;
  }
}

/* Laptop / Standard Desktop (1200px - 1399px, including 1366px) */
@media (max-width: 1399.98px) and (min-width: 1200px) {
  .hero-headline-top {
    font-size: 3.2rem;
  }

  .hero-headline-yellow {
    font-size: 2.7rem;
  }

  .site-logo {
    max-width: 260px;
    max-height: 95px;
  }

  .navbar-nav {
    gap: 3px 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .navbar-nav .nav-link {
    font-size: 0.90rem !important;
    padding: 6px 7px !important;
    white-space: nowrap;
  }

  .btn-gold-nav {
    font-size: 0.86rem !important;
    padding: 7px 13px !important;
    white-space: nowrap !important;
  }

  .sinquest-nav-logo-only {
    height: 25px;
    padding: 2px 5px;
  }

  .top-header-bar {
    font-size: 0.80rem !important;
  }

  .top-contact-info a,
  .top-contact-info span {
    font-size: 0.80rem !important;
  }

  .top-contact-info {
    gap: 0.45rem !important;
  }
}

/* Tablet Landscape & Below (max-width: 1199px) */
@media (max-width: 1199px) {
  .site-logo {
    max-width: 230px;
    max-height: 80px;
  }

  .navbar-collapse {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 43, 73, 0.12);
    border: 1px solid var(--border-color);
    margin-top: 10px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .navbar-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    gap: 4px;
    width: 100%;
  }

  .navbar-nav .nav-link {
    width: 100%;
    font-size: 0.98rem !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    white-space: normal !important;
    border-radius: 6px;
  }

  .navbar-nav .nav-link::after {
    display: none !important;
  }

  .navbar-nav .nav-link.active {
    border-left: 4px solid var(--gold-primary) !important;
    padding-left: 18px !important;
    background: rgba(197, 160, 89, 0.08) !important;
    color: var(--gold-primary) !important;
    font-weight: 800 !important;
  }

  .btn-gold-nav {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding: 10px 16px !important;
    font-size: 0.95rem !important;
  }

  .hero-slider-section,
  .hero-slider-wrapper {
    min-height: 560px;
  }

  .hero-headline-top {
    font-size: 2.6rem;
  }

  .hero-headline-yellow {
    font-size: 2.2rem;
  }

  .hero-subtitle-text {
    font-size: 1.15rem;
  }

  .stat-item-col {
    padding: 14px 8px;
    gap: 10px;
  }

  .stat-icon-gold {
    font-size: 1.8rem;
  }

  .stat-number-gold {
    font-size: 1.3rem;
  }

  .stat-label-white {
    font-size: 0.65rem;
  }

  .b3-main-room-img {
    height: 220px;
  }

  .b3-thumb-img {
    height: 75px;
  }

  .b3-gold-brush-pill {
    font-size: 1.5rem;
  }
}

/* Tablet & Mobile Announcement Bar & Container Overflow Fix (max-width: 991px) */
@media (max-width: 991px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
  }

  .top-header-bar {
    padding: 8px 10px !important;
    text-align: center !important;
    overflow: hidden !important;
  }

  .top-contact-info {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px 12px !important;
    width: 100% !important;
    margin-bottom: 6px !important;
    text-align: center !important;
  }

  .top-contact-info a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    font-size: 0.78rem !important;
    margin-right: 0 !important;
  }

  .top-contact-info > span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: normal !important;
    text-align: center !important;
    word-break: break-word !important;
    max-width: 100% !important;
    width: 100% !important;
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
    margin-right: 0 !important;
  }

  .top-social-links {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 2px !important;
    text-align: center !important;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .site-section {
    padding-top: 45px;
    padding-bottom: 45px;
  }

  .site-logo {
    max-width: 140px;
  }

  /* Hero Slider Container on Mobile */
  .hero-uen-badge {
    font-size: 0.76rem;
    padding: 3px 12px;
    gap: 5px;
    margin-bottom: 0.75rem !important;
  }

  .hero-slider-section,
  .hero-slider-wrapper {
    height: auto !important;
    min-height: 520px;
  }

  .hero-slide {
    position: relative !important;
    height: auto !important;
    min-height: 520px;
    padding: 1.5rem 0 !important;
    display: none;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .hero-slide.active {
    display: flex !important;
    flex-direction: column;
  }

  /* Hero Banner 1 & Banner 2 Mobile Styling */
  .hero-headline-top {
    font-size: 2rem;
  }

  .hero-headline-yellow {
    font-size: 1.7rem;
  }

  .hero-subtitle-text {
    font-size: 1rem;
  }

  .btn-hero-solid-gold,
  .btn-hero-outline-gold {
    width: 100%;
    justify-content: center;
  }

  .stat-item-col {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .stat-item-col:nth-child(2) {
    border-right: none;
  }

  .hero-sub-p {
    font-size: 0.95rem;
  }

  /* Hero Banner 3 Mobile Responsive Rules */
  .hero-banner-3 {
    background-color: #ffffff !important;
    color: var(--navy-primary) !important;
    padding: 1.5rem 0 !important;
  }

  .hero-banner-3 h1.display-5 {
    font-size: 1.8rem !important;
  }

  .b3-gold-brush-pill {
    font-size: 1.3rem !important;
    padding: 2px 16px !important;
    margin-bottom: 0.8rem !important;
  }

  .b3-pills-row {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .b3-pill-item {
    width: 100% !important;
    min-height: auto !important;
    padding: 12px 14px !important;
    gap: 12px !important;
  }

  .b3-pill-title {
    font-size: 0.95rem !important;
    margin-bottom: 2px !important;
  }

  .b3-pill-subtext {
    font-size: 0.8rem !important;
  }

  .b3-navy-amenities-bar {
    height: auto !important;
    min-height: auto !important;
    padding: 12px 14px !important;
  }

  .b3-navy-amenities-bar .small {
    font-size: 0.7rem !important;
  }

  .b3-main-room-img {
    height: 180px !important;
  }

  .b3-thumb-img {
    height: 65px !important;
  }

  .b3-pricing-navy-card,
  .b3-audience-card {
    background: var(--navy-primary) !important;
    color: #ffffff !important;
    border: 1.5px solid var(--gold-primary) !important;
    padding: 12px 14px !important;
    margin-bottom: 4px !important;
  }

  .b3-card-title {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
  }

  .b3-price-num {
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  .b3-price-sub {
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
  }

  .b3-aud-text {
    font-size: 0.85rem !important;
    font-weight: 800 !important;
  }

  .b3-aud-icon {
    font-size: 1.3rem !important;
  }

  .b3-aud-badge {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.8rem !important;
  }

  .b4-main-title {
    font-size: 1.8rem !important;
  }

  .b4-we-are-text {
    font-size: 1.6rem !important;
  }

  .b4-polaroid-container {
    min-height: auto !important;
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
    max-width: 100% !important;
    margin: 1rem 0 !important;
  }

  .b4-polaroid-card {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 32% !important;
    padding: 4px 4px 12px 4px !important;
  }

  .b4-polaroid-card img {
    height: 90px !important;
  }

  /* Banner 5 Mobile Rules */
  .b5-main-word-navy {
    font-size: 2.2rem !important;
  }

  .b5-main-word-gold {
    font-size: 2rem !important;
  }

  .b5-feature-bar-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .b5-feature-box-col {
    padding: 10px 8px !important;
    border-right: none !important;
    border-bottom: 1.5px solid #cbd5e1 !important;
  }

  .b5-feature-box-col:nth-child(odd) {
    border-right: 1.5px solid #cbd5e1 !important;
  }

  .b5-feature-box-col:nth-child(3),
  .b5-feature-box-col:nth-child(4) {
    border-bottom: none !important;
  }

  .b5-feat-icon-box {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.98rem !important;
    margin-bottom: 6px !important;
  }

  .b5-feat-title {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.4px !important;
    margin-bottom: 4px !important;
  }

  .b5-feat-desc {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    max-width: 100% !important;
  }

  .b5-grid-img {
    height: 135px !important;
  }

  .b5-flag-circle-badge {
    width: 28px !important;
    height: 28px !important;
    font-size: 1rem !important;
  }

  .b5-flag-label {
    font-size: 0.55rem !important;
  }

  .slider-arrow-prev { left: 10px; }
  .slider-arrow-next { right: 10px; }

  .floating-whatsapp-btn {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    bottom: 15px;
    right: 15px;
  }

  .font-handwriting {
    font-size: 1.8rem;
  }

  .section-title-heading {
    font-size: 1.8rem;
  }
}

/* Small Smartphone Screens (375px - 430px) */
@media (max-width: 430px) {
  .site-logo {
    max-width: 125px;
  }

  .hero-headline-top {
    font-size: 1.6rem;
  }

  .hero-headline-yellow {
    font-size: 1.35rem;
  }

  .hero-banner-3 h1.display-5 {
    font-size: 1.5rem !important;
  }

  .b3-gold-brush-pill {
    font-size: 1.1rem !important;
  }

  .b3-main-room-img {
    height: 150px !important;
  }

  .b3-thumb-img {
    height: 55px !important;
  }
}

/* Service Pages & Header Responsive Enhancements */
@media (max-width: 991px) {
  .top-header-bar {
    width: 100% !important;
  }
  .top-contact-info span {
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
}

@media (max-width: 768px) {
  .service-eyebrow {
    font-size: 0.72rem !important;
    letter-spacing: 1px !important;
    white-space: normal !important;
    line-height: 1.4 !important;
  }

  .service-hero-title {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }

  .service-hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.4 !important;
  }

  .hero-feature-bar {
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
  }

  .hero-feature-pill {
    gap: 8px !important;
  }

  .hero-feature-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.85rem !important;
    flex-shrink: 0 !important;
  }

  .hero-feature-title {
    font-size: 0.82rem !important;
    line-height: 1.2 !important;
  }

  .hero-feature-sub {
    font-size: 0.7rem !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 480px) {
  .service-eyebrow {
    font-size: 0.68rem !important;
    letter-spacing: 0.8px !important;
  }
  .service-hero-title {
    font-size: 1.65rem !important;
  }
}

/* Header & Navigation Polish for All Screen Sizes */
.main-navbar-sticky {
  overflow-x: clip;
}

@media (min-width: 1200px) {
  .navbar-nav {
    flex-wrap: wrap;
    align-items: center;
  }
  
  /* When header items wrap on desktop/laptop, give proper spacing */
  .navbar-nav .nav-item {
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 1199.98px) {
  .main-navbar-sticky .navbar-toggler:focus {
    box-shadow: 0 0 0 2px var(--gold-primary) !important;
  }

  /* Dropdown inside mobile drawer */
  .navbar-collapse .nav-item.dropdown {
    position: static !important;
    width: 100% !important;
  }

  .navbar-collapse .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    border: none;
    background: #f8fafc;
    border-radius: 8px;
    padding: 6px 10px;
    margin-top: 4px;
    margin-bottom: 6px;
    box-shadow: none;
    transform: none !important;
  }

  .navbar-collapse .dropdown-item {
    padding: 8px 12px;
    font-size: 0.90rem;
    border-radius: 6px;
    white-space: normal;
  }

  .navbar-collapse .dropdown-submenu-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: 1px dashed var(--gold-primary);
    margin: 4px 0 6px 12px;
    background: #ffffff;
  }
}

/* Prevent Top Bar Text Collision & Overflow on Tablet and Mobile */
.top-header-bar {
  overflow-x: hidden;
  width: 100%;
}

/* Desktop Top Header Bar (min-width: 1200px) - Strict Single Row Matching index.html */
@media (min-width: 1200px) {
  .top-header-bar .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .top-header-bar .col-xl-9,
  .top-header-bar .col-lg-8 {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
  }
  .top-header-bar .col-xl-3,
  .top-header-bar .col-lg-4 {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    text-align: right !important;
  }
  .top-contact-info {
    display: flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    align-items: center !important;
  }
  .top-contact-info .d-inline-flex {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    align-items: center !important;
  }
  .top-contact-info a,
  .top-contact-info span,
  .top-contact-info .d-inline-flex span {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
  .top-social-links {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    align-items: center !important;
  }
}

@media (max-width: 1199.98px) {
  .top-contact-info {
    max-width: 100%;
  }

  .top-contact-info .d-inline-flex {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .top-contact-info .d-inline-flex i {
    flex-shrink: 0 !important;
  }

  .top-contact-info .d-inline-flex span {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .top-contact-info a.d-inline-flex {
    flex: 0 0 auto !important;
    width: auto !important;
  }

  .top-contact-info span.d-inline-flex {
    max-width: 100% !important;
  }

  .top-contact-info {
    flex-wrap: wrap !important;
    white-space: normal !important;
    justify-content: center !important;
    max-width: 100% !important;
  }
  .top-contact-info .d-inline-flex {
    justify-content: center !important;
    text-align: center !important;
  }
  .top-contact-info span.d-inline-flex {
    width: auto !important;
    max-width: 100% !important;
    display: inline-flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    text-align: left !important;
    gap: 6px !important;
  }
  .top-contact-info span.d-inline-flex i {
    margin-top: 3px !important;
    flex-shrink: 0 !important;
  }
  .top-contact-info a,
  .top-contact-info span {
    white-space: normal !important;
    word-break: break-word !important;
  }
  .top-header-bar .row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }
  .top-header-bar .col-xl-9,
  .top-header-bar .col-xl-3 {
    width: 100% !important;
    text-align: center !important;
  }
  .top-header-bar .top-contact-info,
  .top-header-bar .top-social-links {
    justify-content: center !important;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .top-header-bar .top-contact-info {
    font-size: 0.78rem;
    gap: 4px 8px !important;
  }
  .top-header-bar .top-social-links {
    gap: 6px !important;
  }
  .navbar-brand {
    margin-right: 0.5rem !important;
  }
  .site-logo {
    max-width: 145px !important;
    max-height: 44px !important;
  }
}

@media (max-width: 375px) {
  .site-logo {
    max-width: 130px !important;
    max-height: 40px !important;
  }
  .navbar-toggler {
    padding: 4px 6px !important;
  }
}



