/**
 * DAS TECH SOLUTIONS - RESPONSIVE STYLES
 * Breakpoints: 1024px (Tablet/Desktop), 768px (Tablet/Mobile), 480px (Mobile)
 */

@media (max-width: 1024px) {
  .hero-featured-layout {
    grid-template-columns: 1fr;
  }

  .home-layout-wrapper {
    grid-template-columns: 1fr;
  }

  .three-column-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .four-column-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .top-bar-left {
    display: none; /* Keep top bar clean on mobile */
  }

  .top-bar-inner {
    justify-content: space-between;
  }

  .main-header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-center-ad {
    display: none; /* Hide header ad on small phones to save vertical space */
  }

  .header-right-actions {
    width: 100%;
    justify-content: space-between;
  }

  .header-search-form {
    width: 100%;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #9b0015;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    color: #fff;
  }

  .dropdown-menu {
    position: static;
    background-color: #800010;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
  }

  .dropdown-item {
    color: #f1f3f5;
    padding: 10px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .dropdown-item:hover, .dropdown-item.active {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--accent-gold);
  }

  .mobile-menu-btn {
    display: block;
  }

  .two-column-grid,
  .three-column-grid,
  .four-column-grid {
    grid-template-columns: 1fr;
  }

  .featured-side-layout {
    grid-template-columns: 1fr;
  }

  .feed-item {
    flex-direction: column;
  }

  .feed-thumb {
    width: 100%;
    height: 180px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .article-title-hero {
    font-size: 24px !important;
  }

  .article-container {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .brand-text h1 {
    font-size: 22px;
  }

  .hero-overlay h2 {
    font-size: 20px;
  }

  .breaking-badge {
    padding: 0 10px;
    font-size: 13px;
  }
}

/* Mobile Sticky Bottom Ad */
.mobile-sticky-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  z-index: 999;
  text-align: center;
  padding: 6px;
  border-top: 1px solid #ddd;
}

@media (min-width: 769px) {
  .mobile-sticky-ad {
    display: none !important;
  }
}


/* Responsive adjustments for Phase 4 layouts */
@media (max-width: 768px) {
  .split-card-item {
    grid-template-columns: 1fr;
  }
  .split-card-thumb {
    height: 180px;
  }
  .split-card-body {
    padding: 14px;
  }
  .mixed-news-grid {
    grid-template-columns: 1fr;
  }
  .large-featured-content h2 {
    font-size: 22px;
  }
  .carousel-nav-btn {
    display: none;
  }
}
