/* ===== CRITICAL CSS - INLINE IN <head> ===== */
:root {
  --primary-dark: #003049;
  --accent: #008080;
  --accent-dark: #006666;
  --accent-light: #E6F3F3;
  --bg-light: #F4F6F9;
  --white: #FFFFFF;
  --text-dark: #2C3E50;
  --text-muted: #6C757D;
  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;
  --success: #2E7D32;
  --shadow-sm: rgba(0, 48, 73, 0.08);
  --shadow-md: rgba(0, 48, 73, 0.12);
}

/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Poppins', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-dark);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); border-bottom: 2px solid var(--accent); padding-bottom: 0.5rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.25rem; }
h5, h6 { font-size: 1.1rem; }

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Focus for accessibility */
:focus {
  outline: 3px solid #FFC107;
  outline-offset: 2px;
}

.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-dark);
  color: white;
  padding: 12px 20px;
  z-index: 9999;
}

.skip-to-main:focus {
  top: 0;
}

/* Header */
header, .bg-theme-color {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
}

.header-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  min-height: 80px;
}

.logo-section img {
  max-width: 70px;
  height: auto;
}

.title-section {
  flex: 1;
}

.journal-title {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: white;
}

.info-section {
  text-align: right;
}

.issn-info {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
}

/* Navigation */
.navbar-light .navbar-nav .nav-link {
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 4px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  background-color: rgba(255,255,255,0.15);
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--shadow-sm);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px var(--shadow-md);
}

.card-body {
  padding: 1.25rem;
}

.card-header.bg-theme-color {
  background: var(--primary-dark);
  color: white;
  padding: 1rem 1.25rem;
}

/* Sidebar Widget */
.sidebar-widget {
  background: var(--white);
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px var(--shadow-sm);
  border-left: 3px solid var(--accent);
}

.sidebar-widget h4 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: white;
  margin-top: 3rem;
  padding: 2rem 0 1rem;
}

.footer a {
  color: rgba(255,255,255,0.85);
}

.footer a:hover {
  color: var(--accent);
}

/* Utility Classes */
.text-accent { color: var(--accent); }
.bg-accent { background: var(--accent); color: white; }
.text-primary-dark { color: var(--primary-dark); }
.shadow-sm { box-shadow: 0 1px 3px var(--shadow-sm); }

/* Blog Post Specific */
.post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.post-excerpt {
  color: var(--text-muted);
  margin: 0.75rem 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  .info-section {
    text-align: center;
  }
  
  .sidebar-widget {
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
}

@media (min-width: 992px) {
  .main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
  }
}

/* Print */
@media print {
  .navbar, .footer, .sidebar-widget, .btn {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}

/* Header Styles - White Background */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
}

.logo-section img {
    max-width: 70px;
    height: auto;
}

/* Site Title - Primary Color (#003049) */
.site-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--primary-dark); /* #003049 */
    line-height: 1.2;
}

.site-title small {
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

/* Navigation - Teal Background */
.navbar {
    background: var(--accent); /* #008080 */
    padding: 0;
}

.navbar .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .site-title small {
        font-size: 0.7rem;
    }
    
    .navbar .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* ===== NAVIGATION MENU - IMPROVED SPACING ===== */
.navbar {
    background: var(--accent); /* #008080 */
    padding: 0.5rem 0;
}

.navbar-nav {
    gap: 0.25rem; /* Space between menu items */
}

.navbar .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.7rem 1.25rem;
    margin: 0.25rem 0;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.navbar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

/* Mobile menu improvements */
@media (max-width: 991.98px) {
    .navbar-nav {
        gap: 0;
        padding: 0.5rem 0;
    }
    
    .navbar .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.125rem 0;
    }
    
    .navbar-toggler {
        margin: 0.5rem 0;
        border: none;
        background: rgba(255, 255, 255, 0.2);
    }
    
    .navbar-toggler-icon {
        filter: brightness(0) invert(1);
    }
}

/* Desktop menu - better spacing */
@media (min-width: 992px) {
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .navbar .nav-link {
        padding: 0.6rem 1.1rem;
        font-size: 0.95rem;
    }
}

/* Large screens - more breathing room */
@media (min-width: 1200px) {
    .navbar-nav {
        gap: 0.75rem;
    }
    
    .navbar .nav-link {
        padding: 0.7rem 1.4rem;
        font-size: 1rem;
    }
}

/* ===== FOOTER STYLES ===== */
.site-footer {
    background: var(--primary-dark); /* #003049 */
    color: var(--text-light);
    margin-top: 4rem;
    padding: 3rem 0 0;
}

.footer-heading {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent); /* #008080 */
    border-radius: 2px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Footer Links */
.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* Footer Contact */
.footer-contact li {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact li i {
    color: var(--accent);
    margin-top: 0.2rem;
    width: 20px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-contact .address i {
    margin-top: 0.25rem;
}

/* Social Icons in Footer */
.social-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-footer:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.legal-links li {
    margin-left: 1.5rem;
}

.legal-links li:first-child {
    margin-left: 0;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: var(--accent);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 0 0;
    }
    
    .footer-heading {
        margin-bottom: 1rem;
    }
    
    .footer-heading::after {
        width: 30px;
    }
    
    .legal-links {
        justify-content: center;
    }
    
    .legal-links li {
        margin: 0 0.75rem;
    }
}

@media (max-width: 576px) {
    .footer-contact li {
        flex-wrap: wrap;
    }
    
    .footer-contact li i {
        margin-bottom: 0.25rem;
    }
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    margin-bottom: 2rem;
}

.sidebar-widget {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 4px 20px var(--shadow-md);
}

.sidebar-widget h4 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--accent);
    position: relative;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.sidebar-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-link {
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.sidebar-link i {
    color: var(--accent);
    width: 24px;
    font-size: 0.9rem;
}

.sidebar-link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.sidebar-link:hover i {
    color: var(--accent-dark);
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
    color: white;
    text-align: center;
}

.cta-widget h4 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.cta-widget p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cta-widget i {
    color: white;
}

.btn-sidebar {
    background: white;
    color: var(--accent);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-sidebar:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    color: var(--accent-dark);
}

/* Trust List */
.trust-list li {
    display: flex;
    align-items: center;
    border-bottom: none !important;
    margin-bottom: 0.5rem !important;
}

.trust-list i {
    color: var(--accent);
    font-size: 0.9rem;
}

/* Resources Widget */
.resources-widget .resource-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
}

.resources-widget .resource-item:last-child {
    border-bottom: none;
}

.resources-widget .resource-item i {
    color: var(--accent);
    width: 24px;
}

.resources-widget .resource-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.resources-widget .resource-item a:hover {
    color: var(--accent);
    margin-left: 5px;
}

/* Contact in Sidebar */
.sidebar-contact .contact-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.sidebar-contact .contact-item i {
    color: var(--accent);
    width: 24px;
}

.sidebar-contact .contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-contact .contact-item a:hover {
    color: var(--accent);
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .sidebar-widget {
        padding: 1.2rem;
    }
    
    .sidebar-widget h4 {
        font-size: 1.1rem;
    }
    
    .sidebar-link {
        font-size: 0.9rem;
    }
}

/* ===== FAQ ACCORDION STYLES ===== */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    background: transparent;
}

.accordion-item:last-child {
    margin-bottom: 0;
}

.accordion-header {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-sm);
    transition: all 0.2s ease;
}

.accordion-header:hover {
    box-shadow: 0 4px 12px var(--shadow-md);
}

.accordion-button {
    background: var(--white);
    color: var(--text-dark);
    font-weight: 600;
    padding: 1.25rem;
    border-radius: 12px !important;
    box-shadow: none;
    font-size: 1rem;
    border: 1px solid var(--border-light);
}

.accordion-button:not(.collapsed) {
    background: var(--white);
    color: var(--primary-dark);
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom: none;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23008080'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.accordion-button.collapsed::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23008080'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--accent);
    outline: none;
}

.accordion-button:hover {
    background: var(--accent-light);
}

.accordion-body {
    background: var(--white);
    color: var(--text-muted);
    padding: 1.25rem;
    border: 1px solid var(--border-light);
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    line-height: 1.6;
}

/* Mobile FAQ */
@media (max-width: 768px) {
    .accordion-button {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 0.85rem;
    }
}

/* How It Works Page Styles */
.step-number {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-number:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-tabs .nav-link.active {
    background: var(--accent) !important;
    color: white !important;
}

.nav-tabs .nav-link:hover {
    background: var(--accent-dark);
    color: white;
}

.table-bordered th,
.table-bordered td {
    border-color: var(--border-light);
    padding: 1rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: var(--accent-light);
}

.step-divider {
    width: 2px;
    height: 40px;
    background: var(--accent-light);
    margin: 0.5rem auto;
}

/* Missing button style used on home page */
.btn-outline-theme {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-theme:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-1px);
}

/* Gradient background utility */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
}

/* Stats card styling */
.stats-card {
    background: var(--white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px var(--shadow-md);
}

/* ===== BLOG PAGE STYLES ===== */

/* Blog Card */
.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-sm);
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px var(--shadow-md);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.blog-card-content {
    padding: 1.25rem;
}

.blog-card-category {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent-dark);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.blog-card-category:hover {
    background: var(--accent);
    color: white;
}

.blog-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--primary-dark);
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--accent);
}

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.blog-card-meta i {
    color: var(--accent);
    margin-right: 0.25rem;
}

.blog-card-meta span {
    margin-right: 1rem;
}

.blog-card-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.blog-card-readmore {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.blog-card-readmore:hover {
    color: var(--accent-dark);
    gap: 0.75rem;
}

/* Pagination */
.blog-pagination {
    margin-top: 2rem;
}

.blog-pagination .pagination {
    justify-content: center;
}

.blog-pagination .page-link {
    color: var(--accent);
    border: 1px solid var(--border-light);
    margin: 0 3px;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.blog-pagination .page-link:hover {
    background: var(--accent-light);
    color: var(--accent-dark);
    border-color: var(--accent);
}

.blog-pagination .active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Blog Sidebar Widgets */
.blog-sidebar-widget {
    background: var(--white);
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow-sm);
    border-left: 3px solid var(--accent);
}

.blog-sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.blog-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar-list li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.blog-sidebar-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.blog-sidebar-list a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}

.blog-sidebar-list a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* Search Widget */
.blog-search-widget .input-group {
    border-radius: 50px;
    overflow: hidden;
}

.blog-search-widget .form-control {
    border: 1px solid var(--border-light);
    border-right: none;
    padding: 0.6rem 1rem;
}

.blog-search-widget .form-control:focus {
    box-shadow: none;
    border-color: var(--accent);
}

.blog-search-widget .btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
}

.blog-search-widget .btn:hover {
    background: var(--accent-dark);
}

/* Category Widget */
.category-widget .badge-count {
    float: right;
    background: var(--accent-light);
    color: var(--accent-dark);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
}

/* ===== ADD THESE MISSING STYLES ===== */

/* Gradient background utility */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
}

/* Tag/badge style (used for categories on cards) */
.tag {
    background: var(--accent-light);
    color: var(--accent-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--accent);
    color: white;
}

/* Post meta styling */
.post-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

/* Pagination styling */
.page-link {
    color: var(--accent);
    border: 1px solid var(--border-light);
    margin: 0 3px;
    border-radius: 8px;
}

.page-link:hover {
    background: var(--accent-light);
    color: var(--accent-dark);
    border-color: var(--accent);
}

.page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Force full width container */
.blog-full-width {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
}

/* For larger screens */
@media (min-width: 1400px) {
    .blog-full-width {
        max-width: 1400px;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Override Bootstrap container on blog pages */
.blog-page .container {
    max-width: 100% !important;
    width: 100% !important;
}

/* ===== ADD THESE FOR BLOG POST PAGE ===== */

/* Breadcrumb styling */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
    content: "›";
}

/* Post content styling */
.post-content {
    color: var(--text-dark);
    line-height: 1.8;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

/* Blockquote styling */
.post-content blockquote {
    border-left: 4px solid var(--accent);
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    background: var(--accent-light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Table styling */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.post-content th,
.post-content td {
    border: 1px solid var(--border-light);
    padding: 0.75rem;
}

.post-content th {
    background: var(--accent-light);
    font-weight: 600;
}

/* Code blocks */
.post-content pre {
    background: var(--primary-dark);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

.post-content code {
    background: var(--accent-light);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.875rem;
}