﻿/* ==========================================================================
   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;
    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;
    margin-right: 4px;
}

.filter-icon {
    width: 20px;
    height: 20px;
}

/* Filter Dropdown Menu
     ========================================================================== */
.filter-dropdown {
    position: absolute;
    top: calc(100% - 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 10px;
    z-index: 1000;
    max-height:62vh;
    overflow-y : auto;
}

.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;
    }

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-option {
    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-option:hover {
        background: #f8f8f8;
    }

    .filter-option.active {
        background: #000;
        color: white;
        border-color: #000;
    }

.filter-button {
    padding: 8px 16px;
    border: 1px solid black;
    border-radius: 5px;
    background: white;
    color: black;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .filter-button:hover {
        background: #f8f8f8;
    }

    .filter-button[aria-expanded="true"] {
        background: #f8f8f8;
    }



.filter-text {
    font-family: 'sst-roman', sans-serif;
    margin-right: 4px;
}

.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';
}

.filter-dropdown[hidden] {
    display: none;
}

.filter-dropdown:not([hidden]) {
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 768px) {
    .filter-dropdown {
        position: absolute;
        top: calc(100% - 10px);
        left: 50%;
        transform: translateX(-50%);
        width: 400px;
        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: 1rem;
    }

        .filter-section h3 {
            font-size: 1rem;
            margin-bottom: 1rem;
        }

    .filter-options {
        gap: 12px;
    }

/*    .filter-option {
        padding: 12px 16px;
        font-size: 0.875rem;
        text-align: center;
    }*/

    .filter-button {
        padding: 8px 16px;
        font-size: 1rem;
        justify-content: center;
    }

    .filter-count {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .filter-options {
        flex-wrap: wrap;
    }

    .filter-option {
        flex: 1;
        text-align: center;
        min-width: 120px;
    }
}

@media (max-width: 768px) {


    .load-more-container {
        margin: 1.5rem 0;
        gap: 0.75rem;
    }

    .item-count {
        font-size: 0.75rem;
    }

    .load-more-button {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}

/* Mentor Grid Styles
     ========================================================================== */
.mentors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    padding: 1rem;
    cursor: pointer;
}

.mentor-card {
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    align-items: stretch;
}

    .mentor-card:hover {
        transform: translateY(-5px);
    }

.mentor-image {
    width: 300px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.mentor-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .mentor-info h3 {
        margin: 0 0 0.5rem;
        font-size: 1.125rem;
        color: black;
    }

    .mentor-info .genre {
        color: black;
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .mentor-info p {
        color: black;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

.read-more {
    color: black;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .read-more:hover {
        text-decoration: underline;
    }

.read-more-arrow {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mentors-grid {
        grid-template-columns: repeat(1, 1fr);
        padding: 0;
    }

    .mentor-card {
        flex-direction: column;
    }

    .mentor-image {
        width: 100%;
        height: 350px;
    }

    .mentor-info p {
        font-size: 0.875rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: #fff;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
}

.close-modal {
    position: fixed;
    right: 20px;
    top: 20px;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    color: black;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 4rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.modal-image {
    width: 50%;
    margin: auto;
}

    .modal-image img {
        width: 100%;
        height: auto;
        border-radius: 4px;
    }

.modal-info {
    max-width: 800px;
    margin: 0 auto;
}

    .modal-info h3 {
        margin: 0 0 1rem;
        font-size: 1.75rem;
        color: black;
    }

    .modal-info #modalGenre {
        color: black;
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }

    .modal-info #modalDescription {
        color: black;
        line-height: 1.6;
    }

        .modal-info #modalDescription p {
            margin-bottom: 1.5rem;
        }

@media (max-width: 768px) {
    .modal-body {
        padding: 4rem 1rem 1rem;
    }

    .modal-image {
        width: 100%;
    }
}

/* Load More Button
     ========================================================================== */
.load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.item-count {
    font-size: 0.875rem;
    color: black;
}

.load-more-button {
    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-button:hover {
        background: black;
        color: white;
    }

/* 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 Counter
     ========================================================================== */


/* 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;
    }

/* Utility Classes
     ========================================================================== */


.font-bold {
    font-weight: bold;
}

/* Animations
     ========================================================================== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -8px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.br-mobile {
    display: none;
}
/* Responsive Styles
     ========================================================================== */
@media screen and (max-width: 768px) {
    .load-more-button {
        font-size: 0.875rem;
    }

    .br-mobile {
        display: block;
    }

    .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;
    }
}

.mentor-card[hidden] {
    display: none !important;
}
.hidden{
    display: none !important;
}

.no-content {
    text-align: center;
    padding: 30px;
    font-family: 'sst-roman', sans-serif;
    font-size: 1rem;
    color: #666;
    background: #f8f8f8;
    border-radius: 5px;
    max-width: 1200px;
    margin: 20px auto;
}

@media (max-width: 768px) {
    .no-content {
        padding: 20px;
        font-size: 0.875rem;
        margin: 15px 0;
    }
}

.no-content {
    text-align: center;
    grid-column-start: 2;
}

.modal-open {
    overflow: hidden;
}

.truncate-text {
    display: -webkit-box;
    -webkit-line-clamp: 8; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.is-hidden {
    display: none !important;
}

/*Added by Arunima - Start */
html[lang="vi-VN"] .no-content {
    font-family: 'SSTVN', sans-serif !important;
}

html[lang="vi-VN"] .workshops-content h2 {
    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"] .filter-text {
    font-family: 'SSTVN', sans-serif !important;
}

html[lang="vi-VN"] .workshop-counter {
    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;
}

html[lang="vi-VN"] .load-more-button {
    font-family: 'SSTVN', sans-serif !important;
}

html[lang="vi-VN"] .course-info h3 {
    font-family: 'SST W01 Medium', sans-serif !important;
}
/* End */


