/*===========================================
  1. CONTAINER & BASE
===========================================*/
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* Large desktops (≥1200px) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* Desktops (992px – 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
}

/* Tablets (768px – 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }
}

/* Smartphones (<768px) */
@media (max-width: 767.98px) {
  .container {
    max-width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }
}

/*===========================================
  2. HEADER (main header from partials/header)
===========================================*/
@media (max-width: 991.98px) {
  #mainHeader .header-content {
    flex-wrap: wrap;
    position: relative;
    color:#c00;
  }

  #mainNav {
    display: none;
    width: 100%;
    background: #3e2323;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    padding: 20px;
  }

  #mainNav.active {
    display: block;
  }

  #mainNav ul {
    flex-direction: column;
    gap: 0;
  }

  #mainNav ul li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  #mainNav ul li a {
    display: block;
    padding: 12px 15px;
  }

  .auth-buttons {
    flex-direction: column;
    margin-top: 15px;
    gap: 10px;
  }

  .auth-buttons button,
  .auth-buttons .apply-btn {
    width: 100%;
    text-align: center;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (min-width: 992px) {
  .mobile-menu-btn {
    display: none;
  }
  #mainNav {
    display: block !important; /* ensure it's visible on desktop */
  }
}

/*===========================================
  3. NEWS HEADER (extends the embedded styles)
===========================================*/
@media (max-width: 991.98px) {
  .news-main-nav .nav-content {
    flex-wrap: wrap;
  }
  .news-nav-list {
    display: none; /* hidden by default, toggled by mobile menu */
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .nav-actions {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .breaking-news-ticker {
    flex-direction: column;
    align-items: stretch;
  }
  .ticker-label {
    width: 100%;
    justify-content: center;
  }
  .ticker-content {
    width: 100%;
    overflow-x: auto;
  }
  .ticker-items {
    animation: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 5px 0;
  }
  .ticker-item {
    white-space: nowrap;
  }
}

/*===========================================
  4. MODALS – Responsive
===========================================*/
@media (max-width: 767.98px) {
  .modal {
    width: 95%;
    margin: 20px auto;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal .form-row {
    flex-direction: column;
  }
  .modal .form-group {
    margin-bottom: 15px;
  }
  .auth-toggle p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .modal-header h2 {
    font-size: 1.2rem;
  }
  .submit-auth, .submit-application {
    width: 100%;
  }
}

/*===========================================
  5. FOOTER – Stack columns on small devices
===========================================*/
@media (max-width: 767.98px) {
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
  .footer-column {
    width: 100%;
    text-align: center;
  }
  .footer-logo {
    justify-content: center;
  }
  .social-links {
    justify-content: center;
  }
  .contact-info li {
    justify-content: center;
  }
  .newsletter-form {
    max-width: 300px;
    margin: 0 auto;
  }
}

/*===========================================
  6. UTILITY CLASSES
===========================================*/
.d-none {
  display: none !important;
}
.d-block {
  display: block !important;
}
@media (max-width: 767.98px) {
  .d-sm-none {
    display: none !important;
  }
  .d-sm-block {
    display: block !important;
  }
}
/*===========================================
  RESPONSIVE LOGO - MAIN HEADER
===========================================*/
@media (max-width: 991.98px) {
  .logo .logo-icon {
    height: 50px !important;  /* override inline style */
    width: auto;
  }
  .logo .logo-text {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .logo .logo-icon {
    height: 40px !important;
  }
  .logo .logo-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .logo {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }
  .logo .logo-text {
    width: 100%;
    text-align: center;
  }
}

/*===========================================
  RESPONSIVE LOGO - NEWS HEADER
===========================================*/
@media (max-width: 991.98px) {
  .news-logo-image {
    max-height: 50px;
    width: auto;
  }
  .logo-main-text {
    font-size: 16px;
  }
  .logo-sub-text {
    font-size: 11px;
  }
}

@media (max-width: 767.98px) {
  .news-logo-link {
    flex-direction: column;
    text-align: center;
  }
  .logo-container {
    margin-bottom: 5px;
  }
  .news-logo-image {
    max-height: 45px;
  }
  .logo-main-text {
    font-size: 14px;
  }
  .logo-sub-text {
    font-size: 10px;
  }
}
