/* ==========================================================================
   Career Catalyst (CCFF.IN) - Mobile-Only Responsive Stylesheet
   Desktop layout is 100% UNTOUCHED (Exact Original Layout).
   Mobile styling applies ONLY on screens <= 991px (Smartphones & Tablets).
   ========================================================================== */

/* Universal Mobile Hamburger Button (Hidden on Desktop) */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
    margin-left: auto;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary, #1E293B);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
    background-color: var(--gold, #B08D57);
}

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

.mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
    background-color: var(--gold, #B08D57);
}

/* ==========================================================================
   MOBILE & TABLET ONLY (<= 991px)
   ========================================================================== */
@media screen and (max-width: 991px) {
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        width: 92% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    header {
        position: sticky;
        top: 0;
        z-index: 9999;
        background: #ffffff;
        box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    }

    .navbar, .nav {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 0 !important;
        position: relative;
    }

    .logo {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin-right: 0 !important;
        z-index: 10001;
    }

    .logo img {
        width: 42px !important;
        height: 42px !important;
        max-width: 42px !important;
    }

    .logo h1, .logo-text h1 {
        font-size: 20px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    .logo p, .logo-text p {
        font-size: 11px !important;
        margin-top: 2px !important;
        letter-spacing: 0.5px !important;
    }

    /* Show Mobile Hamburger */
    .mobile-nav-toggle {
        display: flex !important;
    }

    /* Mobile Navigation Drawer */
    header nav, .navbar nav, .nav nav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 82% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: #ffffff !important;
        box-shadow: -10px 0 30px rgba(0,0,0,0.15) !important;
        padding: 80px 24px 40px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 10000 !important;
        overflow-y: auto !important;
    }

    header nav.active, .navbar nav.active, .nav nav.active {
        right: 0 !important;
    }

    /* Overlay backdrop */
    .nav-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.55);
        backdrop-filter: blur(4px);
        z-index: 9999;
    }

    .nav-backdrop.active {
        display: block;
    }

    header nav ul, .navbar nav ul, .nav nav ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    header nav ul li, .navbar nav ul li, .nav nav ul li {
        width: 100% !important;
        white-space: normal !important;
        border-bottom: 1px solid #f1f5f9;
        padding: 4px 0;
    }

    header nav a, .navbar nav a, .nav nav a {
        display: block !important;
        padding: 10px 4px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        color: var(--primary, #1E293B) !important;
        text-decoration: none !important;
    }

    /* Mobile Dropdown */
    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        display: none;
        position: static !important;
        box-shadow: none !important;
        background: #f8fafc !important;
        border-radius: 8px !important;
        margin-top: 4px !important;
        padding: 6px 12px !important;
        width: 100% !important;
    }

    .dropdown.open .dropdown-menu {
        display: block !important;
    }

    .dropdown-menu li {
        border-bottom: none !important;
        padding: 2px 0 !important;
    }

    .dropdown-menu li a {
        font-size: 14px !important;
        padding: 8px 10px !important;
        color: #475569 !important;
    }

    /* Split Buttons on Mobile */
    .split-btn {
        margin: 15px 0 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .left-btn {
        flex: 1 !important;
        max-width: 120px !important;
        font-size: 11px !important;
        height: 44px !important;
    }

    .right-btn {
        flex: 1 !important;
        max-width: 160px !important;
        font-size: 11px !important;
        height: 44px !important;
    }

    .center-circle {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0 -15px !important;
        z-index: 10 !important;
    }

    /* Hero Slider on Mobile */
    .hero-slider {
        padding: 10px 0 0 !important;
    }

    .slider {
        height: 200px !important;
        min-height: 180px !important;
        border-radius: 14px !important;
    }

    .slide-text {
        left: 12px !important;
        bottom: 12px !important;
        right: 12px !important;
        max-width: calc(100% - 24px) !important;
        padding: 10px 12px !important;
        border-radius: 10px !important;
    }

    .slide-text h2 {
        font-size: 16px !important;
        margin-bottom: 2px !important;
    }

    .slide-text p {
        font-size: 12px !important;
    }

    /* Hero Section */
    .hero {
        padding: 45px 0 !important;
        min-height: auto !important;
    }

    .hero-content {
        flex-direction: column !important;
        gap: 35px !important;
    }

    .hero h1, .hero-left h2 {
        font-size: 32px !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }

    .hero p, .hero-left p {
        font-size: 15px !important;
        line-height: 1.6 !important;
        margin-bottom: 25px !important;
    }

    .buttons {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .btn {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
    }

    /* Floating Badges */
    .hero-right {
        width: 100% !important;
        margin-top: 10px;
    }

    .hero-image {
        border-radius: 20px !important;
    }

    .badge {
        padding: 12px 16px !important;
        border-radius: 12px !important;
    }

    .badge h4 {
        font-size: 18px !important;
    }

    .badge p {
        font-size: 12px !important;
    }

    .badge1 {
        top: 10px !important;
        left: 10px !important;
    }

    .badge2 {
        bottom: 10px !important;
        right: 10px !important;
    }

    .badge3 {
        display: none !important;
    }

    /* Section Titles */
    section {
        padding: 50px 0 !important;
    }

    .section-title, .title {
        margin-bottom: 35px !important;
    }

    .section-title h2, .title h2 {
        font-size: 30px !important;
        line-height: 1.2 !important;
    }

    .section-title p, .title p {
        font-size: 14px !important;
    }

    /* Grids & Cards */
    .cards, .features, .recruiters, .testimonials, .grid4, .grid3, .vm, .support, .stats {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .card, .feature, .testimonial, .logo-box, .stat, .about-box, .message, .motto, .form-box {
        padding: 24px 18px !important;
        border-radius: 16px !important;
    }

    .card h3, .stat h3 {
        font-size: 32px !important;
    }

    .feature h4 {
        font-size: 18px !important;
    }

    /* Timeline on About Page */
    .timeline:before {
        left: 20px !important;
    }

    .t {
        width: 100% !important;
        left: 0 !important;
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left !important;
        margin-bottom: 20px;
    }

    .t.left {
        text-align: left !important;
    }

    .dot {
        left: 11px !important;
        right: auto !important;
    }

    .left .dot {
        left: 11px !important;
        right: auto !important;
    }

    /* Forms */
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    input, textarea, select {
        padding: 12px 14px !important;
        font-size: 15px !important;
    }

    /* Popups */
    .popup-container {
        width: 92% !important;
        max-width: 92vw !important;
    }

    .popup-box {
        width: 92% !important;
        max-width: 92vw !important;
        padding: 24px 16px !important;
        border-radius: 16px !important;
        max-height: 85vh !important;
    }

    .popup-box h2 {
        font-size: 26px !important;
        margin-bottom: 15px !important;
    }

    .popup-close, .close-popup {
        top: 10px !important;
        right: 10px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Footer */
    footer {
        padding: 35px 20px !important;
    }

    footer h3 {
        font-size: 22px !important;
    }

    footer p {
        font-size: 14px !important;
    }
}
