* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.6;
}

header {
    background: linear-gradient(to right, #004080, #0066cc);
    color: white;
    padding: 40px 20px;
}

main {
    flex: 1;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 10px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    height: 80px;
    width: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.header-title {
    flex: 1;
}

.header-title h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
}

.affiliation-line {
    font-size: 0.9rem;
    color: #fff;
    font-style: italic;
    margin-top: 8px;
}

.header-btn {
    background-color: #ffe600;
    color: #004080;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-left: auto;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.header-btn:hover {
    background-color: #ffcc00;
}


.highlight {
    color: #ffe600;
    /* Bright yellow for visibility */
    font-weight: bold;
}

nav {
    background-color: #002b5c;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}

nav ul li a {
    display: block;
    padding: 18px 25px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: background 0.3s;
}

nav ul li a:hover {
    background-color: #0059b3;
}

nav ul li.dropdown {
    position: relative;
}

nav ul li .dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border-radius: 6px;
}

nav ul li:hover .dropdown-content {
    display: block;
}

.dropdown-content li a {
    display: block;
    padding: 10px 16px;
    color: #004080;
    text-decoration: none;
}

.dropdown-content li a:hover {
    background-color: #f0f0f0;
}

.carousel-section {
    width: 100%;
    background-color: #f4f7fb;
    padding: 0;
    margin: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 700px;
    /* Adjust based on image height */
    overflow: hidden;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
    position: relative;
    z-index: 2;
}

.section-content {
    width: 70%;
    margin: 0 auto;
}

.page-container {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

section {
    padding: 80px 0;
    border-bottom: 1px solid #e0e0e0;
}

section h2 {
    color: #004080;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

#about {
    background-color: #f4f7fb;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background-color: #004080;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    margin-top: 10px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #003060;
}

#admissions {
    background-color: #ffffff;
}

.fee-note {
    margin-top: 25px;
    padding: 15px 20px;
    background-color: #e6f2ff;
    border-left: 5px solid #004080;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #004080;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


/* Modern Courses */
#courses {
    background-color: #f4f7fb;
}

.course-grid.new-style {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.course-card.modern {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.course-card.modern:hover {
    transform: translateY(-8px);
}

.img-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-label {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #004080;
    color: white;
    font-weight: 600;
    padding: 6px 12px;
    font-size: 0.95rem;
    border-bottom-right-radius: 10px;
    z-index: 1;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-info {
    padding: 15px 20px;
}

.course-info p {
    margin: 8px 0;
}

.course-info .desc {
    font-size: 0.95rem;
    color: #444;
}

.course-info .intake {
    display: inline-block;
    background-color: #e6f2ff;
    color: #004080;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    margin-top: 10px;
    font-size: 0.9rem;
}

.eligibility-list {
    margin: 20px 0;
    padding-left: 20px;
    list-style: disc;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.eligibility-list li {
    margin-bottom: 10px;
}

#facilities {
    padding: 60px 20px;
    background-color: #f4f7fb;
}

#facilities h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #004080;
    font-size: 2rem;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.facility-icon-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.facility-icon-card:hover {
    transform: translateY(-6px);
}

.facility-icon-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #004080;
}

.facility-icon-card h3 {
    margin-bottom: 10px;
    color: #004080;
}

.facility-icon-card p {
    font-size: 0.95rem;
    color: #333;
}

.icon {
    color: #ff6600;
    margin-right: 5px;
}

#faculty {
    background-color: #ffffff;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.faculty-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.faculty-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.faculty-card:hover {
    transform: translateY(-5px);
}

.faculty-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.faculty-card h4 {
    margin: 8px 0 5px;
    color: #004080;
}

.faculty-card p {
    margin: 4px 0;
    font-size: 0.95rem;
}


.card {
    background-color: #f2f9ff;
    padding: 20px;
    border-left: 5px solid #004080;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.gallery-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: #fff;
    text-align: center;
}

.gallery-card:hover {
    transform: scale(1.03);
}

.gallery-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.gallery-card-title {
    padding: 12px;
    font-size: 1.1rem;
    color: #004080;
    background-color: #f4f7fb;
    font-weight: 600;
}

#gallery {
    padding: 60px 20px;
    background-color: #f4f7fb;
    flex: 1;
}

#gallery h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #004080;
    font-size: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* exactly 3 per row */
    gap: 24px;
    padding: 20px;
}

.gallery-item {
    width: 100%;
    height: 260px;
    /* bigger height */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

/* Position the dropdown */
nav ul li.dropdown {
    position: relative;
}

/* Hide by default */
nav ul li .dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border-radius: 6px;
}

/* Show on hover */
nav ul li:hover .dropdown-content {
    display: block;
}

/* Nested Dropdown (Governance inside About) */
nav ul li .dropdown-content li.dropdown {
    position: relative;
}

nav ul li .dropdown-content li.dropdown .dropdown-content {
    display: none;
    top: 0;
    left: 100%;
    margin-left: 2px;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-radius: 6px;
}


/* Style dropdown links */
.dropdown-content li a {
    display: block;
    padding: 10px 16px;
    color: #004080;
    text-decoration: none;
}

.dropdown-content li a:hover {
    background-color: #f0f0f0;
}


#stats {
    background-color: #ffffff;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-box h3 {
    font-size: 2.5rem;
    color: #004080;
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-box p {
    font-size: 1rem;
    color: #333;
}

#placements {
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
}

#placements h2 {
    color: #004080;
    margin-bottom: 30px;
    font-size: 2rem;
}

.placement-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.placement-logos img {
    max-height: 120px;
    /* increased from 60px */
    object-fit: contain;
    transition: transform 0.6s ease;
}

.placement-logos img:hover {
    transform: scale(1.05);
    filter: none;
}

.placement-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 30px;
}

.placement-track {
    display: flex;
    width: max-content;
    animation: scroll-left 40s linear infinite;
    gap: 40px;
}

.placement-track img {
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

#faq {
    background-color: #ffffff;
    padding: 60px 20px;
}

#faq h2 {
    text-align: center;
    color: #004080;
    margin-bottom: 40px;
    font-size: 2rem;
}

.faq-item {
    margin: 16px auto;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
    background: white;
    transition: all 0.3s ease;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #004080;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 24px;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background-color: #003060;
}

.faq-question::after {
    content: '➕';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '➖';
}

.faq-answer {
    display: none;
    padding: 16px 24px;
    font-size: 1rem;
    color: #333;
    background-color: #ffffff;
    border-top: 1px solid #ddd;
    animation: fadeIn 0.4s ease-in-out;
}

.scholarship-list {
    padding-left: 20px;
    margin-top: 10px;
    list-style: none;
}

.scholarship-list li {
    margin-bottom: 12px;
    padding-left: 8px;
    border-left: 4px solid #004080;
    background-color: #f4f7fb;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.95rem;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*Affiliations*/
main.section-content {
    padding-top: 20px;
    margin-top: -10px;
}

.pdf-container {
    width: 100%;
    overflow: auto;
    border-radius: 8px;
    margin-top: 20px;
}

.pdf-container iframe {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 8px;
}

/* 📱 Mobile-specific styles */
@media (max-width: 768px) {
    .pdf-container iframe {
        height: 500px;
        /* Increase height for full view */
    }
}

.pdf-buttons {
    margin: 40px auto 40px;
    text-align: center;
}

.fullscreen-btn {
    background: linear-gradient(to right, #004080, #0066cc);
    color: #ffffff;
    padding: 14px 26px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    background: linear-gradient(to right, #003060, #004d99);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}


iframe {
    border: none;
    border-radius: 8px;
    margin-top: 15px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin: 30px 0 20px;
    gap: 20px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background-color: #e6f2ff;
    color: #004080;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    background-color: #004080;
    color: #ffffff;
}

.tab-content {
    margin-top: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 90%;
    margin: 50px auto;
    background-color: white;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 28px;
    color: #000;
    /* Force black */
    cursor: pointer;
    z-index: 1001;
}


.pdf-buttons {
    margin-top: 20px;
    margin-bottom: 40px;
    text-align: center;
}

.close-btn:hover {
    color: #ff0000;
}

@media (max-width: 600px) {
    .modal-content {
        height: 85vh;
        width: 95%;
    }
}

footer {
    background-color: #002b5c;
    color: white;
    text-align: center;
    padding: 20px;
}

.committee-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

.committee-table th,
.committee-table td {
    padding: 14px 18px;
    border: 1px solid #ddd;
    text-align: left;
}

.committee-table th {
    background-color: #004080;
    color: white;
    font-weight: 600;
}

.committee-table tr:nth-child(even) {
    background-color: #f4f7fb;
}

.table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.placement-table {
    width: 100%;
    min-width: 700px;
    /* force scroll on small screens */
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    background-color: #fff;
}

.placement-table th,
.placement-table td {
    padding: 14px;
    border: 1px solid #ddd;
    text-align: center;
}

.placement-table th {
    background-color: #004080;
    color: white;
    font-weight: bold;
}

.placement-table tr:nth-child(even) {
    background-color: #f4f7fb;
}

.placement-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(to right, #004080, #0066cc);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 30px;
    margin: 12px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.placement-btn:hover {
    background: linear-gradient(to right, #003060, #004d99);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.org-name {
    font-style: italic;
    font-weight: 600;
    color: #083b6d;
    letter-spacing: 0.3px;
}

.message-section {
    margin-bottom: 60px;
}

.message-box {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.message-photo {
    width: 180px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.message-text {
    flex: 1;
    min-width: 260px;
    background-color: #f4f7fb;
    padding: 20px;
    border-left: 5px solid #004080;
    border-radius: 8px;
}

.message-text h2 {
    font-size: 1.6rem;
    color: #004080;
    margin-bottom: 10px;
}

.message-text .person-name {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
}

.message-text p {
    font-size: 1rem;
    line-height: 1.75;
    color: #333;
    margin-bottom: 12px;
}

.message-text .designation {
    font-style: italic;
    color: #555;
    margin-bottom: 10px;
}

.message-text strong {
    color: #004080;
}

.message-block {
    position: relative;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    padding: 30px 40px;
    background-color: #f9f9fb;
    border-left: 6px solid #004080;
    border-radius: 12px;
    margin-top: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.message-block::before {
    content: "“";
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 4rem;
    color: #cccccc;
    font-family: Georgia, serif;
    line-height: 1;
}

.message-block::after {
    content: "”";
    position: absolute;
    bottom: -20px;
    right: 20px;
    font-size: 4rem;
    color: #cccccc;
    font-family: Georgia, serif;
    line-height: 1;
}

.highlight-cards .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.highlight-cards .card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.highlight-cards .card:hover {
    transform: translateY(-6px);
}

.highlight-cards .icon {
    font-size: 36px;
    margin-bottom: 12px;
    color: #004080;
}

.highlight-cards h4 {
    color: #004080;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.document-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.document-card:hover {
    transform: scale(1.03);
}

.document-card img {
    max-width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 6px;
}

.overlay-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
}

.doc-preview {
    width: 100%;
    height: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 10;
    background-color: transparent;
}


.document-card:hover .doc-preview {
    transform: scale(1.01);
}


.pdf-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
}

.pdf-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 90%;
    margin: 50px auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
}

.pdf-modal embed {
    width: 100%;
    height: 100%;
    border: none;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 1000;
}

.close-btn:hover {
    color: red;
}

/* Responsive for small screens */
@media (max-width: 768px) {
    .documents-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .document-card iframe {
        height: 300px;
    }
}


@media (max-width: 768px) {
    .message-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .message-photo {
        width: 150px;
        height: 190px;
    }

    .message-text {
        border-left: none;
        border-top: 4px solid #004080;
        text-align: left;
        padding: 20px;
        margin-top: 20px;
    }
}

/* Responsive table styles */
@media (max-width: 768px) {

    .committee-table th,
    .committee-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .committee-table {
        font-size: 0.95rem;
        min-width: 600px;
        /* ensures horizontal scroll if needed */
    }
}

/* Show nested dropdown (Governance) on hover */
nav ul li .dropdown-content li.dropdown:hover>.dropdown-content {
    display: block;
}

@media (max-width: 768px) {
    .header-title h1 {
        font-size: 1.8rem;
        text-align: center;
    }

    .section-content {
        width: 90%;
        padding: 0 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        background-color: #002b5c;
        padding: 10px 0;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        padding: 14px 20px;
        width: 100%;
    }

    nav ul li .dropdown-content {
        position: static;
        box-shadow: none;
        min-width: 100%;
        border-radius: 0;
    }

    nav ul li .dropdown-content li a {
        padding-left: 30px;
    }

    nav ul li .dropdown-content li.dropdown .dropdown-content {
        position: static;
        margin: 0;
        box-shadow: none;
    }

    .carousel-container {
        height: 300px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .course-grid.new-style,
    .facility-grid,
    .faculty-card-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card img,
    .gallery-item {
        height: 200px;
    }

    .placement-logos {
        gap: 20px;
    }

    .placement-logos img {
        max-height: 80px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo {
        height: 60px;
    }

    .header-title h1 {
        font-size: 1.5rem;
    }

    .affiliation-line {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        /* single column on mobile */
        gap: 16px;
        padding: 10px;
    }

    .gallery-item {
        height: 200px;
        /* smaller height for better fit */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        /* two columns on tablets */
    }
}