/* Bootstrap 5 Grid System and Components */
/* This gives you Bootstrap column control without theme conflicts */

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Bootstrap Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col, .col-12, .col-md-4, .col-md-6, .col-md-8, .col-lg-3, .col-lg-4, .col-lg-6, .col-lg-8 {
  padding: 0 15px;
  width: 100%;
}

/* Column sizes */
@media (min-width: 768px) {
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.333333%; }
  .col-md-6 { width: 50%; }
  .col-md-8 { width: 66.666667%; }
}

@media (min-width: 992px) {
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.333333%; }
  .col-lg-6 { width: 50%; }
  .col-lg-8 { width: 66.666667%; }
}

/* Bootstrap Cards */
.card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1.5rem;
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.card-text {
  margin-bottom: 1rem;
}

.card.h-100 {
  height: 100%;
}

/* Horizontal card layout: text left, image right */
.card-horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-horizontal .card-textual {
  flex: 1 1 auto;
}

.card-horizontal .card-figure {
  flex: 0 0 auto;
}

.card-title-underline {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.card-title-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 10%;
  max-width: 80px;
  height: 3px;
  background-color: #6200ea;
}

/* Bootstrap Utilities */
.text-center { text-align: center; }
.text-muted { color: #6c757d; }
.text-primary { color: #0d6efd; }

.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }

/* Bootstrap Images */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.rounded { border-radius: 0.375rem; }
.rounded-circle { border-radius: 50%; }
/* Ensure circle wins over PaperMod's .post-content img rounding */
.post-content .rounded-circle { border-radius: 50% !important; }

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Custom H-LRF Styles */
.committee-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 3px solid #dee2e6;
  margin-bottom: 1rem;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .row {
    margin: 0;
  }
  
  .col, .col-12, .col-md-4, .col-md-6, .col-md-8 {
    padding: 0;
    margin-bottom: 1rem;
  }
}

/* Card hover effects */
.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Dark top navbar styling for PaperMod */
.header {
  background-color: #111827; /* slate-900 */
}
.header .nav, .header a, .header .logo a span, .header #menu a span {
  color: #e5e7eb; /* gray-200 */
}
.header #menu a span.active {
  border-bottom: 2px solid #6200ea; /* match card-title-underline */
}

/* Keep header link colors readable on dark navbar */
.header a, .header #menu a span { color: #e5e7eb; }

/* Full-bleed banner only on homepage */
body.list.home .post-content > p:first-child > img,
body.list.home .entry-cover img {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: 50%;
  transform: translateX(-50%);
  height: auto;
  display: block;
}

/* Remove border radius on full-width banner */
body.list.home .post-content > p:first-child > img,
body.list.home .entry-cover img {
  border-radius: 0;
}

/* Restore PaperMod content width */
:root { --main-width: 720px; }

/* Optional: set a custom footer width independent of main */
:root { --footer-width: 1024px; }
