/* Responsive Styles */

@media (max-width: 1400px) {
    .header-main-title {
        font-size: 18px;
    }

    .header-main-title2 {
        font-size: 18px;
    }

    .header-main-logo2 {
        width: 70px;
        height: auto;
    }

    .cinfo-college-img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 1200px) {
    .header-top-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-top-item {
        text-align: center;
        padding: 5px;
    }
}

@media (max-width: 991px) {

    /* Header */
    .header-main-logo-separator {
        display: none;
    }

    .header-left {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .header-main-logo2 {
        margin: 0 0 10px 0;
    }

    .header-main-logos {
        justify-content: center;
        margin-top: 20px;
    }

    /* Navigation */
    .navbar-collapse {
        background: #186389;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 1000;
        padding: 10px;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }

    .main-nav .nav-link {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px !important;
    }

    /* Hero */
    .hero-img {
        height: auto;
    }

    .carousel-item {
        height: auto;
        min-height: 200px;
    }

    .carousel-item img {
        height: 100%;
        object-fit: cover;
    }

    /* College Info */
    .cinfo-left {
        flex-direction: column;
    }

    .cinfo-col1,
    .cinfo-col2,
    .cinfo-col3 {
        width: 100%;
        max-width: 100%;
    }

    .cinfo-college-img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    /* Gallery */
    .photo-gallery-card-header,
    .vgalheader {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .pgalgrid,
    .vgalgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Footer or other wide elements */
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 767px) {

    /* Header Top */
    .header-top-content {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .header-top-item {
        width: 100%;
        padding: 5px 0;
    }

    /* Main Header */
    .header-main-title,
    .header-main-title2 {
        font-size: 16px;
        text-align: center;
    }

    .header-main-desc {
        text-align: center;
    }

    .header-main-logos img {
        max-width: 100px;
        height: auto;
    }

    /* Stats */
    .stat-grid {
        justify-content: center;
    }

    .stat-card {
        width: 45%;
        margin-bottom: 15px;
    }

    /* College Info */
    .cinfo-inner {
        padding: 0 15px;
    }

    .cinfo-col3 {
        max-width: 100%;
        margin-top: 30px;
    }

    /* News */
    .news-card {
        height: auto;
        margin-bottom: 20px;
    }

    .marquee-container-vertical,
    .news-card-body.marquee-container-vertical {
        height: 300px;
        /* Give it fixed height on mobile for scrolling */
    }

    /* Gallery */
    .pgalgrid,
    .vgalgrid {
        grid-template-columns: 1fr;
    }

    .pgalitem,
    .vgalitem {
        width: 100%;
    }

    .vgalitem iframe {
        width: 100%;
        height: 200px;
    }

    /* Events */
    .upcoming-events-item {
        flex-direction: column;
    }

    .upcoming-events-item-img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .upcoming-events-item-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .upcoming-events-item-date-card {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .stat-card {
        width: 100%;
    }

    .header-main-logos {
        gap: 10px;
    }

    .header-main-logos img {
        max-width: 80px;
    }

    /* News Update Section - Mobile */
    .news-update-heading {
        font-size: 20px;
    }

    .news-col-title {
        font-size: 18px;
    }
}

/* News & Facebook Update Section - Responsive */
@media (max-width: 991px) {
    .news-update-container .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 30px;
    }

    .news-update-container .col-lg-4:last-child {
        margin-bottom: 0;
    }

    .news-list-container,
    .events-list-container,
    .fb-card-mockup {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .news-update-section {
        padding: 30px 0;
    }

    .news-update-container {
        padding: 20px;
    }

    .news-list-container,
    .events-list-container,
    .fb-card-mockup {
        height: 400px;
    }

    .update-icon-circle {
        width: 35px;
        height: 35px;
    }

    .update-icon-circle img {
        width: 18px;
        height: 18px;
    }

    .update-title {
        font-size: 13px;
    }

    .update-date {
        font-size: 11px;
    }

    .fb-card-img {
        height: 180px;
    }
}