/* ================================================================
   Sant Bula Satyanam Das Birbal P.G. College - Main Stylesheet
   Inspired by VBSPU Website Design
   ================================================================ */

:root {
  --primary: #8B0000;      /* Deep Maroon */
  --secondary: #c8961e;    /* Golden */
  --accent: #e8174a;       /* Pink/Red */
  --pink-dark: #9b0a4a;    /* Dark Pink */
  --light-bg: #fdf6f0;
  --text-dark: #1a1a2e;
  --text-muted: #666;
  --white: #fff;
  --border: #e0c88a;
  --gradient: linear-gradient(135deg, #8B0000, #c8961e);
  --gradient-pink: linear-gradient(135deg, #8B0000, #9b0a4a);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
}

a { text-decoration: none; color: inherit; transition: all 0.3s; }
a:hover { color: var(--secondary); }
img { max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---- Accessibility Bar ---- */
.accessibility-bar {
  background: #1a1a2e;
  color: #ccc;
  padding: 4px 0;
  font-size: 12px;
}
.access-links { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.access-links a { color: #ccc; font-size: 11px; }
.access-links a:hover { color: var(--secondary); }
.univ-link { color: var(--secondary) !important; font-size: 12px; font-weight: 500; }
.univ-link:hover { text-decoration: underline; }

/* ---- News Ticker ---- */
.news-ticker-wrapper {
  background: var(--gradient-pink);
  color: white;
  padding: 7px 0;
  font-size: 13px;
  overflow: hidden;
}
.ticker-label span {
  background: var(--secondary);
  color: #1a1a2e;
  padding: 3px 14px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.ticker-content { overflow: hidden; }
.ticker-scroll { overflow: hidden; position: relative; }
.ticker-items {
  display: inline-flex;
  gap: 50px;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.ticker-item { white-space: nowrap; }
.ticker-item i { color: var(--secondary); margin-right: 5px; font-size: 8px; }
@keyframes ticker {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}
.ticker-items:hover { animation-play-state: paused; }

/* ---- Header ---- */
.site-header {
  background: var(--white);
  padding: 12px 0;
  border-bottom: 3px solid var(--secondary);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}
.header-logo {
  width: 90px; height: 90px;
  object-fit: contain;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}
.header-title-area { padding: 5px; }
.header-hindi {
  font-size: 16px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}
.college-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.college-location {
  font-size: 13px;
  color: var(--text-muted);
  margin: 3px 0;
}
.college-affil a {
  font-size: 12px;
  color: var(--secondary);
  font-weight: 500;
}
.college-affil a:hover { color: var(--primary); }

/* Dignitary Photos */
.dignitaries-photos { padding: 5px 0; }
.dignitary-img {
  width: 68px; height: 68px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--secondary);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.dignitary-name {
  font-size: 10px;
  color: var(--primary);
  text-align: center;
  margin-top: 3px;
  font-weight: 600;
  line-height: 1.3;
}
.dignitary-name small { font-weight: 400; color: var(--text-muted); }

/* ---- Navigation ---- */
.main-nav {
  background: var(--gradient-pink) !important;
  padding: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  position: sticky;
  top: 0;
}
.main-nav .navbar-nav { gap: 0; }
.main-nav .nav-link {
  color: rgba(255,255,255,0.92) !important;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 14px !important;
  letter-spacing: 0.3px;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--secondary) !important;
  border-bottom-color: var(--secondary);
  background: rgba(0,0,0,0.2);
}
.main-nav .dropdown-menu {
  background: #1a1a2e;
  border: 1px solid var(--secondary);
  border-radius: 0 0 8px 8px;
  padding: 5px 0;
  margin-top: 0;
  min-width: 220px;
}
.main-nav .dropdown-item {
  color: #ddd;
  font-size: 13px;
  padding: 8px 18px;
  border-left: 3px solid transparent;
}
.main-nav .dropdown-item:hover {
  background: rgba(200,150,30,0.15);
  color: var(--secondary);
  border-left-color: var(--secondary);
}
.admin-link { color: var(--secondary) !important; font-weight: 600 !important; }
.navbar-toggler { border: 1px solid rgba(255,255,255,0.5); padding: 5px 10px; }
.navbar-toggler i { color: white; }
.search-form .form-control {
  border-radius: 20px 0 0 20px;
  border: none;
  font-size: 12px;
  background: rgba(255,255,255,0.15);
  color: white;
}
.search-form .form-control::placeholder { color: rgba(255,255,255,0.6); }
.btn-search {
  background: var(--secondary);
  border: none;
  color: #1a1a2e;
  border-radius: 0 20px 20px 0;
  padding: 4px 12px;
}

/* ---- Hero Slider ---- */
.hero-slider { position: relative; overflow: hidden; }
.hero-slider .carousel-item img { width: 100%; height: 420px; object-fit: cover; }
.hero-slider .carousel-caption {
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  bottom: 0; left: 0; right: 0;
  padding: 30px 40px 20px;
  text-align: left;
}
.hero-slider .carousel-caption h3 { font-size: 22px; font-weight: 700; }
.carousel-control-prev, .carousel-control-next {
  background: var(--secondary);
  width: 40px; height: 40px;
  border-radius: 50%;
  top: 50%; transform: translateY(-50%);
  opacity: 0.8;
}

/* ---- Section Styles ---- */
.section-title {
  text-align: center;
  padding: 30px 0 20px;
  position: relative;
}
.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--primary);
  font-weight: 700;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient);
  margin: 8px auto 0;
  border-radius: 2px;
}
.section-subtitle { color: var(--text-muted); font-size: 14px; margin-top: 5px; }

/* ---- Notice + Announcements ---- */
.home-notices-section { background: var(--light-bg); padding: 30px 0; }
.notice-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.notice-card-header {
  background: var(--gradient-pink);
  color: white;
  padding: 12px 16px;
  border-radius: 10px 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.notice-list { flex: 1; overflow: hidden; padding: 10px 0; }
.notice-scroll { max-height: 300px; overflow-y: auto; animation: scrollUp 20s linear infinite; }
.notice-scroll:hover { animation-play-state: paused; }
@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.notice-item {
  padding: 9px 15px;
  border-bottom: 1px dashed #ddd;
  font-size: 13px;
}
.notice-item:last-child { border-bottom: none; }
.notice-item a { color: var(--text-dark); }
.notice-item a:hover { color: var(--primary); }
.notice-date { font-size: 11px; color: var(--text-muted); display: block; }
.new-badge {
  background: #dc3545;
  color: white;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.notice-card-footer {
  padding: 10px 15px;
  text-align: center;
  border-top: 1px solid #eee;
}
.notice-card-footer a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

/* ---- Stats Counter ---- */
.stats-section {
  background: var(--gradient);
  color: white;
  padding: 40px 0;
}
.stat-box { text-align: center; padding: 20px; }
.stat-number {
  font-size: 44px;
  font-weight: 700;
  color: var(--secondary);
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
.stat-label { font-size: 14px; margin-top: 8px; opacity: 0.9; }

/* ---- About Section ---- */
.about-section { padding: 50px 0; }
.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 15px;
}
.about-text p { color: #555; line-height: 1.8; margin-bottom: 15px; text-align: justify; }
.about-img {
  border-radius: 15px;
  box-shadow: 8px 8px 25px rgba(0,0,0,0.15);
  border: 4px solid var(--secondary);
}
.btn-primary-custom {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 10px 28px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139,0,0,0.4);
  color: white;
}

/* ---- Courses Section ---- */
.courses-section { background: var(--light-bg); padding: 50px 0; }
.course-card {
  background: white;
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  border: 1px solid #eee;
  transition: all 0.3s;
  height: 100%;
  border-top: 4px solid transparent;
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border-top-color: var(--secondary);
}
.course-icon {
  width: 65px; height: 65px;
  border-radius: 50%;
  background: var(--gradient-pink);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin: 0 auto 15px;
}
.course-card h5 { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.course-card p { font-size: 12px; color: var(--text-muted); }

/* ---- Footer ---- */
.site-footer {
  background: linear-gradient(180deg, #1a0a2e 0%, #0d0d1a 100%);
  color: #ccc;
  padding: 50px 0 0;
  margin-top: 30px;
}
.footer-col { padding: 0 25px 30px; }
.footer-logo { width: 60px; height: 60px; margin-bottom: 10px; border-radius: 50%; border: 2px solid var(--secondary); }
.footer-col h4, .footer-col h5 {
  color: var(--secondary);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(200,150,30,0.3);
}
.footer-contact li {
  padding: 6px 0;
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.footer-contact li i { color: var(--secondary); margin-top: 2px; flex-shrink: 0; }
.footer-contact a { color: #ccc; }
.footer-contact a:hover { color: var(--secondary); }
.footer-links li { padding: 5px 0; }
.footer-links a { font-size: 13px; color: #bbb; }
.footer-links a:hover { color: var(--secondary); padding-left: 5px; }
.footer-links i { font-size: 11px; color: var(--secondary); margin-right: 5px; }
.social-icons { display: flex; gap: 10px; margin-top: 15px; }
.social-icons a {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: all 0.3s;
}
.social-icons .fb { background: #1877f2; color: white; }
.social-icons .tw { background: #000; color: white; }
.social-icons .yt { background: #ff0000; color: white; }
.social-icons .ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.social-icons a:hover { transform: scale(1.15); }
.footer-hr { border-color: rgba(200,150,30,0.3); margin: 10px 0; }
.footer-bottom { padding: 15px 25px; }
.footer-bottom p { font-size: 12px; color: #999; }
.footer-bottom strong { color: var(--secondary); }
.policy-links { display: flex; gap: 15px; justify-content: flex-end; flex-wrap: wrap; }
.policy-links a { font-size: 12px; color: #999; }
.policy-links a:hover { color: var(--secondary); }
.last-updated { font-size: 11px; color: #888; margin-top: 8px; }

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 25px; right: 25px;
  width: 40px; height: 40px;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 9999;
  box-shadow: 0 3px 15px rgba(0,0,0,0.3);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { color: white; transform: scale(1.1); }

/* ---- Page Banner ---- */
.page-banner {
  background: var(--gradient-pink);
  color: white;
  padding: 30px 0;
  text-align: center;
}
.page-banner h1 { font-family: 'Playfair Display', serif; font-size: 30px; margin-bottom: 8px; }
.breadcrumb-custom { justify-content: center; }
.breadcrumb-custom .breadcrumb-item a { color: rgba(255,255,255,0.8); }
.breadcrumb-custom .breadcrumb-item.active, .breadcrumb-custom .breadcrumb-item::before { color: var(--secondary); }

/* ---- Result Portal ---- */
.result-portal-section { padding: 50px 0; }
.result-search-box {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.1);
  border-top: 5px solid var(--primary);
  max-width: 700px;
  margin: 0 auto;
}
.result-search-box h3 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-size: 22px;
  text-align: center;
  margin-bottom: 25px;
}
.form-label { font-size: 13px; font-weight: 600; color: var(--primary); }
.form-select, .form-control {
  border: 2px solid #e0c88a;
  border-radius: 8px;
  font-size: 13px;
  padding: 10px 14px;
}
.form-select:focus, .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139,0,0,0.1);
}
.btn-result-search {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 12px 35px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  width: 100%;
  transition: all 0.3s;
}
.btn-result-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139,0,0,0.4);
  color: white;
}
.result-item {
  background: white;
  border: 1px solid #e0c88a;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s;
}
.result-item:hover {
  border-color: var(--primary);
  box-shadow: 0 3px 15px rgba(139,0,0,0.1);
}
.result-icon { color: var(--accent); font-size: 30px; flex-shrink: 0; }
.result-info h6 { color: var(--primary); margin-bottom: 3px; font-size: 14px; }
.result-info p { font-size: 12px; color: var(--text-muted); margin: 0; }
.btn-view-result {
  background: var(--primary);
  color: white;
  border: none;
  padding: 7px 18px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-view-result:hover { background: var(--accent); color: white; }

/* ---- Admin Panel ---- */
.admin-sidebar {
  background: #1a0a2e;
  min-height: 100vh;
  padding: 0;
  width: 250px;
  position: fixed;
  left: 0; top: 0;
  z-index: 100;
  overflow-y: auto;
}
.admin-content { margin-left: 250px; min-height: 100vh; background: #f5f6fa; }
.admin-sidebar-header {
  background: var(--gradient-pink);
  padding: 20px 15px;
  text-align: center;
}
.admin-sidebar-header img { width: 55px; height: 55px; border-radius: 50%; border: 2px solid var(--secondary); }
.admin-sidebar-header h6 { color: white; margin: 8px 0 2px; font-size: 13px; }
.admin-sidebar-header small { color: rgba(255,255,255,0.7); font-size: 11px; }
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  border-left: 3px solid transparent;
  transition: all 0.3s;
}
.admin-nav-link:hover, .admin-nav-link.active {
  color: var(--secondary);
  border-left-color: var(--secondary);
  background: rgba(200,150,30,0.1);
}
.admin-nav-link i { width: 18px; text-align: center; }
.admin-nav-divider {
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  letter-spacing: 2px;
  padding: 12px 18px 5px;
  text-transform: uppercase;
}
.admin-topbar {
  background: white;
  padding: 10px 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0; z-index: 99;
}
.admin-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  margin-bottom: 20px;
}
.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--secondary);
}
.admin-card-header h5 { font-size: 15px; font-weight: 600; color: var(--primary); margin: 0; }
.stat-card {
  background: var(--gradient-pink);
  color: white;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.stat-card-icon { font-size: 36px; opacity: 0.8; }
.stat-card-num { font-size: 30px; font-weight: 700; line-height: 1; }
.stat-card-label { font-size: 13px; opacity: 0.85; }
.table-responsive { border-radius: 8px; overflow: hidden; }
table { font-size: 13px; }
.table th { background: var(--primary); color: white; font-weight: 600; border: none; }
.table td { vertical-align: middle; }
.badge-active { background: #28a745; color: white; padding: 3px 10px; border-radius: 12px; font-size: 11px; }
.badge-inactive { background: #dc3545; color: white; padding: 3px 10px; border-radius: 12px; font-size: 11px; }
.btn-sm-action {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 5px;
  border: none;
  margin: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-edit { background: #17a2b8; color: white; }
.btn-delete { background: #dc3545; color: white; }
.btn-view { background: #6c757d; color: white; }
.btn-sm-action:hover { opacity: 0.85; transform: scale(1.05); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .college-name { font-size: 16px; }
  .header-hindi { font-size: 13px; }
  .dignitary-img { width: 50px; height: 50px; }
  .dignitary-name { font-size: 9px; }
  .hero-slider .carousel-item img { height: 250px; }
  .admin-sidebar { transform: translateX(-100%); transition: 0.3s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
  .stat-number { font-size: 32px; }
  .result-search-box { padding: 25px 15px; }
}
