/* =========================================================
   RISHAL MUSIC TRUST - HEADER
========================================================= */


/* =========================================================
   GLOBAL RESPONSIVE SAFETY (loaded on every page)
========================================================= */

html,
body {
    max-width: 100%;

    overflow-x: hidden;
}

@supports (overflow: clip) {

    html,
    body {
        overflow-x: clip;
    }

}

img,
video,
iframe,
embed,
object {
    max-width: 100%;
}

#header,
#footer {
    width: 100%;
}

.site-header *,
.rmt-footer * {
    box-sizing: border-box;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    width: 100%;

    position: relative;

    z-index: 9999;

    background: #1d2530;

    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   HEADER CONTAINER
========================================================= */

.header-container {
    width: 95%;

    max-width: 1500px;

    min-height: 90px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    gap: 30px;
}


/* =========================================================
   LOGO
========================================================= */

.site-logo {
    display: flex;

    align-items: center;

    flex-shrink: 0;

    text-decoration: none;
}


.site-logo img {
    display: block;

    width: 80px;

    height: auto;

    object-fit: contain;
}


/* =========================================================
   MAIN NAVIGATION
========================================================= */

.main-nav {
    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;
}


/* =========================================================
   NAV MENU
========================================================= */

.nav-menu {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 35px;

    margin: 0;

    padding: 0;

    list-style: none;
}


/* =========================================================
   NAV ITEM
========================================================= */

.nav-item {
    position: relative;

    list-style: none;
}


/* =========================================================
   NAV LINK
========================================================= */

.nav-item > a {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 40px 0;

    color: #ffffff;

    font-family: "Montserrat", sans-serif;

    font-size: 13px;

    font-weight: 400;

    line-height: 1.1;

    white-space: nowrap;

    text-decoration: none;

    transition:
        color 0.3s ease;
}


/* =========================================================
   NAV HOVER
========================================================= */

.nav-item > a:hover {
    color: #ff6100;
}


/* =========================================================
   DROPDOWN ARROW
========================================================= */

.dropdown-arrow {
    width: 5px;

    height: 5px;

    display: inline-block;

    flex-shrink: 0;

    margin-top: -3px;

    border-right: 1.5px solid currentColor;

    border-bottom: 1.5px solid currentColor;

    transform: rotate(45deg);

    transition:
        transform 0.3s ease;
}


/* =========================================================
   ARROW HOVER
========================================================= */

.dropdown:hover > a .dropdown-arrow {
    transform: rotate(225deg);

    margin-top: 3px;
}


/* =========================================================
   DROPDOWN MENU
   IMPORTANT:
   No extra top/bottom padding
   No translate gap
========================================================= */

.dropdown-menu {
    position: absolute;

    top: 100%;

    left: -18px;

    width: 240px;

    min-width: 240px;

    margin: 0;

    padding: 0;

    background: #1E252F;

    border-top: 2px solid #ff6100;

    list-style: none;

    opacity: 0;

    visibility: hidden;

    transform: translateY(0);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}


/* =========================================================
   DROPDOWN ITEM
========================================================= */

.dropdown-menu li {
    display: block;

    width: 100%;

    margin: 0;

    padding: 0;

    line-height: 1;
}


/* =========================================================
   DROPDOWN LINKS
========================================================= */

.dropdown-menu li a {
    display: flex;

    align-items: center;

    width: 100%;

    min-height: 50px;

    margin: 0;

    padding: 14px 20px;

    color: #ffffff;

    background: #1E252F;

    font-family: "Montserrat", sans-serif;

    font-size: 13px;

    font-weight: 500;

    line-height: 1.2;

    text-decoration: none;

    border: none;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        padding-left 0.25s ease;
}


/* =========================================================
   DROPDOWN HOVER
========================================================= */

.dropdown-menu li a:hover {
    color: #ff6100;

    background: #faf7f1;

    padding-left: 25px;
}


/* =========================================================
   SHOW DROPDOWN
========================================================= */

.dropdown:hover > .dropdown-menu {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


/* =========================================================
   DONATE WRAPPER
========================================================= */

.header-donate {
    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: flex-end;
}


/* =========================================================
   DONATE BUTTON
========================================================= */

.header-donate a {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 112px;

    padding: 12px 20px;

    color: #ffffff;

    background: #d94b1f;

    border: 1px solid #d94b1f;

    border-radius: 30px;

    font-family: "Montserrat", sans-serif;

    font-size: 14px;

    font-weight: 500;

    line-height: 1;

    white-space: nowrap;

    text-decoration: none;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}


/* =========================================================
   DONATE HOVER
========================================================= */

.header-donate a:hover {
    color: #ffffff;

    background: #b83d18;

    border-color: #b83d18;

    transform: translateY(-1px);
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
    display: none;

    width: 44px;

    height: 44px;

    padding: 8px;

    margin: 0;

    background: transparent;

    border: 0;

    outline: none;

    cursor: pointer;
}


/* =========================================================
   HAMBURGER
========================================================= */

.menu-toggle span {
    display: block;

    width: 100%;

    height: 2px;

    margin: 5px 0;

    background: #ffffff;

    border-radius: 2px;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* =========================================================
   HAMBURGER ACTIVE
========================================================= */

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


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


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


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1250px) {

    .header-container {
        width: 94%;

        gap: 20px;
    }


    .nav-menu {
        gap: 18px;
    }


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


    .site-logo img {
        width: 100px;
    }


    .header-donate a {
        min-width: 105px;

        padding: 11px 16px;

        font-size: 13px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 1100px) {

    .header-container {
        width: 92%;

        min-height: 80px;

        justify-content: space-between;
    }


    /* Logo */

    .site-logo img {
        width: 90px;
    }


    /* Hide Desktop Navigation */

    .main-nav {
        position: absolute;

        top: 100%;

        left: 0;

        width: 100%;

        display: none;

        margin: 0;

        padding: 0;

        background: #1d2530;

        border-top: 1px solid rgba(255, 255, 255, 0.1);

        box-shadow:
            0 10px 25px rgba(0, 0, 0, 0.15);
    }


    .main-nav.active {
        display: block;

        max-height: calc(100vh - 80px);

        overflow-y: auto;

        -webkit-overflow-scrolling: touch;
    }


    /* Menu */

    .nav-menu {
        display: block;

        width: 100%;

        margin: 0;

        padding: 0;
    }


    /* Items */

    .nav-item {
        width: 100%;

        margin: 0;

        padding: 0;
    }


    /* Links */

    .nav-item > a {
        display: flex;

        width: 100%;

        min-height: 52px;

        padding: 15px 25px;

        justify-content: space-between;

        color: #ffffff;

        border-bottom: 1px solid rgba(255, 255, 255, 0.08);

        font-size: 14px;
    }


    /* Arrow */

    .dropdown-arrow {
        width: 8px;

        height: 8px;

        margin-left: auto;

        margin-right: 5px;
    }


    /* Active Arrow */

    .dropdown.active > a .dropdown-arrow {
        transform: rotate(225deg);

        margin-top: 4px;
    }


    /* Mobile Dropdown */

    .dropdown-menu {
        position: static;

        display: none;

        width: 100%;

        min-width: 100%;

        margin: 0;

        padding: 0;

        background: #171e27;

        border: 0;

        box-shadow: none;

        opacity: 1;

        visibility: visible;

        transform: none;

        transition: none;
    }


    /* Open Mobile Dropdown */

    .dropdown.active > .dropdown-menu {
        display: block;
    }


    /* Mobile Dropdown Items */

    .dropdown-menu li {
        width: 100%;

        margin: 0;

        padding: 0;
    }


    /* Mobile Dropdown Links */

    .dropdown-menu li a {
        display: flex;

        align-items: center;

        width: 100%;

        min-height: 45px;

        margin: 0;

        padding: 10px 40px;

        color: #ffffff;

        background: #171e27;

        border: none;

        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }


    .dropdown-menu li a:hover {
        padding-left: 45px;

        background: rgba(255, 255, 255, 0.05);

        color: #d8a84e;
    }


    /* Donate */

    .header-donate {
        display: none;
    }


    /* Hamburger */

    .menu-toggle {
        display: block;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575px) {

    .header-container {
        width: calc(100% - 32px);

        gap: 10px;

        min-height: 72px;
        padding: 5px 0;
    }


    .site-logo img {
        width: 80px;
    }


    .menu-toggle {
        width: 40px;

        height: 40px;
    }


    .nav-item > a {
        padding-left: 20px;

        padding-right: 20px;
    }


    .dropdown-menu li a {
        padding-left: 35px;
    }


    .dropdown-menu li a:hover {
        padding-left: 40px;
    }

}






/* Hide mobile Donate button on laptop/desktop */
.mobile-donate-button {
    display: none !important;
}

/* Show Donate button only on mobile */
@media screen and (max-width: 768px) {
    .mobile-donate-button {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;

        background-color: #e8491d;
        color: #ffffff !important;

        padding: 9px 13px;
        margin-left: auto;
        margin-right: 12px;

        border-radius: 25px;
        font-family: Arial, sans-serif;
        font-size: 13px;
        font-weight: 600;

        text-decoration: none !important;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .mobile-donate-button:hover {
        background-color: #c93b15;
        color: #ffffff !important;
    }
}