/* ============================================================
   MLAC PU College — Main Stylesheet
   Premium Educational Institution Design
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --primary: #1a1f4e;
    --primary-dark: #0d1030;
    --primary-light: #2d3580;
    --accent: #c8a951;
    --accent-light: #ddc677;
    --accent-dark: #b08e2e;
    --burgundy: #8b1a3a;
    --burgundy-light: #a82050;
    --white: #ffffff;
    --off-white: #f8f7f4;
    --cream: #faf9f6;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #6b7280;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-alt: 'DM Sans', sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--primary-dark);
    padding: 8px 0;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar a:hover {
    color: var(--accent);
}

.top-bar .top-bar-right a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
}

.top-bar .top-bar-right a:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

/* ---------- Navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.site-header .navbar {
    padding: 12px 0;
    transition: var(--transition);
}

.site-header.scrolled .navbar {
    padding: 6px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 60px);
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-name,
.brand-sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.brand-sub {
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: var(--burgundy);
    letter-spacing: 0.04em;
    font-weight: 700;
    line-height: 1.3;
}

/* Always show full name — hide short variants */
.brand-name-short { display: none !important; }
.brand-sub-short { display: none !important; }

/* Responsive font scaling for full name */
@media (max-width: 1499.98px) {
    .brand-name { font-size: 0.88rem; }
    .brand-sub { font-size: 0.58rem; }
}

@media (max-width: 1199.98px) {
    .brand-name { font-size: 0.82rem; }
    .brand-sub { font-size: 0.54rem; }
}

@media (max-width: 991.98px) {
    .brand-name { font-size: 0.88rem; }
    .brand-sub { font-size: 0.58rem; }
}

@media (max-width: 767.98px) {
    .brand-name { font-size: 0.78rem; }
    .brand-sub { font-size: 0.52rem; }
}

@media (max-width: 575.98px) {
    .brand-name { font-size: 0.68rem; }
    .brand-sub { font-size: 0.48rem; }
    .navbar-brand { gap: 8px; }
}

.navbar-nav .nav-link {
    font-family: var(--font-alt);
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-primary);
    padding: 8px 14px !important;
    position: relative;
    letter-spacing: 0.01em;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link:hover {
    color: var(--primary);
}

.navbar-nav .nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.btn-apply {
    background: var(--burgundy) !important;
    color: var(--white) !important;
    border-radius: var(--radius-xl) !important;
    padding: 10px 28px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    border: 2px solid var(--burgundy) !important;
}

.btn-apply:hover {
    background: transparent !important;
    color: var(--burgundy) !important;
}

.btn-apply::after {
    display: none !important;
}

/* Mobile Toggler */
.navbar-toggler {
    border: none;
    padding: 6px;
    width: 36px;
    height: 36px;
    position: relative;
    background: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    margin: 5px auto;
    transition: var(--transition);
    border-radius: 2px;
}

/* ---------- Section Styling ---------- */
.section {
    padding: 100px 0;
}

.section-sm {
    padding: 70px 0;
}

.section-dark {
    background: var(--primary);
    color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5 {
    color: var(--white);
}

.section-cream {
    background: var(--cream);
}

.section-gray {
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-alt);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-dark);
    margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 30px;
    height: 1.5px;
    background: var(--accent);
}

.section-dark .section-label {
    color: var(--accent-light);
}

.section-dark .section-label::before,
.section-dark .section-label::after {
    background: var(--accent-light);
}

.section-header h2 {
    font-size: 2.6rem;
    margin-bottom: 18px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.section-dark .section-header p {
    color: rgba(255, 255, 255, 0.75);
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0a0e2a 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 169, 81, 0.08) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 26, 58, 0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 40px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(200, 169, 81, 0.15);
    border: 1px solid rgba(200, 169, 81, 0.3);
    border-radius: var(--radius-xl);
    padding: 8px 22px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.05em;
}

.hero-badge i {
    font-size: 0.7rem;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero h1 span {
    display: block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-family: var(--font-alt);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid var(--accent);
}

.btn-hero-primary:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 169, 81, 0.3);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--white);
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-family: var(--font-alt);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:hover {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    position: relative;
    z-index: 2;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

.hero-stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
}

.hero-stat-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

/* ---------- Feature Cards ---------- */
.feature-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.feature-icon-primary {
    background: rgba(26, 31, 78, 0.08);
    color: var(--primary);
}

.feature-icon-accent {
    background: rgba(200, 169, 81, 0.12);
    color: var(--accent-dark);
}

.feature-icon-burgundy {
    background: rgba(139, 26, 58, 0.08);
    color: var(--burgundy);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin: 0;
}

/* ---------- Course Cards ---------- */
.course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--gray-100);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.course-card-header {
    padding: 36px 30px 28px;
    position: relative;
    overflow: hidden;
}

.course-card-header.science {
    background: linear-gradient(135deg, #1a1f4e 0%, #2d3580 100%);
}

.course-card-header.commerce {
    background: linear-gradient(135deg, #8b1a3a 0%, #a82050 100%);
}

.course-card-header.arts {
    background: linear-gradient(135deg, #b08e2e 0%, #c8a951 100%);
}

.course-card-header::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.course-card-header .stream-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
    display: block;
}

.course-card-header h3 {
    color: var(--white);
    font-size: 1.55rem;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.course-card-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.course-card-body {
    padding: 28px 30px 32px;
}

.combo-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 4px;
    transition: var(--transition);
}

.combo-tag:hover {
    border-color: var(--accent);
    background: rgba(200, 169, 81, 0.06);
}

.course-card-body h5 {
    font-family: var(--font-alt);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-weight: 600;
}

.course-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.course-features li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.course-features li i {
    color: var(--accent-dark);
    font-size: 0.75rem;
    margin-top: 5px;
    flex-shrink: 0;
}

/* ---------- Facility Cards ---------- */
.facility-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 320px;
    cursor: pointer;
}

.facility-card .facility-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.facility-card:hover .facility-bg {
    transform: scale(1.08);
}

.facility-card .facility-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    transition: var(--transition);
}

.facility-card:hover .facility-overlay {
    background: linear-gradient(to top, rgba(26, 31, 78, 0.9) 0%, rgba(26, 31, 78, 0.3) 60%);
}

.facility-card h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.facility-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.facility-card:hover p {
    opacity: 1;
    transform: translateY(0);
}

/* Facility placeholder backgrounds using CSS gradients */
.facility-lab { background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%); }
.facility-library { background: linear-gradient(135deg, #5c3d2e 0%, #8b6914 100%); }
.facility-smart { background: linear-gradient(135deg, #1a3c5e 0%, #2563eb 100%); }
.facility-cafeteria { background: linear-gradient(135deg, #7c4a1a 0%, #b08e2e 100%); }
.facility-sports { background: linear-gradient(135deg, #1a5c3a 0%, #22c55e 100%); }
.facility-lounge { background: linear-gradient(135deg, #4a1a5c 0%, #7c3aed 100%); }

/* ---------- Testimonial Section ---------- */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.3;
    position: absolute;
    top: 16px;
    left: 24px;
    line-height: 1;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--primary) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.6rem;
    margin-bottom: 16px;
    position: relative;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 36px;
    position: relative;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 16px 40px;
    border-radius: var(--radius-xl);
    font-family: var(--font-alt);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    border: none;
}

.btn-cta:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* ---------- Page Headers ---------- */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 169, 81, 0.06) 0%, transparent 70%);
}

.page-header h1 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 14px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    max-width: 600px;
}

.breadcrumb-nav {
    margin-bottom: 20px;
}

.breadcrumb-nav a {
    color: var(--accent-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.breadcrumb-nav span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0 10px;
}

.breadcrumb-nav .current {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* ---------- Faculty Cards ---------- */
.faculty-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    height: 100%;
}

.faculty-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.faculty-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--white);
}

.faculty-avatar.physics { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.faculty-avatar.chemistry { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.faculty-avatar.mathematics { background: linear-gradient(135deg, #d97706, #f59e0b); }
.faculty-avatar.biology { background: linear-gradient(135deg, #059669, #10b981); }
.faculty-avatar.computer { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.faculty-avatar.english { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.faculty-avatar.commerce { background: linear-gradient(135deg, #dc2626, #ef4444); }
.faculty-avatar.economics { background: linear-gradient(135deg, #ea580c, #f97316); }
.faculty-avatar.kannada { background: linear-gradient(135deg, #16a34a, #22c55e); }
.faculty-avatar.hindi { background: linear-gradient(135deg, #db2777, #ec4899); }
.faculty-avatar.sanskrit { background: linear-gradient(135deg, #9333ea, #a855f7); }
.faculty-avatar.history { background: linear-gradient(135deg, #78350f, #a16207); }
.faculty-avatar.psychology { background: linear-gradient(135deg, #be185d, #ec4899); }
.faculty-avatar.political { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.faculty-avatar.sociology { background: linear-gradient(135deg, #065f46, #059669); }
.faculty-avatar.statistics { background: linear-gradient(135deg, #7e22ce, #a855f7); }

.faculty-card h5 {
    font-family: var(--font-alt);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.faculty-card .qualification {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.faculty-card .experience {
    display: inline-block;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
}

/* Faculty Filter */
.dept-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
}

.dept-filter-btn {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 8px 20px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.dept-filter-btn:hover,
.dept-filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ---------- Timeline ---------- */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--accent);
    z-index: 2;
}

.timeline-content {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    width: 44%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 6%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    margin-left: 6%;
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 6px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ---------- Contact Form ---------- */
.contact-form .form-control,
.contact-form .form-select {
    padding: 14px 18px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    transition: var(--transition);
    background: var(--white);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.15);
}

.contact-form label {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.btn-submit {
    background: var(--primary);
    color: var(--white);
    padding: 14px 40px;
    border-radius: var(--radius-xl);
    border: 2px solid var(--primary);
    font-family: var(--font-alt);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-submit:hover {
    background: transparent;
    color: var(--primary);
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-info-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.contact-info-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-info-card h5 {
    font-family: var(--font-alt);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-info-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin: 0;
}

.contact-info-card a {
    color: var(--primary);
    font-weight: 500;
}

.contact-info-card a:hover {
    color: var(--accent-dark);
}

/* ---------- Admission Steps ---------- */
.step-card {
    text-align: center;
    padding: 32px 24px;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-card h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ---------- Values Grid ---------- */
.value-card {
    padding: 32px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.value-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.value-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ---------- Document List ---------- */
.doc-list {
    list-style: none;
    padding: 0;
}

.doc-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.doc-list li:last-child {
    border-bottom: none;
}

.doc-list li i {
    color: var(--accent-dark);
    font-size: 0.9rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ---------- Map ---------- */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer-top {
    padding: 70px 0 50px;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand h3 span {
    color: var(--accent);
    font-weight: 400;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

.footer-top h5 {
    font-family: var(--font-alt);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.footer-top ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-top ul li {
    margin-bottom: 10px;
}

.footer-top ul a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-top ul a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    margin-bottom: 12px !important;
}

.footer-contact li i {
    color: var(--accent);
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

.footer-tagline {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent) !important;
    opacity: 0.7;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ---------- Utility Classes ---------- */
.text-accent { color: var(--accent-dark); }
.text-burgundy { color: var(--burgundy); }
.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239ca3af' fill-opacity='0.04'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--burgundy) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .hero h1 { font-size: 3rem; }
    .section-header h2 { font-size: 2.2rem; }
}

@media (max-width: 991.98px) {
    .hero { min-height: auto; padding: 60px 0; }
    .hero h1 { font-size: 2.5rem; }
    .hero-text { font-size: 1rem; }
    .hero-stats { margin-top: 40px; }
    .section { padding: 70px 0; }
    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: var(--radius-md);
        margin-top: 12px;
        box-shadow: var(--shadow-lg);
    }
    .nav-cta { margin-top: 10px; }
    .btn-apply { display: block; text-align: center; }
    .timeline::before { left: 20px; }
    .timeline-dot { left: 20px; }
    .timeline-content {
        width: calc(100% - 60px) !important;
        margin-left: 60px !important;
        margin-right: 0 !important;
    }
    .page-header h1 { font-size: 2.2rem; }
}

@media (max-width: 767.98px) {
    .hero h1 { font-size: 2rem; }
    .section-header h2 { font-size: 1.8rem; }
    .section { padding: 50px 0; }
    .section-header { margin-bottom: 40px; }
    .cta-section h2 { font-size: 1.8rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons a { text-align: center; justify-content: center; }
    .feature-card { padding: 30px 24px; }
    .facility-card { height: 250px; }
    .page-header { padding: 80px 0 40px; }
    .page-header h1 { font-size: 1.8rem; }
}

@media (max-width: 575.98px) {
    .top-bar { text-align: center; }
    .top-bar .top-bar-right { margin: 0 auto; }
    .hero h1 { font-size: 1.7rem; }
    .brand-logo { height: 32px; }
    .footer-top { padding: 50px 0 30px; }
    .whatsapp-float { bottom: 24px; left: 16px; width: 50px; height: 50px; }
    .back-to-top { bottom: 24px; right: 16px; width: 42px; height: 42px; }
}

/* ---------- Brand Logo ---------- */
.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.site-header.scrolled .brand-logo {
    height: 40px;
}

@media (max-width: 575.98px) {
    .brand-logo { height: 38px; }
}

/* ---------- Dropdown Menu ---------- */
.dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    min-width: 200px;
    animation: dropdownFade 0.25s ease;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    font-family: var(--font-alt);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 10px 24px;
    transition: var(--transition);
}

.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(200, 169, 81, 0.08);
    color: var(--primary);
}

.dropdown-toggle::after {
    font-size: 0.6rem;
    vertical-align: 0.15em;
}

/* Mobile dropdown styling inside collapsed navbar */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        background: transparent;
        padding: 0 0 0 16px;
        animation: none;
    }
    .navbar-nav .dropdown-item {
        color: var(--gray-400);
        padding: 8px 16px;
        font-size: 0.9rem;
        border-radius: var(--radius-sm);
    }
    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background: rgba(255, 255, 255, 0.08);
        color: var(--white);
    }
}

/* ---------- WhatsApp Float Button ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

/* ---------- Faculty Photo ---------- */
.faculty-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 18px;
    object-fit: cover;
    object-position: top;
    border: 3px solid var(--gray-100);
    transition: var(--transition);
}

.faculty-card:hover .faculty-photo {
    border-color: var(--accent);
    transform: scale(1.05);
}

/* ---------- Management Page ---------- */
.management-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    height: 100%;
}

.management-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.management-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.management-card h4 {
    font-family: var(--font-alt);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.management-card .mgmt-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 10px;
}

.management-card .mgmt-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.governing-table {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.governing-table table {
    width: 100%;
    margin: 0;
}

.governing-table thead th {
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-alt);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 20px;
    border: none;
}

.governing-table tbody td {
    padding: 14px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.governing-table tbody tr:last-child td {
    border-bottom: none;
}

.governing-table tbody tr:hover {
    background: rgba(200, 169, 81, 0.04);
}

/* ---------- YouTube Video Embed ---------- */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- News Section ---------- */
.news-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-card-body {
    padding: 24px;
}

.news-date {
    font-family: var(--font-alt);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-dark);
    margin-bottom: 8px;
}

.news-card-body h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-card-body p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}

.news-tag {
    display: inline-block;
    background: rgba(200, 169, 81, 0.1);
    color: var(--accent-dark);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    margin-bottom: 12px;
}

/* ---------- 50 Years Badge ---------- */
.hero-badge-img {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
