    /* ========================================
    RESPONSIVE CSS FOR ALL DEVICES
    Mobile First Approach
    ======================================== */

    /* ========================================
    1. BASE RESPONSIVE SETTINGS
    ======================================== */
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    * {
        box-sizing: border-box;
    }

    html {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
    }

    body {
        overflow-x: hidden;

    }

    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* ========================================
    2. TOPBAR RESPONSIVE
    ======================================== */

    @media (max-width: 991px) {
        .topbar {
            height: auto;
            padding: 8px 0;
        }

        .topbar-inner {
            flex-direction: column;
            gap: 10px;
            align-items: center;
        }

        .topbar-left,
        .topbar-right {
            flex-direction: column;
            gap: 8px;
            text-align: center;
            width: 100%;
        }

        .topbar a {
            font-size: 11px;
        }

        .topbar .dropdown-menu {
            position: static !important;
            width: 100%;
            margin-top: 5px;
        }
    }

    @media (max-width: 768px) {
        .topbar {
            display: none !important;
            /* Hide topbar on all mobile screens */
        }
    }

    /* ========================================
    3. HEADER/BANNER RESPONSIVE
    ======================================== */

    @media (max-width: 1200px) {
        .header-section {
            height: auto;
            padding: 15px 10px;
        }

        .college-name {
            font-size: 36px !important;
            letter-spacing: 1px;
        }

        .autonomous {
            font-size: 18px;
        }

        .green-line {
            width: 80px;
        }

        .approval-text {
            font-size: 11px;
        }

        .address {
            font-size: 16px;
        }

        .small-logo {
            height: 50px;
        }

        .counselling-code {
            font-size: 22px;
            letter-spacing: 2px;
        }
    }

    @media (max-width: 992px) {
        .header-section {
            padding: 10px 5px;
        }

        .college-logo {
            max-height: 70px;

        }

        .college-name {
            font-size: 28px !important;
            white-space: normal;
            text-align: center;
        }

        .autonomous {
            font-size: 16px;
        }

        .green-line {
            width: 60px;
            height: 3px;
        }

        .approval-text {
            font-size: 10px;
            text-align: center;
        }

        .address {
            font-size: 14px;
            text-align: center;
        }

        .logo-row {
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
        }

        .small-logo {
            height: 40px;
        }

        .counselling-code {
            font-size: 18px;
            padding: 5px 10px;
        }

        .counselling-label {
            font-size: 13px;
        }

        .estdtext {
            font-size: 10px;
        }
    }

    @media (max-width: 768px) {
        .header-section .row {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .college-logo {
            max-height: 60px;
            margin-bottom: 10px;
            margin-left: 150px;
        }
       .estdtext{
        margin-left: 25px;
       }
        .college-name {
            font-size: 24px !important;
        }

        .autonomous-row {
            margin: 5px 0;
        }

        .approval-text {
            display: none;
        }

        .bslogos {
            margin-top: 10px;
        }
    }

    @media (max-width: 576px) {
        .college-name {
            font-size: 20px !important;
        }

        .autonomous {
            font-size: 14px;
        }

        .address {
            font-size: 12px;
        }

        .small-logo {
            height: 35px;
        }

        .counselling-code {
            font-size: 16px;
        }
    }

    /* ========================================
    6. ABOUT SECTION RESPONSIVE
    ======================================== */

    @media (max-width: 992px) {
        .about .container .row {
            flex-direction: column-reverse;
        }

        .about .col-lg-5,
        .about .col-lg-7 {
            width: 100%;
            padding: 15px;
        }

        .about .h-100 {
            min-height: 300px !important;
        }

        .section-about-title {
            font-size: 28px !important;
            text-align: center;
        }

        .about p {
            font-size: 15px;
            text-align: justify;
        }
    }

    @media (max-width: 768px) {
        .about .h-100 {
            min-height: 250px !important;
        }

        .abtimg {
            height: 250px !important;
            object-fit: cover;
            border-radius: 12px;
        }

        .section-about-title {
            font-size: 24px !important;
        }

        .about p {
            font-size: 14px;
        }

        .minabtbtn {
            width: 160px !important;
            font-size: 14px !important;
            padding: 10px 20px !important;
            margin: 10px auto !important;
            display: block !important;
        }
    }

    @media (max-width: 576px) {
        .about .h-100 {
            min-height: 200px !important;
        }

        .abtimg {
            height: 200px !important;
        }

        .section-about-title {
            font-size: 20px !important;
        }

        .about p {
            font-size: 13px;
        }
    }

    /* ========================================
    7. DEPARTMENTS SECTION RESPONSIVE
    ======================================== */

    .dept-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    @media (max-width: 1200px) {
        .dept-grid {
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }
    }

    @media (max-width: 992px) {
        .dept-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 18px;
        }

        .dept-card {
            padding: 20px;
        }

        .dept-name {
            font-size: 1.15rem;
        }

        .dept-desc {
            font-size: 0.85rem;
        }
    }

    @media (max-width: 768px) {
        .dept-grid {
            grid-template-columns: 1fr;
            gap: 15px;
        }

        .dept-header .badge {
            font-size: 28px;
            padding: 6px 14px;
        }

        .dept-header .title {
            font-size: 2rem;
        }

        .dept-header .subtitle {
            font-size: 0.9rem;
        }

        .dept-card {
            padding: 18px;
        }

        .dept-icon-box {
            width: 45px;
            height: 45px;
            font-size: 20px;
        }

        .dept-name {
            font-size: 1.1rem;
        }

        .dept-desc {
            font-size: 0.82rem;
        }

        .dept-stats {
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .mindpt {
            width: 160px !important;
            font-size: 10px !important;
        }
    }

    @media (max-width: 576px) {
        .dept-header .badge {
            font-size: 24px;
        }

        .dept-header .title {
            font-size: 1.6rem;
        }

        .dept-card {
            padding: 16px;
        }

        .dept-name {
            font-size: 1rem;
        }

        .dept-desc {
            font-size: 0.8rem;
        }
    }

    /* ========================================
    8. NEWS/UPDATES SECTION RESPONSIVE
    ======================================== */

    @media (max-width: 992px) {
        .news-card {
            margin-bottom: 20px;
        }

        .news-body {
            max-height: 300px;
            overflow-y: auto;
        }
    }

    @media (max-width: 768px) {
        .news-card .card-header {
            font-size: 16px;
            padding: 12px;
        }

        .news-item h6 {
            font-size: 14px;
        }

        .news-item p {
            font-size: 13px;
        }

        .news-item small {
            font-size: 11px;
        }
    }

    @media (max-width: 576px) {
        .news-card .card-header {
            font-size: 14px;
        }

        .news-item {
            padding: 10px 0;
        }

        .news-item h6 {
            font-size: 13px;
        }

        .news-item p {
            font-size: 12px;
        }
    }

    /* ========================================
    9. GALLERY SECTION RESPONSIVE
    ======================================== */

    @media (max-width: 1200px) {
        .gallery .col-xl-2 {
            flex: 0 0 25%;
            max-width: 25%;
        }
    }

    @media (max-width: 992px) {
        .gallery .col-lg-4 {
            flex: 0 0 33.333%;
            max-width: 33.333%;
        }

        .gallery .nav-pills .nav-link {
            padding: 8px 15px;
            font-size: 14px;
        }

        .gallery .nav-pills .nav-link span {
            width: 120px !important;
        }
    }

    @media (max-width: 768px) {
        .gallery .col-md-6 {
            flex: 0 0 50%;
            max-width: 50%;
        }

        .gallery .nav-pills {
            flex-direction: column;
            gap: 10px;
        }

        .gallery .nav-pills .nav-item {
            width: 100%;
        }

        .gallery .nav-pills .nav-link {
            width: 100%;
            justify-content: center;
        }

        .gallery .nav-pills .nav-link span {
            width: 100% !important;
        }

        .gallery-item {
            height: 200px;
        }

        .minimgbtn {
            width: 200px !important;
            font-size: 14px !important;
            margin: 20px auto !important;
            display: block !important;
        }
    }

    @media (max-width: 576px) {
        .gallery .col-sm-6 {
            flex: 0 0 100%;
            max-width: 100%;
        }

        .gallery-item {
            height: 250px;
        }

        .gallery h1 {
            font-size: 24px;
        }

        .gallery p {
            font-size: 14px;
        }
    }

    /* ========================================
    10. TESTIMONIAL SECTION RESPONSIVE
    ======================================== */

    @media (max-width: 992px) {
        .testimonial h1 {
            font-size: 28px;
        }

        .testimonial-item {
            padding: 15px;
        }

        .testimonial-comment p {
            font-size: 14px;
        }

        .testimonial-img img {
            width: 80px;
            height: 80px;
        }
    }

    @media (max-width: 768px) {
        .testimonial h1 {
            font-size: 24px;
        }

        .testimonial-comment p {
            font-size: 13px;
            padding: 15px !important;
        }

        .testimonial-img img {
            width: 70px;
            height: 70px;
        }

        .testimonial-item h5 {
            font-size: 16px;
        }

        .testimonial-item p {
            font-size: 13px;
        }
    }

    @media (max-width: 576px) {
        .testimonial h1 {
            font-size: 20px;
        }

        .testimonial-comment p {
            font-size: 12px;
        }
    }

    /* ========================================
    11. VISITOR COUNTER RESPONSIVE
    ======================================== */

    @media (max-width: 992px) {
        .visitor-counter {
            padding: 10px 20px;
            font-size: 15px;
            gap: 10px;
        }

        .visitor-counter .count-badge {
            font-size: 16px;
            padding: 4px 14px;
        }

        .visitor-counter i {
            font-size: 18px !important;
        }
    }

    @media (max-width: 768px) {
        .visitor-counter {
            padding: 10px 18px !important;
            font-size: 14px !important;
            gap: 8px !important;
            margin: 15px auto 0 !important;
        }

        .visitor-counter .count-badge {
            padding: 4px 12px !important;
            font-size: 16px !important;
        }

        .visitor-counter i {
            font-size: 18px !important;
        }
    }

    @media (max-width: 576px) {
        .visitor-counter {
            width: 200px !important ;
            font-size: 12px !important;
            flex-direction: row;
            gap: 5px !important;
        }

        .visitor-counter .count-badge {
            font-size: 14px !important;
            padding: 3px 10px !important;
        }

        .visitor-counter i {
            font-size: 16px !important;
        }
    }

    /* ========================================
    12. FOOTER RESPONSIVE
    ======================================== */

    @media (max-width: 992px) {

        .footer .col-lg-3,
        .footer .col-lg-4 {
            flex: 0 0 50%;
            max-width: 50%;
            margin-bottom: 30px;
        }
    }

    @media (max-width: 768px) {
        .footer .col-md-6{
flex:0 0 50%;
max-width:50%;
text-align:left;
}

        .footer h4 {
            font-size: 18px;
        }

        .footer p,
        .footer a {
            font-size: 14px;
        }
    }

    @media (max-width: 576px) {
        .footer h4 {
            font-size: 16px;
        }

        .footer p,
        .footer a {
            font-size: 13px;
        }
    }

    /* ========================================
    13. BUTTONS RESPONSIVE
    ======================================== */

    @media (max-width: 768px) {
        .btn {
            padding: 10px 20px !important;
            font-size: 14px !important;
        }

        .btn-lg {
            padding: 12px 25px !important;
            font-size: 15px !important;
        }

        .btn-sm {
            padding: 8px 15px !important;
            font-size: 12px !important;
        }
    }

    @media (max-width: 576px) {
        .btn {
            padding: 8px 16px !important;
            font-size: 13px !important;
        }

        .btn-lg {
            padding: 10px 20px !important;
            font-size: 14px !important;
        }
    }

    /* ========================================
    14. CONTAINER & SPACING RESPONSIVE
    ======================================== */

    @media (max-width: 1200px) {
        .container {
            max-width: 960px;
        }

        .py-5 {
            padding-top: 3rem !important;
            padding-bottom: 3rem !important;
        }
    }

    @media (max-width: 992px) {
        .container {
            max-width: 720px;
        }

        .py-5 {
            padding-top: 2.5rem !important;
            padding-bottom: 2.5rem !important;
        }

        .mb-5 {
            margin-bottom: 2rem !important;
        }
    }

    @media (max-width: 768px) {
        .container {
            max-width: 540px;
            padding-left: 15px;
            padding-right: 15px;
        }

        .py-5 {
            padding-top: 2rem !important;
            padding-bottom: 2rem !important;
        }

        .mb-5 {
            margin-bottom: 1.5rem !important;
        }

        .mt-5 {
            margin-top: 1.5rem !important;
        }
    }

    @media (max-width: 576px) {
        .container {
            max-width: 100%;
            padding-left: 12px;
            padding-right: 12px;
        }

        .py-5 {
            padding-top: 1.5rem !important;
            padding-bottom: 1.5rem !important;
        }

        .mb-5 {
            margin-bottom: 1rem !important;
        }

        .mt-5 {
            margin-top: 1rem !important;
        }
    }

    /* ========================================
    15. TYPOGRAPHY RESPONSIVE
    ======================================== */

    @media (max-width: 992px) {
        h1 {
            font-size: 2.2rem !important;
        }

        h2 {
            font-size: 1.9rem !important;
        }

        h3 {
            font-size: 1.5rem !important;
        }

        h4 {
            font-size: 1.3rem !important;
        }

        h5 {
            font-size: 1.1rem !important;
        }

        p {
            font-size: 15px !important;
        }
    }

    @media (max-width: 768px) {
        h1:not(.college-name) {
            font-size: 2rem !important;
        }

        h2 {
            font-size: 1.7rem !important;
        }

        h3 {
            font-size: 1.4rem !important;
        }

        h4 {
            font-size: 1.2rem !important;
        }

        h5 {
            font-size: 1rem !important;
        }

        p {
            font-size: 14px !important;
        }

        body {
            font-size: 14px;
        }
    }

    @media (max-width: 576px) {
        h1:not(.college-name) {
            font-size: 1.6rem !important;
        }

        h2 {
            font-size: 1.4rem !important;
        }

        h3 {
            font-size: 1.2rem !important;
        }

        h4 {
            font-size: 1.1rem !important;
        }

        h5 {
            font-size: 0.95rem !important;
        }

        p {
            font-size: 13px !important;
        }

        body {
            font-size: 13px;
        }
    }

    /* ========================================
    16. BACK TO TOP BUTTON RESPONSIVE
    ======================================== */

    @media (max-width: 768px) {
        .back-to-top {
            right: 20px;
            bottom: 20px;
            width: 40px;
            height: 40px;
        }

        .back-to-top i {
            font-size: 18px;
        }
    }

    @media (max-width: 576px) {
        .back-to-top {
            right: 15px;
            bottom: 15px;
            width: 35px;
            height: 35px;
        }

        .back-to-top i {
            font-size: 16px;
        }
    }

    /* ========================================
    17. UTILITY CLASSES FOR RESPONSIVE
    ======================================== */

    /* Hide on mobile */
    @media (max-width: 768px) {
        .hide-mobile {
            display: none !important;
        }
    }

    /* Show only on mobile */
    .show-mobile {
        display: none !important;
    }

    @media (max-width: 768px) {
        .show-mobile {
            display: block !important;
        }
    }

    /* Text alignment responsive */
    @media (max-width: 768px) {
        .text-md-center {
            text-align: center !important;
        }

        .text-md-left {
            text-align: left !important;
        }

        .text-md-right {
            text-align: right !important;
        }
    }

    /* ========================================
    18. PREVENT HORIZONTAL SCROLL
    ======================================== */


    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    @media (max-width: 768px) {
        .container-fluid {
            padding-left: 10px;
            padding-right: 10px;
        }

        .row {
            margin-left: -10px;
            margin-right: -10px;
        }

        .row>* {
            padding-left: 10px;
            padding-right: 10px;
        }
    }

    /* ========================================
    19. SMOOTH SCROLLING
    ======================================== */

    html {
        scroll-behavior: smooth;
    }

    /* ========================================
    20. TOUCH OPTIMIZATION
    ======================================== */

    @media (max-width: 768px) {

        a,
        button,
        .btn {
            min-height: 44px;
            min-width: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        /* Increase tap target size */
        .nav-link,
        .dropdown-item {
            min-height: 44px;
            padding: 12px 15px;
        }
    }


    /* ========================================
    21. ADDITIONAL MOBILE OPTIMIZATIONS
    ======================================== */

    /* Improve touch targets on mobile */
    @media (max-width: 768px) {

        /* Larger clickable areas */
        .navbar-nav .nav-link,
        .dropdown-item {
            padding: 14px 16px;
            font-size: 15px;
        }

        /* Better spacing for cards */
        .card {
            margin-bottom: 20px;
        }

        /* Optimize images for mobile */
        img {
            image-rendering: -webkit-optimize-contrast;
        }

        /* Better form inputs on mobile */
        input,
        textarea,
        select {
            font-size: 16px !important;
            /* Prevents zoom on iOS */
            padding: 12px;
        }

        /* Improve table responsiveness */
        table {
            display: block;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
    }

    /* ========================================
    22. LANDSCAPE MODE OPTIMIZATIONS
    ======================================== */

    @media (max-width: 768px) and (orientation: landscape) {
        .carousel-header {
            height: 300px;
        }

        .carousel-video {
            height: 300px;
        }

        .header-section {
            padding: 8px 5px;
        }

        .college-name {
            font-size: 22px !important;
        }

        .navbar-collapse {
            max-height: 250px;
        }
    }

    /* ========================================
    23. PRINT STYLES
    ======================================== */

    @media print {

        .topbar,
        .navbar,
        .back-to-top,
        .social-wrapper,
        .visitor-counter,
        .carousel-control-prev,
        .carousel-control-next {
            display: none !important;
        }

        body {
            font-size: 12pt;
        }

        a {
            text-decoration: underline;
        }

        .container {
            width: 100%;
            max-width: 100%;
        }
    }

    /* ========================================
    24. ACCESSIBILITY IMPROVEMENTS
    ======================================== */

    /* Focus visible for keyboard navigation */
    a:focus,
    button:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: 2px solid #0066ff;
        outline-offset: 2px;
    }

    /* Skip to main content link */
    .skip-to-main {
        position: absolute;
        top: -40px;
        left: 0;
        background: #0066ff;
        color: white;
        padding: 8px;
        text-decoration: none;
        z-index: 100;
    }

    .skip-to-main:focus {
        top: 0;
    }

    /* ========================================
    25. PERFORMANCE OPTIMIZATIONS
    ======================================== */

    /* Reduce animations on low-end devices */
    @media (prefers-reduced-motion: reduce) {

        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    /* ========================================
    26. DARK MODE SUPPORT (Optional)
    ======================================== */

    @media (prefers-color-scheme: dark) {
        /* Add dark mode styles if needed in future */
    }

    /* ========================================
    27. SPECIFIC COMPONENT FIXES
    ======================================== */

    /* Fix for owl carousel on mobile */
    @media (max-width: 768px) {
        .owl-carousel .owl-item img {
            width: auto;
            max-width: 100%;
        }

        .owl-nav {
            display: none;
        }

        .owl-dots {
            margin-top: 15px;
        }
    }

    /* Fix for Bootstrap modals on mobile */
    @media (max-width: 768px) {
        .modal-dialog {
            margin: 10px;
            max-width: calc(100% - 20px);
        }

        .modal-content {
            border-radius: 10px;
        }
    }

    /* Fix for dropdown menus on touch devices */
    @media (max-width: 991px) {

        .navbar .dropdown-menu {
            position: static;
            transform: none;
        }

        .navbar .dropdown-submenu>.dropdown-menu {
            position: static;
            margin-left: 15px;
            border-left: 3px solid #0066ff;
        }

    }

    #navbar {
        position: relative;
        z-index: 2000;
    }

    /* ========================================
    28. SOCIAL MEDIA ICONS RESPONSIVE
    ======================================== */

    @media (max-width: 768px) {
        .social-wrapper {
            bottom: 70px;
            right: 15px;
        }

        .social-toggle {
            width: 50px;
            height: 50px;
            font-size: 20px;
        }

        .social-icon {
            width: 45px;
            height: 45px;
            font-size: 18px;
        }
    }

    @media (max-width: 576px) {
        .social-wrapper {
            bottom: 60px;
            right: 10px;
        }

        .social-toggle {
            width: 45px;
            height: 45px;
            font-size: 18px;
        }

        .social-icon {
            width: 40px;
            height: 40px;
            font-size: 16px;
        }
    }

    /* ========================================
    29. VIDEO RESPONSIVE
    ======================================== */

    @media (max-width: 768px) {
        video {
            width: 100%;
            height: auto;
        }

        .carousel-video {
            object-fit: cover;
        }
    }

    /* ========================================
    30. IFRAME RESPONSIVE
    ======================================== */

    @media (max-width: 768px) {
        iframe {
            width: 100%;
            height: auto;
            min-height: 250px;
        }

        .footer iframe {
            min-height: 200px;
        }
    }

    /* ========================================
    31. FINAL MOBILE POLISH
    ======================================== */

    @media (max-width: 576px) {

        /* Reduce padding on very small screens */
        .py-5 {
            padding-top: 1.5rem !important;
            padding-bottom: 1.5rem !important;
        }

        .px-5 {
            padding-left: 1rem !important;
            padding-right: 1rem !important;
        }

        /* Smaller gaps */
        .g-4 {
            gap: 1rem !important;
        }

        .g-5 {
            gap: 1.5rem !important;
        }

        /* Better mobile typography */
        .lead {
            font-size: 1rem;
        }

        .display-1,
        .display-2,
        .display-3,
        .display-4,
        .display-5,
        .display-6 {
            font-size: calc(1.375rem + 1.5vw);
        }
    }

    /* ========================================
    32. ENSURE NO HORIZONTAL OVERFLOW
    ======================================== */
    img,
    video,
    iframe,
    embed,
    object {
        max-width: 100%;
        height: auto;
    }



    /* ========================================
    END OF RESPONSIVE CSS
    ======================================== */

    .social-wrapper {
        z-index: 100;
    }


    @media (max-width:991px) {

        .navbar-collapse {
            max-height: 80vh;
            overflow-y: auto;
            overflow-x: hidden;
        }

        .navbar-collapse::-webkit-scrollbar {
            width: 5px;
        }

        .navbar-collapse::-webkit-scrollbar-thumb {
            background: #0d6efd;
            border-radius: 10px;
        }

    }


 @media (max-width:768px){

 .shadow{
    height: 150px;
 }
 
 .footer .quicklinks{
    display: none !important;

 }
 .footer iframe{
    display: none !important;
 }
 .footer .supportlinks{
    display: none !important;
 }


}
