﻿/* ============================================================
   FOS Academy - Premium Custom Theme
   Light White + Logo Red Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&display=swap');

:root {
  --fos-white:      #ffffff;
  --fos-gray-50:    #f9fafb;
  --fos-gray-100:   #f3f4f6;
  --fos-gray-200:   #e5e7eb;
  --fos-gray-300:   #d1d5db;
  --fos-gray-400:   #9ca3af;
  --fos-gray-500:   #6b7280;
  --fos-gray-600:   #4b5563;
  --fos-gray-700:   #374151;
  --fos-gray-800:   #1f2937;
  --fos-gray-900:   #111827;
  --fos-red-700:    #b91c1c;
  --fos-red-600:    #DA1D2B;
  --fos-red-500:    #e53540;
  --fos-red-400:    #f05060;
  --fos-red-100:    #fee2e2;
  --fos-red-50:     #fff1f2;
  --fos-gradient-primary: linear-gradient(135deg, #DA1D2B 0%, #b91c1c 100%);
  --fos-gradient-card: linear-gradient(145deg, rgba(218,29,43,0.04) 0%, rgba(185,28,28,0.02) 100%);
  --fos-gradient-accent: linear-gradient(90deg, #DA1D2B, #9f1239);
  --fos-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --fos-shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05);
  --fos-shadow-lg: 0 20px 48px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --fos-shadow-red: 0 8px 24px rgba(218,29,43,0.25);
  --fos-shadow-glow: 0 0 30px rgba(218,29,43,0.08);
  --fos-font-base: 'Bricolage Grotesque', sans-serif;
  --fos-font-display: 'Bricolage Grotesque', sans-serif;
  --fos-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fos-trans-fast: 0.15s var(--fos-ease);
  --fos-trans-base: 0.25s var(--fos-ease);
  --fos-trans-slow: 0.4s var(--fos-ease);
  --fos-radius-sm: 6px;
  --fos-radius-md: 12px;
  --fos-radius-lg: 18px;
  --fos-radius-xl: 24px;
  --fos-radius-pill: 9999px;
}

body {
  font-family: var(--fos-font-base) !important;
  background-color: var(--fos-gray-50) !important;
  color: var(--fos-gray-700) !important;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

* { box-sizing: border-box; }

body:not(.view-login) h1,
body:not(.view-login) h2,
body:not(.view-login) h3,
body:not(.view-login) h4,
body:not(.view-login) h5,
body:not(.view-login) h6 {
  font-family: var(--fos-font-display) !important;
  color: var(--fos-gray-900) !important;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

body:not(.view-login) a {
  color: var(--fos-red-600) !important;
  transition: color var(--fos-trans-base) !important;
}
body:not(.view-login) a:hover, body:not(.view-login) a:focus {
  color: var(--fos-red-700) !important;
  text-decoration: none;
}

p { color: var(--fos-gray-600); }
strong, b { color: var(--fos-gray-800); }
hr { border-color: var(--fos-gray-200) !important; opacity: 1; }

.body-wrapper,
.body-innerwrapper { background: var(--fos-gray-50) !important; }

.body-innerwrapper::before {
  content: '';
  position: fixed; top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(218,29,43,0.05) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none; z-index: 0;
  animation: fosOrbFloat 12s ease-in-out infinite;
}

.body-innerwrapper::after {
  content: '';
  position: fixed; bottom: -15%; left: -8%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(159,18,57,0.04) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none; z-index: 0;
  animation: fosOrbFloat 16s ease-in-out infinite reverse;
}

@keyframes fosOrbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-40px) scale(1.05); }
}

#sp-main { position: relative; z-index: 1; }

#sp-header {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(20px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.5) !important;
  border-bottom: 1px solid var(--fos-gray-200) !important;
  box-shadow: 0 1px 12px rgba(0,0,0,0.06) !important;
  transition: background var(--fos-trans-slow), box-shadow var(--fos-trans-slow) !important;
  height: auto !important;
  min-height: 70px !important;
}

#sp-header.header-sticky {
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08) !important;
}

#sp-header .logo a,
#sp-header .logo a:hover {
  color: var(--fos-gray-900) !important;
  font-family: var(--fos-font-display) !important;
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em;
}

#sp-header .logo img {
  filter: drop-shadow(0 0 6px rgba(218,29,43,0.15));
  transition: filter var(--fos-trans-base);
}

#sp-header .logo img:hover {
  filter: drop-shadow(0 0 12px rgba(218,29,43,0.3));
}

.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
  color: var(--fos-gray-600) !important;
  font-weight: 500 !important; font-size: 0.9rem !important;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--fos-radius-sm) !important;
  transition: color var(--fos-trans-base), background var(--fos-trans-base) !important;
  position: relative;
}

.sp-megamenu-parent > li > a::after {
  content: '';
  position: absolute; bottom: 2px; left: 0.9rem; right: 0.9rem;
  height: 2px; background: var(--fos-gradient-primary);
  border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform var(--fos-trans-base);
}

.sp-megamenu-parent > li > a:hover,
.sp-megamenu-parent > li > span:hover {
  color: var(--fos-gray-900) !important;
  background: var(--fos-gray-100) !important;
}

.sp-megamenu-parent > li > a:hover::after,
.sp-megamenu-parent > li.active > a::after { transform: scaleX(1); }

.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li.active:hover > a {
  color: var(--fos-red-600) !important;
  background: var(--fos-red-50) !important;
}

.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
  background: rgba(255,255,255,0.98) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid var(--fos-gray-200) !important;
  border-radius: var(--fos-radius-md) !important;
  box-shadow: var(--fos-shadow-lg) !important;
  padding: 0.5rem !important;
}

.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
  color: var(--fos-gray-600) !important;
  padding: 0.6rem 1rem !important;
  border-radius: var(--fos-radius-sm) !important;
  transition: color var(--fos-trans-fast), background var(--fos-trans-fast) !important;
  font-size: 0.875rem !important;
}

.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover {
  color: var(--fos-gray-900) !important;
  background: var(--fos-gray-100) !important;
}

.burger-icon > span {
  background-color: var(--fos-gray-600) !important;
  transition: background-color var(--fos-trans-base);
}

.sp-sign-in {
  color: var(--fos-gray-600) !important;
  font-size: 0.9rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.85rem !important;
  border-radius: var(--fos-radius-pill) !important;
  border: 1px solid var(--fos-gray-200);
  background: var(--fos-gray-100);
  transition: all var(--fos-trans-base) !important;
}

.sp-sign-in:hover {
  color: var(--fos-gray-900) !important;
  background: var(--fos-gray-200) !important;
  border-color: var(--fos-gray-300) !important;
}

.sp-profile-wrapper .sp-profile-dropdown {
  background: rgba(255,255,255,0.98) !important;
  backdrop-filter: blur(24px) !important;
  border: 1px solid var(--fos-gray-200) !important;
  border-radius: var(--fos-radius-md) !important;
  box-shadow: var(--fos-shadow-lg) !important;
  padding: 0.5rem !important;
  min-width: 180px !important;
}

.sp-profile-wrapper .sp-profile-dropdown li a,
.sp-profile-wrapper .sp-profile-dropdown .sp-logout-btn {
  color: var(--fos-gray-600) !important;
  padding: 0.6rem 1rem !important;
  border-radius: var(--fos-radius-sm) !important;
  font-size: 0.875rem !important;
  transition: color var(--fos-trans-fast), background var(--fos-trans-fast) !important;
}

.sp-profile-wrapper .sp-profile-dropdown li a:hover,
.sp-profile-wrapper .sp-profile-dropdown .sp-logout-btn:hover {
  color: var(--fos-gray-900) !important;
  background: var(--fos-gray-100) !important;
}

.sp-profile-wrapper .sp-profile-dropdown > li:not(:last-child) {
  border-bottom: 1px solid var(--fos-gray-100) !important;
}

.sp-profile-wrapper .sp-profile-dropdown .sp-logout-btn {
  color: var(--fos-red-600) !important;
}

.sp-profile-wrapper .sp-profile-dropdown .sp-logout-btn:hover {
  color: var(--fos-red-700) !important;
  background: var(--fos-red-50) !important;
}

#sp-main-body {
  padding: 80px 0 !important;
  min-height: 60vh;
  background: var(--fos-gray-50) !important;
}

.sp-page-title {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 50%, #f3f4f6 100%) !important;
  border-bottom: 1px solid var(--fos-gray-200);
  padding: 50px 0 !important;
  position: relative; overflow: hidden;
}

.sp-page-title::before {
  content: '';
  position: absolute; top: -50%; right: 5%;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(218,29,43,0.07) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}

.sp-page-title .sp-page-title-heading {
  font-family: var(--fos-font-display) !important;
  font-size: 2.25rem !important; font-weight: 800 !important;
  color: var(--fos-gray-900) !important; text-shadow: none;
}

.sp-page-title .sp-page-title-sub-heading {
  color: var(--fos-gray-500) !important; font-size: 1rem !important;
}

.sp-page-title .breadcrumb > span a,
.sp-page-title .breadcrumb > li a { color: var(--fos-red-600) !important; }

.sp-page-title .breadcrumb > .active,
.sp-page-title .breadcrumb > span { color: var(--fos-gray-500) !important; }

.article-list .article {
  background: var(--fos-white) !important;
  border: 1px solid var(--fos-gray-200) !important;
  border-radius: var(--fos-radius-lg) !important;
  padding: 1.5rem !important;
  transition: transform var(--fos-trans-base), box-shadow var(--fos-trans-base), border-color var(--fos-trans-base) !important;
  position: relative; overflow: hidden;
}

.article-list .article::before {
  content: ''; position: absolute; inset: 0;
  background: var(--fos-gradient-card); opacity: 0;
  transition: opacity var(--fos-trans-base);
  border-radius: var(--fos-radius-lg); pointer-events: none;
}

.article-list .article:hover {
  transform: translateY(-4px);
  border-color: rgba(218,29,43,0.2) !important;
  box-shadow: var(--fos-shadow-md), 0 0 30px rgba(218,29,43,0.06) !important;
}

.article-list .article:hover::before { opacity: 1; }

.article-list .article .article-header h1 a,
.article-list .article .article-header h2 a,
.article-list .article .article-header h4 a {
  color: var(--fos-gray-900) !important;
  font-family: var(--fos-font-display) !important;
  font-weight: 700 !important;
  transition: color var(--fos-trans-base) !important;
}

.article-list .article .article-header h1 a:hover,
.article-list .article .article-header h2 a:hover,
.article-list .article .article-header h4 a:hover { color: var(--fos-red-600) !important; }

.article-list .article .article-intro-image,
.article-list .article .article-full-image {
  border-radius: var(--fos-radius-md) var(--fos-radius-md) 0 0 !important;
  overflow: hidden;
}

.article-list .article .article-intro-image img { transition: transform var(--fos-trans-slow); }
.article-list .article:hover .article-intro-image img { transform: scale(1.04); }

.article-info > span { color: var(--fos-gray-400) !important; font-size: 0.8rem !important; }
.article-info > span a { color: var(--fos-red-600) !important; }

.article-list .article .readmore a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--fos-red-600) !important; font-weight: 600 !important;
  font-size: 0.875rem; padding: 0.45rem 1rem;
  border: 1px solid rgba(218,29,43,0.25);
  border-radius: var(--fos-radius-pill);
  transition: all var(--fos-trans-base) !important;
}

.article-list .article .readmore a:hover {
  background: var(--fos-gradient-primary) !important;
  color: #ffffff !important; border-color: transparent !important;
  box-shadow: var(--fos-shadow-red); transform: translateX(2px);
}

.article-details {
  background: var(--fos-white);
  border: 1px solid var(--fos-gray-200);
  border-radius: var(--fos-radius-lg);
  padding: 2rem !important;
}

.article-details .article-header h1,
.article-details .article-header h2,
.article-details .article-header h4 {
  font-size: 2.25rem !important; line-height: 1.2 !important;
  color: var(--fos-gray-900) !important;
}

#sp-left .sp-module,
#sp-right .sp-module {
  background: var(--fos-white) !important;
  border: 1px solid var(--fos-gray-200) !important;
  border-radius: var(--fos-radius-lg) !important;
  padding: 1.5rem !important;
  transition: border-color var(--fos-trans-base);
}

#sp-left .sp-module:hover,
#sp-right .sp-module:hover { border-color: rgba(218,29,43,0.2) !important; }

#sp-left .sp-module .sp-module-title,
#sp-right .sp-module .sp-module-title {
  color: var(--fos-gray-900) !important;
  font-family: var(--fos-font-display) !important;
  font-size: 1rem !important; font-weight: 700 !important;
  padding-bottom: 0.75rem !important; margin-bottom: 1rem !important;
  border-bottom: 1px solid var(--fos-gray-200) !important;
  position: relative;
}

#sp-left .sp-module .sp-module-title::after,
#sp-right .sp-module .sp-module-title::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 40px; height: 2px;
  background: var(--fos-gradient-primary); border-radius: 2px;
}

#sp-left .sp-module ul > li > a,
#sp-right .sp-module ul > li > a {
  color: var(--fos-gray-500) !important;
  padding: 0.4rem 0 !important; font-size: 0.875rem;
  transition: color var(--fos-trans-fast), padding-left var(--fos-trans-fast) !important;
  display: block;
}

#sp-left .sp-module ul > li > a:hover,
#sp-right .sp-module ul > li > a:hover {
  color: var(--fos-red-600) !important; padding-left: 0.5rem !important;
}

#sp-left .sp-module ul > li,
#sp-right .sp-module ul > li { border-bottom: 1px solid var(--fos-gray-100) !important; }

.sp-module .sp-module-title {
  color: var(--fos-gray-900) !important;
  font-family: var(--fos-font-display) !important;
  font-weight: 700 !important;
}

.btn-primary, .sppb-btn-primary, .btn.btn-primary {
  background: var(--fos-gradient-primary) !important;
  border: none !important; border-radius: var(--fos-radius-md) !important;
  font-weight: 600 !important; padding: 0.65rem 1.5rem !important;
  box-shadow: var(--fos-shadow-red) !important;
  transition: all var(--fos-trans-base) !important;
  color: #ffffff !important;
}

.btn-primary:hover, .sppb-btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px rgba(218,29,43,0.4) !important;
  filter: brightness(1.08);
}

.btn-secondary, .btn.btn-secondary {
  background: var(--fos-white) !important;
  border: 1px solid var(--fos-gray-300) !important;
  color: var(--fos-gray-600) !important;
  border-radius: var(--fos-radius-md) !important;
  font-weight: 600 !important;
  transition: all var(--fos-trans-base) !important;
}

.btn-secondary:hover {
  background: var(--fos-gray-100) !important;
  border-color: var(--fos-gray-400) !important;
  color: var(--fos-gray-800) !important;
}

.pagination > li > a, .pagination > li > span {
  background: var(--fos-white) !important;
  border: 1px solid var(--fos-gray-200) !important;
  color: var(--fos-gray-600) !important;
  border-radius: var(--fos-radius-sm) !important;
  margin: 0 2px !important;
  transition: all var(--fos-trans-fast) !important;
}

.pagination > li > a:hover {
  background: var(--fos-red-600) !important;
  border-color: var(--fos-red-600) !important;
  color: #ffffff !important;
}

.pagination > .active > a, .pagination > .active > span {
  background: var(--fos-gradient-primary) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: var(--fos-shadow-red) !important;
}

.tags > li a {
  background: var(--fos-red-50) !important;
  color: var(--fos-red-600) !important;
  border: 1px solid rgba(218,29,43,0.15) !important;
  border-radius: var(--fos-radius-pill) !important;
  font-size: 0.78rem !important; font-weight: 600 !important;
  padding: 0.3rem 0.85rem !important;
  transition: all var(--fos-trans-fast) !important;
}

.tags > li a:hover {
  background: var(--fos-gradient-primary) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: var(--fos-shadow-red);
}

body:not(.view-login) .form-control,
body:not(.view-login) input[type=text],
body:not(.view-login) input[type=email],
body:not(.view-login) input[type=password],
body:not(.view-login) input[type=search],
body:not(.view-login) input[type=number],
body:not(.view-login) input[type=tel],
body:not(.view-login) textarea,
body:not(.view-login) select {
  background-color: var(--fos-white) !important;
  border: 1.5px solid var(--fos-gray-300) !important;
  border-radius: var(--fos-radius-sm) !important;
  color: var(--fos-gray-800) !important;
  transition: border-color var(--fos-trans-fast), box-shadow var(--fos-trans-fast) !important;
}

body:not(.view-login) .form-control:focus,
body:not(.view-login) input:focus,
body:not(.view-login) textarea:focus {
  border-color: var(--fos-red-600) !important;
  background-color: var(--fos-white) !important;
  box-shadow: 0 0 0 3px rgba(218,29,43,0.12) !important;
  color: var(--fos-gray-900) !important;
}

body:not(.view-login) .form-control::placeholder,
body:not(.view-login) input::placeholder { color: var(--fos-gray-400) !important; }

body:not(.view-login) label {
  color: var(--fos-gray-700) !important;
  font-weight: 500; font-size: 0.875rem;
}

.header-modules .search form input {
  background: var(--fos-gray-100) !important;
  border: 1px solid var(--fos-gray-200) !important;
  color: var(--fos-gray-800) !important;
  border-radius: var(--fos-radius-sm) !important;
}

#sp-bottom {
  background: var(--fos-gray-900) !important;
  color: var(--fos-gray-400) !important;
  border-top: 1px solid var(--fos-gray-700) !important;
  padding: 70px 0 40px !important;
  position: relative; overflow: hidden;
}

#sp-bottom::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(218,29,43,0.5), rgba(159,18,57,0.5), transparent);
}

#sp-bottom .sp-module-title {
  color: #f9fafb !important;
  font-family: var(--fos-font-display) !important;
  font-size: 1rem !important; font-weight: 700 !important;
  letter-spacing: 0.02em; text-transform: uppercase;
  margin-bottom: 1.5rem !important; position: relative; padding-bottom: 0.75rem;
}

#sp-bottom .sp-module-title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--fos-gradient-accent); border-radius: 2px;
}

#sp-bottom .sp-module ul > li { margin-bottom: 0.65rem !important; }

#sp-bottom .sp-module ul > li > a {
  color: var(--fos-gray-400) !important; font-size: 0.875rem;
  transition: color var(--fos-trans-fast), padding-left var(--fos-trans-fast) !important;
  display: flex; align-items: center; gap: 0.35rem;
}

#sp-bottom .sp-module ul > li > a:hover {
  color: var(--fos-red-400) !important; padding-left: 4px;
}

#sp-footer {
  background: var(--fos-gray-900) !important;
  color: var(--fos-gray-500) !important;
  border-top: 1px solid var(--fos-gray-700) !important;
  padding: 0 !important;
}

#sp-footer .container-inner {
  padding: 20px 0 !important;
  border-top: 1px solid #1f2937 !important;
}

#sp-footer a { color: var(--fos-gray-400) !important; font-size: 0.85rem; transition: color var(--fos-trans-fast) !important; }
#sp-footer a:hover { color: var(--fos-red-400) !important; }
#sp-footer ul.menu li a { color: var(--fos-gray-400) !important; padding: 0 !important; font-size: 0.85rem; }
#sp-footer ul.menu li a:hover { color: var(--fos-red-400) !important; background: none !important; }

#sp-top-bar {
  background: var(--fos-white) !important;
  color: var(--fos-gray-500) !important;
  border-bottom: 1px solid var(--fos-gray-200) !important;
  font-size: 0.8rem !important;
}

#sp-top-bar a { color: var(--fos-gray-500) !important; }
#sp-top-bar a:hover { color: var(--fos-red-600) !important; }

#system-message-container {
  position: fixed !important; top: auto !important;
  bottom: 1.5rem !important; right: 1.5rem !important;
  max-width: 380px !important; z-index: 99999 !important;
}

.alert {
  border-radius: var(--fos-radius-md) !important;
  border: 1px solid var(--fos-gray-200) !important;
  font-size: 0.875rem !important;
  box-shadow: var(--fos-shadow-lg) !important;
  background: var(--fos-white) !important;
}

.alert-success { background: #f0fdf4 !important; border-color: #bbf7d0 !important; color: #166534 !important; }
.alert-warning { background: #fffbeb !important; border-color: #fde68a !important; color: #92400e !important; }
.alert-error, .alert-danger { background: #fef2f2 !important; border-color: #fecaca !important; color: #991b1b !important; }
.alert-info { background: var(--fos-red-50) !important; border-color: rgba(218,29,43,0.2) !important; color: var(--fos-red-700) !important; }

.sp-scroll-up {
  background: var(--fos-gradient-primary) !important;
  border-radius: var(--fos-radius-pill) !important;
  box-shadow: var(--fos-shadow-red) !important;
  color: #ffffff !important;
  width: 42px !important; height: 42px !important; line-height: 42px !important;
  bottom: 2rem !important; right: 2rem !important;
  transition: all var(--fos-trans-base) !important;
}

.sp-scroll-up:hover, .sp-scroll-up:focus {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(218,29,43,0.45) !important;
  background: linear-gradient(135deg, #e53540 0%, #DA1D2B 100%) !important;
  color: #ffffff !important;
}

.offcanvas-menu {
  background: rgba(255,255,255,0.99) !important;
  backdrop-filter: blur(24px) !important;
  border-right: 1px solid var(--fos-gray-200) !important;
}

.offcanvas-menu .offcanvas-inner a { color: var(--fos-gray-600) !important; }
.offcanvas-menu .offcanvas-inner a:hover { color: var(--fos-red-600) !important; }

.offcanvas-menu .offcanvas-inner ul.menu > li a {
  color: var(--fos-gray-700) !important;
  padding: 0.6rem 0 !important; font-size: 1rem; font-weight: 500;
}

.offcanvas-menu .offcanvas-inner ul.menu > li a:hover { color: var(--fos-red-600) !important; }

.offcanvas-overlay { background: rgba(0,0,0,0.3) !important; backdrop-filter: blur(4px) !important; }

.close-offcanvas {
  color: var(--fos-gray-500) !important;
  background: var(--fos-gray-100) !important;
  border-radius: var(--fos-radius-pill) !important;
  width: 36px !important; height: 36px !important;
  display: inline-flex !important;
  align-items: center !important; justify-content: center !important;
}

.close-offcanvas:hover {
  color: var(--fos-gray-900) !important;
  background: var(--fos-gray-200) !important;
}

.com-users-profile .profile,
.com-users.view-profile #sp-main-body { color: var(--fos-gray-700); }

.com-users-profile .profile > div {
  background: var(--fos-white);
  border: 1px solid var(--fos-gray-200);
  border-radius: var(--fos-radius-md);
  padding: 1.25rem 1.5rem; margin-bottom: 1rem;
}

table { color: var(--fos-gray-700) !important; }
table.category thead > tr, table.category tbody > tr { border-color: var(--fos-gray-200) !important; }
table.category thead > tr th { color: var(--fos-gray-800) !important; background: var(--fos-gray-50) !important; font-weight: 600; }
table.category tbody > tr:hover { background: var(--fos-gray-50) !important; }

ul.social-icons > li a:hover { color: var(--fos-red-600) !important; }

.article-social-share .social-share-icon ul li a {
  color: var(--fos-gray-500) !important;
  border-color: var(--fos-gray-200) !important;
  background: var(--fos-white) !important;
  border-radius: 50%; transition: all var(--fos-trans-base) !important;
}

.article-social-share .social-share-icon ul li a:hover {
  background: var(--fos-gradient-primary) !important;
  border-color: transparent !important;
  color: #ffffff !important; box-shadow: var(--fos-shadow-red);
}

.sp-reading-progress-bar { background: var(--fos-gradient-accent) !important; height: 3px !important; }

.pager > li a {
  background: var(--fos-white) !important;
  border-color: var(--fos-gray-200) !important;
  color: var(--fos-gray-600) !important;
  border-radius: var(--fos-radius-pill) !important;
  transition: all var(--fos-trans-fast) !important;
}

.pager > li a:hover {
  background: var(--fos-gradient-primary) !important;
  border-color: transparent !important;
  color: #ffffff !important; box-shadow: var(--fos-shadow-red);
}

.error-code, .coming-soon-number { color: var(--fos-red-600) !important; font-family: var(--fos-font-display) !important; }

.card-block { background: var(--fos-white) !important; border: 1px solid var(--fos-gray-200) !important; border-radius: var(--fos-radius-md) !important; }

joomla-alert { border-radius: var(--fos-radius-md) !important; }

@keyframes fosFadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fosFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

#sp-main-body > .container > .row { animation: fosFadeSlideUp 0.5s var(--fos-ease) both; }
.sp-page-title { animation: fosFadeIn 0.4s var(--fos-ease) both; }
.article-list .article { animation: fosFadeSlideUp 0.5s var(--fos-ease) both; }
.article-list .article:nth-child(2) { animation-delay: 0.05s; }
.article-list .article:nth-child(3) { animation-delay: 0.10s; }
.article-list .article:nth-child(4) { animation-delay: 0.15s; }
.article-list .article:nth-child(5) { animation-delay: 0.20s; }
.article-list .article:nth-child(6) { animation-delay: 0.25s; }

@media (max-width: 991px) {
  #sp-header { min-height: 60px !important; }
  #sp-main-body { padding: 50px 0 !important; }
  #sp-bottom { padding: 50px 0 30px !important; }
  .sp-page-title .sp-page-title-heading { font-size: 1.75rem !important; }
}

@media (max-width: 767px) {
  .body-innerwrapper::before, .body-innerwrapper::after { display: none; }
  .article-list .article { padding: 1.25rem !important; }
  #sp-main-body { padding: 32px 0 !important; }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--fos-gray-100); }
::-webkit-scrollbar-thumb { background: var(--fos-gray-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--fos-red-600); }

::selection { background: rgba(218,29,43,0.2); color: var(--fos-gray-900); }

#sp-header-topbar {
  background: var(--fos-gray-50) !important;
  border-bottom: 1px solid var(--fos-gray-200) !important;
}

#sp-header-topbar a { color: var(--fos-gray-500) !important; font-size: 0.8rem; }
#sp-header-topbar a:hover { color: var(--fos-red-600) !important; }
.sp-contact-info { color: var(--fos-gray-500) !important; }

.com-content-category__items, .category-list { list-style: none; padding: 0; }

.com-content-category-blog__item, .blog-item {
  background: var(--fos-white);
  border: 1px solid var(--fos-gray-200);
  border-radius: var(--fos-radius-lg);
  padding: 1.5rem; margin-bottom: 1.5rem;
  transition: transform var(--fos-trans-base), border-color var(--fos-trans-base);
}

.com-content-category-blog__item:hover, .blog-item:hover {
  transform: translateY(-3px);
  border-color: rgba(218,29,43,0.2);
  box-shadow: var(--fos-shadow-md);
}

.contentpane:not(.com-sppagebuilder) {
  background: transparent !important;
  color: var(--fos-gray-700) !important;
  padding: 0 !important;
}

figcaption.caption, .article-details figcaption.caption {
  color: var(--fos-gray-400) !important; font-size: 0.8rem !important;
}

/* ============================================================
   LOGIN PAGE - preserved dark card on dark BG
   ============================================================ */
body.view-login .fos-login-card {
  background: #ffffff !important;
  color: #1e293b !important;
}

body.view-login .fos-login-header h2 { color: #0f172a !important; }
body.view-login .fos-login-header p { color: #64748b !important; }
body.view-login .fos-form-group { display: block !important; visibility: visible !important; }
body.view-login .fos-form-group label { color: #334155 !important; display: block !important; visibility: visible !important; }

body.view-login .fos-form-group input.form-control,
body.view-login .fos-form-group > .form-control,
body.view-login input#username,
body.view-login input#password {
  display: block !important; visibility: visible !important; opacity: 1 !important;
  background-color: #f8fafc !important; color: #0f172a !important;
  border: 1.5px solid #e2e8f0 !important; border-radius: 10px !important; height: 48px !important;
}

body.view-login .fos-form-group input.form-control:focus,
body.view-login .fos-form-group > .form-control:focus,
body.view-login input#username:focus,
body.view-login input#password:focus {
  border-color: #DA1D2B !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(218, 29, 43, 0.15) !important;
  color: #0f172a !important;
}

body.view-login .fos-btn-submit {
  background: linear-gradient(135deg, #DA1D2B 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(218, 29, 43, 0.35) !important;
}

body.view-login .fos-btn-submit:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
  box-shadow: 0 6px 20px rgba(218, 29, 43, 0.45) !important;
}

body.view-login a { color: #DA1D2B !important; }
body.view-login a:hover { color: #b91c1c !important; }
body.view-login .fos-back-home a { color: #94a3b8 !important; }
body.view-login .fos-back-home a:hover { color: #ffffff !important; }
