@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Base responsive tweaks */
body {
    margin: 0;
    padding: 0;
    font-family: 'Verdana', 'Arial', sans-serif;
}

/* Master Table Responsiveness */
table[width="779"], table.master-table {
    width: 100% !important;
    max-width: 779px !important;
    margin: 0 auto;
}

.responsive-img {
    max-width: 100%;
    height: auto;
}

/* Mobile Header Styles */
.mobile-header {
    display: none;
    background-color: #20b2aa;
    color: white;
    padding: 10px 15px;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2000;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.mobile-logo {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    z-index: 2001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: #fff5ee;
    z-index: 1999;
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
    padding-top: 60px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    padding: 15px 25px;
    text-decoration: none;
    color: #cd5c5c;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-menu a:hover {
    background-color: rgba(32, 178, 170, 0.1);
}

/* Hamburger active state */
.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Overlay background */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1998;
}
.menu-overlay.active {
    display: block;
}

@media (max-width: 779px) {
    .mobile-header {
        display: flex;
    }
    
    /* Hide specific desktop elements */
    .desktop-nav-top, .desktop-nav-right-cell {
        display: none !important;
    }
    
    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Content adjustments */
    td {
        display: block;
        width: 100% !important;
    }
    
    /* Reset tables that should be blocks on mobile */
    .responsive-block {
        display: block !important;
        width: 100% !important;
    }
}
