/* --- Design System & Base Varibles --- */
:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --accent: #d4af37;
    --accent-dark: #b8860b;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, .section-title {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.container-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.centered { text-align: center; }
.light-bg { background-color: var(--bg-white); }
.accent-bg { background-color: var(--primary); color: white; }
.white-text { color: white; }
.op-80 { opacity: 0.8; }

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
}

.section-title.centered::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto 0;
}

/* --- Main Header --- */
.main-header {
    background-color: var(--bg-white);
    padding: 5px 0;
    border-bottom: 1px solid #e2e8f0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5px 20px;
    display: grid;
    grid-template-columns: 1.2fr 2fr 1.2fr;
    align-items: center;
    gap: 15px;
}

.logo-left {
    display: flex;
    justify-content: flex-start;
}

.college-logo, .naac-logo, .excellence-logo {
    height: 85px;
    width: auto;
    object-fit: contain;
}

.college-info {
    text-align: center;
}

.college-info h1 {
    font-size: 1.85rem;
    letter-spacing: 1px;
    margin-bottom: 0px;
    line-height: 1.2;
}

.institution-detail {
    font-size: 0.95rem;
    color: #e53e3e;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.ugc-detail {
    font-size: 0.78rem;
    color: #2c5282;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.address-detail {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

.logos-right {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
    min-width: 180px;
}

.logos-right img, .logos-mobile-row img {
    display: inline-block !important;
}

.naac-logo, .excellence-logo {
    height: 85px;
    width: auto;
}

/* --- Navigation Bar --- */
.sticky-nav {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    height: 100%;
    gap: 0;
    justify-content: center;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links li a {
    color: white;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    gap: 5px;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-links li a i { width: 14px; height: 14px; }

.nav-links li a:hover,
.nav-links li a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
}

/* --- Hero Slider --- */
.hero-section {
    padding: 0;
    height: calc(100vh - var(--nav-height) - 110px);
    overflow: hidden;
    position: relative;
    background: #000;
}

.slider {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 8s linear;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 20px;
    z-index: 2;
}

.slide-content h2 {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 30px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    transform: translateY(-50%);
    z-index: 10;
}

.control-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--accent);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 10px;
}

/* --- Buttons --- */
.cta-button {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.primary { background: var(--accent); color: var(--primary); }
.primary:hover { background: var(--accent-dark); transform: translateY(-3px); }

.gold { background: var(--accent); color: var(--primary); }
.gold:hover { background: white; }

.primary-white { background: white; color: var(--primary); }
.primary-white:hover { transform: scale(1.05); }

.outline-white { border: 2px solid white; color: white; background: transparent; }
.outline-white:hover { background: white; color: var(--primary); }

/* --- Vision & Mission --- */
.vision-mission-section {
    background: var(--bg-white);
}

.vision-content, .principal-content {
    flex: 1;
    min-width: 300px;
    display: flex;
}

.vision-card, .principal-card {
    background: var(--bg-light);
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.vision-card {
    padding: 30px;
}

.vision-card .section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.vision-block, .mission-block {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    border-left: 5px solid var(--accent);
    flex: 1;
}

.vision-block h3, .mission-block h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.image-wrapper {
    height: 260px;
    overflow: hidden;
}

.principal-card {
    background: var(--primary);
    color: white;
}

.principal-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--transition);
}

.principal-card:hover .principal-photo {
    transform: scale(1.05);
}

.principal-info {
    padding: 30px;
    text-align: center;
}

.principal-role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.principal-quote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- Courses Grid --- */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.course-card:hover {
    transform: translateY(-10px);
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.course-icon {
    width: 70px;
    height: 70px;
    background: var(--accent);
    color: var(--primary);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
}

.course-card h3 {
    margin-bottom: 15px;
    color: inherit;
}

.course-card:hover h3 { color: white; }

.text-button {
    margin-top: 20px;
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

/* --- Admissions Section --- */
.admissions-section {
    position: relative;
    overflow: hidden;
}

.sub-heading {
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 2px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.admissions-text {
    flex: 1.5;
}

.info-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}

.badge {
    background: rgba(255,255,255,0.1);
    padding: 8px 18px;
    border-radius: 5px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

.brochure-link {
    color: white;
    text-decoration: underline;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.admissions-card {
    flex: 1;
}

.glass-info {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.2);
}

.check-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-icon { color: var(--accent); }

/* --- Faculty Section --- */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.faculty-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.faculty-img-container {
    height: 300px;
    overflow: hidden;
}

.faculty-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faculty-info {
    padding: 25px;
}

.designation {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* --- Infrastructure --- */
.infra-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
}

.infra-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.infra-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.infra-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,54,93,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.infra-item:hover .infra-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(26,54,93,1), rgba(26,54,93,0.3));
}

.infra-item:hover img { transform: scale(1.1); }

/* --- Events & News --- */
.events-main { flex: 2; }
.news-sidebar { flex: 1; }

.event-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    gap: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.event-card:hover { box-shadow: var(--shadow-md); }

.date-badge {
    background: var(--primary);
    color: white;
    min-width: 70px;
    height: 70px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
}

.date-badge span {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 500;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.side-title {
    margin-bottom: 25px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 5px;
}

.highlight-list li {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    display: flex;
    gap: 15px;
    border-left: 4px solid var(--primary);
}

/* --- Testimonials --- */
.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0.3;
}

.testimonial-content p {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 30px;
}

.alumni-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.alumni-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.alumni-titles h4 { margin-bottom: 2px; }
.alumni-titles span { color: var(--text-muted); font-size: 0.9rem; }

/* --- CTA Banner --- */
.cta-banner {
    background: linear-gradient(135deg, var(--primary), #1e4b8a);
    color: white;
    padding: 80px 0;
}

.cta-banner h2 { color: white; font-size: 2.5rem; margin-bottom: 15px; }

.cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Footer Corrected --- */
.main-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 100px 0 0;
    position: relative;
    border-top: 4px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-brand h3 { 
    color: white; 
    font-size: 1.6rem; 
    margin: 0;
    letter-spacing: 1px;
}

.footer-sub {
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.footer-logo { 
    height: 70px; 
    border-radius: 8px;
    padding: 5px;
    background: white;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col h3 {
    color: white;
    margin-bottom: 30px;
    font-size: 1.25rem;
    position: relative;
    font-family: 'Outfit', sans-serif;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 35px;
    height: 3px;
    background: var(--accent);
}

.col-links ul li { margin-bottom: 15px; }
.col-links ul li a {
    position: relative;
    display: inline-block;
    transition: var(--transition);
}

.col-links ul li a:hover { 
    color: var(--accent); 
    padding-left: 8px;
}

.contact-list li {
    margin-bottom: 18px;
    display: flex;
    gap: 12px;
}

.contact-list li i {
    color: var(--accent);
    flex-shrink: 0;
    width: 20px;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    height: 180px;
    border: 2px solid rgba(255,255,255,0.05);
}

.social-links { margin-top: 30px; }

.footer-bottom {
    background: #020617;
    padding: 30px 0;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #64748b;
}

.developer-credit {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.dev-name {
    color: var(--accent);
}

.footer-badges { gap: 25px; }
.footer-badges img { 
    height: 45px; 
    filter: brightness(0) invert(1); 
    opacity: 0.6;
    transition: var(--transition);
}

.footer-badges img:hover { opacity: 1; filter: none; }

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .desktop-only { display: none; }
    .logos-mobile-row {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        width: 100%;
        margin-bottom: 15px;
    }
    .logos-mobile-row .college-logo, 
    .logos-mobile-row .naac-logo, 
    .logos-mobile-row .excellence-logo { 
        height: 60px; 
    }

    .header-container { flex-direction: column; text-align: center; gap: 10px; }
    .logos-right { order: -1; }
    .slide-content h2 { font-size: 2.8rem; }
    .infra-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        height: auto;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.active { display: flex; }
    .nav-links li a { padding: 20px; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); }
    
    .hero-section { height: 500px; }
    .slide-content h2 { font-size: 2rem; }
    .slide-content p { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }
    
    .cta-row { flex-direction: column; gap: 15px; align-items: flex-start; }
    .cta-buttons { flex-direction: column; }
    
    .footer-bottom-flex { flex-direction: column; text-align: center; gap: 10px; }
}

/* Footer Bottom Center */
.footer-bottom-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 0 20px;
}

/* Desktop Only / Mobile Only Helpers */
.logos-mobile-row { display: none; }
.desktop-only { display: block; }

.card-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
