/*
  ===========================================
  YBT-INSPIRED ENTERPRISE DESIGN SYSTEM
  Theme: Dark Corporate with Vibrant Gradients
  ===========================================
*/

:root {
    --ybt-bg-dark: #000000;
    --ybt-bg-light: #f5f5f5;
    --ybt-surface: #1a1a1a;
    --ybt-text-light: #ffffff;
    --ybt-text-dark: #1f1f1f;
    --ybt-text-muted: #b0b0b0;
    
    /* Monochrome/Logo Theme Gradients */
    --ybt-gradient-primary: linear-gradient(135deg, #dddddd 0%, #ffffff 50%, #999999 100%);
    --ybt-gradient-hover: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    
    /* YoByTech Red Fallback */
    --ybt-accent-red: #EC281C;
    
    --ybt-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

html, body.ybt-enterprise {
    background-color: var(--ybt-bg-dark);
    color: var(--ybt-text-light);
    font-family: var(--ybt-font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Typography Overrides */
.ybt-enterprise h1, .ybt-enterprise h2, .ybt-enterprise h3, 
.ybt-enterprise h4, .ybt-enterprise h5, .ybt-enterprise h6 {
    font-family: var(--ybt-font-sans);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ybt-text-light);
    margin-bottom: 0.5rem;
}

.ybt-enterprise p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--ybt-text-muted);
}

/* Utilities */
.ybt-gradient-text {
    background: var(--ybt-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Buttons */
.ybt-btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--ybt-text-light);
    color: var(--ybt-text-dark) !important;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.ybt-btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--ybt-gradient-primary);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ybt-btn-primary:hover {
    color: var(--ybt-text-light) !important;
    transform: translateY(-2px);
}
.ybt-btn-primary:hover::before {
    opacity: 1;
}

.ybt-btn-primary i {
    margin-left: 12px;
    transition: transform 0.3s ease;
}
.ybt-btn-primary:hover i {
    transform: translateX(5px);
}

.ybt-btn-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--ybt-text-light) !important;
    padding: 15px 38px;
    border-radius: 50px;
    border: 2px solid var(--ybt-text-light);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ybt-btn-outline:hover {
    background: var(--ybt-text-light);
    color: var(--ybt-text-dark) !important;
}

/* Section Styling */
.ybt-section {
    padding: 120px 0;
    position: relative;
}
.ybt-section.bg-light-gray {
    background-color: var(--ybt-bg-light);
}
.ybt-section.bg-light-gray h2, 
.ybt-section.bg-light-gray p.ybt-subtitle {
    color: var(--ybt-text-dark);
}
.ybt-section.bg-light-gray p {
    color: #4a4a4a;
}

.ybt-section-header {
    max-width: 800px;
    margin: 0 auto 80px;
    text-align: center;
}

.ybt-section-header .ybt-subtitle {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--ybt-text-muted);
}

.ybt-pillar-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); /* Stronger glass with gradient */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    border-top: 3px solid #ff5e00; /* YoByTech Logo Orange/Red */
    border-left: none;
    /* initial state for animation */
    opacity: 0;
    transform: scale(0);
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275); /* bouncy */
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ybt-pillar-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    box-shadow: 0 10px 40px rgba(255, 94, 0, 0.25);
    border-top: 3px solid #ffb300; /* YoByTech Logo Yellow */
    transform: translateY(-5px) !important;
}

/* Animations from center */
@keyframes flyFromCenterTL {
    0% { top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.1); opacity: 0; }
    100% { top: 15%; left: 4%; transform: translate(0, 0) scale(1); opacity: 1; }
}
@keyframes flyFromCenterTR {
    0% { top: 50%; right: 50%; transform: translate(50%, -50%) scale(0.1); opacity: 0; }
    100% { top: 15%; right: 4%; transform: translate(0, 0) scale(1); opacity: 1; }
}
@keyframes flyFromCenterBL {
    0% { bottom: 50%; left: 50%; transform: translate(-50%, 50%) scale(0.1); opacity: 0; }
    100% { bottom: 20%; left: 4%; transform: translate(0, 0) scale(1); opacity: 1; }
}
@keyframes flyFromCenterBR {
    0% { bottom: 50%; right: 50%; transform: translate(50%, 50%) scale(0.1); opacity: 0; }
    100% { bottom: 20%; right: 4%; transform: translate(0, 0) scale(1); opacity: 1; }
}

.anim-tl { animation-name: flyFromCenterTL; animation-duration: 1.2s; animation-delay: 0.5s; }
.anim-tr { animation-name: flyFromCenterTR; animation-duration: 1.2s; animation-delay: 0.7s; }
.anim-bl { animation-name: flyFromCenterBL; animation-duration: 1.2s; animation-delay: 0.9s; }
.anim-br { animation-name: flyFromCenterBR; animation-duration: 1.2s; animation-delay: 1.1s; }

/* Connecting Lines */
.ybt-pillar-card::after {
    content: '';
    position: absolute;
    height: 1px;
    width: 15vw;
    z-index: -1;
    opacity: 0;
    animation: fadeInLine 1s ease forwards;
    animation-delay: 2s; /* wait for cards to fly out */
}

@keyframes fadeInLine {
    to { opacity: 1; }
}

/* TL: points down-right */
.anim-tl::after {
    top: 50%;
    left: 100%;
    background: linear-gradient(90deg, rgba(255, 94, 0, 0.8), transparent);
    transform-origin: left center;
    transform: rotate(25deg);
}
/* TR: points down-left */
.anim-tr::after {
    top: 50%;
    right: 100%;
    background: linear-gradient(-90deg, rgba(255, 94, 0, 0.8), transparent);
    transform-origin: right center;
    transform: rotate(-25deg);
}
/* BL: points up-right */
.anim-bl::after {
    top: 50%;
    left: 100%;
    background: linear-gradient(90deg, rgba(255, 94, 0, 0.8), transparent);
    transform-origin: left center;
    transform: rotate(-25deg);
}
/* BR: points up-left */
.anim-br::after {
    top: 50%;
    right: 100%;
    background: linear-gradient(-90deg, rgba(255, 94, 0, 0.8), transparent);
    transform-origin: right center;
    transform: rotate(25deg);
}

.ybt-pillar-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 94, 0, 0.15), rgba(255, 179, 0, 0.15));
    color: #ffb300;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.ybt-section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.2;
}

/* Hero Section */
.ybt-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at center, #0a0f1a 0%, #000000 100%);
}

.ybt-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('../img/iot/11.webp') center/cover no-repeat;
    z-index: -2;
    transform: scale(1.05);
    animation: slowZoom 20s ease-in-out infinite alternate;
}


.ybt-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
    pointer-events: none;
}

.ybt-hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 30px;
    max-width: 900px;
}

.ybt-hero p.lead {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    max-width: 600px;
    margin-bottom: 40px;
    color: #e0e0e0;
}

/* Capabilities/Services Grid */
.ybt-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ybt-card {
    background: var(--ybt-surface);
    border-radius: 12px;
    padding: 40px;
    height: 100%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.ybt-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--ybt-gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.ybt-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.ybt-card:hover::after {
    transform: scaleX(1);
}

.ybt-card .icon {
    font-size: 3rem;
    margin-bottom: 30px;
    background: var(--ybt-gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.ybt-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Belief in Action (Case Studies) */
.ybt-case-studies {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.ybt-case-study-item {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 50px;
    text-decoration: none !important;
}

.ybt-case-study-item img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.ybt-case-study-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 80%);
    z-index: 1;
    transition: background 0.4s ease;
}

.ybt-case-study-content {
    position: relative;
    z-index: 2;
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.ybt-case-study-item:hover img {
    transform: scale(1.08);
}
.ybt-case-study-item:hover::before {
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 80%);
}
.ybt-case-study-item:hover .ybt-case-study-content {
    transform: translateY(0);
}

.ybt-case-study-content span.tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--ybt-gradient-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.ybt-case-study-content h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}
.ybt-case-study-content p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
}

/* Insights (Cards on Light BG) */
.ybt-insight-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.3s ease;
}
.ybt-insight-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.ybt-insight-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}
.ybt-insight-body {
    padding: 30px;
}
.ybt-insight-body h3 {
    color: var(--ybt-text-dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
}
.ybt-insight-body a.read-more {
    color: var(--ybt-accent-red);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
}
.ybt-insight-body a.read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}
.ybt-insight-card:hover a.read-more i {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 991px) {
    .ybt-case-studies {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 767px) {
    .ybt-section {
        padding: 80px 0;
    }
    .ybt-case-study-item {
        height: 400px;
        padding: 30px;
    }
}

/* --- YBT HEADER COMPONENT --- */
.ybt-header {
    background-color: var(--ybt-bg-dark);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ybt-header-container {
    display: flex;
    align-items: center;
    padding: 0 3%; /* Perfect fluid padding */
    height: 90px; /* Slightly taller for logo emphasis */
}

.ybt-logo-area a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-logo {
    max-height: 55px; /* Highlight logo */
    width: auto;
}

.ybt-nav {
    height: 100%;
    margin-left: 40px;
}

.ybt-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    height: 100%;
}

.ybt-nav ul li {
    position: static;
    height: 100%;
    display: flex;
    align-items: center;
}

.ybt-nav ul li > a {
    color: var(--ybt-text-muted);
    text-decoration: none;
    padding: 0 15px;
    font-size: 0.95rem;
    font-weight: 500;
    height: 100%;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.ybt-nav ul li > a.active,
.ybt-nav ul li:hover > a {
    color: var(--ybt-text-light);
}

.ybt-nav ul li > a.active {
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    height: 40px;
    padding: 0 15px;
    margin: auto 0;
}

.ybt-nav > ul > li > a i {
    font-size: 0.75rem;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.ybt-nav > ul > li:hover > a i {
    transform: rotate(180deg);
}

/* Mega Menu Dropdown */
.ybt-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #222222;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 40px 0;
}

.ybt-nav ul li.has-mega-menu:hover .ybt-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-left {
    padding-right: 40px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.mega-left h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.mega-left p {
    color: var(--ybt-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.ybt-mega-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.ybt-mega-link:hover {
    color: #e0e0e0;
}

.mega-right-container {
    padding-left: 40px;
    position: relative; /* Context for absolute sub menus */
    min-height: 380px; /* Ensure container is tall enough for absolute sub-menus */
}

.mega-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex !important;
    flex-direction: column;
    height: auto !important;
    width: 100%; /* Take up full right container so hover works */
}

.mega-list li {
    height: auto !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mega-list li:last-child {
    border-bottom: none;
}

.mega-list li > a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    color: var(--ybt-text-muted) !important;
    padding: 12px 15px !important;
    margin: 3px 0;
    font-size: 1.05rem !important;
    font-weight: 400 !important;
    width: 50%; /* Anchor only takes up half, sub-menu takes the other half */
    box-sizing: border-box !important;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.3s;
}

.mega-list li.has-sub-menu:hover > a {
    color: var(--ybt-text-light) !important;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Cascading Sub Menu */
.mega-sub-menu {
    position: absolute;
    top: 0;
    left: 50%; /* Position in the second half of the right container */
    width: 50%;
    padding-left: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    border-left: 1px solid rgba(255,255,255,0.1);
    height: 100%;
    z-index: 999;
    pointer-events: none; /* Ignore pointer when hidden */
}

.mega-list li.has-sub-menu:hover .mega-sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Enable pointer when hovered */
}

.mega-sub-menu h4 {
    font-size: 1.4rem;
    color: var(--ybt-text-light);
    margin-bottom: 25px;
}

.mega-sub-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex !important;
    flex-direction: column;
}

.mega-sub-menu ul li {
    border: none;
    padding: 0;
}

.mega-sub-menu ul li a {
    color: var(--ybt-text-muted) !important;
    text-decoration: none;
    font-size: 0.95rem !important;
    display: block;
    padding: 8px 0 !important;
    transition: color 0.3s;
    font-weight: 400 !important;
    position: relative;
    z-index: 1000;
}

.mega-sub-menu ul li a:hover {
    color: var(--ybt-text-light) !important;
    padding-left: 5px !important;
}

/* Header Actions */
.ybt-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.ybt-header-actions a {
    color: var(--ybt-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.ybt-header-actions a:hover {
    color: var(--ybt-text-light);
}

.ybt-header-actions .search-icon {
    font-size: 1.2rem;
}

/* ===================================== */
/* MODERN UI ENHANCEMENTS (PARALLAX & GLASS) */
/* ===================================== */

.parallax-bg {
    background-attachment: fixed !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

/* Glassmorphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
    border-radius: 16px !important;
    padding: 4px !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background 0.4s ease !important;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.6) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* Floating Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

.float-anim-delayed {
    animation: float 6s ease-in-out 3s infinite;
}

/* Glassmorphism Accordion */
.glass-accordion-item {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.2) !important;
    border-radius: 12px !important;
    padding: 0 !important;
    transition: background 0.3s ease !important;
    margin-bottom: 12px !important;
    overflow: hidden !important;
}

.glass-accordion-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.glass-accordion-item .accordion-button {
    background-color: transparent !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    padding: 16px 20px !important;
}

.glass-accordion-item .accordion-button:not(.collapsed) {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

.glass-accordion-item .accordion-button::after {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 4px;
}

.glass-accordion-item .accordion-body {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 16px 20px !important;
    background-color: transparent !important;
}

/* Responsive Fix for about-img-wrap-2 on Mobile and Tablet */
@media (max-width: 991px) {
    .about-img-wrap-2 {
        height: auto !important;
        max-width: 100% !important;
        margin-top: 40px !important;
    }
    
    .about-img-wrap-2 .about-counter {
        position: relative !important;
        margin: 0 auto 30px auto !important;
    }
    
    .about-img-wrap-2 .about-images {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .about-img-wrap-2 .about-images .img-1,
    .about-img-wrap-2 .about-images .img-2 {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    .about-img-wrap-2 .about-images .about-img-overlay {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .about-img-wrap-2 .about-images .about-img-overlay .img-3 {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .about-img-wrap-2 .about-images .about-img-overlay .overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Header Responsive Styles */
.ybt-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
}

@media (max-width: 991px) {
    .ybt-header-container {
        justify-content: space-between;
    }
    
    .ybt-mobile-toggle {
        display: block;
    }
    
    .ybt-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: auto;
        background-color: var(--ybt-bg-dark);
        display: none;
        flex-direction: column;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 20px;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    .ybt-header.mobile-nav-active .ybt-nav {
        display: flex;
    }
    
    .ybt-nav ul {
        flex-direction: column;
        height: auto;
    }
    
    .ybt-nav ul li {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        position: relative;
    }
    
    .ybt-nav ul li > a {
        padding: 15px 5%;
        width: 100%;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .ybt-nav > ul > li > a i {
        transform: rotate(-90deg);
    }
    
    /* Mega menu handling on mobile */
    .ybt-mega-menu {
        position: static;
        width: 100%;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border: none;
    }
    
    .ybt-nav ul li.active-mobile .ybt-mega-menu {
        display: block;
    }
    
    .mega-left {
        display: none; /* Hide the big left promo on mobile */
    }
    
    .mega-right-container {
        padding: 15px 5%;
        min-height: 0 !important;
    }
    
    .mega-list {
        flex-direction: column;
    }
    
    .mega-list > li {
        width: 100% !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    .mega-list > li:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .mega-list .mega-sub-menu ul {
        grid-template-columns: 1fr !important; /* Stack sub-items */
    }
    
    /* Inner sub-menus mobile styles */
    .mega-sub-menu {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none !important;
        padding: 10px 0 10px 15px !important;
        border-left: 2px solid rgba(255,255,255,0.1) !important;
        background: transparent !important;
        height: auto !important;
        margin-top: 10px;
    }
    
    .mega-list li.has-sub-menu.active-sub-mobile > .mega-sub-menu {
        display: block !important;
    }
    
    .mega-sub-menu h4 {
        display: none !important;
    }
    
    .mega-list li.has-sub-menu > a {
        font-weight: 600;
        color: #fff;
        padding: 12px 0;
    }
    
    .mega-list li.has-sub-menu > a:hover {
        background: transparent !important;
    }
}
