@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Merriweather:ital,wght@0,300;0,400;0,700;1,400&display=swap');

:root {
    --primary-gold: #bfa15f;
    /* Classic University Gold */
    --primary-gold-light: #d4b775;
    /* Lighter Gold */
    --bg-dark: #ffffff;
    /* White Background */
    --bg-card: #f8fafc;
    /* Light Card Background */
    --text-heading: #0f172a;
    /* Soft Black for Headings */
    --text-body: #334155;
    /* Slate Grey for Text */
    --border-color: #cbd5e1;
    /* Grey Border */
    --danger: #ef4444;
    /* Red */
    --deep-blue: #002147;
    /* Oxford/Yale Blue */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.serif {
    font-family: 'Merriweather', serif;
    color: var(--text-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--deep-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold);
}


/* --- Top Bar (Classic Style) --- */
.top-bar {
    background: var(--deep-blue);
    border-bottom: 3px solid var(--primary-gold);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 500;
}

.top-links {
    display: flex;
    gap: 1.5rem;
}

.top-links a {
    color: #e2e8f0;
}

.top-links a:hover {
    color: var(--primary-gold);
}


/* --- Header (University Layout) --- */
.main-header {
    background: #fff;
    position: relative;
    z-index: 1000;
}

/* Part 2: Branding Row */
.branding-row {
    background: #ffffff;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    /* Spread out logo and utility/social */
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    /* Saffron Line */
    position: relative;
    box-shadow: none;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--deep-blue);
    /* Deep Blue Headings */
}

.logo-image {
    height: 95px;
    /* Slightly larger logo */
    width: auto;
    filter: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.logo-text span {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--deep-blue);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Branding Social Icons */
.social-branding {
    position: static;
    /* Let it sit naturally in flex container */
    transform: none;
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    /* Saffron Border */
    border-radius: 4px;
    /* Circle icons for university look */
    color: var(--deep-blue);
    transition: 0.3s;
    background: #000000;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    background: var(--deep-blue);
    color: #fff;
    border-color: var(--deep-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Part 3: Navigation Row */
/* Part 3: Navigation Row */
.nav-row {
    background: var(--deep-blue);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 0;
    z-index: 1001;
    border-bottom: 3px solid var(--primary-gold);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 55px;
}

.main-menu {
    display: flex;
    gap: 3rem;
    height: 100%;
    align-items: center;
}

.main-menu a {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    /* White Text */
    text-transform: uppercase;
    letter-spacing: 0.6px;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0;
    border: none;
    position: relative;
    transition: color 0.2s;
}

/* Hover Effect Underline */
.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary-gold);
    transition: width 0.3s;
}

.main-menu a:hover {
    color: var(--primary-gold);
    background: transparent;
}

.main-menu a:hover::after {
    width: 100%;
}

.main-menu a:first-child {
    border-left: none;
}

/* PRC Home Button Style (Integrated) */
.btn-prc-home {
    background-color: var(--deep-blue) !important;
    color: #fff !important;
    padding: 0.5rem 1rem !important;
    border-radius: 4px !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: none;
    height: auto !important;
    display: inline-flex !important;
    align-items: center;
    border-right: none !important;
    margin-right: 1rem;
}

.btn-prc-home:hover {
    background-color: var(--primary-gold) !important;
    color: var(--deep-blue) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

.btn-prc-home::after {
    display: none;
    /* No underline for button */
}

/* Header Actions (Single Login) */
.header-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}


.btn-login.solid {
    background: #0f172a;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login.solid:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- Hero (BHU Style with Slideshow) --- */
.hero {
    height: 60vh;
    min-height: 450px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Slideshow Background */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Dark Overlay for Readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9));
    z-index: 2;
}

/* --- Hero Content --- */
.hero-inner {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: 'Merriweather', serif;
    /* Ensure Serif font */
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: #e2e8f0;
}

/* Proper Hero CTA Button */
.btn-hero-cta {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--primary-gold);
    color: var(--deep-blue);
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.btn-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #fff;
    color: var(--deep-blue);
}

/* --- News Ticker --- */
.news-ticker {
    background: var(--deep-blue);
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 45px;
    font-weight: 600;
    border-top: 4px solid var(--primary-gold);
}

.ticker-label {
    background: var(--primary-gold);
    color: var(--deep-blue);
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-size: 0.9rem;
    z-index: 10;
}

.ticker-content {
    white-space: nowrap;
    animation: ticker 40s linear infinite;
    padding-left: 2rem;
    display: flex;
    align-items: center;
}

.ticker-item {
    margin-right: 4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- About Us Section --- */
.about-section {
    background: #ffffff;
    padding: 5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.about-grid {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 400px;
    background: url('Images/notfound.jpg') center/cover;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--deep-blue);
    font-family: 'Merriweather', serif;
    border-bottom: 2px solid var(--primary-gold);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-body);
    text-align: justify;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 0.2rem;
    font-weight: 800;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-body);
}


/* --- Main Content (Cards Section) --- */
.content-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-heading {
    margin-bottom: 3rem;
    border-left: 5px solid var(--primary-gold);
    padding-left: 1.5rem;
}

.section-heading h2 {
    font-size: 2.2rem;
    color: var(--deep-blue);
}

.section-heading p {
    font-size: 1.1rem;
    color: var(--text-body);
    margin-top: 0.5rem;
}

/* --- Grid & Cards (Preserved) --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-gold);
    border-radius: 4px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-top-color: var(--deep-blue);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--deep-blue);
    font-family: 'Merriweather', serif;
}

.card-desc {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-body);
}

.card-link-action {
    margin-top: auto;
    font-weight: 600;
    color: var(--primary-gold);
    font-size: 0.95rem;
    text-transform: uppercase;
}

.card-link-action:hover {
    color: var(--deep-blue);
    text-decoration: underline;
}

.direct-card {
    display: block;
    height: 100%;
}

/* --- Accordion Styles (Preserved) --- */
.card-list li {
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.5rem;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.accordion-header:hover {
    background: #f1f5f9;
    color: var(--deep-blue);
}

.accordion-header.active {
    background: #fff;
    color: var(--deep-blue);
    border-left: 4px solid var(--primary-gold);
    border-color: var(--primary-gold);
}

.accordion-header .icon {
    transition: transform 0.3s;
    font-size: 1.2rem;
}

.accordion-header.active .icon {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background: #fff;
}

.accordion-body {
    padding: 1.2rem;
    font-size: 0.95rem;
    color: var(--text-body);
    border: 1px solid var(--border-color);
    border-top: none;
}

.visit-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.visit-link:hover {
    text-decoration: underline;
    color: #A04000;
}

/* --- Vision & VC Section --- */
.vision-section {
    background: #ffffff;
    padding: 5rem 2rem;
    border-top: 1px solid var(--border-color);
}

.vision-grid {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.vision-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-heading);
}

.vision-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-body);
}

.vc-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.vc-avatar {
    width: 120px;
    height: 120px;
    background: #e2e8f0;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    border: 2px solid var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #64748b;
}

/* --- Footer (Updated) --- */
footer {
    background: #1e293b;
    border-top: 3px solid var(--primary-gold);
    padding: 4rem 2rem 2rem 2rem;
    color: var(--text-body);
}

.footer-main-heading {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.footer-main-heading h2 {
    font-size: 1.8rem;
    color: var(--primary-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h1 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-family: 'Merriweather', serif;
}

.footer-section h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-gold);
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.footer-section p {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #fff;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    background: var(--primary-gold);
    color: #000;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 4rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Hamburger Menu (Default Hidden) --- */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger Animation State */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1024px) {

    .vision-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-image {
        margin-bottom: 2rem;
    }
}

@media (max-width: 1440px) {
    /* --- Laptop/Tablet: Hamburger Menu Enabled --- */

    .nav-container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        height: auto;
        padding: 0.8rem 1rem;
        gap: 0;
    }

    .hamburger-menu {
        display: flex;
        /* Show Hamburger */
        margin-right: auto;
    }

    .main-menu {
        display: none;
        /* Hide default menu */
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: 1rem;
        background: var(--deep-blue);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        order: 3;
    }

    .main-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .main-menu a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        height: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .main-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--primary-gold);
    }

    .header-actions {
        margin-left: 0;
        order: 2;
    }
}

@media (max-width: 768px) {
    /* --- Mobile: Stacked Layout --- */

    .top-bar {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0.8rem 1rem;
    }

    .branding-row {
        flex-direction: column-reverse;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .social-branding {
        position: static;
        transform: none;
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 0.5rem;
    }

    .logo {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .logo-text {
        align-items: center;
        text-align: center;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: auto;
        min-height: 50vh;
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }

    .footer-container {
        text-align: center;
    }

    .footer-section h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }
}

/* --- Leadership Team Grid --- */
.leadership-section {
    background: #ffffff;
    /* Light Background */
    padding: 5rem 2rem;
    border-top: 1px solid var(--border-color);
}

.leadership-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.leadership-heading h3 {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.leadership-heading p {
    color: var(--text-body);
    max-width: 700px;
    margin: 0 auto;
}

.leadership-grid {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.team-card {
    background: #f8fafc;
    /* Light Card Background */
    border: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
}

.team-avatar {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 0 0 1.5rem 0;
    border: 3px solid var(--primary-gold);
    object-fit: cover;
}

.team-name {
    font-size: 1.4rem;
    color: #0f172a;
    /* Dark Name */
    margin-bottom: 0.5rem;
    font-family: 'Merriweather', serif;
}

.team-role {
    color: var(--primary-gold);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
}

/* --- Contact Page Styles --- */
.contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-heading {
    color: var(--primary-gold);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.heading-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 2px;
    background: var(--primary-gold);
}

.contact-item {
    margin-bottom: 2.5rem;
    display: flex;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(197, 160, 23, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.contact-subheading {
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-text {
    color: var(--text-body);
    line-height: 1.6;
}

.contact-map-container {
    padding: 0;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map-container {
        height: 300px;
        /* Specific height for mobile */
    }
}