  @media (max-width: 640px) {
    body{
        overflow-x: hidden;
    }
    main {
    max-width:100%;
    margin: 0 auto;
    padding: 0px 10px;
}
img{
    object-fit: cover;
}
            .header-grid {
                grid-template-columns: 1fr;
            }
            
            .header-menu {
              display: none;
            }
            
            .header-ticker-content {
                flex-direction: flex;
            }
            .header-controls-left {
    display: flex;
    gap: 10px;
}
.header-logo-container {
    width: 100px;
    height: 100px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
            .header-top-container {
                display: flex;
                flex-direction: column;
                align-items: start;
                gap: 10px;
            }
            .header-article-card {
 border-bottom: 0px solid #e0e0e0; 
            }
            .header-article-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0px;
    background-color: #e0e0e0;
}
.header-article-card {
    border-bottom: 0px solid #e0e0e0;
    position: relative;
    padding: 12px 0px;
}
  /* section1 */
        .section-1-container {
            grid-template-columns: 1fr;
            border: 0px solid #ddd;
        }
        .section-1-content-wrapper {
    display: grid;
    grid-template-columns: 1fr ;
    gap: 0px;
    margin-bottom: 0px;
}

.section-1-right {
    border-left: 0px solid #ddd;
}
.section-1-content-column p {
    margin-bottom: 5px;
    font-family: "Roboto", sans-serif;
}
.section-1-card {
    padding: 25px 0px 10px 0px;
}
.section-1-right {
    display: grid;
    grid-template-columns: 1fr;
}
.section-1-card:nth-child(odd) {
    border-right: 0px solid #ddd;
}
       
      /*section2  */
      .section-2-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
      }
      .section-2-card {
    padding: 25px 0px;
    border-right: 0px solid #ddd;
}
/* section3 */
.section-three-header {
    gap: 0px;
}
.section-1-hero-image {
    padding: 0px 0px 0px 0px;
}
.section-three-main {
    display: grid;
    grid-template-columns: 100% ;
    gap: 0;
    border-bottom: 0px solid #ddd;
}
.section-three-left {
    color: #333;
    padding: 30px 0px 0px 0px;
    border-right: 0px solid #ddd;
}
.section-three-center {
    padding: 30px 0px 0px;
    border-right: 0px solid #ddd;
}
.section-three-article-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 0px;
}
.section-three-right {
    padding: 30px 0px 0px 0px;
    background-color: white;
}
/* section4 */
.section4-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns:100%;
    gap: 0px;
    background-color: white;
}
.section4-left {
    padding: 30px 0px 30px 0px;
    border-right: 0px solid #ddd;
}
.section4-center {
    padding: 30px 0px;
    border-right: 0px solid #ddd;
}
.section4-featured-image img {
    width: 100%;
    height: 291px;
    display: block;
    object-fit: cover;
}
.section4-article-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 0px;
}
.section4-sidebar-card {
    margin-bottom: 0px;
    padding-bottom: 30px;
    border-bottom: 0px solid #ddd;
}
.section4-right-card-content {
    display: grid;
    grid-template-columns: 1fr ;
    gap: 0px;
    margin-top: 20px;
}
.section4-right {
    padding: 30px 0px 0px;
}
/* section 5 */
.section5-container {
    display: flex;
    flex-direction: column;
}
.section5-sidebar {
    width: 100%;
    background-color: white;
    padding: 0px 0px 0px 0px;
    border-right: 0px solid #ddd;
}
.section5-main-content {
    flex: 1;
    padding: 30px 0px 0px 0px;
}
.section5-hero-image {
    width: 100%;
    height: 100%;
    margin-bottom: 0px;
}
.section5-hero-image img {
    width: 100%;
    height: 300px;
    display: block;
}
.section5-article-content {
    display: flex;
    flex-direction: column;
    gap: 0px;
}
.section5-meta-info {
    font-size: 8px;
    text-transform: capitalize;
    color: #777;
    margin-bottom: 20px;
    font-family: "Roboto", sans-serif;
    display: flex;
    gap: 10px;
}
.section5-article-text {
    flex: 1;
    padding-top: 10px;
}
.left {
    margin-left: 120px;
    text-transform: capitalize;
}
.section5-related-articles {
    padding-left: 0px;
}
.section5-read-more {
    font-size: 14px;
    color: #000;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 20px;
}
.section5-container {
    border-top: 0px solid #e0e0e0;
}
.section6-title-wrapper {
    margin-bottom: 0px;
}
 }

/* section 6 */
  @media (max-width: 768px) {
            .section6-card {
                min-width: 100%;
                flex: 0 0 100%;
            }

            .section6-header {
                padding: 15px 20px;
            }
        }
        /* section 7*/
           @media (max-width: 768px) {
            .section7-article-content {
                flex-direction: row;
            }

            .section7-left-column,
            .section7-contributors,
            .section7-module7 {
                padding: 5px;
            }
            .section7-article {
    margin-bottom: 5px;
            }
            .section7-contributor-card {
    display: flex;
    gap: 30px;
    margin-top: 15px;
    max-width: 100%;
}
    .section7-contributor-image-wrapper {
        align-self:flex-start;
    }
    .section7-container{
        border-top: 0px solid rgb(217, 216, 216);
        border-bottom: 0px solid rgb(236, 232, 232);
    }
        }
        /* section8 */
           @media (max-width: 768px) {
            .section8-main-title {
                font-size: 32px;
            }
                .section8-article-column {
                    border-bottom: 0px solid #d4d4d4;
                }
                    .section7-left-column{
                        border-bottom: 0px solid #e8e8e8;
                    }

            .section8-subtitle {
                font-size: 13px;
            }

            .section8-article-column {
                padding: 0 0 0px 0;
            }
                .section8-article-column {
       
        padding: 0 0 0px 0;
        margin-bottom: 0px;
    }
            .section8-header {
    display: flex;
    align-items: center;
    padding: 25px 0;
    margin-bottom: 5px;
    gap: 0px;
}
.section8-featured-image {
    width: 100%;
    height: 506px;
    display: block;
    object-fit: cover;
}
/*  */
.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    background-color: #070707;
    padding-bottom: 40px;
    padding: 10px 10px 10px 10px;
}
.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items:flex-start;
    font-family: "Roboto", sans-serif;
    border-top: 1px solid #333;
    color: white;
    padding: 15px 0px;
align-items:flex-start;
gap: 20px;


    padding: 10px 10px 40px 10px;

}
      /* cat */
      .cat-one-container {
        gap: 20px;
      }
      .cat-two-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.cat-two-container {
    padding-top: 10px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 20px;
}
.cat-two-sidebar {
    width: 100%;
    flex-shrink: 0;
}
.cat-two-main-content {
    flex: 1;
    background: white;
    padding: 20px 15px 20px;
    border: 1px solid #e0e0e0;
    max-width: 100%;
    margin-bottom: 30px;

        }.cat-two-image {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
}
/* detail */
.detail-container {
    /* max-width: 870px; */
    margin: 0 auto;
    padding: 0 0px 50px;
}
.detail-header-wrapper {
    margin: 0 auto;
    padding: 0 0px;
}
.detail-quote-box {
    border-left: 2px solid #ddd;
    font-size: 12px;
}
.detail-2-avatar-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.detail-2-author-box {
    display: flex;
    gap: 30px;
    position: relative;
}
.detail-2-author-box::before {
    content: "";
    position: absolute;
    left: 22%;
    right: auto;
    width: 20px;
    top: 20%;
    height: 0.1px;
    background-color: #e0e0e0;
    transform: translateY(-50%);
}
.detail-2-author-box::after {
    content: "";
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 0.1px;
    background-color: #e0e0e0;
}
.detail-2-author-date {
    font-size: 12px;
    color: #616161;
    margin-bottom: 5px;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
}
.detail-2-author-name {
    font-family: "Playfair Display";
    text-transform: capitalize;
    line-height: 30px;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
}
.detail-2-author-bio {
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    font-size: 10px;
    line-height: 15px;
    color: #777;
    padding: 5px 0px;
}
.detail-2-author-section

 {
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    position: relative;
}
.detail-2-related-image {
    width: 100%;
    height: 112px;
    object-fit: cover;
    margin-bottom: 10px;
}
.detail-2-related-section {
    padding-bottom: 30px;
    margin-bottom: 0px;
}
button{
    color: #000;
    fill: #000;
}
    }  
/* Mobile styles */
@media (max-width: 768px) {
    .header-nav-container {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        /* padding: 10px 15px; */
    }
    
    /* Hide desktop menu items */
    .header-menu {
        display: none;
    }
    
    /* Hide desktop search button */
    .header-search-btn {
        display: none;
    }
    
    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        background: none;
        border: none;
        font-size: 12px;
        cursor: pointer;
        font-weight: 600;
        color: #333;
    }
    
    .menu-icon {
        font-size: 15px;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 17%;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        transition: right 0.3s ease;
        z-index: 9999;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .mobile-menu-overlay.active {
        right: 0;
    }
    
    /* Mobile Menu Header */
    .mobile-menu-header {
        display: flex;
        justify-content:end;
        align-items: center;
        padding: 15px 20px;
        gap: 10px;
        border-bottom: 1px solid #e0e0e0;
         font-family: "Roboto", Helvetica, Arial, sans-serif;
    }
    
    .mobile-menu-header span {
        font-size: 13px;
        font-weight: 600;
        color: #333;
    }
    
    .mobile-menu-close {
        background: none;
        border: none;
        font-size: 18px;
        cursor: pointer;
        color: #333;
        padding: 0;
        line-height: 1;
    }
    
    /* Mobile Menu List */
    .mobile-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
        flex: 1;
    }
    
    .mobile-menu-item {
      font-family: "Roboto", Helvetica, Arial, sans-serif;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 20px;
    }
    
    .mobile-menu-link {
        text-decoration: none;
        color: #333;
        font-size: 15px;
        font-weight: 500;
        flex: 1;
    }
    
    .dropdown-arrow {
        color: #d32f2f;
        font-size: 12px;
        margin-left: 10px;
    }
    
    /* Mobile Search Container */
    .mobile-search-container {
        padding: 20px;
        background-color: #f5f5f5;
        margin-top: auto;
    }
    
    .mobile-search-btn {
        display: block !important;
        background: #fff;
        border: 1px solid #ddd;
        padding: 12px;
        width: 100%;
        cursor: pointer;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
    
    .mobile-search-btn img {
        width: 24px;
        height: 24px;
    }
    /* Default menu link color - BLACK */
.mobile-menu-link {
    color: #000;
}

/* Active/Clicked menu item - RED */
.mobile-menu-link.active {
    color: #d32f2f;
}

/* Default dropdown arrow - BLACK */
.dropdown-arrow {
    color: #000;
}

/* Active dropdown arrow - RED */
.mobile-menu-item.active .dropdown-arrow {
    color: #d32f2f;
}
}
  @media (max-width: 768px) {
            .detail-title {
                font-size: 32px;
                line-height: 40px;
            }

            .detail-dropcap {
                font-size: 56px;
                line-height: 48px;
            }
            .detail-post-meta {
                    padding-top: 10px;
            }
        }