/* ====================================
   MAIN CONTAINER & BODY STYLES
   ==================================== */
.inner-body {
    background-color: #fcfcfc;
    padding: 30px 0;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.inner-body::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 100% 0%, rgba(26, 60, 108, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.inner-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at 0% 100%, rgba(236, 236, 236, 0.5) 0%, transparent 70%);
    pointer-events: none;
}

/* ====================================
   TITLE STYLES
   ==================================== */
.inner-body-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a3c6c;
    margin-bottom: 20px;
    border-bottom: 2px solid #1a3c6c;
    display: inline-block;
    position: relative;
    z-index: 1;
}

/* ====================================
   SEARCH SECTION WITH ICONS
   ==================================== */
.search-decoration {
    position: relative;
    z-index: 1;
}

.input-icon-wrapper {
    position: relative;
}

/* Base styles for LTR (English) */
.input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #1a3c6c;
    font-size: 1rem;
    z-index: 10;
    opacity: 0.7;
    left: 12px;
    /* Default LTR position */
}

/* RTL override for icons - MOVE TO RIGHT SIDE */
[dir="rtl"] .input-icon {
    left: auto;
    /* Reset left */
    right: 12px;
    /* Position on right side */
}

/* LTR input padding */
.form-control.ps-5,
.form-select.ps-5 {
    padding-left: 2.5rem !important;
    padding-right: 1rem !important;
}

/* RTL input padding - switch padding sides */
[dir="rtl"] .form-control.ps-5,
[dir="rtl"] .form-select.ps-5 {
    padding-left: 1rem !important;
    padding-right: 2.5rem !important;
    /* Padding on right for icon */
}

/* Fix dropdown arrow in select for RTL */
.form-select {
    background-position: right 0.75rem center !important;
    /* Default LTR */
}

[dir="rtl"] .form-select {
    background-position: left 0.75rem center !important;
    /* Move arrow to left in RTL */
}

/* Fix the select text alignment */
[dir="rtl"] .form-select {
    text-align: right;
}

[dir="rtl"] select.form-select {
    background-position: left 0.75rem center;
    padding-right: 0.75rem;
    padding-left: 2rem;
}

/* Decorative line */
.decoration-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #1a3c6c, #ececec, #1a3c6c, transparent);
    margin: 20px 0 30px 0;
    opacity: 0.3;
}

/* RTL gradient direction fix */
[dir="rtl"] .decoration-line {
    background: linear-gradient(-90deg, transparent, #1a3c6c, #ececec, #1a3c6c, transparent);
}

/* ====================================
   FORM INPUTS
   ==================================== */
.inner-body-content .form-control,
.inner-body-content .form-select {
    border: 1px solid #e2e2e2;
    font-size: 0.8rem;
    padding: 7px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.inner-body-content .form-control:focus,
.inner-body-content .form-select:focus {
    border-color: #1a3c6c;
    box-shadow: 0 0 0 3px rgba(26, 60, 108, 0.1);
    outline: none;
}

/* ====================================
   BUTTON STYLES - SOFT GLOW EFFECT
   ==================================== */
.btn-search-theme,
.btn-register-theme {
    background-color: #1a3c6c;
    color: white;
    border: none;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
    cursor: pointer;
    font-weight: 500;
}

.btn-search-theme:hover,
.btn-register-theme:hover {
    background-color: #2a4c8c;
    /* Lighter blue for better contrast */
    color: white;
    /* Keep text white */
    box-shadow:
        0 6px 14px rgba(26, 60, 108, 0.35),
        0 0 0 2px rgba(255, 255, 255, 0.2);
    /* White inner glow for visibility */
    transform: translateY(-2px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-search-theme:active,
.btn-register-theme:active {
    transform: translateY(1px);
    background-color: #1a3c6c;
    /* Return to original color */
    box-shadow: 0 2px 6px rgba(26, 60, 108, 0.2);
    transition: all 0.1s ease;
}

/* Disabled state */
.btn-search-theme:disabled,
.btn-register-theme:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Search button specific */
.btn-search-theme {
    border-radius: 6px;
    font-size: 0.8rem;
    padding: 7px 12px;
}

/* Register button specific */
.btn-register-theme {
    border-radius: 30px;
    font-size: 0.8rem;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Icon styling in buttons */
.btn-search-theme i,
.btn-register-theme i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
    color: white;
    /* Ensure icons stay white */
}

.btn-search-theme:hover i,
.btn-register-theme:hover i {
    transform: scale(1.15);
    color: white;
}

/* ====================================
   COURSE CARDS
   ==================================== */
.course-card {
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a3c6c, #ececec);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* RTL gradient direction for card */
[dir="rtl"] .course-card::before {
    background: linear-gradient(-90deg, #1a3c6c, #ececec);
}

.course-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}

.course-card:hover::before {
    opacity: 1;
}

/* Card illustration */
.card-illustration {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(26, 60, 108, 0.1), rgba(236, 236, 236, 0.5));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #1a3c6c;
    transition: all 0.3s ease;
}

.course-card:hover .card-illustration {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(26, 60, 108, 0.15), rgba(236, 236, 236, 0.7));
}

.course-card h2 {
    font-size: 1.05rem;
    color: #1a3c6c;
    font-weight: 600;
    margin: 8px 0;
    line-height: 1.4;
}

.course-info-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* RTL letter-spacing fix */
[dir="rtl"] .course-info-label {
    letter-spacing: 0;
}

.course-date-box {
    font-size: 0.75rem;
    color: #555;
    background: #f8f9fa;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-left: 3px solid #1a3c6c;
    /* LTR */
}

/* RTL border side */
[dir="rtl"] .course-date-box {
    border-left: none;
    /* Remove LTR border */
    border-right: 3px solid #1a3c6c;
    /* Add RTL border */
}

/* ====================================
   LINKS AREA
   ==================================== */
.course-links-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.theme-link {
    font-size: 0.8rem;
    color: #1a3c6c;
    text-decoration: none;
    font-weight: 500;
    text-align: inherit;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.theme-link:hover {
    color: #0f2a4a;
    border-bottom-color: #1a3c6c;
    transform: translateX(2px);
    /* LTR hover move right */
}

/* RTL hover move left */
[dir="rtl"] .theme-link:hover {
    transform: translateX(-2px);
}

/* ====================================
   RTL ICON SPACING FIXES
   ==================================== */
[dir="rtl"] .me-1,
[dir="rtl"] .me-2,
[dir="rtl"] .me-3 {
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ms-1,
[dir="rtl"] .ms-2,
[dir="rtl"] .ms-3 {
    margin-right: 0.25rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .btn-register-theme i {
    margin-left: 0.25rem;
    margin-right: 0;
}

/* Fix ripple effect position for RTL */
[dir="rtl"] .btn-register-theme::after {
    left: auto;
    right: 50%;
    transform: translate(50%, -50%);
}

/* Fix Bootstrap icons direction in RTL */
[dir="rtl"] .bi-arrow-right::before {
    content: "\f12f";
    /* Changes to left arrow in RTL */
}

/* ====================================
   FOCUS STATES
   ==================================== */
.btn-search-theme:focus-visible,
.btn-register-theme:focus-visible,
.theme-link:focus-visible {
    outline: 2px solid #1a3c6c;
    outline-offset: 2px;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 768px) {
    .inner-body {
        padding: 20px 0;
    }

    .inner-body::before,
    .inner-body::after {
        width: 200px;
        height: 200px;
    }

    .inner-body-title {
        font-size: 1.2rem;
    }

    .decoration-line {
        margin: 15px 0 20px 0;
    }

    .course-card {
        padding: 15px;
    }

    .course-card h2 {
        font-size: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .inner-body-title {
        font-size: 1.1rem;
        display: block;
        text-align: center;
    }

    .btn-search-theme,
    .btn-register-theme {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .course-card {
        padding: 12px;
    }
}










/* ====================================
PRIMARY TYPE SELECTOR - HERO STYLE
==================================== */
.primary-type-selector {
    background: linear-gradient(135deg, #1a3c6c 0%, #2a4c8c 100%);
    border-radius: 16px;
    padding: 25px 30px;
    margin: 20px 0 30px 0;
    box-shadow: 0 10px 30px rgba(26, 60, 108, 0.2);
    position: relative;
    overflow: hidden;
}

.primary-type-selector::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.primary-type-label {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.primary-type-label i {
    font-size: 1.3rem;
}

.primary-type-select-wrapper {
    position: relative;
}

.primary-type-select {
    width: 100%;
    padding: 14px 45px 14px 20px;
    font-size: 1rem;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: white;
    color: #1a3c6c;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.primary-type-select:focus {
    outline: none;
    border-color: #c5a059;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.3);
}

.primary-type-select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a3c6c;
    font-size: 0.8rem;
    pointer-events: none;
    font-weight: 700;
}

[dir="rtl"] .primary-type-select-wrapper::after {
    right: auto;
    left: 20px;
    content: '▼';
    transform: translateY(-50%) scaleX(-1);
}

/* Empty state message */
.empty-state-message {
    text-align: center;
    padding: 60px 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ccc;
    margin: 20px 0;
}

.empty-state-icon {
    font-size: 3rem;
    color: #1a3c6c;
    margin-bottom: 15px;
    opacity: 0.6;
}

.empty-state-text {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.empty-state-hint {
    color: #888;
    font-size: 0.95rem;
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.empty-state-hint i {
    color: #c5a059;
}

/* Secondary filters row */
.secondary-filters {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

.secondary-filters-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hide course cards until type selected */
.courses-grid.hidden {
    display: none;
}

/* Show empty state when no type selected */
.empty-state-wrapper.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .primary-type-selector {
        padding: 20px;
    }

    .primary-type-label {
        font-size: 1rem;
    }

    .primary-type-select {
        padding: 12px 40px 12px 15px;
        font-size: 0.95rem;
    }
}






/* ====================================
   PROFESSIONAL TAB STYLES - LARGER & CENTERED
   Clean, modern, and noticeable
   ==================================== */

.tabs-container {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 40px;
    position: relative;
    padding: 10px 0 0;
}

.tabs-container::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1a3c6c 20%, #c5a059 80%, transparent);
    opacity: 0.2;
}

.tabs-container>div {
    display: flex;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: center;
}

.act-tab {
    background: transparent;
    border: none;
    padding: 20px 45px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    letter-spacing: 0.5px;
    min-width: 240px;
    text-align: center;
    border-radius: 12px 12px 0 0;
}

.act-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 4px;
    background: #1a3c6c;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    opacity: 0;
}

.act-tab:hover {
    color: #1a3c6c;
    background: #f8fafc;
    transform: translateY(-2px);
}

.act-tab:hover::after {
    left: 35%;
    right: 35%;
    opacity: 0.4;
    height: 4px;
}

.act-tab.active {
    color: #1a3c6c;
    font-weight: 700;
    background: linear-gradient(to top, #f8fafc, white);
    font-size: 1.4rem;
}

.act-tab.active::after {
    left: 15%;
    right: 15%;
    opacity: 1;
    background: #1a3c6c;
    height: 4px;
    box-shadow: 0 0 12px rgba(26, 60, 108, 0.5);
}

/* Count badges */
.act-tab .count {
    display: inline-block;
    margin-left: 12px;
    padding: 4px 12px;
    background: #e2e8f0;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a3c6c;
    transition: all 0.2s ease;
}

.act-tab.active .count {
    background: #1a3c6c;
    color: white;
    box-shadow: 0 2px 8px rgba(26, 60, 108, 0.3);
}

/* Add subtle icons */
.act-tab i {
    margin-right: 10px;
    font-size: 1.4rem;
    vertical-align: middle;
    color: #c5a059;
    transition: all 0.2s ease;
}

.act-tab.active i {
    color: #c5a059;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    .tabs-container>div {
        max-width: 700px;
        gap: 10px;
    }

    .act-tab {
        padding: 18px 35px;
        font-size: 1.2rem;
        min-width: 200px;
    }

    .act-tab.active {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .tabs-container {
        margin-bottom: 30px;
    }

    .tabs-container>div {
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 15px;
    }

    .act-tab {
        padding: 14px 25px;
        font-size: 1.1rem;
        min-width: 180px;
        flex: 1 1 auto;
    }

    .act-tab.active {
        font-size: 1.2rem;
    }

    .act-tab i {
        font-size: 1.2rem;
        margin-right: 6px;
    }

    .act-tab .count {
        margin-left: 8px;
        padding: 3px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .tabs-container>div {
        flex-direction: column;
        gap: 5px;
        padding: 0 15px;
    }

    .act-tab {
        width: 100%;
        padding: 16px 20px;
        font-size: 1.1rem;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    }

    .act-tab::after {
        display: none;
    }

    .act-tab.active {
        background: #1a3c6c;
        color: white;
        border-color: #1a3c6c;
        font-size: 1.1rem;
    }

    .act-tab.active i {
        color: white;
    }

    .act-tab.active .count {
        background: rgba(255, 255, 255, 0.2);
        color: white;
    }

    .act-tab i {
        font-size: 1.3rem;
    }
}

/* RTL Support */
[dir="rtl"] .act-tab {
    letter-spacing: 0;
}

[dir="rtl"] .act-tab i {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .act-tab .count {
    margin-left: 0;
    margin-right: 12px;
}

[dir="rtl"] .act-tab::after {
    left: auto;
    right: 50%;
}

[dir="rtl"] .act-tab:hover::after {
    left: 35%;
    right: 35%;
}

[dir="rtl"] .act-tab.active::after {
    left: 15%;
    right: 15%;
}