*,
*:before,
*:after {
    box-sizing: border-box;
}

@import url('../components/toast.css');

body.no-scroll {
    overflow: hidden !important;
}

.secIn {
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    max-width: var(--contentW);
}

.secIn850 {
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 850px;
}

.mainIn {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
}

.contentM {
    width: 100%;
    /* Container for sticky children */
}

.contentBody {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-width: 0;
    /* Important for flex children container nested content */
}

.secIn.full-width {
    max-width: 100%;
    width: 100%;
    border-left: none;
    border-right: none;
}

.main-header {
    background-color: var(--primary-color);
    transition: background-color 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: none;
}

.main-header .headMenuLink,
.main-header .sidebar-toggle-btn {
    color: #ffffff;
}

.main-header .brand-title-stacked .brand-construction,
.main-header .brand-title-stacked .brand-dulawat {
    color: #ffffff;
}

.main-header .header-action-btn {
    --btn-bg: var(--white-primary) !important;
    color: var(--primary-color) !important;
}

.main-header .header-action-btn:hover {
    --btn-bg: var(--bg-dark) !important;
    color: var(--white-primary) !important;
}

.main-header .sidebar-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--black-primary);
}

.main-header .headMenuLink:hover {
    color: var(--black-primary);
}

.headCn {
    width: 100%;
    height: 65px;
}

.headIn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.headL {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 20px;
}

.headC {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.headMenu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.headMenuLink {
    text-decoration: none;
    color: var(--black-primary);
    font-size: var(--font-15);
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s ease;
    display: inline-block;
}

.headMenuLink:hover {
    color: var(--primary-color);
    background-color: transparent;
}

.headR {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 12px;
}



.headB {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.headB:hover {
    opacity: 0.8;
}

.headB h2 {
    color: var(--black-primary);
    margin: 0;
    font-size: var(--font-22);
    font-weight: var(--font-weight-semibold);
    font-family: 'Goldman', var(--fontH);
}

.brand-dulawat {
    font-size: var(--font-28);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    letter-spacing: 1px;
    line-height: var(--line-height-none);
    font-family: 'Goldman', var(--fontH);
    text-transform: uppercase;
}

.headBr {
    display: flex;
    align-items: center;
    gap: 11px;
}


/* Profile image styles */
.profile-image-container {
    width: 39px;
    height: 39px;
    border-radius: 50px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
    padding: 2px;
}

.profile-image-container.active {
    border-color: var(--black-primary);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50px;
}

.header-action-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.header-page-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-header::-webkit-scrollbar {
    display: none;
}

.main-header {
    scrollbar-width: none;
}


/* Mobile Responsive Styles */

/* Fallback utilities if not present */
.btn-text {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
    display: inline-flex;
    align-items: center;
    vertical-align: baseline;
}

.menu-item {
    cursor: pointer;
}

/* =============================================
   MOBILE HAMBURGER & FULL-WIDTH DROPDOWN
   ============================================= */

/* Hide desktop nav and contact button on mobile */

/* Hamburger/Close Button */
.mob-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #ffffff;
    transition: background 0.2s, color 0.2s;
}

.mob-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Default: show menu icon, hide close */
.mob-icon-menu {
    display: flex;
}

.mob-icon-close {
    display: none;
}

/* When open: hide menu icon, show close */
.mob-menu-btn.is-open .mob-icon-menu {
    display: none;
}

.mob-menu-btn.is-open .mob-icon-close {
    display: flex;
}

/* Mobile Navigation Overlay */
.mob-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mob-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Side Drawer Menu */
.mob-nav-dropdown {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    max-width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 99;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    padding: 80px 20px 30px 20px;
}

.mob-nav-dropdown.open {
    transform: translateX(0);
}

/* Nav Links inside dropdown */
.mob-nav-dropdown__links {
    display: flex;
    flex-direction: column;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 20px;
}

.mob-nav-dropdown__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'industry', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    transition: color 0.2s, padding-left 0.2s;
}

.mob-nav-dropdown__link:not(.logout-link)::after {
    content: '\f054';
    /* Font Awesome 6 chevron-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.85rem;
    opacity: 0.5;
    transition: transform 0.2s, opacity 0.2s;
}

.mob-nav-dropdown__link:hover {
    color: var(--white-primary);
    padding-left: 10px;
}

.mob-nav-dropdown__link:hover::after {
    opacity: 1;
    transform: translateX(3px);
}

.mob-nav-user-info {
    padding: 14px 0;
    display: flex;
    flex-direction: column;
}

.mob-nav-user-info .user-name-text {
    color: var(--white-primary);
    font-weight: 600;
    font-size: 16px;
}

.mob-nav-user-info .user-email-text {
    color: var(--white-primary);
    font-size: 13px;
    margin-top: 2px;
}

.mob-nav-dropdown__link.logout-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mob-nav-dropdown__link.logout-link .logout-icon {
    width: 22px;
    height: 22px;
    fill: var(--white-primary);
    transition: fill 0.2s;
}

.mob-nav-dropdown__link--cta {
    margin-top: 20px;
    display: inline-block;
    background-color: var(--white-primary);
    color: var(--primary-color) !important;
    font-family: 'industry', sans-serif;
    font-weight: var(--font-weight-bold);
    font-style: italic;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 28px;
    transform: skew(-10deg);
    border-bottom: none;
    text-align: center;
    transition: background 0.2s;
}

.mob-nav-dropdown__link--cta span {
    display: inline-block;
    transform: skew(10deg);
}

.mob-nav-dropdown__link--cta:hover {
    background: rgba(255, 255, 255, 0.88);
    color: var(--primary-color) !important;
    padding-left: 28px;
}

/* ============================================================
   RESPONSIVE GLOBAL LAYOUT (Breakpoints)
   ============================================================ */

@media (max-width: 900px) {
    .mobile-hide {
        display: none !important;
    }

    .headC {
        display: none !important;
    }

    .mob-menu-btn {
        display: flex;
    }

    .mob-nav-dropdown {
        display: block;
    }
}

@media (max-width: 896px) {
    .headC {
        display: none;
    }

    .headCn {
        height: 60px;
    }

    .main-content {
        border-left: none;
        max-width: 100%;
        margin: 0 auto;
    }

    .secIn {
        border-right: none;
        border-left: none;
        max-width: 100%;
        width: 100%;
    }



    .main-header {
        position: sticky;
        top: 0;
        z-index: 100;
        border-bottom: none;
        box-shadow: none;
    }

    .no-border {
        border: none !important;
    }

    .tab-header {
        height: 50px;
        top: 50px;
        padding: 0;
        /* top: 50px is already set above, ensuring it sticks below main-header */
    }

    .back-page-button {
        margin-right: 12px;
    }

    /* Mobile header adjustments */
    .header-left,
    .header-right {
        height: 100%;
    }

    .headM {
        display: none;
    }

    .headS {
        padding: 6px 12px;
        height: 36px;
        display: none;
    }

    .headSInp {
        width: 150px;
        font-size: var(--font-12);
    }



    .tab-header .nav-link {
        padding: 13px 0;
        font-size: var(--font-14);
    }

    .mainIn {
        padding-top: 15px;
        padding-bottom: 30px;
    }
}

@media (min-width: 897px) {
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 1150px) {
    .desktop-only {
        display: none !important;
    }



}