/* =========================================================
   CITRA JOURNAL - Workshop Section Styles
========================================================= */

/* === Base & Reset === */
.ws-page,
.ws-detail-page {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    text-align: right;
    color: #1C2B33;
}

.ws-page *,
.ws-detail-page * {
    box-sizing: border-box;
}

/* === Hero Banner === */
.ws-hero {
    position: relative;
    width: 100%;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #041F2C 0%, #08354A 40%, #106035 100%);
}

.ws-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(251, 209, 162, 0.12), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(25, 127, 69, 0.15), transparent 50%);
    pointer-events: none;
}

.ws-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.4;
    pointer-events: none;
}

.ws-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 140px 24px 80px;
    max-width: 800px;
}

.ws-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}

.ws-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FC9F5B;
    animation: wsPulse 2s ease-in-out infinite;
}

@keyframes wsPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.ws-hero-title {
    font-size: 44px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.5;
    margin: 0 0 20px;
}

.ws-hero-title span {
    display: block;
    background: linear-gradient(90deg, #FC9F5B, #FBD1A2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ws-hero-desc {
    font-size: 17px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    line-height: 2;
    margin: 0;
}

/* === Section Head === */
.ws-section {
    padding: 80px 0;
}

.ws-section-featured {
    background: linear-gradient(180deg, #FDFCF7, #ffffff);
}

.ws-section-completed {
    background: #f7f9fc;
}

.ws-section-head {
    text-align: center;
    margin-bottom: 50px;
}

.ws-section-kicker {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(20, 200, 217, 0.10);
    color: #0a6e5c;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 14px;
}

.ws-section-head h2 {
    font-size: 34px;
    font-weight: 900;
    color: #0d1b2a;
    margin: 0 0 12px;
}

.ws-section-head p {
    font-size: 16px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.9;
}

/* === Workshop Grid === */
.ws-grid {
    display: grid;
    gap: 30px;
}

.ws-grid-upcoming {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.ws-grid-completed {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* === Workshop Card === */
.ws-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ws-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}

.ws-card-image {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.ws-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ws-card:hover .ws-card-image img {
    transform: scale(1.04);
}

.ws-card-date-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.ws-card-online-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0a6e5c, #FC9F5B);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.ws-card-views {
    position: absolute;
    bottom: 14px;
    left: 14px;
    padding: 5px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.ws-card-completed-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 14px;
    border-radius: 10px;
    background: rgba(107, 114, 128, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

/* === Card Body === */
.ws-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ws-card-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(20, 200, 217, 0.10);
    color: #0a6e5c;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    width: fit-content;
    text-decoration: none;
    transition: background 0.2s;
}

.ws-card-category:hover {
    background: rgba(20, 200, 217, 0.20);
}

.ws-card-body h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0d1b2a;
    margin: 0 0 10px;
    line-height: 1.5;
}

.ws-card-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.ws-card-body h3 a:hover {
    color: #0a6e5c;
}

.ws-card-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.9;
    margin: 0 0 16px;
}

.ws-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #9ca3af;
}

.ws-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ws-card-meta i {
    color: #FC9F5B;
    font-size: 13px;
}

/* === Card Footer === */
.ws-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.ws-card-price {
    font-size: 15px;
    font-weight: 800;
    color: #0d1b2a;
}

.ws-card-price.ws-free {
    color: #0a6e5c;
}

.ws-card-status {
    font-size: 13px;
    font-weight: 700;
}

.ws-card-status.ws-available {
    color: #0a6e5c;
}

.ws-card-status.ws-full {
    color: #dc2626;
}

.ws-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0a6e5c, #FC9F5B);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ws-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 110, 92, 0.30);
}

.ws-card-btn i {
    font-size: 12px;
}

/* === Slider === */
.ws-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ws-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 8px 4px;
}

.ws-slider::-webkit-scrollbar {
    display: none;
}

.ws-slider .ws-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 300px;
    scroll-snap-align: start;
}

.ws-slider-btn {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: #ffffff;
    color: #0d1b2a;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ws-slider-btn:hover {
    background: #0a6e5c;
    color: #ffffff;
    border-color: #0a6e5c;
}

/* === Empty State === */
.ws-empty {
    text-align: center;
    padding: 80px 24px;
}

.ws-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(20, 200, 217, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: #FC9F5B;
}

.ws-empty h3 {
    font-size: 22px;
    font-weight: 800;
    color: #0d1b2a;
    margin: 0 0 10px;
}

.ws-empty p {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 28px;
}

.ws-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0a6e5c, #FC9F5B);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ws-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 110, 92, 0.30);
}

.ws-btn-full {
    width: 100%;
    justify-content: center;
}

/* =========================================================
   WORKSHOP DETAIL PAGE
========================================================= */

/* === Banner === */
.ws-detail-banner {
    position: relative;
    width: 100%;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: linear-gradient(135deg, #07192b, #0d3b66);
}

.ws-detail-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}

.ws-detail-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 25, 43, 0.95), rgba(7, 25, 43, 0.4));
}

.ws-detail-banner-content {
    position: relative;
    z-index: 2;
    padding: 50px 0 40px;
    width: 100%;
}

.ws-detail-category {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 999px;
    background: rgba(20, 200, 217, 0.20);
    color: #FC9F5B;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 16px;
    transition: background 0.2s;
}

.ws-detail-category:hover {
    background: rgba(20, 200, 217, 0.35);
}

.ws-detail-banner-content h1 {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 18px;
    line-height: 1.5;
}

.ws-detail-banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.ws-detail-banner-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ws-detail-banner-meta i {
    color: #FC9F5B;
}

.ws-online-tag {
    padding: 4px 12px;
    border-radius: 8px;
    background: rgba(20, 200, 217, 0.20);
    color: #FC9F5B;
    font-weight: 700;
}

/* === Detail Layout === */
.ws-detail-main {
    padding: 50px 0 80px;
}

.ws-detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* === Status Bar === */
.ws-status-bar {
    padding: 16px 22px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ws-status-upcoming {
    background: rgba(10, 110, 92, 0.08);
    color: #0a6e5c;
    border: 1px solid rgba(10, 110, 92, 0.15);
}

.ws-status-completed {
    background: rgba(107, 114, 128, 0.08);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.15);
}

/* === Description === */
.ws-detail-description {
    margin-bottom: 40px;
}

.ws-detail-description h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0d1b2a;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(20, 200, 217, 0.3);
}

.ws-detail-content-body {
    font-size: 16px;
    color: #374151;
    line-height: 2.1;
}

.ws-detail-content-body p {
    margin-bottom: 18px;
}

.ws-detail-content-body h2,
.ws-detail-content-body h3 {
    color: #0d1b2a;
    margin: 28px 0 14px;
}

/* === Instructor === */
.ws-instructor-card {
    margin-bottom: 40px;
}

.ws-instructor-card h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0d1b2a;
    margin: 0 0 18px;
}

.ws-instructor-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: 16px;
    background: #f8fafb;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ws-instructor-avatar {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.ws-instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-instructor-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a6e5c, #FC9F5B);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 30px;
}

.ws-instructor-info h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0d1b2a;
    margin: 0 0 4px;
}

.ws-instructor-info p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* === Info Grid === */
.ws-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ws-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 14px;
    background: #f8fafb;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ws-info-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(20, 200, 217, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a6e5c;
    font-size: 18px;
}

.ws-info-label {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 2px;
}

.ws-info-item strong {
    font-size: 14px;
    font-weight: 700;
    color: #0d1b2a;
}

/* === Registration Card === */
.ws-reg-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.ws-reg-header {
    padding: 22px 26px;
    background: linear-gradient(135deg, #07192b, #0d3b66);
}

.ws-reg-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.ws-reg-form {
    padding: 24px 26px;
}

.ws-form-group {
    margin-bottom: 18px;
}

.ws-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
}

.ws-form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: #f8fafb;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1C2B33;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.ws-form-control:focus {
    border-color: #FC9F5B;
    box-shadow: 0 0 0 3px rgba(20, 200, 217, 0.12);
    background: #ffffff;
}

.ws-form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.ws-form-error {
    display: block;
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
    font-weight: 600;
}

.ws-reg-submit {
    margin-top: 6px;
}

.ws-reg-note {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin: 14px 0 0;
}

.ws-reg-price {
    padding: 18px 26px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ws-price-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
}

.ws-price-amount {
    font-size: 20px;
    font-weight: 900;
    color: #0d1b2a;
}

.ws-price-amount.ws-free {
    color: #0a6e5c;
}

.ws-reg-closed,
.ws-reg-external {
    padding: 24px 26px;
    text-align: center;
}

.ws-reg-closed i {
    font-size: 28px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.ws-reg-closed p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.ws-reg-external p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 14px;
}

/* === Messages === */
.ws-reg-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.ws-msg-success {
    background: rgba(10, 110, 92, 0.08);
    color: #0a6e5c;
    border: 1px solid rgba(10, 110, 92, 0.15);
}

.ws-msg-error {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.15);
}

/* === Stats Card === */
.ws-stats-card {
    display: flex;
    gap: 1px;
    margin-top: 20px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.06);
}

.ws-stat {
    flex: 1;
    padding: 16px;
    background: #ffffff;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ws-stat i {
    color: #FC9F5B;
}

/* === Related Card === */
.ws-related-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 20px;
    margin-top: 20px;
}

.ws-related-card h4 {
    font-size: 16px;
    font-weight: 800;
    color: #0d1b2a;
    margin: 0 0 16px;
}

.ws-related-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    text-decoration: none;
    transition: opacity 0.2s;
}

.ws-related-item:last-child {
    border-bottom: none;
}

.ws-related-item:hover {
    opacity: 0.75;
}

.ws-related-image {
    flex: 0 0 64px;
    width: 64px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
}

.ws-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-related-info h5 {
    font-size: 14px;
    font-weight: 700;
    color: #0d1b2a;
    margin: 0 0 4px;
    line-height: 1.5;
}

.ws-related-info span {
    font-size: 12px;
    color: #9ca3af;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199px) {
    .ws-detail-layout {
        grid-template-columns: 1fr 340px;
        gap: 30px;
    }

    .ws-slider .ws-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 991px) {
    .ws-detail-layout {
        grid-template-columns: 1fr;
    }

    .ws-reg-card {
        position: static;
    }

    .ws-grid-upcoming {
        grid-template-columns: 1fr;
    }

    .ws-slider .ws-card {
        flex: 0 0 calc(70% - 12px);
    }
}

@media (max-width: 767px) {
    .ws-hero-title {
        font-size: 30px;
    }

    .ws-hero-desc {
        font-size: 15px;
    }

    .ws-section {
        padding: 50px 0;
    }

    .ws-section-head h2 {
        font-size: 26px;
    }

    .ws-grid-completed {
        grid-template-columns: 1fr;
    }

    .ws-detail-banner-content h1 {
        font-size: 26px;
    }

    .ws-info-grid {
        grid-template-columns: 1fr;
    }

    .ws-slider .ws-card {
        flex: 0 0 calc(85% - 12px);
    }
}
