/* ============================================
   Global Styles & Variables
   ============================================ */

:root {
    --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bs-heading-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #1f2937;
    --light-color: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--bs-body-font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-color);
    background: linear-gradient(135deg, #edf2ff 0%, #f8fafc 52%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0649b4;
}

/* ============================================
   Header / Navigation
   ============================================ */

.site-header.navbar {
    background-color: #1a2340 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1040;
}

.site-main a[href^="tel:"]:not(.btn) {
    color: var(--primary-color);
}

.site-main a[href^="tel:"]:not(.btn):hover {
    color: #0649b4;
}

.category-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card .btn {
    margin-top: auto;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.category-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: #ffffff !important;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: translateX(5px);
}

.brand-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffffff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-check-label a {
    text-decoration: underline;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 50%, #f0f4ff 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.08), transparent);
    border-radius: 50%;
}

.hero-section h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.hero-section .text-primary {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .lead {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 500px;
}

.carousel-inner {
    border-radius: 1rem;
}

.carousel-item {
    min-height: 400px;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.4) !important;
    border-radius: 0 0 1rem 1rem;
}

.hero-carousel-caption {
    background: rgba(15, 23, 42, 0.92) !important;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem !important;
    left: 6% !important;
    right: 6% !important;
    bottom: 1.25rem !important;
}

.hero-carousel-caption h5 {
    color: #ffffff !important;
}

.hero-carousel-caption p {
    color: #e2e8f0 !important;
}

.carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ============================================
   Features Section
   ============================================ */

.features-section {
    background: #ffffff;
    padding: 4rem 0;
}

.features-section h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    color: var(--dark-color);
}

.feature-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(13, 110, 253, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.12);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.feature-card h5 {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   Categories Section
   ============================================ */

.categories-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    padding: 4rem 0;
}

.category-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.category-image {
    overflow: hidden;
    position: relative;
}

.category-image img {
    transition: transform 0.3s ease;
    height: 100%;
    object-fit: cover;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-card h5 {
    font-weight: 700;
    color: var(--dark-color);
}

.category-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   Call to Action Section
   ============================================ */

.cta-section {
    background: #ffffff;
    padding: 4rem 0;
}

.cta-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f0f4ff 100%);
    border: 2px solid rgba(13, 110, 253, 0.1);
    box-shadow: 0 10px 40px rgba(13, 110, 253, 0.08);
}

.cta-card h2 {
    font-weight: 800;
    color: var(--dark-color);
    font-size: 2rem;
}

.cta-card .lead {
    font-size: 1.1rem;
    color: #6c757d;
}

/* ============================================
   Stats Section
   ============================================ */

.stats-section {
    background: linear-gradient(135deg, #1a2340 0%, #2c3e50 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.1), transparent);
    border-radius: 50%;
}

.stat-card {
    position: relative;
    z-index: 1;
}

.stat-card h3 {
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 0.95rem;
}

/* ============================================
   News / Blog Section
   ============================================ */

.news-section {
    background: #ffffff;
    padding: 4rem 0;
}

.news-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

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

.news-image {
    overflow: hidden;
    position: relative;
}

.news-image img {
    transition: transform 0.3s ease;
    height: 100%;
    object-fit: cover;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-card h5 {
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.4;
}

.news-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background: linear-gradient(135deg, #1a2340 0%, #0f1729 100%);
    color: rgba(255, 255, 255, 0.8);
    margin-top: auto;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer h5,
.site-footer h6 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--primary-color);
}

.site-footer ul li {
    margin-bottom: 0.5rem;
}

.site-footer .text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

.site-footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Buttons & Links
   ============================================ */

.btn {
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0649b4);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0649b4, #053399);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* ============================================
   Forms
   ============================================ */

.form-control,
.form-select {
    border: 1.5px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    background-color: white;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* ============================================
   Cards & Containers
   ============================================ */

.card {
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.card-body {
    padding: 2rem;
}

.badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
}

/* ============================================
   Breadcrumbs
   ============================================ */

.breadcrumb {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-item {
    color: #6c757d;
}

.breadcrumb-item.active {
    color: var(--dark-color);
    font-weight: 600;
}

.breadcrumb-item a {
    color: var(--primary-color);
}

/* ============================================
   Product Cards (Catalog)
   ============================================ */

.product-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.product-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    aspect-ratio: 4 / 3;
    height: auto;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: none;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #0dcaf0);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.product-name {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.05rem;
    margin: 1rem 0 0.5rem 0;
}

.product-sku {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 1rem 0;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

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

    .features-section,
    .categories-section,
    .news-section {
        padding: 2.5rem 0;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .cta-card {
        padding: 2rem 1.5rem !important;
    }

    .carousel-item {
        min-height: 250px;
    }

    .btn {
        padding: 0.55rem 1.2rem;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .nav-link {
        padding: 0.5rem 0 !important;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 0.95rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

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

    .features-section h2,
    .categories-section h2,
    .news-section h2 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .category-card,
    .news-card {
        margin-bottom: 1rem;
    }

    .btn {
        width: 100%;
        padding: 0.65rem 1rem;
    }

    .btn-lg {
        padding: 0.75rem 1rem;
    }

    .carousel-item {
        min-height: 200px;
    }

    .cta-card {
        padding: 1.5rem 1rem !important;
    }
}

/* ============================================
   Utilities
   ============================================ */

.shadow-sm {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.shadow-lg {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.object-fit-cover {
    object-fit: cover;
}

.lh-sm {
    line-height: 1.1;
}

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

.text-muted {
    color: #6c757d !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Loading and interaction states */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-loading {
    pointer-events: none;
    opacity: 0.75;
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   Animations
   ============================================ */

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}


.hero-section h1 {
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.hero-section p {
    max-width: 620px;
    color: #475569;
}

.hero-section .btn {
    min-width: 170px;
}

.card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.card .card-body {
    padding: 1.9rem;
}

.card-title {
    font-weight: 700;
    color: #111827;
}

.section-heading {
    font-size: clamp(1.8rem, 2.4vw, 2.6rem);
    margin-bottom: 0.8rem;
    letter-spacing: -0.03em;
}

.section-subtitle {
    color: #475569;
    max-width: 760px;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 14px 30px rgba(13, 110, 253, 0.15);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.carousel-caption .btn-outline-secondary,
.hero-section .text-white .btn-outline-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

.carousel-caption .btn-outline-secondary:hover,
.hero-section .text-white .btn-outline-secondary:hover {
    color: #0f172a;
    background-color: #ffffff;
    border-color: #ffffff;
}

.card-img-top {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    object-fit: cover;
    min-height: 220px;
}

.hero-section .carousel-inner {
    border-radius: 20px;
}

.list-group-item {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    margin-bottom: 0.75rem;
}

.accordion-button {
    border-radius: 16px;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #0f172a;
}

.accordion-button:not(.collapsed) {
    background-color: #eff6ff;
    color: #0d527e;
}

.accordion-body {
    background-color: #ffffff;
    border-radius: 0 0 16px 16px;
    color: #475569;
}

.form-control,
.form-select {
    border-radius: 14px;
    padding: 1rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-check-label {
    margin-left: 0.5rem;
}

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: rgba(255, 255, 255, 0.76);
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

/* Alert styles */
.alert {
    border-radius: 14px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #0f5132;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #842029;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #664d03;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    color: #055160;
}

/* Sticky offset for in-page sidebars only (not the main site header) */
.sticky-lg-top {
    top: 1rem;
}

/* Header layout fix on wide screens */
.site-header .navbar-brand {
    min-width: 0;
    align-items: center !important;
    margin-right: 1rem;
}

.site-header .brand-text-wrap {
    white-space: nowrap;
}

.site-header .brand-title {
    line-height: 1.1;
}

/* Search form responsive fixes */
.site-search-form {
    width: 100%;
    max-width: 360px;
}

.site-search-input {
    min-width: 0;
}

.site-search-input::placeholder {
    color: rgba(15, 23, 42, 0.42);
}

.site-header .btn {
    width: auto;
}

@media (max-width: 1399.98px) {
    .site-search-form {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .site-search-form {
        max-width: 100%;
    }

    .site-header .site-search-input {
        font-size: 0.95rem;
    }

    .site-header .btn.btn-sm {
        padding: 0.45rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Keep product/category images fully visible */
.product-image img,
.product-media-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain !important;
    background: #fff;
}

.product-media-wrap {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-carousel-stage {
    aspect-ratio: 4 / 3;
    height: auto;
    background: #f8fafc;
}

.product-carousel-stage .product-media-image,
.product-gallery-thumb .product-media-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.product-gallery-thumb {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 160px;
    cursor: pointer;
}

.product-image-4x3 {
    aspect-ratio: 4 / 3;
}

.product-image-square {
    aspect-ratio: 1 / 1;
}

.product-card .product-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center;
}

.product-gallery-modal-content {
    background: rgba(0, 0, 0, 0.92);
}

.product-fullscreen-stage {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.product-fullscreen-image {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
}

.product-zoom-trigger {
    cursor: zoom-in;
}

.category-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}

/* Stable category card button position */
.category-card .btn {
    white-space: nowrap;
}

.site-search-suggestions {
    position: absolute;
    top: calc(100% - 10px);
    left: 0;
    right: 0;
    z-index: 1070;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
    padding: 0.35rem;
}

.site-search-option {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    color: #0f172a;
}

.site-search-option:hover {
    background: #eef4ff;
}

.site-search-option-title {
    font-size: 0.9rem;
}

/* Agreement checkbox alignment */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-check .form-check-input {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.form-check .form-check-label {
    margin-left: 0;
    line-height: 1.35;
}

/* Explicit invalid state for all forms */
.form-control.is-invalid,
.form-select.is-invalid,
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
}

/* Custom badge */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Improved carousel */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 1rem;
    bottom: 1.25rem;
}

/* Table improvements */
.table {
    border-radius: 14px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Modal improvements */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    border-radius: 20px 20px 0 0;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 20px 20px;
}

/* Dropdown improvements */
.dropdown-menu {
    border-radius: 14px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin: 0 0.25rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Progress bars */
.progress {
    height: 8px;
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
}

/* Custom utilities */
.text-gradient {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
}

.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.shadow-medium {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.shadow-strong {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 992px) {
    .hero-section {
        padding: 2rem;
    }

    .sticky-top {
        position: static !important;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 0.75rem;
    }

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

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}
