/* Responsive Design */
/* header */
.mobile-menubar-container {
    display: none;
}

.dropdown-list {
    display: none;
}


/* Responsive design */
@media (max-width: 480px) {
    body {
        overflow-x: hidden;
    }
  
    body {
    
    margin: 8px;
}

    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
    }

    .dropdown-list {
        display: flex;
        flex-direction: column;
    }

    .menuside-sidebar {
        position: fixed;
        top: 0px;
        left: -460px;
        width: 400px;
        height: 100vh;
        background-color: rgb(255, 255, 255);
        z-index: 1000;
        overflow-y: auto;
        font-family:Arial, Helvetica, sans-serif;
        border-right: 2px solid rgb(0, 0, 0);
        padding: 10px 40px;
        transition: left 0.3s;
    }

    .mobile-menubar-container {

        border: 0px solid #ddd;

        padding: 15px 20px;
        display: flex;
        justify-content: end;
        align-items: center;
        max-width: 100%;
        margin: 0 auto;
        margin: 0px;

    }

    .mobile-menubar-text {
        font-size: 40px;
        color: #333;
        font-weight: 500;
        letter-spacing: 0.5px;
        font-family:Arial, Helvetica, sans-serif;
    }

    .mobile-menubar-icon {
        cursor: pointer;
        padding: 5px;
        transition: all 0.3s ease;
    }



    .mobile-menubar-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 20px;
        height: 15px;
    }

    .mobile-menubar-line {
        width: 100%;
        height: 2px;
        background-color: #333;
        border-radius: 1px;
        transition: all 0.3s ease;
    }

    .mobile-menubar-line:nth-child(1) {
        width: 100%;
    }

    .mobile-menubar-line:nth-child(2) {
        width: 85%;
        align-self: flex-end;
    }

    .mobile-menubar-line:nth-child(3) {
        width: 100%;
    }

    /* Hover effect for the hamburger menu */
    .mobile-menubar-icon:hover .mobile-menubar-line {
        background-color: black;
    }

    /* Active state animation */
    .mobile-menubar-icon.mobile-menubar-active .mobile-menubar-line:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .mobile-menubar-icon.mobile-menubar-active .mobile-menubar-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menubar-icon.mobile-menubar-active .mobile-menubar-line:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
        width: 100%;
    }

    /* Dropdown Menu Styles */
    .dropdown-container {
        position: relative;
        display: inline-block;
        width: 100%;
    }

    .dropdown-item:first-child a {
        background-color: #000;
        color: #fff;
    }

    .dropdown-menu {
        position: absolute;
        top: 30%;
        left: 0;
        right: 0;
        background-color: white;
        border: 1px solid #ddd;
        border-top: none;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        max-height: 0;
        overflow: hidden;
    }

    .dropdown-menu.dropdown-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        max-height: 500px;
    }

    .dropdown-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .dropdown-item {
        border-bottom: 1px solid #f0f0f0;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-link {
        display: block;
        padding: 12px 20px;
        color: #333;
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        transition: background-color 0.2s ease;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .dropdown-link:hover {
        background-color: black;
        color: white;
    }

    .dropdown-expandable {
        position: relative;
    }

    .dropdown-expandable::after {
        content: '▼';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 10px;
        color: #666;
        transition: transform 0.3s ease;
    }

    .dropdown-expandable:hover::after {
        color: #000;
    }

    /* Responsive design */
    @media (max-width: 480px) {
        .mobile-menubar-container {
            margin: 0 10px;
            padding: 12px 15px;
        }


        .mobile-menubar-text {
            font-size: 13px;
        }

        .dropdown-menu {
            left: 0px;
            right: 0px;
        }
    }

    .mobile-menubar-container {
        margin: 0 0px;
        padding: 12px 15px;
    }

    .mobile-menubar-text {
        font-size: 15px;
    }
}

@media (max-width: 768px) {


    .header-container {
        width: 100%;
        margin: 0 auto;
        background-color: white;
    }

    .header-top-row {
        padding: 10px 20px;
        border-bottom: 1px solid rgb(165, 164, 164);
    }

    .header-main-content {
        flex-direction: column;
        text-align: center;
        padding-top: 5px;
        padding-left: 20px;
    }

    .header-quote-left,
    .header-quote-right {
        display: none;
    }

    .header-center-content {
        margin: 0;
        padding-bottom: 10px;
    }

    .header-title {
        font-size: 3rem;
    }

    .header-nav-list {
        flex-wrap: wrap;
    }

    .header-nav {
        border-bottom: none;
    }


    .header-nav-link {
        display: none;
    }

    .header-right-social .header-social-icon {
        display: none;
    }

    .header-divider-row {
        display: none;
    }

    .header-title img {
        width: 100%;
        height: 60px;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 2.5rem;
    }

    .header-nav-list {
        flex-direction: column;
    }

    .header-nav-link {
        border-bottom: 1px solid #333;
    }
}

/* section1 */
@media (max-width: 768px) {
    .section1-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding: 10px;
        order: 2;
       
    }


    .section1-left-panel,
    .section1-right-panel {
        flex-direction: column;
        width: 100%;
        margin: 0px;
    }

    .section1-main-caption {
        background-color: white;
        color: black;
        padding: 5px 10px;
    }

    .section1-left-panel {
        padding: 20px;
    }

    .section1-editor-profile {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        text-align: left;
    }

    .section1-editor-image {
        margin-right: 0px;
        margin-bottom: 5px;
        width: 100%;
         height: 300px;
         order: 1;
    }

    .section1-editor-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;

    }



    .section1-article {
        flex-direction: column;
    }

    .section1-article-image {
        width: 100%;
        height: 120px;
    }

    .section1-article-image img {
        width: 100%;
        height: 120px;
    }

    .section1-articles {
        flex: 1;
        display: flex;
        flex-direction: row;
        gap: 30px;
    }
}

/* section2 */
@media (max-width: 768px) {
    .section2-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
        order: 0;
        
    }
    .order{
        display:grid;
    }

    .section2-column {
        background: white;
        padding: 0px;
        border-radius: 8px;
    }

    .section2-main-article {
        background: white;
        padding: 0px;
        border-radius: 8px;
    }

    .section2-views {
        margin-left: auto;
        padding-left: 10px;
        border-left: 1px solid rgb(138, 137, 137);
        font-size: 10px;
    }

    .section2-author-avatar:after {
        position: absolute;
        content: "";
        height: 0.1px;
        width: 20px;
        right: 352px;
        margin-top: 25px;
        background: #e3e2e2;
        z-index: 2;
        transform: translateY(-50%);
    }

    .section2-main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section2-main-title {
        font-size: 28px;
    }

    .section2-sidebar {
        display: none;
    }
}

/* section3 */
@media (max-width: 768px) {
    .section3-article-text {
        font-size: 14px;
        color: #7a7a7a;
        line-height: 1.3;
        font-family:Arial, Helvetica, sans-serif;
        columns: 1;
        column-gap: 0px;
    }

    .section3-sidebar-image {
        width: 133px;
        height: 107px;
    }

    .section3-sidebar-meta {
        display: flex;
        align-items: flex-start;
    }

    .section3-top-column-image {
        width: 51%;
        height: 149px;
    }

    .section3-container {
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }

    .section3-sidebar {
        width: 100%;
        padding-right: 0px;
        padding: 10px;
    }

    .section3-main-content {
        display: flex;
        flex-direction: column;
        margin-left: 0px;
        padding: 10px;
    }

    .section3-small-article {
        flex: 1;
        padding: 0px;
    }

    .section3-top-columns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgb(214, 212, 212);
    }

    .section3-featured-articles {
        flex-direction: column;
    }

    .section3-bottom-articles {
        display: flex;
        flex-direction: column;
        margin-right: 0px;

    }

    .section3-small-article .section3-article-text {
        font-size: 14px;
        color: #7a7a7a;
        line-height: 1.3;
        font-family:Arial, Helvetica, sans-serif;
        columns: 1;
        column-gap: 0px;
    }

    .section3-large-article {
        flex: 1;
        padding: 0px;
    }

    .section3-bottom-article {
        flex: 1;
        border-top: 0.1px solid #b1b1b1;
        padding: 10px 0px;
        margin-left: 0px;
        border-right: 0px solid rgb(99, 98, 98);
    }

    .section3-bottom-article::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 15px;
        height: 0px;
        background-color: #d0cece;
    }

    .section3-bottom-article::after {
        content: '';
        position: absolute;
        top: 0px;
        right: 0;
        bottom: 0;
        width: 0px;
        background-color: rgb(209, 207, 207);
    }

    .section3-bottom-article .section3-article-title {
        font-size: 30px;
        font-family:Arial, Helvetica, sans-serif;
        font-weight: 900;
        line-height: 30px;
    }
}


/* section4 */
@media (max-width: 1024px) {
    .section4-main-container {
        flex-wrap: wrap;
        height: auto;
    }

    .section4-column {
        flex: 1 1 50%;
        min-height: 250px;
    }
}

@media (max-width: 640px) {
    .section4-main-container {
        flex-direction: column;
    }

    .section4-column {
        flex: none;
        height: 300px;
    }

    .section4-content-column {
        padding: 20px 20px;
    }

    .section4-main-title {
        font-size: 24px;
    }
}

/* section5 */
@media (max-width: 640px) {
    .section5-main-content {
        display: flex;
        border-right: 0.1px solid white;
        flex-direction: column;
        margin-right: 0px;
    }

    .section5-container {
        max-width: 100%;
        padding: 10px;
    }

    .section5-header {
        color: red;
        padding: 0px 10px;
    }

    .section5-top-column-image {
        width: 100px;
        height: 80px;
    }

    .section5-top-columns {
        display: flex;
        flex-direction: column;
        margin-right: 0px;

    }

    .section5-sidebar {
        width: 100%;
    }

    .section5-bottom-article .section5-article-title {
        font-size: 30px;
        font-family:Arial, Helvetica, sans-serif;
        font-weight: 700;
    }

    .section5-bottom-article::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 15px;
        height: 0px;
        background-color: #d0cece;
    }

    .section5-bottom-article::after {
        content: '';
        position: absolute;
        top: 0px;
        right: 0;
        bottom: 0;
        width: 0px;
        background-color: rgb(209, 207, 207);
    }

    .section5-featured-articles {
        display: flex;
        flex-direction: column;
    }

    .section5-bottom-articles {
        display: flex;
        flex-direction: column;
        margin-right: 0px;
    }

    .section5-article-text {
        font-size: 14px;
        color: #7a7a7a;
        line-height: 1.3;
        font-family:Arial, Helvetica, sans-serif;
        columns: 1;
        column-gap: 0px;
        padding: 0px;
    }

    .section5-large-article {
        flex: 2;
        padding: 15px 0px;
    }

    .section5-small-article {
        flex: 1.2;
        padding: 0px;
    }

    .section5-bottom-article {
        flex: 1;
        border-top: 0px solid #b1b1b1;
        padding: 0px 0px;
        margin-left: 0px;
        border-right: 0px solid rgb(99, 98, 98);
    }
}

/* section6 */
@media (max-width: 768px) {
    .section6-container {
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }

    .section6-sidebar-image {
        width: 150px;
        height: 130px;
        background: #ddd;
        margin-right: 10px;
        border: 1px solid #ccc;
    }

    .section6-sidebar-left {
        width: 100%;
        background-color: #ffffff;
        border-right: 0px solid #e0e0e0;
        padding: 50px 5px;

    }

    .section6-main-content {
        flex: 1;
        padding: 10px;
        background-color: #ffffff;
    }

    .section6-sidebar-right {
        width: 100%;
        background-color: #ffffff;
        border-left: 1px solid #e0e0e0;
        padding-left: 0px;
        padding-top: 20px;
        padding: 10px;
    }

    .section6-column img {
        width: 100%;
        height: 30%;
        object-fit: cover;
    }

    .section6-sidebar {
        float: left;
        width: 100%;
        padding-top: 30px;
        padding-right: 0px;
    }

    .section6-articles-grid {
        display: flex;
        flex-direction: column;
        gap: 0px;
        margin-bottom: 0px;
    }

    .section6-sidebar-meta {
        display: flex;
        align-items: flex-start;
        margin-bottom: 8px;
    }

    .section6-hero-image {
        width: 100%;
        height: 300px;
    }
}

/*  section7*/
@media (max-width: 768px) {
    .section7-title {
        font-size: 2.5rem;
    }

    .section7-container {
        background-color: #1a1a1a;
        min-height: 55vh;
    }


    .section7-subtitle {
        font-size: 12px;
        margin-bottom: 2rem;
        width: 100%;
        padding: 0px 20px;
    }

    .section7-form-container {
        flex-direction: column;
        align-items: flex-start;
        justify-content: left;
        gap: 10px;
        padding: 20px;
        max-width: 500px;
        margin: 15px;

    }

    .section7-email-input {
        width: 100%;
        text-align: center;
        padding: 10px 20px;
    }

    .section7-submit-button {
        width: 30%;
        padding: 15px 0;

    }

    .section7-decorative-elements {
        display: none;
    }

    .section7-disclaimer {

        font-size: 0.8rem;
        color: #6c6c6c;
        margin-top: 2rem;
        font-weight: 300;
    }
}

/* footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-main-title {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .footer-logo {
        font-size: 24px;
        padding: 8px 20px;
    }

    .footer-nav-links {
        flex-direction: flex;
        gap: 15px;
    }

    .footer-center-content {
        text-align: center;
        padding-bottom: 0px;
    }

    .footer-nav-link {

        margin-top: 30px;
        padding-right: 10px;
    }
}

/* category */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
    }

    .category1-header {
        padding: 15px;
    }

    .category1-container {
        display: flex;
        flex-direction: column;
    }

    .category1-article {
        display: flex;
        flex-direction: column;
        padding: 15px;
    }

    .category1-main-content {
        margin-top: 0px;
    }

    .category1-article-img {
        width: 100%;
        height: 100%;
        margin-left: 0px;
        padding-top: 20px;
        object-fit: cover;
    }

    .category1-sidebar {
        flex: 1;
        margin-left: 0px;
        margin-top: 0px;
        padding: 10px;
    }

    .category1-sidebar-image {
        width: 130px;
        height: 90px;
        background-color: #ddd;
        flex-shrink: 0;
    }

    .category1-sidebar-featured .category1-sidebar-image {
        width: 100%;
        height: 200px;
        margin-bottom: 0px;

    }

    .category1-sidebar-featured a {
        font-weight: bold;
        font-size: 18px;
        text-decoration: none;
        color: #333333;
        display: flex;
        position: relative;
        top: -60px;
    }

    .category1-sidebar-list {
        padding-top: 20px;
    }
}

/* detail page */
@media (max-width: 768px) {
    .detail-container {
        display: flex;
        flex-direction: column;
        padding: 0px 10px;
    }
 

.deta-container .deta-breadcrumb-bar{
       order: 0;
}
.deta-container .deta-article-image{
        order: 2;
}

div .deta-container{
    display:flex ;
    flex-direction: column;
}


 .deta-title {
        font-size: 37px;
        line-height: 35px;
    }

    .deta-quote-box {
        margin-left: 5px;
    }

    .post-navigation {
        margin: 10px 0rem;
        flex-direction: column;
        max-width: 100%;
        border-bottom: 1px solid #686666;
    }

    .post-boxleft,
    .post-boxright {
        width: 100%;
        padding: 20px 10px;
        box-sizing: border-box;
    }

    .post-boxright {
        text-align: left;
    }
    .related-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
    /* author page */
       .detail-container .detail-main-content .section6-articles-grid {
          display: flex;
          flex-direction: column;
          gap: 30px;
          margin-bottom: 50px;
      }

}