/*
Theme Name: JANHITKARI
Description: Responsive stylesheet for JANHITKARI Theme
*/

/* ==========================================================================
   Max Width: 1320px
   ========================================================================== */
@media (max-width: 1320px) {
    .ads-gutter {
        display: none !important;
    }
}

/* ==========================================================================
   Max Width: 1023px (Tablets)
   ========================================================================== */
@media (max-width: 1023px) {
    .adsBox.desktop-ad {
        display: none;
    }
    .adsBox.mobile-ad {
        display: block;
    }
    
    .header {
        width: 100%;
        padding: 0;
    }
    
    .header-menu {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .MainLMenu ul {
        display: inline-flex;
    }
    
    .MainRMenu {
        display: none;
    }
    
    .firstImg:not(.row) li {
        width: 100%;
        margin-bottom: 16px;
    }
    .firstImg:not(.row) figure {
        height: auto;
    }
    .firstImg:not(.row) figure img {
        height: auto;
    }
    
    .commonList:not(.row) {
        display: flex;
        flex-direction: column;
        margin: 0;
        gap: 0;
    }
    .commonList:not(.row) li {
        width: 100%;
        flex: 0 0 auto;
        border-left: none;
        border-bottom: 1px solid #f3f3f3;
        padding: 16px 0;
        flex-direction: row;
        align-items: center;
    }
    .commonList:not(.row) li:last-child {
        border-bottom: none;
    }
    .commonList:not(.row) li figure {
        width: 120px;
        height: 80px;
        margin-bottom: 0;
        margin-right: 16px;
        flex-shrink: 0;
    }
    .commonList:not(.row) li .h3 {
        height: auto;
        font-size: 0.875rem;
    }
    
    .commonList.categoryp1 li {
        width: 48%;
        flex: 0 0 48%;
        margin-right: 2%;
        border: none;
        border-bottom: 1px solid #f3f3f3;
        flex-direction: column;
    }
    .commonList.categoryp1 li:nth-child(even) {
        margin-right: 0;
    }
    .commonList.categoryp1 li figure {
        width: 100%;
        height: auto;
        margin-bottom: 8px;
    }
    
    .leftSection:not([class*="col-"]) {
        width: 100%;
        float: none;
        margin-bottom: 32px;
    }
    .rightSection:not([class*="col-"]) {
        width: 100%;
        float: none;
    }
    
    .sidebar {
        padding-left: 0;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Max Width: 980px
   ========================================================================== */
@media (max-width: 980px) {
    .container {
        padding: 0 16px;
        width: 100%;
    }
    
    .footer-col {
        width: 48%;
        margin-bottom: 32px;
    }
    
    .menuLinks .column {
        width: 31%;
    }
    
    .article-header h1 {
        font-size: 24px;
        line-height: 36px;
    }
}

/* ==========================================================================
   Max Width: 768px (Mobile Devices)
   ========================================================================== */
@media (max-width: 768px) {
    header {
        height: auto;
        margin-bottom: 0;
    }
    .header {
        height: auto;
    }
    
    .logo-main {
        font-size: 20px;
    }
    .choose-state {
        gap: 8px;
    }
    .choose-state span.choose-state1 a {
        font-size: 12px;
    }
    
    .hdr-topmenu li.epaperlinkL,
    .hdr-topmenu li.videoL,
    .hdr-topmenu li.trendingL {
        display: none;
    }
    
    .hdr-topmenu li {
        padding: 0 4px;
    }
    
    .search_popupon .close-popup {
        top: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
    .search_popupon .search_col {
        width: 95%;
        padding: 0 8px;
    }
    .search-modal-title {
        font-size: 20px;
    }
    .search-modal-desc {
        font-size: 12px;
        margin-bottom: 16px;
    }
    .search-modal-form input {
        font-size: 16px;
        padding: 4px 0;
    }
    
    .menuLinks .column {
        width: 48%;
    }
    
    .topicList li {
        flex-direction: column;
    }
    .proimg {
        width: 100%;
        height: auto;
        margin-bottom: 16px;
    }
    .protxt {
        width: 100%;
        padding-left: 0;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .ticker-label {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

/* ==========================================================================
   Max Width: 580px
   ========================================================================== */
@media (max-width: 580px) {
    .MainLMenu ul li a {
        padding: 0 8px;
        font-size: 0.75rem;
    }
    
    .footer-col {
        width: 100%;
        margin-bottom: 32px;
    }
    
    .commonList.categoryp1 li {
        width: 100%;
        flex: 0 0 100%;
        margin-right: 0;
        flex-direction: row;
        align-items: center;
    }
    .commonList.categoryp1 li figure {
        width: 120px;
        height: 80px;
        margin-bottom: 0;
        margin-right: 16px;
        flex-shrink: 0;
    }
    
    .article-header h1 {
        font-size: 20px;
        line-height: 32px;
    }
    .article-content {
        font-size: 1rem;
        line-height: 1.7rem;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    .author-avatar {
        margin-right: 0;
        margin-bottom: 16px;
    }
}

/* ==========================================================================
   Max Width: 480px
   ========================================================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
        width: 100%;
    }
    
    .menuLinks .column {
        width: 100%;
    }
    
    .trandingList li {
        width: auto;
        padding: 0 12px;
        white-space: nowrap;
    }
    
    .commonList:not(.row) li figure,
    .commonList.row .commonList-thumb figure {
        width: 95px;
        height: 64px;
    }
    .commonList li .h3 {
        font-size: 0.875rem;
    }
    
    .auth-page {
        margin: 32px 16px;
        padding: 24px 16px;
    }
    .auth-page h2 {
        font-size: 1.5rem;
    }
}
