: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/aboutus-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;
}

/* About Us Section Styling */
.about-section-one,
.about-section-two {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 8rem;
    margin: 6rem 0rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--med-gray);
}

.about-image img {
    width: 100%;
    height: 500px;
    min-width: 600px;
}

.about-text {
    margin: 0 30px;
}

.about-title h1 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-content p,
h3 {
    margin-top: 10px;
}

.hr-line {
    border: 1px solid var(--border-color);
}

.bi-list,
.bi-x {
    background-color: var(--med-gray);
    color: var(--dark-color);
    font-size: 30px;
}

@media only screen and (min-width: 960px) and (max-width: 1200px) {
    .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;
        padding: 1rem 0rem;
        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);
    }

    .about-section-one {
        flex-direction: column;
        padding: 3rem 1rem;
    }
    .about-section-two {
        flex-direction: column;
        padding: 3rem 1rem;
    }

    .about-image img {
        min-width: 300px;
        height: auto;
    }

    .about-title h1 {
        font-size: 40px;
    }
}

@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;
        padding: 1rem 0rem;
        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;
    }

    .about-section-one {
        flex-direction: column;
        padding: 3rem 1rem;
    }
    .about-section-two {
        flex-direction: column;
        padding: 3rem 1rem;
    }

    .about-image img {
        min-width: 300px;
        height: auto;
    }

    .about-title h1 {
        font-size: 40px;
    }
    .header-feed {
        height: 300px;
    }
}

@media only screen and (max-width: 460px) {
    .companylogo {
        font-size: 14px !important;
    }

    #home {
        padding: 3rem 1rem;
    }

    #home h1 {
        font-size: 40px !important;
    }

    #home p {
        font-size: 16px !important;
    }

    .homeBtn {
        font-size: 16px !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;
        padding: 1rem 0rem;
        width: 100%;
        padding: 12px 0px;
    }

    nav ul li a {
        font-size: 16px !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);
    }

    .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;
    }

    .about-section-one {
        flex-direction: column;
        padding: 3rem 1rem;
    }
    .about-section-two {
        flex-direction: column;
        padding: 3rem 1rem;
    }

    .about-image img {
        min-width: 300px;
        height: auto;
    }

    .about-title h1 {
        font-size: 40px;
    }
}
