  /* TFE Landing Page Overrides - Crimson Red Accent & Dark Theme */

  :root {
    --tfe-primary: #DC143C; /* Crimson Red */
    --tfe-primary-rgb: 220, 20, 60;
    --tfe-dark: #000000; /* Pure black */
    --tfe-dark-light: #000000; /* Pure black */
    --tfe-dark-lighter: #000000; /* Pure black */
    --tfe-text-white: #ffffff;
    --tfe-text-white-opacity-70: rgba(255, 255, 255, 0.7);
    --tfe-text-white-opacity-50: rgba(255, 255, 255, 0.5);
  }

  /* Override Bootstrap primary color globally */
  .bg-primary,
  .btn-primary,
  .badge.text-bg-primary,
  .text-primary {
    background-color: var(--tfe-primary) !important;
    color: var(--tfe-dark) !important;
  }

  .btn-primary {
    background-color: var(--tfe-primary) !important;
    border-color: var(--tfe-primary) !important;
    color: var(--tfe-dark) !important;
  }

  .btn-primary:hover {
    background-color: #b8122f !important;
    border-color: #b8122f !important;
  }

  .text-primary {
    color: var(--tfe-primary) !important;
  }

  .border-primary {
    border-color: var(--tfe-primary) !important;
  }

  /* Custom Pill Button */
  .btn-pill-crimson {
    background-color: white;
    color: var(--tfe-primary); /* Crimson */
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border: 2px solid white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-pill-crimson:hover {
    background-color: var(--tfe-primary);
    color: white;
    border-color: var(--tfe-primary);
  }

  /* Hamburger specific adjustments */
  .navbar-toggler.btn-pill-crimson {
    padding: 0.5rem 1rem; /* Adjust for icon */
    border-radius: 50px;
  }

  .navbar-toggler.btn-pill-crimson .menu-icon {
    color: var(--tfe-primary);
    transition: color 0.3s ease;
  }

  .navbar-toggler.btn-pill-crimson:hover .menu-icon {
    color: white;
  }



  /* Dark Theme Overrides */
  .tfe-dark-theme {
    background-color: var(--tfe-dark) !important;
    color: var(--tfe-text-white) !important;
  }

  .tfe-dark-theme .bg-dark,
  .bg-dark {
    background-color: var(--tfe-dark) !important;
  }

  .tfe-dark-theme .bg-light-gray,
  .bg-light-gray {
    background-color: var(--tfe-dark) !important;
  }

  /* Header Styles - Transparent to show hero */
  .tfe-header {
    background-color: transparent !important;
    backdrop-filter: blur(0px);
    transition: all 0.3s ease;
    z-index: 1000;
  }

  .tfe-header.fixed-header {
    background-color: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  }

  .tfe-header .logo img {
    filter: brightness(0) invert(1);
    max-height: 50px;
    transition: transform 0.3s ease;
  }

  .tfe-header .logo img:hover {
    transform: scale(1.05);
  }

  .tfe-header .header-wrapper {
    padding: 1rem 0;
  }

  /* Hero extends to top - full viewport */
  .tfe-hero-slider {
    position: relative !important;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    min-height: 100vh;
    min-height: 100dvh; /* Fix for Safari address bar */
    /* Create stacking context to isolate z-index layers */
    isolation: isolate;
    z-index: 0;
  }

  .page-wrapper {
    margin-top: 0;
    padding-top: 0;
  }

  .banner-section {
    margin-top: 0 !important;
    padding-top: 120px !important; /* Account for fixed header */
    min-height: 100vh !important;
    min-height: 100dvh !important; /* Fix for Safari address bar */
  }

  /* Remove template's ::before overlay that conflicts with our slider */
  .banner-section.tfe-hero-slider::before {
    display: none !important;
    content: none !important;
    background: none !important;
    z-index: -1 !important;
  }

  /* Ensure hero content is visible above header and slider */
  .banner-section.tfe-hero-slider .container {
    z-index: 10 !important;
    position: relative !important;
    isolation: isolate;
  }

  /* Header positioning - overlay on hero */
  .tfe-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  /* Hero Slider Styles - Already defined above */

  .stadium-slider-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh; /* Fix for Safari address bar */
    min-width: 100vw;
    z-index: 0 !important;
    overflow: hidden;
    /* Ensure it's behind content but above section background */
    isolation: isolate;
  }

  .stadium-slider {
    width: 100%;
    height: 100%;
  }

  .stadium-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh; /* Fix for Safari address bar */
    min-width: 100vw;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: none;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    --hover-translate-x: 0px;
    --hover-translate-y: 0px;
    --hover-scale: 1;
  }

  /* AUTOMATIC SUBTLE PAN ANIMATION for active slides */
  /* Use cover + scale transform to ensure full viewport coverage for all image ratios */
  .stadium-slide.active {
    display: block;
    opacity: 1;
    z-index: 1;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    transform: scale(1.1); /* Scale up to allow pan room without showing edges */
    animation: subtle-pan-default 20s ease-in-out infinite alternate;
  }

  /* Mobile: ensure full coverage with no edges visible */
  @media (max-width: 991.98px) {
    .stadium-slide,
    .stadium-slide.active {
      background-size: cover !important;
      background-position: center center !important;
      background-repeat: no-repeat !important;
      animation: none !important; /* Disable pan on mobile for performance */
    }
  }

  /* Different pan directions based on slide index to avoid monotony */
  .stadium-slide.active[data-slide-index="0"] { animation-name: subtle-pan-left-right; }
  .stadium-slide.active[data-slide-index="1"] { animation-name: subtle-pan-up-down; }
  .stadium-slide.active[data-slide-index="2"] { animation-name: subtle-pan-right-left; }
  .stadium-slide.active[data-slide-index="3"] { animation-name: subtle-pan-diagonal-1; }
  .stadium-slide.active[data-slide-index="4"] { animation-name: subtle-pan-down-up; }
  .stadium-slide.active[data-slide-index="5"] { animation-name: subtle-pan-diagonal-2; }
  .stadium-slide.active[data-slide-index="6"] { animation-name: subtle-pan-left-right; }
  .stadium-slide.active[data-slide-index="7"] { animation-name: subtle-pan-up-down; }
  .stadium-slide.active[data-slide-index="8"] { animation-name: subtle-pan-right-left; }
  .stadium-slide.active[data-slide-index="9"] { animation-name: subtle-pan-diagonal-1; }
  .stadium-slide.active[data-slide-index="10"] { animation-name: subtle-pan-down-up; }
  .stadium-slide.active[data-slide-index="11"] { animation-name: subtle-pan-diagonal-2; }
  .stadium-slide.active[data-slide-index="12"] { animation-name: subtle-pan-left-right; }
  .stadium-slide.active[data-slide-index="13"] { animation-name: subtle-pan-up-down; }
  .stadium-slide.active[data-slide-index="14"] { animation-name: subtle-pan-right-left; }
  .stadium-slide.active[data-slide-index="15"] { animation-name: subtle-pan-diagonal-1; }

  /* Subtle pan keyframe animations - slow and gentle */
  @keyframes subtle-pan-default {
    0% { background-position: 48% 48%; }
    100% { background-position: 52% 52%; }
  }
  
  @keyframes subtle-pan-left-right {
    0% { background-position: 45% 50%; }
    100% { background-position: 55% 50%; }
  }
  
  @keyframes subtle-pan-right-left {
    0% { background-position: 55% 50%; }
    100% { background-position: 45% 50%; }
  }
  
  @keyframes subtle-pan-up-down {
    0% { background-position: 50% 45%; }
    100% { background-position: 50% 55%; }
  }
  
  @keyframes subtle-pan-down-up {
    0% { background-position: 50% 55%; }
    100% { background-position: 50% 45%; }
  }
  
  @keyframes subtle-pan-diagonal-1 {
    0% { background-position: 45% 45%; }
    100% { background-position: 55% 55%; }
  }
  
  @keyframes subtle-pan-diagonal-2 {
    0% { background-position: 55% 45%; }
    100% { background-position: 45% 55%; }
  }

  .stadium-slide.slide-in {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    transition: opacity 1s ease-in-out;
  }

  .stadium-slide.slide-out {
    opacity: 0;
    transform: scale(1);
    z-index: 0;
  }

  .stadium-slide.transitioning {
    opacity: 0;
    z-index: 1;
  }

  .stadium-slide.transitioning-in {
    opacity: 1;
    z-index: 2;
    transition: opacity 1s ease-in-out;
  }

  /* Stat card hover - lift only, no background movement */
  .stadium-stat-card.hover-active {
    transform: translateY(-8px) scale(1.05);
    transition: transform 0.3s ease-out;
  }

  /* Tab pane states */
  .tab-pane.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .tab-pane:not(.active) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  /* Animation delay classes for stat cards */
  .stadium-stat-card[data-animation-delay] {
    animation-delay: var(--animation-delay);
  }

  /* Background images from data attributes */
  .stadium-slide[data-bg-image][data-bg-loaded="true"] {
    background-image: var(--bg-image-url);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

  /* News image styles */
  .news-image-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  /* Interactive hover effects on stat cards */
  .stadium-stat-card {
    background: rgba(220, 20, 60, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 12px;
    padding: 1rem;
    min-width: 150px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
  }

  .stadium-stat-card:hover {
    background: rgba(220, 20, 60, 0.4);
    border-color: var(--tfe-primary);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.5);
    z-index: 10;
    position: relative;
  }

  .stadium-stat-card .stat-icon {
    font-size: 2rem;
    color: var(--tfe-primary);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
  }

  .stadium-stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(5deg);
  }

  .stadium-stat-card.animate-on-show {
    animation: floatUp 0.6s ease-out forwards;
    opacity: 0;
  }

  /* Enhanced AOS animations */
  [data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  [data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
  }

  [data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  [data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
  }

  [data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  [data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
  }

  .stadium-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.3), rgba(10, 10, 10, 0.8));
    z-index: 1;
    pointer-events: none !important; /* Allow clicks to pass through */
  }

  .stadium-slide .container {
    position: relative;
    z-index: 10 !important;
    padding-top: 1rem; /* Header height (logo + padding + border) + original padding */
    padding-bottom: 6rem !important; /* Space above slider dots */
    pointer-events: auto !important;
  }

  .stadium-slide .container > div {
    position: relative;
    z-index: 11 !important;
    pointer-events: auto !important;
  }

  .stadium-stat-card {
    background: rgba(220, 20, 60, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 12px;
    padding: 1rem;
    min-width: 150px;
    text-align: center;
  }

  .stadium-stat-card .stat-icon {
    font-size: 2rem;
    color: var(--tfe-primary);
    margin-bottom: 0.5rem;
  }

  .stadium-stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--tfe-text-white-opacity-70);
    margin-bottom: 0.25rem;
  }

  .stadium-stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tfe-text-white);
  }

  .stadium-attribution {
    z-index: 3;
    right: 0;
    left: auto;
  }

  /* Stadium Slider Dots Navigation */
  .stadium-slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    pointer-events: none;
    z-index: 100 !important;
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
  }

  /* DESKTOP: Hero Content Positioning - position at start, not end */
  .stadium-slide .container > .d-flex.flex-column.gap-4.pb-8,
  .stadium-slide .container > .d-flex.justify-content-end {
    justify-content: center !important;
    min-height: auto !important; /* Don't force full viewport height */
    padding-top: 2rem;
    padding-left: 1rem;
  }

  /* Ensure the stat cards and CTA button area has sufficient space */
  .stadium-slide .col-xl-8 > div[data-aos] {
    margin-bottom: 0;
  }

  .stadium-dot-wrapper {
    pointer-events: auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
  }

  /* Mobile: Hide info cards */
  @media (max-width: 991px) {
    .stadium-stat-card,
    .stadium-slide .stadium-stat-card {
      display: none !important;
    }
    
    /* Mobile: Carousel dots logic */
    .stadium-dot-wrapper.mobile-hidden {
      display: none !important;
    }

    /* Ensure button is not covered by dots */
    .stadium-slide .container > .d-flex {
      padding-bottom: 8rem !important;
    }
  }

  /* Dot states */
  .stadium-dot {
    position: relative;
    z-index: 15;
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 0;
    border-radius: 50%;
    padding: 0;
    margin-right: 0.5rem;
  }

  .stadium-dot.active {
    display: none;
  }

  .stadium-dot.inactive {
    display: block;
  }

  .stadium-dot:hover {
    transform: scale(1.2);
    background-color: rgba(220, 20, 60, 0.8) !important;
  }

  .stadium-dot-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: rgba(235, 235, 235, 0.95);
    color: rgba(220, 20, 60, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    margin-bottom: 8px;
    pointer-events: none;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }

  .stadium-dot-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
  }

 
  /* Active badge - pill-shaped, replaces dot */
  .stadium-dot-active-badge {
    display: none;
    background: rgba(220, 20, 60, 1);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin: 0 0.25rem;
    line-height: 1;
  }

  .stadium-dot-active-badge.visible {
    display: block;
  }

  /* Stats & Facts Section */
  .stats-facts.bg-dark {
    background-color: var(--tfe-dark) !important;
  }

  /* Featured Projects / Features */
  .featured-projects.bg-dark {
    background-color: var(--tfe-dark) !important;
  }

  .featured-projects-slider {
    padding: 0 !important;
    margin-top: 2rem;
  }

  .featured-projects-slider .owl-carousel {
    padding: 0;
  }

  .featured-projects-slider .owl-item {
    padding: 0 15px;
  }

  .featured-projects-slider .item {
    margin: 0;
    padding: 0;
  }

  .portfolio-details h3 {
    color: var(--tfe-text-white) !important;
  }

  /* Services Section */
  .services.bg-dark {
    background-color: var(--tfe-dark) !important;
  }

  .services .nav-link.active {
    color: var(--tfe-primary) !important;
  }

  .services .nav-item:last-child .nav-link,
  .services .nav-item:last-child .row {
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .services .nav-item .row {
    text-align: left;
  }

  .services .nav-item .col-lg-6 {
    text-align: left;
  }

  /* News Section */
  .Recent-news.bg-dark {
    background-color: var(--tfe-dark) !important;
  }

  .news-card {
    background-color: var(--tfe-dark);
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
  }

  .news-card:hover {
    border-color: var(--tfe-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2);
  }

  .reminder-btn {
    transition: all 0.3s ease;
  }

  .reminder-btn:hover {
    transform: scale(1.05);
  }

  .reminder-btn.btn-success {
    cursor: default;
  }

  .news-card .alert-sm {
    font-size: 0.75rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .news-card .news-title {
    color: var(--tfe-text-white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
  }

  .news-card .news-excerpt {
    color: var(--tfe-text-white-opacity-70);
    margin-bottom: 1rem;
  }

  .news-card .news-date {
    color: var(--tfe-primary);
    font-size: 0.875rem;
    font-weight: 600;
  }

  .news-card .news-category {
    display: inline-block;
    background-color: var(--tfe-primary);
    color: var(--tfe-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
  }

  /* Contact Form */
  .get-in-touch.bg-dark {
    background-color: var(--tfe-dark) !important;
  }

  .form-control {
    background-color: transparent !important;
    color: var(--tfe-text-white) !important;
  }

  .form-control::placeholder {
    color: var(--tfe-text-white-opacity-50) !important;
  }

  .form-control:focus {
    background-color: transparent !important;
    color: var(--tfe-text-white) !important;
    border-color: var(--tfe-primary) !important;
  }

  /* Footer */
  .footer.bg-dark {
    background-color: var(--tfe-dark) !important;
    border-top: 1px solid rgba(220, 20, 60, 0.2);
  }

  /* Buttons */
  .btn {
    transition: all 0.3s ease;
  }

  .btn:hover {
    transform: translateY(-2px);
  }

  /* Smooth Scroll */
  .smoothscroll {
    cursor: pointer;
  }

  /* Animations */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes slideFadeIn {
    from {
      opacity: 0;
      transform: scale(1.05);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  @keyframes subtleZoom {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(1.02);
    }
  }

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

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

  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* AOS Animation Enhancements */
  [data-aos] {
    pointer-events: none;
  }

  [data-aos].aos-animate {
    pointer-events: auto;
  }

  /* Portfolio Image Styles */
  .portfolio {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
  }

  .portfolio-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
  }

  .portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .portfolio:hover .portfolio-img {
    aspect-ratio: auto;
    height: calc(100% + 100px);
    transform: translateY(-50px);
    z-index: 2;
  }

  .portfolio:hover .portfolio-img img {
    transform: scale(1.1);
  }

  @media (max-width: 768px) {
    .portfolio:hover .portfolio-img {
      height: calc(100% + 60px);
      transform: translateY(-30px);
    }
  }


  .portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .portfolio:hover .portfolio-img img {
    transform: scale(1.1);
  }

  /* Service Tab Image Styles */
  .services-tab {
    position: relative;
  }

  .services-tab .row {
    align-items: stretch;
    min-height: 100%;
  }

  .services-tab .col-xl-4 {
    display: flex;
    align-items: stretch;
    min-height: 600px;
  }

  .services-tab .col-xl-8 {
    display: flex;
    flex-direction: column;
  }

  .services-tab .tab-content {
    width: 100%;
    height: 100%;
    min-height: 600px;
    position: relative;
    overflow: hidden;
  }

  /* Ensure Bootstrap tab-pane behavior works correctly - only show active pane */
  .services-tab .tab-content .tab-pane:not(.active) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
  }

  .services-tab .tab-content .tab-pane {
    width: 100%;
    height: 100%;
    min-height: 600px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .services-tab .tab-content .tab-pane.active {
    display: block !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .services-tab .tab-pane img {
    width: 100%;
    height: 100%;
    min-height: 600px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s ease;
    display: block;
  }

  .services-tab .tab-pane:hover img {
    transform: scale(1.05);
  }

  @media (max-width: 1199px) {
    .services-tab .col-xl-4 {
      min-height: 400px;
      margin-bottom: 2rem;
    }
  }


  .tfe-logo-img {
    max-height: 50px;
  }

  /* Stats Section - No background image */
  .stats-facts {
    position: relative;
    background-color: var(--tfe-dark) !important;
  }

  .stats-facts .container {
    position: relative;
    z-index: 1;
  }

  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .stadium-stat-card {
      min-width: 120px;
      padding: 0.75rem;
    }
    
    .stadium-stat-card .stat-icon {
      font-size: 1.5rem;
    }
    
    .stadium-stat-card .stat-value {
      font-size: 1.25rem;
    }
  }

  /* Override Bootstrap primary color in CSS variables */
  [data-bs-theme="light"],
  :root {
    --bs-primary: var(--tfe-primary);
    --bs-primary-rgb: var(--tfe-primary-rgb);
  }

  /* Round badge adjustments */
  .round-36 {
    background-color: var(--tfe-primary) !important;
    color: var(--tfe-dark) !important;
  }

  /* Count animation */
  .count {
    display: inline-block;
  }

  /* Loading spinner */
  .spinner-border.text-primary {
    color: var(--tfe-primary) !important;
  }


  /* Stadium Slider Arrow Controls */
  .stadium-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    background: rgba(220, 20, 60, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .stadium-slider-arrow:hover {
    background: rgba(220, 20, 60, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(220, 20, 60, 0.5);
  }

  .stadium-slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
  }

  .stadium-slider-arrow-left {
    left: 2rem;
  }

  .stadium-slider-arrow-right {
    right: 2rem;
  }

  /* Responsive arrow controls */
  @media (max-width: 768px) {
    .stadium-slider-arrow {
      width: 2.5rem;
      height: 2.5rem;
      font-size: 1rem;
    }

    .stadium-slider-arrow-left {
      left: 1rem;
    }

    .stadium-slider-arrow-right {
      right: 1rem;
    }
  }

  .tfe-hero-slider .stadium-slide h1.fs-16 {
    font-size: 4rem !important; /* Adjust as needed */
  }

  .stadium-slide .container {
    padding-left: 3rem !important; /* Add margin-left to hero slide content */
    padding-right: 3rem !important; /* Maintain padding on right */
    padding-top: calc(120px + 2rem) !important; /* Ensure header clearance is maintained */
  }

  @media (max-width: 991.98px) {
    .banner-section {
      padding-top: 110px !important; /* Smaller header on tablet */
    }
    .tfe-hero-slider .stadium-slide h1.fs-16 {
      font-size: 2.5rem !important;
    }
    .stadium-slide .container {
      padding-left: 1.5rem !important;
      padding-right: 1.5rem !important;
      padding-top: calc(110px + 2rem) !important; /* Header height on tablet + padding */
    }
  }

  @media (max-width: 575.98px) {
    .banner-section {
      padding-top: 100px !important; /* Smaller header on mobile */
    }
    .tfe-hero-slider .stadium-slide h1.fs-16 {
      font-size: 2rem !important;
    }
    .stadium-slide .container {
      padding-left: 1rem !important;
      padding-right: 1rem !important;
      padding-top: calc(100px + 1.5rem) !important; /* Header height on mobile + reduced padding */
    }
  }

  /* Crimson Red Menu */
  .tfe-header .navbar-nav {
    background-color: var(--tfe-primary);
  }

  .tfe-header .navbar-nav .nav-link {
    color: var(--tfe-text-white);
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
  }

  .tfe-header .navbar-nav .nav-item.active .nav-link,
  .tfe-header .navbar-nav .nav-link:hover,
  .tfe-header .navbar-nav .nav-link:focus {
    background-color: var(--tfe-text-white);
    color: var(--tfe-dark);
  }

  /* Ensure responsiveness for the menu */
  @media (min-width: 992px) {
    .tfe-header .navbar-nav {
      flex-direction: row;
      background-color: transparent; /* Transparent on desktop */
    }

    .tfe-header .navbar-nav .nav-link {
      padding: 0.5rem 1rem;
    }
  }

  @media (max-width: 991.98px) {
    .tfe-header .navbar-collapse {
      background-color: var(--tfe-primary);
      padding: 1rem;
      border-radius: 0.5rem;
      margin-top: 0.5rem;
    }

    .tfe-header .navbar-nav .nav-link {
      text-align: left;
      width: 100%;
      margin-bottom: 0.5rem;
    }
  }

  /* Mobile Header CTA Button */
  .btn-header-cta-mobile {
    display: none !important; /* Hidden by default, shown only on mobile */
  }

  @media (max-width: 991.98px) {
    /* Show mobile CTA button in header - match menu toggler pill exactly */
    .btn-header-cta-mobile {
      display: inline-flex !important;
      padding: 0.5rem 1rem !important; /* Exact same as navbar-toggler.btn-pill-crimson */
      font-size: inherit !important;
      font-weight: 600 !important;
      white-space: nowrap !important;
      gap: 0.35rem !important;
      border-radius: 50px !important;
      align-items: center !important;
    }

    .btn-header-cta-mobile .btn-text {
      font-size: 0.85rem !important;
    }

    .btn-header-cta-mobile .btn-icon {
      width: 1.25rem !important;
      height: 1.25rem !important;
      font-size: 0.7rem !important;
      flex-shrink: 0 !important;
    }

    /* Ensure proper spacing between button and menu toggler */
    .tfe-header .header-wrapper .d-flex {
      gap: 0.5rem !important;
    }

    /* Hide hero CTA button on mobile */
    .hero-cta-btn {
      display: none !important;
    }

    /* Ensure stadium text is visible and positioned correctly */
    .stadium-slide h1.fs-16 {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      margin-bottom: 0.5rem !important;
      margin-top: 0 !important;
    }

    .stadium-slide p {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      margin-bottom: 0.75rem !important;
    }

    /* TABLET: Position stadium content above slider dots */
    .stadium-slide .container > .d-flex.flex-column.gap-4.pb-8 {
      padding-bottom: 5rem !important; /* Space for dots */
    }

    /* Reduce gap in flex container to compact content */
    .stadium-slide .container > .d-flex.gap-4 {
      gap: 1rem !important;
    }
  }

  /* Extra small mobile adjustments */
  @media (max-width: 575.98px) {
    .btn-header-cta-mobile {
      padding: 0.5rem 0.95rem !important; /* Keep same height as toggler */
      font-size: 0.8rem !important;
      gap: 0.35rem !important;
    }

    .btn-header-cta-mobile .btn-text {
      font-size: 0.8rem !important;
    }

    .btn-header-cta-mobile .btn-icon {
      width: 1rem !important;
      height: 1rem !important;
      font-size: 0.6rem !important;
    }

    /* MOBILE: Position stadium content above slider dots */
    .stadium-slide .container > .d-flex.flex-column.gap-4.pb-8 {
      padding-bottom: 4.5rem !important; /* Space for dots on mobile */
    }

    /* Ensure text remains visible on small screens */
    .stadium-slide h1.fs-16,
    .stadium-slide p {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
    }
  }

