﻿* {
    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;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

main {
    flex: 1 0 auto;
    padding: 20px;
    margin: 0 4px;
}

/*header Section Start*/

.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 90px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    /* position: sticky; */
    top: 0;
    z-index: 100;
}

.menu-open-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.logo {
    display: flex;
    align-items: center;
}

.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;
    line-height: 1.5;
    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;
}


.right-section {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 20px;
}

.right-section-detail {
    display: flex;
    align-items: center;
    height: 48%
}

.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.5rem;
    font-weight: 500;
    margin: 5px 0;
    line-height: 1.2em;
}

.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: 75%;
    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;
    line-height: 1.1em;
    font-weight: 500;
}

.box-content p {
    font-size: 12px;
    font-weight: 500;
}

.box div {
    margin-bottom: 2%;
}

/*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;
}

.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.5rem;
    font-weight: 500;
    line-height: 1.2em;
}

.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;
    line-height: 24px;
    width: 100%;
    height: 3rem;
    padding: 12px 10px;
}

.input-form button {
    color: white;
    font-size: 15px;
    margin-top: 1rem;
    line-height: 24px;
    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 15px 15px 0;
    border-radius: 4px;
    font-size: 16px;
}

.sub-stories-para p {
    color: #e30613;
    margin: 2% 0 2% 0;
    font-weight: 600;
    font-size: 12px;
}

.sub-stories-para h3 a {
    color: black;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 5px 0;
    text-decoration: none;
    line-height: 1.2em;
}

/*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;
}

.business-para p {
    color: white;
    font-size: 12px;
    font-weight: 600;
    margin: 5px 0;
}

.business-para h3 a {
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2em;
}

.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;
    line-height: 1.3em;
    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;
    line-height: 1.1em;
}

.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;
    line-height: 1.1em;
    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;
    line-height: 1.5;
}

.news-para p {
    color: #e30613;
    font-size: 12px;
    font-weight: 600;
    margin: 5px 0;
}

.news-para h3 a {
    font-size: 1.5rem;
    font-weight: 500;
    color: black;
    text-decoration: none;
    line-height: 1.2em;
}

/*news-section End*/
/*Footer Start*/
.footer {
    flex-shrink: 0;
}

.copy-right {
    text-align: center;
    font-size: 1rem;
    padding: 10px;
    display: flex;
    justify-content: space-between;
}

.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;
    line-height: 2;
}

.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: 15px;
    }

    .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: 425px) and (max-width: 767px) {
    .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: 2%;
        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: 25%;
        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: 45%;
    }

    .health-sub-hero {
        display: flex;
        flex-direction: column;
    }

    .box {
        width: 100%;
    }

    .top-stories {
        flex-direction: column;
    }

    .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: 30%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .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;
    }

    .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: 15px;
        padding: 2px;
        border: 1px solid black;
        border-radius: 5px;
        height: 30px;
    }

    .navbar {
        display: none;
    }
}

/* Phones 375px - 424px */
@media (min-width: 376px) and (max-width: 424px) {

    html,
    body {
        width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    .header {
        flex-wrap: wrap;
        height: auto;
        width: 100%;
        padding: 10px;
    }

    .menu-open-btn {
        color: black;
        display: block;
        margin: 15px;
        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%;
    }

    .search-input {
        width: 75%;
        margin-right: 1%;
    }

    .search-btn {
        width: 11%;
        margin-top: 1%;
    }

    .dark-btn {
        width: 9%;
        margin-right: 3%;
        top: 78px;
    }

    .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%;
    }

    .para {
        height: 55%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-section button {
        width: fit-content;
    }

    .left-section,
    .right-section,
    .first-stories,
    .stories-detail,
    .science-news {
        width: 100%;
    }

    .para h3,
    .right-section-para h3,
    .top-stories-para h3,
    .sub-stories-para h3 a,
    .business-para h3 a,
    .news-para h3 a {
        font-size: 22px;
        font-weight: 500;
    }

    .right-section-para {
        background: white;
        color: black;
    }

    .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%;
    }

    .input-form {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 5%;
    }

    .input-form p {
        font-size: 1.75rem;
        margin-top: 1rem;
    }

    .input-form input,
    .input-form button {
        width: 100%;
        height: 3rem;
    }

    .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: 20px;
    }

    .Science-line {
        width: 100%;
        margin: 15px 0 15px 1px;
        font-size: 13px;
    }

    .Science-line hr {
        width: 35%;
    }

    .world-arts {
        display: grid;
        margin-bottom: 3%;
    }

    .world-arts-para,
    .company li a {
        width: 100%;
        font-size: 1rem;
    }

    .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: 1.75rem;
        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: 10px;
    }

    .menu-open-btn {
        color: black;
        display: block;
        margin: 15px;
        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%;
    }

    .left-right-section,
    .left-section,
    .right-section,
    .top-stories,
    .first-stories,
    .stories-sub-sec,
    .business,
    .world-arts {
        gap: 10px;
    }

    .para {
        height: 68%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-section button {
        width: fit-content;
    }

    .left-right-section {
        flex-wrap: wrap;
    }

    .left-section {
        width: 100%;
    }

    .para h3,
    .right-section-para h3 {
        font-size: 1.375rem;
    }

    .right-section-para {
        background: white;
        color: black;
    }

    .right-section-para span {
        color: #5e5c5c;
    }

    .view-all {
        margin: 3% 0 3% 0;
    }

    .view-all hr {
        width: 30%;
    }

    .health-sub-hero {
        margin: 0 0 40px 5px;
        flex-direction: column;
    }

    .box {
        width: 100%;
    }

    .top-stories {
        flex-direction: column;
    }

    .top-stories-para h3 {
        font-size: 1.375rem;
    }

    .first-stories,
    .input-form {
        width: 100%;
    }

    .input-form {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 5%;
    }

    .input-form p {
        font-size: 1.75rem;
        margin-top: 1rem;
    }

    .input-form input {
        height: 3rem;
        width: 98%;
    }

    .input-form button {
        width: 98%;
    }

    .stories-sub-sec {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 5%;
        margin-top: 5%;
    }

    .sub-stories-para h3 a {
        font-size: 1.375rem;
    }

    .stories-detail {
        width: 100%;
    }

    .top-stories-para div {
        font-size: 16px;
    }

    .business {
        flex-direction: column;
    }

    .business-detail {
        position: relative;
        display: inline-block;
        width: 100%;
    }

    .business-para {
        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;
    }

    .business-para h3 a {
        font-size: 1.375rem;
    }

    .world-arts {
        display: grid;
    }

    .world-arts-para {
        width: 100%;
    }

    .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: 15px;
        padding-left: 0;
    }

    .news-para h2 {
        font-size: 20px;
    }

    .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;
    }
