﻿body {
    font-family: 'Segoe UI', sans-serif;
   /* background-color: #f8f9fa;*/
}

.hero {
    background: linear-gradient(rgba(13, 110, 253, 0.7), rgba(13, 110, 253, 0.7)), url('https://via.placeholder.com/1600x700') center/cover no-repeat;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.feature-card, .how-card, .news-card, .testimonial-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover, .how-card:hover, .news-card:hover, .testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

.footer-links a {
  /*  color: #adb5bd;*/
    text-decoration: none;
    margin-right: 20px;
}

.footer-links a:hover {
    /*color: white;*/
}

.newsletter input[type="email"] {
    max-width: 400px;
}


.modal-lg-custom {
    max-width: 80vw;
}

@media (max-width: 768px) {

    .modal-lg-custom {
        max-width: 95vw;
    }
}

.select2-container--default .select2-selection--single {
    height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}


/* Invalid state */
.select2-container--default .select2-selection--single.is-invalid {
    border: 1px solid #dc3545 !important; /* red */
    border-radius: 0.375rem;
}

/* Valid state */
.select2-container--default .select2-selection--single.is-valid {
    border: 1px solid #198754 !important; /* green */
    border-radius: 0.375rem;
}

.grid-container {
    height: 79vh;
    width: 98.6vw;
}

.form-control.no-border {
    border: none !important;
    box-shadow: none !important;
}


body[data-bs-theme="dark"] .navbar .nav-link.active {
    background-color: rgba(255,255,255,0.1);
}

body[data-bs-theme="light"] .navbar .nav-link.active {
    background-color: rgba(0,0,0,0.1);
}

/* Stat Box: vertical layout */
#statsBar .stat-box {
    display: flex;
    flex-direction: column;
    align-items: center; /* center content */
    justify-content: center;
    padding: 2px 4px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--bs-body-color) 5%, transparent);
    min-width: 90px;
}

/* Label on top */
#statsBar .stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.85;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
    text-align: center;
    white-space: nowrap;
    display: block;
}

/* Value on next line */
#statsBar .stat-value {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-align: center;
    line-height: 1.2;
    display: block;
    min-width: 70px;
}

/* Positive/Negative Shadow */
#statsBar .bg-success {
    box-shadow: 0 0 4px rgba(25, 135, 84, 0.35);
}

#statsBar .bg-danger {
    box-shadow: 0 0 4px rgba(220, 53, 69, 0.35);
}

/* Dark Mode Contrast */
body[data-bs-theme="dark"] #statsBar .stat-box {
    background: color-mix(in srgb, var(--bs-body-color) 12%, transparent);
}

body[data-bs-theme="dark"] #statsBar .stat-label {
    color: #e0e0e0;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    #statsBar .stat-box {
        min-width: 80px;
        padding: 5px 8px;
    }

    #statsBar .stat-value {
        min-width: 60px;
    }
}

@media (max-width: 576px) {
    #statsBar {
        width: 100%;
        justify-content: space-between;
    }
}
