@media (min-width: 992px) {
    .navbar-nav .nav-item.has-mega-menu:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media (max-width: 1199px) {
    .logo-title {
        font-size: 22px;
    }

    .header-search {
        max-width: 420px;
    }

    .navbar-nav {
        gap: 15px;
    }

    .navbar-nav .nav-link {
        font-size: 13px;
        padding: 15px 3px !important;
    }

    .hero-left {
        padding: 20px 20px;
    }

    .quick-access-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-main-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .newsletter-banner {
        flex-wrap: wrap;
        gap: 20px;
    }

    .newsletter-left {
        order: 1;
    }

    .newsletter-text p {
        max-width: 250px;
    }

    .newsletter-form-container {
        order: 4;
        width: 100%;
        max-width: 100%;
    }

    .newsletter-divider {
        order: 2;
    }

    .newsletter-right {
        order: 3;
    }

    .custom-hero .container {
        padding-left: 50px;
    }

    .custom-image {
        right: 0;
    }

    .category-tabs-wrapper {
        justify-content: unset;
    }

    .state-card {
        padding: 20px;
    }

    #map {
        max-width: 550px;
    }

    .category-grid .card .info {
        flex-direction: column;
        align-items: unset;
    }

    .details-section .details-job-matter .details-job-content .title {
        max-width: 90%;
    }

    .details-section .details-job-matter .details-job-actions {
        flex-direction: column;
        align-items: unset;
        gap: 12px;
    }

    .details-tabs .tab-content section .highlight-grid .row-item {
        grid-template-columns: 200px 20px 1fr;
    }

    .details-tabs .tab-content section .process-flow {
        justify-content: unset;
    }

    .details-tabs .tab-content section .apply-wrapper .apply-timeline {
        border-right: 0;
        padding-right: 0;
        border-bottom: 1px solid var(--gray-300);
        padding-bottom: 25px;
    }
}

@media (max-width: 991px) {
    .header-container {
        flex-wrap: wrap;
        gap: 12px 30px;
        justify-content: space-between;
        align-items: center;
    }

    .navbar-toggler {
        order: 1;
        border: 1px dashed var(--primary);
        font-size: 18px;
        color: var(--primary);
        padding: 8px 10px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-header .logo {
        order: 2;
        margin-right: auto;
    }

    .header-search {
        order: 4;
        width: 100%;
        max-width: 100%;
        padding: 4px 4px 4px 12px;
    }

    .header-search input {
        font-size: 12px;
    }

    .header-actions {
        order: 3;
    }

    .navbar {
        display: none;
    }

    .body-no-scroll {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .mobile-drawer-overlay {
        display: block;
    }

    .mobile-drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(2px);
        z-index: 1050;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .mobile-drawer-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-drawer {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 85%;
        max-width: 330px;
        background-color: var(--white);
        z-index: 1060;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.08);
        display: flex;
        flex-direction: column;
        transform: translateX(-100%);
        transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-drawer.active {
        transform: translateX(0);
    }

    .drawer-header {
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        gap: 16px;
        border-bottom: 1px solid var(--gray-100);
    }

    .drawer-logo .logo-title {
        font-size: 22px;
    }

    .drawer-logo .logo-title-sub {
        font-size: 12px;
        font-weight: 600;
    }

    .drawer-close-btn {
        background: transparent;
        border: none;
        font-size: 22px;
        color: var(--gray-500);
        height: fit-content;
    }

    .drawer-body {
        flex: 1;
        overflow-y: auto;
        padding: 0 16px 24px 16px;
        scrollbar-width: none;
    }

    .drawer-body::-webkit-scrollbar {
        display: none;
    }

    .drawer-menu {
        list-style: none;
        padding: 16px 0 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .drawer-item {
        position: relative;
    }

    .drawer-link {
        display: flex;
        align-items: center;
        padding: 10px 12px;
        border-radius: 8px;
        color: var(--gray-700);
        font-weight: 500;
        font-size: 14px;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .drawer-link:hover {
        background-color: var(--gray-50);
        color: var(--dark);
    }

    .drawer-item.active>.drawer-link {
        background-color: rgba(var(--primary-rgb), 0.1);
        color: var(--primary);
        font-weight: 600;
    }

    .drawer-icon {
        font-size: 16px;
        margin-right: 12px;
    }

    .icon-home {
        color: var(--dark);
    }

    .icon-jobs {
        color: var(--blue);
    }

    .icon-results {
        color: var(--primary);
    }

    .icon-admit {
        color: var(--purple);
    }

    .icon-key {
        color: var(--yellow);
    }

    .icon-syllabus {
        color: var(--red);
    }

    .icon-admission {
        color: var(--teal);
    }

    .icon-scholarship {
        color: var(--orange);
    }

    .icon-question {
        color: var(--magenta);
    }

    .icon-yojana {
        color: var(--brown);
    }

    .icon-document {
        color: var(--gray);
    }

    .drawer-text {
        flex-grow: 1;
    }

    .drawer-arrow {
        font-size: 12px;
        transition: transform 0.2s ease;
    }

    .drawer-item.open>.drawer-link .drawer-arrow {
        transform: rotate(90deg);
    }

    .drawer-submenu {
        list-style: none;
        padding-left: 20px;
        margin: 0 0 0 12px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        border-left: 1.5px solid var(--gray-200);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, margin 0.3s ease;
    }

    .drawer-item.open .drawer-submenu {
        max-height: none;
        margin-top: 4px;
        margin-bottom: 8px;
    }

    .mobile-drawer .mega-menu-col {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
        margin-bottom: 8px;
        overflow: hidden;
        display: block;
        border-radius: 8px;
        background-color: var(--gray-50);
    }

    .mobile-drawer .mega-col-header {
        padding: 0 12px;
    }

    .mobile-drawer .mega-col-header h3 {
        font-size: 13px;
        margin-bottom: 0;
        padding: 10px 0 10px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        user-select: none;
    }

    .mobile-drawer .mega-col-toggle-icon {
        font-size: 10px;
        transition: transform 0.3s ease;
        color: inherit;
    }

    .mobile-drawer .mega-menu-col.col-open .mega-col-toggle-icon {
        transform: rotate(90deg);
    }

    .mobile-drawer .mega-menu-col.col-open .mega-col-header h3 {
        margin-bottom: 8px;
        padding-bottom: 6px;
        border-bottom: 1.5px solid currentColor;
    }

    .mobile-drawer .mega-search-wrapper {
        margin-bottom: 10px;
        display: none;
    }

    .mobile-drawer .mega-menu-col.col-open .mega-search-wrapper {
        display: block;
    }

    .mobile-drawer .mega-search-input {
        font-size: 12px;
    }

    .mobile-drawer .mega-menu-col>ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        flex: none;
    }

    .mobile-drawer .mega-menu-col.col-open>ul {
        max-height: 280px;
        overflow-y: auto;
        padding: 0 12px;
        padding-right: 4px;
    }

    .mobile-drawer .mega-menu-col ul li {
        margin-bottom: 10px;
        font-size: 11px;
        padding-bottom: 0;
    }

    .mobile-drawer .mega-menu-col .nested-menu {
        padding-left: 8px !important;
        margin-top: 6px !important;
        margin-bottom: 4px !important;
    }

    .mobile-drawer .mega-menu-col .nested-menu li {
        padding: 5px 8px !important;
    }

    .mobile-drawer .mega-menu-col .nested-menu li a {
        font-size: 12px !important;
    }

    .drawer-footer-actions {
        display: none;
    }

    .hero-left {
        border-right: 0;
    }

    .quick-access-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .central-dashboard {
        margin-bottom: 16px;
    }

    .ads {
        margin-bottom: 16px;
    }

    .ads-close {
        width: 20px;
        height: 20px;
        font-size: 13px;
    }

    .tools-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .footer-bottom-card {
        flex-wrap: wrap;
        gap: 10px 30px;
        justify-content: center;
    }

    /* Mobile Search Toggle Button & Sticky Header Styling */
    .header-search-toggle-btn {
        display: none;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border: 1px solid var(--gray-200);
        color: var(--primary);
        border-radius: 6px;
        transition: all 0.2s ease-in-out;
        cursor: pointer;
    }

    .header-search-toggle-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(22, 163, 74, 0.2);
    }

    .header-search-toggle-btn i {
        font-size: 18px;
    }

    /* Sticky Mobile Header Base */
    .main-header.header-sticky {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1040;
        background-color: var(--white);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
        padding: 10px 0;
        animation: mobileHeaderSlideDown 0.3s ease-out;
    }

    @keyframes mobileHeaderSlideDown {
        from {
            transform: translateY(-100%);
        }

        to {
            transform: translateY(0);
        }
    }

    /* Sticky Mode Changes */
    .main-header.header-sticky .header-search {
        display: none;
    }

    .main-header.header-sticky .header-search-toggle-btn {
        display: flex;
    }

    .main-header.header-sticky .header-social-btn,
    .main-header.header-sticky .header-mode-btn,
    .main-header.header-sticky .header-line {
        display: none !important;
    }

    /* Active Search State (Overlay) */
    .main-header.header-sticky.search-active .header-search {
        display: flex;
        position: absolute;
        left: 10px;
        right: 110px;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        max-width: none;
        z-index: 1050;
        background-color: var(--white);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        border: 1px solid var(--primary);
        padding: 5px 5px 5px 12px;
        border-radius: 8px;
        animation: mobileSearchExpand 0.2s ease-out;
    }

    @keyframes mobileSearchExpand {
        from {
            opacity: 0;
            transform: translateY(-50%) scale(0.95);
        }

        to {
            opacity: 1;
            transform: translateY(-50%) scale(1);
        }
    }

    .main-header.header-sticky.search-active .navbar-toggler,
    .main-header.header-sticky.search-active .logo {
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .custom-hero .container {
        padding-left: 20px;
    }

    .custom-image {
        display: none;
    }

    .custom-hero .custom-wrapper {
        justify-content: space-between;
    }

    .category-grid {
        grid-template-columns: repeat(1, 1fr);
    }

}

@media (max-width: 767px) {
    .container {
        padding: 0 10px;
    }

    .header-container {
        gap: 10px 25px;
        padding: 0 10px;
    }

    .logo-text {
        line-height: 1.15;
    }

    .logo-title {
        font-size: 17px;
    }

    .logo-title-sub {
        font-size: 8.5px;
        letter-spacing: 2px;
    }

    .header-actions .header-social-btn,
    .header-actions .header-mode-btn,
    .header-actions .header-line {
        display: none;
    }

    .drawer-menu {
        padding: 16px 0;
        border-bottom: 1px solid var(--gray-100);
    }

    .drawer-footer-actions {
        display: flex;
        align-items: center;
        gap: 16px;
        padding-top: 16px;
    }

    .drawer-footer-actions .header-mode-btn {
        margin-left: auto;
    }

    .hero-left {
        margin-top: 15px;
        padding: 10px;
    }

    .hero-left::before {
        width: 100%;
        border-radius: 12px;
    }

    .hero-left .left-c {
        width: 100%;
    }

    .hero-pre-title {
        font-size: 16px;
        max-width: 60%;
    }

    .hero-desc {
        font-size: 13px;
        max-width: 60%;
    }

    .popular-searches {
        max-width: 100%;
    }

    .hero-image-wrapper {
        width: 170px;
    }

    .hero-right {
        padding: 25px 0;
    }

    .quick-access-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .qa-card {
        flex-direction: column;
        text-align: center;
    }

    .trending-bar {
        flex-wrap: wrap;
        padding: 10px;
        gap: 10px 0;
    }

    .trending-label {
        order: 1;
        width: 50%;
        margin-right: 0;
    }

    .trending-link {
        order: 2;
        width: 50%;
        margin-left: 0;
        text-align: right;
    }

    .trending-wrap {
        order: 3;
        width: 100%;
        flex: 0 0 100%;
    }

    .trending-item {
        gap: 6px;
    }

    .panel-card {
        padding: 15px;
    }

    .chip-container .chip {
        font-size: 12px;
        width: 100%;
    }

    .grid-main-col {
        display: flex;
        flex-direction: column;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-banner {
        justify-content: center;
    }

    .newsletter-left {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-text {
        text-align: center;
    }

    .newsletter-text p {
        max-width: 100%;
    }

    .newsletter-form-container {
        order: 2;
    }

    .newsletter-form {
        flex-direction: column;
        background: transparent;
        border: none;
        gap: 10px;
    }

    .newsletter-form input {
        width: 100%;
        border: 1px solid var(--gray-300);
        border-radius: 8px;
    }

    .newsletter-form button {
        width: 100%;
        border-radius: 8px;
    }

    .newsletter-divider {
        display: none;
    }

    .footer-col-brand img {
        position: relative;
    }

    .footer-bottom img {
        height: 80px;
    }

    .footer-bottom-card {
        padding-top: 10px;
    }

    .footer-bottom-right {
        justify-content: center;
    }

    .custom-image {
        display: none;
    }

    .custom-content p {
        font-size: 14px;
    }

    .custom-hero .custom-wrapper {
        align-items: start;
        flex-direction: column;
        gap: 15px;
    }

    .map-title {
        position: static;
    }

    .map-card {
        max-width: 100%;
        width: 100%;
    }

    .details-section .details-job-card {
        flex-direction: column;
        align-items: unset;
        gap: 10px;
    }

    .details-section .details-job-matter .details-job-content .title {
        max-width: 100%;
    }

    .details-tabs .tab-content section .highlight-grid .row-item {
        grid-template-columns: 200px 20px;
        gap: 5px;
    }

    .details-tabs .tab-content section .highlight-grid .row-item .value {
        grid-column: 1 / -1;
    }

    .details-tabs .tab-content section .timeline {
        flex-wrap: wrap;
        gap: 15px;
    }

    .details-tabs .tab-content section .timeline::before, .details-tabs .tab-content section .timeline .dot {
        display: none;
    }

    .details-tabs .tab-content section .timeline .timeline-item {
        width: 45%;
        text-align: start;
    }

    .details-tabs .tab-content section .timeline .timeline-item .icon-wrapper {
        margin: 0;
    }

    .details-tabs .tab-content section .criteria-row {
        gap: 5px;
    }

    .details-tabs .tab-content section .process-flow {
        flex-direction: column;
    }

    .details-tabs .tab-content section .process-flow .arrow {
        font-size: 20px;
        margin-top: 0;
        transform: rotate(90deg);
        margin-left: 30px;
    }

    .details-tabs .tab-content section .process-flow .step {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .details-tabs .tab-content section .process-flow .step .step-circle {
        margin: 0;
        width: 80px;
        height: 80px;
    }

    .details-tabs .tab-content section .process-flow .step h3 {
        margin: 0;
    }

    .details-tabs .tab-content section .process-flow .step .step-number {
        font-size: 16px;
    }

    .details-tabs .tab-content section .process-flow .step .step-icon {
        font-size: 25px;
    }
}