:root {
  --sfe-orange: #ff6b35;
  --sfe-dark: #000000;
  --sfe-gray: #2c2c2c;
  --sfe-dark-gray: #1a1a1a;
  --sfe-light-gray: #404040;
}

/* Override Bootstrap's text-warning to use our custom orange */
.text-warning {
  color: var(--sfe-orange) !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #fff;
  background-color: var(--sfe-dark);
}

/* Custom Background Classes */
.bg-gray {
  background-color: var(--sfe-gray) !important;
}

.bg-dark-gray {
  background-color: var(--sfe-dark-gray) !important;
}

/* Navigation */
.navbar-brand {
  font-size: 1.2rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--sfe-orange) !important;
}

/* Blog Hero Section */
.blog-hero {
  position: relative;
  min-height: 60vh;
  margin-top: px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sfe-dark) 0%, var(--sfe-dark-gray) 50%, var(--sfe-dark) 100%);
  overflow: hidden;
}

.blog-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.blog-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  z-index: 2;
}

.blog-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem;
}

.blog-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.blog-hero-subtitle {
  font-size: 1.2rem;
  color: #adb5bd;
  margin-bottom: 1.5rem;
}

.blog-hero-line {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--sfe-orange), #e55a2b);
  margin: 0 auto;
  border-radius: 2px;
}

/* Filters Section */
.blog-filters {
  border-bottom: 1px solid var(--sfe-light-gray);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--sfe-light-gray);
  background: transparent;
  color: #adb5bd;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--sfe-orange);
  color: var(--sfe-orange);
}

.filter-btn.active {
  background: var(--sfe-orange);
  border-color: var(--sfe-orange);
  color: #ffffff;
}

.search-box {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1px solid var(--sfe-light-gray);
  background: var(--sfe-gray);
  color: #ffffff;
  border-radius: 25px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--sfe-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.search-input::placeholder {
  color: #6c757d;
}

/* Section Title */
.section-title {
  font-size: 2rem;
  font-weight: 700;
}

/* Featured Article */
.featured-card {
  background: linear-gradient(135deg, var(--sfe-dark-gray) 0%, var(--sfe-gray) 100%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--sfe-light-gray);
  transition: all 0.4s ease;
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.15);
  border-color: var(--sfe-orange);
}

.featured-image {
  position: relative;
  height: 100%;
  min-height: 350px;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, var(--sfe-orange), #e55a2b);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.featured-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.featured-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.featured-category {
  background: rgba(255, 107, 53, 0.2);
  color: var(--sfe-orange);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.featured-date {
  color: #adb5bd;
  font-size: 0.9rem;
}

.featured-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.featured-excerpt {
  color: #adb5bd;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.featured-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--sfe-orange), #e55a2b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
}

.author-role {
  color: #6c757d;
  font-size: 0.85rem;
}

/* Blog Cards Grid */
.blog-card {
  background: linear-gradient(135deg, var(--sfe-dark-gray) 0%, var(--sfe-gray) 100%);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--sfe-light-gray);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(255, 107, 53, 0.15);
  border-color: var(--sfe-orange);
}

.blog-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.1);
}

.blog-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, var(--sfe-orange), #e55a2b);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.blog-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: #6c757d;
  font-size: 0.85rem;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
  color: var(--sfe-orange);
}

.blog-card-excerpt {
  color: #adb5bd;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.blog-card-link {
  color: var(--sfe-orange);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.blog-card-link:hover {
  color: #e55a2b;
}

.blog-card-link i {
  transition: transform 0.3s ease;
}

.blog-card-link:hover i {
  transform: translateX(5px);
}

/* Pagination */
.blog-pagination .pagination {
  gap: 0.5rem;
}

.blog-pagination .page-link {
  background: var(--sfe-gray);
  border: 1px solid var(--sfe-light-gray);
  color: #adb5bd;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.blog-pagination .page-link:hover {
  background: var(--sfe-orange);
  border-color: var(--sfe-orange);
  color: #ffffff;
}

.blog-pagination .page-item.active .page-link {
  background: var(--sfe-orange);
  border-color: var(--sfe-orange);
  color: #ffffff;
}

.blog-pagination .page-item.disabled .page-link {
  background: var(--sfe-dark-gray);
  border-color: var(--sfe-light-gray);
  color: #6c757d;
}

/* Newsletter Section */
.newsletter-card {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.newsletter-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: newsletterShine 4s ease-in-out infinite;
}

@keyframes newsletterShine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.newsletter-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.newsletter-text {
  color: #adb5bd;
  font-size: 1rem;
}

.newsletter-form .input-group {
  max-width: 500px;
}

.newsletter-form .form-control {
  background: var(--sfe-gray);
  border: 1px solid var(--sfe-light-gray);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: 25px 0 0 25px;
}

.newsletter-form .form-control:focus {
  background: var(--sfe-gray);
  border-color: var(--sfe-orange);
  box-shadow: none;
  color: #ffffff;
}

.newsletter-form .form-control::placeholder {
  color: #6c757d;
}

.newsletter-form .btn {
  border-radius: 0 25px 25px 0;
  padding: 0.85rem 1.5rem;
}

/* Buttons */
.btn-warning {
  background-color: var(--sfe-orange) !important;
  border-color: var(--sfe-orange) !important;
  color: white !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-warning:hover {
  background-color: #e55a2b !important;
  border-color: #e55a2b !important;
  color: white !important;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background-color: #000000 !important;
}

footer a:hover {
  color: var(--sfe-orange) !important;
  transition: color 0.3s ease;
}

footer .navbar-brand {
  font-size: 1.2rem;
}

footer .navbar-brand span {
  color: var(--sfe-orange);
}

/* MÓVIL - Diseño vertical centrado (≤768px) */
@media (max-width: 768px) {
  .blog-hero-title {
    font-size: 2.5rem;
  }

  .blog-hero-subtitle {
    font-size: 1rem;
  }

  .featured-image {
    min-height: 250px;
  }

  .featured-title {
    font-size: 1.4rem;
  }

  .featured-content {
    padding: 1.5rem;
  }

  .newsletter-card {
    padding: 2rem;
    text-align: center;
  }

  .newsletter-form .input-group {
    flex-direction: column;
    gap: 1rem;
  }

  .newsletter-form .form-control {
    border-radius: 25px;
  }

  .newsletter-form .btn {
    border-radius: 25px;
    width: 100%;
  }

  /* Footer móvil */
  .footer-mobile-header {
    order: 1;
    margin-bottom: 2rem;
  }

  .footer-mobile-header .footer-brand {
    text-align: center;
  }

  .footer-mobile-header .social-section {
    text-align: center;
  }

  .footer-mobile-left {
    order: 2;
    padding-right: 1rem;
  }

  .footer-mobile-right {
    order: 3;
    padding-left: 1rem;
  }

  .footer-mobile-left h6,
  .footer-mobile-right h6 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .footer-mobile-left ul,
  .footer-mobile-right ul {
    margin-bottom: 1.5rem;
  }

  .footer-mobile-left li,
  .footer-mobile-right li {
    margin-bottom: 0.5rem;
  }

  .footer-mobile-left .small,
  .footer-mobile-right .small {
    font-size: 0.85rem;
  }

  footer .row:last-child .d-flex {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  footer .row:last-child .col-md-6:last-child {
    text-align: center !important;
  }
}

@media (max-width: 576px) {
  .blog-hero-title {
    font-size: 2rem;
  }

  .filter-buttons {
    justify-content: center;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* DESKTOP/TABLET - Diseño horizontal 4 columnas (>768px) */
@media (min-width: 769px) {
  .footer-desktop-brand {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .footer-desktop-brand .footer-brand {
    text-align: left;
  }

  .footer-desktop-brand .social-section {
    text-align: left;
  }

  footer .row.g-4 > div {
    padding-left: 15px;
    padding-right: 15px;
  }

  footer h6 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  footer ul {
    margin-bottom: 0;
  }

  footer li {
    margin-bottom: 0.75rem;
  }

  footer .small {
    font-size: 0.9rem;
  }
}

/* Ajustes específicos para tablet */
@media (min-width: 769px) and (max-width: 992px) {
  .footer-desktop-brand {
    flex: 0 0 30%;
    max-width: 30%;
  }

  footer .col-lg-2 {
    flex: 0 0 20%;
    max-width: 20%;
  }

  footer .col-lg-4 {
    flex: 0 0 30%;
    max-width: 30%;
  }

  footer .col-lg-3 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* Estilos comunes para ambos diseños */
.social-section a {
  transition: color 0.3s ease;
}

.social-section a:hover {
  color: var(--sfe-orange) !important;
}

footer h6.text-warning {
  color: var(--sfe-orange) !important;
  font-weight: 600;
}

footer .text-light {
  color: #ffffff !important;
}

footer .text-muted {
  color: #6c757d !important;
}

footer hr {
  border-color: #404040 !important;
  margin: 2rem 0;
}

footer .row:last-child {
  margin-top: 1rem;
}

footer .row:last-child p,
footer .row:last-child a {
  font-size: 0.85rem;
}

/* Animation for blog items */
.blog-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.blog-item.hidden {
  opacity: 0;
  transform: translateY(20px);
  position: absolute;
  pointer-events: none;
}

/* Form Control Styles */
.form-control:focus {
  border-color: var(--sfe-orange);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
  background-color: var(--sfe-gray) !important;
  color: #fff !important;
}

/* =================================== */
/* THEME TOGGLE BUTTON */
/* =================================== */

.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--sfe-orange);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  background: rgba(255, 107, 53, 0.15);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

.theme-toggle-btn .theme-icon-light,
.theme-toggle-btn .theme-icon-dark {
  position: absolute;
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark mode: show sun icon (to switch to light) */
.dark-mode .theme-toggle-btn .theme-icon-light {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: var(--sfe-orange);
}

.dark-mode .theme-toggle-btn .theme-icon-dark {
  opacity: 0;
  transform: rotate(-180deg) scale(0);
}

/* Light mode: show moon icon (to switch to dark) */
.light-mode .theme-toggle-btn .theme-icon-light {
  opacity: 0;
  transform: rotate(180deg) scale(0);
}

.light-mode .theme-toggle-btn .theme-icon-dark {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: var(--sfe-orange);
}

/* =================================== */
/* LIGHT MODE STYLES */
/* =================================== */

/* Light mode variables */
.light-mode {
  --lm-bg-primary: #ffffff;
  --lm-bg-secondary: #f8f9fa;
  --lm-bg-tertiary: #e9ecef;
  --lm-bg-card: #ffffff;
  --lm-text-primary: #1a1a1a;
  --lm-text-secondary: #4a4a4a;
  --lm-text-muted: #6c757d;
  --lm-border: #dee2e6;
}

/* Body styles for light mode */
.light-mode {
  background-color: var(--lm-bg-primary);
  color: var(--lm-text-primary);
}

/* NAVBAR - Light Mode */
.light-mode .navbar {
  background-color: var(--lm-bg-primary) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.light-mode .navbar-nav .nav-link {
  color: var(--lm-text-primary) !important;
}

.light-mode .navbar-nav .nav-link:hover,
.light-mode .navbar-nav .nav-link.active {
  color: var(--sfe-orange) !important;
}

.light-mode .brand-text-white {
  color: var(--lm-text-primary) !important;
}

.light-mode .navbar-toggler {
  border-color: var(--lm-text-secondary);
}

.light-mode .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 26, 26, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dark mode navbar brand text */
.dark-mode .brand-text-white {
  color: #ffffff !important;
}

/* BLOG HERO - Keep dark for visual impact */
.light-mode .blog-hero {
  /* Keep hero section dark */
}

.light-mode .blog-hero .text-white,
.light-mode .blog-hero-title {
  color: #ffffff !important;
}

/* FILTERS SECTION - Light Mode */
.light-mode .blog-filters,
.light-mode .blog-filters.bg-dark-gray {
  background-color: var(--lm-bg-secondary) !important;
  border-bottom: 1px solid var(--lm-border);
}

.light-mode .filter-btn {
  border-color: var(--lm-border);
  color: var(--lm-text-secondary);
  background: var(--lm-bg-card);
}

.light-mode .filter-btn:hover {
  border-color: var(--sfe-orange);
  color: var(--sfe-orange);
}

.light-mode .filter-btn.active {
  background: var(--sfe-orange);
  border-color: var(--sfe-orange);
  color: #ffffff;
}

.light-mode .search-input {
  background: var(--lm-bg-card);
  border-color: var(--lm-border);
  color: var(--lm-text-primary);
}

.light-mode .search-input:focus {
  border-color: var(--sfe-orange);
  background: var(--lm-bg-card);
}

.light-mode .search-input::placeholder {
  color: var(--lm-text-muted);
}

.light-mode .search-icon {
  color: var(--lm-text-muted);
}

/* FEATURED ARTICLE SECTION - Light Mode */
.light-mode .featured-article,
.light-mode .featured-article.bg-dark {
  background-color: var(--lm-bg-primary) !important;
}

.light-mode .section-title.text-white {
  color: var(--lm-text-primary) !important;
}

.light-mode .featured-card {
  background: linear-gradient(135deg, var(--lm-bg-card) 0%, var(--lm-bg-secondary) 100%) !important;
  border-color: var(--lm-border) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.light-mode .featured-card:hover {
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.15);
  border-color: var(--sfe-orange) !important;
}

.light-mode .featured-title {
  color: var(--lm-text-primary) !important;
}

.light-mode .featured-excerpt {
  color: var(--lm-text-secondary) !important;
}

.light-mode .featured-date {
  color: var(--lm-text-muted);
}

.light-mode .author-name {
  color: var(--lm-text-primary) !important;
}

.light-mode .author-role {
  color: var(--lm-text-muted);
}

/* BLOG GRID SECTION - Light Mode */
.light-mode .blog-grid,
.light-mode .blog-grid.bg-dark-gray {
  background-color: var(--lm-bg-secondary) !important;
}

.light-mode .blog-card {
  background: linear-gradient(135deg, var(--lm-bg-card) 0%, var(--lm-bg-secondary) 100%) !important;
  border-color: var(--lm-border) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.light-mode .blog-card:hover {
  box-shadow: 0 15px 35px rgba(255, 107, 53, 0.15);
  border-color: var(--sfe-orange) !important;
}

.light-mode .blog-card-title {
  color: var(--lm-text-primary) !important;
}

.light-mode .blog-card:hover .blog-card-title {
  color: var(--sfe-orange) !important;
}

.light-mode .blog-card-excerpt {
  color: var(--lm-text-secondary) !important;
}

.light-mode .blog-card-meta {
  color: var(--lm-text-muted) !important;
}

/* PAGINATION - Light Mode */
.light-mode .blog-pagination .page-link {
  background: var(--lm-bg-card);
  border-color: var(--lm-border);
  color: var(--lm-text-secondary);
}

.light-mode .blog-pagination .page-link:hover {
  background: var(--sfe-orange);
  border-color: var(--sfe-orange);
  color: #ffffff;
}

.light-mode .blog-pagination .page-item.active .page-link {
  background: var(--sfe-orange);
  border-color: var(--sfe-orange);
  color: #ffffff;
}

.light-mode .blog-pagination .page-item.disabled .page-link {
  background: var(--lm-bg-tertiary);
  border-color: var(--lm-border);
  color: var(--lm-text-muted);
}

/* NEWSLETTER SECTION - Light Mode */
.light-mode .newsletter-card {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 107, 53, 0.04));
  border-color: rgba(255, 107, 53, 0.15);
}

.light-mode .newsletter-title {
  color: var(--lm-text-primary) !important;
}

.light-mode .newsletter-text {
  color: var(--lm-text-secondary) !important;
}

.light-mode .newsletter-form .form-control {
  background: var(--lm-bg-card);
  border-color: var(--lm-border);
  color: var(--lm-text-primary);
}

.light-mode .newsletter-form .form-control:focus {
  background: var(--lm-bg-card);
  border-color: var(--sfe-orange);
}

.light-mode .newsletter-form .form-control::placeholder {
  color: var(--lm-text-muted);
}

/* FOOTER - Light Mode */
.light-mode footer,
.light-mode footer.bg-black {
  background-color: var(--lm-bg-tertiary) !important;
}

.light-mode footer .text-white,
.light-mode footer .text-light {
  color: var(--lm-text-primary) !important;
}

.light-mode footer .text-muted {
  color: var(--lm-text-muted) !important;
}

.light-mode footer h5.text-warning,
.light-mode footer h6.text-warning {
  color: var(--sfe-orange) !important;
}

.light-mode footer a.text-light {
  color: var(--lm-text-primary) !important;
}

.light-mode footer a.text-light:hover,
.light-mode footer a.text-muted:hover {
  color: var(--sfe-orange) !important;
}

.light-mode footer hr {
  border-color: var(--lm-border) !important;
}

.light-mode footer .social-section a {
  color: var(--lm-text-primary) !important;
}

.light-mode footer .social-section a:hover {
  color: var(--sfe-orange) !important;
}

/* Responsive adjustments for theme toggle */
@media (max-width: 991px) {
  .theme-toggle-btn {
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {
  .theme-toggle-btn {
    width: 40px;
    height: 40px;
  }
  
  .theme-toggle-btn .theme-icon-light,
  .theme-toggle-btn .theme-icon-dark {
    font-size: 1rem;
  }
}

/* Smooth transitions for theme change */
body,
.navbar,
.blog-filters,
.featured-article,
.featured-card,
.blog-grid,
.blog-card,
.newsletter-card,
footer,
.filter-btn,
.search-input,
.page-link {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
