/* ========================================
   THE INSURE MANTRA - MAIN STYLESHEET
   UI Palette:
   Primary CTA: #0F766E
   CTA Hover: #0B5F59
   Secondary Button: #0B3B8C
   Success: #22C55E
   Warning: #F59E0B
   Background: #F8FAFC
   Card: #FFFFFF
   ======================================== */

/* ===== CRITICAL CSS - INLINE IN <head> ===== */
:root {
  /* UI Palette - Exact Colors */
  --primary-cta: #0F766E;
  --cta-hover: #0B5F59;
  --secondary-btn: #0B3B8C;
  --success: #22C55E;
  --warning: #F59E0B;
  --bg-light: #F8FAFC;
  --card: #FFFFFF;
  
  /* Supporting Colors */
  --primary-dark: #0B3B8C;
  --accent: #0F766E;
  --accent-dark: #0B5F59;
  --accent-light: #E6F7F5;
  --white: #FFFFFF;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;
  --shadow-sm: rgba(15, 118, 110, 0.08);
  --shadow-md: rgba(15, 118, 110, 0.12);
}

/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--secondary-btn);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(1.75rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); border-bottom: 3px solid var(--primary-cta); padding-bottom: 0.5rem; display: inline-block; }
h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); border-bottom: 3px solid var(--primary-cta); padding-bottom: 0.5rem; display: inline-block; }
h4 { font-size: 1.2rem; }
h5, h6 { font-size: 1.05rem; }

/* Links */
a {
  color: var(--primary-cta);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  color: var(--cta-hover);
  text-decoration: underline;
}

/* Focus for accessibility */
:focus {
  outline: 3px solid var(--warning);
  outline-offset: 2px;
}

.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--secondary-btn);
  color: white;
  padding: 12px 20px;
  z-index: 9999;
}

.skip-to-main:focus {
  top: 0;
}

/* Header */
header, .bg-theme-color {
  background: linear-gradient(135deg, var(--secondary-btn) 0%, var(--primary-cta) 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;
  font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  background-color: rgba(255,255,255,0.15);
}

/* Buttons - Following UI Palette */
.btn-primary {
  background: var(--primary-cta); /* #0F766E */
  color: white;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--cta-hover); /* #0B5F59 */
  transform: translateY(-1px);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: var(--secondary-btn); /* #0B3B8C */
  color: white;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #092E6E;
  transform: translateY(-1px);
  color: white;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-cta);
  color: var(--primary-cta);
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: var(--primary-cta);
  color: white;
  text-decoration: none;
}

.btn-success {
  background: var(--success); /* #22C55E */
  color: white;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-success:hover {
  background: #16A34A;
  transform: translateY(-1px);
  color: white;
  text-decoration: none;
}

/* Cards - Using #FFFFFF */
.card {
  background: var(--card); /* #FFFFFF */
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow-sm);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px var(--shadow-md);
}

.card-body {
  padding: 1.25rem;
}

.card-header.bg-theme-color {
  background: linear-gradient(135deg, var(--secondary-btn) 0%, var(--primary-cta) 100%);
  color: white;
  padding: 1rem 1.25rem;
  font-weight: 600;
}

/* Sidebar Widget */
.sidebar-widget {
  background: var(--card); /* #FFFFFF */
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px var(--shadow-sm);
  border-left: 3px solid var(--primary-cta);
}

.sidebar-widget h4 {
  color: var(--secondary-btn);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-cta);
  padding-bottom: 0.5rem;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-list li:last-child {
  border-bottom: none;
}

/* Footer */
.footer {
  background: var(--secondary-btn);
  color: white;
  margin-top: 3rem;
  padding: 2rem 0 1rem;
}

.footer a {
  color: rgba(255,255,255,0.85);
}

.footer a:hover {
  color: var(--primary-cta);
  text-decoration: none;
}

/* Utility Classes */
.text-accent { color: var(--primary-cta); }
.bg-accent { background: var(--primary-cta); color: white; }
.text-primary-dark { color: var(--secondary-btn); }
.shadow-sm { box-shadow: 0 1px 3px var(--shadow-sm); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }

/* 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(--cta-hover);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* 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(--card); /* #FFFFFF */
  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 - Secondary Button Color (#0B3B8C) */
.site-title {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--secondary-btn); /* #0B3B8C */
  line-height: 1.2;
}

.site-title small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

/* Navigation - Primary CTA Background */
.navbar {
  background: var(--primary-cta); /* #0F766E */
  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(--secondary-btn); /* #0B3B8C */
  padding: 0.5rem 0;
}

.navbar-nav {
  gap: 0.25rem;
}

.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(--secondary-btn); /* #0B3B8C */
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4rem;
  padding: 3rem 0 0;
}

.footer-heading {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  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(--primary-cta); /* #0F766E */
  border-radius: 2px;
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  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(--primary-cta);
  transform: translateX(5px);
  text-decoration: none;
}

/* 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(--primary-cta);
  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(--primary-cta);
}

.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(--primary-cta);
  color: white;
  transform: translateY(-3px);
  text-decoration: none;
}

/* 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(--primary-cta);
  text-decoration: none;
}

/* 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(--card); /* #FFFFFF */
  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;
  border-left: 3px solid var(--primary-cta);
}

.sidebar-widget:hover {
  box-shadow: 0 4px 20px var(--shadow-md);
}

.sidebar-widget h4 {
  color: var(--secondary-btn);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--primary-cta);
  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(--primary-cta);
  width: 24px;
  font-size: 0.9rem;
}

.sidebar-link:hover {
  color: var(--primary-cta);
  transform: translateX(5px);
  text-decoration: none;
}

.sidebar-link:hover i {
  color: var(--cta-hover);
}

/* CTA Widget */
.cta-widget {
  background: linear-gradient(135deg, var(--secondary-btn) 0%, var(--primary-cta) 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(--primary-cta);
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-sidebar:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  color: var(--cta-hover);
}

/* Trust List */
.trust-list li {
  display: flex;
  align-items: center;
  border-bottom: none !important;
  margin-bottom: 0.5rem !important;
}

.trust-list i {
  color: var(--success); /* #22C55E */
  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(--primary-cta);
  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(--primary-cta);
  margin-left: 5px;
  text-decoration: none;
}

/* 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(--primary-cta);
  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(--primary-cta);
}

/* 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: 1px solid var(--border-light);
  margin-bottom: 1rem;
  background: var(--card); /* #FFFFFF */
  border-radius: 12px;
  overflow: hidden;
}

.accordion-item:last-child {
  margin-bottom: 0;
}

.accordion-header {
  background: var(--card);
  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(--card);
  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);
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.accordion-button:not(.collapsed) {
  background: var(--card);
  color: var(--secondary-btn);
  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='%230F766E'%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='%230F766E'%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(--primary-cta);
  outline: none;
}

.accordion-button:hover {
  background: var(--accent-light);
}

.accordion-body {
  background: var(--card);
  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.7;
}

/* 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(--primary-cta) !important;
  color: white !important;
}

.nav-tabs .nav-link:hover {
  background: var(--cta-hover);
  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(--primary-cta);
  color: var(--primary-cta);
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-outline-theme:hover {
  background: var(--primary-cta);
  color: white;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Gradient background utility */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--secondary-btn) 0%, var(--primary-cta) 100%);
}

/* Stats card styling */
.stats-card {
  background: var(--card); /* #FFFFFF */
  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(--card); /* #FFFFFF */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-sm);
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
}

.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(--secondary-btn) 0%, var(--primary-cta) 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(--cta-hover);
  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(--primary-cta);
  color: white;
  text-decoration: none;
}

.blog-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card-title a {
  color: var(--secondary-btn);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--primary-cta);
}

.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(--primary-cta);
  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.6;
}

.blog-card-readmore {
  color: var(--primary-cta);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.blog-card-readmore:hover {
  color: var(--cta-hover);
  gap: 0.75rem;
  text-decoration: none;
}

/* Pagination */
.blog-pagination {
  margin-top: 2rem;
}

.blog-pagination .pagination {
  justify-content: center;
}

.blog-pagination .page-link {
  color: var(--primary-cta);
  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(--cta-hover);
  border-color: var(--primary-cta);
}

.blog-pagination .active .page-link {
  background: var(--primary-cta);
  border-color: var(--primary-cta);
  color: white;
}

/* Blog Sidebar Widgets */
.blog-sidebar-widget {
  background: var(--card); /* #FFFFFF */
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px var(--shadow-sm);
  border-left: 3px solid var(--primary-cta);
}

.blog-sidebar-widget h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-btn);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-cta);
}

.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(--primary-cta);
  transform: translateX(5px);
  text-decoration: none;
}

/* 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(--primary-cta);
}

.blog-search-widget .btn {
  background: var(--primary-cta);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
}

.blog-search-widget .btn:hover {
  background: var(--cta-hover);
}

/* Category Widget */
.category-widget .badge-count {
  float: right;
  background: var(--accent-light);
  color: var(--cta-hover);
  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(--secondary-btn) 0%, var(--primary-cta) 100%);
}

/* Tag/badge style (used for categories on cards) */
.tag {
  background: var(--accent-light);
  color: var(--cta-hover);
  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(--primary-cta);
  color: white;
  text-decoration: none;
}

/* Post meta styling */
.post-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* Pagination styling */
.page-link {
  color: var(--primary-cta);
  border: 1px solid var(--border-light);
  margin: 0 3px;
  border-radius: 8px;
}

.page-link:hover {
  background: var(--accent-light);
  color: var(--cta-hover);
  border-color: var(--primary-cta);
}

.page-item.active .page-link {
  background: var(--primary-cta);
  border-color: var(--primary-cta);
  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;
}

/* ===== HEADER SOCIAL ICONS ===== */
.social-icons-header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--secondary-btn);
  border-radius: 50%;
  color: white;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--primary-cta);
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

.social-icon i {
  font-size: 1rem;
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .social-icons-header {
    gap: 0.5rem;
  }
  
  .social-icon {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
}

/* Very small screens */
@media (max-width: 576px) {
  .social-icons-header {
    justify-content: center;
    margin-top: 0.5rem;
  }
}

/* ===== HEADER - LARGER LOGO ===== */
.logo-section img.main-logo {
    max-width: 250px;  /* Increased from 70px */
    height: auto;
    width: auto;
    display: block;
}

/* ===== SOCIAL ICONS - FIXED FOR ALL PLATFORMS ===== */
.social-icons-header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--secondary-btn, #0B3B8C);
    border-radius: 50%;
    color: #FFFFFF !important;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.social-icon:hover {
    background: var(--primary-cta, #0F766E);
    color: #FFFFFF !important;
    transform: translateY(-3px);
    text-decoration: none !important;
}

.social-icon i,
.social-icon .fa-brands {
    color: #FFFFFF !important;
    font-size: 1.1rem;
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .logo-section img.main-logo {
        max-width: 180px;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .logo-section img.main-logo {
        max-width: 350px;
    }
    
    .social-icons-header {
        gap: 0.4rem;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* ========================================
   SIDEBAR STYLES - The Insure Mantra
   ======================================== */

.sidebar {
    margin-bottom: 2rem;
}

/* Sidebar Widget */
.sidebar-widget {
    background: var(--card, #FFFFFF);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(15, 118, 110, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid var(--primary-cta, #0F766E);
}

.sidebar-widget:hover {
    box-shadow: 0 4px 20px rgba(15, 118, 110, 0.12);
}

.sidebar-widget h4 {
    color: var(--secondary-btn, #0B3B8C);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--primary-cta, #0F766E);
    position: relative;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light, #E2E8F0);
    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, #1E293B);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.2rem 0;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.sidebar-link i {
    color: var(--primary-cta, #0F766E);
    width: 24px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.sidebar-link:hover {
    color: var(--primary-cta, #0F766E);
    transform: translateX(5px);
    text-decoration: none;
}

.sidebar-link:hover i {
    color: var(--primary-cta, #0F766E);
}

/* ===== CTA WIDGET ===== */
.cta-widget {
    background: linear-gradient(135deg, var(--secondary-btn, #0B3B8C) 0%, var(--primary-cta, #0F766E) 100%);
    color: white;
    text-align: center;
    border-left: 4px solid #FFFFFF;
}

.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(--primary-cta, #0F766E);
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-sidebar:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    color: var(--primary-cta, #0F766E);
    text-decoration: none;
}

/* ===== TRUST LIST ===== */
.trust-list li {
    display: flex;
    align-items: center;
    border-bottom: none !important;
    margin-bottom: 0.5rem !important;
    padding-bottom: 0 !important;
}

.trust-list i {
    color: var(--success, #22C55E) !important;
    font-size: 0.95rem;
    width: 24px;
    flex-shrink: 0;
}

.trust-list li span {
    color: var(--text-dark, #1E293B);
    font-size: 0.92rem;
}

/* ===== RESOURCES WIDGET ===== */
.resources-widget .resource-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light, #E2E8F0);
    display: flex;
    align-items: center;
}

.resources-widget .resource-item:last-child {
    border-bottom: none;
}

.resources-widget .resource-item i {
    color: var(--primary-cta, #0F766E);
    width: 24px;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.resources-widget .resource-item a {
    color: var(--text-dark, #1E293B);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.resources-widget .resource-item a:hover {
    color: var(--primary-cta, #0F766E);
    margin-left: 5px;
    text-decoration: none;
}

/* ===== CONTACT IN SIDEBAR ===== */
.sidebar-contact .contact-item {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.sidebar-contact .contact-item i {
    color: var(--primary-cta, #0F766E);
    width: 24px;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.sidebar-contact .contact-item a {
    color: var(--text-dark, #1E293B);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.sidebar-contact .contact-item a:hover {
    color: var(--primary-cta, #0F766E);
    text-decoration: none;
}

/* ===== RESPONSIVE SIDEBAR ===== */
@media (max-width: 768px) {
    .sidebar-widget {
        padding: 1.2rem;
    }
    
    .sidebar-widget h4 {
        font-size: 1rem;
    }
    
    .sidebar-link {
        font-size: 0.9rem;
    }
    
    .cta-widget {
        padding: 1.2rem;
    }
}

@media (max-width: 576px) {
    .sidebar-widget {
        padding: 1rem;
        border-left-width: 3px;
    }
    
    .sidebar-widget h4 {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    
    .sidebar-list li {
        margin-bottom: 0.4rem;
        padding-bottom: 0.4rem;
    }
    
    .sidebar-link {
        font-size: 0.85rem;
    }
    
    .btn-sidebar {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* ========================================
   THE INSURE MANTRA - UTILITY CLASSES
   ======================================== */

/* Brand Colors */
.text-teal { color: #0F766E; }
.text-navy { color: #0B3B8C; }
.text-teal-light { color: #5EEAD4; }
.text-white-90 { color: rgba(255,255,255,0.9); }
.text-white-95 { color: rgba(255,255,255,0.95); }
.text-white-80 { color: rgba(255,255,255,0.8); }
.text-white-70 { color: rgba(255,255,255,0.7); }

/* Backgrounds */
.bg-teal { background: #0F766E; color: white; }
.bg-navy { background: #0B3B8C; color: white; }
.bg-gradient-brand { background: linear-gradient(135deg, #0B3B8C 0%, #0F766E 100%); color: white; }
.bg-gradient-light { background: linear-gradient(135deg, #E6F7F5 0%, #E8EEF7 100%); }

/* Borders */
.border-teal { border: 2px solid #0F766E; }

/* Buttons */
.btn-teal {
    background: #0F766E;
    border: 2px solid #0F766E;
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-teal:hover {
    background: #0B5F59;
    border-color: #0B5F59;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.35);
}

.btn-outline-teal {
    background: transparent;
    border: 2px solid #0F766E;
    color: #0F766E;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-teal:hover {
    background: #0F766E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.35);
}

.fw-600 { font-weight: 600; }
.fw-500 { font-weight: 500; }

.text-decoration-underline { text-decoration: underline; }

/* ============================================
   DEFAULT TABLE STYLES - The Insure Mantra
   Applied to ALL tables automatically
   ============================================ */

/* --- Base Table Styles (Applied to ALL tables) --- */
table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

table thead {
    background: linear-gradient(135deg, #0F766E, #0D9488);
    color: #ffffff;
}

table thead th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: none;
}

table tbody td {
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

table tbody tr:last-child td {
    border-bottom: none;
}

table tbody tr:hover {
    background-color: #f8fafc;
    transition: background 0.2s ease;
}

/* --- Striped Rows (Applied by default) --- */
table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

table tbody tr:nth-child(even):hover {
    background-color: #f1f5f9;
}

/* --- Table Caption --- */
table caption {
    caption-side: bottom;
    padding: 10px 0;
    color: #64748b;
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
}

/* --- Table Footer --- */
table tfoot td {
    padding: 12px 18px;
    background: #f1f5f9;
    font-weight: 500;
    color: #0F172A;
    border-top: 2px solid #e2e8f0;
}

/* --- Responsive Table Wrapper (For horizontal scroll on small screens) --- */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.table-wrapper table {
    margin-bottom: 0;
    border-radius: 12px;
    box-shadow: none;
}

/* --- Bordered Table (Optional - Add class .bordered to table) --- */
table.bordered {
    border: 1px solid #e2e8f0;
}

table.bordered thead th,
table.bordered tbody td {
    border: 1px solid #e2e8f0;
}

/* --- Compact Table (Optional - Add class .compact to table) --- */
table.compact thead th {
    padding: 10px 14px;
    font-size: 0.8rem;
}

table.compact tbody td {
    padding: 8px 14px;
    font-size: 0.85rem;
}

/* --- Highlight Row on Hover (Optional - Add class .highlight to table) --- */
table.highlight tbody tr:hover td {
    background-color: #ccfbf1;
    transition: background 0.2s ease;
}

table.highlight tbody tr:hover td:first-child {
    background-color: #99f6e4;
    font-weight: 600;
}

/* --- Table Badge Styles --- */
.table-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.table-badge-success {
    background: #dcfce7;
    color: #166534;
}

.table-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.table-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.table-badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.table-badge-primary {
    background: #e0e7ff;
    color: #3730a3;
}

.table-badge-teal {
    background: #ccfbf1;
    color: #0F766E;
}

/* --- Feature Icons in Tables --- */
.feature-check {
    color: #0D9488;
    font-size: 1.2rem;
    font-weight: 700;
}

.feature-cross {
    color: #ef4444;
    font-size: 1.2rem;
    font-weight: 700;
}

/* --- Premium Amount Highlight --- */
.premium-amount {
    font-weight: 700;
    color: #0F766E;
    font-size: 1.1rem;
}

/* --- Company Logo in Table --- */
.table-company-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
    padding: 4px;
    border: 1px solid #e2e8f0;
}

/* --- Rating Stars in Table --- */
.table-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* --- Text Alignment Helpers --- */
.table-text-center {
    text-align: center;
}

.table-text-right {
    text-align: right;
}

/* ============================================
   MOBILE RESPONSIVE TABLES
   ============================================ */

@media (max-width: 768px) {
    table {
        font-size: 0.85rem;
    }

    table thead th,
    table tbody td {
        padding: 10px 12px;
    }

    table thead th {
        font-size: 0.75rem;
    }

    .table-badge {
        font-size: 0.65rem;
        padding: 2px 8px;
    }

    .premium-amount {
        font-size: 0.95rem;
    }

    /* Make comparison tables more readable on mobile */
    table.comparison thead th {
        font-size: 0.7rem;
        padding: 8px 6px;
    }

    table.comparison tbody td {
        padding: 10px 6px;
        font-size: 0.8rem;
    }

    table.comparison .premium-amount {
        font-size: 0.9rem;
    }

    .table-company-logo {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    table {
        font-size: 0.75rem;
    }

    table thead th,
    table tbody td {
        padding: 8px 8px;
    }

    table thead th {
        font-size: 0.65rem;
    }

    table.comparison tbody td {
        padding: 8px 4px;
        font-size: 0.7rem;
    }

    table.comparison .premium-amount {
        font-size: 0.8rem;
    }

    .table-company-logo {
        width: 28px;
        height: 28px;
    }

    .table-badge {
        font-size: 0.55rem;
        padding: 2px 6px;
    }

    .feature-check,
    .feature-cross {
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
    .mt-lg-0 {
        margin-top: 25px !important;
    }
}