@media (max-width: 1199px) {
}

/* Tablets */
@media (max-width: 991px) {
}

/* Mobile devices */
@media (max-width: 767px) {
    .top-bar {
        display: none;
    }

    /* ===============================
   NAVBAR TOGGLER (HAMBURGER)
================================ */
    p {
        font-size: 12px;
    }

    .navbar-toggler {
        border: none;
        padding: 6px 10px;
        outline: none;
        box-shadow: none;
    }

    .navbar-toggler:focus,
    .navbar-toggler:active {
        outline: none;
        box-shadow: none;
    }

    /* Custom hamburger icon */
    .navbar-toggler-icon {
        background-image: none;
        width: 24px;
        height: 18px;
        position: relative;
    }

    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after,
    .navbar-toggler-icon span {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--brand-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Top line */
    .navbar-toggler-icon::before {
        top: 0;
    }

    /* Middle line */
    .navbar-toggler-icon span {
        top: 50%;
        transform: translateY(-50%);
    }

    /* Bottom line */
    .navbar-toggler-icon::after {
        bottom: 0;
    }

    /* Hover effect */
    .navbar-toggler:hover .navbar-toggler-icon::before,
    .navbar-toggler:hover .navbar-toggler-icon::after,
    .navbar-toggler:hover .navbar-toggler-icon span {
        background-color: var(--brand-accent);
    }

    /* Open / Close animation (Bootstrap adds .collapsed automatically) */
    .navbar-toggler:not(.collapsed) .navbar-toggler-icon::before {
        transform: rotate(45deg);
        top: 50%;
    }

    .navbar-toggler:not(.collapsed) .navbar-toggler-icon::after {
        transform: rotate(-45deg);
        bottom: 50%;
    }

    .navbar-toggler:not(.collapsed) .navbar-toggler-icon span {
        opacity: 0;
    }
    .career-niketan-navbar {
        z-index: 999;
    }

    .hero-carousel {
        position: relative;
        height: 100%;
        overflow: hidden;
        margin: 84px 10px 20px;
        /* overflow: hidden; */
        border-radius: 20px;
    }

    /* Slider container */
    .category-slider-wrapper {
        background: transparent;
        border-radius: 0px;
        padding: 0px 20px;
        box-shadow: none;
    }

    /* Slider row */
    .category-tabs {
        flex-direction: row;
        flex-wrap: nowrap; /* ❗ IMPORTANT */
        overflow-x: auto;
        gap: 12px;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    /* Pills */
    .category-tabs .nav-link {
        flex: 0 0 auto;
        padding: 8px 10px;
        font-size: 11px;
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        background: #fff;
        color: #111;
        white-space: nowrap;
        margin: 0px;
    }

    /* Active pill */

    /* Arrows */
    .slider-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid #e5e7eb;
        font-size: 18px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 3;
    }

    .slider-arrow.prev {
        left: -20px;
    }
    .slider-arrow.next {
        right: -20px;
    }

    .slider-arrow:active {
        transform: translateY(-50%) scale(0.95);
    }
    .subcategory-tabs {
        border-bottom: none;
        gap: 8px;
    }

    .subcategory-tabs .nav-link {
        border: none;
        /* display: inline-flex; */
        border-radius: 30px;
        padding: 8px 10px;
        font-size: 12px;
        margin: 4px 0px;
        font-weight: 500;
        color: #555;
        background: #fff;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
        transition: all 0.35s ease;
    }

    .section-heading .section-title {
        font-size: 26px;
    }

    .main-content {
        padding-top: 76px;
    }

    .enquiry-form {
        background: rgba(255, 255, 255, 0.1); /* Semi-transparent */
        backdrop-filter: blur(15px); /* Frosted glass effect */
        -webkit-backdrop-filter: blur(15px); /* For Safari */
        border-radius: 22px;
        border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
        padding: 30px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25); /* Soft shadow */
        margin-top: 20px;
        color: #fff; /* Adjust text color for contrast */
    }
    .enquiry-form h5 {
        font-weight: 600;
        color: #fff;
    }
    .form-subtitle {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.5);
    }
    #phone-error a {
        color: #ffffff;
    }
    #multiStepForm .form-group label {
        font-size: 0.75rem;
        font-weight: 500;
        color: #fff;
    }

    /* Base form-control styling */
    .enquiry-form .form-control,
    .enquiry-form .form-select {
        border-radius: 10px;
        padding: 11px 14px;
        font-size: 0.9rem;
        margin-bottom: 14px;

        /* Glassmorphism effect */
        background: rgba(255, 255, 255, 0.1); /* semi-transparent */
        color: #fff; /* text color for contrast */
        border: 1px solid rgba(255, 255, 255, 0.2); /* subtle glass border */
        backdrop-filter: blur(10px); /* frosted glass */
        -webkit-backdrop-filter: blur(10px); /* Safari support */

        /* Optional: subtle shadow for depth */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

        transition: all 0.3s ease-in-out;
    }

    /* Focus state */
    .enquiry-form .form-control:focus,
    .enquiry-form .form-select:focus {
        outline: none;
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.15);
    }
    .form-group.mb-3 {
        margin-bottom: 0px !important;
    }

    /* Invalid input styling for glassmorphic inputs */
    .enquiry-form .form-control.is-invalid,
    .enquiry-form .form-select.is-invalid,
    .was-validated .enquiry-form .form-control:invalid,
    .was-validated .enquiry-form .form-select:invalid {
        border-color: rgba(220, 53, 69, 0.8); /* softer red for glass */
        background-color: rgba(255, 255, 255, 0.1); /* keep semi-transparent */
        backdrop-filter: blur(10px); /* maintain frosted glass */
        -webkit-backdrop-filter: blur(10px);

        padding-right: calc(1.5em + 0.75rem);

        /* Red error icon */
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right calc(0.375em + 0.1875rem) center;
        background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
        color: #fff; /* text color stays readable */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* subtle depth */
    }

    .snapshot-label {
        font-size: 0.6rem;
        font-weight: 600;
    }
    .snapshot-item {
        padding: 20px;
        display: block;
        text-align: center;
    }
    .snapshot-icon {
        margin: 14px auto;
    }

    .snapshot-value {
        margin: 0;
        font-size: 0.8rem !important;
        font-weight: 600;
        letter-spacing: -0.2px;
        color: var(--brand-primary);
    }

    .form-select option {
        color: #000;
    }

    .form-step label {
        color: #fff;
    }

    .form-note {
        color: rgba(255, 255, 255, 0.5);
    }
    .program-tabs-wrapper {
        overflow-x: auto; /* allow horizontal scroll */
        -webkit-overflow-scrolling: touch; /* smooth scroll iOS */
        padding-bottom: 10px;
    }

    .program-tabs {
        flex-direction: row !important; /* force horizontal */
        flex-wrap: nowrap !important; /* no wrap */
        width: max-content; /* width fits children */
    }

    .program-tabs li {
        flex: 0 0 auto; /* prevent shrinking */
        margin-right: 10px; /* space between tabs */
    }

    .program-tabs .nav-link {
        white-space: nowrap; /* keep text in one line */
        min-width: 140px; /* touch-friendly width */
    }

    /* Optional: hide scrollbar for cleaner look */
    .program-tabs-wrapper::-webkit-scrollbar {
        display: none;
    }

    .program-categories {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        width: 100%;
        overflow: auto;
        padding: 0px 10px;
        height: fit-content;
    }
    .program-header h4 {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
    }
    .program-search input {
        width: auto;
        max-width: 100%;
        padding: 10px 13px;
        border-radius: 999px;
        border: 1px solid rgba(0, 0, 0, 0.12);
        background: #fff;
        font-size: 12px;
        transition: all 0.25s ease;
    }

    .program-card h6 {
        font-size: 12px;
        font-weight: 500;
        letter-spacing: -0.3px;
        color: var(--brand-primary);
        margin-bottom: 8px;
        margin-top: 10px;
    }

    .program-card .duration {
        font-size: 8px;
        font-weight: 400;
    }
    .program-cards .course-mode {
        font-size: 0.55rem;
        margin: 0;
    }
    .tab-text .title {
        display: block;
        font-size: 11px;
    }

    .program-tabs .nav-link.active .tab-text .subtitle {
        font-size: 10px;
    }
    .program-body {
        height: fit-content;
    }

    .close-overlay {
        margin-left: auto;
        background: none;
        border: none;
        font-size: 17px;
        opacity: 0.6;
        position: absolute;
        cursor: pointer;
        top: 0;
        right: 17px;
        color: #fff;
        background: var(--brand-primary);
        border-radius: 20px;
    }

    .apply-now-page .row.align-items-center {
        flex-direction: column-reverse;
    }
    .apply-now-page .apply-form-card {
        background: var(--brand-primary);
        margin-top: 50px;
    }
    .form-title {
        color: #fff;
    }

    .college-hero {
        padding: 25px 0px 50px;
    }
    .college-title {
        font-size: 1.8rem;
        font-weight: 600;
    }
    .college-location {
        font-size: 12px;
        width: 90%;
    }
    .college-rating i {
        font-size: 0.8rem;
    }
    .college-highlight {
        font-size: 12px;
    }
    .hero-cta .btn {
        position: relative;
        padding: 10px 20px;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.3px;
        border-radius: 999px;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }

    .trust-strip span {
        display: inline-block;
        margin-right: 18px;
        font-size: 12px;
        opacity: 0.9;
    }

    .btn-primary-custom {
        font-size: 12px;
    }

    .section-nav-list {
        gap: 0px;
    }

    .section-nav .nav-link {
        gap: 1px;
        padding: 8px 10px;
        font-size: 12px;
    }
    #courses .nav-tabs .nav-link {
        font-weight: 500;
        font-size: 12px;
        padding: 8px 13px;
    }

    #courses .list-group-item {
        font-weight: 500;
        font-size: 0.65rem;
    }

    #courses .list-group-item.active {
        font-weight: 600;
    }
    #courses .table thead th {
        font-size: 0.7rem;
        font-weight: 600;
        border: none;
        padding: 10px 12px;
    }

    #courses .table tbody td {
        font-size: 0.7rem;
    }
    #courses .badge {
        font-size: 0.5rem;
        font-weight: 600;
    }
    .section-title {
        font-weight: 700;
        font-size: 1.5rem;
    }

    .approval-card h5 {
        font-weight: 700;
        font-size: 15px;
        color: var(--brand-primary);
    }

    .approval-card p {
        font-size: 0.7rem;
        color: var(--text-muted);
    }

    .approval-card img {
        width: 40px;
        height: 40px;
    }
    .approval-card {
        padding: 20px 10px !important;
    }

    .scholarship-text p {
        font-size: 0.8rem;
    }

    .scholarship-card p {
        font-size: 0.7rem;
        color: var(--text-muted);
    }

    .scholarship-card h5 {
        font-weight: 600;
        color: var(--brand-primary);
        font-size: 14px;
    }
    .table > thead {
        vertical-align: middle;
    }

    .emi-table thead th {
        font-weight: 600;
        font-size: 12px;
    }

    .emi-table tbody td {
        font-size: 0.65rem;
        padding: 8px;
    }
    .flow-step {
        flex: 0 0 46%;
        max-width: 46%;
        text-align: center;
        position: relative;
        width: 50%;
        box-sizing: border-box;
        padding: 10px 10px;
        border: 1px solid lightgray;
        border-radius: 14px;
        box-shadow: 1px 2px 3px lightgray;
        height: 100%;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .step-desc {
        font-size: 0.65rem;
        color: var(--text-dark);
        margin-top: 5px;
    }

    .placement-features li {
        font-size: 0.8rem;
    }

    .placement-metric h3 {
        font-size: 1rem;
    }
    .placement-metric p {
        font-size: 0.65rem;
        color: var(--text-dark);
        font-weight: 400;
    }

    .placement-metric {
        height: 100%;
        align-items: center;
        display: grid;
    }
    .logo-box {
        height: 80px;
        padding: 10px;
    }

    .logo-box img {
        max-width: 100%;
    }
    .rating-score .score {
        font-size: 1.6rem;
    }

    .avatar {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: var(--brand-primary);
        color: #fff;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20%;
    }

    .review-text {
        font-size: 0.75rem;
        line-height: 1.6;
        margin: 12px 0;
    }
    .custom-faq .accordion-button {
        font-weight: 600;
        font-size: 0.8rem;
    }

    .custom-faq .accordion-body {
        font-size: 0.65rem;
        line-height: 1.7;
        color: var(--text-dark);
        padding: 18px 20px;
        border-top: 1px solid var(--border-color);
    }

    .cta-text {
        font-size: 0.8rem;
        opacity: 0.9;
        margin-bottom: 35px;
    }

    .clg-desc {
        font-size: 0.65rem;
    }

    .college-editorial-stats {
        font-size: 0.65rem;

        gap: 12px;
    }

    .college-editorial .btn-group {
        display: inline;
        top: 20px;
    }
    .college-editorial .btn-group .btn {
        font-size: 12px;
    }
    .about-hero,
    .career-niketan-banner {
        margin-top: 70px;
        padding: 40px 20px;
    }
    .cn-review-text {
        font-size: 13px;
    }

    .about-hero h1,
    .career-niketan-banner h1 {
        font-size: 1.6rem;
        font-weight: 800;
        z-index: inherit;
    }
    .college-topbar-premium {
        display: block;
        padding: 0px;
    }

    .topbar-course-box {
        display: flex;
        align-items: center;
        gap: 10px;
        background: linear-gradient(135deg, #9e2d89, #6d1f60);
        color: #ffffff;
        padding: 12px 10px;
        border-radius: 14px;
        font-weight: 500;
        border: none;
        font-size: 12px;
        cursor: pointer;
        width: 100%;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .compare-btn-premium {
        background: linear-gradient(
            135deg,
            var(--brand-primary),
            var(--brand-accent)
        );
        color: #ffffff;
        border: none;
        padding: 12px 28px;
        border-radius: 14px;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
        position: fixed;
        bottom: 10px;
        width: 50%;
        left: 2.5%;
        z-index: 1099;
    }
    .topbar-course-box i {
        font-size: 18px;
        margin-left: auto;
    }
    .course-dropdown-menu {
        width: 100%;
        padding: 14px;
        border-radius: 14px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    }
    .blog-hero {
        padding: 40px 0px 40px 0;
        background: linear-gradient(135deg, #9e2d89, #edc107);
        color: #fff;
        margin-top: 70px;
    }

    .blog-hero h1 {
        font-size: 20px;
    }

    .blog-hero p {
        font-size: 12px;
        opacity: 0.95;
    }
    .blog-search-input {
        border-radius: 50px 0 0 50px;
        padding: 10px 18px;
        border: none;
        font-size: 12px;
    }

    .blog-stats span {
        font-size: 12px;
    }

    .featured-title {
        font-size: 20px;
    }

    .featured-description {
        font-size: 13px;
        color: #555;
        line-height: 1.7;
        margin-bottom: 22px;
    }
    .btn-featured {
        font-size: 13px;
    }

    .featured-sidebar {
        display: none;
    }
    .blog-content h5 {
        font-size: 16px;
    }
    .blog-content p {
        font-size: 13px;
    }
    .featured-badge {
        font-size: 10px;
    }

    .blog-breadcrumb {
        background: #f8f8f8;
        display: none;
    }

    .blog-details-page {
        padding-top: 50px;
    }

    .newsletter-form {
        display: flex;
        gap: 12px;
        width: 80%;
        /* margin: 0px 10%; */
    }
}

/* Small mobiles */
@media (max-width: 480px) {
    .hero-carousel .carousel-caption {
        left: 10%;
    }

    .hero-carousel h1 {
        font-size: 1.4rem;
        font-weight: 600;
        color: #ffffff;
    }
    .hero-carousel p {
        font-size: 0.76rem;
        color: #f1f1f1;
        margin-bottom: 10px;
    }

    .carousel-caption .btn {
        padding: 10px 16px;
        font-size: 0.65rem;
    }

    .carousel-fade .carousel-item {
        opacity: 0;
        transition-property: opacity;
        transform: none;
    }

    .hero-carousel .carousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item {
        height: 230px;
    }

    .carousel-indicators {
        bottom: -10px;
    }

    .stat-item {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 18px 10px;
        margin-bottom: 12px;
        text-align: center;
    }

    .stat-item h3 {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .stat-item p {
        font-size: 12px;
        margin: 0;
    }

    .category-slider,
    .subcategory-slider {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: none; /* Firefox */
    }

    .category-slider::-webkit-scrollbar,
    .subcategory-slider::-webkit-scrollbar {
        display: none; /* Chrome */
    }

    /* Slider buttons */
    .slider-btn {
        flex: 0 0 auto;
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 20px;
        border: 1px solid #e5e7eb;
        background: #fff;
        color: #333;
        white-space: nowrap;
        transition: all 0.2s ease;
    }

    /* Active state */
    .slider-btn.active {
        background: #111;
        color: #fff;
        border-color: #111;
    }

    /* Tap feedback */
    .slider-btn:active {
        transform: scale(0.96);
    }

    .subcategory-tabs {
        border-bottom: none;
        gap: 4px;
    }

    .subcategory-tabs .nav-link {
        border: none;
        /* display: inline-flex; */
        border-radius: 30px;
        padding: 8px 10px;
        font-size: 9px;
        margin: 4px 0px;
        font-weight: 500;
        color: #555;
        background: #fff;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
        transition: all 0.35s ease;
    }

    .course-top {
        gap: 16px;
        margin-bottom: 10px;
        display: block !important;
        padding: 10px 0px;
        text-align: center;
    }

    .course-card.horizontal .course-icon {
        width: 70px;
        height: 70px;
        margin: auto;
    }

    .course-icon img {
        height: 100%;
        width: 60%;
        margin-bottom: 0;
    }
    .course-info h6 {
        font-weight: 600;
        margin-bottom: 4px;
        font-size: 11px;
        padding-top: 10px;
    }
    .course-info p {
        font-size: 0.5rem;
    }

    .course-btn-full {
        font-size: 10px;
    }

    .cta-card-light h2 {
        font-size: 22px;
    }

    .cta-card-light p {
        font-size: 12px;
    }

    .cta-card-light {
        padding: 50px 20px;
    }

    .cta-points li {
        font-size: 13px;
    }

    .cta-btn {
        min-width: 220px;
        padding: 10px 15px;
        font-size: 12px;
        display: inline;
        width: fit-content;
    }

    .team-section {
        background: #ffffff;
        padding: 40px 0;
    }

    .cta-section-light {
        background: #ffffff;
        padding: 40px 0;
    }

    .section-heading .section-subtitle {
        font-size: 14px;
        color: #ccc;
        max-width: 300px;
        margin: 0 auto;
        line-height: 1.6;
        font-weight: 500;
    }

    .course-badge {
        font-size: 0.42rem;
        font-weight: 500;
    }
    .course-title {
        font-size: 1.5rem;
        font-weight: 700;
    }
    .course-subtitle {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    .course-highlights li {
        font-size: 0.82rem;
    }

    .course-colleges td p {
        margin: 0;
        font-weight: 400;
        color: #111827;
        font-size: 12px;
    }

    .course-description table td p {
        padding: 0px !important;
    }

    .specialization-card h4 {
        font-size: 1.05rem;
        width: 80%;
    }

    section {
        padding: 35px 0px;
    }

    .cta-content h2 {
        font-size: 22px;
    }

    .cta-content p {
        font-size: 13px;
        margin-bottom: 16px;
    }
    .cta-actions {
        flex-direction: row;
    }
    .cta-actions {
        display: flex;
        gap: 10px;
        margin-bottom: 26px;
        width: 100%;
    }

    .cta-actions .btn {
        padding: 12px 10px;
        font-size: 12px;
        font-weight: 600;
        border-radius: 50px;
        display: inline-grid-lanes;
        margin-top: 10px;
    }

    .college-mini-card h6 {
        font-weight: 500;
        font-size: 0.65rem;
    }

    .college-mini-card span {
        color: var(--brand-accent);
        font-size: 0.5rem;
        font-weight: 600;
        opacity: 0.8;
        transition: opacity 0.3s ease;
    }
    .college-modal .modal-title {
        font-size: 1rem;
    }

    .course-name {
        font-weight: 500;
        margin-bottom: 6px;
        font-size: 10px;
        margin-top: 10px;
    }

    .course-duration {
        font-size: 10px;
        color: #666;
    }

    .course-select-card .course-icon img {
        height: 100%;
        width: 40%;
        margin-bottom: 0;
    }

    .course-select-card {
        padding: 10px 10px;
    }

    .college-badge {
        font-weight: 500;
        font-size: 10px;
    }
}
