/* 
========================================
   Myuni Features - Modern Design System
======================================== 
*/

:root {
  /* Brand Colors Refined */
  --primary-navy: #0d1b2a;
  --primary-navy-light: #1B2944;
  --accent-yellow: #FFB800;
  --accent-magenta: #E91E63;
  --gradient-navy: linear-gradient(135deg, #0d1b2a 0%, #1B2944 100%);
  --gradient-accent: linear-gradient(135deg, #E91E63 0%, #ff4a85 100%);
  --gradient-yellow: linear-gradient(135deg, #FFB800 0%, #ffcf40 100%);

  /* Text Colors */
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #ffffff;

  /* Background Colors */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-section-alt: #f1f5f9;

  /* Layout & Styling */
  --border-radius: 20px;
  --border-radius-sm: 10px;
  --border-radius-pill: 50px;
  --box-shadow: 0 10px 30px -5px rgba(13, 27, 42, 0.08);
  --box-shadow-hover: 0 25px 40px -10px rgba(13, 27, 42, 0.15);
  --box-shadow-glow: 0 10px 25px -5px rgba(233, 30, 99, 0.4);
  --transition-speed: 0.4s;
  --max-width: 1200px;
}

/* ========================================
   CSS Reset & Base
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
  /* clip instead of hidden allows position: sticky to work */
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: clip;
}

[lang="en"] body,
.lang-en {
  font-family: 'Inter', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed) ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   Typography
======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-navy);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  word-wrap: break-word;
  /* prevent overflow */
}

/* ========================================
   Layout Utilities
======================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background-color: var(--bg-section-alt);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.flex {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-3 {
  gap: 1.5rem;
}

.gap-4 {
  gap: 2.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ========================================
   Components
======================================== */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: var(--border-radius-pill);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 0.15;
}

.btn-primary {
  background: var(--gradient-navy);
  color: var(--text-light);
  box-shadow: var(--box-shadow);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 25px -5px rgba(13, 27, 42, 0.2);
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--text-light);
  box-shadow: var(--box-shadow-glow);
}

.btn-accent:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -5px rgba(233, 30, 99, 0.6);
}

.btn-yellow {
  background: var(--gradient-yellow);
  color: var(--primary-navy);
  box-shadow: 0 10px 20px -5px rgba(255, 184, 0, 0.4);
}

.btn-yellow:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 25px -5px rgba(255, 184, 0, 0.5);
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: all var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

/* Advisor Cards */
.advisor-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px -5px rgba(13, 27, 42, 0.05);
  /* Softer base shadow */
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.advisor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.advisor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(13, 27, 42, 0.12);
}

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

.advisor-card .advisor-img-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  padding: 5px;
  background: var(--gradient-navy);
  /* Gradient border effect */
}

.advisor-card .advisor-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-card);
  transition: transform 0.4s ease;
}

.advisor-card:hover .advisor-img {
  transform: scale(1.05);
}

.advisor-card h3 {
  font-size: 1.3rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.advisor-card p.advisor-role {
  color: var(--accent-magenta);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

/* Video Card */
.video-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: all var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.1);
  border: 1px solid rgba(0, 0, 0, 0.02);
  margin: 0 auto;
  max-width: 900px;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.video-card-header {
  background: var(--gradient-navy);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--accent-yellow);
}

.video-dots {
  display: flex;
  gap: 6px;
}

.video-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.video-dots span:nth-child(1) {
  background-color: #ff5f56;
}

.video-dots span:nth-child(2) {
  background-color: #ffbd2e;
}

.video-dots span:nth-child(3) {
  background-color: #27c93f;
}

.video-title {
  color: var(--text-light);
  font-size: 1.1rem;
  margin: 0;
  font-weight: 700;
  flex-grow: 1;
  text-align: center;
}

.video-icon {
  color: var(--accent-magenta);
  font-size: 1.5rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background-color: #000;
}

.video-wrapper iframe,
.video-wrapper object,
.video-wrapper embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card-body {
  padding: 1.5rem;
  text-align: center;
}

.video-card-body p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Sections Headers */
.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
  /* Centering fix */
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 5px;
  background: var(--gradient-accent);
  border-radius: 5px;
  margin-top: 15px;
}

/* ========================================
   Responsive Media Queries
======================================== */
@media (max-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* ========================================
   Navbar (Glassmorphism)
======================================== */
.navbar {
  background-color: rgba(13, 27, 42, 0.85);
  /* Deep navy with transparency */
  color: var(--text-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Pseudo-element hack to fix nested backdrop-filters failing on mobile menu */
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .navbar {
    background-color: transparent;
  }

  .navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(13, 27, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: -1;
  }
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-yellow);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 6px;
  /* Slightly smaller radius for smaller size */
  transition: transform 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(2.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
  color: #e2e8f0;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0px;
  right: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-yellow);
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: var(--text-light);
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--primary-navy-light);
  min-width: 260px;
  max-height: 60vh;
  overflow-y: auto;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--box-shadow-hover);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1001;
  border-top: 3px solid var(--accent-yellow);
  pointer-events: none;
}

/* Scrollbar styling for dropdown */
.dropdown-menu::-webkit-scrollbar {
  width: 4px;
}
.dropdown-menu::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}
.dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--accent-yellow);
  border-radius: 4px;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  display: block;
  padding: 0.65rem 1.5rem;
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  border-right: 3px solid transparent;
}

.dropdown-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--accent-yellow);
  border-right-color: var(--accent-yellow);
  padding-right: 2rem;
}

/* Mobile Dropdown */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    transform: none;
    background-color: rgba(13, 27, 42, 0.5);
    box-shadow: none;
    padding: 0;
    margin-top: 0.5rem;
    border-radius: var(--border-radius-sm);
    text-align: center;
    display: none;
    border-top: none;
    border-right: 3px solid var(--accent-yellow);
  }

  .dropdown.active .dropdown-menu {
    display: block;
    pointer-events: auto;
  }

  .dropdown-menu li a {
    padding: 0.5rem 1rem;
    border-right: none;
  }
  .dropdown-menu li a:hover {
    border-right: none;
  }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(13, 27, 42, 0.85);
    /* Matched to navbar */
    backdrop-filter: blur(12px);
    /* Matched to navbar */
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: center;
  }

  .nav-links li a::after {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }
}

/* ========================================
   Footer
======================================== */
.footer {
  background: var(--gradient-navy);
  color: var(--text-light);
  padding: 5rem 0 2rem;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.footer h3 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  position: relative;
  display: inline-block;
}

.footer h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-yellow);
  border-radius: 3px;
}

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

.footer-links li a {
  color: #cbd5e1;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-links li a:hover {
  color: var(--accent-yellow);
  transform: translateX(-5px);
  /* RTL left translation */
}

.footer-bottom {
  text-align: center;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #94a3b8;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer h3::after {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }

  .footer-links li a:hover {
    transform: translateY(-3px);
  }

  .footer-col i {
    margin: 0 5px;
  }

  /* Adjust icon margins for center align */
}

/* ========================================
   Animations (Intersection Observer)
======================================== */
.animate-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children for grids */
.grid.stagger-children>* {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.grid.stagger-children.is-visible>*:nth-child(1) {
  transition-delay: 0.1s;
}

.grid.stagger-children.is-visible>*:nth-child(2) {
  transition-delay: 0.2s;
}

.grid.stagger-children.is-visible>*:nth-child(3) {
  transition-delay: 0.3s;
}

.grid.stagger-children.is-visible>*:nth-child(4) {
  transition-delay: 0.4s;
}

.grid.stagger-children.is-visible>*:nth-child(5) {
  transition-delay: 0.5s;
}

.grid.stagger-children.is-visible>*:nth-child(6) {
  transition-delay: 0.6s;
}

.grid.stagger-children.is-visible>* {
  opacity: 1;
  transform: translateY(0);
}

/* Floating animation for images */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

.float-anim {
  animation: float 6s ease-in-out infinite;
}

/* ========================================
   Google Reviews Swiper
======================================== */
.overflow-hidden {
  overflow: hidden;
}

.reviews-swiper {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 3rem 0;
  background: var(--bg-section-alt);
}

.reviews-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}

.swiper-slide {
  width: auto;
  /* Required for custom width cards */
  height: auto;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 2rem;
  width: 380px;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.03);
  /* Restore RTL for the actual content inside the card */
  direction: rtl;
  text-align: right;
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reviewer-info h4 {
  color: var(--primary-navy);
  margin: 0 0 0.2rem 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.reviewer-info span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.review-google-icon {
  width: 32px;
  height: 32px;
}

.review-stars {
  color: #FFB800;
  font-size: 1.1rem;
  display: flex;
  gap: 3px;
}

.review-body {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
  font-weight: 500;
}

@media (max-width: 768px) {
  .review-card {
    width: 300px;
    padding: 1.5rem;
  }

  .marquee-track {
    animation-duration: 35s;
  }
}

/* ========================================
   Floating WhatsApp Widget
======================================== */
.wa-widget-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  direction: rtl; /* Ensure RTL logic inside widget */
}

/* The popup box */
.wa-advisers-popup {
  position: absolute;
  bottom: calc(100% + 15px);
  right: 0;
  width: 340px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #e0e0e0;
  overflow: visible; /* To allow the arrow pointer to show */
}

.wa-advisers-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Pointer arrow */
.wa-advisers-popup::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 30px; /* aligns with button center roughly */
  width: 0; 
  height: 0; 
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
}

.wa-popup-header {
  background-color: #8cc63f; /* green from image */
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
  color: white;
  border-radius: 8px 8px 0 0;
}

.wa-popup-close {
  position: absolute;
  top: 10px;
  left: 10px; /* Top left for RTL close button */
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.8;
  padding: 0;
}

.wa-popup-close:hover {
  opacity: 1;
}

.wa-popup-header h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
}

.wa-popup-header p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: white;
  font-weight: 600;
}

.wa-popup-body {
  display: flex;
  flex-direction: column;
}

.wa-adviser-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: white;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
  color: inherit;
}

.wa-adviser-item:hover {
  background: #fafafa;
}

/* Right side: Image + small wa icon */
.wa-adviser-img-container {
  position: relative;
  width: 55px;
  height: 55px;
  margin-left: 1rem;
}

.wa-adviser-img-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.small-wa-icon {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border: 1px solid white;
}

/* Left side: Text info */
.wa-adviser-info {
  flex: 1;
  text-align: right;
}

.wa-adviser-info p {
  margin: 0 0 0.1rem 0;
  font-size: 0.8rem;
  color: #888;
}

.wa-adviser-info h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #222;
  font-weight: 800;
}

/* Footer of popup */
.wa-popup-footer {
  text-align: center;
  padding: 0.8rem;
  font-size: 0.75rem;
  color: #999;
  background: #fbfbfb;
  border-radius: 0 0 8px 8px;
}

/* Toggle button styling */
.floating-wa-btn {
  background-color: #8cc63f;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(140, 198, 63, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: inherit; /* use global site font */
}

.floating-wa-btn i {
  font-size: 1.5rem;
}

.floating-wa-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(140, 198, 63, 0.6);
}

@media (max-width: 768px) {
  .wa-widget-container {
    bottom: 20px;
    right: 20px;
  }
  .wa-advisers-popup {
    width: min(340px, calc(100vw - 24px));
    right: 0;
  }
  .floating-wa-btn {
    padding: 10px 18px;
    font-size: 1rem;
  }
}

/* ========================================
   Shared SEO / I18N UI
======================================== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: rgba(255, 184, 0, 0.14);
  color: var(--accent-yellow);
  font-weight: 800;
  border: 1px solid rgba(255, 184, 0, 0.28);
  margin-inline-start: 1rem;
}

.lang-switch:hover {
  background: rgba(255, 184, 0, 0.2);
  color: #fff3c2;
}

.breadcrumb-section {
  background: linear-gradient(180deg, rgba(13, 27, 42, 0.06), rgba(13, 27, 42, 0));
  border-bottom: 1px solid rgba(13, 27, 42, 0.06);
}

.breadcrumb-nav {
  padding: 0.85rem 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  color: var(--text-muted);
  font-weight: 600;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.breadcrumb-item::after {
  content: '/';
  color: rgba(71, 85, 105, 0.55);
}

.breadcrumb-item:last-child::after {
  display: none;
}

.breadcrumb-item.is-current {
  color: var(--primary-navy);
}

.faq-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.faq-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.faq-item {
  background: white;
  border: 1px solid rgba(13, 27, 42, 0.08);
  border-radius: 18px;
  box-shadow: var(--box-shadow);
  padding: 1.1rem 1.2rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0.85rem 0 0;
}

.wa-advisers-popup {
  max-width: calc(100vw - 24px);
  pointer-events: none;
}

.wa-advisers-popup.active {
  pointer-events: auto;
}

.floating-wa-btn,
.wa-popup-close,
.wa-adviser-item {
  touch-action: manipulation;
}

@media (max-width: 768px) {
  .lang-switch {
    min-width: 44px;
    height: 36px;
    margin-inline-start: 0.75rem;
  }

  .faq-item {
    border-radius: 14px;
  }

  .fee-table thead {
    display: none;
  }

  .fee-table,
  .fee-table tbody,
  .fee-table tr,
  .fee-table td {
    display: block;
    width: 100%;
  }

  .fee-table tr {
    background: #fff;
    border: 1px solid var(--bg-section-alt);
    border-radius: 14px;
    margin-bottom: 0.9rem;
    overflow: hidden;
  }

  .fee-table td {
    border-bottom: 1px solid var(--bg-section-alt);
    padding: 0.9rem 1rem;
  }

  .fee-table td:last-child {
    border-bottom: none;
  }

  .fee-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--primary-navy);
    font-weight: 800;
    margin-bottom: 0.35rem;
  }

  .wa-advisers-popup {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 88px;
    width: auto;
  }

  .wa-popup-body {
    max-height: min(50vh, 380px);
    overflow-y: auto;
  }
}

.lang-en {
  direction: ltr;
}

.lang-en .nav-links li a::after {
  left: 0;
  right: auto;
}

.lang-en .dropdown-menu {
  left: 0;
  right: auto;
}

.lang-en .timeline {
  padding-left: 2rem;
  padding-right: 0;
}

.lang-en .timeline::before {
  left: 8px;
  right: auto;
}

.lang-en .timeline-item::before {
  left: -2rem;
  right: auto;
}

.lang-en .wa-widget-container {
  left: 30px;
  right: auto;
  align-items: flex-start;
  direction: ltr;
}

.lang-en .wa-advisers-popup {
  left: 0;
  right: auto;
}

.lang-en .wa-popup-close {
  left: auto;
  right: 10px;
}

.lang-en .wa-adviser-info,
.lang-en .breadcrumb-list,
.lang-en .faq-item,
.lang-en .stat-row,
.lang-en .contact-list,
.lang-en .social-links {
  text-align: left;
}

.lang-en .about-content,
.lang-en .contact-info-card,
.lang-en .contact-form,
.lang-en .uni-card-body,
.lang-en .inst-card-body,
.lang-en .tc-card-body,
.lang-en .detail-main-content,
.lang-en .detail-sidebar .sidebar-card,
.lang-en .timeline-content,
.lang-en .footer-col,
.lang-en .value-card,
.lang-en .mission-vision-card,
.lang-en .reviewer-info {
  direction: ltr;
  text-align: left;
}

@media (max-width: 768px) {
  .lang-en .wa-widget-container {
    left: 20px;
    right: auto;
  }
}
