/* =============================================
   COLLEGE WEBSITE — MAIN STYLESHEET
   ============================================= */

:root {
    --navy:     #0d2550;
    --navy2:    #162f5e;
    --gold:     #c9a227;
    --gold2:    #e8bc3a;
    --white:    #ffffff;
    --offwhite: #f5f7fa;
    --light:    #eef1f6;
    --text:     #2c3e50;
    --muted:    #6b7a8d;
    --border:   #d9e2ec;
    --danger:   #e74c3c;
    --success:  #27ae60;
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', sans-serif;
    --shadow:   0 4px 24px rgba(13,37,80,0.10);
    --radius:   8px;
    --radius-lg:16px;
    --transition: 0.28s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---- TOP BAR ---- */
.top-bar { background: var(--navy); color: #aec0d9; font-size: 0.82rem; padding: 6px 0; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar-left span { margin-right: 20px; }
.top-bar-left i, .top-bar-right i { margin-right: 5px; color: var(--gold); }
.top-bar-right a { color: #aec0d9; margin-left: 12px; transition: color var(--transition); }
.top-bar-right a:hover { color: var(--gold2); }
.admin-btn { background: var(--gold); color: var(--navy) !important; padding: 3px 12px; border-radius: 20px; font-weight: 600; font-size: 0.78rem; }
.admin-btn:hover { background: var(--gold2) !important; color: var(--navy) !important; }

/* ---- HEADER ---- */
.site-header { background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); padding: 18px 0; position: relative; overflow: hidden; }
.site-header::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(201,162,39,0.12) 0%, transparent 70%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.logo-area { display: flex; align-items: center; gap: 18px; }
.site-logo { width: 80px; height: 80px; object-fit: contain; background: transparent; border: none; border-radius: 0; }
.logo-placeholder { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--gold); background: rgba(201,162,39,0.12); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: var(--gold); flex-shrink: 0; }
.site-name { font-family: var(--font-head); color: var(--white); font-size: 1.9rem; line-height: 1.2; }
.site-tagline { color: var(--gold); font-size: 0.9rem; letter-spacing: 1px; margin-top: 4px; }
.admission-badge { background: var(--gold); color: var(--navy); padding: 10px 22px; border-radius: 30px; font-weight: 700; font-size: 0.88rem; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 16px rgba(201,162,39,0.4); }
.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 4px 16px rgba(201,162,39,0.4); } 50% { box-shadow: 0 4px 32px rgba(201,162,39,0.7); } }

/* ---- NAVIGATION ---- */
.main-nav { background: var(--navy2); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 16px rgba(13,37,80,0.25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-menu { list-style: none; display: flex; align-items: stretch; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 16px 18px; color: #c8d8f0; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.3px; transition: all var(--transition); }
.nav-link:hover, .nav-item:hover > .nav-link { color: var(--gold); background: rgba(201,162,39,0.08); }
.nav-link i { font-size: 0.7rem; transition: transform var(--transition); }
.nav-item:hover > .nav-link i { transform: rotate(180deg); }
/* Dropdown */
.dropdown { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--white); border-top: 3px solid var(--gold); box-shadow: var(--shadow); list-style: none; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--transition); z-index: 999; border-radius: 0 0 var(--radius) var(--radius); }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: 11px 20px; color: var(--text); font-size: 0.88rem; border-bottom: 1px solid var(--border); transition: all var(--transition); }
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--offwhite); color: var(--navy); padding-left: 28px; }
/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 12px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; transition: all var(--transition); }

/* ---- NEWS TICKER ---- */
.news-ticker-wrap { background: var(--gold); display: flex; align-items: center; overflow: hidden; height: 38px; }
.ticker-label { background: var(--navy); color: var(--gold); padding: 0 18px; height: 100%; display: flex; align-items: center; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; white-space: nowrap; flex-shrink: 0; }
.ticker-content { flex: 1; overflow: hidden; position: relative; }
.ticker-list { display: flex; list-style: none; animation: tickerScroll 30s linear infinite; white-space: nowrap; }
.ticker-list:hover { animation-play-state: paused; }
.ticker-list li { padding: 0 40px; color: var(--navy); font-size: 0.85rem; font-weight: 600; }
.ticker-list li a { color: var(--navy); text-decoration: underline; }
@keyframes tickerScroll { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* ---- BREADCRUMB ---- */
.breadcrumb-bar { background: var(--light); padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; color: var(--muted); }
.breadcrumb-bar a { color: var(--navy); }
.breadcrumb-bar a:hover { color: var(--gold); }

/* ---- HERO SLIDER ---- */
.hero-slider { position: relative; overflow: hidden; height: 520px; background: var(--navy); }
.slider-track { display: flex; height: 100%; transition: transform 0.7s cubic-bezier(.77,0,.175,1); }
.slide { min-width: 100%; height: 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(13,37,80,0.75) 40%, transparent); }
.slide-caption { position: absolute; left: 80px; top: 50%; transform: translateY(-50%); color: var(--white); max-width: 520px; }
.slide-caption h2 { font-family: var(--font-head); font-size: 2.6rem; line-height: 1.2; margin-bottom: 12px; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.slide-caption p { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 24px; }
.slide-caption a { background: var(--gold); color: var(--navy); padding: 12px 28px; border-radius: 30px; font-weight: 700; display: inline-block; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.18); backdrop-filter: blur(4px); color: white; border: 2px solid rgba(255,255,255,0.35); width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: all var(--transition); z-index: 10; }
.slider-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all var(--transition); border: none; }
.dot.active { background: var(--gold); transform: scale(1.3); }

/* ---- SECTION UTILITIES ---- */
.section { padding: 64px 0; }
.section-alt { background: var(--offwhite); }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-family: var(--font-head); font-size: 2rem; color: var(--navy); position: relative; display: inline-block; }
.section-title h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--gold); border-radius: 2px; margin: 12px auto 0; }
.section-title p { color: var(--muted); margin-top: 12px; }

/* ---- STUDENT EVENT SLIDER ---- */
.events-slider-wrap { position: relative; overflow: hidden; }
.events-track { display: flex; gap: 24px; transition: transform 0.5s ease; }
.event-card { min-width: 220px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px 20px; text-align: center; flex-shrink: 0; border-top: 4px solid var(--gold); }
.event-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--gold); }
.event-photo-placeholder { width: 80px; height: 80px; border-radius: 50%; background: var(--light); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--muted); border: 3px solid var(--gold); }
.event-badge { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; margin-bottom: 8px; }
.badge-birthday { background: #fef3c7; color: #92400e; }
.badge-selection { background: #d1fae5; color: #065f46; }
.badge-exam { background: #dbeafe; color: #1e40af; }
.event-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); }
.event-card p { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* ---- GALLERY GRID ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(13,37,80,0.55); opacity: 0; transition: opacity var(--transition); display: flex; align-items: center; justify-content: center; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: var(--gold); font-size: 2rem; }

/* ---- PDF LIST ---- */
.pdf-list { list-style: none; }
.pdf-item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: var(--white); border-radius: var(--radius); margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-left: 4px solid var(--gold); transition: all var(--transition); }
.pdf-item:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.pdf-item .pdf-icon { color: var(--danger); font-size: 1.6rem; flex-shrink: 0; }
.pdf-item .pdf-meta { flex: 1; }
.pdf-item .pdf-title { font-weight: 600; color: var(--navy); }
.pdf-item .pdf-info { font-size: 0.8rem; color: var(--muted); }
.pdf-item a.btn-download { background: var(--navy); color: var(--white); padding: 8px 16px; border-radius: var(--radius); font-size: 0.82rem; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: background var(--transition); }
.pdf-item a.btn-download:hover { background: var(--gold); color: var(--navy); }

/* ---- ADMISSION FORM ---- */
.admission-form { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 40px; max-width: 900px; margin: 0 auto; }
.form-section-title { font-family: var(--font-head); color: var(--navy); font-size: 1.15rem; border-bottom: 2px solid var(--gold); padding-bottom: 8px; margin: 28px 0 20px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius);
    font-family: var(--font-body); font-size: 0.92rem; transition: border-color var(--transition);
    background: var(--offwhite); color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--navy); background: var(--white);
}
.form-group .required { color: var(--danger); }
.btn-primary { background: var(--navy); color: var(--white); border: none; padding: 14px 36px; border-radius: 30px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,162,39,0.4); }
.alert { padding: 14px 20px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 600; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--success); }
.alert-error { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger); }

/* ---- PAGE CONTENT ---- */
.page-content { max-width: 900px; margin: 0 auto; padding: 48px 24px; }
.page-content h2 { font-family: var(--font-head); color: var(--navy); font-size: 1.8rem; margin-bottom: 20px; }
.page-content h3 { color: var(--navy2); margin: 20px 0 10px; }
.page-content p { margin-bottom: 16px; color: var(--text); }

/* ---- STATS BAR ---- */
.stats-bar { background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item { color: var(--white); }
.stat-number { font-family: var(--font-head); font-size: 2.5rem; color: var(--gold); font-weight: 800; }
.stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.75); margin-top: 4px; }

/* ---- SOCIAL FLOAT ---- */
.social-float { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 999; display: flex; flex-direction: column; }
.social-float a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem; transition: all var(--transition); border-radius: 4px 0 0 4px; margin-bottom: 3px; }
.sf-facebook { background: #1877f2; }
.sf-twitter { background: #1da1f2; }
.sf-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.sf-youtube { background: #ff0000; }
.sf-linkedin { background: #0077b5; }
.social-float a:hover { width: 52px; opacity: 0.9; }

/* ---- SCROLL TOP ---- */
.scroll-top { position: fixed; bottom: 30px; right: 20px; width: 46px; height: 46px; background: var(--navy); color: var(--white); border: none; border-radius: 50%; cursor: pointer; font-size: 1rem; display: none; align-items: center; justify-content: center; box-shadow: var(--shadow); z-index: 999; transition: all var(--transition); }
.scroll-top:hover { background: var(--gold); color: var(--navy); transform: translateY(-4px); }
.scroll-top.show { display: flex; }

/* ---- FOOTER ---- */
.site-footer { background: var(--navy); color: #8ea8c8; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 40px; padding: 56px 0 40px; }
.footer-col h4 { color: var(--gold); font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 20px; position: relative; }
.footer-col h4::after { content: ''; display: block; width: 36px; height: 2px; background: var(--gold); margin-top: 8px; }
.footer-col p { font-size: 0.88rem; line-height: 1.8; margin-bottom: 8px; }
.footer-col i { color: var(--gold); margin-right: 8px; width: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #8ea8c8; font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-links i { font-size: 0.7rem; color: var(--gold); margin-right: 6px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #8ea8c8; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: all var(--transition); }
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; text-align: center; font-size: 0.84rem; }

/* ---- LIGHTBOX ---- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; display: none; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); box-shadow: 0 8px 48px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 20px; right: 28px; color: white; font-size: 2rem; cursor: pointer; background: none; border: none; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); color: white; border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ---- ADMIN ---- */
.admin-wrap { display: flex; min-height: 100vh; font-family: var(--font-body); }
.admin-sidebar { width: 260px; background: var(--navy); padding: 0; flex-shrink: 0; }
.admin-sidebar-logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar-logo h2 { color: var(--gold); font-family: var(--font-head); font-size: 1.1rem; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 13px 22px; color: #8ea8c8; font-size: 0.9rem; transition: all var(--transition); border-left: 3px solid transparent; }
.admin-nav a:hover, .admin-nav a.active { color: var(--gold); background: rgba(201,162,39,0.08); border-left-color: var(--gold); }
.admin-nav a i { width: 18px; }
.admin-content { flex: 1; padding: 32px; background: var(--offwhite); }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.admin-header h1 { font-family: var(--font-head); color: var(--navy); font-size: 1.6rem; }
.admin-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; margin-bottom: 24px; }
.admin-card h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--light); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th { background: var(--navy); color: var(--white); padding: 12px 16px; text-align: left; }
.admin-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); }
.admin-table tr:hover td { background: var(--offwhite); }
.btn-sm { padding: 6px 14px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; cursor: pointer; border: none; transition: all var(--transition); }
.btn-edit { background: var(--navy); color: white; }
.btn-delete { background: var(--danger); color: white; }
.btn-edit:hover { background: var(--navy2); }
.btn-delete:hover { opacity: 0.85; }
.badge-status { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-accepted { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; text-align: center; border-top: 4px solid var(--gold); }
.stat-card .num { font-family: var(--font-head); font-size: 2rem; color: var(--navy); font-weight: 800; }
.stat-card .lbl { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .hero-slider { height: 380px; }
    .slide-caption { left: 30px; }
    .slide-caption h2 { font-size: 1.6rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-wrap { flex-direction: column; }
    .admin-sidebar { width: 100%; }
}
@media (max-width: 640px) {
    .hamburger { display: flex; }
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy2); box-shadow: var(--shadow); }
    .nav-menu.open { display: flex; }
    .nav-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: rgba(0,0,0,0.15); display: none; border-radius: 0; }
    .nav-item.open .dropdown { display: block; }
    .nav-inner { position: relative; }
    .hero-slider { height: 280px; }
    .slide-caption h2 { font-size: 1.2rem; }
    .site-name { font-size: 1.3rem; }
    .social-float { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
