/**
 * Oportuna Hero Slider Styles
 */

/* --- Base --- */
.oportuna-hero {
    position: relative;
    --oportuna-hero-top-offset: 7rem;
    --oportuna-hero-title-mb: 1.5rem;
    --oportuna-hero-subtitle-pt: 2.5rem;
    --oportuna-hero-subtitle-mb: 2.5rem;
    --oportuna-hero-buttons-gap: 1.25rem;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #020617; /* bg-navy */
}

.oportuna-hero-inner {
    padding-top: var(--oportuna-hero-top-offset);
}

/* --- Slide --- */
.oportuna-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    transition: opacity 1s ease-in-out;
}

.oportuna-hero-slide.active {
    opacity: 1;
    z-index: 10;
}

/* --- Background Zoom --- */
.oportuna-hero-bg-wrapper {
    position: absolute;
    inset: 0;
    transform: scale(1.1);
    transition: transform 6s ease-out;
}

.oportuna-hero-slide.active .oportuna-hero-bg-wrapper {
    transform: scale(1);
}

.oportuna-hero-bg-wrapper img,
.oportuna-hero-bg-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center;
    display: block;
}

.oportuna-hero-video {
    background-color: #020617;
}

/* --- Content --- */
.oportuna-hero-content h1,
.oportuna-hero-content p,
.oportuna-hero-content .flex {
    transition-property: opacity, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.oportuna-hero .oportuna-hero-content h1 {
    transition-duration: 0.7s;
    transition-delay: 0.5s;
    margin-bottom: var(--oportuna-hero-title-mb, 1.5rem);
    transform: translateY(2rem);
    opacity: 0;
}

.oportuna-hero .oportuna-hero-content p {
    transition-duration: 0.7s;
    transition-delay: 0.7s;
    padding-top: var(--oportuna-hero-subtitle-pt, 2.5rem);
    margin-bottom: var(--oportuna-hero-subtitle-mb, 2.5rem);
    opacity: 0;
}

.oportuna-hero-content .flex {
    transition-duration: 0.7s;
    transition-delay: 0.9s;
    transform: translateY(1.5rem);
    opacity: 0;
}

.oportuna-hero .oportuna-hero-buttons {
    gap: var(--oportuna-hero-buttons-gap, 1.25rem);
}

/* Active State for Content */
.oportuna-hero-slide.active .oportuna-hero-content h1,
.oportuna-hero-slide.active .oportuna-hero-content p,
.oportuna-hero-slide.active .oportuna-hero-content .flex {
    opacity: 1;
    transform: translateY(0);
}

/* --- Utility Classes (Reused from previous widget) --- */
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.object-cover { object-fit: cover; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.relative { position: relative; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-5 { gap: 1.25rem; }
.gap-4 { gap: 1rem; }
.gap-3 { gap: 0.75rem; }
.gap-2 { gap: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* --- Typography --- */
.font-black { font-weight: 900; }
.font-medium { font-weight: 500; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-white { color: #fff; }
.text-slate-200 { color: #e2e8f0; }
.text-primary-400 { color: #60a5fa; }
.leading-\[1\.1\] { line-height: 1.1; }
.tracking-tighter { letter-spacing: -0.05em; }
.leading-relaxed { line-height: 1.625; }

/* --- Colors & Backgrounds --- */
.bg-navy { background-color: #020617; }
.bg-primary-600 { background-color: #2563eb; }
.bg-primary-500 { background-color: #3b82f6; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.border-white\/30 { border-color: rgba(255, 255, 255, 0.3); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-navy { --tw-gradient-from: #020617; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(2, 6, 23, 0)); }
.via-navy\/40 { --tw-gradient-via: rgba(2, 6, 23, 0.4); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to, rgba(2, 6, 23, 0)); }
.to-transparent { --tw-gradient-to: transparent; }

/* --- Effects --- */
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-primary-900\/40 { --tw-shadow-color: rgba(30, 58, 138, 0.4); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); }
.opacity-60 { opacity: 0.6; }
.opacity-0 { opacity: 0; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; }
.cursor-pointer { cursor: pointer; }

/* --- Responsive --- */
@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:flex-row { flex-direction: row; }
}

@media (max-width: 767px) {
    .oportuna-hero {
        --oportuna-hero-top-offset: 5.5rem;
        --oportuna-hero-title-mb: 1rem;
        --oportuna-hero-subtitle-pt: 0.75rem;
        --oportuna-hero-subtitle-mb: 1.5rem;
        --oportuna-hero-buttons-gap: 1rem;
    }

    .oportuna-hero-content .flex a {
        padding: 0.95rem 1.25rem;
        font-size: 0.95rem;
        border-radius: 1rem;
    }

    .oportuna-hero-prev,
    .oportuna-hero-next {
        width: 44px;
        height: 44px;
    }
}

@media (min-width: 1280px) {
    .xl\:text-8xl { font-size: 6rem; line-height: 1; }
    .xl\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
}

@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* --- Progress Bar Animation --- */
.oportuna-hero-progress {
    transition: width 6000ms linear;
}
