/* ===== RELPREV PAGE STYLES ===== */

/* Hero Section */
.relprev-hero {
    height: 200px;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 28px;
}

.relprev-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.relprev-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 105, 92, 0.75), rgba(11, 139, 77, 0.55));
    z-index: 1;
}

.relprev-hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 24px;
}

.relprev-hero-icon {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: heroIconPulse 3s ease-in-out infinite;
}

.relprev-hero-icon i {
    font-size: 2rem;
    color: #ffffff;
}

@keyframes heroIconPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    }
}

.relprev-hero-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.relprev-hero-subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Info Bar */
.relprev-info-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f0faf4, #e6f5ec);
    border: 1px solid #c3e6d0;
    border-left: 4px solid var(--primary-green);
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #2d5a3d;
}

.relprev-info-bar i {
    font-size: 1.2rem;
    color: var(--primary-green);
    flex-shrink: 0;
}

.relprev-info-bar strong {
    color: var(--dark-blue);
}

/* Iframe Wrapper */
.relprev-iframe-wrapper {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
}

.relprev-iframe-wrapper iframe {
    width: 100%;
    height: 800px;
    border: none;
    display: block;
    transition: opacity 0.4s ease;
}

/* Loading Overlay */
.relprev-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.relprev-loading .spinner-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.relprev-loading .spinner-outer {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    animation: spin 1.2s linear infinite;
}

.relprev-loading .spinner-inner {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    animation: spin 0.8s linear infinite reverse;
}

.relprev-loading p {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.relprev-loading p:first-of-type {
    animation: pulse 2s ease-in-out infinite;
}

.relprev-loading .loading-sub {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.relprev-loading .progress-bar {
    width: 200px;
    height: 3px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.relprev-loading .progress-fill {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, #0b8b4d, #ffa400);
    border-radius: 3px;
    animation: progressSlide 1.5s ease-in-out infinite;
}

/* Fallback Link */
.relprev-fallback {
    background: #ffa400;
    color: #003366;
    padding: 12px 18px;
    border-radius: 8px;
    margin: 0 auto 24px;
    max-width: 600px;
    text-align: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(255, 164, 0, 0.2);
}

.relprev-fallback strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.relprev-fallback a {
    color: #003366;
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.2s;
}

.relprev-fallback a:hover {
    color: #0b8b4d;
}

/* Contact Footer */
.relprev-contact {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
    font-size: 0.85rem;
    color: #777;
}

.relprev-contact a {
    color: var(--primary-green);
    font-weight: 600;
    transition: color 0.2s;
}

.relprev-contact a:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .relprev-hero {
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .relprev-hero-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 14px;
    }

    .relprev-hero-icon i {
        font-size: 1.5rem;
    }

    .relprev-hero-title {
        font-size: 1.4rem;
    }

    .relprev-hero-subtitle {
        font-size: 0.85rem;
    }

    .relprev-info-bar {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .relprev-iframe-wrapper {
        border-radius: 6px;
    }

    .relprev-iframe-wrapper iframe {
        height: 900px;
    }
}

@media (max-width: 480px) {
    .relprev-hero-title {
        font-size: 1.2rem;
    }

    .relprev-hero-subtitle {
        font-size: 0.8rem;
    }

    .relprev-iframe-wrapper iframe {
        height: 1000px;
    }

    .relprev-fallback {
        margin: 0 12px 20px;
        padding: 10px 14px;
    }
}