/* ============================================================
   JODHPUR NATIONAL UNIVERSITY — MAIN STYLESHEET
   Domain: jodhpuruniversity-ac.in
   ============================================================ */

:root {
  --primary: #8B1A1A;
  --primary-dark: #5e1010;
  --accent: #D4A017;
  --accent-light: #f5c842;
  --navy: #1a2044;
  --light-bg: #f8f4f0;
  --white: #ffffff;
  --text: #222222;
  --text-muted: #666;
  --border: #e0d5c5;
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', Arial, sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --radius: 6px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); }

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

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section-alt { background: var(--light-bg); }

/* ---- TOP RIBBON ---- */
.top-ribbon {
  background: var(--primary-dark);
  color: #ffd;
  font-size: 12px;
  padding: 6px 0;
}
.top-ribbon .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px; }
.top-ribbon a { color: #ffd; }
.top-ribbon a:hover { color: var(--accent-light); }

/* ---- HEADER ---- */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  position: sticky; top: 0; z-index: 999;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; max-width: 1200px; margin: 0 auto;
}
.logo-wrap { display: flex; align-items: center; gap: 14px; }
.logo-wrap img { height: 70px; width: 70px; object-fit: contain; }
.logo-text h1 { font-size: 20px; color: var(--primary); font-family: var(--font-display); line-height: 1.2; }
.logo-text p { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }

/* ---- NAV ---- */
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  padding: 10px 14px;
  font-size: 14px; font-weight: 600;
  color: var(--navy);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a.active { background: var(--primary); color: var(--white); }
.main-nav .nav-result { background: var(--accent); color: var(--white) !important; border-radius: 4px; }
.main-nav .nav-result:hover { background: var(--primary); }

/* dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 10px; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); min-width: 220px;
  box-shadow: var(--shadow); border-radius: var(--radius);
  z-index: 1000; border-top: 3px solid var(--primary);
}
.dropdown-menu a {
  display: block; padding: 10px 18px;
  font-size: 13px; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--light-bg); color: var(--primary); }
.nav-dropdown:hover .dropdown-menu { display: block; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); margin: 5px 0; transition: var(--transition); }

/* ---- HERO SLIDER ---- */
.hero { position: relative; overflow: hidden; height: 520px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(139,26,26,0.82) 0%, rgba(26,32,68,0.45) 60%, transparent 100%);
  display: flex; align-items: center;
}
.slide-content { padding: 0 60px; max-width: 600px; color: var(--white); }
.slide-content .eyebrow { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-light); margin-bottom: 12px; }
.slide-content h2 { font-family: var(--font-display); font-size: 40px; line-height: 1.2; margin-bottom: 16px; }
.slide-content p { font-size: 16px; line-height: 1.7; margin-bottom: 24px; opacity: 0.9; }
.btn { display: inline-block; padding: 12px 28px; border-radius: 4px; font-weight: 700; font-size: 14px; cursor: pointer; transition: all var(--transition); border: 2px solid transparent; }
.btn-primary { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); }
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--primary); }
.btn-red { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-red:hover { background: var(--primary-dark); }

.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: var(--transition); }
.dot.active { background: var(--accent); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: white; border: none; font-size: 22px; width: 44px; height: 44px; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.slider-arrow:hover { background: var(--primary); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

/* ---- MARQUEE ---- */
.marquee-bar { background: var(--navy); color: #dde; padding: 10px 0; overflow: hidden; }
.marquee-inner { display: flex; gap: 0; white-space: nowrap; animation: marquee 40s linear infinite; }
.marquee-inner span { padding: 0 40px; font-size: 13px; }
.marquee-inner span::before { content: '◆ '; color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- QUICK STATS ---- */
.stats-bar { background: var(--primary); color: white; padding: 28px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.stat-item { text-align: center; padding: 10px; border-right: 1px solid rgba(255,255,255,0.2); }
.stat-item:last-child { border: none; }
.stat-num { font-size: 36px; font-weight: 800; color: var(--accent-light); font-family: var(--font-display); }
.stat-label { font-size: 13px; opacity: 0.85; margin-top: 4px; }

/* ---- SECTION HEADING ---- */
.section-heading { text-align: center; margin-bottom: 48px; }
.section-heading .tag { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--primary); font-weight: 700; margin-bottom: 8px; display: block; }
.section-heading h2 { font-family: var(--font-display); font-size: 34px; color: var(--navy); }
.section-heading p { color: var(--text-muted); margin-top: 10px; max-width: 560px; margin-inline: auto; }
.divider { width: 60px; height: 3px; background: var(--accent); margin: 14px auto 0; }

/* ---- ABOUT STRIP ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { position: relative; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.about-img img { display: block; width: 100%; }
.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--primary); color: white; padding: 20px; border-radius: 8px;
  text-align: center; box-shadow: var(--shadow);
}
.about-badge strong { display: block; font-size: 28px; color: var(--accent-light); }
.about-badge span { font-size: 11px; }
.about-text h2 { font-family: var(--font-display); font-size: 30px; color: var(--navy); margin-bottom: 16px; }
.about-text p { line-height: 1.8; color: var(--text-muted); margin-bottom: 14px; }
.about-points { list-style: none; margin: 20px 0; }
.about-points li { padding: 6px 0 6px 24px; position: relative; font-size: 14px; }
.about-points li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ---- PROGRAMMES GRID ---- */
.programmes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prog-card {
  background: var(--white); border-radius: 8px;
  border: 1px solid var(--border); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.prog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prog-card-icon { background: var(--primary); color: white; padding: 24px; font-size: 36px; text-align: center; }
.prog-card-body { padding: 20px; flex: 1; }
.prog-card-body h3 { font-size: 16px; color: var(--navy); margin-bottom: 8px; font-family: var(--font-display); }
.prog-card-body p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.prog-card-footer { padding: 0 20px 20px; }

/* ---- NEWS & NOTICES ---- */
.news-notices-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.panel { background: var(--white); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.panel-header { background: var(--primary); color: white; padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; }
.panel-header h3 { font-size: 16px; }
.panel-header a { color: var(--accent-light); font-size: 12px; }
.panel-body { padding: 0; max-height: 360px; overflow-y: auto; }
.news-item { border-bottom: 1px solid var(--border); padding: 14px 20px; display: grid; grid-template-columns: 50px 1fr; gap: 12px; align-items: start; }
.news-item:last-child { border: none; }
.news-date { background: var(--primary); color: white; border-radius: 4px; text-align: center; padding: 8px 4px; }
.news-date .day { display: block; font-size: 20px; font-weight: 700; line-height: 1; }
.news-date .mon { display: block; font-size: 10px; }
.news-title { font-size: 13px; color: var(--text); line-height: 1.5; }
.news-title a { color: var(--text); }
.news-title a:hover { color: var(--primary); }
.notice-item { border-bottom: 1px solid var(--border); padding: 12px 20px; font-size: 13px; }
.notice-item:last-child { border: none; }
.notice-item a { color: var(--text); display: flex; align-items: center; gap: 8px; }
.notice-item a::before { content: '📋'; font-size: 14px; }
.notice-item a:hover { color: var(--primary); }
.badge-new { background: #e53e3e; color: white; font-size: 9px; padding: 2px 5px; border-radius: 3px; font-weight: 700; }

/* ---- GALLERY ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-item { overflow: hidden; border-radius: 6px; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.large { grid-column: span 2; grid-row: span 2; }

/* ---- RESULT BOX ---- */
.result-search-box {
  max-width: 640px; margin: 0 auto;
  background: var(--white); border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.13);
  padding: 48px 40px;
}
.result-search-box h2 { font-family: var(--font-display); color: var(--primary); margin-bottom: 8px; }
.result-search-box p { color: var(--text-muted); margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: 6px;
  font-size: 15px; color: var(--text);
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); }
.result-output { margin-top: 28px; display: none; }
.result-card {
  border: 2px solid var(--accent); border-radius: 8px;
  padding: 20px 24px; background: #fffbf0;
}
.result-card h3 { color: var(--primary); margin-bottom: 12px; }
.result-pdf-link {
  display: flex; align-items: center; gap: 12px;
  background: var(--primary); color: white;
  padding: 14px 20px; border-radius: 6px;
  font-weight: 600; margin-top: 12px;
}
.result-pdf-link:hover { background: var(--primary-dark); color: white; }
.no-result { background: #fff3f3; border: 2px solid #fca5a5; border-radius: 8px; padding: 20px; color: #c53030; text-align: center; }

/* ---- ADMISSION BANNER ---- */
.admission-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white; text-align: center; padding: 60px 20px;
}
.admission-banner h2 { font-family: var(--font-display); font-size: 34px; margin-bottom: 12px; }
.admission-banner p { font-size: 17px; opacity: 0.9; margin-bottom: 28px; }
.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- FOOTER ---- */
.site-footer { background: var(--navy); color: #b0bbd8; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { height: 56px; width: 56px; object-fit: contain; }
.footer-logo-text h3 { color: white; font-size: 16px; font-family: var(--font-display); }
.footer-logo-text p { font-size: 11px; color: var(--accent-light); }
.footer-about p { font-size: 13px; line-height: 1.8; }
.footer-col h4 { color: white; font-size: 14px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #b0bbd8; font-size: 13px; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent-light); }
.footer-contact p { font-size: 13px; line-height: 1.8; }
.footer-contact a { color: #b0bbd8; }
.footer-contact a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; flex-wrap: wrap; gap: 8px;
}
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: background var(--transition);
}
.social-links a:hover { background: var(--primary); }

/* ---- INNER PAGE HERO ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--navy));
  color: white; padding: 60px 0 40px; text-align: center;
}
.page-hero h1 { font-family: var(--font-display); font-size: 36px; margin-bottom: 8px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.7); }
.breadcrumb a { color: var(--accent-light); }

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
  .programmes-grid { grid-template-columns: 1fr 1fr; }
  .news-notices-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; box-shadow: var(--shadow); padding: 10px; }
  .main-nav.open { display: flex; }
  .hamburger { display: flex; flex-direction: column; }
  .site-header { position: relative; }
  .header-inner { position: relative; }
  .hero { height: 380px; }
  .slide-content { padding: 0 24px; }
  .slide-content h2 { font-size: 26px; }
  .programmes-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-badge { display: none; }
}
