/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700;800&display=swap');

/* CSS Variables */
:root {
    --primary-color: #8B1E23;
    --primary-dark: #651419;
    --secondary-color: #D4AF37;
    --secondary-light: #E8C96A;
    
    --bg-color: #F8F6F1;
    --bg-light: #FFFFFF;
    --text-main: #222222;
    --text-light: #6B7280;
    --text-inverse: #FFFFFF;
    --border: #E5E5E5;
    
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    --container-width: 1280px;
}

/* Hide theme toggle button completely */
.theme-toggle {
    display: none !important;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 1.05rem;
}

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

a:hover { color: var(--primary-dark); }

/* Global Page Header Overrides */
.page-header h1, .page-header h2, .page-header p,
.page-hero h1, .page-hero h2, .page-hero p {
    color: #fff !important;
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-light { background-color: var(--bg-light) !important; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.py-5 { padding: 3rem 0; }
.w-100 { width: 100%; }
.max-w-800 { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-2 { padding: 0.5rem; }

.section {
    padding: 4rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-full);
}

.section-header.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.reveal-left .section-title::after {
    left: 0;
    transform: none;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 3rem;
}

.section-badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(178, 34, 34, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    outline: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    box-shadow: 0 5px 20px rgba(139, 30, 35, 0.4);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 30, 35, 0.6);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--primary-color);
}

.btn-light:hover {
    background: var(--bg-color);
    transform: translateY(-2px);
}

/* Layout Elements */
.top-bar {
    background: var(--primary-dark);
    color: var(--text-inverse);
    font-size: 0.85rem;
    padding: 4px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.contact-info span { margin-right: 20px; }
.contact-info i { margin-right: 5px; color: var(--secondary-light); }
.tagline { font-weight: 600; letter-spacing: 1px; color: var(--secondary-light); }

.header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}
.header.scrolled { 
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-md);
    padding: 5px 0; 
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    transition: height var(--transition-normal);
}
.header.scrolled .header-inner { height: 60px; }

.logo { display: flex; align-items: center; gap: 15px; }
.logo img { 
    height: 55px; 
    width: auto; 
    max-width: 200px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.logo-text { display: flex; flex-direction: column; }
.college-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    line-height: 1.1;
}
.college-location { font-size: 0.8rem; color: var(--text-light); }

.navbar .nav-links { display: flex; gap: 10px; align-items: center; }
.nav-links a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    padding: 5px 2px;
    white-space: nowrap;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-fast);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--primary-color); }

/* Dropdown Styles */
.nav-links li { position: relative; list-style: none; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.05);
    border-top: 3px solid var(--primary-color);
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li { width: 100%; }
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 0;
}
.dropdown-menu a::after { display: none; } /* Remove bottom line from dropdown links */
.dropdown-menu a:hover {
    background: linear-gradient(90deg, rgba(139,30,35,0.05), transparent);
    color: var(--primary-color);
    padding-left: 25px;
}

.header-actions { display: flex; gap: 15px; align-items: center; flex-shrink: 0; }
.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}
.icon-btn:hover { color: var(--primary-color); }
.mobile-menu-btn { display: none; background: transparent; border: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero-section {
    position: relative;
    height: 75vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    margin-top: -71px;
    padding-top: 71px;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)), url('../images/hero_real.jpg') center/cover;
    z-index: -1;
}
.hero-content { max-width: 900px; }
.hero-title { font-size: 4rem; color: #fff; margin-bottom: 1rem; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 1.5rem; color: #e2e8f0; margin-bottom: 1.5rem; }
.hero-tagline { font-size: 2rem; color: var(--secondary-color); margin-bottom: 2.5rem; font-family: var(--font-heading); }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* Stats Section */
.gradient-section {
    background: var(--bg-light);
    color: var(--text-main);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }
.stat-item h3 { font-size: 3rem; color: var(--text-main); margin-bottom: 5px; font-family: var(--font-body); font-weight: 600; }

/* Notice Slider */
.notice-slider-container { max-width: 800px; margin: 0 auto; position: relative; }
.notice-slider { padding: 30px; overflow: hidden; position: relative; min-height: 200px; }
.notice-slide {
    display: none;
    gap: 20px;
    animation: fadeIn 0.5s ease;
}
.notice-slide.active { display: flex; }

.notice-date {
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-sm);
    min-width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}
.notice-date .day { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.notice-date .month { font-size: 0.8rem; text-transform: uppercase; }

/* Page Header */
.page-header, .page-hero {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(139, 30, 35, 0.85)), url('../images/hero_real.jpg') center/cover;
    padding: 140px 0 100px;
    text-align: center;
    color: #fff;
    border-bottom: 5px solid var(--secondary-color);
}
.breadcrumb { display: flex; justify-content: center; gap: 10px; }
.breadcrumb li { color: rgba(255,255,255,0.8); }
.breadcrumb a { color: var(--secondary-color); }
.breadcrumb li + li::before { content: '/'; margin-right: 10px; color: rgba(255,255,255,0.5); }

/* Photo Gallery & Premium Image Framing */
.classic-image-frame {
    border: 6px solid #fff;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}
.classic-image-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.25);
}

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 15px; border: 4px solid #fff; box-shadow: 0 15px 35px rgba(0,0,0,0.15); cursor: pointer; transform: translateY(0); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease; }
.gallery-item::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(139,30,35,0.9) 0%, transparent 60%);
    pointer-events: none; opacity: 0; transition: opacity var(--transition-normal);
}
.gallery-item:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(139,30,35,0.25); }
.gallery-item:hover::after { opacity: 1; }
.gallery-img { width: 100%; height: 280px; object-fit: cover; transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1); display: block; }
.gallery-item:hover .gallery-img { transform: scale(1.15); }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; color: #fff; padding: 25px 20px; text-align: center; transform: translateY(30px); opacity: 0; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.gallery-item:hover .gallery-caption { transform: translateY(0); opacity: 1; }

/* Footer */
.footer { 
    background: linear-gradient(to right, #0f0f0f, #1a1a1a);
    color: rgba(255,255,255,0.85); 
    padding-top: 5rem;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.footer p {
    color: rgba(255,255,255,0.7) !important;
    line-height: 1.8;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 2rem; position: relative; z-index: 2; }
.footer-logo { 
    height: 120px; 
    width: auto;
    max-width: 250px;
    object-fit: contain;
    margin-bottom: 20px; 
    background: #fff; 
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.tagline-footer { color: var(--secondary-color); font-family: var(--font-heading); font-size: 1.2rem; margin-top: 15px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.footer h3 { color: #fff; font-size: 1.3rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;}
.footer h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background: linear-gradient(90deg, var(--secondary-color), transparent); }
.footer ul li { margin-bottom: 12px; }
.footer ul a { color: rgba(255,255,255,0.7); transition: color var(--transition-fast), transform var(--transition-fast); display: inline-block; }
.footer ul a:hover { color: var(--secondary-color); transform: translateX(5px); }
.contact-list li { display: flex; gap: 15px; color: rgba(255,255,255,0.7); align-items: flex-start; }
.contact-list i { color: var(--secondary-color); margin-top: 5px; font-size: 1.2rem; }
.social-icons { display: flex; gap: 15px; margin-top: 25px; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; background: rgba(255,255,255,0.05); color: #fff; border-radius: 50%; transition: all 0.4s ease; border: 1px solid rgba(255,255,255,0.1); }
.social-icons a:hover { background: var(--primary-color); transform: translateY(-5px); border-color: var(--primary-color); box-shadow: 0 10px 20px rgba(139,30,35,0.4); }
.footer-bottom { background: #000; padding: 25px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-bottom .container { display: flex; justify-content: center; align-items: center; }
.footer-bottom p { margin: 0; color: rgba(255,255,255,0.5) !important; font-size: 0.95rem; }

/* Floating Buttons */
.floating-btn {
    position: fixed;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    transition: transform var(--transition-fast);
}
.floating-btn:hover { transform: scale(1.1); color: #fff; }
.whatsapp { bottom: 20px; left: 20px; background: #25D366; }
.call { bottom: 90px; left: 20px; background: var(--primary-color); }
.back-to-top {
    position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px;
    background: var(--primary-color); color: #fff; border: none; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transition: all var(--transition-normal); z-index: 99;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-5px); }

/* Loader */
.loader-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color); display: flex; justify-content: center; align-items: center;
    z-index: 9999; transition: opacity 0.5s;
}
.loader {
    width: 50px; height: 50px; border: 5px solid rgba(178, 34, 34, 0.2);
    border-top-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite;
}

/* Responsive Quick Actions */
@media (max-width: 992px) {
    .quick-actions-grid { flex-wrap: wrap; }
    .quick-action-item { flex: 1 1 33.33%; min-width: 33.33%; border-right: 1px solid rgba(0,0,0,0.05); border-bottom: 1px solid rgba(0,0,0,0.05); }
}
@media (max-width: 768px) {
    .quick-action-item { flex: 1 1 50%; min-width: 50%; padding: 20px 10px; }
}
@media (max-width: 480px) {
    .quick-action-item { flex: 1 1 50%; min-width: 50%; padding: 15px 5px; }
    .quick-action-item h4 { font-size: 0.85rem; }
}

/* Floating Actions right-side */
.floating-actions.right-side {
    position: fixed;
    right: 20px;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}
.floating-btn {
    position: static;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}
.whatsapp { background: #25D366; }
.whatsapp:hover { background: #128C7E; transform: scale(1.1); }
.call { background: var(--primary-color); }
.call:hover { background: var(--primary-dark); transform: scale(1.1); }

@media (max-width: 1200px) {
    .header-actions .btn-primary { display: none !important; }
}

@media (max-width: 768px) {
    .mobile-hide { display: none !important; }
    .top-bar-inner { flex-direction: column; text-align: center; gap: 5px; }
    .contact-info { justify-content: center; width: 100%; }
}

/* Align Logo */
.logo { display: flex; align-items: center; gap: 0; }
.college-name { font-size: clamp(1.2rem, 3vw, 1.4rem); letter-spacing: 0.5px; }
@media (min-width: 1201px) {
    .nav-links { gap: 15px !important; }
    .nav-links a { font-size: 1rem; font-weight: 600; padding: 10px 5px; }
}

/* Visibility Utilities */
@media (min-width: 992px) { .desktop-hide { display: none !important; } }
@media (max-width: 991px) { .mobile-hide { display: none !important; } }
