/* ==========================================================================
   Workshop Styles - Main Stylesheet
   ========================================================================== */

/* Layout & Container
   ========================================================================== */
.tab-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Tab Navigation Components
     ========================================================================== */
.tab-buttons {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    justify-content: center;
    border-bottom: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
    font-family: 'sst-roman', sans-serif;
}

    .tab-buttons::-webkit-scrollbar {
        display: none;
    }

.tab-description {
    padding-bottom: 20px;
    font-size: 1.125rem;
}

.tab-info {
    text-align: center;
}

/* Tab Button Styles
     ========================================================================== */
.tab-btn {
    padding: 15px 30px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none !important;
    color: black;
    font-family: 'sst-roman';
    letter-spacing: 1px;
}

    .tab-btn::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #e0e0e0;
        transition: background-color 0.3s ease;
    }

    .tab-btn.active::after {
        background-color: #FF6B00;
    }


/* Tab Content Area
     ========================================================================== */
.tab-content {
    position: relative;
}

.tab-panel {
    display: none;
    padding: 20px;
    background: #fff;
    animation: fadeIn 0.5s ease;
}

    .tab-panel.active {
        display: block;
    }

/* Course Grid Layout
     ========================================================================== */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Course Card Components
     ========================================================================== */
.course-card {
    text-decoration: none;
    color: inherit;
    background: white;
    overflow: hidden;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.image-container {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}

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

/* Course Information Styles
     ========================================================================== */
.course-info {
    padding: 16px;
}

    .course-info h3 {
        margin: 0 0 12px 0;
        font-size: 1.125rem;
        font-weight: 600;
        color: #333;
        line-height: 1.4;
        font-family: 'sst-medium', sans-serif;
    }

.course-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 1rem;
    color: #666;
    font-family: 'sst-light';
}

.date {
    color: #888;
}

/* Banner/Carousel Section
     ========================================================================== */
.carousel-section {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    position: relative;
}

/* Workshop Content Area
     ========================================================================== */
.workshops-content {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 80%;
    max-width: 800px;
    padding: 20px;
}

    .workshops-content h2 {
        font-size: 2rem;
        margin-bottom: clamp(0.5rem, 2vw, 1rem);
        letter-spacing: 1px;
        font-family: 'sst-roman';
        font-weight: normal;
    }

    .workshops-content p {
        font-size: 1.125rem;
        max-width: 800px;
        margin: 0 auto;
    }

.workshop-counter {
    margin: 1rem 0;
    color: #666;
    font-size: 1.125rem;
    font-weight: 500;
    text-align: center;
    font-family: 'sst-roman', sans-serif;
}

.no-results {
    text-align: center;
    grid-column-start: 2;
}

/* Filter Components
     ========================================================================== */
.tab-filter {
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.filter-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f8f8;
    border: 1px solid black;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #333;
    transition: all 0.2s ease;
}

    .filter-button:hover {
        background: #f0f0f0;
    }

.filter-text {
    font-size: 1rem;
    font-weight: 500;
    font-family: 'sst-roman', sans-serif;
}

.filter-icon {
    width: 20px;
    height: 20px;
}

/* Filter Dropdown Menu
     ========================================================================== */
.filter-dropdown {
    position: absolute;
    top: calc(100% - 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px;
    z-index: 1000;
}

.filter-section {
    margin-bottom: 16px;
}

    .filter-section:last-child {
        margin-bottom: 0;
    }

    .filter-section h3 {
        font-size: 0.875rem;
        font-weight: 600;
        margin: 0 0 12px 0;
        color: #333;
    }

/* Filter Options
     ========================================================================== */
.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #666;
}

    .filter-option:last-child {
        margin-bottom: 0;
    }

    .filter-option input[type="checkbox"] {
        width: 16px;
        height: 16px;
        border-radius: 4px;
        border: 2px solid #ddd;
        cursor: pointer;
    }

    .filter-option span {
        user-select: none;
    }

.filter-dropdown[hidden] {
    display: none;
}

.filter-dropdown:not([hidden]) {
    animation: slideDown 0.2s ease;
}

/* Filter Section Styles
     ========================================================================== */
.filter-section {
    margin-bottom: 20px;
    text-align: left;
}

    .filter-section:last-child {
        margin-bottom: 0;
    }

    .filter-section h3 {
        font-size: 0.875rem;
        font-weight: 600;
        margin-bottom: 12px;
        color: #333;
    }

/* Button Groups
     ========================================================================== */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid #000;
    background: white;
    color: black;
    font-size: 0.875rem;
    width: 48%;
    cursor: pointer;
    transition: all 0.2s ease;
  }

    .filter-btn:hover {
        background: #f8f8f8;
    }

    .filter-btn.active {
        background: #000;
        color: white;
        border-color: #000;
    }

/* Date Range Controls
     ========================================================================== */
.date-range {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    justify-content: center;
    flex-direction: column;
}

.date-input {
    padding: 8px 12px;
    border: 1px solid black;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #333;
    width: 150px;
    font-family: 'sst-roman', sans-serif;
}

.date-separator {
    color: #666;
    font-size: 0.875rem;
}

/* Filter Counter
     ========================================================================== */
.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    color: black;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0 6px;
    font-family: 'sst-roman';
}

/* User Interface Elements
     ========================================================================== */


.load-more-btn {
    display: block;
    margin: 2rem auto;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: black;
    border: 1px solid black;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.125rem;
    transition: background-color 0.2s ease;
    font-family: 'sst-roman', sans-serif;
}

    .load-more-btn:hover {
        background-color: black;
        color: white;
    }
/* VN font changes
     ========================================================================== */
html[lang="vi-VN"] .workshop-counter {
    font-family: 'SSTVN', sans-serif !important;
}
html[lang="vi-VN"] .tab-buttons {
    font-family: 'SSTVN', sans-serif !important;
}
html[lang="vi-VN"] .tab-btn {
    font-family: 'SSTVN', sans-serif !important;
}
html[lang="vi-VN"] .workshops-content h2 {
    font-family: 'SSTVN', sans-serif !important;
}
html[lang="vi-VN"] .filter-text {
    font-family: 'SSTVN', sans-serif !important;
}
html[lang="vi-VN"] .date-input {
    font-family: 'SSTVN', sans-serif !important;
}
html[lang="vi-VN"] .filter-count {
    font-family: 'SSTVN', sans-serif !important;
}
html[lang="vi-VN"] .load-more-btn {
    font-family: 'SSTVN', sans-serif !important;
}


/*=======End============================*/ 

/* Utility Classes
     ========================================================================== */
.level-badge {
    position: absolute;
    top: unset;
    bottom: 0px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'sst-heavy';
}

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

/* Animations
     ========================================================================== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -8px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Responsive Styles
     ========================================================================== */
@media screen and (max-width: 768px) {


    .workshops-content h2 {
        font-size: 1.5rem;
        font-weight: normal;
    }

    .workshops-content p {
        font-size: 0.875rem;
        max-width: 100%;
        max-height: 100px;
    }

    .level-badge {
        font-size: 0.875rem;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
        padding: 6px 18px;
        font-size: 1.25rem;
    }

    .tab-description {
        font-size: 0.875rem;
    }

    .course-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
    }

    .course-info h3 {
        font-size: 0.875rem;
    }

    .course-meta {
        font-size: 13px;
    }

    .tab-buttons {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 5px;
        padding-left: 20px;
        padding-right: 20px;
        margin-bottom: 0px;
    }

    .tab-content::-webkit-scrollbar {
        display: none;
    }

    .tab-content {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .workshop-counter,
    .load-more-btn {
        font-size: 0.875rem;
    }
}

/* Small Screen Adjustments
     ========================================================================== */
@media screen and (max-width: 320px) {
    .filter-dropdown {
        width: 280px;
    }

    .date-input {
        font-size: 0.75rem;
        width: 120px;
    }
}
/*Adding Shubham Start */

html[lang="vi-VN"] .course-info h3 {
    font-family: 'SST W01 Medium', sans-serif !important;
}
/*End*/
