:root {
    --light-color: #ffffff;
    --dark-color: #000000;
    --dark-gray: #cccccc;
    --med-gray: #e2e1e1;
    --light-gray: #f7f7f7;

    /* Custom colors */
    --paragraph-color: var(--dark-color);
    --body-bg: var(--light-gray);
    --border-color: var(--dark-gray);
    --heading-color: var(--dark-color);
    --link-color: var(--dark-color);
    --link-hover-color: var(--light-color);
    --button-text-color: var(--light-color);
    --button-bg: var(--dark-color);
    --button-hover-bg: var(--light-color);
    --gradient-start: var(--dark-gray);
    --gradient-end: var(--dark-color);
}

/*** HEADER STYLE ***/

.header-feed {
    background-image: url("../All-Media/Images/panels-background-image.jpeg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
}

header {
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

nav ul li {
    padding: 0rem 2rem 0rem 0rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--body-bg) !important;
    font-size: 1.35rem;
    font-weight: 550;
}

nav ul li a:hover {
    color: var(--dark-color) !important;
    text-decoration: underline;
    transition: all 0.2s linear;
}

#home {
    padding: 6rem 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--body-bg);
}

#home h1 {
    font-size: 50px;
    font-weight: 600;
    color: var(--body-bg) !important;
}

#home p {
    font-size: 18px;
    color: var(--body-bg) !important;
}

.homeBtn {
    padding: 16px 24px;
    margin-top: 10px;
    color: var(--dark-color) !important;
    background-color: var(--light-color) !important;
    font-size: 16px;
    border: none;
    border-radius: 50px;
}

.homeBtn:hover {
    color: var(--light-color) !important;
    background-color: var(--dark-color) !important;
    cursor: pointer;
    transition: all 0.2s linear;
}

/*** CARD-SEARCH-BOX ***/

.big-container {
    display: grid;
    grid-template-rows: max-content max-content;
    grid-gap: 30px;
    padding: 4rem;
    background: var(--med-gray);
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    align-content: baseline;
}

.card {
    width: calc(24% - 7px);
    margin: 10px;
    border: 1px solid var(--border-color);
    padding: 12px;
    background-color: var(--light-color);
    max-height: 450px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0px;
}

.card-header h2 {
    color: var(--dark-color);
    font-size: 18px;
}

.card-header time {
    color: var(--dark-color);
    font-size: 11px;
}

.card-heading {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 63%;
    margin: 0.5rem 0rem;
}

.card-description {
    margin: 0.3rem 0rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
}

.see-more {
    border: none;
    outline: none;
    background-color: transparent;
    width: 100%;
}

.see-more a {
    display: block;
    background-color: var(--dark-color);
    text-decoration: none;
    color: var(--body-bg);
    padding: 8px 12px;
    margin-top: 0.3rem;
    border: 1px solid var(--dark-color);
    border-radius: 2px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    letter-spacing: 1px;
}

.see-more a:hover {
    background-color: var(--body-bg);
    color: var(--dark-color);
    transition: all 0.1s cubic-bezier(0, 0, 0, 0.95);
}

input[type="search"] {
    width: 100%;
    height: 2.6rem;
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 16px;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    border-radius: 0px;
}

input[type="search"]:focus {
    outline: none;
    border: 1px solid var(--dark-color);
}

.search-bar-div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#searchButton {
    height: 2.6rem;
    border-radius: 0px;
    background-color: var(--dark-color);
    color: var(--body-bg);
    border: 1px solid var(--dark-color);
    padding: 0.3rem 0.9rem;
    font-size: 16px;
    font-weight: 700;
}

#searchButton:hover {
    background-color: var(--body-bg);
    color: var(--dark-color);
    cursor: pointer;
    border: 1px solid var(--dark-color);
    transition: all 0.2s linear;
}

.hidden {
    display: none;
}

#noResults {
    font-size: 20px;
    font-weight: 500;
}

.bi-list {
    font-size: 30px !important;
    background-color: black !important;
    color: white !important;
    padding: 0px 6px !important;
    border-radius: 4px !important;
}

.bi-x {
    font-size: 30px !important;
    background-color: rgb(38, 37, 37) !important;
    color: white !important;
    padding: 0px 6px !important;
    border-radius: 4px !important;
    z-index: 50 !important;
}

@media only screen and (min-width: 960px) and (max-width: 1400px) {
    .card {
        width: 31%;
    }
    .card-header h2 {
        font-size: 16px;
    }
    .card img {
        height: 60%;
    }
}

@media only screen and (min-width: 460px) and (max-width: 600px) {
    .big-container {
        padding: 1rem;
    }

    .card {
        width: 100%;
    }

    .card-header h2 {
        font-size: 18px;
    }

    .menu-icon {
        display: flex;
    }

    nav ul {
        position: fixed !important;
        top: -100% !important; /* Start off-screen above */
        left: 0 !important;
        width: 100% !important;
        background-color: var(--dark-color) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        z-index: 40 !important;
        transition: top 0.3s ease-in-out !important; /* Slide down transition */
    }

    nav ul.active {
        top: 0 !important; /* Move to visible position */
    }

    nav ul li {
        border-top: 1px solid var(--body-bg) !important;
        width: 100%;
    }

    nav ul li a {
        font-size: 18px !important;
        color: var(--light-color);
    }

    .menu-icon.open div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 5px);
    }

    .menu-icon.open div:nth-child(2) {
        opacity: 0;
    }

    .menu-icon.open div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -5px);
    }
}

@media only screen and (min-width: 600px) and (max-width: 960px) {
    .companylogo {
        font-size: 18px !important;
    }

    #home h1 {
        font-size: 26px !important;
    }

    #home p {
        font-size: 20px !important;
    }

    .homeBtn {
        font-size: 20px !important;
    }

    .menu-icon {
        display: flex;
    }

    nav ul {
        position: fixed !important;
        top: -100% !important; /* Start off-screen above */
        left: 0 !important;
        width: 100% !important;
        background-color: var(--dark-color) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        z-index: 40 !important;
        transition: top 0.3s ease-in-out !important; /* Slide down transition */
    }

    nav ul.active {
        top: 0 !important; /* Move to visible position */
    }

    nav ul li {
        border-top: 1px solid var(--body-bg) !important;
        width: 100%;
    }

    nav ul li a {
        font-size: 20px !important;
        color: var(--light-color);
    }

    .menu-icon.open div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 5px);
    }

    .menu-icon.open div:nth-child(2) {
        opacity: 0;
    }

    .menu-icon.open div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -5px);
    }

    #home {
        padding: 2rem 1rem;
    }

    #home h1 {
        font-size: 2rem;
    }

    #home p {
        font-size: 1rem;
    }

    .homeBtn {
        font-size: 1rem;
    }

    .search-bar-div {
        flex-direction: column;
    }

    input[type="search"] {
        width: 100%;
    }

    #searchButton {
        width: 100%;
    }

    .card {
        width: 47%;
    }

    .card img {
        height: 62%;
    }

    .card-header time {
        font-size: 12px;
    }

    .card-header h2 {
        font-size: 20px;
    }

    .card-description {
        font-size: 18px;
    }

    .big-container {
        padding: 1rem;
    }
}

@media only screen and (min-width: 200px) and (max-width: 460px) {
    .companylogo {
        font-size: 14px !important;
    }

    #home h1 {
        font-size: 20px !important;
    }

    #home p {
        font-size: 18px !important;
    }

    .homeBtn {
        font-size: 18px !important;
    }

    .menu-icon {
        display: flex;
    }

    nav ul {
        position: fixed !important;
        top: -100% !important; /* Start off-screen above */
        left: 0 !important;
        width: 100% !important;
        background-color: var(--dark-color) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        z-index: 40 !important;
        transition: top 0.3s ease-in-out !important; /* Slide down transition */
    }

    nav ul.active {
        top: 0 !important; /* Move to visible position */
    }

    nav ul li {
        border-top: 1px solid var(--body-bg) !important;
        width: 100%;
    }

    nav ul li a {
        font-size: 20px !important;
        color: var(--light-color);
    }

    .menu-icon.open div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 5px);
    }

    .menu-icon.open div:nth-child(2) {
        opacity: 0;
    }

    .menu-icon.open div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -5px);
    }

    #home {
        padding: 2rem 1rem;
    }

    #home h1 {
        font-size: 2rem;
    }

    #home p {
        font-size: 1rem;
    }

    .homeBtn {
        font-size: 1rem;
    }

    .search-bar-div {
        flex-direction: column;
    }

    input[type="search"] {
        width: 100%;
    }

    #searchButton {
        width: 100%;
    }

    .card {
        width: 100%;
    }

    .card img {
        height: 60%;
    }

    .card-header time {
        font-size: 14px;
    }

    .card-header h2 {
        font-size: 24px;
    }

    .card-description {
        font-size: 18px;
    }

    .big-container {
        padding: 1rem;
    }
}
