/* ============================================================
   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;
    overflow-x: hidden;
    -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;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.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: fixed;
    top: 0;
    left: 0;
    right: 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;
}

/* Show full name by default — 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: 1399.98px) {
    .navbar-nav .nav-link { font-size: 0.8rem; padding: 8px 8px !important; }
    .btn-apply { padding: 7px 16px !important; font-size: 0.78rem !important; }
}

@media (max-width: 1199.98px) {
    .brand-name { font-size: 0.82rem; }
    .brand-sub { font-size: 0.54rem; }
    .navbar-nav .nav-link { font-size: 0.78rem; padding: 8px 6px !important; }
    .btn-apply { padding: 6px 14px !important; font-size: 0.76rem !important; }
}

@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; }
}

/* On small phones, switch to short name for readability */
@media (max-width: 575.98px) {
    .brand-name-full { display: none !important; }
    .brand-name-short { display: block !important; font-size: 0.82rem; }
    .brand-sub-full { display: none !important; }
    .brand-sub-short { display: block !important; font-size: 0.52rem; }
    .navbar-brand { gap: 8px; }
}

.navbar-nav .nav-link {
    font-family: var(--font-alt);
    font-weight: 500;
    font-size: 0.84rem;
    color: var(--text-primary);
    padding: 8px 10px !important;
    position: relative;
    letter-spacing: 0.01em;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 10px;
    right: 10px;
    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: 8px 20px !important;
    font-size: 0.82rem !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);
}

/* ---------- Section Dividers ---------- */
.section-divider {
    line-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.section-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}

.divider-dark-to-light {
    background: var(--primary);
}

.divider-light-to-dark {
    background: var(--white);
}

.section-cream + .section-divider.divider-light-to-dark,
.bg-pattern + .section-divider.divider-light-to-dark {
    background: var(--cream);
}

@media (max-width: 767.98px) {
    .section-divider svg {
        height: 35px;
    }
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: var(--primary-dark);
    overflow: hidden;
}

/* Background image slideshow */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slideshow .hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
}

/*
   10 slides, 100s total cycle
   Each slide gets 10s (10% of cycle)
   Fade-in: 3s, Hold: 4s, Fade-out: 3s
   Fade-out of slide N overlaps with fade-in of slide N+1
   so there's ALWAYS at least one image visible — no black frames
*/
.hero-slideshow .hero-slide:nth-child(1)  { animation-delay: 0s; }
.hero-slideshow .hero-slide:nth-child(2)  { animation-delay: 10s; }
.hero-slideshow .hero-slide:nth-child(3)  { animation-delay: 20s; }
.hero-slideshow .hero-slide:nth-child(4)  { animation-delay: 30s; }
.hero-slideshow .hero-slide:nth-child(5)  { animation-delay: 40s; }
.hero-slideshow .hero-slide:nth-child(6)  { animation-delay: 50s; }
.hero-slideshow .hero-slide:nth-child(7)  { animation-delay: 60s; }
.hero-slideshow .hero-slide:nth-child(8)  { animation-delay: 70s; }
.hero-slideshow .hero-slide:nth-child(9)  { animation-delay: 80s; }
.hero-slideshow .hero-slide:nth-child(10) { animation-delay: 90s; }

.hero-slideshow .hero-slide {
    animation: heroFade 100s linear infinite;
}

@keyframes heroFade {
    0%    { opacity: 0;   transform: scale(1); }
    4%    { opacity: 1;   transform: scale(1.02); }
    6%    { opacity: 1;   transform: scale(1.04); }
    10%   { opacity: 1;   transform: scale(1.07); }
    15%   { opacity: 0;   transform: scale(1.09); }
    100%  { opacity: 0;   transform: scale(1); }
}

/* First slide visible immediately on load */
.hero-slideshow .hero-slide:first-child {
    opacity: 1;
}

/* Dark overlay on top of slideshow */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(26, 31, 78, 0.72) 0%, rgba(10, 14, 42, 0.78) 50%, rgba(10, 14, 42, 0.82) 100%);
}

.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;
    z-index: 2;
}

.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;
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero > .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 3;
    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;
}

/* ---------- Hero Action Cards ---------- */
.hero-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    border-radius: var(--radius);
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-action-card i {
    font-size: 1.5rem;
}

.hero-action-apply {
    background: var(--burgundy);
}

.hero-action-apply:hover {
    background: #a82050;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 26, 58, 0.4);
}

.hero-action-prospectus {
    background: rgba(255, 255, 255, 0.1);
}

.hero-action-prospectus:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ---------- 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 backgrounds */
.facility-lab { background: url('/images/campus/chemistry-lab.jpg') center/cover no-repeat; }
.facility-library { background: url('/images/campus/library-real.jpg') center/cover no-repeat; }
.facility-smart { background: url('/images/campus/computer-lab-real.jpg') center/cover no-repeat; }
.facility-classroom { background: url('/images/campus/classroom-smart.jpeg') center/cover no-repeat; }
.facility-auditorium { background: url('/images/campus/auditorium.jpg') center/cover no-repeat; }
.facility-cafeteria { background: url('/images/campus/canteen.jpeg') center/cover no-repeat; }
.facility-gym { background: url('/images/campus/gym.jpg') center/cover no-repeat; }
.facility-health { background: url('/images/campus/health-center.jpg') center/cover no-repeat; }
.facility-zoo { background: url('/images/campus/zoology-museum.jpg') center/cover no-repeat; }

/* ---------- 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;
    flex-shrink: 0;
}

.testimonial-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--accent);
}

.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: 40px; }
}

/* ---------- 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: 110px;
    height: 110px;
    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);
}

/* Dept label shown in All view */
.faculty-dept-label {
    display: none;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin-bottom: 6px;
}

.show-dept-labels .faculty-dept-label {
    display: block;
}

/* ---------- 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-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    object-position: top;
    display: block;
    border: 3px solid var(--accent);
}

.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); }
}

/* ---------- Events Gallery ---------- */
.event-gallery-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.event-gallery-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.event-gallery-img:hover img {
    transform: scale(1.03);
}

.event-title {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.event-date {
    color: var(--accent-dark);
    font-family: var(--font-alt);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.event-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

@media (max-width: 575.98px) {
    .event-title {
        font-size: 1.3rem;
    }
}

/* ---------- Policy Pages ---------- */
.policy-content h3 {
    font-size: 1.25rem;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--primary);
}

.policy-content h3:first-child {
    margin-top: 0;
}

.policy-content p {
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 14px;
}

.policy-content ul {
    color: var(--text-secondary);
    padding-left: 20px;
    margin-bottom: 16px;
}

.policy-content ul li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.policy-content a {
    color: var(--primary);
    text-decoration: underline;
}

/* ---------- Footer Legal Links ---------- */
.footer-legal {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.82rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--accent);
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.3);
}

.visitor-counter {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.visitor-counter .text-muted-light {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.visitor-counter br {
    display: none !important;
}

.visitor-counter a,
.visitor-counter img {
    display: inline !important;
    vertical-align: middle !important;
}

.visitor-counter img.counterimg {
    height: 18px !important;
    margin-left: 4px;
}

/* ---------- Flyer Carousel Slides ---------- */
.flyer-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 32px 32px;
    text-align: center;
    color: #fff;
    border-radius: var(--radius);
}

.flyer-slide-admissions {
    background: linear-gradient(135deg, var(--primary) 0%, var(--burgundy) 100%);
}

.flyer-slide-results {
    background: linear-gradient(135deg, #0d3b66 0%, #1a1f4e 100%);
}

.flyer-slide-legacy {
    background: linear-gradient(135deg, var(--burgundy) 0%, #5c1126 100%);
}

.flyer-slide-content {
    max-width: 480px;
}

.flyer-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.flyer-slide h2 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.flyer-slide p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 4px;
}

.flyer-subtitle {
    font-size: 0.95rem !important;
    opacity: 0.7 !important;
    margin-top: 8px;
}

.flyer-slide .btn-light {
    font-weight: 600;
    color: var(--primary);
    border-radius: 20px;
    padding: 6px 20px;
}

#flyerCarousel .carousel-inner img {
    max-height: 70vh;
    object-fit: contain;
}

#flyerCarousel .carousel-control-prev,
#flyerCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    opacity: 0.8;
}

#flyerCarousel .carousel-control-prev { left: 10px; }
#flyerCarousel .carousel-control-next { right: 10px; }

#flyerCarousel .carousel-indicators {
    margin-bottom: 12px;
}

#flyerCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.5;
}

#flyerCarousel .carousel-indicators button.active {
    opacity: 1;
    background-color: var(--accent);
}

@media (max-width: 575.98px) {
    .flyer-slide {
        min-height: 240px;
        padding: 24px 20px;
    }
    .flyer-slide h2 {
        font-size: 1.4rem;
    }
    .flyer-slide p {
        font-size: 0.85rem;
    }
}

/* ---------- Fee Structure ---------- */
.fee-table-wrapper {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.fee-table-header {
    background: linear-gradient(135deg, var(--primary) 0%, #2a2f6e 100%);
    color: #fff;
    padding: 28px 32px;
    text-align: center;
}

.fee-table-header i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.fee-table-header h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.fee-table-header p {
    opacity: 0.75;
    font-size: 0.9rem;
    margin: 0;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
}

.fee-table thead th {
    background: var(--gray-50);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    padding: 14px 20px;
    border-bottom: 2px solid var(--gray-200);
}

.fee-table tbody td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem;
    color: var(--text-primary);
    vertical-align: middle;
}

.fee-table tbody tr:last-child td {
    border-bottom: none;
}

.fee-table tbody tr:hover {
    background: rgba(200, 169, 81, 0.04);
}

.stream-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
}

.stream-science {
    background: rgba(26, 31, 78, 0.1);
    color: var(--primary);
}

.stream-commerce {
    background: rgba(139, 26, 58, 0.1);
    color: var(--burgundy);
}

.stream-arts {
    background: rgba(200, 169, 81, 0.15);
    color: #8a7020;
}

.fee-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 24px;
    background: var(--gray-50);
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--gray-100);
}

.fee-note i {
    color: var(--accent);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .fee-table thead th,
    .fee-table tbody td {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
    .fee-table-header {
        padding: 20px 20px;
    }
}

/* ---------- Floating Quick Actions (Right) ---------- */
.floating-actions {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.floating-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: var(--transition);
    white-space: nowrap;
    writing-mode: horizontal-tb;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.15);
}

.floating-btn i {
    font-size: 1rem;
}

.floating-btn span {
    font-size: 0.7rem;
}

.floating-btn:hover {
    padding-right: 18px;
    color: #fff;
}

.floating-btn-apply {
    background: var(--burgundy);
}

.floating-btn-apply:hover {
    background: #a82050;
}

.floating-btn-prospectus {
    background: var(--primary);
}

.floating-btn-prospectus:hover {
    background: #2a2f6e;
}

@media (max-width: 575.98px) {
    .floating-btn {
        padding: 8px 10px;
    }
    .floating-btn i {
        font-size: 0.9rem;
    }
}

/* ---------- Topper Banner ---------- */
.topper-banner {
    background: linear-gradient(135deg, var(--gray-50), #fff);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 18px 28px;
    margin-bottom: 24px;
}

.topper-banner-inner {
    display: flex;
    align-items: center;
    gap: 28px;
}

.topper-banner-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 3px solid var(--accent);
    flex-shrink: 0;
}

.topper-banner-info h3 {
    font-size: 1.4rem;
    margin: 0;
}

@media (max-width: 575.98px) {
    .topper-banner-inner { flex-direction: column; text-align: center; }
    .topper-banner-info .d-flex { justify-content: center; }
}

/* ---------- Topper Stream Headers ---------- */
.topper-stream-header {
    margin-bottom: 16px;
}

.topper-stream-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* ---------- Topper Compact Cards ---------- */
.topper-card-compact {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.topper-card-compact:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.topper-photo-compact {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 2px solid var(--gray-100);
    margin: 0 auto 8px;
    display: block;
}

.topper-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: var(--heading-font);
}

.topper-card-compact h6 {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    line-height: 1.3;
}

.topper-score {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.topper-score span {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

.topper-pct {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.topper-rank {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.topper-rank-gold {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

/* ---------- Topper Year Tabs ---------- */
.topper-year-tabs {
    gap: 8px;
    border: none;
}

.topper-year-tabs .nav-link {
    background: var(--gray-50);
    color: var(--text-secondary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius) !important;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 20px;
    transition: var(--transition);
}

.topper-year-tabs .nav-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.topper-year-tabs .nav-link:hover:not(.active) {
    background: var(--gray-100);
    color: var(--primary);
}

/* ---------- Alumni Page ---------- */
.alumni-story {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 24px;
}

.alumni-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.alumni-name {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.alumni-profession,
.alumni-batch {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.alumni-profession i,
.alumni-batch i {
    color: var(--accent);
    margin-right: 6px;
}

.alumni-quote {
    margin-top: 14px;
    padding: 16px 20px;
    border-left: 4px solid var(--accent);
    background: var(--gray-50);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

@media (max-width: 767.98px) {
    .alumni-photo {
        width: 120px;
        height: 120px;
    }
    .alumni-story {
        padding: 24px 20px;
    }
}

/* ---------- Chat Widget ---------- */
.chat-toggle {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(26, 31, 78, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(26, 31, 78, 0.5);
}

.chat-badge {
    position: absolute;
    top: -6px;
    left: -10px;
    background: var(--burgundy);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
    animation: chatBadgePulse 2s ease-in-out infinite;
}

@keyframes chatBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.chat-panel {
    position: fixed;
    bottom: 160px;
    right: 24px;
    z-index: 9998;
    width: 380px;
    max-height: 620px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideUp 0.3s ease-out;
}

@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-header {
    background: linear-gradient(135deg, var(--primary) 0%, #2a2f6e 100%);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    font-size: 1.6rem;
    line-height: 1;
}

.chat-header-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.chat-header-status {
    font-size: 0.72rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-status-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
}

.chat-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    line-height: 1;
}

.chat-close-btn:hover { opacity: 1; }

/* Registration Form */
.chat-reg-form {
    padding: 24px 20px;
    flex: 1;
    overflow-y: auto;
}

.chat-reg-intro {
    text-align: center;
    margin-bottom: 20px;
}

.chat-reg-intro h4 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.chat-reg-intro p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.chat-input-group {
    margin-bottom: 14px;
}

.chat-input-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-input-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.92rem;
    transition: border-color 0.2s;
    outline: none;
    font-family: var(--body-font);
}

.chat-input-group input:focus {
    border-color: var(--primary);
}

.chat-reg-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}

.chat-reg-btn:hover { background: var(--primary-dark); }
.chat-reg-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.chat-reg-privacy {
    text-align: center;
    font-size: 0.7rem;
    color: var(--gray-400);
    margin-top: 12px;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 440px;
    min-height: 340px;
    background: var(--gray-50);
}

.chat-msg { display: flex; }
.chat-msg-user { justify-content: flex-end; }
.chat-msg-bot { justify-content: flex-start; }

.chat-bubble {
    max-width: 85%;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.chat-bubble-avatar {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.chat-bubble-text {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-bubble-bot .chat-bubble-text {
    background: #fff;
    color: var(--text-primary);
    border: 1px solid var(--gray-100);
    border-top-left-radius: 4px;
}

.chat-bubble-user .chat-bubble-text {
    background: var(--primary);
    color: #fff;
    border-top-right-radius: 4px;
}

.chat-bubble-text a {
    color: var(--accent);
    text-decoration: underline;
    word-break: break-all;
}

.chat-bubble-user .chat-bubble-text a {
    color: #fde68a;
}

.chat-bubble-text strong { font-weight: 700; }
.chat-bubble-text em { font-style: italic; }
.chat-bubble-text ul { margin: 6px 0; padding-left: 18px; }
.chat-bubble-text li { margin-bottom: 3px; }
.chat-bubble-text br + br { display: none; }

/* Typing Indicator */
.chat-typing {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--gray-100);
    border-top-left-radius: 4px;
}

.chat-typing span {
    width: 7px;
    height: 7px;
    background: var(--gray-300);
    border-radius: 50%;
    animation: chatTypingBounce 1.4s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatTypingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Chat Input */
.chat-input-area {
    padding: 10px 12px;
    border-top: 1px solid var(--gray-100);
    background: #fff;
}

.chat-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 24px;
    font-size: 0.88rem;
    outline: none;
    font-family: var(--body-font);
    transition: border-color 0.2s;
}

.chat-form input:focus { border-color: var(--primary); }

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.chat-send-btn:hover { background: var(--primary-dark); }

/* Mobile Responsive */
@media (max-width: 767.98px) {
    /* Hide floating sidebar on mobile — it causes overflow */
    .floating-actions {
        display: none !important;
    }

    .chat-toggle {
        bottom: 24px;
        right: 16px;
        width: 50px;
        height: 50px;
    }
    .chat-panel {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 85px;
        max-height: 70vh;
    }
    .chat-messages {
        max-height: 50vh;
    }
}

/* ---------- Results Announcement Bar ---------- */
.results-announcement {
    background: linear-gradient(90deg, var(--burgundy), #a52248);
    color: #fff;
    padding: 8px 0;
    text-align: center;
    font-size: 0.88rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
}

.results-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #4cff6e;
    border-radius: 50%;
    animation: pulse-glow 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 255, 110, 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(76, 255, 110, 0); }
}

.results-text {
    color: rgba(255, 255, 255, 0.95);
}

.results-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--burgundy);
    padding: 5px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.results-btn:hover {
    background: var(--accent);
    color: var(--primary);
}

@media (max-width: 575.98px) {
    .results-announcement {
        font-size: 0.85rem;
        padding: 10px 0;
    }
    .results-btn {
        padding: 4px 14px;
        font-size: 0.8rem;
    }
}
