/* Responsive Design Enhancements */
/* Additional responsive styles for better mobile experience */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .college-names {
        order: 2;
        width: 100%;
        margin-top: 1rem;
    }
    
    .college-name-english {
        font-size: 1.125rem;
    }
    
    .college-name-hindi,
    .college-name-odia {
        font-size: 0.875rem;
    }
    
    .hero-section {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-text {
        max-width: 500px;
    }
    
    .hero-text h1 {
        font-size: 2.75rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-highlights {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .news-content {
        grid-template-columns: 1fr;
    }

    .news-list {
        order: 1;
    }

    .news-sidebar {
        order: 2;
    }

    /* Modern news section responsive */
    .news-main {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .faculty-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .hods-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 1.2rem;
    }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    /* Header adjustments */
    .top-bar {
        display: none;
    }
    
    .main-header {
        padding: 0.75rem 0;
    }
    
    .header-content {
        flex-direction: row;
        align-items: center;
    }
    
    .logo-text h1 {
        font-size: 1.25rem;
    }
    
    .logo-text p {
        font-size: 0.75rem;
    }
    
    .college-names {
        display: none;
    }
    
    .header-icons {
        gap: 1rem;
    }

    .header-logos {
        gap: 0.75rem;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .header-logos a {
        padding: 0.4rem;
    }

    .header-logos a img {
        width: 35px;
        height: 35px;
    }
    
    .organization-logos {
        gap: 0.5rem;
    }
    
    .org-logo {
        padding: 0.25rem;
    }
    
    .org-logo img {
        width: 30px;
        height: 30px;
    }
    
    /* Navigation improvements */
    .main-nav {
        position: relative;
    }
    
    .nav-wrapper {
        position: relative;
    }
    
    .mobile-menu-btn {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 4px;
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }
    
    .nav-menu.active {
        max-height: 500px;
        display: flex;
    }
    
    /* Hamburger menu animation styles */
    .mobile-menu-btn span {
        display: block;
        width: 24px;
        height: 3px;
        background: white;
        margin: 5px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .mobile-menu-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link {
        padding: 1rem;
        font-size: 1rem;
        text-align: left;
        justify-content: space-between;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 0;
    }

    .nav-item.dropdown:hover .dropdown-menu,
    .nav-item.dropdown.active .dropdown-menu {
        max-height: 200px;
    }

    .dropdown-menu a {
        padding: 0.75rem 2rem;
        color: rgba(255, 255, 255, 0.9);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    /* Hero section mobile optimization */
    .hero-section {
        margin-top: 100px;
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-text {
        max-width: 400px;
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-text h1 {
        font-size: 2.25rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .hero-nav {
        display: none;
    }


    /* Notification scroller mobile improvements */
    .notification-scroller {
        padding: 0.6rem 0;
    }

    .notification-track {
        gap: 2rem;
        animation-duration: 20s;
    }

    .notification-item {
        min-width: 250px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        gap: 0.6rem;
    }

    .notification-item i {
        font-size: 0.8rem;
    }
    
    /* Content sections */
    section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
        padding: 1.5rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .section-header p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    /* Quick links responsive */
    .quick-links {
        padding: 2rem 0;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .quick-link-card {
        padding: 1.5rem 1.2rem;
        border-radius: 12px;
    }

    .quick-link-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .quick-link-card h3 {
        font-size: 1.1rem;
    }

    .quick-link-card p {
        font-size: 0.85rem;
    }
    
    /* News responsive */
    .news-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .news-date {
        align-self: center;
    }

    /* Modern news section mobile */
    .news-main {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .faculty-grid-modern {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hods-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        gap: 1rem;
    }

    .stat-card-modern {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .faculty-card-modern {
        padding: 1rem;
    }

    .faculty-card-modern img {
        height: 180px;
    }
    
    /* Courses responsive */
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .course-card {
        padding: 1.5rem;
    }
    
    /* Infrastructure responsive */
    .infrastructure-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .infrastructure-features {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .infrastructure-image img {
        height: 200px;
    }
    
    /* Faculty responsive */
    .faculty-preview {
        padding: 2rem 0;
    }

    .faculty-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.2rem 0.8rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .principal-quote {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.2rem;
    }

    .quote-content {
        text-align: center;
    }

    .quote-content p {
        font-size: 0.9rem;
    }

    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .faculty-card img {
        height: 140px;
    }

    .faculty-info {
        padding: 1rem;
    }

    .faculty-info h4 {
        font-size: 0.9rem;
    }
    
    /* Student life responsive */
    .student-life-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .life-section {
        padding: 1.5rem;
    }
    
    /* Achievements responsive */
    .achievement-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .achievement-year {
        align-self: center;
    }
    
    /* CTA responsive */
    .cta-text h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: left;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header mobile */
    .main-header {
        padding: 0.5rem 0;
    }
    
    .logo img {
        width: 40px;
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-text p {
        display: none;
    }
    
    .header-icons {
        gap: 0.5rem;
    }

    .header-logos {
        gap: 0.4rem;
    }

    .header-logos a {
        padding: 0.25rem;
    }

    .header-logos a img {
        width: 25px;
        height: 25px;
    }

    .header-logos {
        gap: 0.5rem;
    }

    .header-logos a {
        padding: 0.3rem;
    }

    .header-logos a img {
        width: 30px;
        height: 30px;
    }
    
    .search-btn {
        font-size: 1rem;
        padding: 0.25rem;
    }
    
    .language-selector select {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Hero mobile */
    .hero-section {
        margin-top: 100px;
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-text p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Content mobile */
    section {
        padding: 2rem 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .section-header p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .highlight-item {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .news-item {
        padding: 1rem;
    }
    
    .news-text h3 {
        font-size: 1.125rem;
    }
    
    .news-text p {
        font-size: 0.875rem;
    }
    
    .quick-link-card,
    .course-card {
        padding: 1rem;
    }
    
    .quick-link-card h3,
    .course-card h3 {
        font-size: 1.125rem;
    }
    
    .quick-link-card p,
    .course-card p {
        font-size: 0.875rem;
    }

    /* Extra small mobile news section */
    .news-main {
        padding: 0.8rem;
    }

    .stats-grid {
        gap: 0.6rem;
    }

    .gallery-grid {
        gap: 0.8rem;
    }

    .stat-card-modern {
        padding: 0.8rem;
        gap: 0.6rem;
    }

    .faculty-card-modern {
        padding: 0.8rem;
    }

    .faculty-card-modern img {
        height: 160px;
    }
    
    /* Mobile infrastructure */
    .infrastructure-features {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .feature-item i {
        font-size: 1.5rem;
        color: #ffffff;
        background: #48bb78;
        padding: 0.5rem;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 2px 10px rgba(72, 187, 120, 0.3);
    }
    
    /* Mobile faculty */
    .faculty-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .faculty-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .faculty-card img {
        height: 150px;
    }
    
    /* Mobile student life */
    .life-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Mobile achievements */
    .achievement-item {
        padding: 1rem;
    }
    
    .achievement-year {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }
    
    /* Mobile CTA */
    .cta-text h2 {
        font-size: 1.75rem;
    }
    
    .cta-text p {
        font-size: 1rem;
    }
    
    /* Footer mobile */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section {
        text-align: left;
    }
    
    .footer-logo {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-section {
        margin-top: 90px;
        min-height: 300px;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .hero-text p {
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .section-header p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .quick-link-icon,
    .course-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Extra small devices modern elements */
    .news-main {
        padding: 0.6rem;
    }

    .stats-grid {
        gap: 0.5rem;
    }

    .gallery-grid {
        gap: 0.6rem;
    }

    .stat-card-modern {
        padding: 0.6rem;
        gap: 0.5rem;
    }

    .stat-card-modern .stat-icon {
        font-size: 1.5rem;
    }

    .stat-card-modern .stat-number {
        font-size: 1.5rem;
    }

    .faculty-card-modern {
        padding: 0.6rem;
    }

    .faculty-card-modern img {
        height: 140px;
    }

    .faculty-card-modern h4 {
        font-size: 0.85rem;
    }

    .faculty-card-modern p {
        font-size: 0.75rem;
    }
    
    .news-date {
        min-width: 60px;
        padding: 0.5rem;
    }
    
    .news-date .day {
        font-size: 1.25rem;
    }
    
    .news-date .month {
        font-size: 0.75rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        min-height: 400px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .hero-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img,
    .about-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .header,
    .main-nav,
    .hero-nav,
    .hero-indicators,
    .footer {
        display: none;
    }
    
    .hero-section {
        margin-top: 0;
        height: auto;
        min-height: auto;
        page-break-inside: avoid;
    }
    
    .hero-text {
        color: #000;
    }
    
    .hero-text h1,
    .hero-text p {
        text-shadow: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 { font-size: 18pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 14pt; }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .quick-links,
    .about-preview,
    .news-section,
    .courses-preview {
        page-break-inside: avoid;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a202c;
        --text-color: #e2e8f0;
        --card-bg: #2d3748;
        --border-color: #4a5568;
    }
    
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    .quick-link-card,
    .news-item,
    .course-card,
    .events-calendar,
    .quick-stats {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
    }
    
    .about-preview,
    .news-section,
    .courses-preview {
        background: var(--bg-color);
    }
    
    .section-header h2 {
        color: var(--text-color);
        background: linear-gradient(135deg, var(--text-color) 0%, #63b3ed 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .section-header p {
        color: var(--text-color);
    }

    .section-header::before {
        background: radial-gradient(circle, rgba(99, 179, 237, 0.1) 0%, transparent 70%);
    }
}

/* Academics Page Responsive Styles */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .philosophy-points {
        grid-template-columns: 1fr;
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .curriculum-structure {
        grid-template-columns: 1fr;
    }

    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 768px) {
    .academics-overview,
    .academic-programs,
    .departments-section,
    .curriculum-section,
    .research-section,
    .academic-achievements {
        padding: 3rem 0;
    }

    .overview-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .overview-description {
        padding: 2rem;
    }

    .overview-description h3 {
        font-size: 1.5rem;
    }

    .philosophy-point {
        padding: 1rem;
    }

    .philosophy-point i {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .tab-buttons {
        flex-direction: column;
        border-radius: 16px;
    }

    .tab-btn {
        min-width: auto;
        border-radius: 0;
    }

    .tab-btn:first-child {
        border-radius: 16px 16px 0 0;
    }

    .tab-btn:last-child {
        border-radius: 0 0 16px 16px;
    }

    .tab-panel {
        padding: 2rem 1rem;
        border-radius: 16px;
        border-top: none;
    }

    .programs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .program-card {
        padding: 1.5rem;
    }

    .program-header {
        flex-direction: column;
        text-align: center;
    }

    .program-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .program-info h3 {
        font-size: 1.1rem;
    }

    .program-features {
        justify-content: center;
    }

    .departments-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .department-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .department-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .department-info h3 {
        font-size: 1.2rem;
    }

    .department-content {
        padding: 1.5rem;
    }

    .department-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .curriculum-structure {
        grid-template-columns: 1fr;
    }

    .curriculum-year {
        padding: 1.5rem;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
    }

    .highlight-item {
        padding: 1.5rem;
    }

    .highlight-item i {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }

    .research-card {
        padding: 1.5rem;
    }

    .research-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .publication-item {
        flex-direction: column;
        gap: 1.5rem;
    }

    .publication-links {
        flex-direction: row;
        justify-content: center;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .achievement-card {
        padding: 1.5rem;
    }

    .achievement-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .academics-overview,
    .academic-programs,
    .departments-section,
    .curriculum-section,
    .research-section,
    .academic-achievements {
        padding: 2rem 0;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .overview-description {
        padding: 1.5rem;
    }

    .overview-description h3 {
        font-size: 1.3rem;
    }

    .overview-description p {
        font-size: 1rem;
    }

    .philosophy-point {
        padding: 0.75rem;
    }

    .philosophy-point h4 {
        font-size: 1rem;
    }

    .philosophy-point p {
        font-size: 0.875rem;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .tab-panel {
        padding: 1.5rem 1rem;
    }

    .program-card {
        padding: 1rem;
    }

    .program-header {
        gap: 1rem;
    }

    .program-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .program-info h3 {
        font-size: 1rem;
    }

    .program-duration {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }

    .program-features span {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .department-header {
        padding: 1rem;
    }

    .department-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .department-info h3 {
        font-size: 1.1rem;
    }

    .department-content {
        padding: 1rem;
    }

    .department-stats {
        gap: 0.75rem;
    }

    .stat {
        padding: 0.75rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .curriculum-year {
        padding: 1rem;
    }

    .curriculum-year h4 {
        font-size: 1.1rem;
    }

    .curriculum-year li {
        font-size: 0.9rem;
    }

    .highlight-item {
        padding: 1rem;
    }

    .highlight-item h4 {
        font-size: 1rem;
    }

    .highlight-item p {
        font-size: 0.9rem;
    }

    .research-card {
        padding: 1rem;
    }

    .research-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .research-card h4 {
        font-size: 1.1rem;
    }

    .publication-item {
        padding: 1rem;
    }

    .publication-info h4 {
        font-size: 1rem;
    }

    .publication-authors {
        font-size: 0.875rem;
    }

    .publication-journal {
        font-size: 0.8rem;
    }

    .achievement-card {
        padding: 1rem;
    }

    .achievement-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .achievement-card h3 {
        font-size: 1.1rem;
    }

    .achievement-card p {
        font-size: 0.9rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .overview-stats,
    .programs-grid,
    .departments-grid,
    .research-grid,
    .achievements-grid {
        gap: 1rem;
    }

    .stat-item,
    .program-card,
    .department-card,
    .research-card,
    .achievement-card {
        padding: 0.75rem;
    }

    .department-header {
        padding: 0.75rem;
    }

    .department-content {
        padding: 0.75rem;
    }

    .overview-description {
        padding: 1rem;
    }

    .tab-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .program-header {
        gap: 0.75rem;
    }

    .program-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .department-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .research-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .achievement-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .publication-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-small {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Dark Mode Support for Academics */
@media (prefers-color-scheme: dark) {
    .academics-overview,
    .departments-section,
    .research-section {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }

    .academic-programs,
    .curriculum-section,
    .academic-achievements {
        background: #1a202c;
    }

    .stat-item,
    .overview-description,
    .program-card,
    .department-card,
    .curriculum-year,
    .highlight-item,
    .research-card,
    .publication-item,
    .achievement-card {
        background: #2d3748;
        border-color: #4a5568;
    }

    .stat-item h3,
    .overview-description h3,
    .program-info h3,
    .department-info h3,
    .curriculum-overview h3,
    .curriculum-highlights h3,
    .research-areas h3,
    .publications h3,
    .achievement-card h3,
    .philosophy-point h4,
    .program-card h3,
    .research-card h4,
    .publication-info h4,
    .highlight-item h4 {
        color: #e2e8f0;
    }

    .stat-item p,
    .overview-description p,
    .program-card p,
    .department-info p,
    .curriculum-overview p,
    .research-card p,
    .publication-authors,
    .publication-journal,
    .achievement-card p,
    .philosophy-point p,
    .program-features span,
    .department-features li,
    .curriculum-year li,
    .highlight-item p,
    .research-count,
    .achievement-year,
    .program-duration,
    .stat-number,
    .stat-label {
        color: #a0aec0;
    }

    .philosophy-point h4,
    .program-features i,
    .department-features li::before,
    .curriculum-year li::before,
    .stat-number,
    .stat-label {
        color: #63b3ed;
    }

    .tab-buttons {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    }

    .tab-btn.active {
        background: #2d3748;
        color: #63b3ed;
    }

    .tab-panel {
        background: #2d3748;
        border-color: #4a5568;
    }

    .department-header {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    }

    .department-stats .stat {
        background: #1a202c;
    }

    .program-features span {
        background: rgba(99, 179, 237, 0.1);
        color: #63b3ed;
    }

    .program-features i {
        color: #68d391;
    }
}

/* High Contrast Mode for Academics */
@media (prefers-contrast: high) {
    .stat-item,
    .overview-description,
    .program-card,
    .department-card,
    .curriculum-year,
    .highlight-item,
    .research-card,
    .publication-item,
    .achievement-card {
        border: 3px solid #000;
    }

    .stat-item:hover,
    .overview-description:hover,
    .program-card:hover,
    .department-card:hover,
    .curriculum-year:hover,
    .highlight-item:hover,
    .research-card:hover,
    .publication-item:hover,
    .achievement-card:hover {
        border-color: #000;
        border-width: 4px;
    }

    .tab-btn {
        border: 2px solid #fff;
    }

    .tab-btn.active {
        border-color: #000;
        border-width: 3px;
    }

    .department-header {
        border: 3px solid #fff;
    }
}

/* Print Styles for Academics */
@media print {
    .academics-overview,
    .academic-programs,
    .departments-section,
    .curriculum-section,
    .research-section,
    .academic-achievements {
        padding: 1rem 0;
    }

    .stat-item,
    .overview-description,
    .program-card,
    .department-card,
    .curriculum-year,
    .highlight-item,
    .research-card,
    .publication-item,
    .achievement-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }

    .tab-buttons,
    .tab-panel {
        display: none;
    }

    .tab-panel.active {
        display: block;
        border: 1px solid #000;
        border-radius: 0;
    }

    .program-features,
    .department-features,
    .publication-links {
        display: none;
    }

    .department-header {
        background: #f0f0f0;
        color: #000;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }

    .hero-nav-btn,
    .indicator,
    .btn,
    .quick-link-card,
    .news-item,
    .course-card,
    .stat-item,
    .overview-description,
    .program-card,
    .department-card,
    .curriculum-year,
    .highlight-item,
    .research-card,
    .publication-item,
    .achievement-card,
    .philosophy-point {
        transition: none;
    }

    .hero-nav-btn:hover,
    .btn:hover,
    .quick-link-card:hover,
    .news-item:hover,
    .course-card:hover,
    .stat-item:hover,
    .overview-description:hover,
    .program-card:hover,
    .department-card:hover,
    .curriculum-year:hover,
    .highlight-item:hover,
    .research-card:hover,
    .publication-item:hover,
    .achievement-card:hover,
    .philosophy-point:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .btn-secondary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .nav-link {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .quick-link-card,
    .news-item,
    .course-card {
        border: 2px solid #000;
    }
}

/* Focus improvements for keyboard navigation */
.nav-link:focus,
.btn:focus,
.search-btn:focus,
.hero-nav-btn:focus,
.indicator:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover,
    .btn:hover,
    .quick-link-card:hover,
    .news-item:hover,
    .course-card:hover {
        transform: none;
    }

    .search-container:hover .search-box {
        opacity: 0;
        visibility: hidden;
    }

    .search-container.active .search-box {
        opacity: 1;
        visibility: visible;
    }
}

/* Student Corner Responsive Styles */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .portal-grid,
    .exams-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .course-content {
        gap: 3rem;
    }

    .course-features {
        grid-template-columns: 1fr;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .student-portal,
    .bridge-course,
    .competitive-exams,
    .study-materials,
    .academic-calendar,
    .student-services,
    .important-notices {
        padding: 3rem 0;
    }

    .portal-grid,
    .exams-grid,
    .materials-grid,
    .services-grid,
    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .course-registration {
        position: static;
    }

    .tab-buttons {
        flex-direction: column;
        border-radius: 16px;
    }

    .tab-btn {
        min-width: auto;
        border-radius: 0;
    }

    .tab-btn:first-child {
        border-radius: 16px 16px 0 0;
    }

    .tab-btn:last-child {
        border-radius: 0 0 16px 16px;
    }

    .tab-panel {
        padding: 2rem 1rem;
        border-radius: 16px;
        border-top: none;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .exam-header {
        flex-direction: column;
        text-align: center;
    }

    .material-card {
        flex-direction: column;
        text-align: center;
    }

    .calendar-legend {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .exam-features {
        justify-content: center;
    }

    .material-meta {
        justify-content: center;
    }

    .portal-card,
    .exam-card,
    .material-card,
    .service-card,
    .notice-item {
        padding: 1.5rem;
    }

    .notice-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .notice-content {
        padding: 0 1.5rem 1.5rem;
    }

    .course-features,
    .feature-item {
        padding: 1rem;
    }

    .schedule-item {
        padding: 1rem;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .student-portal,
    .bridge-course,
    .competitive-exams,
    .study-materials,
    .academic-calendar,
    .student-services,
    .important-notices {
        padding: 2rem 0;
    }

    .portal-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .exam-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .material-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .notice-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .portal-card h3 {
        font-size: 1.1rem;
    }

    .exam-card h3 {
        font-size: 1.1rem;
    }

    .material-info h4 {
        font-size: 1rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .notice-info h4 {
        font-size: 1.1rem;
    }

    .course-info h3 {
        font-size: 1.5rem;
    }

    .enrollment-info h3 {
        font-size: 1.1rem;
    }

    .course-schedule h3 {
        font-size: 1.2rem;
    }

    .registration-card h3 {
        font-size: 1.2rem;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .tab-panel {
        padding: 1.5rem 1rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .feature-item {
        padding: 1rem;
    }

    .feature-item h4 {
        font-size: 1rem;
    }

    .feature-item p {
        font-size: 0.875rem;
    }

    .schedule-item {
        padding: 1rem;
    }

    .schedule-day {
        font-size: 0.9rem;
    }

    .schedule-time {
        font-size: 1rem;
    }

    .schedule-subject {
        font-size: 0.875rem;
    }

    .exam-features span {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .material-meta {
        font-size: 0.8rem;
    }

    .service-features li {
        font-size: 0.9rem;
    }

    .notice-content p {
        font-size: 0.9rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .portal-grid,
    .exams-grid,
    .materials-grid,
    .services-grid,
    .calendar-grid {
        gap: 1rem;
    }

    .portal-card,
    .exam-card,
    .material-card,
    .service-card,
    .notice-item {
        padding: 1rem;
    }

    .notice-header {
        padding: 1rem 1rem 0.75rem;
    }

    .notice-content {
        padding: 0 1rem 1rem;
    }

    .tab-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .form-group label {
        font-size: 0.875rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .checkbox-label {
        font-size: 0.875rem;
    }
}

/* Dark Mode Support for Student Corner */
@media (prefers-color-scheme: dark) {
    .student-portal,
    .competitive-exams,
    .academic-calendar,
    .important-notices {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }

    .bridge-course,
    .study-materials,
    .student-services {
        background: #1a202c;
    }

    .portal-card,
    .exam-card,
    .material-card,
    .service-card,
    .notice-item,
    .calendar-item,
    .registration-card {
        background: #2d3748;
        border-color: #4a5568;
    }

    .portal-card h3,
    .exam-card h3,
    .material-info h4,
    .service-card h3,
    .notice-info h4,
    .calendar-event,
    .course-info h3,
    .enrollment-info h3,
    .course-schedule h3,
    .registration-card h3 {
        color: #e2e8f0;
    }

    .portal-card p,
    .exam-content p,
    .material-info p,
    .service-card p,
    .notice-content p,
    .course-info p,
    .feature-item p,
    .schedule-subject,
    .numbered-list li,
    .service-features li,
    .checkbox-label {
        color: #a0aec0;
    }

    .feature-item h4,
    .schedule-day,
    .schedule-time,
    .calendar-date,
    .notice-date {
        color: #63b3ed;
    }

    .feature-item {
        background: #2d3748;
        border-color: #4a5568;
    }

    .schedule-item {
        background: #2d3748;
        border-color: #4a5568;
    }

    .material-card {
        background: #2d3748;
    }

    .tab-buttons {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    }

    .tab-btn.active {
        background: #2d3748;
        color: #63b3ed;
    }

    .tab-panel {
        background: #2d3748;
        border-color: #4a5568;
    }

    .form-group input,
    .form-group select {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .form-group input:focus,
    .form-group select:focus {
        border-color: #63b3ed;
        box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.1);
    }

    .checkmark {
        background: #2d3748;
        border-color: #4a5568;
    }

    .checkbox-label input:checked + .checkmark {
        background: #63b3ed;
        border-color: #63b3ed;
    }
}

/* High Contrast Mode for Student Corner */
@media (prefers-contrast: high) {
    .portal-card,
    .exam-card,
    .material-card,
    .service-card,
    .notice-item,
    .calendar-item,
    .registration-card {
        border: 3px solid #000;
    }

    .portal-card:hover,
    .exam-card:hover,
    .material-card:hover,
    .service-card:hover,
    .notice-item:hover,
    .calendar-item:hover {
        border-color: #000;
        border-width: 4px;
    }

    .tab-btn {
        border: 2px solid #fff;
    }

    .tab-btn.active {
        border-color: #000;
        border-width: 3px;
    }

    .form-group input,
    .form-group select {
        border: 3px solid #000;
    }

    .form-group input:focus,
    .form-group select:focus {
        border-color: #000;
        border-width: 4px;
    }
}

/* Print Styles for Student Corner */
@media print {
    .student-portal,
    .bridge-course,
    .competitive-exams,
    .study-materials,
    .academic-calendar,
    .student-services,
    .important-notices {
        padding: 1rem 0;
    }

    .portal-card,
    .exam-card,
    .material-card,
    .service-card,
    .notice-item,
    .calendar-item,
    .registration-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }

    .tab-buttons,
    .tab-panel {
        display: none;
    }

    .tab-panel.active {
        display: block;
        border: 1px solid #000;
        border-radius: 0;
    }

    .form-row,
    .form-actions {
        display: none;
    }

    .portal-arrow,
    .exam-features,
    .material-meta {
        display: none;
    }
}

/* Reduced Motion Support for Student Corner */
@media (prefers-reduced-motion: reduce) {
    .portal-card,
    .exam-card,
    .material-card,
    .service-card,
    .notice-item,
    .calendar-item,
    .registration-card,
    .feature-item,
    .schedule-item {
        transition: none;
    }

    .portal-card:hover,
    .exam-card:hover,
    .material-card:hover,
    .service-card:hover,
    .notice-item:hover,
    .calendar-item:hover,
    .feature-item:hover,
    .schedule-item:hover {
        transform: none;
    }
}

/* DEBUG: Force mobile menu visibility for testing */
@media (max-width: 768px) {
        .mobile-menu-btn {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: 108px !important;
        right: 8px !important;
        z-index: 10000 !important;
        background: red !important;
        color: white !important;
        padding: 5px !important;
        border: 2px solid white !important;
        border-radius: 4px !important;
        font-size: 8px !important;
        min-width: 35px !important;
        min-height: 35px !important;
    }
    
    /* Also debug the mobile menu positioning */
    .nav-menu {
        position: fixed !important;
        top: 80px !important;
        left: 0 !important;
        right: 0 !important;
        background: #667eea !important;
        z-index: 9999 !important;
        max-height: 0 !important;
        overflow: hidden !important;
    }
    
    .nav-menu.active {
        max-height: 400px !important;
    }
}

/* Achievements Section Responsive Styles */

/* Tablets */
@media (max-width: 768px) {
    .achievements-section {
        padding: 3rem 0;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .achievement-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .achievement-icon {
        align-self: center;
    }
    
    .achievements-timeline {
        padding: 2rem;
    }
    
    .timeline {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .timeline::before {
        top: 30px;
    }

    .timeline-item {
        min-width: 120px;
    }

    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 0.75rem;
    }

    .timeline-content {
        padding: 0.75rem;
    }

    .timeline-content h4 {
        font-size: 0.8rem;
    }

    .timeline-content p {
        font-size: 0.7rem;
    }
}

/* Mobile Phones */
@media (max-width: 576px) {
    .achievements-section {
        padding: 2rem 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .achievement-item {
        padding: 1rem;
    }
    
    .achievement-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .achievement-content h3 {
        font-size: 1.1rem;
    }
    
    .achievement-content p {
        font-size: 0.9rem;
    }
    
    .achievements-timeline {
        padding: 1.5rem;
    }
    
    .achievements-timeline h3 {
        font-size: 1.5rem;
    }
    
    .timeline {
        gap: 0.5rem;
    }

    .timeline-item {
        min-width: 100px;
    }

    .timeline-year {
        width: 45px;
        height: 45px;
        font-size: 0.7rem;
    }

    .timeline-content {
        padding: 0.5rem;
    }

    .timeline-content h4 {
        font-size: 0.75rem;
    }

    .timeline-content p {
        font-size: 0.65rem;
    }
}