/**
 * ==============================================================================
 * Central Africa Website - Animations & Visual Effects Library
 * Extracted & Engineered from "African Ports" (shipchandlerust-luga.com)
 * ==============================================================================
 */

/* ==========================================================================
   1. CORE KEYFRAME ANIMATIONS
   ========================================================================== */

/* --- MOBILE RESPONSIVE NAVBAR OVERRIDES (Dark Theme) ---
   The template's style.css uses white backgrounds for mobile menu.
   These rules override it to match our dark theme.
   ----------------------------------------------------------------- */

/* Hamburger bars: make them gold/white (visible on dark header) */
.header-bar span {
  background-color: #FFFFFF !important;
}
.header-bar--style1 span {
  background-color: var(--brand-color, #ddaf3d) !important;
}

/* Mobile nav slide-down panel: dark themed */
@media (max-width: 991px) {
  .menu {
    background: #1C1B1B !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 2px solid rgba(221, 175, 61, 0.25) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6) !important;
    z-index: 9999 !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
  }

  .menu li a {
    color: #E2E8F0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 12px 24px !important;
    font-size: 0.95rem !important;
  }

  .menu li a:hover {
    color: var(--brand-color, #ddaf3d) !important;
    background: rgba(221, 175, 61, 0.08) !important;
  }

  .menu > li.active > a {
    color: var(--brand-color, #ddaf3d) !important;
  }

  /* Mobile submenu indent */
  .menu li .submenu {
    padding-left: 16px !important;
    background: #161515 !important;
    display: none;
  }

  .menu li .submenu li a {
    color: #CBD5E1 !important;
    font-size: 0.88rem !important;
    padding: 10px 28px !important;
  }

  /* Mega menu on mobile: show as block list */
  .mega-menu {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: #161515 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 16px !important;
    display: none;
  }

  .mega-grid {
    display: block !important;
  }

  .mega-grid > div > a {
    display: block !important;
    padding: 8px 14px !important;
    color: #CBD5E1 !important;
    font-size: 0.875rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
  }

  .mega-grid > div > a:hover {
    color: var(--brand-color, #ddaf3d) !important;
    background: rgba(221, 175, 61, 0.07) !important;
  }

  .mega-note {
    display: none !important;
  }

  /* Show submenu/mega-menu when parent li has .open */
  .menu li.open > .submenu,
  .menu li.open > .mega-menu {
    display: block !important;
  }

  /* Dropdown chevron arrow on mobile */
  .menu-item-has-children > a::after {
    float: right;
    transition: transform 0.3s ease;
  }

  .menu li.open > a::after {
    transform: rotate(180deg);
  }

  /* Hide "Get Free Quote" button on small mobile */
  .header-btn {
    display: none !important;
  }

  /* Ensure header-wrapper stacks logo + hamburger properly */
  .header-wrapper {
    padding-block: 16px !important;
    position: relative !important;
  }
}

/* Extra small screens */
@media (max-width: 575px) {
  .header-bar {
    width: 22px !important;
    height: 18px !important;
  }

  .logo img {
    max-height: 46px !important;
  }
}

/* Make header-action visible + flex on all screens */
.header-action {
  display: flex;
  align-items: center;
}

/* Ensure header-wrapper is flex row */
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}



/* 1.1 Vertical Floating Motion (Used for floating badges, cards & shapes) */
@-webkit-keyframes floating {
  0% {
    transform: translateY(30px);
  }
  100% {
    transform: translateY(0px);
  }
}
@-moz-keyframes floating {
  0% {
    transform: translateY(30px);
  }
  100% {
    transform: translateY(0px);
  }
}
@keyframes floating {
  0% {
    transform: translateY(30px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* 1.2 Horizontal Drifting Motion (Used for floating shapes & marine elements) */
@-webkit-keyframes left-right {
  0% {
    transform: translateX(30px);
  }
  100% {
    transform: translateX(0px);
  }
}
@-moz-keyframes left-right {
  0% {
    transform: translateX(30px);
  }
  100% {
    transform: translateX(0px);
  }
}
@keyframes left-right {
  0% {
    transform: translateX(30px);
  }
  100% {
    transform: translateX(0px);
  }
}

/* 1.3 360-Degree Continuous Rotation (Used for compass, gears & backdrop shapes) */
@-webkit-keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}
@-moz-keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}
@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

/* 1.4 3D Flip Rotation on X-Axis */
@-webkit-keyframes rotateX {
  to {
    transform: rotateX(360deg);
  }
}
@-moz-keyframes rotateX {
  to {
    transform: rotateX(360deg);
  }
}
@keyframes rotateX {
  to {
    transform: rotateX(360deg);
  }
}

/* 1.5 3D Flip Rotation on Y-Axis */
@-webkit-keyframes rotateY {
  to {
    transform: rotateY(360deg);
  }
}
@-moz-keyframes rotateY {
  to {
    transform: rotateY(360deg);
  }
}
@keyframes rotateY {
  to {
    transform: rotateY(360deg);
  }
}

/* 1.6 2D Tilt / Roll Rotation on Z-Axis */
@-webkit-keyframes rotateZ {
  to {
    transform: rotateZ(360deg);
  }
}
@-moz-keyframes rotateZ {
  to {
    transform: rotateZ(360deg);
  }
}
@keyframes rotateZ {
  to {
    transform: rotateZ(360deg);
  }
}

/* 1.7 Pulse Zoom Animation */
@-webkit-keyframes zoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0.8);
  }
}
@-moz-keyframes zoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0.8);
  }
}
@keyframes zoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0.8);
  }
}

/* 1.8 Smooth Fade In / Out */
@-webkit-keyframes fade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* 1.9 Multi-step Light Pulse / Shimmer Effect */
@-webkit-keyframes light {
  10%, 90% {
    opacity: 0.5;
  }
  20%, 80% {
    opacity: 0.7;
  }
  30%, 50%, 70% {
    opacity: 0.9;
  }
  40%, 60% {
    opacity: 1;
  }
}
@keyframes light {
  10%, 90% {
    opacity: 0.5;
  }
  20%, 80% {
    opacity: 0.7;
  }
  30%, 50%, 70% {
    opacity: 0.9;
  }
  40%, 60% {
    opacity: 1;
  }
}

/* 1.10 Entrance Rise (fadeInUp) - Used for sticky nav & reveal sections */
@-webkit-keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* 1.11 Entrance Drop (fadeInDown) - Used for sticky header arrival */
@-webkit-keyframes fadeInDown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* 1.12 Track Glide (santa-ride) - Used for horizon line / banner ship movement */
@-webkit-keyframes santa-ride {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}
@keyframes santa-ride {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}


/* ==========================================================================
   2. BUTTON SHINE & INTERACTION EFFECTS
   ========================================================================== */

/* Base button properties */
.trk-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body, "Nunito Sans", sans-serif);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 1rem 1.875rem;
  border-radius: 8px;
  text-decoration: none;
  text-transform: capitalize;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s ease-out;
}

/* 2.1 Metallic / Glass Shine Sweep on Hover */
.trk-btn::after {
  position: absolute;
  content: "";
  top: -50px;
  left: -75px;
  width: 50px;
  height: 155px;
  background: #ffffff;
  opacity: 0.22;
  transform: rotate(35deg);
  transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
  z-index: -1;
}

.trk-btn:hover::after,
.trk-btn.active::after {
  left: 120%;
  transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
}

/* 2.2 Button Hover Lift */
.trk-btn:hover,
.trk-btn.active {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(221, 175, 61, 0.25);
}

/* Primary Button */
.trk-btn--primary1 {
  background-color: var(--brand-color, #ddaf3d);
  color: #ffffff;
}

.trk-btn--primary1:hover {
  color: #ffffff;
}

/* Outline Button */
.trk-btn--outline {
  background-color: transparent;
  border-color: var(--brand-color, #ddaf3d);
  color: var(--title-color, #ffffff);
}

.trk-btn--outline:hover {
  background-color: var(--brand-color, #ddaf3d);
  color: #121111;
}

/* 2.3 Arrow Icon Rotation Effect on Hover */
.trk-btn--arrow span svg,
.trk-btn--arrow span i {
  display: inline-block;
  margin-inline-start: 8px;
  font-size: 0.95rem;
  transform: rotate(-45deg);
  transition: transform 0.3s ease-out;
}

.trk-btn--arrow:hover span svg,
.trk-btn--arrow:hover span i {
  transform: rotate(0deg);
}

/* Arrow Slide Effect */
.trk-btn--primary2:hover svg,
.trk-btn--primary2:hover i {
  transform: translateX(5px);
}


/* ==========================================================================
   3. FLOATING DECORATIVE SHAPES (Banner, Hero, About Sections)
   ========================================================================== */

.floating-shape {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* Shape 1: 3D RotateY oscillation */
.banner__shape-item--1 {
  position: absolute;
  top: 5%;
  left: 6%;
  animation: rotateY 3s cubic-bezier(0.41, 0.15, 0.64, 0.86) infinite alternate;
}

/* Shape 2: 360-degree continuous spin */
.banner__shape-item--2 {
  position: absolute;
  top: 7%;
  left: 21%;
  animation: rotate 3s cubic-bezier(0.41, 0.15, 0.64, 0.86) infinite alternate;
}

/* Shape 3: Horizontal Drifting */
.banner__shape-item--3 {
  position: absolute;
  top: 12%;
  left: 18%;
  animation: left-right 3s cubic-bezier(0.41, 0.15, 0.64, 0.86) infinite alternate;
}

/* Shape 4: 3D Flip */
.banner__shape-item--4 {
  position: absolute;
  bottom: 20%;
  left: 52%;
  animation: rotateY 3s cubic-bezier(0.41, 0.15, 0.64, 0.86) infinite alternate;
}

/* Generic floating container badge (e.g. "24/7 Available" or "ISO 9001") */
.floating-badge {
  animation: floating 3.5s ease-in-out infinite alternate;
}


/* ==========================================================================
   4. STICKY HEADER & NAVBAR REVEAL
   ========================================================================== */

.header-section {
  position: relative;
  width: 100%;
  z-index: 999;
  transition: all 0.4s ease-in-out;
}

.header-fixed {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: rgba(18, 17, 17, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  animation: fadeInDown 0.5s ease;
}

[data-bs-theme="light"] .header-fixed {
  background-color: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 4px 20px rgba(2, 23, 56, 0.08);
}


/* ==========================================================================
   5. SCROLL TO TOP FLOATING BUTTON
   ========================================================================== */

.scrollToTop {
  position: fixed;
  right: 5%;
  bottom: -30%;
  opacity: 0;
  z-index: 99;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  border-radius: 6px;
  background-color: var(--brand-color, #ddaf3d);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.5s ease;
}

.scrollToTop.visible {
  bottom: 7%;
  opacity: 1;
}

.scrollToTop:hover {
  transform: translateY(-5px);
  background-color: var(--brand-color, #ddaf3d);
  color: #ffffff;
}


/* ==========================================================================
   6. CARDS & GRID HOVER MICRO-INTERACTIONS
   ========================================================================== */

/* Service Card Hover Effect */
.service__item {
  position: relative;
  background: var(--secondary-color, #201F1F);
  border: 1px solid var(--border-color, #252424);
  border-radius: 12px;
  padding: 30px 25px;
  transition: all 0.35s ease;
  overflow: hidden;
}

/* ==========================================================================
   6. SERVICE CARD & DETAIL STYLING (MATCHING SS1, SS2 & SS3)
   ========================================================================== */

/* Service Card with Oval Backdrop matching SS1 & SS2 */
.service__item {
  background: #201F1F !important;
  border: 1px solid #2B2A2A !important;
  border-radius: 18px !important;
  padding: 35px 20px 28px !important;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service__item:hover {
  transform: translateY(-8px);
  border-color: var(--brand-color, #ddaf3d) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.service__thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

/* The signature elliptical / oval backdrop from SS1 and SS2 */
.service__thumb::before {
  content: "";
  position: absolute;
  width: 250px;
  max-width: 90%;
  height: 160px;
  background: #282727;
  border-radius: 50%;
  z-index: 1;
  transition: background 0.35s ease, transform 0.35s ease;
}

.service__item:hover .service__thumb::before {
  background: #302f2f;
  transform: scale(1.04);
}

.service__thumb-inner {
  position: relative;
  z-index: 2;
  width: 210px;
  max-width: 85%;
  height: 130px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.service__thumb-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service__item:hover .service__thumb-inner img {
  transform: scale(1.09);
}

.service__content h5 {
  margin-bottom: 0;
}

.service__content h5 a {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.service__item:hover .service__content h5 a {
  color: var(--brand-color, #ddaf3d);
}

/* Page Header Breadcrumb Banner (SS3 & African Ports) */
.page-header {
  position: relative;
  padding: 100px 0 70px;
  background-color: var(--secondary-color, #181717);
  border-bottom: 1px solid #242323;
  overflow: hidden;
}

.page-header__content h1,
.page-header__content h2 {
  font-size: calc(2rem + 1vw);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.page-header .breadcrumb-item a {
  color: var(--brand-color, #ddaf3d);
  text-decoration: none;
  font-weight: 600;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  content: "/" !important;
  color: var(--brand-color, #ddaf3d) !important;
  padding: 0 8px;
}

.page-header .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.page-header__shape {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  pointer-events: none;
}

.page-header__shape img {
  width: 55px;
  animation: rotate 4s cubic-bezier(0.41, 0.15, 0.64, 0.86) infinite alternate;
}

/* SS3 Service Detail 2-Column Layout */
.service-details {
  background-color: var(--body-color, #121111);
  padding-block: 90px;
}

.service-sidebar-card {
  background: #201F1F;
  border: 1px solid #2B2A2A;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-sidebar-header {
  padding: 20px 24px;
  border-bottom: 1px solid #2B2A2A;
}

.service-sidebar-header h5 {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0;
}

.service-sidebar-menu {
  list-style: none;
  padding: 12px 0;
  margin: 0;
}

.service-sidebar-menu li a {
  display: block;
  padding: 14px 24px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
}

.service-sidebar-menu li a:hover {
  color: var(--brand-color, #ddaf3d);
  background: rgba(221, 175, 61, 0.05);
  padding-left: 28px;
}

.service-sidebar-menu li.active a {
  color: var(--brand-color, #ddaf3d);
  border-left-color: var(--brand-color, #ddaf3d);
  background: rgba(221, 175, 61, 0.08);
}

/* Service Detail Right Main Card */
.service-detail-main {
  background: #201F1F;
  border: 1px solid #2B2A2A;
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.service-detail-img-wrap {
  width: 100%;
  max-height: 440px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 35px;
  border: 1px solid #333232;
}

.service-detail-img-wrap img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.service-detail-main h2 {
  font-size: calc(1.5rem + 0.6vw);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 22px;
  line-height: 1.35;
}

.service-detail-main p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-feature-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.service-feature-list li {
  color: #CBD5E1;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-feature-list li i {
  color: var(--brand-color, #ddaf3d);
  font-size: 0.9rem;
}


/* ==========================================================================
   7. SWIPER NAVIGATION & SLIDER BUTTON ANIMATIONS
   ========================================================================== */

.swiper-nav {
  display: flex;
  gap: 15px;
}

.swiper-nav__btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  border: 1px solid rgba(221, 175, 61, 0.3);
  background-color: var(--secondary-color, #201F1F);
  color: var(--brand-color, #ddaf3d);
  cursor: pointer;
  transition: all 0.3s ease-out;
}

.swiper-nav__btn:hover,
.swiper-nav__btn.active {
  background-color: var(--brand-color, #ddaf3d);
  border-color: var(--brand-color, #ddaf3d);
  color: #121111;
  transform: scale(1.06);
}


/* ==========================================================================
   8. PRELOADER ANIMATION
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  background-color: var(--body-color, #121111);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

.preloader__spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(221, 175, 61, 0.2);
  border-top-color: var(--brand-color, #ddaf3d);
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
}


/* ==========================================================================
   9. SERVICES SCROLLABLE DROPDOWN
   ========================================================================== */

.menu li .submenu.services-submenu {
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  width: 290px;
  background: #181717;
  border: 1px solid #2D2C2C;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  scrollbar-width: thin;
  scrollbar-color: var(--brand-color, #ddaf3d) #121111;
}

.menu li .submenu.services-submenu::-webkit-scrollbar {
  width: 5px;
}

.menu li .submenu.services-submenu::-webkit-scrollbar-track {
  background: #121111;
}

.menu li .submenu.services-submenu::-webkit-scrollbar-thumb {
  background: var(--brand-color, #ddaf3d);
  border-radius: 4px;
}

.menu li .submenu.services-submenu li a {
  color: #CBD5E1;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.22s ease;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu li .submenu.services-submenu li a:hover,
.menu li .submenu.services-submenu li a.active {
  background: rgba(221, 175, 61, 0.12);
  color: var(--brand-color, #ddaf3d) !important;
  padding-left: 22px;
}


/* ==========================================================================
   10. PORTS 49-PORTS MEGA MENU DROPDOWN (Matches Screenshot)
   ========================================================================== */

.menu > li.has-mega-menu {
  position: static;
}

.header-bottom .header-wrapper {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(25px);
  width: min(95vw, 1140px);
  max-height: min(75vh, 480px);
  background: #161515;
  border: 1px solid #2D2C2C;
  border-radius: 14px;
  padding: 1.25rem 1.6rem 0.95rem;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.75), 0 0 35px rgba(221, 175, 61, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  box-sizing: border-box;
}

.mega-menu::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}

.menu > li.has-mega-menu:hover > .mega-menu {
  transform: translateX(-50%) translateY(12px);
  opacity: 1;
  visibility: visible;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.15rem 1.5rem;
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-color, #ddaf3d) #121111;
}

.mega-grid::-webkit-scrollbar {
  width: 5px;
}

.mega-grid::-webkit-scrollbar-track {
  background: #121111;
  border-radius: 4px;
}

.mega-grid::-webkit-scrollbar-thumb {
  background: var(--brand-color, #ddaf3d);
  border-radius: 4px;
}

.mega-grid::-webkit-scrollbar-thumb:hover {
  background: #e6b840;
}

.mega-grid > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mega-grid a {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  color: #CBD5E1;
  padding: 0.38rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 4px;
  transition: color 0.18s ease, background-color 0.18s ease, padding-left 0.18s ease;
  text-decoration: none;
}

.mega-grid a:hover {
  color: var(--brand-color, #ddaf3d);
  background: rgba(221, 175, 61, 0.1);
  padding-left: 0.85rem;
}

.mega-note {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  margin-bottom: 0;
}


/* ==========================================================================
   11. PORT DETAIL PAGE & PROSE CONTENT STYLING
   ========================================================================== */

.port-prose {
  color: #CBD5E1;
  font-size: 1rem;
  line-height: 1.7;
}

.port-prose h2 {
  font-size: 1.45rem;
  color: #FFFFFF;
  margin-top: 2.2rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #2B2A2A;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.port-prose h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 1.25rem;
  background: var(--brand-color, #ddaf3d);
  border-radius: 3px;
}

.port-prose h3 {
  font-size: 1.2rem;
  color: #FFFFFF;
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.port-prose p {
  margin-bottom: 1.15rem;
  color: #CBD5E1;
}

.port-prose ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 16px;
}

.port-prose ul li {
  position: relative;
  padding-left: 1.4rem;
  color: #E2E8F0;
  font-size: 0.94rem;
}

.port-prose ul li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--brand-color, #ddaf3d);
  font-size: 0.85rem;
}

.port-prose strong {
  color: #FFFFFF;
}

/* Port Sidebar Card */
.port-sidebar-card {
  background: #1C1B1B;
  border: 1px solid #2B2A2A;
  border-radius: 14px;
  padding: 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.port-sidebar-card h5 {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #2B2A2A;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.port-sidebar-card h5 i {
  color: var(--brand-color, #ddaf3d);
}

.port-sidebar-card p {
  color: #94A3B8;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.port-quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.port-quick-links li {
  margin-bottom: 0.5rem;
}

.port-quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #141313;
  border: 1px solid #2B2A2A;
  border-radius: 6px;
  color: #CBD5E1;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.port-quick-links a:hover {
  border-color: var(--brand-color, #ddaf3d);
  color: var(--brand-color, #ddaf3d);
  padding-left: 16px;
}

/* Port Bottom CTA Card */
.port-cta-card {
  background: linear-gradient(135deg, #1C1B1B 0%, #242222 100%);
  border: 1px solid #333232;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.port-cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-color, #ddaf3d), #f5d77f, var(--brand-color, #ddaf3d));
}

.port-cta-card h3 {
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.port-cta-card p {
  color: #94A3B8;
  font-size: 0.96rem;
  margin-bottom: 0;
}

/* ==========================================================================
   11. STANDARDIZED FOOTER STYLING (Uniform Across All Pages)
   ========================================================================== */
.footer {
  background-color: #121111 !important;
  border-top: 1px solid #222121;
  position: relative;
  overflow: hidden;
  padding-top: 75px;
  padding-bottom: 30px;
}

.footer__about-logo {
  display: inline-block;
  margin-bottom: 18px;
}

.footer__about-logo img {
  max-height: 56px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  display: block;
}

.footer__about-moto {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 480px;
}

.footer__links-tittle h6 {
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 22px;
  position: relative;
}

.footer__links-tittle h6::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--brand-color, #ddaf3d);
}

.footer__linklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__linklist-item {
  margin-bottom: 12px;
}

.footer__linklist-item a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer__linklist-item a:hover {
  color: var(--brand-color, #ddaf3d) !important;
  transform: translateX(4px);
}

.footer__bottom {
  border-top: 1px solid #201F1F;
  margin-top: 50px;
  padding-top: 25px;
}

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

.footer__end-copyright p {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.92rem;
  margin-bottom: 0;
  text-align: center;
}

.footer__end-copyright a {
  color: var(--brand-color, #ddaf3d) !important;
  text-decoration: none;
  font-weight: 600;
}

.footer__end-copyright a:hover {
  text-decoration: underline;
}

