/* ============================================
   RUYA - Rwenzori United Youth Association
   Professional CSS Stylesheet
   ============================================ */

/* ---------- CSS Variables / Brand Identity ---------- */
:root {
  --primary: #1B6B4A;
  --primary-dark: #14503A;
  --primary-light: #2A8C63;
  --accent: #E8913A;
  --accent-dark: #CF7D2E;
  --accent-light: #F5A84F;
  --text-dark: #1a1a2e;
  --text-body: #4a4a5a;
  --text-muted: #7a7a8a;
  --bg-light: #f7f8fa;
  --bg-white: #ffffff;
  --bg-section: #f0f4f2;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset & Base ---------- */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  color: var(--text-body);
  line-height: 1.7;
  background: var(--bg-white);
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color var(--transition);
}

a:hover {
  text-decoration: none;
  color: var(--primary-dark);
}

img {
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--text-dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  padding: 8px 0;
  letter-spacing: 0.2px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar a {
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
}

.top-bar a:hover {
  color: var(--accent);
}

.top-bar i {
  color: var(--accent);
  margin-right: 4px;
}

.top-bar-divider {
  color: rgba(255,255,255,0.25);
  margin: 0 10px;
}

/* ---------- Navbar ---------- */
.main-navbar {
  background: var(--bg-white) !important;
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  transition: all var(--transition);
  border-bottom: 1px solid var(--border-light);
}

.main-navbar.scrolled {
  box-shadow: var(--shadow-md);
  padding: 8px 0;
}

.main-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark) !important;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-navbar .navbar-brand:hover {
  color: var(--primary) !important;
}

.navbar-logo {
  width: 42px;
  height: 42px;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid var(--primary) !important;
}

.main-navbar .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.main-navbar .nav-link:hover {
  color: var(--primary) !important;
  background: rgba(27, 107, 74, 0.06);
}

.main-navbar .nav-link.active {
  color: var(--primary) !important;
  font-weight: 600;
}

.main-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Donate Button in Navbar */
.nav-donate-btn {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  padding: 8px 22px !important;
  font-size: 0.88rem !important;
  transition: all var(--transition) !important;
  border: none;
}

.nav-donate-btn:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 145, 58, 0.35);
}

/* Dropdown */
.main-navbar .dropdown-menu {
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 8px 0;
  margin-top: 8px;
  min-width: 200px;
}

.main-navbar .dropdown-item {
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-body);
  font-weight: 500;
  transition: all var(--transition);
}

.main-navbar .dropdown-item:hover {
  background: var(--bg-section);
  color: var(--primary);
}

.main-navbar .dropdown-item.active {
  background: var(--primary);
  color: #fff;
}

/* Mobile Toggle */
.main-navbar .navbar-toggler {
  border: 1px solid var(--border-light);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.main-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 2px rgba(27, 107, 74, 0.25);
}

/* Show dropdown on hover (desktop) */
@media (min-width: 992px) {
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

@media (max-width: 991.98px) {
  .main-navbar .navbar-collapse {
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
    margin-top: 10px;
  }

  .main-navbar .nav-link.active::after {
    display: none;
  }

  .main-navbar .dropdown-menu {
    box-shadow: none;
    border: none;
    padding-left: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin: 4px 0;
  }
}

@media (max-width: 576px) {
  .top-bar {
    display: none !important;
  }
}

/* ---------- Page Hero / Banner ---------- */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,107,74,0.88) 0%, rgba(20,80,58,0.92) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.page-hero p {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 50px 0;
  }
  .page-hero h1 {
    font-size: 2rem;
  }
  .page-hero p {
    font-size: 1rem;
  }
}

/* ---------- Home Carousel / Slider ---------- */
.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-carousel .carousel-item img {
  height: 75vh;
  min-height: 450px;
  max-height: 650px;
  object-fit: cover;
  width: 100%;
}

.hero-carousel .carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 40px;
}

.hero-carousel .carousel-overlay h2 {
  color: #fff;
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-carousel .carousel-overlay p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  max-width: 600px;
  line-height: 1.6;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
  opacity: 1;
}

.hero-carousel .carousel-control-prev { left: 20px; }
.hero-carousel .carousel-control-next { right: 20px; }

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  background: rgba(255,255,255,0.25);
}

.hero-carousel .carousel-indicators {
  margin-bottom: 24px;
}

.hero-carousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  margin: 0 4px;
  transition: all var(--transition);
}

.hero-carousel .carousel-indicators button.active {
  background: var(--accent);
  width: 28px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .hero-carousel .carousel-item img {
    height: 55vh;
    min-height: 320px;
  }
  .hero-carousel .carousel-overlay {
    padding: 30px 20px;
  }
  .hero-carousel .carousel-overlay h2 {
    font-size: 1.6rem;
  }
  .hero-carousel .carousel-overlay p {
    font-size: 0.95rem;
  }
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    width: 38px;
    height: 38px;
  }
}

/* ---------- Section Styles ---------- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-section);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }
  .section-title {
    font-size: 1.65rem;
  }
  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 32px;
  }
}

/* ---------- Mission / Vision / Motto Cards ---------- */
.value-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  height: 100%;
  transition: all var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.value-card-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-section);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
  font-size: 1.5rem;
  transition: all var(--transition);
}

.value-card:hover .value-card-icon {
  background: var(--primary);
  color: #fff;
}

.value-card h5 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ---------- Content Card (What We Do, Blog, etc.) ---------- */
.content-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  transition: all var(--transition);
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.content-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.content-card-body {
  padding: 24px;
}

.content-card-body h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.content-card-body h5 a {
  color: var(--text-dark);
}

.content-card-body h5 a:hover {
  color: var(--primary);
}

.content-card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.content-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ---------- CTA / Donation Banner ---------- */
.cta-banner {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.cta-banner-img {
  flex: 0 0 280px;
  max-width: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cta-banner-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md) !important;
}

.cta-banner-content {
  flex: 1;
}

.cta-banner-content h2 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-banner-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.cta-banner-content .goal-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin: 16px 0;
}

.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: none;
  letter-spacing: 0.3px;
}

.btn-cta:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 145, 58, 0.4);
}

@media (max-width: 768px) {
  .cta-banner {
    flex-direction: column;
    padding: 32px 24px;
    text-align: center;
  }
  .cta-banner-img {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
  .cta-banner-img img {
    height: 200px;
  }
  .cta-banner-content h2 {
    font-size: 1.5rem;
  }
}

/* ---------- Goal Banner ---------- */
.goal-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.goal-banner h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.goal-banner p {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- About Section ---------- */
.about-block {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  border-left: 4px solid var(--primary);
}

.about-block p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 12px;
}

.about-block p:last-child {
  margin-bottom: 0;
}

/* ---------- Objectives List ---------- */
.objectives-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

.objectives-list li {
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--border-light);
  font-size: 1rem;
  color: var(--text-body);
  position: relative;
}

.objectives-list li:last-child {
  border-bottom: none;
}

.objectives-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

/* ---------- Testimonials ---------- */
.testimonial-section {
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.testimonial-section .blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 20px;
  position: relative;
  padding-left: 24px;
  border-left: 3px solid var(--primary);
}

.testimonial-section .blockquote-footer {
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-block;
}

.testimonial-img {
  width: 90px;
  height: 90px;
  border-radius: 50% !important;
  object-fit: cover;
  border: 3px solid var(--primary) !important;
  margin-bottom: 20px;
}

/* Partners */
.partner-logo {
  max-height: 80px;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(40%);
  opacity: 0.85;
  transition: all var(--transition);
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Newsletter Subscribe Card */
.subscribe-card {
  background: linear-gradient(135deg, var(--primary), #0d4a30);
  border: none;
  border-radius: 16px;
  color: white;
  overflow: hidden;
}
.subscribe-card .card-body { padding: 2rem; }
.subscribe-card h3 { font-size: 1.5rem; font-weight: 700; }
.subscribe-card p { opacity: 0.9; }
.subscribe-card .form-control {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  border-radius: 8px;
}
.subscribe-card .form-control::placeholder { color: rgba(255,255,255,0.6); }
.subscribe-card .form-control:focus {
  background: rgba(255,255,255,0.25);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,145,58,0.3);
  color: white;
}
.subscribe-card .btn-accent {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}
.subscribe-card .btn-accent:hover {
  background: #d17e2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(232,145,58,0.4);
}

.testimonial-section .carousel-control-prev,
.testimonial-section .carousel-control-next {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all var(--transition);
}

.testimonial-section .carousel-control-prev:hover,
.testimonial-section .carousel-control-next:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .testimonial-section {
    padding: 32px 20px;
  }
}

/* ---------- Staff Cards ---------- */
.staff-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
  padding: 32px 20px;
  height: 100%;
  transition: all var(--transition);
}

.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.staff-card .staff-photo {
  width: 120px;
  height: 120px;
  border-radius: 50% !important;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 18px;
  display: block;
  border: 3px solid var(--bg-section) !important;
}

.staff-card h5 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 6px;
  font-weight: 700;
}

.staff-card p {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.staff-role-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--bg-section);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}

/* ---------- Blog Cards ---------- */
.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  transition: all var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.blog-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.blog-card-body h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-card-body h5 a {
  color: var(--text-dark);
}

.blog-card-body h5 a:hover {
  color: var(--primary);
}

.blog-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
}

.btn-read-more {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0;
  transition: all var(--transition);
  align-self: flex-start;
}

.btn-read-more:hover {
  color: var(--primary-dark);
}

.btn-read-more i {
  margin-left: 4px;
  transition: transform var(--transition);
}

.btn-read-more:hover i {
  transform: translateX(4px);
}

/* ---------- Post Detail ---------- */
.blog-detail-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 60px 0 40px;
}

.blog-detail-content {
  padding: 60px 0;
}

.featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.post-meta {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
}

.post-meta-item i {
  color: var(--primary);
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.post-content h1, .post-content h2, .post-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.post-content p {
  margin-bottom: 20px;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.post-content ul, .post-content ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.post-content li {
  margin-bottom: 10px;
}

/* ---------- Blog Article (full-post listing) ---------- */
.blog-article {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.blog-article .featured-image {
  margin: -36px -36px 28px -36px;
  width: calc(100% + 72px);
  max-height: 420px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.blog-article-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-article-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.blog-article-meta i {
  color: var(--primary);
}

.blog-article .share-buttons {
  margin-top: 24px;
  padding-top: 20px;
}

.blog-sidebar {
  position: sticky;
  top: 100px;
}

@media (max-width: 991.98px) {
  .blog-sidebar {
    position: static;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .blog-article {
    padding: 24px;
  }
  .blog-article .featured-image {
    margin: -24px -24px 20px -24px;
    width: calc(100% + 48px);
  }
  .blog-article-title {
    font-size: 1.3rem;
  }
}

/* ---------- Sidebar ---------- */
.sidebar-card {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.sidebar-card h4 {
  color: var(--text-dark);
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 700;
}

.recent-post {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
  align-items: flex-start;
}

.recent-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Clickable sidebar post items */
.sidebar-post-link {
  cursor: pointer;
  border-radius: 8px;
  padding: 10px;
  margin-left: -10px;
  margin-right: -10px;
  transition: background 0.25s, border-color 0.25s;
}

.sidebar-post-link:hover {
  background: rgba(27, 107, 74, 0.06);
}

.sidebar-post-link.active {
  background: rgba(27, 107, 74, 0.10);
  border-left: 3px solid var(--primary);
  padding-left: 12px;
}

.sidebar-post-link.active h6 {
  color: var(--primary);
  font-weight: 700;
}

.recent-post-image {
  width: 80px;
  height: 80px;
  min-width: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.recent-post-placeholder {
  width: 80px;
  height: 80px;
  min-width: 80px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.recent-post-content {
  flex: 1;
  min-width: 0;
}

.recent-post-content h6 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-dark);
  line-height: 1.4;
}

.recent-post-content h6 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.recent-post-content h6 a:hover {
  color: var(--primary);
}

.recent-post-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Share Buttons ---------- */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
  flex-wrap: wrap;
}

.share-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white !important;
  font-size: 16px;
  text-decoration: none !important;
  transition: all 0.3s;
}

.share-buttons a i {
  display: inline-block;
  font-size: 16px;
  color: white;
}

.share-facebook { background: #3b5998; }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0077b5; }
.share-whatsapp { background: #25d366; }

.share-buttons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ---------- Back Button (detail page) ---------- */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.back-button:hover {
  color: rgba(255,255,255,0.7);
  transform: translateX(-5px);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 24px;
}

.btn-back:hover {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 768px) {
  .blog-detail-content {
    padding: 30px 0;
  }
  .sidebar-card {
    margin-top: 30px;
  }
  .recent-post-image,
  .recent-post-placeholder {
    width: 60px;
    height: 60px;
    min-width: 60px;
  }
}

/* ---------- Contact Page ---------- */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-section);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-item h6 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: none;
  border-radius: var(--radius-md);
}

.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.92rem;
  transition: all var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,107,74,0.12);
}

.contact-form label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 32px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  width: 100%;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27,107,74,0.3);
}

/* ---------- Partner Form ---------- */
.partner-form-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.partner-form-card .card-body {
  padding: 40px;
}

.partner-form-card h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.partner-form-card .form-control {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.92rem;
}

.partner-form-card .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,107,74,0.12);
}

.partner-form-card .btn-primary {
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.partner-form-card .btn-primary:hover {
  background: var(--primary-dark);
}

/* ---------- Events ---------- */
.event-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  transition: all var(--transition);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.event-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.event-media-container {
  width: 100%;
  overflow: hidden;
  background: var(--bg-section);
}

.event-media-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
}

.event-video-wrapper {
  width: 100%;
  position: relative;
  background: #000;
}

.event-media-video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.event-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.event-media-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-section);
}

.event-card-body {
  padding: 20px;
}

.event-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.event-card-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.event-card-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.event-card-readmore {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

/* Event Detail */
.detail-back-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
  transition: all var(--transition);
}

.detail-back-btn:hover {
  background: var(--primary);
  color: #fff;
}

.detail-event-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.detail-event-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.detail-event-video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

.detail-media-placeholder {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-section);
}

.detail-event-body {
  padding: 40px;
}

.detail-event-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.detail-event-date {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.detail-event-text {
  font-size: 1.02rem;
  color: var(--text-body);
  line-height: 1.9;
  white-space: pre-line;
}

.detail-event-meta {
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  margin-top: 24px;
}

.detail-meta-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .detail-event-body {
    padding: 24px;
  }
  .detail-event-heading {
    font-size: 1.5rem;
  }
}

/* ---------- Services ---------- */
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  height: 100%;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--bg-section);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--primary);
  font-size: 1.3rem;
  transition: all var(--transition);
}

.service-card:hover .service-icon-wrap {
  background: var(--primary);
  color: #fff;
}

.service-card h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: left;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
}

.site-footer h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.site-footer p,
.site-footer li {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
}

.site-footer a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  padding: 3px 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  margin-right: 8px;
  transition: all var(--transition);
  font-size: 0.9rem;
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-primary:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

/* ---------- Pagination ---------- */
.page-link {
  color: var(--primary);
  border-color: var(--border-light);
}

.page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* ---------- Alerts ---------- */
.alert-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

/* ---------- Utilities ---------- */
.text-accent {
  color: var(--accent);
}

.bg-accent {
  background-color: var(--accent);
}

/* Loading animation for images */
.img-loading {
  background: linear-gradient(90deg, var(--bg-light) 25%, var(--bg-section) 50%, var(--bg-light) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
