﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.light-mode .listicles,
.light-mode .recent-stories-border,
.light-mode .recent-feature-border {
    border-left: 15px solid white;
}

.light-mode .menu-open-btn {
    color: white;
    border: 2px solid white;
}

.dark-mode .menu-open-btn {
    color: white;
    border: 2px solid white;
}

.dark-mode {
    background-color: rgb(28, 25, 25);
    color: white !important;
}

    .dark-mode a,
    .dark-mode .view-all p,
    .dark-mode .Science-line p {
        color: white !important;
    }

    .dark-mode .view-all a,
    .dark-mode .Science-line a {
        color: red !important;
    }

    .dark-mode .view-all hr,
    .dark-mode .Science-line hr {
        border-top: 1px solid white;
    }

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    background-color:#fff;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

main {
    flex: 1 0 auto;
    padding: 20px;
}

/*header Section Start*/

.header {
    background: #fff;
    /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e9ecef;
}

.menu-open-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.logo {
    display: flex;
    align-items: center;
}

    .logo a {
        color: black;
        text-decoration: none;
        font-size: 20px;
    }

    .logo img {
        height: 65px;
    }

.navbar {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.grid-container {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 16px;
}

ul a {
    color: black;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
}

.grid-container a:hover {
    color: #ff6200;
}

body.dark-mode .grid-container a:hover {
    color: #e30613 !important;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid black;
    min-width: 150px;
    z-index: 10;
    font-size: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

    .dropdown-content a {
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

        .dropdown-content a:hover {
            background-color: #f5f5f5;
        }

.dropdown:hover .dropdown-content {
    display: block;
}

.active {
    color: red;
    font-weight: bold;
}

body.dark-mode .active {
    color: red;
    font-weight: bold;
}

.search {
    display: flex;
    align-items: center;
    border-radius: 4px;
    overflow: hidden;
    width: fit-content;
}

.search-input {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    outline: none;
    font-size: 14px;
    border: 1px solid #ddd;
    transition: border-color 0.3s;
    border-radius: 22px;
}

    .search-input:hover {
        border-color: skyblue;
    }

.search-btn,
.dark-btn {
    background-color: #f2f2f2;
    width: 52px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 5px;
    border-radius: 22px;
    border: 0.2px solid;
}

    .search-btn:hover,
    .dark-btn:hover {
        background-color: #e0e0e0;
    }

.toggle-btn {
    flex: 0 0 auto;
    width: 100%;
    display: block;
    margin-bottom: 8px;
    background-color: transparent;
    opacity: 1;
    font-size: 18px;
}

.show {
    display: block;
}

.hide {
    display: none;
}

body.dark-mode .dropdown-content a:hover {
    background-color: #5e5c5c;
    color: #e30613 !important;
}

body.dark-mode .search-input,
body.dark-mode .dark-btn,
body.dark-mode .search-btn,
body.dark-mode .header,
body.dark-mode .dropdown-content {
    background-color: #000;
    color: #fff;
}

    body.dark-mode .dark-btn:hover,
    body.dark-mode .search-btn:hover {
        background-color: #282828;
    }

#theme-icon {
    transition: transform 0.3s;
}

.dark-mode #theme-icon {
    transform: rotate(60deg);
}

.nav-open-toggle {
    flex-direction: column;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    align-items: self-start;
    font-size: smaller
}

.nav-toggle {
    width: fit-content;
    font-weight: 700;
    text-decoration: none;
    color: #666;
}

    .nav-toggle:hover {
        color: #ff6200;
    }

.nav-open-toggle a {
    text-decoration: none;
}

/*header Section End*/

/*hero-section Start*/

.hero-section {
    width: 90%;
    margin: auto;
}

    .hero-section button {
        background-color: #e30613;
        border: none;
        padding: 5px 10px;
        font-size: 12px;
        margin-bottom: 5px;
        cursor: pointer;
        font-weight: 600;
    }

/*left-right-section Start*/


.left-right-section {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 10%;
    margin: 25px 0 25px 0;
    gap: 20px;
}

.left-section {
    width: 50%;
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
}

    .left-section img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .left-section .right-section {
        width: 50%;
    }

    .left-section .para {
        position: absolute;
        bottom: 2px;
        left: 0;
        padding: 20px;
        width: 100%;
        background-color: #00000054;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }


.right-section {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 20px;
}

.right-section-detail {
    display: flex;
    align-items: center;
    height: 48%;
    gap: 10px;
}

.right-section-image {
    width: 55%;
    flex: 0 0 auto;
    height: 100%;
}

    .right-section-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.para a {
    color: #fff;
    text-decoration: none;
}

.para button {
    width: fit-content;
}

.para h3,
.right-section-para h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 5px 0;
}

.right-section-para {
    padding: 15px;
    height: fit-content;
    overflow: hidden;
    word-wrap: break-word;
}

    .right-section-para h3 a {
        color: black;
        text-decoration: none;
    }

    .right-section-para button a {
        color: white;
        text-decoration: none;
    }

/*left-right-section End*/

/*view-all Start*/

.view-all {
    margin: 2% 0 2% 0%;
    color: #e30613;
    border-left: 4px solid #e30613;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

    .view-all hr {
        width: 80%;
        margin: 0 2% 0 3%;
        border: none;
        border-top: 1px solid black;
    }

    .view-all a {
        font-size: 14px;
        text-decoration: none;
        font-weight: 500;
    }

    .view-all p {
        color: black;
        padding-left: 20px;
        font-weight: 500;
        text-transform: uppercase
    }

/*view-all End*/

/*health-sub-hero Start*/

.health-sub-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.box {
    width: 50%;
}

.box-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
}

.box p {
    color: #e30613;
    /*margin: 2% 0 2% 0;*/
    font-weight: 600;
}

.box-content h5 a {
    text-decoration: none;
    color: black;
    font-size: 1rem;
    font-weight: 500;
}

.box-content p {
    font-size: 12px;
    font-weight: 500;
}

.box div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/*health-sub-hero End*/

/*top-stories Start*/

.top-stories {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 2%;
    height: 10%;
}

.first-stories {
    width: 65%;
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
}

    .first-stories img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.top-stories-para {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px;
    width: 100%;
    background-color: #00000054;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .top-stories-para p {
        color: white;
        font-size: 12px;
        font-weight: 600;
    }

    .top-stories-para a {
        color: white;
        text-decoration: none;
    }

    .top-stories-para h3 {
        font-size: 1.3rem;
        font-weight: 500;
    }

    .top-stories-para span {
        color: white;
        font-size: 12px;
        font-weight: 400;
    }

.input-form {
    background-color: #e30613;
    color: #fff;
    padding: 3%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 33%;
}

    .input-form label {
        margin-top: 10px;
        font-size: 14px;
        font-weight: 500;
    }

    .input-form p {
        font-size: 2rem;
        margin-top: 2rem;
        font-weight: 500;
    }

    .input-form div {
        font-size: 1rem;
        margin-top: 2rem;
    }

    .input-form input {
        font-size: 15px;
        margin-top: 2rem;
        width: 100%;
        height: 3rem;
        padding: 12px 10px;
    }

    .input-form button {
        color: white;
        font-size: 15px;
        margin-top: 1rem;
        width: 100%;
        height: 3rem;
        background: #000;
        border: none;
    }

        .input-form button:hover {
            background-color: #fff;
            color: #000;
            border: none;
        }

/*top-stories End*/

/*stories-sub-sec Start*/

.stories-sub-sec {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 2%;
}

.stories-detail {
    width: 50%;
}

.stories-detail-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
}

.sub-stories-para {
    width: 100%;
    color: #000;
    padding: 15px 0px 15px 0;
    border-radius: 4px;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .sub-stories-para p {
        color: #e30613;
        font-weight: 600;
        font-size: 12px;
    }

    .sub-stories-para h3 a {
        color: black;
        font-size: 1.3rem;
        font-weight: 500;
        margin: 5px 0;
        text-decoration: none;
    }

/*stories-sub-sec End*/

/*business Start*/

.business {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2%;
    height: 8%;
}

.business-detail {
    width: 50%;
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
}

    .business-detail img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.business-para {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px;
    width: 100%;
    background-color: #00000054;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .business-para p {
        color: white;
        font-size: 12px;
        font-weight: 600;
    }

    .business-para h3 a {
        text-decoration: none;
        color: white;
        font-size: 1.3rem;
        font-weight: 500;
    }

    .business-para span {
        font-size: 12px;
        color: white;
        font-weight: 400;
    }

/*business End*/

/*world-arts Start*/
.world-arts {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 2%;
}

.world-arts-para {
    width: 50%;
}

    .world-arts-para img {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
    }


    .world-arts-para p {
        color: #e30613;
        margin: 2% 0 2% 0;
        font-weight: 600;
        font-size: 12px;
    }

    .world-arts-para h5 a {
        text-decoration: none;
        color: black;
        font-size: 1.25rem;
        font-weight: 500;
    }

    .world-arts-para div {
        font-weight: 600;
        margin-bottom: 2%;
        width: 100%;
    }

    .box span,
    .news-para span,
    .sub-stories-para span,
    .para span,
    .right-section-para span,
    .world-arts-para span,
    .news-para span {
        font-size: 13px;
        color: #ababab;
        font-weight: 400;
    }

/*world-arts End*/
/*innovators Start*/

.innovators {
    margin: 2% 5% 2% 5%;
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 2%;
}

.img-section {
    position: relative;
    z-index: 2;
    width: 45%;
    margin-right: -230px;
}

    .img-section img {
        width: 100%;
    }

.innovators .text-section {
    z-index: -1;
    color: #fff;
    background-color: #e32c3b;
    width: 85%;
    position: relative;
    flex-grow: 1;
}

.text-section-para {
    margin: 15% 0 15% 40%;
}

    .text-section-para h2 {
        font-size: 2rem;
        margin-bottom: 10px;
        font-weight: 500;
    }

    .text-section-para p {
        width: 75%;
        font-size: 1rem;
        font-weight: 400;
    }

    .text-section-para button {
        background-color: white;
        color: #000;
        border: none;
        font-size: 1rem;
        font-weight: 400;
        padding: 15px;
        width: 35%;
        margin-top: 5%;
    }

/*innovators End*/

/*news-section Start*/

.Science-line {
    padding: 0 20px;
    margin: 5% 0 5% 0;
    color: #e30613;
    border-left: 4px solid #e30613;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

    .Science-line hr {
        width: 75%;
        border: none;
        border-top: 1px solid black;
    }

    .Science-line p {
        color: black;
        font-weight: 500;
        text-transform: uppercase
    }

    .Science-line a {
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
    }

.news-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.science-news {
    width: 50%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.news-section img,
.news-detail {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
}

.news-para {
    width: 100%;
    color: #000;
    padding: 15px 0;
    border-radius: 4px;
}

    .news-para div {
        margin-top: 2%;
        font-size: 1rem;
        font-weight: 400;
        color: #8C8C8C;
    }

    .news-para p {
        color: #e30613;
        font-size: 12px;
        font-weight: 600;
        margin: 5px 0;
    }

    .news-para h3 a {
        font-size: 1.3rem;
        font-weight: 500;
        color: black;
        text-decoration: none;
    }

/*news-section End*/
/*Footer Start*/
.footer {
    flex-shrink: 0;
}

.copy-right {
    text-align: center;
    font-size: 1rem;
    padding: 10px 20px 10px 20px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e9ecef;
}

    .copy-right a {
        color: black;
        text-decoration: none;
    }

.company {
    width: 20%;
}

    .company li {
        list-style-type: none;
    }

    .company h1 {
        margin-bottom: 5%;
        font-size: 1.125rem;
    }

    .company ul {
        display: flex;
        gap: 20px;
    }

    .company li a {
        font-size: 1rem;
    }

    .company a:hover {
        color: #e30613;
    }

/*Footer End*/

body.dark-mode .right-section-para {
    background-color: #000;
}

/* Large desktop 1025px - 1440px */
@media (min-width: 1025px) and (max-width: 1440px) {

    .left-right-section,
    .left-section,
    .right-section,
    .top-stories,
    .first-stories,
    .stories-sub-sec,
    .world-arts,
    .news-section {
        gap: 15px;
    }

    .img-section {
        width: 35%;
    }

    .Science-line hr {
        width: 50%;
    }

    .box-content h5 a {
        font-size: 1rem;
    }

    .text-section-para {
        margin: 10% 0 10% 40%;
    }

    .world-arts-para h5 a {
        font-size: 1rem;
    }
}

/* Medium devices/tablet 769px - 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .navbar {
        justify-content: center;
        padding-right: 5%;
    }

    .header {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
    }

    .searchbar {
        width: -webkit-fill-available;
    }

    .search {
        width: 100%;
    }

    .search-btn,
    .dark-btn {
        width: 41px;
        right: 55px;
        border-radius: 20px;
    }

    .view-all hr {
        width: 70%;
    }

    .left-right-section,
    .left-section,
    .right-section,
    .top-stories,
    .first-stories,
    .stories-sub-sec,
    .world-arts {
        gap: 15px;
    }

    .health-sub-hero {
        margin: 0 0 20px 0;
        display: grid;
        grid-template-columns: 49% 49%;
    }

    .box {
        width: 100%;
    }

    .box-content h5 a {
        font-weight: 500;
        font-size: 1rem;
    }

    .input-form {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .top-stories-para div {
        font-size: 16px;
    }

    .business-para {
        font-size: 15px;
        height: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .world-arts {
        margin: 10px 0 0 5px;
        display: grid;
        grid-template-columns: auto auto;
    }

    .world-arts-para {
        width: 100%;
    }

    .innovators {
        margin: 2% 1% 0 0;
    }

    .img-section {
        width: 45%;
        margin-right: -250px;
    }

    .innovators .text-section {
        width: 95%;
    }

    .text-section-para {
        margin: 8% 10% 8% 45%;
    }

        .text-section-para button {
            width: 70%;
        }

    .news-section {
        gap: 15px;
    }

    .Science-line {
        width: 100%;
        margin: 15px 0 15px 1px;
        font-size: 13px;
    }

        .Science-line hr {
            width: 50%;
        }

    .world-arts {
        margin-bottom: 2%;
    }

    .company {
        width: 30%;
    }

        .company h1 {
            font-size: 22px;
            margin-top: 2%;
        }

        .company li a {
            font-size: 15px;
        }
}

/* Small tablets and large phones 425px - 768px */
@media (min-width: 426px) and (max-width: 767px) {
    .logo img {
        height: 55px;
    }

    .navbar {
        justify-content: center;
        padding-right: 5%;
    }

    .header {
        flex-wrap: wrap;
        height: auto;
        /*padding: 15px;*/
    }

    .grid-container {
        gap: 15px;
    }

    .searchbar {
        width: 100%;
    }

    .search {
        margin-top: 1%;
        width: 100%;
    }

    .search-input {
        width: 88%;
    }

    .search-btn {
        width: 40px;
        right: 55px;
        border-radius: 20px;
    }

    .dark-btn {
        width: 40px;
        right: 55px;
        border-radius: 20px;
    }

    .left-right-section,
    .left-section,
    .right-section,
    .top-stories,
    .first-stories,
    .stories-sub-sec,
    .world-arts {
        gap: 10px;
    }

    .para {
        height: 40%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .left-right-section {
        flex-wrap: wrap;
    }

    .left-section {
        width: 100%;
    }

    .right-section-image {
        width: 35%;
        height: 100%;
    }

    .right-section-para {
        background: white;
        color: black;
    }

        .right-section-para span {
            color: #5e5c5c;
            font-size: 12px;
        }

        .right-section-para p a {
            color: black;
        }

        .para h3,
        .right-section-para h3 {
            font-size: 1.25rem;
        }


    .view-all hr {
        width: 50%;
    }

    .health-sub-hero {
        display: flex;
        flex-direction: column;
        margin-top: 12px;
    }

    .box {
        width: 100%;
    }

    .top-stories {
        flex-direction: column;
        margin-top: 12px;
    }

    .first-stories {
        width: 100%;
    }

    .input-form {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }

        .input-form p {
            font-size: 1.5625rem;
            margin-top: 1rem;
        }

    .top-stories-para div {
        font-size: 16px;
    }

    .top-stories-para h3 {
        font-size: 1.25rem;
        font-weight: 500;
    }

    .business-para {
        font-size: 15px;
        height: 40%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
    }

        .business-para h3 a {
            font-size: 1.25rem;
        }

    .stories-sub-sec {
        flex-direction: column;
    }

    .stories-detail {
        width: 100%;
    }

    .sub-stories-para h3 a {
        font-size: 1.25rem;
    }

    .business {
        flex-direction: column;
        margin-top: 12px;
    }

    .business-detail {
        width: 100%;
    }

    .world-arts {
        flex-direction: column;
    }

    .world-arts-para {
        width: 100%;
    }

    .innovators {
        margin: 2% 4% 0 0;
        flex-direction: column;
    }

    .img-section {
        width: 95%;
        margin: 0px 0 0 0px;
    }

    .innovators .text-section {
        width: 95%;
    }

    .text-section-para {
        margin: 7% 0 5% 10%;
        ;
    }

        .text-section-para p {
            width: 85%;
        }

        .text-section-para h2 {
            font-size: 1.5625rem;
            margin-bottom: 15px;
        }

        .text-section-para button {
            width: 80%;
            padding: 8px;
        }

    .news-section {
        flex-direction: column;
        gap: 15px;
    }

    .science-news {
        width: 100%;
    }

    .Science-line {
        width: 100%;
        margin: 15px 0 15px 1px;
        font-size: 13px;
    }

        .Science-line hr {
            width: 55%;
        }

    .world-arts {
        margin-bottom: 2%;
    }

    .company {
        width: 100%;
    }

    .copy-right {
        display: grid;
        justify-content: center;
    }

    .menu-open-btn {
        color: black;
        display: block;
        margin-right: 5px;
        padding: 2px;
        border: 1px solid black;
        border-radius: 5px;
        height: 30px;
    }

    .navbar {
        display: none;
    }
}

/* Phones 375px - 424px */
@media (min-width: 376px) and (max-width: 425px) {

    html,
    body {
        width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    .logo img {
        height: 50px;
    }

    .header {
        flex-wrap: wrap;
        height: auto;
        width: 100%;
        padding: 0 10px;
    }



    .menu-open-btn {
        color: black;
        display: block;
        margin: 5px 0;
        padding: 2px;
        border: 1px solid black;
        border-radius: 5px;
        height: 30px;
    }

    .navbar {
        display: none;
    }

    .searchbar {
        width: 100%;
        padding: 0 1%;
        box-sizing: border-box;
    }

    .search {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 5px;
    }

    .search-input {
        width: 75%;
        margin-right: 1%;
    }

    .search-btn {
        width: 9%;
        margin: 2% 1%;
    }

    .dark-btn {
        width: 9%;
        margin: 2% 1%;
        top: 78px;
    }

    .hero-section {
        width: 96%;
        margin-top: 12px;
    }

    .left-right-section,
    .left-section,
    .right-section,
    .top-stories,
    .first-stories,
    .stories-sub-sec,
    .world-arts,
    .business,
    .innovators,
    .news-section {
        gap: 10px;
        flex-direction: column;
        width: 100%;
    }

    .innovators {
        margin: 2% 0% 2% 0%;
    }

    .para {
        height: 40%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-section button {
        width: fit-content;
        margin-bottom: 0px;
    }

    .left-section .para, .right-section-para {
        padding: 12px;
    }

    .right-section-detail {
        gap: 6px
    }

    .left-right-section {
        margin: 0;
    }

    .left-section,
    .right-section,
    .first-stories,
    .stories-detail,
    .science-news {
        width: 100%;
    }

    .business-para {
        padding: 12px;
    }

        .para h3,
        .top-stories-para h3,
        .sub-stories-para h3 a,
        .business-para h3 a,
        .news-para h3 a {
            font-size: 16px;
            font-weight: 500;
            margin: 0px;
        }

    .right-section-para h3 {
        font-size: 16px;
        font-weight: 500;
        margin: 0px;
    }

    .right-section-para {
        background: white;
        color: black;
        padding: 10px 0 !important;
    }


    .right-section-image {
        width: 50%;
        height: 120px;
    }

    .right-section-para span, .sub-stories-para span, .news-para span {
        font-size: 12px;
        color: #5e5c5c;
    }

    .view-all {
        margin: 3% 0;
        font-size: 13px;
    }

        .view-all hr {
            width: 45%;
        }

    .health-sub-hero {
        /*margin: 0 0 40px 5px;*/
        flex-direction: column;
    }

    .box {
        width: 100%;
    }

    .left-section img,
    .box-image img,
    .world-arts-para img,
    .business-detail img,
    .news-section img,
    .stories-detail-img img,
    .img-section img,
    .first-stories img {
        height: 200px;
        object-fit: cover;
    }

    .input-form {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 5%;
    }

        .input-form p {
            font-size: 24px;
            margin-top: 0.5rem;
        }

        .input-form div {
            margin-top: 0.5rem;
        }

        .input-form input,
        .input-form button {
            width: 100%;
            height: 2.5rem;
            margin-top: 0.5rem;
        }

    .business-detail {
        width: 100%;
    }

    .stories-sub-sec {
        margin: 5% 0;
    }

    .sub-stories-para {
        font-size: 15px;
    }

    .top-stories-para div,
    .news-para {
        font-size: 15px;
    }

        .news-para h2 {
            font-size: 18px;
        }

    .Science-line {
        width: 100%;
        margin: 15px 0 15px 1px;
        font-size: 13px;
    }

        .Science-line hr {
            width: 35%;
        }

    .world-arts {
        margin-bottom: 12px;
    }

    .world-arts-para {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .world-arts-para div,
    .world-arts-para p {
        margin: 0;
    }

    .world-arts-para {
        width: 100%;
        font-size: 18px;
    }

    .copy-right {
        width: 100%;
        font-size: 1rem;
        display: grid;
        justify-content: center;
    }

    .company {
        width: 100%;
    }

    .innovators .text-section,
    .innovators .img-section {
        width: 100%;
        height: auto;
        margin: 0;
    }

    .text-section-para {
        margin: 10%;
    }

        .text-section-para h2 {
            font-size: 18px;
            margin-bottom: 8px;
        }

        .text-section-para button {
            padding: 10px;
            width: 70%;
            margin: 10px 0;
        }
}


/* Very small phones and below 374px */
@media (max-width: 375.99px) {
    .header {
        flex-wrap: wrap;
        height: auto;
        width: 100%;
        padding: 0 10px;
    }


    .menu-open-btn {
        color: black;
        display: block;
        margin: 5px 0;
        padding: 2px;
        border: 1px solid black;
        border-radius: 5px;
        height: 30px;
    }

    .navbar {
        display: none;
    }

    .searchbar {
        width: 97%;
    }

    .search {
        width: 100%;
    }

    .search-btn,
    .dark-btn {
        width: 40px;
    }

    .search-input {
        width: 75%;
        margin-right: 1%;
    }

    .hero-section {
        width: 97%;
    }

    .left-right-section,
    .left-section,
    .right-section,
    .top-stories,
    .first-stories,
    .stories-sub-sec,
    .business,
    .world-arts {
        gap: 10px;
    }

    .para {
        height: 45%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-section button {
        width: fit-content;
        margin-bottom: 0px;
    }

    .left-right-section {
        flex-wrap: wrap;
    }

    .left-section {
        width: 100%;
    }

    .para h3,
    .right-section-para h3 {
        font-size: 16px;
        margin: 0px;
    }

    .right-section-para {
        background: white;
        color: black;
        padding: 10px 0;
    }


    .right-section-detail {
        gap: 6px
    }

    .right-section-image {
        width: 50%;
        height: 100px;
    }

    .right-section-para span {
        color: #5e5c5c;
    }

    .view-all {
        margin: 3% 0 3% 0;
    }

        .view-all hr {
            width: 40%;
        }

    .health-sub-hero {
        /*margin: 0 0 40px 5px;*/
        flex-direction: column;
    }

    .box {
        width: 100%;
    }

    .left-section img,
    .box-image img,
    .world-arts-para img,
    .business-detail img,
    .news-section img,
    .stories-detail-img img,
    .first-stories img {
        height: 200px;
        object-fit: cover;
    }

    .top-stories {
        flex-direction: column;
    }

    .top-stories-para h3 {
        font-size: 16px;
    }

    .first-stories,
    .input-form {
        width: 100%;
    }

    .input-form {
        width:100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 5%;
    }

        .input-form p {
            font-size: 22px;
            margin-top: 0.5rem;
        }

        .input-form input ,
        .input-form button {
            width: 100%;
            height: 2.5rem;
            margin-top:0.5rem;
        }

    .stories-sub-sec {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 5%;
        margin-top: 5%;
    }

    .sub-stories-para h3 a {
        font-size: 16px;
        font-weight: 500;
        margin: 0px;
    }

    .stories-detail {
        width: 100%;
    }

    .business {
        flex-direction: column;
    }

    .business-detail {
        position: relative;
        display: inline-block;
        width: 100%;
    }

    .business-para {
        padding:12px;
        position: relative;
        bottom: 0;
        z-index: 1;
        padding: auto 10px 20px 10px;
        color: white;
        width: 100%;
    }

    .business-detail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
    }

    .world-arts {
        width: 100%;
        flex-direction: column;
        margin-bottom: 12px;
    }

    .world-arts-para {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

        .world-arts-para div,
        .world-arts-para p {
            margin: 0;
        }

    .innovators {
        flex-direction: column;
        margin: 0;
    }

        .innovators .text-section {
            width: 100%;
            height: 100%;
        }

        .innovators .img-section {
            width: 100%;
            height: 100%;
            margin-right: 0;
        }

    .text-section-para h2 {
        font-size: 1.75rem;
        margin-bottom: 8px;
    }

    .news-para h3 a {
        font-size: 1.375rem;
    }

    .text-section-para {
        margin: 5%;
    }

        .text-section-para button {
            padding: 10px;
            margin: 10px 0 10px;
        }

    .news-section {
        gap: 10px;
        flex-direction: column;
    }

    .science-news {
        width: 100%;
    }

    .Science-line {
        width: 100%;
        margin: 15px 0 15px 1px;
        font-size: 13px;
    }

        .Science-line hr {
            width: 35%;
        }

    .news-para {
        font-size: 16px;
        padding-left: 0;
    }

        .news-para div,
        .news-para p {
            font-size: 14px;
        }

    .world-arts {
        margin-bottom: 3%;
    }

    .grid-container {
        list-style-type: none;
        display: grid;
        gap: 20px;
    }

    .company li a {
        font-size: 16px;
        justify-content: center;
    }

    .copy-right {
        display: grid;
        justify-content: center;
    }

    .company {
        width: 100%;
    }

        .company li {
            display: grid;
        }
}

.threelinedot {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
    cursor: pointer;
    transition: max-height 0.3s ease;
}

    /* When expanded, remove clamping */
    .threelinedot.expanded {
        -webkit-line-clamp: unset;
        max-height: none;
        overflow: visible;
    }
