/*
    Mobile Styling CSS
*/
header.header-mobile {
    display:none;
}
@media (max-width:1024px) {
    /* Global Header */
    header.header-desktop {
        display:none;
    }
    header.header-mobile {
        display:block;
    }
    header.header-mobile .header-top {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        position: fixed;
        top: 0;
        z-index: 1000;
        max-height: 60px;
        background-color: #FFFFFF;
        width:100%;
    }
    header.header-mobile .header-top img {
        height:40px;
        object-fit:contain;
    }
    header .menu-icon {
        background-color:transparent;
        color:var(--e-global-color-secondary);
        padding:0;
    }

    /* Overlay */
    .mobile-menu {
        position: fixed;
        margin-top:60px;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.8);
        z-index: 999;
        display:none;
        opacity: 0;
        transition: opacity 0.8s ease;
    }
    .mobile-menu.active {
        display:block;
        opacity: 1;
    }
    .slide-menu {
        position: fixed;
        top: 60px;
        z-index: 1001;
        right: -100%;
        width: 100%;
        background: white;
        transition: right 0.8s ease;
        padding: 30px 20px;
        overflow-y: auto;
    }
    .slide-menu.active {
        right: 0;
    }
    /* Menu Content */
    .mobile-icons .social-icons-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }
    .header-nav-menu {
        flex-direction: column;
        align-items: center;
        margin-top: 30px;
    }
    .header-nav-menu > li a {
        font-size:16px;
    }
    .menu-content ul {
        list-style: none;
        padding: 0;
    }
    .menu-content li {
        line-height:2.25em;
        text-align:center;
    }
    /* Base submenu state: hidden with max-height 0 */
    .submenu {
        list-style: none;
        padding-left: 15px;
        margin-top: 5px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }
    .submenu li a {
        text-transform:capitalize;
        font-weight:normal;
    }
    .submenu {
        margin-bottom:5px;
    }
    .action-buttons-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 25px;
    }
    .action-button {
        font-size:16px;
    }
    .action-volunteer {
        margin-right:0;
    }

    /* Footer */
    .footer-middle .footer-content,.footer-bottom .footer-content {
        flex-direction: column;
        padding: 0 10px;
    }
    .col-31 {
        width:100%;
    }
    .col-27 {
        width:100%;
    }
    .col-41 {
        width:100%;
    }
    .footer-middle .logo-wrap {
        align-items: center;
    }

    /* Homepage */
    .fe-box-container {
        width:100%;
    }
    .fe .hero {
        min-height: 200px;
    }
    .fe .hero h1 {
        font-size: 36px;
    }
    .fe .intro {
        padding: 80px 20px 70px;
    }
    h2 {
        font-size: 32px;
        text-align: center;
    }
    .fe .intro .text {
        padding: 0;
    }
    .fe-full-container {
        padding: 0 20px;
    }
    .fe .title {
        flex-direction: column;
    }
    .fe-full-container.listing form.filter-form {
        flex-wrap: wrap;
    }
    .fe-full-container.listing form.filter-form #clear_date_range {
        top: 90%;
    }
    .fe-full-container.listing .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Opportunity details */
    .fe #content {
        flex-direction: column;
        padding: 0 20px;
    }
    .fe .left, .fe .right {
        width:100%;
    }
    h3 {
        font-size: 24px;
    }
    .modal {
        top: 80px;
        left: 0;
        transform: none;
        padding: 40px 20px;
        margin: 20px;
    }
    .signup-modal {
        margin: 0 20px;
        padding: 20px;
        overflow-y: auto;
        height: 85vh;
    }
    .signup-modal .signup-content.calendar-section {
        flex-direction: column;
    }
    .signup-modal .signup-infobox {
        grid-template-columns: 1fr;
    }
    .signup-modal .signup-content.calendar-section #calendar-wrapper, .signup-modal .signup-content.calendar-section #session-list {
        width:100%;
    }
    .signup-modal .signup-content.calendar-section #session-list {
        height: 100%;
        overflow: initial;
    }
    .fe .footer {
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }
    .fe .footer img {
        width: 250px;
    }

    /* Volunteer Dashboard */
    .container {
        width:initial;
        margin: 30px 20px 30px;
        padding: 20px;
    }
    .stats,.volunteer-upcoming .header,.volunteer-upcoming .volunteer-box {
        flex-direction:column;
    }
    .stats .total-hours #volunteer-hours-box {
        padding: 20px 0;
    }
    #volunteer-history-table-container {
        overflow-x: auto;
    }
    .volunteer-upcoming .header {
        margin-bottom: 20px;
    }
    .volunteer-upcoming .volunteer-box {
        text-align: center;
    }
    .orientation {
        flex-direction: column;
        margin-bottom: 20px;
    }
    .body.profile {
        flex-direction: column;
    }
    .profile .profile-menu {
        flex: 0;
    }
    .profile .profile-content {
        padding-left:0;
    }
    #upload_msf {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .profile .profile-menu .menu-list li {
        padding: 5px 15px;
    }
}

/* strictly mobile phones */
@media (max-width:767px) {
    .fe-full-container.listing .cards {
        grid-template-columns: repeat(1, 1fr);
    }

}