/**
 * RIAJ Homepage Redesign - Hero Banner Styles
 * Scoped under .riaj-hero-overlay to avoid collision with existing .main-banner or dashboard styles
 */

/* Hero Overlay Container */
.riaj-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 100;
    padding: 2rem 1rem;
    pointer-events: none;
}

/* Allow pointer events on interactive elements within the overlay */
.riaj-hero-overlay a,
.riaj-hero-overlay button {
    pointer-events: auto;
}

/* Hero Content Wrapper */
.riaj-hero-content {
    max-width: 800px;
    text-align: center;
    color: #ffffff;
    animation: fadeInUp 0.8s ease-out;
}

/* Hero Title */
.riaj-hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Hero Subtitle */
.riaj-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Hero Buttons Container */
.riaj-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Primary Button - Get the App */
.riaj-btn-app {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.riaj-btn-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Secondary Button - Contact Us */
.riaj-btn-contact {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 2px solid #ffffff;
    background-color: transparent;
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.riaj-btn-contact:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .riaj-hero-title {
        font-size: 2rem;
    }

    .riaj-hero-subtitle {
        font-size: 1rem;
    }

    .riaj-hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .riaj-btn-app,
    .riaj-btn-contact {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .riaj-hero-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .riaj-hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }

    .riaj-btn-app,
    .riaj-btn-contact {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Ensure banner-section-wrapper has position relative for absolute positioning */
.banner-section-wrapper {
    position: relative;
}

/* Services Section - Card Restyle */
.riaj-service-desc {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.services-card.riaj-service-card {
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.services-card.riaj-service-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.riaj-service-cta {
    font-weight: 600;
}

/* Section Title Restyle - shared across Services, Clinics, etc. */
.section-title .sub-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    font-weight: 600;
}

.section-title .title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
}

/* Clinic Card Restyle */
.riaj-clinic-card {
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.riaj-clinic-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.riaj-clinic-img {
    height: 200px;
    object-fit: cover;
}

.riaj-clinic-status {
    top: 12px;
    right: 12px;
    font-size: 0.75rem;
}

.riaj-clinic-name a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
}

.riaj-clinic-name a:hover {
    color: var(--bs-primary);
}

.riaj-clinic-address,
.riaj-clinic-phone {
    font-size: 0.875rem;
    color: #6b7280;
}

.riaj-clinic-address a,
.riaj-clinic-phone a {
    color: #6b7280;
    text-decoration: none;
}

.riaj-clinic-address a:hover,
.riaj-clinic-phone a:hover {
    color: var(--bs-primary);
}

.riaj-clinic-cta {
    font-weight: 600;
}

/* FAQ Section Restyle */
.riaj-faq-section .custom-accordion {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.riaj-faq-section .custom-accordion-button {
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: none;
}

.riaj-faq-section .custom-accordion-button:not(.collapsed) {
    background: #f9fafb;
    color: var(--bs-primary);
}

.riaj-faq-section .custom-accordion-body {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.65;
    padding: 0.5rem 1.25rem 1.25rem;
}

/* Testimonial Section Restyle */
.riaj-testimonial-section {
    padding: 4rem 0;
}

.riaj-testimonial-section .testimonial-desc {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    max-width: 720px;
    margin: 0 auto 2rem;
}

.riaj-testimonial-section .author-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
}

/* Footer Restyle */
footer, .footer {
    background-color: #1f2937 !important;
    color: #d1d5db;
}

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

footer a, .footer a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover, .footer a:hover {
    color: #ffffff;
}

footer p, .footer p {
    color: #9ca3af;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.riaj-footer-contact {
    font-size: 0.9375rem;
    color: #d1d5db;
}

.riaj-footer-contact i {
    color: var(--bs-primary);
    margin-right: 0.5rem;
}

.riaj-footer-bottom {
    border-top: 1px solid #374151;
    padding: 1.25rem 0;
    /* margin-top: 2rem; */
}

.riaj-footer-bottom p {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
}

.riaj-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #374151;
    color: #d1d5db;
    transition: background 0.2s ease, color 0.2s ease;
    margin-right: 0.5rem;
}

.riaj-footer-social a:hover {
    background: var(--bs-primary);
    color: #ffffff;
}

/* Header/Nav Restyle */
.navbar .navbar-nav .nav-item .nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    transition: color 0.2s ease;
    padding: 0.5rem 1rem;
}

.navbar .navbar-nav .nav-item .nav-link:hover,
.navbar .navbar-nav .nav-item .nav-link.active {
    color: var(--bs-primary);
}

.navbar .navbar-brand img {
    height: 36px;
}

/* Mobile nav improvements */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin-top: 0.5rem;
    }

    .navbar .navbar-nav .nav-item .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f3f4f6;
    }

    .navbar .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}
