﻿/* Basic Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header */
header {
    background-color: #05b8c5;
    color: white;
    padding: 10px;
    text-align: left;
}

    /* Container for header to set the max-width */
    header .container {
        width: 100%;
        max-width: 1170px;
        margin: 0 auto; /* Center the content */
        text-align: left;
    }

/* Menu Icon */
.menu-icon {
    font-size: 30px;
    cursor: pointer;
    display: none; /* Hidden by default */
    background-color: #333;
    padding-top: 5px;
    padding-bottom: 10px;
}

.desktop-menu {
    margin-top: 10px;
}

#LeftSide {
    width: 70%;
    padding-right: 20px;
}

#RightSide {
    width: 30%;
    margin-top: -19px !important;
}

/* Mobile Menu */
.mobile-menu {
    display: none; /* Hidden by default on desktop */
    background-color: #444;
    color: white;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    padding: 15px;
    box-sizing: border-box;
}

    .mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .mobile-menu ul li {
            margin: 10px 0;
        }

/* Close Button for Mobile Menu */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 25px;
    cursor: pointer;
    color: white;
}

/* Mobile Adjustments */
@media (max-width: 960px) {
    /* Show the hamburger menu on mobile */
    .menu-icon {
        display: block;
        padding-left: 15px;
    }

    /* Make the left side take full width on mobile */
    .main-container {
        flex-direction: column !important;
        padding: 0; /* Remove padding on mobile */
        margin: 0; /* Remove margin on mobile */
    }

    html, body {
        overflow-x: hidden; /* Prevent horizontal scrolling on mobile */
    }

    #LeftSide {
        width: 100% !important; /* Full width on mobile */
        padding-left: 0px;
    }

    /* Hide right side on mobile */
    #RightSide {
        display: none !important;
    }

    /* Hide desktop menu on mobile */
    .desktop-menu {
        display: none;
    }

    /* Ensure mobile menu is hidden by default */
    .mobile-menu {
        display: none;
        background: #222; /* Keep background visible when closed */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

        /* Show mobile menu when toggled */
        .mobile-menu.show {
            display: block;
        }
}

/* Desktop container with a max-width of 1170px */
.container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto; /* Center the content */
}


/* Mobile Landscape Styles */
@media screen and (max-width: 1024px) and (orientation: landscape) {
    .header-wrapper {
        margin-top: 0 !important;
        border-radius: 0 !important;
    }

    html, body {
        margin: 0 !important;
        padding: 0 !important;
    }
}


@media (min-width: 769px) {
    .header-wrapper {
        width: 1170px; /* Set exact width for desktop */
        margin: 0 auto; /* Center the header on the page */
        border-radius: 10px;
        margin-top: 10px;
        background-color: #05b8c5;
    }

    .main-container {
        max-width: 1170px !important;
        margin: 0 auto; /* Center it */
        padding: 0; /* Remove any side padding */
        display: flex;
        justify-content: space-between;
        padding: 0; /* Remove all padding */
        min-width: 1170px !important;
    }

    /* Adjust LeftSide and RightSide behavior */
    #LeftSide {
        width: 70% !important;
    }

    #RightSide {
        width: 30% !important;
        display: block !important; /* Show the right side */
    }
}

.footer {
    padding-left: 15px;
}

@media screen and (max-width: 1024px) and (orientation: landscape) {
    body, html {
        padding: 0;
        overflow-x: hidden; /* Prevent body from allowing horizontal scroll */
    }

    .newssectionClear,
    .newssection {
        width: 97%;
        max-width: 97vw;
        box-sizing: border-box;
        padding: 10px 10px 10px 25px !important; /* top, right, bottom, left */
        overflow-x: hidden;
        background-color: #e0e0e0;
        border-radius: 10px;
        border: 1px dashed #878787;
    }
}
