/*--- START OF FILE styles.css ---*/

/* Global Styles */
:root {
    --primary-color: #203340; /* Dark Blue from logo */
    --secondary-color: #dd1e26; /* Red from logo */
    --accent-color: #dd1e26; /* Red for accents */
    --text-color: #203340; /* Dark Blue for text */
    --light-bg: #f8f9fa; /* Light Gray */
    --success-color: #2ecc71; /* Green */
    --danger-color: #dd1e26; /* Red for validation errors */
    --border-radius: 10px;
    --transition-speed: 0.3s;
    --step-icon-size-desktop: 50px;
    --step-icon-size-mobile: 40px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff; /* Ensure a default white background */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 600;
}

p {
    color: #555;
}

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

a:hover {
    color: #2980b9; /* Darker blue */
}

section {
    padding: 60px 0; /* Consistent section padding */
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all var(--transition-speed) ease-in-out;
    background-color: white; /* Default white */
    box-shadow: none; /* Default no shadow */
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98); /* Slightly less transparent */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* Softer shadow */
    backdrop-filter: blur(8px); /* Slightly less blur */
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.brand-slogan {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
    letter-spacing: 1px;
}

.navbar-brand img {
    transition: height var(--transition-speed) ease;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.75rem; /* Adjust padding */
}
.navbar-toggler:focus {
     box-shadow: none; /* Remove focus outline */
}


.nav-link {
    color: var(--primary-color) !important; /* Use primary for default */
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all var(--transition-speed) ease;
    position: relative; /* For underline effect */
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Smooth underline effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all var(--transition-speed) ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 1rem); /* Adjust width */
}


.btn-cta {
    padding: 0.6rem 1.8rem; /* Slightly larger padding */
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2); /* Softer shadow */
    transition: all var(--transition-speed) ease;
    border: none;
    display: inline-flex; /* Align icon and text */
    align-items: center;
    gap: 0.5rem;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.3);
}

/* Hero Section */
.hero-section {
    padding-top: 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-section .container {
    z-index: 2;
}

.hero-section h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 3.2rem; /* Slightly larger */
    line-height: 1.2;
}

.hero-section .lead {
    color: #555;
    font-size: 1.25rem; /* Slightly larger lead text */
}

.hero-image {
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width: 90%; /* Prevent image from being too wide in its column */
    margin: 0 auto; /* Center image in column */
    display: block;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem; /* More space */
    flex-wrap: wrap;
}

/* Benefits Section */
#benefits .card {
    background: #fff;
    border-radius: 18px;
    border: none;
    box-shadow: 0 4px 18px rgba(32, 51, 64, 0.10);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
    padding-top: 2.5rem;
    border-top: 6px solid var(--primary-color);
}
#benefits .card:nth-child(2) {
    border-top: 6px solid var(--secondary-color);
}
#benefits .card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(32, 51, 64, 0.18);
    border-top-width: 8px;
}
#benefits .card-body {
    padding: 2rem 1.5rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
#benefits .card-body i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 8px rgba(32, 51, 64, 0.10);
    border: 3px solid var(--primary-color);
    transition: background 0.25s, border-color 0.25s;
}
#benefits .card:nth-child(2) .card-body i {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}
#benefits .card:hover .card-body i {
    filter: brightness(1.1);
}
#benefits h3 {
    font-size: 1.35rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}
#benefits .card:nth-child(2) h3 {
    color: var(--secondary-color);
}
#benefits .card-body p {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 0;
}

#benefits .list-unstyled {
     margin-bottom: 0; /* Remove default list margin */
}

#benefits .list-unstyled li {
    margin-bottom: 0.5rem;
    color: #555;
}


/* Services Section */
.service-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(32, 51, 64, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(32, 51, 64, 0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-bg), #ffffff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--primary-color);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.service-card:hover .service-icon i {
    color: #ffffff;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    opacity: 0.8;
}

/* Animation for service cards */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
}

/* Formations Section */
.formation-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.formation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.formation-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.formation-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.4;
}

.formation-card p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.formation-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
}

.formation-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Formation Categories */
.formation-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.formation-categories .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.formation-categories .btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.formation-categories .btn:not(.active):hover {
    background-color: rgba(32, 51, 64, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Formation Items */
.formation-item {
    transition: all 0.3s ease;
}

/* Formation Grid Styles */
.formation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .formation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .formation-grid {
        grid-template-columns: 1fr;
    }
}

/* Formation Categories */
.formation-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.formation-categories .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.formation-categories .btn.active {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.formation-categories .btn:hover:not(.active) {
    background-color: rgba(32, 51, 64, 0.1);
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #ecf0f1;
    padding: 40px 0;
}

footer h5 {
    color: #ecf0f1;
    margin-bottom: 1rem;
    font-size: 1.1rem; /* Adjusted size */
}

footer p {
     color: #bdc3c7;
     margin-bottom: 0.5rem;
     font-size: 0.95rem; /* Adjusted size */
}


.social-links a {
    font-size: 1.5rem;
    color: #ecf0f1;
    margin-right: 15px;
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.social-links a:last-child {
    margin-right: 0;
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #bdc3c7;
}


/* Button Styles (Refined Bootstrap overrides) */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    box-shadow: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: #2a4354;
    border-color: #2a4354;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}


/* Responsive Design */
@media (max-width: 991px) {
    .navbar .container {
         padding: 0.5rem 1rem;
    }
    .navbar-brand img {
         height: 50px;
    }
    .hero-section {
        padding-top: 80px;
        min-height: auto;
        text-align: center;
    }

    .hero-section .row {
         flex-direction: column-reverse;
    }

    .hero-section h1 {
        font-size: 2.5rem;
        margin-top: 2rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .hero-image {
         margin-bottom: 2rem;
         max-width: 100%; /* Allow full width in column on mobile */
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
    }
    .hero-cta .btn {
        width: 100%;
        text-align: center;
        justify-content: center; /* Center content in button */
    }

    /* Multi-step form - Mobile adjustments */
    .consultation-wrapper {
        padding: 1.5rem;
    }

    /* Steps Horizontal on Mobile - Circle Only */
    .progress-steps {
        flex-direction: row; /* Horizontal */
        justify-content: space-around; /* Distribute steps horizontally */
        align-items: flex-start; /* Align items to top (icons) */
        gap: 0; /* Remove gap as justify-content handles spacing */
        margin-bottom: 2rem; /* Adjust margin */
    }

    .progress-steps::before {
        display: none; /* Hide connecting line on mobile */
    }

    .step {
        flex-direction: column; /* Stack icon and potential (hidden) text */
        align-items: center; /* Center icon */
        padding: 0;
        flex: 0 1 auto; /* Prevent steps from growing unnecessarily */
        width: auto; /* Allow width to be determined by content (icon) */
    }

    .step-icon {
        width: var(--step-icon-size-mobile); /* Use mobile size */
        height: var(--step-icon-size-mobile);
        margin: 0 0 0.25rem 0; /* Adjust icon margin */
        font-size: 1.2rem;
    }

    .step span {
        display: none; /* Hide step text on mobile */
    }

    .step-form.active {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .step-form h3 {
        font-size: 1.6rem; /* Adjust form heading size */
    }

    .formation-categories .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }
     .formation-categories .btn {
         margin: 5px;
     }

    #formationsCarousel .carousel-control-prev,
    #formationsCarousel .carousel-control-next {
        width: 8%;
    }

     footer .row > div {
         margin-bottom: 1.5rem;
     }
     footer .row > div:last-child {
         margin-bottom: 0;
     }
     footer .text-center.col-12 {
        margin-top: 1rem;
     }
}

@media (max-width: 576px) {
     .hero-section h1 {
         font-size: 2rem;
     }
     .hero-cta .btn {
        font-size: 0.9rem;
     }

     .consultation-wrapper {
        padding: 1rem;
     }

     .step-icon {
        width: var(--step-icon-size-mobile);
        height: var(--step-icon-size-mobile);
        font-size: 1.2rem;
     }

     .step span {
        display: none;
     }

     .step-form h3 {
         font-size: 1.4rem;
     }

     .service-card, .formation-card {
         padding: 1.5rem;
     }

      .formation-details {
         flex-direction: column;
         gap: 5px;
      }
}

/* Formations Grid */
.formations-grid {
    margin-top: 2rem;
}

.formation-item {
    transition: all 0.3s ease;
}

/* Formation Categories */
.formation-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.formation-categories .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.formation-categories .btn.active {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.formation-categories .btn:hover:not(.active) {
    background-color: rgba(32, 51, 64, 0.1);
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .formation-categories .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .formation-categories {
        gap: 0.5rem;
    }
    
    .formation-categories .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Masonry (CSS Columns) for Testimonials */
.testimonial-grid {
    column-count: 3;
    column-gap: 2rem;
}
@media (max-width: 1200px) {
    .testimonial-grid { column-count: 2; }
}
@media (max-width: 768px) {
    .testimonial-grid { column-count: 1; }
}
#testimonials {
    background: linear-gradient(135deg, var(--primary-color) 0%, #f8f9fa 100%);
}

.testimonial-card {
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    backdrop-filter: blur(2px);
    display: inline-block;
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    padding: 2rem;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.05);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-stars {
    color: #ffc107;
}

.testimonial-author img {
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-author h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.testimonial-author p {
    font-size: 0.9rem;
}

#testimonials .text-center span,
#testimonials .text-center h2 {
    color: #fff !important;
}

/* Honeycomb Services Section - Enhanced Borders and Tooltips */
.honeycomb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hex-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.hexagon {
  width: 160px;
  height: 184px;
  background: var(--primary-color);
  clip-path: polygon(
    50% 0%,
    93% 25%,
    93% 75%,
    50% 100%,
    7% 75%,
    7% 25%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.25rem;
  box-shadow: 0 4px 16px rgba(32,51,64,0.08);
  border: 4px solid var(--primary-color);
  background: var(--primary-color);
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  position: relative;
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
}
.hexagon:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 8px 32px rgba(32,51,64,0.18);
  border-color: var(--secondary-color);
  outline-color: var(--secondary-color);
  background: var(--secondary-color);
}
.center-hex {
  border: 6px solid var(--secondary-color);
  outline: 3px solid var(--secondary-color);
  background: var(--secondary-color);
  z-index: 2;
}
.center-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: brightness(0) invert(1); /* This will make the logo white */
}
.hex-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.5rem;
}
.hex-content i {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 0.7rem;
  transition: color 0.3s;
}
.hexagon:hover .hex-content i {
  color: #fff;
}
.hex-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  margin-top: 0;
}
.hex-content p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.9;
  margin: 0;
}
@media (max-width: 991px) {
  .hexagon {
    width: 120px;
    height: 138px;
  }
  .center-logo {
    width: 55px;
    height: 55px;
  }
}
@media (max-width: 600px) {
  .honeycomb {
    gap: 0.2rem;
  }
  .hex-row {
    gap: 0.2rem;
  }
  .hexagon {
    width: 80px;
    height: 92px;
    padding: 0.2rem;
  }
  .center-logo {
    width: 32px;
    height: 32px;
  }
  .hex-content h3 {
    font-size: 0.5rem;
    margin-bottom: 0.1rem;
  }
  .hex-content i {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
  }
  .hex-content p {
    font-size: 0.6rem;
  }
}

/* Tooltip styles */
.hex-tooltip {
  display: block;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 110%;
  transform: translateY(-50%);
  min-width: 220px;
  background: #fff;
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(32,51,64,0.18);
  padding: 1rem 1.2rem;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.5;
  z-index: 100;
  transition: opacity 0.25s;
  white-space: normal;
  visibility: hidden;
}

.hexagon:hover .hex-tooltip,
.hexagon:focus-within .hex-tooltip {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.tooltip-left .hex-tooltip {
  left: auto;
  right: 110%;
}

.hex-tooltip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -12px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent var(--secondary-color) transparent transparent;
  transform: translateY(-50%);
}

.tooltip-left .hex-tooltip::before {
  left: auto;
  right: -12px;
  border-color: transparent transparent transparent var(--secondary-color);
}

@media (max-width: 991px) {
  .hex-tooltip {
    min-width: 120px;
    max-width: 180px;
    font-size: 0.85rem;
    padding: 0.7rem 0.8rem;
  }
}
@media (max-width: 600px) {
  .hex-tooltip {
    min-width: 90px;
    max-width: 120px;
    font-size: 0.7rem;
    padding: 0.4rem 0.5rem;
  }
}

.center-hex.active {
  box-shadow: 0 0 0 6px var(--secondary-color), 0 8px 32px rgba(32,51,64,0.18);
  transition: box-shadow 0.3s, background 0.3s, transform 0.3s;
  transform: scale(1.25);
  z-index: 10;
}
.center-hex.active .hex-content p {
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px);}
  to { opacity: 1; transform: translateY(0);}
}

.stats-section {
    background: var(--secondary-color);
    color: #fff;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 60px 0;
    position: relative;
    z-index: 2;
}
.stats-section .stat-item {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.13);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    margin: 0; /* Remove all margin for grid fit */
    transition: box-shadow 0.3s, transform 0.3s;
    height: 100%;
    width: 100%;
}
.stats-section .stat-item:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    transform: translateY(-4px) scale(1.03);
}
.stats-section i {
    color: #fff;
    margin-bottom: 1rem;
    transition: color 0.3s;
}
.stats-section .stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    letter-spacing: 1px;
}
.stats-section .stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}
.stats-section .stat-desc {
    color: #e0e0e0;
    font-size: 1rem;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .stats-section .stat-item {
        margin: 0.5rem 0;
    }
    .stats-section .stat-number {
        font-size: 2rem;
    }
}

/* Formation Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a4354 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 2rem 1.5rem;
}

.modal-title-container {
    padding-right: 2rem;
}

.modal-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal-body {
    padding: 2rem;
    padding-bottom: 0;
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-floating > textarea.form-control {
    height: 100px;
}

.form-floating > label {
    padding: 1rem 0.75rem;
    color: #666;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(32, 51, 64, 0.1);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-select:focus ~ label {
    color: var(--primary-color);
}

.modal-footer {
    padding: 1.5rem 2rem 2rem;
    padding-top: 0;
}

.modal-footer .btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.modal-footer .btn-primary:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 51, 64, 0.2);
}

.btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

#formationFormAlert {
    border-radius: 10px;
    border: none;
}

#formationFormAlert.alert-success {
    background-color: #d4edda;
    color: #155724;
}

#formationFormAlert.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

#formationFormAlert.alert-info {
    background-color: #cce5ff;
    color: #004085;
}

/* Animation for modal */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* --- Modal Header Subtitle: Make white and readable --- */
.modal-header .modal-title-container p,
.modal-header .modal-title-container .text-muted {
    color: #fff !important;
    opacity: 0.85;
    font-size: 1rem;
    margin-top: 0.25rem;
}

/* --- Improved floating label for select (pill style, no overlap) --- */
.form-floating > .form-select:focus ~ label,
.form-floating > .form-select:not([value=""]) ~ label,
.form-floating > .form-select:valid ~ label {
    opacity: 1;
    transform: scale(0.85) translateY(-1.6rem) translateX(0.15rem);
    background: #fff;
    padding: 0 0.6rem;
    color: var(--primary-color);
    z-index: 2;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(32,51,64,0.04);
    left: 0.7rem;
    top: 0.1rem;
    border: 1px solid #e0e0e0;
    pointer-events: none;
}

.form-floating > .form-select ~ label {
    left: 0.75rem;
    top: 0.7rem;
    pointer-events: none;
    transition: all 0.2s;
    background: transparent;
    z-index: 1;
    padding: 0 0.25rem;
    border-radius: 0.5rem;
}

.form-floating > .form-select:invalid ~ label {
    color: #666;
    opacity: 1;
    transform: none;
    background: transparent;
    z-index: 1;
    box-shadow: none;
    border: none;
}

/* Fix for floating label with select when value is selected */
.form-floating > .form-select.selected ~ label,
.form-floating > .form-select:valid ~ label {
    opacity: 1;
    transform: scale(0.85) translateY(-1.6rem) translateX(0.15rem);
    background: #fff;
    padding: 0 0.6rem;
    color: var(--primary-color);
    z-index: 2;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(32,51,64,0.04);
    left: 0.7rem;
    top: 0.1rem;
    border: 1px solid #e0e0e0;
    pointer-events: none;
}