/* ============================================================
   IFAM — Institut de Formation Abraham Maslow
   Site professionnel moderne
   ============================================================ */

:root {
  /* Rouge bordeaux */
  --primary: #6B0F1A;
  --primary-dark: #4A0A12;
  --primary-light: #8B1A2B;
  --accent: #C9A227;
  --accent-hover: #B08D1A;
  --success: #0d9488;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-light: #f8f4f5;
  --bg-dark: #1a0a0c;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(107, 15, 26, 0.10);
  --shadow-lg: 0 12px 40px rgba(107, 15, 26, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  transition: var(--transition);
}

/* ---------- Navbar ---------- */
#mainNav {
  background: transparent;
  padding: 1rem 0;
  transition: var(--transition);
  z-index: 1030;
}

#mainNav.scrolled {
  background: rgba(107, 15, 26, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  padding: 0.6rem 0;
}

.navbar-brand .brand-logo {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: var(--transition);
  background: #fff;
  border-radius: 8px;
  padding: 3px 6px;
}

#mainNav.scrolled .brand-logo {
  height: 44px;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: 8px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-cta {
  background: var(--accent);
  color: var(--primary-dark) !important;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  border: none;
  transition: var(--transition);
}

.btn-cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
  transform: translateY(-1px);
}

/* ---------- Hero Slider ---------- */
/* Structure en flux normal (pas absolute) pour Android */
.hero-section {
  position: relative;
  color: #fff;
  overflow: hidden;
  width: 100%;
}

.hero-slider {
  position: relative;
  width: 100%;
  z-index: 0;
}

.hero-slider .carousel {
  width: 100%;
}

.hero-slider .carousel-inner {
  width: 100%;
}

.hero-slider .carousel-item {
  width: 100%;
  /* hauteur fixe explicite — critique pour Android */
  height: 100vh;
  height: 100svh;
  min-height: 560px;
}

.hero-slide {
  width: 100%;
  height: 100%;
  min-height: 560px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #6B0F1A;
  position: relative;
  display: block;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Overlay léger : photos bien visibles PC + Android */
  background: linear-gradient(
    160deg,
    rgba(40, 8, 12, 0.55) 0%,
    rgba(74, 10, 18, 0.35) 45%,
    rgba(20, 5, 8, 0.45) 100%
  );
  z-index: 1;
}

/* Images de fond du slider (thème éducation / campus) */
.slide-1 {
  background-image: url('../assets/img/slide-1.jpg');
  background-position: center center;
}
.slide-2 {
  background-image: url('../assets/img/slide-2.jpg');
  background-position: center 30%;
}
.slide-3 {
  background-image: url('../assets/img/slide-3.jpg');
  background-position: center 25%;
}

/* Mobile : cadrage adapté aux petits écrans */
@media (max-width: 767.98px) {
  .hero-slide {
    background-size: cover;
    background-attachment: scroll; /* fixed pose problème Android */
  }
  .slide-1 {
    background-position: 65% center; /* bâtiment IFAM */
  }
  .slide-2 {
    background-position: center 20%; /* groupe étudiants */
  }
  .slide-3 {
    background-position: center 15%; /* salle de classe */
  }
  .hero-slide::before {
    background: linear-gradient(
      180deg,
      rgba(30, 5, 10, 0.50) 0%,
      rgba(74, 10, 18, 0.30) 40%,
      rgba(20, 5, 8, 0.55) 100%
    );
  }
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding-top: 5.5rem;
  padding-bottom: 4rem;
}

/* Animations des éléments du slide */
.hero-slide .hero-badge,
.hero-slide .hero-title,
.hero-slide .hero-subtitle,
.hero-slide .hero-btns,
.hero-slide .hero-stats {
  opacity: 0;
  transform: translateY(30px);
}

.carousel-item.active .hero-badge {
  animation: fadeUp 0.7s ease forwards 0.2s;
}
.carousel-item.active .hero-title {
  animation: fadeUp 0.8s ease forwards 0.4s;
}
.carousel-item.active .hero-subtitle {
  animation: fadeUp 0.8s ease forwards 0.6s;
}
.carousel-item.active .hero-btns {
  animation: fadeUp 0.8s ease forwards 0.8s;
}
.carousel-item.active .hero-stats {
  animation: fadeUp 0.8s ease forwards 1s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Zoom léger du fond au changement de slide */
.carousel-item.active .hero-slide {
  animation: kenBurns 8s ease-out forwards;
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.hero-badge {
  display: inline-block;
  background: rgba(201, 162, 39, 0.2);
  color: var(--accent);
  border: 1px solid rgba(201, 162, 39, 0.45);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 4px 20px rgba(0,0,0,0.5);
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 540px;
  margin-bottom: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.75), 0 2px 14px rgba(0,0,0,0.45);
}

.btn-hero-primary {
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  border: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.btn-hero-primary:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 162, 39, 0.4);
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  font-weight: 500;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  transition: var(--transition);
}

.btn-hero-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero-stats .stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Contrôles du slider */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  opacity: 1;
  backdrop-filter: blur(4px);
  transition: var(--transition);
}

.hero-slider .carousel-control-prev { left: 1.5rem; }
.hero-slider .carousel-control-next { right: 1.5rem; }

.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.hero-slider .carousel-indicators {
  bottom: 2.5rem;
  z-index: 5;
}

/* Fix Android : forcer hauteur visible du slide actif */
.hero-slider .carousel-item.active,
.hero-slider .carousel-item-next,
.hero-slider .carousel-item-prev {
  display: block;
}
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  z-index: 5;
}


.hero-slider .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  opacity: 1;
  transition: var(--transition);
}

.hero-slider .carousel-indicators .active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}

.scroll-down {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
  z-index: 5;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Sections ---------- */
.section-padding {
  padding: 5rem 0;
}

.bg-light {
  background: var(--bg-light) !important;
}

.section-label {
  display: inline-block;
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--accent);
}

.section-desc {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 1.05rem;
}

.lead-text {
  font-size: 1.1rem;
  color: var(--text);
}

/* ---------- About ---------- */
.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: linear-gradient(160deg, #f8f4f5 0%, #fff 50%, #f0e8ea 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(107, 15, 26, 0.08);
  padding: 1.5rem 1rem 0;
}

.about-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.about-img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  margin: 0 auto;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.about-list i {
  color: var(--success);
  font-size: 1.2rem;
}

/* ---------- Programs ---------- */
.program-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  height: 100%;
  box-shadow: var(--shadow);
  border: 1px solid rgba(107, 15, 26, 0.06);
  transition: var(--transition);
  text-align: center;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.program-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.program-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.program-duration {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.program-card p:last-child {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.specialty-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  height: 100%;
  transition: var(--transition);
}

.specialty-card:hover {
  box-shadow: var(--shadow-lg);
}

.specialty-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: rgba(107, 15, 26, 0.08);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.specialty-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.specialty-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(201, 162, 39, 0.1);
  border-radius: 50%;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

/* ---------- Team ---------- */
.team-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(107, 15, 26, 0.06);
  transition: var(--transition);
  height: 100%;
}

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

.team-avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(145deg, var(--primary-light), var(--primary));
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin-bottom: 1.25rem;
  border: 4px solid rgba(201, 162, 39, 0.3);
  overflow: hidden;
}

.team-avatar-photo {
  background: #f0f0f0;
  padding: 0;
}

.team-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-avatar-diamond {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 5px solid rgba(201, 162, 39, 0.55);
  background: #0d3b2e;
  box-shadow: 0 8px 28px rgba(107, 15, 26, 0.2);
  margin-bottom: 1.5rem;
}

.team-avatar-diamond img {
  object-fit: cover;
  object-position: center 15%;
  transform: scale(1.05);
}

.team-avatar-lg {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid rgba(201, 162, 39, 0.5);
  box-shadow: 0 8px 24px rgba(107, 15, 26, 0.18);
  margin-bottom: 1.35rem;
  background: #e8e4e5;
}

.team-avatar-lg img {
  object-fit: cover;
  object-position: center top;
}


/* Carte DG mise en avant */
.team-card:has(.team-avatar-diamond) {
  padding: 2.75rem 1.75rem 2.5rem;
  border: 2px solid rgba(201, 162, 39, 0.35);
}

.team-card:has(.team-avatar-diamond) h3 {
  font-size: 1.4rem;
}

.team-card-pending {
  opacity: 0.85;
}

.team-card-pending .team-avatar {
  background: linear-gradient(145deg, #6b7280, #4b5563);
}

.team-card-pending h3 {
  color: var(--text-muted);
  font-style: italic;
}


.team-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.team-role {
  display: inline-block;
  background: rgba(201, 162, 39, 0.15);
  color: var(--accent-hover);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.25rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.team-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Advantages ---------- */
.advantage-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow);
  border: 1px solid rgba(107, 15, 26, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.adv-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(107, 15, 26, 0.08);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.advantage-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.advantage-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}



/* ---------- Galerie Vidéo ---------- */
.video-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  transition: var(--transition);
  border: 1px solid rgba(107, 15, 26, 0.06);
}

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

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a0a0c;
  overflow: hidden;
}

.video-thumb iframe,
.video-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  background: linear-gradient(145deg, #6B0F1A, #4A0A12);
}

.video-placeholder i {
  font-size: 3rem;
  color: var(--accent);
}

.video-placeholder span {
  font-size: 0.9rem;
  font-weight: 500;
}

.video-info {
  padding: 1.15rem 1.25rem;
}

.video-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.video-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Galerie ---------- */
.gallery-grid .gallery-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  position: relative;
  transition: var(--transition);
}

.gallery-grid .gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(107, 15, 26, 0);
  transition: var(--transition);
}

.gallery-grid .gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-grid .gallery-item:hover::after {
  background: rgba(107, 15, 26, 0.25);
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-grid .gallery-item:hover img {
  transform: scale(1.06);
}

/* ---------- Map ---------- */
.map-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.map-frame {
  position: relative;
  width: 100%;
  min-height: 450px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #e8e4e5;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 16px;
}

/* ---------- Contact ---------- */
.bg-dark-custom {
  background: var(--bg-dark);
}

.text-light-opacity {
  color: rgba(255, 255, 255, 0.75) !important;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.9);
}

.contact-item i {
  width: 44px;
  height: 44px;
  background: rgba(201, 162, 39, 0.2);
  color: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.contact-item span {
  font-size: 0.95rem;
  opacity: 0.85;
}

.contact-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.contact-form-card h3 {
  font-weight: 700;
  color: var(--primary);
}

.form-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}

.form-control,
.form-select {
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  padding: 0.7rem 1rem;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(107, 15, 26, 0.12);
}

.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: none;
  transition: var(--transition);
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(107, 15, 26, 0.3);
}

/* ---------- Footer ---------- */
.footer {
  background: #1a0a0c;
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
}

.footer-brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
}

.footer-logo {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  /* logo has white/light bg, fine on dark footer */
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
}

.footer-tagline {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.7;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.copyright {
  font-size: 0.9rem;
}

.powered {
  opacity: 0.5;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(107, 15, 26, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

/* ---------- Modal ---------- */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.modal-header {
  background: var(--primary);
  color: #fff;
  border-bottom: none;
  padding: 1.25rem 1.5rem;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
}

.modal-body {
  padding: 1.75rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  #mainNav {
    background: rgba(107, 15, 26, 0.97);
  }

  .hero-slider .carousel-item {
    height: 100vh;
    height: 100svh;
    min-height: 520px;
  }
  .hero-slide,
  .hero-slide-content {
    min-height: 520px;
  }
  .hero-slide-content {
    padding: 5.5rem 1rem 4.5rem;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-stats {
    gap: 1rem !important;
  }
  .stat-number {
    font-size: 1.2rem;
  }
  .hero-slider .carousel-control-prev,
  .hero-slider .carousel-control-next {
    width: 36px;
    height: 36px;
  }
  .hero-slider .carousel-indicators {
    bottom: 1.25rem;
  }
  .scroll-down {
    display: none;
  }

  .section-padding {
    padding: 3.5rem 0;
  }

  .about-visual {
    margin-bottom: 1rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .contact-form-card {
    padding: 1.5rem;
  }

  .btn-hero-primary,
  .btn-hero-outline {
    width: 100%;
    justify-content: center;
  }
}

.video-featured-wrap {
  max-width: 380px;
  width: 100%;
}

.video-card-featured {
  overflow: hidden;
}

.video-card-featured .video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #111;
  max-height: none;
}

.video-card-featured .video-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}

.video-card-featured .video-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.video-card-featured .video-info a {
  color: var(--primary);
  text-decoration: none;
}

.video-card-featured .video-info a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

@media (min-width: 576px) {
  .video-featured-wrap {
    max-width: 420px;
  }
}
