/* ============================================
   IMPORTS & ROOT VARIABLES
   ============================================ */
@import url(../fonts/fonts.css);

:root {
  /* Brand Colors - Using Bootstrap 5 naming convention */
  --bs-acao-primary: #264193;
  --bs-acao-primary-rgb: 38, 65, 147;
  --bs-acao-primary-dark: #1a2d66;
  --bs-acao-primary-light: #3a5bb5;
  --bs-acao-primary-hover: #1f367a;

  --bs-acao-secondary: #129021;
  --bs-acao-secondary-rgb: 18, 144, 33;
  --bs-acao-secondary-dark: #0d6b19;
  --bs-acao-secondary-light: #16b32a;
  --bs-acao-secondary-hover: #0e7a1b;

  --bs-acao-gold: #fada1a;
  --bs-acao-gold-rgb: 250, 218, 26;
  --bs-acao-red: #da251d;
  --bs-acao-red-rgb: 218, 37, 29;

  /* Bootstrap 5 Overrides */
  --bs-primary: var(--bs-acao-primary);
  --bs-primary-rgb: var(--bs-acao-primary-rgb);
  --bs-secondary: var(--bs-acao-secondary);
  --bs-secondary-rgb: var(--bs-acao-secondary-rgb);

  /* Typography */
  --bs-font-family-base: "Droid Arabic Kufi", "Segoe UI", system-ui, -apple-system, sans-serif;
  --bs-font-family-arabic: "Droid Arabic Kufi", "Amiri", "Traditional Arabic", serif;
  --bs-font-family-english: "Segoe UI", "Arial", sans-serif;

  /* Logo */
  --bs-logo-color-arabic: #264193;
  --bs-logo-color-english: #129021;
  --bs-logo-color-light: #ffffff;
  --bs-logo-color-accent: #69bf03;
  --bs-logo-height-header: 70px;
  --bs-logo-height-navbar: 45px;
  --bs-logo-height-footer: 50px;

  /* Spacing */
  --bs-logo-gap: 1rem;

  /* Transitions */
  --bs-transition-smooth: 0.3s ease;

  /* Shadows */
  --bs-box-shadow-primary: 0 0.5rem 1rem rgba(38, 65, 147, 0.3);
  --bs-card-hover-transform: translateY(-3px);

  /* Navigation */
  --bs-navbar-bg: var(--bs-acao-primary);
  --bs-navbar-color: #ffffff;
  --bs-navbar-hover-color: #69bf03;

  /* Footer */
  --bs-footer-bg: #1a2d66;
  --bs-footer-secondary: #264193;
  --bs-footer-text: #ffffff;
  --bs-footer-muted: #cccccc;
  --bs-footer-hover: var(--bs-acao-secondary);
  --bs-footer-border: rgba(255, 255, 255, 0.1);

  --bs-border-radius: 0;
}

/* ============================================
   GLOBAL SETTINGS
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--bs-font-family-base);
}

p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.footer p,
footer p {
  margin-bottom: 0;
}

table {
  width: 100%;
}

table.committee {
  font-weight: bold;
  text-align: center;
}

.content {
  padding: 1rem;
}

.content-img img {
  max-width: 90%;
  display: block;
  margin: 1px auto;
  min-height: 250px;
  max-height: 300px;
  object-fit: cover;
}

.new-line,
a.new-line {
  color: #354650;
}

/* ============================================
   MEMBER & FLAG IMAGES
   ============================================ */
.cmember_image {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  width: 120px;
  border-radius: var(--bs-border-radius);
}

.cmember_flag {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  width: 150px;
  margin: 0.625rem;
}

/* ============================================
   SECTION CARDS
   ============================================ */
.section-card {
  background: var(--bs-white, #ffffff);
  padding: 2rem 1.5rem 1.8rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--bs-gray-200, #eef3f8);
  border-radius: var(--bs-border-radius-lg, 0.5rem);
}
.section-title {
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bs-gray-200, #e6edf5);
  position: relative;
  color: var(--bs-acao-primary);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 1%;
  width: 80px;
  height: 3px;
  background: var(--bs-acao-primary);
  border-radius: 2px;
}
.section-title strong {
  font-weight: 700;
  color: #0a2c44;
}

/* ============================================
   MEMBERS TABLE
   ============================================ */
.members-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  margin: 0.5rem 0;
}

.members-table td {
  background: rgba(245, 245, 245, 0.59);
  padding: 1.5rem 1rem;
  text-align: center;
  vertical-align: middle;
  border: 1px solid var(--bs-gray-200, #eef3f8);
  border-radius: var(--bs-border-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
  transition: transform var(--bs-transition-smooth), box-shadow var(--bs-transition-smooth);
}

.members-table td:hover {
  background: #ffffff;
  border-color: var(--bs-acao-primary-light);
  box-shadow: 0 10px 20px -8px rgba(38, 65, 147, 0.08);
  transform: translateY(-2px);
}

.members-table img {
  object-fit: cover;
  background: #f5f5f5;
  padding: 0.2rem;
  border: 2px solid #e4edf6;
  border-radius: var(--bs-border-radius);
  width: 120px;
  height: 120px;
}

.member-name {
  font-weight: 700;
  color: #0b2a41;
  margin: 0.3rem 0 0.1rem;
  line-height: 1.4;
}

.member-title {
  color: var(--bs-acao-primary);
  font-weight: 500;
  line-height: 1.4;
  margin: 0.2rem 0;
}

.member-country {
  font-weight: 700;
  color: #0a2c44;
  margin: 0.3rem 0 0.2rem;
}

.member-role {
  color: #ffffff;
  background: var(--bs-acao-primary);
  display: inline-block;
  padding: 0.2rem 0.9rem;
  margin-top: 0.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--bs-border-radius-pill);
}

/* ============================================
   PRESIDENT TABLE
   ============================================ */
.president-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0 0.5rem;
}

.president-table td {
  background: rgba(245, 245, 245, 0.59);
  padding: 2rem 1rem;
  text-align: center;
  border: 1px solid var(--bs-gray-200, #eef3f8);
  border-radius: var(--bs-border-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
}

.president-table img {
  object-fit: cover;
  background: #f5f5f5;
  border: 3px solid #d4e0ec;
  border-radius: var(--bs-border-radius);
  padding: 0.2rem;
  width: 150px;
  height: 150px;
  margin-bottom: 0.5rem;
}

.president-name {
  font-weight: 700;
  color: #0b2a41;
  letter-spacing: -0.01em;
}

.president-title {
  font-weight: 500;
  color: var(--bs-acao-primary);
}

.president-country {
  font-weight: 700;
  color: #0a2c44;
}

.president-role {
  background: var(--bs-acao-primary) !important;
  padding: 0.2rem 1.8rem;
  font-weight: 500;
  color: #ffffff;
  margin-top: 0.2rem;
  display: inline-block;
}

/* ============================================
   DIRECTORS TABLE
   ============================================ */
.directors-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 16px;
  margin: 0.5rem 0;
}

.directors-table td {
  background: rgba(245, 245, 245, 0.59);
  padding: 1.8rem 1.5rem;
  vertical-align: middle;
  border: 1px solid var(--bs-gray-200, #eef3f8);
  border-radius: var(--bs-border-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
  transition: transform var(--bs-transition-smooth), box-shadow var(--bs-transition-smooth);
}

.directors-table td:hover {
  background: #ffffff;
  border-color: var(--bs-acao-primary-light);
  box-shadow: 0 10px 20px -8px rgba(38, 65, 147, 0.08);
  transform: translateY(-2px);
}

.directors-table img {
  object-fit: cover;
  background: #f5f5f5;
  padding: 0.2rem;
  border: 2px solid #e4edf6;
  border-radius: var(--bs-border-radius);
  width: 151px;
  height: 180px;
  display: block;
  margin: 0 auto;
}

.director-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: #0b2a41;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.director-bio {
  font-size: 0.95rem;
  color: var(--bs-acao-primary);
  line-height: 1.6;
  margin: 0.3rem 0 0.2rem;
}

.director-period {
  font-weight: 600;
  color: #0a2c44;
  font-size: 0.95rem;
  display: inline-block;
  background: #e9f0f7;
  padding: 0.2rem 1.2rem;
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
  border-radius: var(--bs-border-radius-pill);
}

.text-column {
  padding-left: 1.5rem;
}

.image-column {
  text-align: center;
  width: 180px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.spacer {
  height: 0.5rem;
}

/* ============================================
   EXPERT CARDS
   ============================================ */
.experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  padding: 0.625rem 0;
}

.expert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--bs-gray-300, #e0e0e0);
  border-radius: var(--bs-border-radius-lg);
  padding: 1.25rem 0.938rem;
  transition: transform var(--bs-transition-smooth), box-shadow var(--bs-transition-smooth);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  height: 100%;
  background: var(--bs-white, #ffffff);
}

.expert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--bs-acao-primary);
}

.expert-card img {
  width: 150px;
  height: 150px;
  border-radius: var(--bs-border-radius);
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #f0f0f0;
  transition: border-color var(--bs-transition-smooth);
}

.expert-card:hover img {
  border-color: var(--bs-acao-primary);
}

.expert-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--bs-acao-primary);
  margin: 0.313rem 0 0.188rem;
  text-align: center;
}

.expert-card h4 {
  font-size: 0.875rem;
  font-weight: 400;
  color: #666;
  margin: 0 0 0.625rem;
  text-align: center;
}

.expert-card p {
  font-size: 0.813rem;
  line-height: 1.6;
  color: #555;
  margin: 0.625rem 0 0;
  text-align: center;
}

.expert-details {
  background: var(--bs-white, #ffffff);
  padding: 1.25rem;
  border-radius: var(--bs-border-radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.expert-details img {
  width: 200px;
  height: 200px;
  float: left;
  margin: 0 1.25rem 1.25rem 0;
  border-radius: var(--bs-border-radius);
  object-fit: cover;
  border: 4px solid #f0f0f0;
}

.expert-details h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bs-acao-primary);
  margin: 0 0 0.313rem;
  text-align: center;
}

.expert-details h4 {
  font-size: 1.125rem;
  font-weight: 400;
  color: #666;
  margin: 0 0 1rem;
  text-align: center;
}

.expert-details p {
  padding: 1rem;
  font-size: 0.938rem;
  line-height: 1.8;
  color: #444;
  clear: both;
  text-align: justify;
}

.content-wrapper {
  background: var(--bs-white, #ffffff);
  padding: 0 1rem 1.25rem;
  border-radius: var(--bs-border-radius);
}

.content-body {
  padding: 1.25rem 0.625rem;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--bs-gray-800, #333);
}

.sidebar-menu {
  border-radius: var(--bs-border-radius);
  overflow: hidden;
}

.sidebar-menu .header-line {
  background: var(--bs-acao-primary);
  height: 5px;
}

/* ============================================
   TOPBAR & HEADERS
   ============================================ */
#topbar {
  background-color: var(--bs-acao-primary);
  color: #ffffff;
  padding: 0;
  font-size: 0.875rem;
}

#topbar a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity var(--bs-transition-smooth);
}

#topbar a:hover {
  opacity: 0.8;
}

.section-header {
  background-color: var(--bs-acao-primary);
  color: #ffffff;
  padding: 0.625rem 1rem;
  font-size: 1.125rem;
  border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
}

.section-header-secondary {
  background-color: var(--bs-acao-primary);
  color: #ffffff;
  padding: 0.625rem 1rem;
  font-size: 1.125rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar-acao {
  background-color: var(--bs-acao-primary);
}

.navbar-acao .navbar-brand,
.navbar-acao .nav-link {
  color: #ffffff;
  transition: color var(--bs-transition-smooth);
}

.navbar-acao .navbar-brand:hover,
.navbar-acao .nav-link:hover,
.navbar-acao .nav-link:focus,
.navbar-acao .nav-link.active {
  color: var(--bs-navbar-hover-color);
}

.navbar-nav .dropdown-menu {
  background-color: var(--bs-acao-primary);
  border: none;
  border-radius: var(--bs-border-radius);
}

.navbar-nav .dropdown-item {
  color: #ffffff;
  padding: 0.625rem 1.25rem;
  transition: background-color var(--bs-transition-smooth);
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Desktop dropdown hover */
@media (min-width: 992px) {
  .navbar-nav .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* ============================================
   LOGO COMPONENT
   ============================================ */
.logo-acao {
  display: flex;
  align-items: center;
  gap: var(--bs-logo-gap);
}

.logo-acao-img {
  height: var(--bs-logo-height-md, 50px);
  width: auto;
}

.logo-acao-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.logo-acao-arabic {
  font-family: var(--bs-font-family-arabic);
  font-weight: 700;
  color: var(--bs-logo-color-arabic);
  line-height: 1.2;
}

.logo-acao-english {
  font-family: var(--bs-font-family-english);
  font-weight: 600;
  color: var(--bs-logo-color-english);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Logo Variations */
.logo-acao-header .logo-acao-img {
  height: var(--bs-logo-height-header);
}

.logo-acao-header .logo-acao-arabic {
  color: #ffffff;
}

.logo-acao-header .logo-acao-english {
  color: var(--bs-logo-color-accent);
}

.logo-acao-navbar .logo-acao-img {
  height: var(--bs-logo-height-navbar);
}

.logo-acao-navbar .logo-acao-arabic {
  color: #ffffff;
}

.logo-acao-navbar .logo-acao-english {
  color: var(--bs-logo-color-accent);
}

.logo-acao-footer .logo-acao-img {
  height: var(--bs-logo-height-footer);
  filter: brightness(10);
}

.logo-acao-footer .logo-acao-arabic {
  color: #ffffff;
}

.logo-acao-footer .logo-acao-english {
  color: var(--bs-logo-color-accent);
}

/* ============================================
   CAROUSEL
   ============================================ */
.carousel-item {
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.carousel-item img {
  width: 100%;
  object-fit: cover;
}

.carousel-caption {
  background-color: rgba(38, 65, 147, 0.72);
  backdrop-filter: blur(5px);
  display: block;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px !important;
  text-decoration: none;
}

a.carousel-caption:hover {
  text-decoration: underline;
}

.pubs-carousel .carousel-item {
  max-height: 160px;
}

.pubs-carousel .carousel-item img {
  max-height: 160px;
}

.hero-carousel .carousel-item {
  max-height: 280px;
}

.hero-carousel .carousel-item img {
  max-height: 280px;
}

/* Hide controls for specific carousels */
.pubs-carousel .carousel-indicators,
.pubs-carousel .carousel-caption,
.pubs-carousel .carousel-control-prev,
.pubs-carousel .carousel-control-next,
.gallery-carousel .carousel-indicators,
.version-carousel .carousel-indicators,
.gallery-carousel .carousel-caption,
.channel-carousel .carousel-caption {
  display: none !important;
}

/* ============================================
   BOOTSTRAP 5 BUTTON OVERRIDES
   ============================================ */
.btn-acao-primary {
  background-color: var(--bs-acao-primary);
  border-color: var(--bs-acao-primary);
  color: #ffffff;
}

.btn-acao-primary:hover {
  background-color: var(--bs-acao-primary-hover);
  border-color: var(--bs-acao-primary-hover);
  color: #ffffff;
}

.btn-acao-secondary {
  background-color: var(--bs-acao-secondary);
  border-color: var(--bs-acao-secondary);
  color: #ffffff;
}

.btn-acao-secondary:hover {
  background-color: var(--bs-acao-secondary-hover);
  border-color: var(--bs-acao-secondary-hover);
  color: #ffffff;
}

.btn-acao-gold {
  background-color: var(--bs-acao-gold);
  border-color: var(--bs-acao-gold);
  color: #1a1a2e;
}

.btn-acao-gold:hover {
  background-color: #e8c800;
  border-color: #e8c800;
  color: #1a1a2e;
}

/* ============================================
   CARDS
   ============================================ */
.card-acao {
  border: none;
  border-radius: var(--bs-border-radius-lg);
  box-shadow: var(--bs-box-shadow);
  transition: transform var(--bs-transition-smooth), box-shadow var(--bs-transition-smooth);
}

.card-acao:hover {
  transform: var(--bs-card-hover-transform);
  box-shadow: var(--bs-box-shadow-lg);
}

/* ============================================
   FEATURE & TESTIMONIAL CARDS
   ============================================ */
.feature-card,
.testimonial-card {
  transition: transform var(--bs-transition-smooth), box-shadow var(--bs-transition-smooth);
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.testimonial-card:hover {
  transform: scale(1.02);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bs-footer-secondary);
  color: var(--bs-footer-text);
}

.footer a {
  color: var(--bs-footer-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover,
.footer a:focus {
  color: var(--bs-footer-hover);
  text-decoration: underline;
}

.footer .wrap-footer {
  padding: 3rem 0 2rem;
}

.footer .footer-heading {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: var(--bs-footer-text);
}

.footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.footer .footer-links li {
  margin-bottom: 0.375rem;
}

.footer .footer-links li a {
  font-size: 0.8125rem;
  display: inline-block;
  transition: padding var(--bs-transition-smooth);
}

.footer .footer-links li a:hover {
  padding-left: 4px;
}

.footer .address-block {
  padding: 1rem 1.25rem;
  border: 1px solid var(--bs-footer-border);
  border-radius: var(--bs-border-radius);
  background: rgba(255, 255, 255, 0.05);
}

.footer .address-block strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--bs-footer-hover);
  margin-bottom: 0.125rem;
}

.footer .address-block p {
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  color: var(--bs-footer-muted);
}

.footer .social-icons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--bs-footer-text);
  font-size: 1.125rem;
  transition: background 0.25s ease, transform 0.2s ease;
}

.footer .social-icons a:hover {
  background: rgba(250, 218, 26, 0.2);
  color: var(--bs-footer-hover);
  transform: translateY(-3px);
}

.footer .copyright {
  padding: 1.125rem 0;
  border-top: 1px solid var(--bs-footer-border);
  background: var(--bs-footer-bg);
  color: var(--bs-footer-muted);
  font-size: 0.875rem;
}

.footer .copyright a {
  color: var(--bs-footer-text);
  transition: color var(--bs-transition-smooth);
}

.footer .copyright a:hover {
  color: var(--bs-footer-hover);
}

/* ============================================
   SCROLLBAR
   ============================================ */
@media (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 10px;
  }

  ::-webkit-scrollbar-track {
    background: var(--bs-gray-100, #f1f1f1);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--bs-acao-primary);
    border-radius: 5px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--bs-acao-primary-dark);
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 991.98px) {
  :root {
    --bs-logo-height-header: 60px;
  }

  .hero-carousel .carousel-item {
    max-height: 260px;
  }

  .pubs-carousel .carousel-item {
    max-height: 130px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --bs-logo-height-header: 50px;
    --bs-logo-height-navbar: 35px;
    --bs-logo-height-footer: 40px;
  }

  .hero-carousel .carousel-item {
    max-height: 220px;
  }

  .pubs-carousel .carousel-item {
    max-height: 110px;
  }

  .members-table td,
  .directors-table td,
  .president-table td {
    display: block;
    width: 100%;
    text-align: center;
  }

  .members-table tr,
  .directors-table tr {
    display: block;
    margin-bottom: 1.2rem;
  }

  .image-column {
    width: 100%;
  }

  .text-column {
    padding-left: 0;
  }

  .experts-grid {
    grid-template-columns: 1fr;
  }

  .expert-card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .expert-card img {
    width: 80px;
    height: 80px;
    margin: 0 1rem 0.625rem 0;
  }

  .expert-details img {
    width: 150px;
    height: 150px;
    float: none;
    display: block;
    margin: 0 auto 1.25rem;
  }

  .footer .wrap-footer {
    padding: 2rem 0 0.625rem;
  }
}

@media (max-width: 575.98px) {
  :root {
    --bs-logo-height-header: 40px;
    --bs-logo-height-navbar: 30px;
  }

  .hero-carousel .carousel-item {
    max-height: 180px;
  }

  .pubs-carousel .carousel-item {
    max-height: 90px;
  }

  .expert-card img {
    width: 60px;
    height: 60px;
  }

  .expert-details img {
    width: 120px;
    height: 120px;
  }
}

/* ============================================
   ACCESSIBILITY & PRINT
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .footer,
  .navbar,
  .carousel {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  a {
    color: #000000 !important;
    text-decoration: underline !important;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-morphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-to-top {
  position: fixed;
  bottom: 35.2px;
  right: 5%;
  width: auto;
  border-radius: 1%;
  background: var(--bs-acao-primary);
  color: #fff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.1);
  display: grid;
  place-items: center;
  font-size: 16px;
  text-decoration: none;
  transition: 0.2s;
  z-index: 999;
  padding: 8px;
}

.back-to-top:hover {
  background: var(--bs-acao-primary-dark);
  transform: scale(1.04);
  box-shadow: 0 16px 32px -6px rgba(0, 0, 0, 0.25);
}

.back-to-top:active {
  transform: scale(0.94);
  background: var(--bs-acao-primary-hover);
}

.back-to-top:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

.back-to-top::before {
  content: "↑";
}

@media (max-width: 480px) {
  .back-to-top {
    width: 51.2px;
    height: 51.2px;
    bottom: 24px;
    right: 24px;
    font-size: 13px;
  }
}

.nav-link {
  color: #fff !important;
}

/* ============================================
   SITEMAP PAGE STYLES
   ============================================ */
.sitemap-container ul {
  list-style: none;
  padding-left: 1.5rem;
  padding-right: 0;
}

.sitemap-category {
  border-left: 3px solid rgba(38, 65, 147, 0.15);
  padding-left: 1rem;
  transition: border-color 0.3s ease;
}

.sitemap-category > .d-flex {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  align-items: center;
}

.sitemap-category > .d-flex i {
  width: 1.5rem;
  flex-shrink: 0;
}

.sitemap-category > .d-flex .h5 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.sitemap-container ul li {
  padding: 0.25rem 0;
}

.sitemap-container ul ul {
  padding-left: 2rem;
  padding-right: 0;
}

.sitemap-container ul ul li {
  font-size: 0.9rem;
  color: #6c757d;
}

.sitemap-category .hover-underline {
  font-weight: 600;
}

.hover-underline:hover {
  text-decoration: underline !important;
}

.toggle-children {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.2s ease;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.toggle-children:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
}

.toggle-children:focus-visible {
  outline: 2px solid var(--bs-acao-primary);
  outline-offset: 2px;
}

.toggle-children .toggle-icon {
  transition: transform 0.3s ease;
  font-size: 0.875rem;
}

.toggle-children[aria-expanded="false"] .toggle-icon {
  transform: rotate(-90deg);
}

.children-wrapper,
.children-wrapper-sub {
  transition: opacity 0.3s ease, margin-top 0.3s ease, max-height 0.3s ease;
  overflow: hidden;
  max-height: 1000px;
}

.children-wrapper.collapsed,
.children-wrapper-sub.collapsed {
  opacity: 0;
  margin-top: 0 !important;
  max-height: 0;
}

@media (max-width: 992px) {
  .sitemap-category {
    border-left: none;
    border-bottom: 2px solid rgba(38, 65, 147, 0.1);
    padding-bottom: 1rem;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  main.container {
    padding: 1rem !important;
  }

  .sitemap-container ul ul {
    padding-left: 1rem;
  }

  .sitemap-container ul ul li {
    font-size: 0.85rem;
  }
}

@media print {
  .toggle-children {
    display: none !important;
  }

  .sitemap-container ul ul li {
    color: #000 !important;
  }
}

.sitemap-container a:focus-visible {
  outline: 2px solid var(--bs-acao-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================
   NEWS ITEMS
   ============================================ */
.news-item {
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.news-item:hover {
  background-color: #f8f9fa !important;
}

.news-item .card {
  background: transparent;
}

.pagination .page-link {
  color: var(--bs-acao-primary);
}

.pagination .active .page-link {
  background-color: var(--bs-acao-primary);
  border-color: var(--bs-acao-primary);
  color: #fff;
}

.pagination .page-link:hover {
  background-color: #e9ecef;
  color: var(--bs-acao-primary);
}

.news-link {
  padding: 0 10px;
}

@media (max-width: 576px) {
  .news-item .row {
    flex-direction: column;
  }

  .news-item .col-4 {
    width: 100%;
    margin-bottom: 10px;
  }

  .news-item .col-8 {
    width: 100%;
  }
}

/* ============================================
   NEWS DETAIL
   ============================================ */
.news-featured-image {
  transition: transform 0.3s ease;
}

.news-featured-image:hover {
  transform: scale(1.01);
}

.news-content p {
  margin-bottom: 1.25rem;
}

.news-content ul,
.news-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.news-content blockquote {
  border-left: 4px solid var(--bs-acao-primary);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #6c757d;
  font-style: italic;
}

.news-content table {
  width: 100%;
  margin-bottom: 1.25rem;
  border-collapse: collapse;
}

.news-content table td,
.news-content table th {
  border: 1px solid #dee2e6;
  padding: 0.5rem;
}

.news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
  margin: 1rem 0;
}

.news-content .figure {
  margin: 1.5rem 0;
}

.list-group-item-action {
  border-radius: 0.375rem !important;
}

.list-group-item-action:hover {
  background-color: #f8f9fa !important;
}

@media (max-width: 576px) {
  .news-content {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
  }

  .news-featured-image {
    max-height: 250px !important;
  }
}

@media print {
  .btn,
  .breadcrumb,
  .social-share {
    display: none !important;
  }

  .news-featured-image {
    max-height: 300px !important;
  }
}

@media (prefers-color-scheme: dark) {
  .news-content blockquote {
    border-left-color: #4a4a6a;
    color: #adb5bd;
  }

  .news-content table td,
  .news-content table th {
    border-color: #495057;
  }

  .list-group-item-action:hover {
    background-color: #2a2a3a !important;
  }
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-container {
  background: var(--bs-acao-primary);
  color: #ffffff;
  padding: 0 1.25rem;
  min-height: 3rem;
  display: flex;
  align-items: center;
  font-size: 1.063rem;
  border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
  box-shadow: var(--bs-box-shadow-primary);
}

.breadcrumb-container a {
  color: #ffffff;
  text-decoration: none;
  padding: 0 0.625rem;
  transition: opacity var(--bs-transition-smooth);
}

.breadcrumb-container a:hover {
  color: var(--bs-acao-secondary-light);
  opacity: 0.9;
  text-decoration: underline;
}

.breadcrumb-container .separator {
  font-size: 0.813rem;
  margin: 0 0.5rem;
  opacity: 0.7;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb {
  background: transparent;
  padding: 3px 0;
  margin-bottom: 0;
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  gap: 0.25rem;
}

.breadcrumb-item,
.breadcrumb-item a {
  display: flex;
  align-items: center;
  color: #ffffff !important;
  white-space: nowrap;
}

.breadcrumb-item.active {
  color: var(--bs-acao-gold);
  font-weight: 600;
  font-size: 1.2em;
}

.breadcrumb-item + .breadcrumb-item {
  padding-left: 0.25rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '';
  padding-left: 0;
}

.breadcrumb-link {
  color: #ffffff;
  text-decoration: none;
  padding: 0.3125rem 0;
  transition: color var(--bs-transition-smooth), opacity var(--bs-transition-smooth);
  display: inline-flex;
  align-items: center;
}

.breadcrumb-link:hover {
  color: var(--bs-acao-secondary-light);
  text-decoration: underline;
  opacity: 0.9;
}

.breadcrumb-link .fa-home {
  margin-right: 0.3125rem;
  font-size: 1.1em;
  color: white;
}

.breadcrumb-text {
  color: #ffffff;
  padding: 0.3125rem 0;
}

.breadcrumb-item.active .breadcrumb-text {
  color: white;
}

.breadcrumb-separator {
  margin: 0 0.375rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  font-size: 0.875rem;
  user-select: none;
}

@media (max-width: 768px) {
  .breadcrumb-container {
    padding: 0 0.75rem;
    min-height: 2.5rem;
    font-size: 0.875rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .breadcrumb {
    padding: 0.5rem 0;
    font-size: 0.75rem;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .breadcrumb::-webkit-scrollbar {
    height: 2px;
  }

  .breadcrumb::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
  }

  .breadcrumb::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
  }

  .breadcrumb-list {
    flex-wrap: nowrap;
    width: auto;
    min-width: 100%;
  }

  .breadcrumb-item {
    flex-shrink: 0;
  }

  .breadcrumb-item:last-child {
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 30px;
  }

  .breadcrumb-item:last-child .breadcrumb-text,
  .breadcrumb-item:last-child .breadcrumb-link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
  }

  .breadcrumb-item.active {
    font-size: 1.1em;
  }

  .breadcrumb-separator {
    margin: 0 0.25rem;
    font-size: 0.75rem;
  }

  .breadcrumb-link .fa-home {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .breadcrumb-container {
    padding: 0 0.5rem;
    min-height: 2.25rem;
    font-size: 0.75rem;
  }

  .breadcrumb {
    padding: 0.375rem 0;
    font-size: 0.688rem;
  }

  .breadcrumb-item:last-child .breadcrumb-text,
  .breadcrumb-item:last-child .breadcrumb-link {
    max-width: 100px;
  }
}

.breadcrumb-link:focus-visible,
.breadcrumb-container a:focus-visible {
  outline: 2px solid var(--bs-acao-gold);
  outline-offset: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.breadcrumb-link:active {
  color: var(--bs-acao-secondary-dark);
}

@media (prefers-reduced-motion: reduce) {
  .breadcrumb-link,
  .breadcrumb-container a {
    transition: none !important;
  }

  .breadcrumb-link:hover {
    transition: none !important;
  }
}

@media print {
  .breadcrumb-container {
    background: #f8f9fa !important;
    color: #333 !important;
    border: 1px solid #dee2e6;
    box-shadow: none !important;
  }

  .breadcrumb-container a {
    color: var(--bs-acao-primary) !important;
  }

  .breadcrumb-container a:hover {
    color: var(--bs-acao-primary) !important;
  }

  .breadcrumb-text,
  .breadcrumb-item {
    color: #333 !important;
  }

  .breadcrumb-item.active {
    color: var(--bs-acao-primary) !important;
  }

  .breadcrumb-item.active .breadcrumb-text {
    color: var(--bs-acao-primary) !important;
  }

  .breadcrumb-separator {
    color: #6c757d !important;
  }

  .breadcrumb-link .fa-home {
    color: var(--bs-acao-primary) !important;
  }
}

.breadcrumb-item {
  animation: breadcrumbFadeIn 0.3s ease forwards;
  opacity: 0;
}

.breadcrumb-item:nth-child(1) {
  animation-delay: 0.05s;
}
.breadcrumb-item:nth-child(2) {
  animation-delay: 0.1s;
}
.breadcrumb-item:nth-child(3) {
  animation-delay: 0.15s;
}
.breadcrumb-item:nth-child(4) {
  animation-delay: 0.2s;
}
.breadcrumb-item:nth-child(5) {
  animation-delay: 0.25s;
}

@keyframes breadcrumbFadeIn {
  from {
    opacity: 0;
    transform: translateX(-5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .breadcrumb-item {
    animation: none;
    opacity: 1;
  }
}

@media (forced-colors: active) {
  .breadcrumb-link {
    forced-color-adjust: auto;
  }

  .breadcrumb-link:hover {
    text-decoration: underline;
  }

  .breadcrumb-separator {
    color: CanvasText;
  }
}

/* ============================================
   PAGE CONTENT
   ============================================ */
.page-content {
  max-width: 100%;
  word-wrap: break-word;
  padding: 30px 20px;
  border: 1px solid #e9e9e9;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.language-switcher {
  display: inline-block;
  position: relative;
}

.language-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.language-item {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.language-link {
  display: inline-block;
  padding: 6px 12px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

.language-link:hover {
  background-color: #fff !important;
  color: #000;
  border-color: #fff;
  color: var(--bs-acao-primary) !important;
}

.language-link:focus {
  outline: 2px solid var(--bs-acao-primary);
  outline-offset: 2px;
}

.language-item.active .language-link {
  background-color: white;
  color: #ffffff;
  border-color: var(--bs-acao-primary);
  font-weight: 600;
  color: var(--bs-acao-primary) !important;
}

.language-item.active .language-link:hover {
  background-color: var(--bs-acao-primary-dark);
  border-color: var(--bs-acao-primary-dark);
}

@media (max-width: 768px) {
  .language-list {
    gap: 4px;
    flex-wrap: wrap;
  }

  .language-link {
    padding: 4px 10px;
    font-size: 12px;
  }
}

.language-link[dir="rtl"] {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.mh-200 {
  max-height: 300px !important;
}

/* ============================================
   PROGRESS STEPS
   ============================================ */
.progress-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px 0;
}

.step {
  display: flex;
  align-items: center;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.step.active .step-number {
  background: var(--bs-acao-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(38, 65, 147, 0.3);
}

.step.completed .step-number {
  background: var(--bs-acao-secondary);
  color: #fff;
}

.step-label {
  margin: 0 10px;
  font-size: 0.85rem;
  color: #6c757d;
  white-space: nowrap;
}

.step.active .step-label {
  color: var(--bs-acao-primary);
  font-weight: 600;
}

.step.completed .step-label {
  color: var(--bs-acao-secondary);
}

.step-line {
  width: 50px;
  height: 2px;
  background: #e9ecef;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.step.completed .step-line {
  background: var(--bs-acao-secondary);
}

/* ============================================
   BUTTON LOADING
   ============================================ */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  top: 50%;
  left: 50%;
  margin-left: -12px;
  margin-top: -12px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   REGISTRATION
   ============================================ */
.registration-wrapper {
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.progress-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 25px 0 30px;
  padding: 12px 20px;
  background: #f8f9fa;
  border-radius: 30px;
  flex-wrap: wrap;
}

.step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: #6c757d;
  transition: all 0.3s ease;
  position: relative;
  cursor: default;
}

.step-dot::after {
  content: '';
  position: absolute;
  right: -15px;
  width: 20px;
  height: 3px;
  background: #e9ecef;
  transition: all 0.3s ease;
}

.step-dot:last-child::after {
  display: none;
}

.step-dot.active {
  background: var(--bs-acao-primary);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(38, 65, 147, 0.3);
}

.step-dot.finish {
  background: var(--bs-acao-secondary);
  color: #fff;
}

.step-dot.finish::after {
  background: var(--bs-acao-secondary);
}

.tab {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab.active-tab {
  display: block;
}

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

.tab-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a3c6e;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tab-title i {
  color: var(--bs-acao-primary);
  font-size: 1.3rem;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #2c3e50;
  font-size: 0.95rem;
}

.text-danger {
  color: #dc3545;
}

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  color: #2c3e50;
}

.form-control:focus {
  border-color: var(--bs-acao-primary);
  box-shadow: 0 0 0 3px rgba(38, 65, 147, 0.1);
  outline: none;
}

.form-control.invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-control.invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 0;
}

.checkbox-group .form-group {
  margin-bottom: 0;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 8px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  background: #f8f9fa;
}

.checkbox-group label:hover {
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.form-check-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--bs-acao-primary);
  flex-shrink: 0;
}

.btn-group {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e9ecef;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 35px;
  border: none;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: var(--bs-acao-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--bs-acao-primary-dark);
}

.btn-success {
  background: var(--bs-acao-secondary);
  color: #fff;
}

.btn-success:hover {
  background: var(--bs-acao-secondary-dark);
}

.btn-secondary {
  background: #6c757d;
  color: #fff;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-outline-secondary {
  background: transparent;
  color: #6c757d;
  border: 2px solid #6c757d;
}

.btn-outline-secondary:hover {
  background: #6c757d;
  color: #fff;
}

@media (max-width: 768px) {
  .registration-wrapper {
    padding: 10px;
  }

  .progress-indicator {
    gap: 5px;
    padding: 8px 12px;
    border-radius: 20px;
  }

  .step-dot {
    width: 32px;
    height: 32px;
    font-size: 0.7rem;
  }

  .step-dot::after {
    width: 10px;
    right: -8px;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
    justify-content: center;
  }

  .checkbox-group label {
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .breadcrumb {
    font-size: 0.85rem;
  }

  .breadcrumb-separator {
    margin: 0 5px;
  }

  .row>[class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 576px) {
  .step-dot {
    width: 28px;
    height: 28px;
    font-size: 0.6rem;
  }

  .step-dot::after {
    width: 8px;
    right: -6px;
  }

  .form-control {
    font-size: 0.95rem;
    padding: 8px 12px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

/* ============================================
   MENU SIDEBAR
   ============================================ */
.menu-sidebar {
  background: #f5f5f599;
  border-radius: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  min-height: 600px;
  max-height: 600px;
  overflow-y: auto;
}

.menu-sidebar .category-header {
  background: var(--bs-acao-primary);
  color: #fff;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 2px solid var(--bs-acao-primary-light);
  text-align: center;
  letter-spacing: 0.5px;
}

.menu-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-sidebar ul li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.menu-sidebar ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  color: var(--bs-acao-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  background: #fff;
  border: none;
  outline: 0;
}

.menu-sidebar ul li a:hover {
  background: var(--bs-acao-primary-dark);
  color: #fff;
}

.menu-sidebar ul li a .menu-text {
  flex: 1;
}

.menu-sidebar ul li a .accordion-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  text-align: center;
  font-size: 14px;
  color: #7f8c8d;
  transition: all 0.3s ease;
  margin-right: 10px;
  background: #e8e8e8;
  border-radius: 50%;
}

.menu-sidebar ul li a:hover .accordion-btn {
  color: #ecf0f1;
  background: var(--bs-acao-primary);
}

.menu-sidebar ul ul {
  background: #f8f9fa;
  margin: 0;
  display: none;
  overflow: hidden;
}

.menu-sidebar ul ul.open,
.menu-sidebar ul li.active > ul,
.menu-sidebar ul li.selected > ul {
  display: block !important;
}

.menu-sidebar ul ul li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.menu-sidebar ul ul li a {
  padding: 10px 20px 10px 35px;
  font-size: 13px;
  color: #2c3e50;
  background: #f8f9fa;
}

.menu-sidebar ul ul li a:hover {
  background: var(--bs-acao-primary);
  color: #fff;
}

.menu-sidebar ul ul ul {
  background: #f0f1f2;
}

.menu-sidebar ul ul ul li a {
  padding: 8px 20px 8px 50px;
  font-size: 12px;
  color: #34495e;
  background: #f0f1f2;
}

.menu-sidebar ul ul ul li a:hover {
  background: var(--bs-acao-primary-dark);
  color: #fff;
}

.menu-sidebar ul li.selected > a,
.menu-sidebar ul li a.active-link {
  background: var(--bs-acao-primary);
  color: #fff !important;
  font-weight: 600;
}

.menu-sidebar ul li.selected > a .accordion-btn,
.menu-sidebar ul li a.active-link .accordion-btn {
  color: #fff;
  background: var(--bs-acao-primary-light);
}

.menu-sidebar ul li.selected > a:hover {
  background: var(--bs-acao-primary-dark);
}

.menu-sidebar ul li a.active-link:hover {
  background: var(--bs-acao-primary-dark);
}

.menu-sidebar .fa {
  font-size: 12px;
  vertical-align: middle;
}

.menu-sidebar::-webkit-scrollbar {
  width: 6px;
}

.menu-sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.menu-sidebar::-webkit-scrollbar-thumb {
  background: var(--bs-acao-primary);
  border-radius: 3px;
}

.menu-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--bs-acao-primary-dark);
}

@media (max-width: 768px) {
  .menu-sidebar {
    border-radius: 0;
    box-shadow: none;
    max-height: 400px;
  }
  .menu-sidebar .category-header {
    font-size: 16px;
    padding: 12px 15px;
  }
  .menu-sidebar ul li a {
    padding: 10px 15px;
    font-size: 13px;
  }
  .menu-sidebar ul ul li a {
    padding: 8px 15px 8px 30px;
    font-size: 12px;
  }
  .menu-sidebar ul ul ul li a {
    padding: 8px 15px 8px 45px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .menu-sidebar .category-header {
    font-size: 14px;
    padding: 10px 12px;
  }
  .menu-sidebar ul li a {
    padding: 8px 12px;
    font-size: 12px;
  }
  .menu-sidebar ul ul li a {
    padding: 8px 12px 8px 25px;
    font-size: 11px;
  }
  .menu-sidebar ul ul ul li a {
    padding: 8px 12px 8px 38px;
    font-size: 10px;
  }
}

.menu-sidebar ul li a:focus {
  outline: 2px solid var(--bs-acao-primary);
  outline-offset: -2px;
}

.menu-sidebar ul li a:focus:not(:focus-visible) {
  outline: 0;
}

.menu-sidebar ul li a:focus-visible {
  outline: 2px solid var(--bs-acao-primary);
  outline-offset: -2px;
}

.menu-sidebar ul ul {
  max-height: 0;
  transition: max-height 0.3s ease-out;
}

.menu-sidebar ul ul.open {
  max-height: 2000px;
}

.parent-header {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background-color: var(--bs-acao-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  color: #fff;
  border: none;
  outline: 0;
}

/* ============================================
   RTL SPECIFIC OVERRIDES - Integrated
   ============================================ */
[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .text-column {
  padding-right: 1.5rem;
  padding-left: 0;
}

[dir="rtl"] .expert-details img {
  float: right;
  margin: 0 0 1.25rem 1.25rem;
}

[dir="rtl"] .footer .footer-links li a:hover {
  padding-right: 4px;
  padding-left: 0;
}

[dir="rtl"] .back-to-top {
  left: 5%;
  right: auto;
}

[dir="rtl"] .sitemap-container ul {
  padding-right: 1.5rem;
  padding-left: 0;
}

[dir="rtl"] .sitemap-category {
  border-right: 3px solid rgba(38, 65, 147, 0.15);
  border-left: none;
  padding-right: 1rem;
  padding-left: 0;
}

[dir="rtl"] .sitemap-container ul ul {
  padding-right: 2rem;
  padding-left: 0;
}

[dir="rtl"] .news-content ul,
[dir="rtl"] .news-content ol {
  padding-right: 1.5rem;
  padding-left: 0;
}

[dir="rtl"] .news-content blockquote {
  border-right: 4px solid var(--bs-acao-primary);
  border-left: none;
  padding-right: 1rem;
  padding-left: 0;
}

[dir="rtl"] .breadcrumb-link .fa-home {
  margin-right: 0;
  margin-left: 0.3125rem;
}

[dir="rtl"] .breadcrumb-item + .breadcrumb-item {
  padding-left: 0;
  padding-right: 0.25rem;
}

[dir="rtl"] .section-header {
  text-align: right;
}

[dir="rtl"] .dropdown-menu {
  text-align: right;
}

[dir="rtl"] .dropdown-toggle::after {
  margin-right: 0.5rem;
  margin-left: 0;
}

[dir="rtl"] .step-dot::after {
  right: auto;
  left: -15px;
}

[dir="rtl"] .breadcrumb-separator {
  margin: 0 0.375rem;
}

[dir="rtl"] .btn-group {
  flex-direction: row-reverse;
}

[dir="rtl"] .tab-title i {
  margin-right: 0;
}

[dir="rtl"] .menu-sidebar ul li a .accordion-btn {
  margin-right: 0;
  margin-left: 10px;
}

[dir="rtl"] .menu-sidebar ul ul li a {
  padding: 10px 35px 10px 20px;
}

[dir="rtl"] .menu-sidebar ul ul ul li a {
  padding: 8px 50px 8px 20px;
}

@media (max-width: 768px) {
  [dir="rtl"] .menu-sidebar ul ul li a {
    padding: 8px 30px 8px 15px;
  }
  [dir="rtl"] .menu-sidebar ul ul ul li a {
    padding: 8px 45px 8px 15px;
  }
}

@media (max-width: 480px) {
  [dir="rtl"] .menu-sidebar ul ul li a {
    padding: 8px 25px 8px 12px;
  }
  [dir="rtl"] .menu-sidebar ul ul ul li a {
    padding: 8px 38px 8px 12px;
  }
}