/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
}

h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #333;
}

/* Container for width consistency */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Top Bar */
#Top_bar {
    background-color: #4A90E2;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.top_bar_left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
}

/* Logo */
.logo {
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* Hamburger Menu Button */
.mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    position: relative;
    z-index: 1001;
}

.mobile-menu-button span {
    width: 100%;
    height: 3px;
    background-color: #FFF59D;
    transition: all 0.3s ease;
}

.mobile-menu-button.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Menu Styles */
.menu_wrapper {
    flex-grow: 1;
}

.menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1.5rem;
}

.menu-item {
    position: relative;
}

.menu-item a {
    text-decoration: none;
    color: #FFF59D;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s ease;
    display: block;
}

.menu-item a:hover {
    color: #ffeb3b;
}

/* Submenu */
.submenu {
    display: none;
    position: absolute;
    background-color: #4A90E2;
    padding: 0.5rem 0;
    list-style: none;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.menu-item:hover .submenu {
    display: block;
}

.submenu li a {
    padding: 0.5rem 1rem;
}

.hero_top {
    background-color: #fff;
    padding: 1rem 2rem;
    text-align: left;
    margin-top: 72px; /* Added to account for fixed header */
}

.hero_top h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero_top p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Hero Section */
.hero {
    background-color: #fff;
    padding: 1rem 2rem;
    text-align: left;
    margin-top: 10px;  /*Added to account for fixed header */
}

/* Add this new style to reduce space between sections */
section.hero + section.hero {
    padding-top: 1rem;  /* Reduced from 6rem to 2rem */
}

/* If you want to maintain the original top padding for the first section after the header */
#overview.hero {
    padding-top: 2rem;
}

/* Maintain the original bottom padding for the last section before footer */
footer.hero {
    padding-top: 1rem;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #4A90E2;
    color: #FFF59D;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #3A78C2;
    color: #ffeb3b;
}

/* Form Section: Join the Waiting List */
#join-list {
    background-color: #fff;
    padding: 2rem 2rem;
}

#join-list h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1.5rem;
}

#join-list p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Table form styles */
form table {
    width: 100%;
    max-width: 600px;
    border-spacing: 0;
    margin-left: 0;
}

form table td {
    padding: 0.5rem 0;
    vertical-align: middle;
}

form table td:first-child {
    width: 120px;
}

form label {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    display: block;
}

form input[type="text"],
form input[type="email"],
form select {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    color: #333;
    border: 2px solid #4A90E2;
    border-radius: 4px;
    margin-bottom: 1rem;
    outline: none;
    box-sizing: border-box;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:focus,
form select:focus {
    border-color: #3A78C2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

form .cta-button {
    background-color: #4A90E2;
    color: #FFF59D;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    width: auto;
    min-width: 200px;
}

form .cta-button:hover {
    background-color: #3A78C2;
    color: #ffeb3b;
    transform: translateY(-1px);
}

/* How It Works section styles */
#how-it-works .user-group {
    margin-bottom: 2rem;
}

#how-it-works h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#how-it-works ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

#how-it-works li p {
    margin-bottom: 0.5rem;
}

#how-it-works .trainer-note {
    margin-top: 1rem;
    color: #4A90E2;
    font-weight: 500;
}

@media (max-width: 768px) {
    #how-it-works .user-group {
        margin-bottom: 1.5rem;
    }
}

/* Team Section Styles */
.team-section {
    padding: 2rem 2rem;
    background-color: #fff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f5f5f5;
}

.team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%); /* Converts image to black-and-white */
    transition: filter 0.3s ease; /* Adds a smooth transition effect */
}

.team-member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 144, 226, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover .team-member-overlay {
    opacity: 1;
}

.team-member:hover img {
    transform: scale(1.05);
}

.team-member-name {
    color: #FFF59D;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.team-member-title {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.team-member-social {
    background-color: #FFF59D;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.team-member-social:hover {
    background-color: #ffeb3b;
}

.team-member-social img {
    width: 20px;
    height: 20px;
}

#confirmation-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
}

#confirmation-message .success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 4px;
}

#confirmation-message .error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding-top: 72px; /* Added to account for fixed header */
    }

    .mobile-menu-button {
        display: flex;
    }

    .menu_wrapper {
        position: fixed;
        top: 72px; /* Height of the top bar */
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        background-color: #4A90E2;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .menu_wrapper.active {
        transform: translateX(0);
    }

    .menu {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .menu-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 245, 157, 0.2);
    }

    .menu-item:last-child {
        border-bottom: none;
    }

    .menu-item > a {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
        display: block;
        position: relative;
        z-index: 2;
    }

    .submenu {
        position: static;
        width: 100%;
        display: none;
        box-shadow: none;
        background-color: rgba(74, 144, 226, 0.9);
        padding: 0;
    }

    .menu-item.active .submenu {
        display: block;
    }

    .submenu li {
        width: 100%;
    }

    .submenu li a {
        padding: 1rem;
        padding-left: 2rem;
        width: 100%;
        box-sizing: border-box;
        display: block;
    }

    /* Touch improvements */
    .menu-item a,
    .submenu li a {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* Ensure clickable areas are large enough */
    .menu-item,
    .submenu li {
        min-height: 44px;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .team-member-name {
        font-size: 1.2rem;
    }

    /* Form responsiveness */
    form table {
        width: 100%;
    }

    form input[type="text"],
    form input[type="email"],
    form select {
        max-width: 100%;
    }

    form .cta-button {
        width: 100%;
    }
}

/* Desktop-specific adjustments */
@media (min-width: 769px) {
    form table {
        max-width: 600px;
    }

    form input[type="text"],
    form input[type="email"],
    form select {
        width: 400px;
    }

    form .cta-button {
        width: auto;
    }
}