body {
    background-color: #FFECDF;
}

/* Navbar styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FF7C1D;
    padding: 20px;
    height: 30px; /* Increase navbar height */
}

/* Navigation menu item styles */
nav ul {
    list-style-type: none;
    margin: 0; /* Center navigation items */
    padding: 0;
    display: flex;
    justify-content: space-around;
    width: 50%;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem; /* Slightly increase font size */
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Logo and brand name styles */
.logo-section2 {
    display: flex;
    align-items: center;
    position: relative; /* For positioning the square */
    margin-left: 0; /* Remove negative left margin */
    padding-left: 20px; /* Add appropriate padding */
}

.logo2 {
    height: 40px; /* Adjust logo size */
    margin-right: 10px;
}

.brand-name {
    color: white;
    font-size: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold; /* Set title to bold */
}

/* Menu icon styles */
.menu-icon {
    position: relative;
}

.menu-icon img {
    height: 40px;
    cursor: pointer;
}

/* Dropdown menu styles */
.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    right: 0;
    top: 50px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1;
    width: 150px; /* Adjust menu width if needed */
}

.menu-icon:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    list-style: none;
    padding: 10px 20px;
}

.dropdown-menu li a {
    color: #515151; /* Use light gray as font color */
    text-decoration: none;
    font-family: 'Open Sans', sans-serif; /* Use body font */
    font-weight: 300; /* Set font to thin */
    font-size: 1rem; /* Set appropriate font size */
    line-height: 2; /* Increase line height for spacing */
}

.dropdown-menu li a:hover {
    text-decoration: underline;
}

/* Content */

/* Banner Section */
.mental-wellness-section {
    position: relative;
}

.mental-wellness-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: 1;
}

.mental-wellness-section h1, .mental-wellness-section p {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-section {
    background-image: url('../images/mental_wellness_banner.png');
    background-size: cover;
    background-position: center;
    height: 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

/* Add semi-transparent black overlay on background image */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Increase overlay opacity to 0.6 */
    z-index: 1;
}

.hero-section .overlay {
    position: relative;
    z-index: 2;
    text-align: center; /* Center text */
    margin-bottom: 10px; /* Adjust spacing between text and cards */
}

.hero-section .overlay h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 4rem;
    margin-bottom: 10px;
    color: #ffffff; /* Set to the same orange as navbar */
    text-align: center; /* Center align */
}

.hero-section .overlay p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5rem;
    color: #ffffff; /* Set to the same orange as navbar */
    text-align: center; /* Center align */
    margin-top: 10px; /* Add top margin */
}

/* Card Layout */
.card-container {
    display: flex;
    justify-content: space-around;
    margin: 40px 0;
    gap: 20px;
}

.up_card {
    background-color: white;
    border-radius: 30px; /* Add curve */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow */
    width: 30%;
    height: 500px; /* Increase card height */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 10px; /* Adjust card left and right margins */
    margin-left: 60px;
    margin-right: 60px;
    margin-bottom: 100px; /* Increase distance from elements below */
    margin-top: 30px;
}

.up_card img {
    width: 100%;
    height: 300px; /* Fixed image height for consistency */
    object-fit: cover; /* Ensure image does not distort */
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.up_card h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5rem;
    margin: 10px 0;
}

.up_card p {
    min-height: 60px; /* Set minimum height for consistent text area */
    padding: 0 15px;
    font-size: 1rem;
    color: #515151;
    margin-bottom: 10px; /* Ensure enough space below */
}

.up_card:hover {
    transform: translateY(-10px); /* Move up on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Enhance shadow effect */
}

.therapist-info h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 3rem;
    margin-bottom: 10px;
    color: #FF7C1D; 
    text-align: center; /* Center align */
}

.therapist-info p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    color: #FF7C1D; /* Set to the same orange as navbar */
    text-align: center; /* Center align */
    margin-top: 10px; /* Add top margin */
}

/* FAQ Section */
.faq-section {
    margin: 40px auto;
    text-align: left; /* Align text to the left */
    width: 80%; /* Adjust width to fit content */
}

.faq-section h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 3rem;
    color: #FF7C1D; /* Use orange */
    margin-bottom: 30px;
    text-align: center; /* Center align title */
}

.faq-container {
    width: 100%; /* Ensure container width */
    margin: 0 auto;
}

details summary {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.4rem;
    color: #515151; /* Use gray font */
    cursor: pointer;
    padding: 10px 0;
    border-bottom: 1px solid #ddd; /* Border style */
    width: 60%; /* Adjust line width */
    margin-left: 20px; /* Align line with content on the left */
}

details p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    padding: 10px 20px;
    color: #515151; /* Use gray font */
    line-height: 1.5;
}

/* Footer styles */
footer {
    background-color: #FF7C1D; 
    color: white; 
    text-align: center; 
    padding: 20px 0; /* Add padding on top and bottom */
    font-family: 'Open Sans', sans-serif; 
    font-size: 1.2rem; 
}

/* Ensure spacing between main content and footer */
main {
    padding-bottom: 40px; /* Leave enough space for footer */
}


/* Responsive design for desktop */
/* 12Pro: 390 * 844 */
@media (min-width: 601px) {
    #menu-desktop {
        display: flex; /* Display desktop navigation */
    }

    #menu-mobile {
        display: none; /* Hide mobile navigation on desktop */
    }
}

/* Responsive design for mobile */
/* 12Pro: 390 * 844 */
@media (max-width: 600px) {
    
    /* Hide "Get Fit" text next to logo */
    .brand-name {
        display: none;
    }

    /* Set fixed logo size */
    .logo2 {
        height: 40px; /* Set fixed height */
    }

    /* Adjust logo position */
    .logo-section2 {
        height: 30px;
        margin-right: 330px;
        margin-left: 0; /* Remove extra left margin to align logo left */
    }

    /* Adjust menu icon position */
    .menu-icon {
        position: absolute;
        top: 15px; /* 10px from top */
        right: 10px; /* 10px from right */
        display: block;
    }

    #menu-desktop {
        display: none; /* Hide desktop navigation */
    }

    #menu-mobile {
        display: flex; /* Display mobile navigation */
        flex-direction: column;
        align-items: center;
        background-color: #FF7C1D; /* Match desktop navbar color */
    }

    /* Menu */
    #menu-mobile ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    #menu-mobile ul li {
        margin: 1px 0; /* Increase spacing between nav items */
    }

    #menu-mobile ul li a {
        color: rgb(116, 116, 116);
        text-decoration: none;
        font-size: 1.2rem; /* Adjust font size */
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 50px; /* Below menu icon */
        right: 10px; /* Align right */
        background-color: #ffffff; /* Menu background color */
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for visual effect */
    }

    /* Use .show class to toggle menu visibility */
    .dropdown-menu.show {
        display: block;
    }

    /* Set menu text color to gray and reduce font size */
    .dropdown-menu li a {
        color: #afafaf; /* Set font color to gray */
        text-decoration: none;
        font-size: 0.9rem; /* Reduce font size */
    } 

    .dropdown-menu li {
        padding: 10px 0px;
    }

    .menu-icon:hover .dropdown-menu {
        display: block; /* Show dropdown menu on hover */
    }

    /* Summary link appearance */
    summary {
        list-style: none;
        font-size: 1rem;
        font-weight: bold;
        color: #ffffff;
        cursor: pointer;
        display: flex;
        align-items: center;
        margin-top: -40px; /* Move menu button up */
    }

    /* Menu text color */
    .menu-text {
        color: #ffffff; /* Set menu color to white */
        margin-top: -60px; /* Move menu button up */
    }

    /* Triangle style for menu items */
    .menu-summary::before {
        color: #ffffff; /* Set triangle to white */
        content: '\25B6'; /* Unicode triangle */
        display: inline-block;
        margin-right: 10px;
        transition: transform 0.3s ease;
        margin-top: -60px; /* Adjust position */
    }
    
    /* Triangle for collapsible menu */
    summary::before {
        color: #ffffff; /* Set color to white */
        content: '\25B6'; /* Unicode triangle */
        display: inline-block;
        margin-right: 10px;
        transition: transform 0.3s ease;
    }

    /* Rotate triangle when menu is expanded */
    details[open] summary::before {
        transform: rotate(90deg);
        z-index: 9999; /* Ensure menu is on top when expanded */
    }

    /* Keep summary text position */
    details summary {
        position: relative;
        z-index: 1;
    }

    /* Menu content style */
    .menu-content {
        background-color: #ffffff; /* Set background to white */
        padding: 15px;
        border-radius: 15px; /* Rounded corners */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow */
        margin-top: 10px;
    }

    /* Menu item styles */
    .menu-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    /* Hide navigation */
    nav {
        display: none;
    }

    /* Card layout adjustments for mobile */
    .card-container {
        flex-direction: column; /* Stack cards vertically */
        align-items: center; /* Center align */
        gap: 10px; /* Maintain spacing between cards */
    }

    .up_card {
        width: 80%; /* Reduce card width for mobile screens */
        height: auto; /* Make height responsive to content */
        margin-bottom: 20px; /* Add bottom margin */
    }

    .up_card img {
        height: 80%; /* Adjust image height for mobile */
        object-fit: cover;
    }

    .up_card h3 {
        font-size: 1.2rem; /* Reduce title font size */
    }

    .up_card p {
        font-size: 1rem; /* Adjust body text font size */
    }

    /* Background */
    .hero-section {
        background-image: url('../images/mental_wellness_banner.png');
        background-size: cover;
        background-position: center;
        height: 300px;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
    }

    .hero-section .overlay h1 {
        font-family: 'Open Sans', sans-serif;
        font-size: 2rem;
        margin-bottom: 10px;
        color: #ffffff; /* Match orange color of navbar */
        text-align: center; /* Center align */
    }
    
    .hero-section .overlay p {
        font-family: 'Open Sans', sans-serif;
        font-size: 1rem;
        color: #ffffff; /* Match orange color of navbar */
        text-align: center; /* Center align */
        margin-top: 10px; /* Add top margin */
    }

    /* Therapist section adjustments */
    .therapist-info h2 {
        font-family: 'Open Sans', sans-serif;
        font-size: 2rem;
        margin-bottom: 10px;
        color: #FF7C1D; 
        text-align: center; /* Center align */
    }
    
    .therapist-info p {
        font-family: 'Open Sans', sans-serif;
        font-size: 1rem;
        color: #FF7C1D; /* Match orange color of navbar */
        text-align: center; /* Center align */
        margin-top: 10px; /* Add top margin */
    }

    /* FAQ Section adjustments */
    .faq-section h2 {
        font-family: 'Open Sans', sans-serif;
        font-size: 2rem;
        color: #FF7C1D; /* Use orange color */
        margin-bottom: 30px;
        text-align: center; /* Center align title */
    }
    
    .faq-container {
        width: 100%; /* Ensure container width */
        margin: 0 auto;
    }
    
    details summary {
        font-family: 'Open Sans', sans-serif;
        font-size: 1.2rem;
        color: #515151; /* Use gray font */
        cursor: pointer;
        padding: 30px 0;
        border-bottom: 1px solid #ddd; /* Border style */
        width: 100%; /* Adjust line width */
        margin-left: 0px; /* Align line with content on the left */
        margin-top: -10px; /* Move line up; adjust negative value */
    }

    /* Small triangle in FAQ */
    .faq-section details summary::before {
        color: #515151; /* Set triangle to gray */
        content: '\25B6'; /* Triangle symbol */
        display: inline-block;
        margin-right: 10px;
    }
    
    details p {
        font-family: 'Open Sans', sans-serif;
        font-size: 1rem;
        padding: 10px 20px;
        color: #515151; /* Use gray font */
        line-height: 1.5;
    }
}

/* Responsive design for desktop */
@media (min-width: 601px) {
    #menu-desktop {
        display: flex; /* Show desktop navigation */
    }
    #menu-mobile {
        display: none; /* Hide mobile navigation */
    }
}

/* Ensure navigation bar is at the top layer */
#menu-mobile, #menu-desktop {
    position: relative;
    z-index: 10; /* Set above background layer */
}

