/**
 * Joomla Portal Template - Main Styles
 *
 * Converted from React template (globals.css) to native CSS
 * Replaces Shadcn/Radix UI with Bootstrap 5 components
 */

/* ============================================
   UTILITY CLASSES
   ============================================ */

.bg-joomla-primary {
  background: linear-gradient(135deg, var(--joomla-primary), var(--joomla-secondary));
}

.text-joomla-primary {
  color: var(--joomla-primary);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-joomla {
  background: linear-gradient(135deg, var(--joomla-primary), var(--joomla-secondary));
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition-base);
}

.btn-joomla:hover,
.btn-joomla:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(80, 145, 205, 0.4);
  color: white;
}

.btn-outline-joomla {
  color: var(--joomla-primary);
  border: 2px solid var(--joomla-primary);
  background: transparent;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition-base);
}

.btn-outline-joomla:hover,
.btn-outline-joomla:focus {
  background-color: var(--joomla-primary);
  border-color: var(--joomla-primary);
  color: white;
  transform: translateY(-2px);
}

/* ============================================
   NAVBAR / HEADER
   ============================================ */

.navbar-custom {
  background: white;
  border-bottom: 1px solid var(--joomla-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-custom .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.navbar-custom .navbar-brand {
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  transition: var(--transition-base);
}

.navbar-custom .navbar-brand:hover {
  opacity: 0.85;
}

/* Navigation Menu Container */
.navbar-menu {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
}

.navbar-custom .navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-custom .nav-item {
  position: relative;
}

.navbar-custom .nav-link {
  color: #374151;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
  color: var(--joomla-primary);
}

.navbar-custom .dropdown-menu {
  border: 1px solid var(--joomla-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-top: 0rem;
  min-width: 220px;
  padding: 0.5rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
}

/* Fix for popper.js static positioning causing menu shift */
.navbar-custom .dropdown-menu[data-bs-popper] {
  margin-top: 0rem;
  left: 0;
  right: auto;
}

.navbar-custom .dropdown-item {
  padding: 0.5rem 0.3rem;
  transition: all 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  color: #374151;
  font-size: 0.9375rem;
  display: block;
  text-decoration: none;
}

.navbar-custom .dropdown-item:hover {
  background-color: #F3F4F6;
  color: var(--joomla-primary);
}

.navbar-custom .navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
  color: #374151;
  background: transparent;
}

.navbar-custom .navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

/* Desktop: Menu always visible */
@media (min-width: 992px) {
  .navbar-menu {
    display: flex !important;
  }

  .mobile-download-btn {
    display: none !important;
  }

  .navbar-custom .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Mobile: Menu hidden by default, shown when toggled */
@media (max-width: 991px) {
  .navbar-menu {
    display: none;
    flex-basis: 100%;
    padding-top: 1rem;
  }

  .navbar-menu.show {
    display: block !important;
  }

  .mobile-download-btn {
    margin-top: 1rem;
    padding: 0 1rem;
  }

  .navbar-custom .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }

  .navbar-custom .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .navbar-custom .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--joomla-primary);
    border-radius: 0;
    margin-left: 1rem;
    width: calc(100% - 2rem);
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  background: linear-gradient(135deg, #5091CD 0%, #1B3D6D 100%);
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }
}

/* ============================================
   CARDS
   ============================================ */

.card-custom {
  border: 1px solid var(--joomla-border);
  border-radius: 12px;
  transition: all 0.3s ease;
  height: auto;
}

.card-custom:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Object Fit Utility */
.object-fit-cover {
  object-fit: cover;
}

.card-img-top {
  border-radius: 12px 12px 0 0;
  object-fit: cover;
  height: 200px;
}

.card-custom .card-body {
  padding: 1.5rem;
}

.card-custom .card-footer {
  padding: 1rem 1.5rem;
  background-color: transparent;
  border-top: 1px solid var(--joomla-border);
}

/* ============================================
   BADGES
   ============================================ */

.badge-joomla {
  background-color: var(--joomla-primary);
  color: white;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */

.footer-custom {
  background-color: var(--joomla-dark);
  color: #9CA3AF !important;
  padding: 60px 0 30px;
}

.footer-custom h5 {
  color: white !important;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-custom p {
  color: #9CA3AF !important;
}

.footer-custom a {
  color: #9CA3AF !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-custom a:hover {
  color: var(--joomla-primary) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  margin-top: 40px;
}

.footer-bottom p,
.footer-bottom small {
  color: #9CA3AF !important;
}

.footer-custom ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-custom ul li {
  margin-bottom: 0.5rem;
}

.footer-custom .text-secondary {
  color: #9CA3AF !important;
}

/* ============================================
   SECTION TITLES
   ============================================ */

.section-title {
  position: relative;
  margin-bottom: 3rem;
  font-weight: 700;
  color: #111827;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--joomla-primary), var(--joomla-secondary));
  border-radius: 2px;
}

/* Center-aligned section titles */
.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Icon alignment in headings */
h1 i, h2 i, h3 i, h4 i, h5 i, h6 i {
  vertical-align: middle;
  margin-top: -0.125rem;
}

/* Remove margin from headings inside flex containers */
.d-flex h1, .d-flex h2, .d-flex h3, .d-flex h4, .d-flex h5, .d-flex h6,
.d-flex.align-items-center h1,
.d-flex.align-items-center h2,
.d-flex.align-items-center h3,
.d-flex.align-items-center h4,
.d-flex.align-items-center h5,
.d-flex.align-items-center h6 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .section-title {
    margin-bottom: 2rem;
  }
}

/* ============================================
   SEARCH BAR
   ============================================ */

.search-bar {
  position: relative;
}

.search-bar .form-control {
  padding-left: 2.75rem;
  border-radius: 8px;
  border: 1px solid var(--joomla-border);
  transition: border-color 0.3s ease;
}

.search-bar .form-control:focus {
  border-color: var(--joomla-primary);
  box-shadow: 0 0 0 0.2rem rgba(80, 145, 205, 0.25);
}

.search-bar .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  z-index: 10;
}

/* ============================================
   NEWS / BLOG META
   ============================================ */

.news-meta {
  color: #6B7280;
  font-size: 0.875rem;
}

.news-meta i {
  margin-right: 0.5rem;
  color: var(--joomla-primary);
}

/* ============================================
   PROSE (Article Content)
   ============================================ */

.prose {
  color: #374151;
  line-height: 1.75;
  font-size: 1rem;
}

.prose h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: #111827;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #111827;
}

.prose h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #111827;
}

.prose h5 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  color: #374151;
}

.prose p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.prose ul,
.prose ol {
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.prose strong {
  font-weight: 600;
  color: #111827;
}

.prose a:not(.btn):not([class*="btn-"]) {
  color: var(--joomla-primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.prose a:not(.btn):not([class*="btn-"]):hover {
  color: var(--joomla-secondary);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.prose blockquote {
  border-left: 4px solid var(--joomla-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6B7280;
  background-color: #F9FAFB;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.prose code {
  background-color: #F3F4F6;
  color: #DC2626;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.875em;
  font-family: 'Courier New', Courier, monospace;
}

.prose pre {
  background-color: #F9FAFB;
  color: #111827;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid #E5E7EB;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.prose table th,
.prose table td {
  padding: 0.75rem;
  border: 1px solid #E5E7EB;
  text-align: left;
}

.prose table th {
  background-color: #F9FAFB;
  font-weight: 600;
  color: #1F2937;
}

.prose table tr:hover {
  background-color: #F9FAFB;
}

/* Product Article specific overrides */
.product-article .prose {
  font-size: 1.125rem;
}

.product-article .prose h2 {
  font-size: 2rem;
  margin-top: 3rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #E5E7EB;
}

.product-article .prose h3 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
}

.product-article .prose h4 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.product-article .prose img {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-article .prose pre {
  background-color: #1F2937;
  color: #F9FAFB;
  padding: 1.5rem;
}

/* Remove top margin from first headings in various contexts */
.prose > h2:first-child,
.prose > h3:first-child,
.prose > h4:first-child,
.prose > h5:first-child,
.card-body > .prose h2:first-child,
.card-body > .prose h3:first-child,
.card-body > .prose h4:first-child,
.card-body > .prose h5:first-child,
.card-body h2:first-child,
.card-body h3:first-child,
.card-body h4:first-child,
.card-body h5:first-child,
.alert h2:first-child,
.alert h3:first-child,
.alert h4:first-child,
.alert h5:first-child,
section > h2:first-child,
section > h3:first-child,
section > h4:first-child,
section > h5:first-child,
div > h2:first-child,
div > h3:first-child,
div > h4:first-child,
div > h5:first-child,
.product-article .prose > h2:first-child,
.product-article .prose > h3:first-child,
.product-article .prose > h4:first-child,
.product-article .prose > h5:first-child {
  margin-top: 0 !important;
}

/* Prose Responsive Styles */
@media (max-width: 768px) {
  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .prose h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }

  .prose h4 {
    font-size: 1.125rem;
    margin-top: 1.25rem;
  }

  .prose h5 {
    font-size: 1rem;
  }

  .prose pre {
    padding: 0.75rem;
    font-size: 0.875rem;
  }

  .product-article .prose {
    font-size: 1rem;
  }

  .product-article .prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .product-article .prose h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   VIDEO CARD
   ============================================ */

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.video-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover::before {
  opacity: 1;
}

/* ============================================
   LOADING SKELETON
   ============================================ */

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ============================================
   SOCIAL MEDIA ICONS
   ============================================ */

/* Social icon links */
.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--joomla-dark);
  text-decoration: none;
  transition: var(--transition-base);
}

.social-icon-link:hover {
  color: var(--joomla-primary);
  transform: translateY(-2px);
}

.social-icon-max {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  color: currentColor;
}

/* Social icons in footer */
.footer-custom .social-icon-link {
  color: var(--joomla-light-gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.footer-custom .social-icon-link:hover {
  color: white;
}

/* SVG with Bootstrap font-size classes */
svg.fs-4 {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  vertical-align: middle;
}

/* Vertical divider in header */
.vr {
  display: inline-block;
  width: 1px;
  min-height: 1em;
  background-color: currentcolor;
  opacity: 0.25;
  align-self: auto;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

/* Author Avatar */
.author-avatar {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-avatar-placeholder {
  width: 180px;
  height: 180px;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Contact Info Items */
.contact-info-item {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--joomla-border);
}

.contact-info-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.contact-info-item strong {
  font-size: 0.875rem;
  color: #6B7280;
  font-weight: 500;
}

/* Author Quick Info */
.author-quick-info span {
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
}

.author-quick-info a {
  color: var(--joomla-primary);
}

.author-quick-info a:hover {
  color: var(--joomla-secondary);
}

/* Author Misc Info in Header */
.author-misc-info {
  padding-top: 1rem;
  border-top: 1px solid var(--joomla-border);
}

.author-misc-info .prose {
  font-size: 0.9375rem;
  color: #374151;
}

.author-misc-info .prose p:last-child {
  margin-bottom: 0;
}

/* Contact Articles Card Hover */
.hover-shadow {
  transition: all 0.3s ease;
}

.hover-shadow:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-2px);
}

/* Sticky Sidebar */
@media (min-width: 992px) {
  .sticky-top {
    position: sticky;
  }
}

/* Contact Page Responsive */
@media (max-width: 768px) {
  .author-avatar,
  .author-avatar-placeholder {
    width: 120px;
    height: 120px;
  }

  .sticky-top {
    position: relative !important;
    top: 0 !important;
  }
}

/* ============================================
   CONTACT CATEGORY PAGE
   ============================================ */

/* Contact Category Avatar */
.contact-category-avatar {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-category-avatar-placeholder {
  width: 80px;
  height: 80px;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Contact Category Details */
.contact-category-details {
  color: #374151;
}

.contact-category-details i {
  font-size: 0.875rem;
}

/* Contact Category Cards */
.com-contact-category__items .card-custom {
  transition: all 0.3s ease;
}

.com-contact-category__items .card-custom:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Stretched link for entire card */
.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

/* Contact Category Responsive */
@media (max-width: 768px) {
  .contact-category-avatar,
  .contact-category-avatar-placeholder {
    width: 60px;
    height: 60px;
  }
}

/* ============================================
   FOOTER SERVICE LINKS
   ============================================ */

/* Footer Service Links */
.footer-service-links {
  font-size: 0.9375rem;
}

.footer-service-links a {
  transition: color 0.2s ease;
}

.footer-service-links a:hover {
  color: var(--joomla-primary) !important;
  text-decoration: underline !important;
}

/* Responsive Footer Service Links */
@media (max-width: 576px) {
  .footer-service-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-service-links .mx-2 {
    display: none;
  }
}

/* ============================================
   INFO BLOCK MODULE
   ============================================ */

.mod-infoblock {
  margin: 1.5rem 0;
}

.infoblock-container {
  background: #ffffff;
  border: 1px solid var(--joomla-border);
  border-radius: 8px;
  padding: 1.25rem;
  padding-bottom: 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.infoblock-container:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.infoblock-label {
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  font-size: 0.625rem;
  color: #D1D5DB;
  opacity: 0.6;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.infoblock-content {
  line-height: 1.8;
}

.infoblock-content a {
  color: #374151;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.9375rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.infoblock-content a:hover {
  color: var(--joomla-primary);
  text-decoration: underline;
}

/* Separator between links if inline */
.infoblock-content a:not(:last-child)::after {
  content: " • ";
  color: #D1D5DB;
  margin: 0 0.5rem;
  text-decoration: none;
}

/* If links are in a list */
.infoblock-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.infoblock-content ul li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.infoblock-content ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--joomla-primary);
  font-weight: bold;
}

.infoblock-content ul li a {
  display: inline;
  margin-bottom: 0;
}

/* Remove separator if links are in list */
.infoblock-content ul li a::after {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mod-infoblock {
    margin: 1rem 0;
  }

  .infoblock-container {
    padding: 1rem;
    padding-bottom: 1.75rem;
  }

  .infoblock-content a {
    font-size: 0.875rem;
  }

  .infoblock-label {
    font-size: 0.5625rem;
    bottom: 0.4rem;
    right: 0.5rem;
  }
}

/* ============================================
   DOWNLOAD PAGE STYLES
   ============================================ */

/* Download Section */
.download-section {
  margin-bottom: 3rem;
}

/* Download Card */
.download-card {
  transition: all 0.3s ease;
  border: 1px solid var(--joomla-border);
}

.download-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Download Icon Wrapper */
.download-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.download-icon-wrapper i {
  font-size: 1.5rem;
  color: white;
}

/* Alert Customization for Download Page */
.alert-info {
  background-color: #E0F2FE;
  border-color: #BAE6FD;
  color: #075985;
}

.alert-info .alert-heading {
  color: #075985;
  font-weight: 600;
}

.alert-info i {
  color: #0284C7;
}

/* Alert Warning Customization */
.alert-warning {
  background-color: #FEF3C7;
  border-color: #FDE68A;
  color: #92400E;
}

.alert-warning .alert-heading {
  color: #92400E;
  font-weight: 600;
}

/* Icon alignment in bordered cards */
.card-custom.border-warning h3 i,
.card-custom.border-warning h4 i,
.card-custom.border-warning h5 i {
  vertical-align: middle;
  margin-top: -0.125rem;
}

/* Legacy Version Cards */
.legacy-version-card {
  background-color: #F9FAFB;
  border-left: 4px solid #6B7280;
}

.legacy-version-card .badge {
  font-size: 0.7rem;
  padding: 0.35rem 0.6rem;
}

.legacy-version-card .alert-danger {
  background-color: #FEE2E2;
  border-color: #FECACA;
  color: #991B1B;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
}

.legacy-version-card .alert-danger i {
  color: #DC2626;
}

/* Download Page Responsive */
@media (max-width: 768px) {
  .download-section {
    margin-bottom: 2rem;
  }

  .download-icon-wrapper {
    width: 40px;
    height: 40px;
  }

  .download-icon-wrapper i {
    font-size: 1.25rem;
  }

  .legacy-version-card .d-flex.flex-wrap {
    flex-direction: column;
  }

  .legacy-version-card .btn {
    width: 100%;
  }
}

/* ============================================
   LOCALIZATION PAGE STYLES
   ============================================ */

/* Localization Section */
.localization-section {
  margin-bottom: 3rem;
}

/* Localization Card - reuses download-card styles */
.localization-card {
  transition: all 0.3s ease;
  border: 1px solid var(--joomla-border);
}

.localization-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Localization Icon Wrapper - reuses download-icon-wrapper structure */
.localization-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.localization-icon-wrapper i {
  font-size: 1.5rem;
  color: white;
}

/* Installation Steps */
.installation-steps {
  margin-top: 1.5rem;
}

.step-item {
  display: flex;
  align-items: start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--joomla-border);
}

.step-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--joomla-primary), var(--joomla-secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-right: 1rem;
}

.step-content {
  flex-grow: 1;
  padding-top: 0.25rem;
}

.step-content p {
  line-height: 1.6;
  color: #374151;
}

.step-content a {
  color: var(--joomla-primary);
  text-decoration: none;
}

.step-content a:hover {
  text-decoration: underline;
}

/* Legacy Localization Cards */
.legacy-localization-card {
  background-color: #F9FAFB;
  border-left: 4px solid #6B7280;
}

.legacy-localization-card .badge {
  font-size: 0.7rem;
  padding: 0.35rem 0.6rem;
}

.legacy-localization-card ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legacy-localization-card ul li {
  margin-bottom: 0.5rem;
}

.legacy-localization-card ul li a {
  color: var(--joomla-primary);
  text-decoration: none;
}

.legacy-localization-card ul li a:hover {
  text-decoration: underline;
}

.legacy-localization-card code {
  background-color: #F3F4F6;
  color: #DC2626;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.875rem;
  font-family: 'Courier New', Courier, monospace;
}

.legacy-localization-card pre {
  margin: 0.75rem 0;
  background-color: #F9FAFB;
}

.legacy-localization-card pre code {
  background-color: transparent;
  color: #111827;
  padding: 0;
  display: block;
}

.legacy-localization-card .alert-warning {
  background-color: #FEF3C7;
  border-color: #FDE68A;
  color: #92400E;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
}

.legacy-localization-card .alert-warning strong {
  font-weight: 600;
}

.legacy-localization-card .bg-light {
  background-color: #F3F4F6 !important;
}

/* Localization Page Responsive */
@media (max-width: 768px) {
  .localization-section {
    margin-bottom: 2rem;
  }

  .localization-icon-wrapper {
    width: 40px;
    height: 40px;
  }

  .localization-icon-wrapper i {
    font-size: 1.25rem;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .step-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }
}
