/* =============================================
   Educational Voice - Main Stylesheet
   ============================================= */

:root {
  --primary: #0d6efd;
  --secondary: #198754;
  --bg: #f8f9fa;
  --dark: #212529;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ---- General ---- */
body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--dark);
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

/* ---- Sticky Navbar ---- */
.navbar-brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary) !important;
  line-height: 1.1;
}
.navbar-brand-tagline {
  font-size: 0.65rem;
  color: #6c757d;
  display: block;
  font-weight: 400;
  line-height: 1.2;
  max-width: 300px;
}
.navbar {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.75rem;
  color: #343a40 !important;
  transition: color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
}

/* ---- Hero Section ---- */
.hero-section {
  background: linear-gradient(135deg, #e8f1ff 0%, #f0fff4 100%);
  padding: 90px 0 70px;
  text-align: center;
}
.hero-section h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #0a2540;
}
.hero-section p {
  font-size: 1.15rem;
  color: #495057;
  max-width: 640px;
  margin: 1rem auto 2rem;
}

/* ---- Social Channels Section ---- */
.social-channels {
  padding: 40px 0;
  background: #fff;
  border-bottom: 1px solid #e9ecef;
}
.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.97rem;
  transition: transform 0.18s, box-shadow 0.18s;
  border: none;
  cursor: pointer;
}
.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.social-btn i { font-size: 1.3rem; }
.btn-whatsapp  { background: #e8f9f1; color: #128c7e; }
.btn-telegram  { background: #e8f2ff; color: #0088cc; }
.btn-youtube   { background: #fff0f0; color: #ff0000; }
.btn-facebook  { background: #e8eeff; color: #1877f2; }

/* ---- Section Heading ---- */
.section-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0a2540;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 30px;
}
.section-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.section-heading.centered { text-align: center; }
.section-heading.centered::after { left: 50%; transform: translateX(-50%); }

/* ---- Category Cards ---- */
.category-card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 28px 20px;
  background: #fff;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--card-shadow);
  height: 100%;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(13,110,253,0.13);
  border-color: var(--primary);
}
.category-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 14px;
}
.category-card h5 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}
.category-card p {
  font-size: 0.83rem;
  color: #6c757d;
  margin-bottom: 16px;
}

/* ---- Post Cards ---- */
.post-card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--card-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.11);
}
.post-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
}
.post-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-body h6 {
  font-weight: 700;
  font-size: 0.97rem;
  margin-bottom: 8px;
  color: #0a2540;
  line-height: 1.4;
}
.post-card-body p {
  font-size: 0.83rem;
  color: #6c757d;
  flex: 1;
  margin-bottom: 14px;
}
.badge-category {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

/* ---- Sidebar ---- */
.sidebar-widget {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
}
.sidebar-widget h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #0a2540;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.sidebar-post-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
.sidebar-post-item:last-child { border-bottom: none; }
.sidebar-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  flex-shrink: 0;
}
.sidebar-post-item a {
  font-size: 0.83rem;
  font-weight: 600;
  color: #212529;
  line-height: 1.3;
}
.sidebar-post-item a:hover { color: var(--primary); }
.sidebar-post-item small { color: #adb5bd; font-size: 0.75rem; }
.sidebar-cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #343a40;
  font-size: 0.87rem;
  font-weight: 500;
  transition: color 0.2s;
}
.sidebar-cat-link:last-child { border-bottom: none; }
.sidebar-cat-link:hover { color: var(--primary); }

/* ---- Breadcrumb ---- */
.breadcrumb { background: none; padding: 0; margin: 0; font-size: 0.85rem; }
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active { color: #6c757d; }
.breadcrumb-section {
  padding: 12px 0;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 24px;
  background: #fff;
}

/* ---- Post Page ---- */
.post-featured-image {
  width: 100%;
  height: 340px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.post-content {
  font-size: 1rem;
  line-height: 1.85;
  color: #343a40;
}
.post-content p { margin-bottom: 1.2rem; }
.post-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: #0a2540;
  line-height: 1.3;
  margin-bottom: 12px;
}
.share-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin: 30px 0;
}
.share-section h6 { font-weight: 700; margin-bottom: 14px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.87rem;
  color: #fff;
  transition: opacity 0.18s, transform 0.18s;
  margin-right: 8px;
  margin-bottom: 8px;
}
.share-btn:hover { opacity: 0.88; color: #fff; transform: translateY(-1px); }
.share-whatsapp  { background: #25d366; }
.share-telegram  { background: #0088cc; }
.share-facebook  { background: #1877f2; }
.share-twitter   { background: #000; }

/* ---- Pagination ---- */
.pagination .page-link {
  border-radius: 8px !important;
  margin: 0 2px;
  border-color: #dee2e6;
  color: var(--primary);
  font-weight: 500;
}
.pagination .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* ---- Category Page Header ---- */
.cat-page-header {
  background: linear-gradient(135deg, #e8f1ff 0%, #f0fff4 100%);
  padding: 40px 0 30px;
  margin-bottom: 36px;
}
.cat-page-header h1 { font-weight: 800; color: #0a2540; }
.cat-page-header p  { color: #6c757d; margin: 0; }

/* ---- Footer ---- */
.site-footer {
  background: #0a2540;
  color: #adb5bd;
  padding: 60px 0 0;
  margin-top: 60px;
}
.site-footer h5 {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.site-footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: var(--primary);
}
.site-footer p { font-size: 0.87rem; line-height: 1.7; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links li a {
  color: #adb5bd;
  font-size: 0.87rem;
  transition: color 0.2s;
}
.footer-links li a:hover { color: #fff; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #adb5bd;
  font-size: 0.87rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-social a:hover { color: #fff; }
.footer-social i { font-size: 1.1rem; }
.footer-bottom {
  background: rgba(0,0,0,0.25);
  margin-top: 40px;
  padding: 16px 0;
  text-align: center;
  font-size: 0.83rem;
}

/* ---- Contact Form ---- */
.contact-form-card {
  background: #fff;
  border-radius: 14px;
  padding: 36px;
  box-shadow: var(--card-shadow);
}
.form-control, .form-select {
  border-radius: 8px;
  border-color: #dee2e6;
  font-size: 0.92rem;
  padding: 10px 14px;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,110,253,0.12); }

/* ---- Static Pages ---- */
.static-page-header {
  background: linear-gradient(135deg, #e8f1ff 0%, #f0fff4 100%);
  padding: 50px 0 35px;
  margin-bottom: 40px;
}
.static-page-header h1 { font-weight: 800; color: #0a2540; }
.static-content h2 { font-size: 1.3rem; font-weight: 700; color: #0a2540; margin-top: 2rem; }
.static-content p  { color: #495057; line-height: 1.8; }
.static-content ul { color: #495057; line-height: 2; }

/* ---- Dynamic Post List Boxes ---- */
.post-list-box {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  height: 100%;
}
.post-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #e9ecef;
}
.post-list-viewall {
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.post-list-viewall:hover { opacity: 1; }
.post-list-links {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.post-list-links li {
  border-bottom: 1px solid #f3f3f3;
}
.post-list-links li:last-child { border-bottom: none; }
.post-list-links li a {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #212529;
  text-decoration: none;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
}
.post-list-links li a:hover {
  background: #f8f9ff;
  color: var(--primary);
}
.post-list-bullet {
  flex-shrink: 0;
  font-size: 0.7rem;
  margin-top: 3px;
}
.post-list-empty {
  padding: 18px;
  color: #adb5bd;
  font-size: 0.85rem;
  text-align: center;
  list-style: none;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-section h1 { font-size: 2rem; }
  .hero-section p  { font-size: 1rem; }
  .post-featured-image { height: 200px; }
  .post-title { font-size: 1.4rem; }
}

@media (max-width: 576px) {
  .navbar-brand-tagline { display: none; }
}
