/**
 * Diploma Page CSS Classes
 * (copied from Course Details external design)
 */
:root {
    --breadcrumb-bg: #FDF8F0;
    --breadcrumb-text-primary: #212529;
    --breadcrumb-text-secondary: #6c757d;
    --breadcrumb-divider-color: #FBBB04;
    --breadcrumb-spacing-xs: 1rem;
    --breadcrumb-spacing-sm: 1.5rem;
    --breadcrumb-spacing-md: 2rem;
    --breadcrumb-spacing-lg: 3rem;
    --breadcrumb-spacing-xl: 4.5rem;
    --breadcrumb-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

section.breadcrumb-hero {
    background-color: var(--breadcrumb-bg) !important;
    padding: var(--breadcrumb-spacing-lg) 0 !important;
    position: relative;
    overflow: hidden;
    height: 240px;
}

.breadcrumb-hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--breadcrumb-spacing-xs);
}

.breadcrumb-hero__wrapper {
    display: flex;
    align-items: center;
    gap: var(--breadcrumb-spacing-md);
    flex-wrap: wrap;
    flex-direction: column;
}

.breadcrumb-hero__image-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    max-width: 48px !important;
    margin: 0 auto;
}

.breadcrumb-hero__image-wrapper img,
.breadcrumb-hero__image {
    width: 100% !important;
    max-width: 48px !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
    border-radius: 8px;
    transition: var(--breadcrumb-transition);
}

.breadcrumb-hero__divider {
    display: none;
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 2px;
    height: 80%;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--breadcrumb-divider-color),
        transparent
    );
    margin-left: var(--breadcrumb-spacing-sm);
}

[dir="rtl"] .breadcrumb-hero__divider {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: var(--breadcrumb-spacing-sm);
}

.breadcrumb-hero__content {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.breadcrumb-hero__content h1,
.breadcrumb-hero__title {
    font-size: clamp(1.25rem, 3vw, 1.75rem) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: var(--breadcrumb-text-primary) !important;
    margin: 0 0 var(--breadcrumb-spacing-xs) 0 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.breadcrumb-hero__description {
    font-size: clamp(0.875rem, 2vw, 1rem) !important;
    line-height: 1.7 !important;
    color: var(--breadcrumb-text-secondary) !important;
    margin: 0 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.breadcrumb-hero__video-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    max-width: 100% !important;
    margin: 0 auto;
    order: -1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: sticky;
    bottom: 30px;
    z-index: 10;
}

.breadcrumb-hero__video-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.breadcrumb-hero__video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
    max-width: 100% !important;
    transition: all 0.3s ease;
}

.breadcrumb-hero__video-wrapper:hover .breadcrumb-hero__video-responsive {
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(175, 137, 70, 0.3);
}

.breadcrumb-hero__video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 0;
}

.training-details-area {
    /* Pull content up to sit just under breadcrumb */
    padding-top: 0;
    padding-bottom: 90px;
    margin-top: -20px;
}

.container.mycontainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.content-grid-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    width: 100%;
    min-width: 0;
}

html[dir="rtl"] .content-grid-wrapper {
    grid-template-columns: 1fr 2fr;
}

html[dir="ltr"] .content-grid-wrapper,
body:not([dir="rtl"]) .content-grid-wrapper {
    grid-template-columns: 2fr 1fr;
}

.form-container {
    border: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    overflow: hidden;
}

.section-nav-bar {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
    padding-bottom: 0;
    gap: 0;
}

.nav-tab {
    padding: 12px 18px;
    text-decoration: none;
    color: #999;
    font-size: 18px;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease, font-size 0.3s ease, padding 0.3s ease;
    white-space: nowrap;
    flex: 0 0 auto;
}

.nav-tab:hover {
    color: #333;
}

.nav-tab.active {
    color: #000;
    font-weight: 600;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #000;
    z-index: 1;
}

html[dir="rtl"] .section-nav-bar {
    flex-direction: row-reverse;
}

html[dir="ltr"] .section-nav-bar,
body:not([dir="rtl"]) .section-nav-bar {
    flex-direction: row;
}

#desc, #skills-section, #training-projects-section, #job-opportunities-section, #annual-income-section, #expert-section {
    scroll-margin-top: 20px;
}

.training-project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.training-project-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.training-project-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.project-image-wrapper {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: #f5f5f5;
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-title-banner {
    background-color: #FBBB04;
    padding: 15px;
    text-align: center;
}

.project-title {
    margin: 0;
    font-weight: bold;
    color: #000;
    font-size: 1rem;
}

.opportunities-list, .income-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.opportunities-list li, .income-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-right: 20px;
}

.opportunities-list li:before, .income-list li:before {
    content: "• ";
    color: #FBBB04;
    font-weight: bold;
    position: absolute;
    right: 0;
}

html[dir="ltr"] .opportunities-list li, html[dir="ltr"] .income-list li {
    padding-right: 0;
    padding-left: 20px;
}

html[dir="ltr"] .opportunities-list li:before, html[dir="ltr"] .income-list li:before {
    right: auto;
    left: 0;
}

.mysidebar {
    border: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
}

.new-sidebar-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.sidebar-price-section {
    background: #000;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.price-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #FBBB04;
}

.price-currency {
    font-size: 1.2rem;
}

.attendance-toggle-section {
    margin-bottom: 20px;
}

.toggle-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.toggle-buttons {
    display: flex;
    gap: 10px;
}

.toggle-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #FBBB04;
    background: white;
    color: #FBBB04;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn.active {
    background: #FBBB04;
    color: #000;
}

.countdown-message {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.countdown-text {
    color: red;
    font-weight: bold;
}

.accordion-section {
    margin-bottom: 20px;
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    background: #000;
    color: #fff;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-title {
    font-weight: bold;
}

.accordion-icon {
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.cards-scroll-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
}

.detail-card {
    border: 1px solid #000;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.detail-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.detail-card.selected {
    border-color: #FBBB04;
    background: #f9f9f9;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: bold;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.card-info i {
    color: #FBBB04;
    margin-top: 3px;
}

.card-price {
    font-weight: bold;
    color: #FBBB04;
    background: #fff3cd;
    padding: 5px 10px;
    border-radius: 4px;
}

.schedule-list, .days-list {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
}

.schedule-list li, .days-list li {
    padding: 3px 0;
}

.schedule-list li:before, .days-list li:before {
    content: "• ";
    color: #FBBB04;
    font-weight: bold;
}

.enroll-button-section {
    margin-top: 5px;
    position: sticky;
    bottom: 0;
}

.enroll-btn {
    width: 100%;
    padding: 15px;
    background: #FBBB04;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.enroll-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.enroll-btn:not(:disabled):hover {
    background: #e0a800;
}

.no-data-message {
    padding: 20px;
    text-align: center;
    color: #999;
}

.profile-container {
    max-width: 900px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgb(235, 229, 229);
    margin: 20px auto;
}

.skills-photo-container {
    max-width: 900px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgb(235, 229, 229);
    margin: 20px auto;
    text-align: center;
}

.skills-photo-img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.profile-image {
    width: 150px;
    border-radius: 50%;
    object-fit: cover;
    max-width: 100%;
}

.arabic-text {
    font-family: 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
}

.linkedin-icon {
    color: #0077b5;
    font-size: 1.2rem;
    margin-right: 5px;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
}

.course-info-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.info-title {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.info-card {
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 25px 15px;
    height: 100%;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.info-heading {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.info-text {
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .breadcrumb-hero__video-wrapper {
        max-width: 90% !important;
    }
}

@media (min-width: 576px) {
    .breadcrumb-hero {
        padding: var(--breadcrumb-spacing-xl) 0;
    }

    .breadcrumb-hero__container {
        padding: 0 var(--breadcrumb-spacing-sm);
    }

    .breadcrumb-hero__image-wrapper {
        max-width: 60px !important;
    }

    .breadcrumb-hero__image-wrapper img,
    .breadcrumb-hero__image {
        max-width: 60px !important;
    }
}

@media (min-width: 768px) {
    .breadcrumb-hero__wrapper {
        flex-wrap: nowrap;
        gap: var(--breadcrumb-spacing-lg);
        flex-direction: row;
    }

    .breadcrumb-hero__image-wrapper {
        max-width: 72px !important;
        margin: 0;
    }

    .breadcrumb-hero__image-wrapper img,
    .breadcrumb-hero__image {
        max-width: 72px !important;
    }

    .breadcrumb-hero__divider {
        display: block;
    }

    .breadcrumb-hero__title {
        margin-bottom: var(--breadcrumb-spacing-sm);
    }

    .breadcrumb-hero__content {
        text-align: left;
        flex: 1;
    }

    [dir="rtl"] .breadcrumb-hero__content {
        text-align: right;
    }

    .breadcrumb-hero__video-wrapper {
        max-width: 280px !important;
        flex: 0 0 280px !important;
        margin: 0;
        order: 0;
    }

    [dir="rtl"] .breadcrumb-hero__video-wrapper {
        order: 2;
    }

    html:not([dir="rtl"]) .breadcrumb-hero__video-wrapper {
        order: -1;
    }
}

@media (min-width: 992px) {
    .breadcrumb-hero__container {
        padding: 0 var(--breadcrumb-spacing-md);
    }

    .breadcrumb-hero__image-wrapper {
        max-width: 84px !important;
    }

    .breadcrumb-hero__image-wrapper img,
    .breadcrumb-hero__image {
        max-width: 84px !important;
    }

    .breadcrumb-hero__video-wrapper {
        max-width: 320px !important;
        flex: 0 0 320px !important;
    }

    .breadcrumb-hero__title {
        font-size: 1.875rem !important;
    }

    .breadcrumb-hero__description {
        font-size: 1.0625rem !important;
    }
}

@media (min-width: 1200px) {
    .breadcrumb-hero__image-wrapper {
        max-width: 96px !important;
    }

    .breadcrumb-hero__image-wrapper img,
    .breadcrumb-hero__image {
        max-width: 96px !important;
    }

    .breadcrumb-hero__video-wrapper {
        max-width: 350px !important;
        flex: 0 0 350px !important;
    }
}

@media (max-width: 991.98px) {
    .content-grid-wrapper {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

@media (max-width: 767.98px) {
    .nav-tab {
        padding: 10px 12px;
        font-size: 16px;
    }

    .profile-image {
        width: 120px;
        margin-bottom: 15px;
    }

    .profile-container {
        padding: 15px 10px;
    }

    .description {
        font-size: 1rem;
        text-align: center;
    }

    .linkedin-section {
        text-align: center;
        margin: 15px 0;
    }

    .arabic-text {
        text-align: center;
        margin-bottom: 15px;
    }

    .arabic-text h3 {
        font-size: 1.4rem;
    }

    .arabic-text h5 {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .nav-tab {
        padding: 8px 10px;
        font-size: 15px;
    }

    .profile-image {
        width: 100px;
    }

    .arabic-text h3 {
        font-size: 1.2rem;
    }
}

