﻿/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --primary-color: #000;
    --secondary-color: #666;
    --background-light: #f8f8f8;
    --background-white: #fff;
    --border-radius-sm: 5px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 20px;
    --spacing-xl: 24px;
    --font-family-base: "sst-roman", sans-serif;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition-default: all 0.2s ease;
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-container {
    max-width: 100%;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
}

/* ==========================================================================
   Tab Navigation Components
   ========================================================================== */
.tab-buttons {
    display: flex;
    gap: 0;
    margin-bottom: var(--spacing-lg);
    justify-content: center;
    border-bottom: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
    font-family: var(--font-family-base);
}

    .tab-buttons::-webkit-scrollbar {
        display: none;
    }

.tab-description {
    padding-bottom: var(--spacing-lg);
    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: var(--transition-default);
    position: relative;
    text-decoration: none !important;
    color: var(--primary-color);
    font-family: var(--font-family-base);
    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: var(--spacing-lg);
    background: var(--background-white);
    animation: fadeIn 0.5s ease;
}

    .tab-panel.active {
        display: block;
    }

/* Banner/Carousel Section
  /* Banner/Carousel Section
     ========================================================================== */
.carousel-section {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide img {
    width: 50%;
}

.carousel-container {
    width: 100%;
    position: relative;
}

.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;
    }

.alpha-universe-logo {
    max-width: 100%;
    height: auto !important;
}

.tab-filter {
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.gallery-section {
    text-align: center;
}

.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 10px;
    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 span {
        user-select: none;
    }

.filter-dropdown[hidden] {
    display: none;
}

.filter-dropdown:not([hidden]) {
    animation: slideDown 0.0s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -8px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
/* 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;
        margin-top: 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;
    }

.load-more-btn {
    display: block;
    margin: 2rem auto;
    margin-bottom: 0 !important;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 1.125rem;
    transition: var(--transition-default);
    font-family: var(--font-family-base);
}

    .load-more-btn:hover {
        background-color: var(--primary-color);
        color: var(--background-white);
    }

.gallery {
    columns: 3;
    column-gap: 1em;
    padding: 1em;
}

.item {
    break-inside: avoid;
    margin-bottom: 1em;
    border-radius: 8px;
    overflow: hidden;
    transition: opacity 0.3s ease;
    visibility: visible;
    opacity: 1;
    position: relative;
    cursor: pointer;
}

    .item img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.3s ease;
    }

    .item:hover img {
        transform: scale(1.02);
    }

@media (max-width: 1200px) {
    .gallery {
        columns: 2;
    }
}

@media (max-width: 600px) {
    .gallery {
        columns: 2;
        column-gap: 0.5em;
        padding: 0.5em;
    }
}

.filters {
    display: flex;
    gap: 20px;
    padding: 1em;
    flex-wrap: wrap;
}

.filter-select {
    position: relative;
    min-width: 200px;
}

.filter-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.filter-option {
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .filter-option:hover {
        background: #f0f0f0;
    }

/*.active {
    display: block;
}*/

.clear-filters {
    padding: 10px 20px;
    background: white;
    color: black;
    border: 1px solid #000;
    border-radius: 4px;
    cursor: pointer;
    height: fit-content;
    align-self: center;
}

    .clear-filters:hover {
        background: #000;
        color: white;
    }

.item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.item:hover .overlay {
    opacity: 1;
}

.overlay p {
    margin: 5px 0;
    font-size: 14px;
}

/* Custom Select Box Styles */
.select-box {
    position: relative;
    width: 100%;
    font-family: "sst-roman", sans-serif;
}

.select-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

    .select-box-header:hover {
        background: #f0f0f0;
    }

    .select-box-header.active {
        border-color: #ff6b00;
        box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
    }

.selected-text {
    font-size: 0.875rem;
    color: var(--primary-color);
}

.arrow {
    width: 12px;
    height: 12px;
    position: relative;
    transition: transform 0.3s ease;
}

    .arrow::before,
    .arrow::after {
        content: "";
        position: absolute;
        width: 8px;
        height: 2px;
        background-color: var(--primary-color);
        top: 5px;
    }

    .arrow::before {
        left: 0;
        transform: rotate(45deg);
    }

    .arrow::after {
        right: 0;
        transform: rotate(-45deg);
    }

.select-box-header.active .arrow {
    transform: rotate(180deg);
}

.options-container {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

    .options-container.active {
        display: block;
        animation: slideDown 0.2s ease;
    }

.option {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

    .option:hover {
        background-color: #f8f8f8;
    }

    .option input[type="checkbox"] {
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

    .option label {
        font-size: 0.875rem;
        color: var(--primary-color);
        cursor: pointer;
        flex: 1;
    }

/* Scrollbar Styles for Options Container */
.options-container::-webkit-scrollbar {
    width: 6px;
}

.options-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.options-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

    .options-container::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .select-box {
        min-width: 160px;
    }

    .metadata-item {
        margin-bottom: 20px !important;
        width: 50% !important;
    }
}

@media screen and (max-width: 480px) {
    .select-box {
        width: 100%;
    }

    .filters {
        flex-direction: column;
        gap: 12px;
    }
}

@media screen and (max-width: 768px) {
    .tab-btn {
        width: 100%;
        text-align: center;
        padding: calc(var(--spacing-xs) - 2px) var(--spacing-md);
        font-size: 1.25rem;
    }

    .tab-description {
        font-size: 0.875rem;
    }

    .tab-buttons {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 var(--spacing-lg) 5px;
        margin-bottom: 0;
    }

    .tab-content::-webkit-scrollbar {
        display: none;
    }

    .tab-content {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

.location-data {
    font-size: 0.875rem;
    color: var(--primary-color);
    margin-top: 20px;
    font-family: var(--font-family-base);
    padding-bottom: 24px;
    border-bottom: 1px solid #e4e7eb;
    margin-bottom: 24px;
}

.metadata-data {
    font-size: 0.875rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--font-family-base);
    display: flex;
    flex-wrap: wrap;
}

.metadata-item {
    margin-bottom: 20px;
    width: 30%;
}

    .metadata-item h4 {
        font-size: 0.875rem;
        color: var(--primary-color);
        margin-bottom: 10px;
        font-family: var(--font-family-base);
    }

/* Small Screen Adjustments
     ========================================================================== */
@media screen and (max-width: 320px) {
    .filter-dropdown {
        width: 280px;
    }
}

/* Pagination Controls
   ========================================================================== */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
    font-family: var(--font-family-base);
}

.pagination-prev,
.pagination-next {
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: black;
    border: 1px solid black;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: 'sst-roman', sans-serif;
}

    .pagination-prev:hover,
    .pagination-next:hover {
        background: var(--primary-color);
        color: var(--background-white);
    }

    .pagination-prev:disabled,
    .pagination-next:disabled {
        background: var(--background-light);
        border-color: var(--secondary-color);
        color: var(--secondary-color);
        cursor: not-allowed;
        opacity: 0.7;
    }

.pagination-pages {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.pagination-page {
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: black;
    border: 1px solid black;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: 'sst-roman', sans-serif;
}

    .pagination-page:hover {
        background: var(--background-light);
    }

    .pagination-page.active {
        background: var(--primary-color);
        color: var(--background-white);
        cursor: default;
    }

.pagination-ellipsis {
    color: var(--secondary-color);
    font-size: 0.875rem;
    padding: 0 4px;
    user-select: none;
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--secondary-color);
    min-width: 120px;
    text-align: center;
}

.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;
}

/* 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"] .pagination-page {
    font-family: 'SSTVN', sans-serif !important;
}

html[lang="vi-VN"] .select-box {
    font-family: 'SSTVN', sans-serif !important;
}

html[lang="vi-VN"] .filter-text {
    font-family: 'SSTVN', sans-serif !important;
}

html[lang="vi-VN"] .pagination-prev {
    font-family: 'SSTVN', sans-serif !important;
}

html[lang="vi-VN"] .filter-count {
    font-family: 'SSTVN', sans-serif !important;
}

html[lang="vi-VN"] .pagination-next {
    font-family: 'SSTVN', sans-serif !important;
}
/* End*/
