/* 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: 40%;
    left: 15%;
    transform: translateY(-40%);
    width: 40%;
    color: #fff;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7);
    z-index: 2;
    text-align: left;
}

.hero-overlay-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.hero-overlay-description {
    font-size: 1.1rem;
    color: #f1f1f1;
    line-height: 1.6;
    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;
    }

    .hero-overlay-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .hero-overlay-description {
        font-size: 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;
}

    .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;
    }
}