/* ============================================
   Offline Course Landing — Design V4.0 (Theme Integrated)
   Revised: Mar 15, 2026
   ============================================ */

/* Removed external font import to inherit theme font */

.offline-course-page {
    position: relative;
    direction: rtl;
    text-align: right;
    font-family: inherit;
    /* Use site font */

    /* Theme Palette */
    --oc-primary: #0170FF;
    --oc-primary-light: #E6F0FF;
    --oc-secondary: #0E2145;
    --oc-accent: #FF7043;

    --oc-bg-light: #f8f9fa;
    --oc-card-bg: #ffffff;
    --oc-text-main: #212529;
    --oc-text-muted: #6c757d;
    --oc-radius: 16px;
    --oc-shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1);

    overflow-x: hidden;
    line-height: 1.6;
    color: var(--oc-text-main);
}

/* ── UTILITIES ───────────────────────── */
.offline-course-page .oc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.offline-course-page .oc-section {
    padding: 80px 0;
    position: relative;
}

.offline-course-page .oc-text-gradient {
    color: var(--oc-primary);
    background: linear-gradient(135deg, var(--oc-primary) 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.offline-course-page .oc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
}

.offline-course-page .oc-btn-primary {
    background: var(--oc-primary);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(1, 112, 255, 0.3);
}

.offline-course-page .oc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(1, 112, 255, 0.4);
    filter: brightness(1.1);
}

.offline-course-page .oc-btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff !important;
}

.offline-course-page .oc-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* ── HERO SECTION ────────────────────── */
.offline-course-page .oc-hero {
    position: relative;
    /* Use theme colors for hero gradient */
    background: linear-gradient(160deg, var(--oc-secondary) 0%, #1a2e4d 100%);
    color: #fff;
    padding-top: 20px;
    padding-bottom: 140px;
    overflow: visible;
}

.offline-course-page .oc-hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
}

.offline-course-page .oc-hs-1 {
    width: 400px;
    height: 400px;
    background: var(--oc-primary);
    top: -100px;
    right: -100px;
}

.offline-course-page .oc-hero-content {
    position: relative;
    z-index: 10;
    padding-top: 10px;
}

.offline-course-page .oc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 24px;
}

.offline-course-page .oc-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.offline-course-page .oc-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 550px;
}

.offline-course-page .oc-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.offline-course-page .oc-presenter {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 12px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.offline-course-page .oc-presenter img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--oc-primary);
}

.offline-course-page .oc-hero-img-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transform: translateY(20px);
}

.offline-course-page .oc-hero-img {
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotate(-2deg);
    transition: transform 0.5s ease;
}

.offline-course-page .oc-hero-img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* ── IMAGE INFO CARDS ────────────── */
.offline-course-page .oc-info-strip {
    margin-top: -100px;
    position: relative;
    z-index: 20;
    padding-bottom: 60px;
}

.offline-course-page .oc-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.offline-course-page .oc-img-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    height: 100%;
}

.offline-course-page .oc-img-card.highlight {
    border: 2px solid var(--oc-accent);
}

.offline-course-page .oc-img-card:hover {
    transform: translateY(-5px);
}

.offline-course-page .oc-card-visual {
    height: 140px;
    position: relative;
    overflow: hidden;
}

.offline-course-page .oc-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.offline-course-page .oc-img-card:hover .oc-card-visual img {
    transform: scale(1.1);
}

.offline-course-page .oc-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.offline-course-page .oc-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.offline-course-page .oc-card-body {
    padding: 20px;
    text-align: center;
}

.offline-course-page .oc-card-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--oc-text-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.offline-course-page .oc-card-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--oc-secondary);
    line-height: 1.3;
}

/* ── BENEFITS ────────────────── */
.offline-course-page .oc-sec-header {
    margin-bottom: 40px;
    text-align: center;
}

.offline-course-page .oc-sec-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--oc-secondary);
}

.offline-course-page .oc-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.offline-course-page .oc-benefit-block {
    display: flex;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.offline-course-page .oc-benefit-block:hover {
    transform: translateY(-5px);
}

.offline-course-page .oc-benefit-img {
    width: 40%;
    position: relative;
    overflow: hidden;
}

.offline-course-page .oc-benefit-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offline-course-page .oc-benefit-content {
    width: 60%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.offline-course-page .oc-benefit-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--oc-secondary);
}

.offline-course-page .oc-benefit-text {
    color: var(--oc-text-muted);
    font-size: 0.95rem;
}

/* ── BOOKING ────────────────── */
.offline-course-page .oc-booking-section {
    padding-bottom: 100px;
    background: #fff;
}

.offline-course-page .oc-split-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.offline-course-page .oc-location-wrapper {
    position: relative;
}

.offline-course-page .oc-location-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.offline-course-page .oc-map-frame {
    width: 100%;
    height: 350px;
    border: none;
    display: block;
}

.offline-course-page .oc-location-details {
    padding: 20px 24px;
    background: #fff;
}

.offline-course-page .oc-loc-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.offline-course-page .oc-loc-icon {
    width: 40px;
    height: 40px;
    background: rgba(14, 33, 69, 0.05);
    /* slightly adjusted based on secondary */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--oc-secondary);
    flex-shrink: 0;
}

.offline-course-page .oc-form-wrapper {
    position: relative;
}

.offline-course-page .oc-form-container {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    padding: 40px;
    border: 1px solid #f0f0f0;
}

.offline-course-page .oc-form-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px dashed #eee;
    padding-bottom: 20px;
}

.offline-course-page .oc-form-header h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--oc-secondary);
    margin-bottom: 8px;
}

.offline-course-page .oc-input-group {
    margin-bottom: 20px;
}

.offline-course-page .oc-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--oc-secondary);
}

.offline-course-page .oc-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: #fcfcfc;
}

.offline-course-page .oc-input:focus {
    outline: none;
    border-color: var(--oc-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(1, 112, 255, 0.1);
}

.offline-course-page .oc-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.offline-course-page .oc-upload-box:hover {
    border-color: var(--oc-primary);
    background: rgba(1, 112, 255, 0.05);
}

/* Invisible input overlay */
.offline-course-page .oc-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.offline-course-page .oc-payment-alert {
    background: linear-gradient(135deg, var(--oc-secondary) 0%, #162031 100%);
    color: #fff;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.offline-course-page .oc-pay-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--oc-accent);
}

/* ── RESPONSIVE OPTIMIZATIONS ───────── */
@media (max-width: 991px) {
    .offline-course-page .oc-hero-title {
        font-size: 2.8rem;
    }

    .offline-course-page .oc-hero-content {
        text-align: center;
        margin-bottom: 40px;
    }

    .offline-course-page .oc-hero-badge {
        margin: 0 auto 20px;
    }

    .offline-course-page .oc-presenter {
        margin: 0 auto 30px;
        width: fit-content;
    }

    .offline-course-page .oc-hero-actions {
        justify-content: center;
    }

    .offline-course-page .oc-split-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .offline-course-page .oc-location-wrapper {
        order: 2;
    }

    .offline-course-page .oc-location-card {
        position: static;
    }

    .offline-course-page .oc-form-wrapper {
        order: 1;
    }

    .offline-course-page .oc-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .offline-course-page .oc-benefits-grid {
        grid-template-columns: 1fr;
    }

    .offline-course-page .oc-benefit-block {
        flex-direction: column;
    }

    .offline-course-page .oc-benefit-img {
        width: 100%;
        height: 200px;
    }

    .offline-course-page .oc-benefit-content {
        width: 100%;
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .offline-course-page .oc-hero-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .offline-course-page .oc-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .offline-course-page .oc-hero {
        padding-bottom: 120px;
    }

    .offline-course-page .oc-info-strip {
        margin-top: -80px;
    }

    /* Mobile Card Layout Fix */
    .offline-course-page .oc-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .offline-course-page .oc-img-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        /* Stretch to fill height */
        height: 110px !important;
        /* Fixed height per request */
    }

    .offline-course-page .oc-card-visual {
        width: 110px;
        /* Fixed width */
        height: 100%;
        /* Full height */
        flex-shrink: 0;
    }

    .offline-course-page .oc-card-body {
        padding: 0 15px 0 0;
        /* Align text properly RTL */
        text-align: right;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .offline-course-page .oc-card-label {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }

    .offline-course-page .oc-card-value {
        font-size: 1rem;
        margin: 0;
    }

    .offline-course-page .oc-form-container {
        padding: 25px 20px;
    }
}

/* ── SUCCESS ANIMATION ─────────────── */
.offline-course-page .oc-success-checkmark {
    animation: oc-pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes oc-pop-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── ENTRANCE ANIMATIONS ──────────── */
.offline-course-page .oc-benefit-block,
.offline-course-page .oc-img-card {
    animation: oc-fade-up 0.6s ease both;
}

.offline-course-page .oc-benefit-block:nth-child(1),
.offline-course-page .oc-img-card:nth-child(1) {
    animation-delay: 0s;
}

.offline-course-page .oc-benefit-block:nth-child(2),
.offline-course-page .oc-img-card:nth-child(2) {
    animation-delay: 0.1s;
}

.offline-course-page .oc-benefit-block:nth-child(3),
.offline-course-page .oc-img-card:nth-child(3) {
    animation-delay: 0.2s;
}

.offline-course-page .oc-benefit-block:nth-child(4),
.offline-course-page .oc-img-card:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes oc-fade-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}