﻿/* Fix: Prevent overlapping slides on fade effect */
.home1-banner-slider .swiper-slide {
    opacity: 0 !important;
    visibility: hidden;
}

    .home1-banner-slider .swiper-slide.swiper-slide-active,
    .home1-banner-slider .swiper-slide.swiper-slide-duplicate-active {
        opacity: 1 !important;
        visibility: visible;
    }

    .home1-banner-slider .swiper-slide .banner-bg,
    .home1-banner-slider .swiper-slide video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.full-img-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px; /* optional */
}

    .full-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        filter: grayscale(100%);
        transition: filter 0.5s ease;
    }

    .full-img-wrapper::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient( 180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100% );
        pointer-events: none;
        transition: opacity 0.5s ease;
    }

    /* Hover effect to reveal real image */
    .full-img-wrapper:hover img {
        filter: grayscale(0%);
    }

    .full-img-wrapper:hover::after {
        opacity: 0;
    }

.about-image {
    filter: grayscale(100%);
    background-image: linear-gradient( 180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100% );
    transition: filter 0.5s ease, background-image 0.5s ease;
}

    .about-image:hover {
        filter: grayscale(0%);
        background-image: none;
    }

.image-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.real-image {
    display: block;
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.overlay {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.image-wrapper:hover .real-image {
    filter: grayscale(0%);
}

.image-wrapper:hover .overlay {
    opacity: 0;
}

.image-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.real-image {
    display: block;
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.image-wrapper:hover .real-image {
    filter: grayscale(0%);
}

.image-wrapper:hover .overlay {
    opacity: 0;
}

.team-img img {
    display: block;
    width: 100%;
    transition: all 0.5s ease;
    filter: grayscale(100%);
    background-image: linear-gradient( 180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100% );
}

/* Hover effect to remove grayscale and background overlay */
.team-img:hover img {
    filter: grayscale(0%);
    background-image: none;
}

/* Newsletter Popup Styles */
#newsletter-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 32, 38, 0.65);
    justify-content: center;
    align-items: center;
}

    #newsletter-popup .newsletter-content {
        background: #fff;
        border-radius: 18px;
        max-width: 400px;
        width: 90vw;
        padding: 2.5rem 2rem 2rem 2rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
        text-align: center;
        position: relative;
    }

        #newsletter-popup .newsletter-content h3 {
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: #1e2026;
        }

        #newsletter-popup .newsletter-content p {
            color: #555;
            margin-bottom: 1.2rem;
        }

        #newsletter-popup .newsletter-content input[type="email"] {
            width: 100%;
            padding: 0.7rem 1rem;
            border-radius: 8px;
            border: 1px solid #ddd;
            margin-bottom: 1rem;
            font-size: 1rem;
        }

        #newsletter-popup .newsletter-content button[type="submit"] {
            width: 100%;
            background: #1e2026;
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 0.7rem 1rem;
            font-size: 1.1rem;
            font-weight: 600;
            transition: background 0.2s;
        }

            #newsletter-popup .newsletter-content button[type="submit"]:hover {
                background: #2d313a;
            }

        #newsletter-popup .newsletter-content #newsletter-success {
            color: #27ae60;
            margin-top: 1rem;
            font-weight: 600;
        }

    #newsletter-popup #close-newsletter-popup {
        position: absolute;
        top: 18px;
        right: 18px;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #888;
        cursor: pointer;
    }

@media (max-width: 500px) {
    #newsletter-popup .newsletter-content {
        padding: 1.5rem 0.7rem 1.2rem 0.7rem;
    }
}

/* Home4 Banner Slider Styles */
.home4-banner-section .home4-banner-slider {
    height: 100%;
}

    .home4-banner-section .home4-banner-slider .swiper-wrapper {
        height: 100%;
    }

    .home4-banner-section .home4-banner-slider .swiper-slide {
        height: 100%;
    }

        .home4-banner-section .home4-banner-slider .swiper-slide .banner-bg {
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center center;
            background-repeat: no-repeat;
        }

/* Responsive styles for home4 banner slider */
@media (max-width: 991px) {
    .home4-banner-section .home4-banner-slider .swiper-slide .banner-bg {
        min-height: 500px;
    }
}

@media (max-width: 767px) {
    .home4-banner-section .home4-banner-slider .swiper-slide .banner-bg {
        min-height: 400px;
    }
}

@media (max-width: 576px) {
    .home4-banner-section .home4-banner-slider .swiper-slide .banner-bg {
        min-height: 350px;
    }
}

/* Fallback styling for banner images */
.home4-banner-section .home4-banner-slider .swiper-slide .banner-bg {
    position: relative;
    background-color: #f5f5f5;
}

    .home4-banner-section .home4-banner-slider .swiper-slide .banner-bg::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, #e0e0e0 25%, transparent 25%), linear-gradient(-45deg, #e0e0e0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e0e0e0 75%), linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
        background-size: 20px 20px;
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
        opacity: 0.3;
        z-index: -1;
    }

    .home4-banner-section .home4-banner-slider .swiper-slide .banner-bg[style*="background-image"]::before {
        display: none;
    }


.banner-content p {
    font-size: 20px;
    color: #f0f0f0; /* Light grey or white */
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin: 15px auto;
    text-align: center;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


/* Modal Layout */
#jobApplyModal .modal-dialog {
    max-width: 1200px;
    margin: 1.75rem auto;
}

#jobApplyModal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

#jobApplyModal .modal-header {
    background: transparent;
    padding: 25px 25px 0;
    border: none;
}

#jobApplyModal .btn-close {
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    padding: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 10;
}

    #jobApplyModal .btn-close:hover {
        opacity: 1;
        background: rgba(0,0,0,0.2);
    }

/* Left Panel - Image and Job Details */
.left-panel {
    background: linear-gradient(135deg, #979797 0%, #000000 100%);
    color: white;
    position: relative;
    min-height: 600px;
}

.image-section {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.career-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.job-details-section {
    padding: 40px 30px;
    position: relative;
}

.job-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.job-info {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

    .info-item:last-child {
        border-bottom: none;
    }

    .info-item i {
        font-size: 1.2rem;
        margin-right: 15px;
        color: rgba(255,255,255,0.9);
        width: 20px;
    }

    .info-item span {
        font-size: 1rem;
        color: rgba(255,255,255,0.95);
    }

.skills-section {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

    .skills-section h5 {
        color: white;
        margin-bottom: 15px;
        font-weight: 600;
    }

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .skills-list li {
        color: rgba(255,255,255,0.9);
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        font-size: 0.95rem;
    }

        .skills-list li:before {
            content: "•";
            color: #ffd700;
            font-weight: bold;
            position: absolute;
            left: 0;
        }

/* Right Panel - Application Form */
.right-panel {
    background: white;
    min-height: 600px;
}

.form-container {
    padding: 40px 35px;
    height: 100%;
    overflow-y: auto;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.form-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Form Styling */
.application-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 18px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

    .application-form .form-control:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
        background: white;
    }

.application-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.file-upload-wrapper {
    position: relative;
}

    .file-upload-wrapper .form-control {
        padding: 12px 15px;
    }

.form-text {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Buttons */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: white;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #5a6fd8, #6a4190);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        color: white;
    }

.btn-secondary {
    background: #6c757d;
    border: none;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .btn-secondary:hover {
        background: #5a6268;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
    }

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-label {
    color: #555;
    font-size: 0.9rem;
}

    .form-check-label a {
        color: #667eea;
        text-decoration: none;
    }

        .form-check-label a:hover {
            text-decoration: underline;
        }

/* Success Alert */
.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 991px) {
    .left-panel {
        min-height: 400px;
    }

    .image-section {
        height: 200px;
    }

    .job-details-section {
        padding: 25px 20px;
    }

    .job-title {
        font-size: 1.8rem;
    }

    .form-container {
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    #jobApplyModal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .left-panel {
        min-height: 350px;
    }

    .image-section {
        height: 150px;
    }

    .job-details-section {
        padding: 20px 15px;
    }

    .job-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .form-container {
        padding: 25px 20px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .application-form .row {
        margin: 0;
    }

    .application-form .col-md-6 {
        padding: 0;
        margin-bottom: 15px;
    }

    .form-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

/* Scrollbar Styling */
.form-container::-webkit-scrollbar {
    width: 6px;
}

.form-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.form-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

    .form-container::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* Thank You page (test.html) */
.thankyou-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: radial-gradient(circle at top left, #bebc5b, #f1f5f9);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

.thankyou-card {
    width: 100%;
    max-width: 680px;
    text-align: center;
    padding: 2rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25);
    transform: translateZ(0);
    animation: thankyouFadeIn 1.2s ease-out forwards;
    transition: transform 0.3s ease;
}

    .thankyou-card:hover {
        transform: scale(1.02);
    }

.thankyou-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 9999px;
    color: #d7d419;
    background: rgba(215, 212, 25, 0.2);
    margin-bottom: 1.5rem;
}

    .thankyou-icon .icon-svg {
        width: 48px;
        height: 48px;
    }

.thankyou-title {
    font-weight: 800;
    color: #1f2937; /* gray-800 */
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.thankyou-subtitle {
    color: #4b5563; /* gray-600 */
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
}

.thankyou-actions {
    padding-top: 1.25rem;
}

.btn-thankyou {
    display: inline-block;
    padding: 1rem 2rem;
    color: #ffffff;
    font-weight: 600;
    border-radius: 9999px;
    background: #d7d419;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

    .btn-thankyou:hover {
        background: #bdbb17;
        transform: translateY(-4px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

@keyframes thankyouFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover animations */
.service-card {
    will-change: transform, box-shadow;
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    }

    .service-card .service-icon {
        transition: transform 0.3s ease;
    }

    .service-card:hover .service-icon {
        transform: scale(1.06) rotate(2deg);
    }

    .service-card a {
        transition: color 0.25s ease;
    }

        .service-card a:hover {
            color: #b8c00a !important;
        }

        .service-card a i {
            transition: transform 0.25s ease;
        }

    .service-card:hover a i {
        transform: translateX(4px);
    }

@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-card .service-icon,
    .service-card a,
    .service-card a i {
        transition: none;
    }
}

/* Landing Page Hero Background Video */
.lp-hero {
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

    .lp-hero .container {
        position: relative;
        z-index: 3; /* above overlay/video */
    }

.lp-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
}

    .lp-hero-bg .bg-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        z-index: 1;
    }

.lp-hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 991px) {
    .lp-hero {
        min-height: 70vh;
    }
}

@media (max-width: 575px) {
    .lp-hero {
        min-height: 60vh;
    }
}

/* Landing Page: Shared UI tokens */
:root {
    /* Surfaces */
    --lp-card-bg: #ffffff;
    --lp-card-border: rgba(0, 0, 0, 0.06);
    --lp-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --lp-chip-bg: rgba(255, 255, 255, 0.14);
    --lp-chip-border: rgba(255, 255, 255, 0.25);
    /* Section backgrounds (used by gradients in HTML) */
    --gcc-bg: #f6f8fc; /* light cool surface */
    --gcc-bg-2: #eef2f7; /* subtle contrast top */
    /* Typography & component tokens for metrics */
    --metric-bg: #ffffff;
    --metric-border: rgba(0, 0, 0, 0.08);
    --metric-num: #0f172a; /* slate-900 */
    --metric-cap: #475569; /* slate-600 */
    --metric-hover-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    --metric-hover-border: rgba(0, 0, 0, 0.12);
    /* Buttons pick up brand color from global :root in style.css */
    /* Fallbacks ensure good contrast if not loaded yet */
    --metric-button-bg: var(--primary-color2, #d7d419);
    --metric-button-text: #111111; /* on yellow, dark text gives better contrast */
    --metric-button-bg-hover: #bdbb17;
}

/* Section background helper (subtle pattern overlay) */
.section .section-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.35;
}

/* Container alignment for landing sections */
.lp-container {
    position: relative;
    z-index: 1;
}

/* Two-column responsive layout for content + card */
.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
}

@media (max-width: 991px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Ensure sections act as positioning context for .section-bg */
.section {
    position: relative;
}

/* Three-column responsive grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1199px) {
    .grid-3 {
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Small tag/badge used in lp-cards */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--lp-card-border);
    color: #1e2026;
    font-size: 13px;
    font-weight: 700;
}

    .tag i {
        color: #1e2026;
    }

/* Section lead text and subcopy */
.section-lead,
.lp-sub {
    font-size: 16px;
    line-height: 1.7;
    color: #2b2b2b;
    opacity: 0.9;
}

/* Feature list with icons */
.lp-list {
    list-style: none;
    margin: 12px 0 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

    .lp-list li {
        display: flex;
        align-items: flex-start;
        padding-left: 10px;
        gap: 10px;
        background: rgba(255, 255, 255, 0.6);
        border: 1px solid var(--lp-card-border);
        border-radius: 12px;
        transition: background 0.2s ease, border-color 0.2s ease;
    }

    .lp-list i {
        color: #1e2026;
        margin-top: 3px;
    }

    .lp-list span {
        color: #1e2026;
    }

/* Metric card */
.lp-card {
    background: var(--lp-card-bg);
    border: 1px solid var(--lp-card-border);
    box-shadow: var(--lp-card-shadow);
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

    .lp-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
        border-color: rgba(0, 0, 0, 0.12);
    }

.lp-list li:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

.lp-card:hover .tag {
    background: rgba(0, 0, 0, 0.08);
}

.lp-card .metric {
    display: flex;
    align-items: baseline;
    gap: 10px;
    background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0));
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 14px 16px;
    align-items: center;
}

/* Metrics grid items (outside of .lp-card) */
.metric {
    display: flex;
    align-items: baseline;
    gap: 10px;
    background: var(--metric-bg);
    border: 1px solid var(--metric-border);
    align-items: center;
    border-radius: 14px;
    padding: 30px 18px;
    box-shadow: var(--lp-card-shadow);
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}

    .metric .num {
        font-size: 26px;
        font-weight: 800;
        line-height: 1;
        color: #d7d419;
        margin-bottom: 15px;
    }

    .metric .cap {
        font-size: 13px;
        font-weight: 600;
        color: var(--metric-cap);
    }

/* Allow metrics to be anchors without default link styling */
a.metric {
    text-decoration: none;
    color: inherit;
    display: block;
}

    a.metric:focus-visible {
        outline: 2px solid rgba(0,0,0,0.2);
        outline-offset: 2px;
        border-radius: 14px;
    }

.metric:hover {
    transform: translateY(-4px);
    box-shadow: var(--metric-hover-shadow);
    border-color: var(--metric-hover-border);
    background: linear-gradient(180deg, #ffffff, rgba(0,0,0,0.02));
}

/* Stacked metric variant for vertical layout (number over caption) */
.metric.metric--stacked {
    flex-direction: column;
    text-align: center;
    gap: 12px;
}

/* Button inside metric tiles */
.metric button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    background-color: var(--metric-button-bg);
    color: var(--metric-button-text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2px;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

    .metric button:hover {
        background-color: var(--metric-button-bg-hover);
        transform: translateY(-1px);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
    }

    .metric button:focus-visible {
        outline: 2px solid rgba(0,0,0,0.2);
        outline-offset: 2px;
    }

/* Simple spacing utility */
.mt-12 {
    margin-top: 12px !important;
}

.lp-card .metric .num {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    /* color: #1e2026; */
}

.lp-card .metric .cap {
    font-size: 13px;
    font-weight: 600;
    color: #60646c;
}

/* Chips under hero title */
.lp-hero-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lp-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--lp-chip-bg);
    border: 1px solid var(--lp-chip-border);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 13px;
}

    .lp-chip i {
        color: #fff;
        opacity: 0.85;
    }

/* Dark section text contrast helpers */
.dark-section .section-title span,
.dark-section .section-title h2,
.dark-section .section-lead,
.dark-section .lp-list span {
    color: #fff;
}

.dark-section .lp-list li {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.dark-section .lp-list i {
    color: #fff;
    opacity: 0.9;
}

/* KPI Tiles */
.kpi-card {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.kpi {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px 12px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 14px 16px;
}

    .kpi i {
        grid-row: 1 / span 2;
        font-size: 18px;
        color: #1e2026;
        background: rgba(0,0,0,0.05);
        border-radius: 6px; /* square box */
        width: 40px; /* square size */
        height: 40px; /* square size */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .kpi .value {
        font-size: 24px;
        font-weight: 800;
        line-height: 1.1;
        color: #1e2026;
    }

    .kpi .label {
        font-size: 12px;
        font-weight: 600;
        color: #60646c;
    }

/* Make each KPI a clickable box */
.kpi-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .kpi-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(0,0,0,0.08);
        border-color: rgba(0,0,0,0.12);
    }

.dark-section .kpi-link:hover {
    box-shadow: 0 8px 22px rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.28);
}

@media (min-width: 576px) {
    .kpi-card {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .kpi-card {
        grid-template-columns: 1fr;
    }
}

/* Dark background variant */
.dark-section .kpi {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.18);
}

    .dark-section .kpi i,
    .dark-section .kpi .value,
    .dark-section .kpi .label {
        color: #fff;
    }

.lp-list .bi {
    color: #d7d419;
    margin-top: 3px;
}

.btn_wrapper {
    display: block !important;
    position: relative !important;
    height: auto !important;
    min-height: 60px !important; /* Give it some minimum space */
/*    width: 100% !important;*/
    z-index: 999 !important; /* Bring it to the very front */
    margin-top: 30px !important;
    margin-bottom: 30px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important; /* Reset any movement */
}

.dark-section .primary-btn {
    color: #ffffff !important;
}
