/* General Body and Container Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Header Styles */
header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/P7042352_NCC1701D_1920x1200_PbGtag.jpg"); /* Added background image with opacity overlay */
    background-size: cover; /* Ensures the image covers the entire header */
    background-position: center center; /* Centers the image */
    background-repeat: no-repeat;
    color: #fff;
    padding-top: 20px;
    min-height: 150px; /* Increased min-height for better image display */
    border-bottom: #7baa24 3px solid;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Needed for absolute positioning of slogan */
}

header .logo {
    background-color: rgba(0, 0, 0, 0.3); /* Slightly transparent background for blending */
    padding: 10px;
    border-radius: 5px;
}

header .logo img {
    height: 80px; /* Adjust as needed */
    width: auto;
    display: block;
    margin: 0 auto;
}

header nav ul {
    padding: 0;
    list-style: none;
    text-align: right;
}

header nav li {
    display: inline-block;
    padding: 0 10px;
}

header nav a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
}

header nav a:hover {
    color: #7baa24;
}

.site-slogan {
    text-align: center;
    width: 100%;
    margin-top: 10px;
    background-color: rgba(0, 0, 0, 0.3); /* Slightly transparent background for blending */
    padding: 10px;
    border-radius: 5px;
}

.site-slogan h1 {
    margin: 0;
    font-size: 2.5em;
}

.site-slogan p {
    font-size: 1.1em;
}

/* Main Navigation Styles */
.main-nav {
    background: #56063a;
    color: #fff;
    padding: 10px 0;
    border-bottom: #7baa24 1px solid;
}

.main-nav ul {
    padding: 0;
    list-style: none;
    text-align: center;
    display: flex; /* Use flexbox for navigation links */
    justify-content: space-around; /* Distribute links evenly */
    width: 100%; /* Span full width */
}

.main-nav li {
    display: inline-block;
    padding: 0 10px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

.main-nav a:hover {
    color: #7baa24;
}

/* Main Content Area */
main .content-area {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.sidebar {
    flex: 0 0 150px; /* Fixed width for sidebar on larger screens */
    padding: 20px;
    background-color: #eee;
    margin-right: 20px;
    box-sizing: border-box;
    background-image: url("images/U-HGlobalClimb5.jpg"); /* THIS LINE IS CRITICAL */
    background-repeat: repeat-y;
    background-position: top left;
}

.sidebar img {
    display: none; /* Hide the image tag as it's now a background */
}

.main-content {
    flex: 1; /* Takes remaining space */
    padding: 20px;
    background: #fff;
    box-sizing: border-box;
}

.main-content h2 {
    color: #7baa24;
    margin-top: 0;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.feature-column {
    flex: 1;
    padding: 10px;
    box-sizing: border-box;
}

.feature-column h3 {
    color: #56063a; /* Changed to Navy Blue */
    font-size: 1.1em;
}

.tech-logos {
    text-align: center;
    margin-top: 30px;
}

.tech-logos img {
    max-width: 80px; /* Adjust as needed */
    height: auto;
    margin: 10px;
    vertical-align: middle;
}

.call-to-action {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2em;
}

.call-to-action a {
    color: #7baa24;
    text-decoration: none;
    font-weight: bold;
}

.tagline {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: #666;
}

/* Footer Styles */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        text-align: center;
        margin-top: 10px;
    }

    header nav li {
        display: block;
        padding: 5px 0;
    }

    .site-slogan {
        margin-top: 20px;
    }

    .main-nav li {
        display: block;
        padding: 5px 0;
    }

    /* Change flex direction for content area on smaller screens */
    main .content-area {
        flex-direction: row; /* Keep them side-by-side */
        flex-wrap: wrap; /* Allow wrapping if content is too wide */
    }

    .sidebar {
        flex: 0 0 100px; /* Smaller fixed width for sidebar on tablets */
        margin-right: 10px; /* Reduce margin */
        padding: 10px; /* Reduce padding */
    }

    .main-content {
        flex: 1; /* Take remaining space */
    }

    .feature-column {
        flex: 100%;
    }

    .tech-logos img {
        max-width: 60px;
    }
}

@media (max-width: 480px) {
    .site-slogan h1 {
        font-size: 2em;
    }

    .site-slogan p {
        font-size: 1em;
    }

    header nav a {
        font-size: 12px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .sidebar {
        flex: 0 0 80px; /* Even smaller fixed width for sidebar on phones */
        margin-right: 5px; /* Further reduce margin */
        padding: 5px; /* Further reduce padding */
    }

    .tech-logos img {
        max-width: 50px;
    }
}




/* ===== MOBILE MENU STYLES ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    cursor: pointer;
    margin-left: auto;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100px;
    right: 0;
    background-color: rgba(0,0,0,0.9);
    width: 50vw;
    max-height: 50vh;
    overflow-y: auto;
    padding: 1em;
    z-index: 9999;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    padding: 10px 0;
    text-align: left;
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14pt;
}

.mobile-nav.open {
    display: block;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
    }

    .logo img {
        display: block;
        margin: 0 auto;
        max-height: 80px;
        height: auto;
        width: auto;
    }
}
