/* ==========================================================================
   B.N. COLLEGE HOSTEL - Main Modern Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #0d47a1;
  --primary-dark: #002171;
  --secondary-color: #d32f2f;
  --accent-color: #ff8f00;
  --bg-light: #f4f6f9;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 8px;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  background-color: #fff;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* --- Topbar --- */
.topbar {
  background: linear-gradient(90deg, #0d47a1, #1565c0);
  color: #fff;
  padding: 8px 0;
  font-size: 14px;
}

.topbar .info {
  margin-right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar a {
  color: #fff;
}

.topbar .social_top {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 12px;
}

.topbar .social_top a {
  color: rgba(255,255,255,0.85);
}

.topbar .social_top a:hover {
  color: #fff;
}

/* --- Header & Branding --- */
.header-brand-section {
  background: #ffffff;
  padding: 14px 0;
  border-bottom: 1px solid #e9ecef;
}

.brand-banner {
  display: flex;
  align-items: center;
}

.brand-link-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none !important;
}

.brand-logo-seal {
  height: 68px !important;
  max-height: 70px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.08));
  transition: transform 0.2s ease;
}

.brand-link-wrapper:hover .brand-logo-seal {
  transform: scale(1.03);
}

.brand-title-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title-box h1 {
  font-size: 24px;
  font-weight: 800;
  color: #002b75;
  margin: 0;
  letter-spacing: 0.5px;
  line-height: 1.25;
  font-family: 'Outfit', sans-serif;
}

.brand-title-box p {
  margin: 3px 0 0;
  font-size: 14px;
  color: #d32f2f;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.25;
}

@media (max-width: 768px) {
  .header-brand-section {
    padding: 10px 0 !important;
    text-align: center !important;
  }
  .brand-banner {
    justify-content: center !important;
  }
  .brand-link-wrapper {
    gap: 12px !important;
    text-align: left !important;
  }
  .brand-logo-seal {
    height: 50px !important;
    max-height: 50px !important;
  }
  .brand-title-box h1 {
    font-size: 16px !important;
  }
  .brand-title-box p {
    font-size: 11px !important;
  }
}

/* --- Navbar --- */
.navbar-custom {
  background: #fff;
  box-shadow: var(--shadow-sm);
  border: none;
  border-radius: 0;
  margin-bottom: 0;
}

.navbar-custom .navbar-nav > li > a {
  color: #333;
  font-weight: 600;
  font-size: 15px;
  padding: 16px 20px;
  transition: all 0.2s;
}

.navbar-custom .navbar-nav > li > a:hover,
.navbar-custom .navbar-nav > li.active > a {
  color: var(--primary-color);
  background-color: #e3f2fd;
  border-bottom: 3px solid var(--primary-color);
}

/* --- Slideshow --- */
.mySlides {
  display: none;
  position: relative;
  overflow: hidden;
  max-height: 480px;
}

.mySlides img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 40px;
  left: 5%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 20px 30px;
  border-left: 5px solid var(--accent-color);
  border-radius: 4px;
  max-width: 600px;
}

.slide-caption h3 {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 24px;
}

/* --- Page Sections --- */
.section-padding {
  padding: 50px 0;
}

.heading {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 25px;
  position: relative;
}

.heading .divider-left {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  margin-top: 8px;
  border-radius: 2px;
}

/* --- Cards & Feature Boxes --- */
.card-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 25px;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--primary-color);
}

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

.event-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}

.event-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.event-card .card-body {
  padding: 20px;
}

.event-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}

/* --- Tables --- */
.table-custom {
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border-collapse: separate;
  border-spacing: 0;
}

.table-custom th {
  background: var(--primary-color);
  color: #fff;
  padding: 14px 16px;
  font-weight: 600;
  text-align: left;
}

.table-custom td {
  padding: 12px 16px;
  border-bottom: 1px solid #e9ecef;
}

.table-custom tr:hover td {
  background-color: #f8f9fa;
}

/* --- Buttons --- */
.btn-custom-primary {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 6px;
  border: none;
  transition: all 0.3s;
}

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

.btn-custom-secondary {
  background-color: var(--secondary-color);
  color: #fff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 6px;
  border: none;
}

.btn-custom-secondary:hover {
  background-color: #b71c1c;
  color: #fff;
}

/* --- Form Controls --- */
.form-container {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 35px;
  margin-bottom: 40px;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.form-control {
  border-radius: 6px;
  border: 1px solid #ced4da;
  padding: 10px 14px;
  height: auto;
  font-size: 15px;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 71, 161, 0.25);
}

/* --- Status Badges --- */
.badge-status {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  display: inline-block;
}

.badge-pending {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.badge-hold {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.badge-approved {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* --- Footer --- */
footer {
  background: #111827;
  color: #9ca3af;
  padding: 50px 0 20px;
  margin-top: 60px;
}

footer h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  margin-bottom: 10px;
}

footer ul li a {
  color: #9ca3af;
}

footer ul li a:hover {
  color: #fff;
}

footer .footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
}
