/* ==========================================================================
   News Portal Stylesheet - responsive.css
   ========================================================================== */

/* Extra Large Devices (Desktops) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Large Devices (Laptops) */
@media (max-width: 991.98px) {
    /* Main Layout fixes */
    .logo-area {
        padding: 15px 0;
        text-align: center;
    }
    .main-logo {
        font-size: 2rem;
    }

    .navbar-main .nav-link {
        padding: 10px 15px !important;
    }
    .navbar-main .nav-link::after {
        display: none; /* Hide hover line on mobile/tablet menu */
    }

    /* Hero section grid adjustments */
    .hero-card-large {
        aspect-ratio: 16/9;
        margin-bottom: 15px;
    }
    
    /* Horizontal card changes */
    .card-horizontal .card-img-wrapper {
        width: 40%;
    }
    .card-horizontal .card-content {
        width: 60%;
        padding: 10px;
    }
    
    /* Ad banner centering */
    .ad-728x90 {
        width: 100%;
        height: auto;
        min-height: 90px;
    }

    /* Admin wrap */
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show-sidebar {
        transform: translateX(0);
    }
    .admin-content-wrapper {
        margin-left: 0 !important;
    }
    .admin-topbar {
        padding: 0 15px;
    }
}

/* Medium Devices (Tablets) */
@media (max-width: 767.98px) {
    /* Ticker width adjustments */
    .breaking-title {
        padding: 0 10px;
        font-size: 0.8rem;
    }
    .breaking-title::after {
        display: none;
    }
    
    /* Card layouts stack */
    .card-horizontal {
        flex-direction: column;
    }
    .card-horizontal .card-img-wrapper {
        width: 100%;
        aspect-ratio: 16/9;
    }
    .card-horizontal .card-content {
        width: 100%;
        padding: 15px;
    }
    
    /* Hero overlays */
    .hero-card-large {
        aspect-ratio: 4/3;
    }
    .hero-card-large .card-img-overlay-custom h3 {
        font-size: 1.25rem;
    }
    
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-meta {
        font-size: 0.8rem;
    }
    .author-avatar {
        width: 32px;
        height: 32px;
    }

    /* Form editor toolbar wrapping */
    .rte-toolbar {
        gap: 2px;
    }
    .rte-btn-grp {
        margin-right: 0;
        padding-right: 3px;
    }
    .rte-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* Small Devices (Mobile Phones) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .main-logo {
        font-size: 1.75rem;
    }

    .hero-card-large {
        aspect-ratio: 1/1; /* Square ratio for very small devices */
    }

    .hero-card-large .card-img-overlay-custom {
        padding: 15px;
    }

    .hero-card-large .card-img-overlay-custom h3 {
        font-size: 1.1rem;
    }

    /* Pagination items scale */
    .pagination-custom .page-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    /* Detail page table scroll */
    .article-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
