/* Home Page Styles - Converted from HomeHero.razor.css and LatestUpdates.razor.css */
/* Aligned with PwC Orange Theme */

/* ===== HERO SECTION STYLES (from HomeHero.razor.css) ===== */

.g2-text-gradient {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(45deg, #252525, #d04a02);
    display: inline-block;
    width: auto;
}

/* Hero Banner Specific Styles */

/* 40% black overlay */
.hero-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-overlay-text {
    position: absolute;
    top: 50%;
    left: 15%;
    transform: translateY(-50%);
    width: 40%;
    color: #fff;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7);
    z-index: 2;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.hero-overlay-title {
    font-size: clamp(1.2rem, 2vw, 2.2rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    flex-shrink: 0;
}

.hero-overlay-description {
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    color: #f1f1f1;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: break-word;
}

.hero-scroll-down-btn {
    position: absolute;
    bottom: 40px;
    right: 50px;
    background-color: #5F5F5F;
    color: #fff;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    padding: 0.5rem 1rem;
    z-index: 2;
}

/* Hero Banner Carousel Control Icons */
#bannerCarousel .carousel-control-prev-icon,
#bannerCarousel .carousel-control-next-icon {
    background-color: #5F5F5F;
    border-radius: 50%;
    padding: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
    width: 40px;
    height: 40px;
}

#bannerCarousel .carousel-control-prev-icon {
    background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23ffffff%27%3E%3Cpath d=%27M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z%27/%3E%3C/svg%3E');
}

#bannerCarousel .carousel-control-next-icon {
    background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23ffffff%27%3E%3Cpath d=%27M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z%27/%3E%3C/svg%3E');
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    .hero-overlay-text {
        top: 50%;
        left: 50%; /* Center horizontally */
        width: 80%;
        transform: translate(-50%, -50%); /* Center both axes */
        text-align: center;
        padding: 0 1rem;
        box-sizing: border-box;
        align-items: center;
    }

    .hero-overlay-title {
        font-size: clamp(1rem, 4vw, 1.4rem);
        margin-bottom: 0;
    }

    .hero-overlay-description {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
        line-height: 1.4;
    }

    /* Center the button on mobile */
    .hero-overlay-text .btn-countries {
        justify-content: center;
    }

    /* Push carousel arrows further out on mobile */
    #bannerCarousel .carousel-control-prev {
        left: -15px;
    }

    #bannerCarousel .carousel-control-next {
        right: -15px;
    }
}

/* ===== LATEST UPDATES SECTION STYLES (from LatestUpdates.razor.css) ===== */

/* ===== SUBSCRIBE FORM STYLES (from SubscribeForm.razor) ===== */

#subscribe-section {
    padding: 2rem 0;
}

    #subscribe-section .card {
        border-radius: 0.75rem;
    }

    #subscribe-section .card-header {
        border-radius: 0.75rem 0.75rem 0 0;
    }

    /* Success alert modal */
    #subscribe-section .position-fixed {
        animation: fadeIn 0.3s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Alert Messages */
.alert {
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

/* Loading State */
.spinner-border {
    width: 3rem;
    height: 3rem;
    color: #d04a02;
}

/* Accessibility - Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #d04a02;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

    .skip-link:focus {
        top: 0;
    }

#heroCarousel {
    height: 825px;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.latest-updates-header {
    padding-left: 60px;
    padding-right: 60px;
}

@media (max-width: 767px) {
    .latest-updates-header {
        padding-left: 0;
        padding-right: 0;
    }
}

.carousel-control-prev.carousel-control-side {
    left: -60px;
}

.carousel-control-side {
    width: 40px;
}
/* Countries Button */
.btn-countries {
    background-color: #2A206F !important;
    color: #ffffff !important;
    border: 2px solid #2A206F !important;
    border-radius: 0.375rem;
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
}

    .btn-countries:hover,
    .btn-countries:focus,
    .btn-countries:active {
        background-color: #2A206F !important;
        color: #ffffff !important;
        border-color: #2A206F !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .btn-countries i {
        font-size: 1.1rem;
    }

/* Mobile responsive */
@media (max-width: 768px) {
    .btn-countries {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
}

/* =============================================
   KPI STATS BAR
   ============================================= */

.kpi-stats-bar {
    background-color: #2A206F;
    width: 100%;
    padding: 40px 0;
}

.kpi-stats-inner {
    display: flex;
    align-items: stretch;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.kpi-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    gap: 0.5rem;
    position: relative;
}

/* White vertical divider on the left of every stat */
.kpi-divider {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.35);
    align-self: stretch;
    flex-shrink: 0;
}

.kpi-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    white-space: nowrap;
}

.kpi-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
    text-align: center;
}

/* Inline edit input */
.kpi-edit-input {
    font-size: 2.75rem;
    font-weight: 800;
    color: #2A206F;
    background: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 0 0.25rem;
    width: 180px;
    text-align: center;
    line-height: 1.1;
    outline: 2px solid rgba(255, 255, 255, 0.8);
}

    .kpi-edit-input:focus {
        outline: 3px solid #ffffff;
    }

@media (max-width: 768px) {
    .kpi-stats-inner {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .kpi-divider {
        width: 60%;
        height: 1px;
        align-self: center;
        margin: 1.25rem 0;
    }

    .kpi-stat {
        padding: 0.5rem 1rem;
    }

    .kpi-value {
        font-size: 2rem;
    }
}

/* =============================================
   STAY CONNECTED SECTION
   ============================================= */

.stay-connected-section {
    padding: 3rem 0;
    background: #fff;
    /* Brand-primary thin top border separating from Latest Updates */
    border-top: 2px solid #2A206F;
}

.stay-connected-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.stay-connected-heading {
    font-size: 2.25rem;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.stay-connected-subtitle {
    font-size: 1rem;
    color: #1a1a1a;
    max-width: 480px;
    line-height: 1.65;
    margin-bottom: 0;
}

.btn-stay-connected {
    background-color: #2a206f;
    color: #ffffff;
    border: none;
    border-radius: 0.375rem;
    padding: 0.65rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    align-self: flex-start;
    transition: background-color 0.2s ease;
}

.btn-stay-connected:hover,
.btn-stay-connected:focus {
    background-color: #1e186b;
    color: #ffffff;
}

.stay-connected-image-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stay-connected-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 0.75rem;
}

/* Responsive: stack on mobile */
@media (max-width: 767.98px) {
    .stay-connected-section {
        padding: 2rem 1rem;
    }

    .stay-connected-heading {
        font-size: 1.75rem;
    }

    .stay-connected-subtitle {
        font-size: 0.9rem;
    }

    .btn-stay-connected {
        align-self: stretch;
        text-align: center;
    }

    .stay-connected-img {
        max-height: 220px;
    }
}

/* =============================================
   SUBSCRIBE MODAL
   ============================================= */

.subscribe-modal-dialog {
    max-width: 680px;
}

/* Force white background on modal content */
#subscribeModal .modal-content {
    background-color: #ffffff !important;
}

@media (max-width: 575.98px) {
    .subscribe-modal-dialog {
        max-width: calc(100vw - 1.5rem);
        margin: 0.75rem auto;
    }

    .subscribe-modal-dialog .modal-body {
        padding: 0.75rem;
    }
}

/* Ensure the modal body scroll cap */
.subscribe-modal-dialog .modal-body {
    max-height: 80vh;
    overflow-y: auto;
    background-color: #ffffff;
}

/* Override card shadow inside modal — cleaner flat look */
#subscribeModal .card {
    box-shadow: none !important;
    padding: 0 !important;
    background-color: #ffffff !important;
}

#subscribeModal #subscribe-section {
    padding: 0;
}