/* ==========================================================================
   MIBIRIZI Saint Augustin TSS - School Blog Theme
   Matches the style of the main website (assets/css/main.css)
   Accent: #ffc451 (gold) | Headings: Raleway | Nav: Poppins | Body: Roboto
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Poppins:wght@400;500;600;700;800&family=Raleway:wght@400;600;700;800;900&display=swap');

:root {
  --default-color: #444444;
  --heading-color: #151515;
  --accent-color: #ffc451;
  --accent-dark: #e6ab2f;
  --surface-color: #ffffff;
  --dark-bg: #060606;
  --border-color: rgba(21, 21, 21, 0.08);
  --heading-font: 'Raleway', sans-serif;
  --body-font: 'Roboto', sans-serif;
  --nav-font: 'Poppins', sans-serif;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 18px 45px rgba(0, 0, 0, 0.14);
}

body {
  font-family: var(--body-font);
  color: var(--default-color);
  background-color: #f7f8fa;
  overflow-x: hidden;
  padding-top: 72px;
}

@media (min-width: 992px) {
  body { padding-top: 72px; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-weight: 800;
}

a { transition: all 0.3s ease; }

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

/* --------------------------------------------------------------------------
   Navbar (dark, matches main site header)
--------------------------------------------------------------------------- */
.blog-navbar {
  background: rgba(6, 6, 6, 0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.blog-navbar .navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
}

.blog-navbar .navbar-brand img {
  height: 46px;
  width: 46px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  background: #fff;
  padding: 2px;
}

.blog-navbar .navbar-brand .sitename {
  font-family: var(--heading-font);
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0 12px;
  line-height: 1.1;
}

.blog-navbar .navbar-brand .sitename span { color: var(--accent-color); }

.blog-navbar .navbar-nav .nav-link {
  font-family: var(--nav-font);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 14px;
  border-radius: 6px;
}

.blog-navbar .navbar-nav .nav-link:hover,
.blog-navbar .navbar-nav .nav-link.active {
  color: var(--accent-color);
}

.blog-navbar .dropdown-menu {
  background: #101010;
  border: none;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  padding: 8px;
}

.blog-navbar .dropdown-item {
  font-family: var(--nav-font);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  padding: 9px 14px;
}

.blog-navbar .dropdown-item:hover {
  background: var(--accent-color);
  color: #151515;
}

.blog-navbar .btn-getstarted {
  font-family: var(--nav-font);
  font-weight: 500;
  font-size: 0.9rem;
  color: #ffffff;
  border: 2px solid var(--accent-color);
  border-radius: 4px;
  padding: 8px 26px;
  margin-left: 10px;
  background: transparent;
}

.blog-navbar .btn-getstarted:hover {
  background: var(--accent-color);
  color: #151515;
}

.blog-navbar .navbar-toggler { border: none; padding: 6px 10px; }
.blog-navbar .navbar-toggler:focus { outline: none; box-shadow: none; }

.toggler-bar {
  display: block;
  width: 24px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   Page hero / title band
--------------------------------------------------------------------------- */
.blog-hero {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 6, 6, 0.78) 0%, rgba(6, 6, 6, 0.86) 100%);
}

.blog-hero .container {
  position: relative;
  z-index: 1;
  padding: 74px 0 64px;
  text-align: center;
  color: #ffffff;
}

.blog-hero h1 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.blog-hero h1 span { color: var(--accent-color); }

.blog-hero .lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.breadcrumb {
  justify-content: center;
  background: transparent;
  margin: 0;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--accent-color);
  font-family: var(--nav-font);
  font-size: 0.85rem;
}

.breadcrumb-item.active { color: rgba(255, 255, 255, 0.8); font-size: 0.85rem; }
.breadcrumb-item + .breadcrumb-item::before { content: "\f105"; font-family: FontAwesome; color: rgba(255, 255, 255, 0.5); }

/* --------------------------------------------------------------------------
   Layout
--------------------------------------------------------------------------- */
.blog-main { padding: 48px 0 64px; }

/* Section titles (mirror main site style) */
.section-title {
  font-family: var(--heading-font);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--heading-color);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 26px;
  letter-spacing: -0.3px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

.section-title span { color: var(--accent-color); }

/* --------------------------------------------------------------------------
   Widgets (categories + sidebar)
--------------------------------------------------------------------------- */
.widget-card {
  background: var(--surface-color);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
}

.widget-card .widget-title {
  font-family: var(--heading-font);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--heading-color);
  padding: 17px 20px;
  margin: 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.widget-card .widget-body { padding: 18px 20px; }

.categories-list a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--default-color);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.categories-list a i { color: var(--accent-color); margin-right: 10px; }

.categories-list a:hover {
  background: rgba(255, 196, 81, 0.14);
  color: var(--heading-color);
  padding-left: 20px;
  text-decoration: none;
}

.widget-search .form-control {
  border-radius: 8px 0 0 8px;
  border: 1px solid var(--border-color);
  font-size: 0.92rem;
  height: 44px;
}

.widget-search .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.15rem rgba(255, 196, 81, 0.25);
}

.widget-search .btn-search {
  border-radius: 0 8px 8px 0;
  background: var(--accent-color);
  border: none;
  color: #151515;
  width: 46px;
  font-size: 1rem;
}

.widget-search .btn-search:hover { background: var(--accent-dark); }

.sidebar .recent-item {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.sidebar .recent-item:last-child { margin-bottom: 0; }

.sidebar .recent-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.sidebar .recent-item .recent-body { padding-left: 12px; }

.sidebar .recent-item .recent-body a {
  color: var(--heading-color);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
  display: block;
}

.sidebar .recent-item .recent-body a:hover { color: var(--accent-dark); }

.sidebar .pop-list { list-style: none; padding: 0; margin: 0; }

.sidebar .pop-list li {
  padding: 9px 0 9px 16px;
  border-bottom: 1px dashed var(--border-color);
  position: relative;
}

.sidebar .pop-list li::before {
  content: "\f0da";
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

.sidebar .pop-list li:last-child { border-bottom: none; }

.sidebar .pop-list a {
  color: var(--default-color);
  font-weight: 600;
  font-size: 0.92rem;
}

.sidebar .pop-list a:hover { color: var(--accent-dark); text-decoration: none; }

.sidebar .video-embed iframe {
  width: 100%;
  height: 180px;
  border: none;
  border-radius: 10px;
  display: block;
}

/* --------------------------------------------------------------------------
   Highlight slider
--------------------------------------------------------------------------- */
.highlight-card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface-color);
}

.highlight-card .highlight-img { position: relative; }

.highlight-card .highlight-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.highlight-card .highlight-body { padding: 22px 24px 26px; }

.highlight-card .highlight-title { font-size: 1.35rem; }

.highlight-card .highlight-title a { color: var(--heading-color); }

.highlight-card .highlight-title a:hover { color: var(--accent-dark); text-decoration: none; }

.post-meta {
  color: #8a8a8a;
  font-size: 0.85rem;
}

.post-meta i { color: var(--accent-color); margin-right: 4px; }

/* --------------------------------------------------------------------------
   News cards
--------------------------------------------------------------------------- */
.news-card {
  background: var(--surface-color);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.news-card-img { position: relative; overflow: hidden; }

.news-card-img img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img { transform: scale(1.08); }

.news-card-img .card-date {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(6, 6, 6, 0.75);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.news-card-img .card-date i { color: var(--accent-color); margin-right: 5px; }

.news-card-body {
  padding: 20px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-tags { margin-bottom: 10px; }

.badge-cat {
  background: var(--accent-color);
  color: #151515;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 20px;
}

.badge-cat:hover { background: var(--accent-dark); color: #151515; text-decoration: none; }

.badge-sub {
  background: #151515;
  color: #ffffff;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 20px;
}

.news-card-body .card-heading {
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.news-card-body .card-heading a { color: var(--heading-color); }

.news-card-body .card-heading a:hover { color: var(--accent-dark); text-decoration: none; }

.read-more {
  margin-top: auto;
  color: var(--heading-color);
  font-weight: 700;
  font-size: 0.88rem;
  font-family: var(--nav-font);
}

.read-more i {
  color: var(--accent-color);
  margin-left: 6px;
  transition: margin-left 0.3s ease;
}

.read-more:hover { color: var(--accent-dark); text-decoration: none; }
.read-more:hover i { margin-left: 10px; }

/* --------------------------------------------------------------------------
   Pagination
--------------------------------------------------------------------------- */
.blog-pagination .page-link {
  color: var(--heading-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin: 0 4px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  background: var(--surface-color);
}

.blog-pagination .page-link:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #151515;
}

.blog-pagination .page-item.active .page-link {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #151515;
}

.blog-pagination .page-item.disabled .page-link {
  color: #aaaaaa;
  border-color: var(--border-color);
  background: #f5f5f5;
}

/* --------------------------------------------------------------------------
   Footer (dark, matches main site)
--------------------------------------------------------------------------- */
.blog-footer {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.blog-footer .footer-top { padding: 56px 0 40px; }

.blog-footer h4 {
  color: #ffffff;
  font-family: var(--heading-font);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.blog-footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

.blog-footer .f-brand { display: flex; align-items: center; margin-bottom: 16px; }

.blog-footer .f-brand img {
  height: 52px;
  width: 52px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  padding: 2px;
  background: #fff;
}

.blog-footer .f-brand .sitename {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 1.35rem;
  color: #ffffff;
  margin: 0 0 0 12px;
}

.blog-footer .f-brand .sitename span { color: var(--accent-color); }

.blog-footer a { color: rgba(255, 255, 255, 0.7); }
.blog-footer a:hover { color: var(--accent-color); text-decoration: none; }

.blog-footer .footer-links { list-style: none; padding: 0; margin: 0; }

.blog-footer .footer-links li {
  margin-bottom: 10px;
}

.blog-footer .footer-links li i {
  color: var(--accent-color);
  margin-right: 8px;
  font-size: 0.7rem;
}

.blog-footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  margin-right: 8px;
}

.blog-footer .social-links a:hover {
  background: var(--accent-color);
  color: #151515;
  transform: translateY(-3px);
}

.blog-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.88rem;
}

.blog-footer .footer-bottom strong { color: var(--accent-color); }

/* --------------------------------------------------------------------------
   Scroll to top
--------------------------------------------------------------------------- */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #151515;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(255, 196, 81, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover { background: var(--accent-dark); color: #151515; text-decoration: none; }

/* --------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .blog-navbar .navbar-collapse {
    background: #0a0a0a;
    border-radius: 12px;
    padding: 14px 18px;
    margin-top: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  }

  .blog-navbar .navbar-nav .nav-link {
    padding: 10px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
  }

  .blog-navbar .navbar-nav .dropdown-menu { background: transparent; box-shadow: none; padding-left: 14px; }

  .blog-navbar .btn-getstarted { margin: 12px 0 4px; display: inline-block; }

  .highlight-card .highlight-img img { height: 300px; }
}

@media (max-width: 767.98px) {
  .blog-hero { background-attachment: scroll; }
}

@media (max-width: 575.98px) {
  .blog-hero .container { padding: 52px 0 46px; }
  .blog-hero h1 { font-size: 1.85rem; }
  .highlight-card .highlight-img img { height: 230px; }
  .news-card-img img { height: 190px; }
}
