:root {
        --background: #282a36;
        --current-line: #44475a;
        --foreground: #f8f8f2;
        --comment: #6272a4;
        --cyan: #8be9fd;
        --green: #50fa7b;
        --orange: #ffb86c;
        --pink: #ff79c6;
        --purple: #bd93f9;
        --red: #ff5555;
        --yellow: #f1fa8c;
    }

    html {
        scroll-padding-top: 90px;
    }

    body {
        font-family: 'Lato', sans-serif;
        font-weight: 400;
        color: var(--foreground);
        margin: 0;
        padding: 0;
        background-color: var(--background);
        overflow-x: hidden;
    }

    body::before {
        content: '';
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: url('images/aboutuniversity.jpg') no-repeat center center;
        background-size: cover;
        z-index: -1;
        transform: scale(var(--bg-zoom-scale, 1));
        transition: transform 0.1s linear;
    }
    
    @keyframes gradientBG {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }
    
    iframe {
        max-width: 100%;
    }

    h1, h2, h3, .admission-button {
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
    }

    h1, h2 {
        color: var(--purple);
        padding-bottom: 10px;
        margin-bottom: 2rem;
        margin-top: 2rem;
    }

    h1 {
       font-size: 3.5rem;
       color: var(--cyan);
       border: none;
       margin-top: 0;
    }
    
    h2 > i {
        margin-right: 0.8rem;
        color: var(--cyan);
        font-size: 0.9em;
        vertical-align: middle;
    }

    header {
        position: sticky;
        top: 0;
        z-index: 100;
        height: 90px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .nav-toggle {
        display: none;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 1rem;
        z-index: 1001;
    }

    .nav-toggle i {
        color: var(--foreground);
        font-size: 1.75rem;
    }

    nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        background-color: rgba(40, 42, 54, 0.5);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(248, 248, 242, 0.1);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
        border-radius: 50px;
        padding: 0.75rem 2rem;
        transition: transform 0.3s ease-in-out;
    }

    nav a {
        color: var(--foreground);
        text-decoration: none;
        font-weight: 500;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    }

    nav a:hover, nav a.active {
        background-color: var(--purple);
        color: var(--background);
    }

    .glass-box {
        background-color: rgba(40, 42, 54, 0.5);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border-radius: 16px;
        border: 1px solid rgba(248, 248, 242, 0.1);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
        padding: 2.5rem 3.5rem;
        width: 80%;
        max-width: 1000px;
        text-align: left;
    }

    .full-page-section {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 4rem 2rem;
        box-sizing: border-box;
        min-height: 100vh;
    }
    
    .animate-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .show {
        opacity: 1;
        transform: translateY(0);
    }

    .admission-button {
        color: var(--foreground);
        text-decoration: none;
        font-weight: 500;
        padding: 0.7rem 1.5rem;
        border-radius: 50px;
        transition: all 0.3s ease-out;
        display: inline-block;
        border: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        background-image: linear-gradient(45deg, var(--purple) 0%, var(--pink) 100%);
        background-size: 200% auto;
    }

    .admission-button:hover {
        background-position: right center;
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    .styled-table {
        width: 100%;
        border-collapse: collapse;
        margin: 2rem 0;
        font-size: 0.95em;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }

    .styled-table th, .styled-table td {
        padding: 14px 18px;
        border: none;
    }

    .styled-table th {
        background-color: var(--purple);
        color: var(--background);
        font-weight: 500;
        text-align: left;
    }

    .styled-table tbody tr {
        border-bottom: 1px solid var(--current-line);
    }

    .styled-table tbody tr:nth-of-type(even) {
        background-color: rgba(68, 71, 90, 0.5);
    }

    .styled-table tbody tr:last-of-type {
        border-bottom: none;
    }
    
    .info-block-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .info-block {
        background-color: var(--current-line);
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        margin-bottom: 0;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        position: relative;
        border-left: 5px solid transparent;
        background: linear-gradient(var(--current-line), var(--current-line)) padding-box,
                    linear-gradient(to bottom, var(--cyan), var(--green), var(--pink), var(--purple)) border-box;
        display: flex;
        flex-direction: column;
    }

    .info-block:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    }

    .info-block h3 { color: var(--green); font-size: 1.25rem; margin-bottom: 0.5rem; }
    .info-block p { line-height: 1.5; margin-bottom: 1rem; color: var(--foreground); font-size: 0.95rem; flex-grow: 1;}
    
    /* --- STYLES FOR SOCIAL BUTTONS --- */
    .card-actions {
        display: flex;
        justify-content: flex-end; /* Pushes icon to the right */
        align-items: center;
        margin-top: auto; /* Pushes to the bottom */
        padding-top: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .club-socials {
        display: flex;
        gap: 0.75rem;
    }

    .social-btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        color: var(--background); /* Changed for contrast */
        text-decoration: none;
        font-size: 1rem;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .social-btn:hover {
        transform: scale(1.15) translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .social-btn.instagram { background: linear-gradient(45deg, var(--pink), var(--orange)); }
    /* --- END OF SOCIAL BUTTON STYLES --- */
    
    /* --- STYLES FOR NIRF PLACEMENT CHART --- */
    .chart-container {
        position: relative;
        margin: 2rem auto;
        height: 60vh;
        width: 100%;
        max-height: 500px;
    }
    
    .chart-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .chart-controls button {
        font-family: 'Poppins', sans-serif;
        font-weight: 500;
        background-color: var(--current-line);
        color: var(--foreground);
        border: 1px solid var(--comment);
        padding: 0.6rem 1.5rem;
        border-radius: 50px;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
    }

    .chart-controls button:hover {
        background-color: var(--comment);
        transform: translateY(-2px);
    }
    
    .chart-controls button.active-btn {
        background-color: var(--purple);
        color: var(--background);
        border-color: var(--purple);
        box-shadow: 0 2px 10px rgba(189, 147, 249, 0.3);
    }
    .source-note {
        text-align: center;
        margin-top: 1.5rem;
        font-size: 0.85em;
        color: var(--comment);
    }
    /* --- END OF NIRF PLACEMENT CHART STYLES --- */
    
    footer { 
        background-color: #11131a; 
        color: #ffffff; 
        padding: 3rem 1.5rem; 
        text-align: center; 
    }
    .footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; max-width: 1200px; margin: 0 auto; }
    .footer-section { flex: 1; min-width: 220px; margin-bottom: 1.5rem; text-align: left; }
    .footer-section h3 { color: #ffffff; margin-bottom: 1rem; font-size: 1.1rem; letter-spacing: 0.5px; padding-bottom: 0;}
    .footer-section p { font-size: 0.95rem; line-height: 1.7; color: #d8d8e2; }
    .footer-section ul { list-style: none; padding: 0; }
    .footer-section ul li { margin-bottom: 0.5rem; }
    .footer-section ul li a, .footer-section .social a { 
        color: #c3cffc; 
        text-decoration: none; 
        transition: color 0.2s ease; 
    }
    .footer-section ul li a:hover, .footer-section .social a:hover { color: #ffffff; }
    .footer-section .social a { display: inline-block; margin: 0 0.5rem; font-size: 1rem; }
    .footer-bottom { margin-top: 2rem; padding-top: 1rem; font-size: 0.85rem; color: #a0a2b1; }
    
    .visitor-counter {
        margin-top: 1rem;
        max-width: 100%;
        overflow-x: auto;
        text-align: center;
    }

    .card-socials { 
        display: flex; 
        gap: 1.25rem; 
        align-items: center; 
        flex-wrap: wrap;
    }
    .social-icon { 
        color: var(--background); 
        background-color: var(--cyan); 
        width: 40px; 
        height: 40px; 
        border-radius: 50%; 
        text-decoration: none; 
        display: flex; 
        justify-content: center; 
        align-items: center; 
        font-size: 1.2rem; 
        transition: background-color 0.3s ease, transform 0.3s ease; 
        position: relative;
    }
    .social-icon::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        border-radius: 50%;
        padding: 2px;
        background: linear-gradient(45deg, var(--cyan), var(--purple), var(--green), var(--pink));
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }
    .social-icon:hover { background-color: var(--green); transform: translateY(-3px) scale(1.05); }

    /* --- Loading Overlay Styles --- */
    #loader-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--background);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        transition: opacity 0.5s ease-out;
        pointer-events: none;
    }

    .loader-spinner {
        width: 60px;
        height: 60px;
        border: 5px solid var(--current-line);
        border-top-color: var(--purple);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    @media (max-width: 768px) {
        body {
            background-attachment: scroll;
        }
        html, body {
            overflow-x: hidden;
        }
        header {
            justify-content: flex-end;
            padding: 0 1rem;
        }

        .nav-toggle {
            display: block;
        }

        nav {
            position: fixed;
            inset: 0 0 0 30%;
            flex-direction: column;
            padding: min(20vh, 10rem) 2rem;
            gap: 2rem;
            transform: translateX(100%);
            border-radius: 0;
            background-color: rgba(40, 42, 54, 0.9);
            backdrop-filter: blur(1rem);
        }
        
        nav[data-visible="true"] {
            transform: translateX(0%);
        }

        .info-block-grid {
            grid-template-columns: 1fr;
        }

        .full-page-section {
            padding: 4rem 1rem;
            min-height: auto;
        }

        .glass-box {
            width: 100%;
            padding: 1.5rem;
        }

        h1 {
            font-size: 2.25rem;
        }
        h2 {
            font-size: 1.5rem;
        }
    }