:root {
    --header-height: 50px;
    --header-bg: #ffffff;
    --text-color: #000000;
    --text-muted: #7d7d7d;
    --border-color: #eeeeee;
    --color-purple-theme: #d8b4e2;
    --color-primary-from: #ff8fa3;
    --color-primary-to: #f4cdc2;
}

@font-face {
    font-family: 'Inter';
    font-weight: 400;
    src: url('../font/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-weight: 600;
    src: url('../font/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-weight: 700;
    src: url('../font/Inter-Bold.woff2') format('woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    width: 100%;
}

.page-content {
    background-color: #fff;
    min-height: 500px;
}

.festival-gallery-section {
    background-color: #fff;
    padding: 10px 0 50px;
    width: 100%;
}

.gallery-section-header {
    font-size: 20px;
    color: #323232;
    text-transform: uppercase;
    padding-top: 12px;
    text-align: center;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.gallery-filter-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 10px 15px 20px;
}

.gallery-filter-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.custom-select {
    position: relative;
    width: 170px;
    user-select: none;
}

.select-trigger {
    background: #fff;
    padding: 8px 12px;
    font-size: 12px;
    color: #7D7D7D;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0;
    height: 31px;
    border: 1px solid #eee;
    transition: all 0.2s;
}

.select-trigger:hover {
    color: #444;
    border-color: #ddd;
}

.select-value,
.select-input {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}

.select-input {
    border: none;
    outline: none;
    width: 100%;
    color: #444;
    background: transparent;
    font-family: inherit;
}

.select-input::placeholder {
    color: #7D7D7D;
}

.select-trigger .arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #555;
    margin-left: 10px;
    transition: transform 0.3s;
}

.custom-select.active .select-trigger .arrow {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: all 0.2s;
    border-top: 1px solid #eee;
}

.custom-select.active .select-options {
    opacity: 1;
    visibility: visible;
}

.option {
    padding: 7px 12px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.option:hover {
    background-color: #00c5b585;
    color: #ffffff;
}

.option.selected {
    background-color: #00c5b585 !important;
    color: #fff !important;
}

.filter-search-btn {
    background: linear-gradient(135deg, var(--color-primary-from, #ff8fa3), var(--color-primary-to, #ff8fa3));
    color: #fff;
    border: none;
    padding: 0 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 31px;
    flex-shrink: 0;
}

.filter-search-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(255, 143, 163,0.3);
}

.filter-divider {
    width: 1px;
    height: 14px;
    background: #eee;
    margin: 0 10px;
}

.status-quick-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 5px;
}
.status-quick-filters a{text-decoration: none}
.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.status-item span {
    font-size: 12px;
    color: #7D7D7D;
    white-space: nowrap;
}

.status-item .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}
.deadline .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.dot-green {
    background-color: #2ae5c7;
    box-shadow: 0 0 0 2px rgba(42, 229, 199, 0.1);
}

.dot-yellow {
    background-color: #F5A623;
    box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.1);
}

.dot-grey {
    background-color: #CCCCCC;
}

.status-item:hover {
    background: #fafafa;
}

.status-item.active {
    background: #f5f5f5;
}

.status-item.active span {
    color: #000;
    font-weight: 600;
}

@media (max-width: 768px) {
    .custom-select {
        width: 140px;
    }
}

@media (max-width: 480px) {
    .filter-group {
        width: 100%;
        gap: 8px;
    }

    .custom-select {
        flex: 1;
        min-width: 120px;
    }

    .filter-search-btn {
        width: 100%;
        margin-top: 5px;
    }

    .filter-divider {
        display: none;
    }

    .status-quick-filters {
        width: 100%;
        justify-content: flex-start;
        margin-top: 5px;
        padding-top: 10px;
        border-top: 1px solid #f9f9f9;
        gap: 15px;
    }
}

.registration-helper-wrap {
    margin-bottom: 30px;
    background: #f8fafc;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.registration-helper-bar {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    background: #fff;
    transition: background 0.3s;
    user-select: none;
}

.registration-helper-bar:hover {
    background: #f1f5f9;
}

.helper-icon {
    font-size: 18px;
    margin-right: 12px;
}

.helper-text {
    flex: 1;
    font-size: 13px;
    font-weight: 300;
    color: #666666;
}

.helper-arrow {
    transition: transform 0.3s ease;
    color: #94a3b8;
}

.registration-helper-bar.active .helper-arrow {
    transform: rotate(180deg);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background-color: #e2e8f0;
    border-top: 1px solid #e2e8f0;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-grid.show {
    max-height: 1000px;
    opacity: 1;
}

.process-item {
    background-color: #fff;
    padding: 20px 15px;
    position: relative;
    transition: all 0.3s ease;
}

.process-item:hover {
    background-color: #f9f9f9;
    transform: translateY(-2px);
}

.process-item.highlighted {
    background-color: #fff;
}

.step-num {
    font-size: 32px;
    font-weight: 900;
    color: #000;
    opacity: 0.05;
    position: absolute;
    top: 5px;
    right: 10px;
    font-style: italic;
    pointer-events: none;
}

.step-title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
}

.step-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

@media (max-width: 1100px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .page-title-section {
        padding: 10px 24px 10px;
    }

    .process-grid {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        background-color: transparent;
        border: none;
        gap: 15px;
    }

    .process-item {
        flex: 0 0 240px;
        scroll-snap-align: start;
        border: 1px solid #eee;
        padding: 25px 20px;
        background-color: #fff;
    }

    .process-header {
        margin-bottom: 20px;
        text-align: left;
    }

    .process-main-title {
        font-size: 20px;
    }
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.main-content-container {
    display: flex;
    gap: 30px;
    padding: 12px 0;
}

.content-left {
    flex: 1;
    min-width: 0;
}

.content-right {
    width: 300px;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #000;
    margin-bottom: 24px;
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.section-title .subtitle {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0;
}

.festival-grid-section {
    padding: 0 24px;
}

.festival-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 20px;
    justify-content: flex-start;
    width: 100%;
}

.festival-card-cell {
    position: relative;
    width: 100%;
    margin: 10px 0;
    min-width: 0;
}

.festival-card {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    z-index: 1;
}

.festival-card:hover {
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 12px 12px 0 0;
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
/*//cover*/
    display: block;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.festival-top-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #00c5b5;
    color: #fff;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px 0 10px 0;
    z-index: 2;
}

.festival-card:hover .card-poster img {
    opacity: 0.9;
}

.exclusive-ribbon {
    display: none;
}

.festival-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.festival-card {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.festival-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.card-info {
    padding: 12px 15px 15px;
}

.festival-name {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    cursor: pointer;
}

.festival-meta {
    display: none;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    height: 22px;
    overflow: hidden;
    margin-bottom: 12px;
}

.c-tag,
.tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.4;
}

.c-tag {
    background: #fff7ed;
    color: #ea580c;
    font-weight: 600;
}

.tag {
    background: #f3f4f6;
    color: #6b7280;
    border: none;
}

.qualification {
    font-size: 13px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deadline {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.edition-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}

.edition {
    font-size: 12px;
    color: #6b7280;
}

.promo-tag {
    font-size: 12px;
    color: #00c5b5;
    border: 1px solid #00c5b5;
    padding: 1px 4px;
    border-radius: 2px;
}

@media (min-width: 1600px) {

    .festival-matrix {
        grid-template-columns: repeat(5, 1fr);
    }

    .activity-card {
        flex: 0 0 calc(20% - 16px);
    }
}

@media (max-width: 1599px) {
    .festival-matrix {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px 15px;
    }
}

@media (max-width: 1250px) {

    .main-content-container {
        flex-direction: column;
        gap: 12px;
    }

    .content-right {
        width: 100%;
    }
}

@media (max-width: 1100px) {

    .festival-matrix {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 850px) {
    .festival-matrix {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .festival-grid-section {
        padding: 0 16px;
    }

    .festival-matrix {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .festival-card-cell {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .festival-card {
        position: relative;
        margin-bottom: 0;
    }

    .festival-name {
        font-size: 20px !important;
    }

    .festival-meta {
        font-size: 14px !important;
    }

    .reg-time,
    .event-time {
        font-size: 14px !important;
    }

    .tag {
        font-size: 13px !important;
        padding: 6px 12px !important;
    }

    .card-expand-panel {
        max-height: none;
        opacity: 1;
        padding: 20px 10px;
        text-align: left;
    }

    .expand-btn-flex {
        margin-top: 15px;
        justify-content: flex-start;
    }
}

.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    gap: 8px;
}

.layui-laypage a,
.layui-laypage-prev,
.layui-laypage-next {
    display: flex;
    width: 32px;
    height: 32px;
    float: left;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #7d7d7d;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.layui-laypage .layui-laypage-curr {
    background-color: #eee;
    color: #323232;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.layui-laypage a:hover:not(.active),
.page-prev:hover,
.page-next:hover {
    color: #323232;
}

.page-dots {
    color: #7d7d7d;
    padding: 0 5px;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.page-prev svg,
.page-next svg {
    stroke: #7d7d7d;
    transition: stroke 0.3s ease;
}

.page-prev:hover svg,
.page-next:hover svg {
    stroke: #323232;
}

@media (max-width: 640px) {
    .pagination {
        gap: 5px;
    }

    .page-numbers {
        gap: 2px;
    }
}

.latest-activities-module {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #ddd;
}

.activities-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.module-title {
    font-size: 20px;
    font-weight: 300;
    color: #323232;
    margin: 0;
    line-height: 1.2;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
}

.carousel-nav-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
    opacity: 0.6;
}

.carousel-nav-btn.prev {
    left: 4px;
}

.carousel-nav-btn.next {
    right: 4px;
}

.carousel-nav-btn svg {
    display: block;
}

.carousel-nav-btn svg path {
    stroke: #7d7d7d;
}

.carousel-nav-btn:hover {
    background: transparent;
    opacity: 1;
    transform: translateY(-50%);
}


.activities-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.activities-scroll-container::-webkit-scrollbar {
    display: none;
}

.activity-card {
    flex: 0 0 calc(16.6% - 15px);
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #eee;
}

.activity-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #fff;
    padding: 8px;
}

.activity-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.activity-card:hover .activity-poster img {
    opacity: 0.9;
}

.card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #5cb85c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.activity-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-name {
    font-size: 14px;
    font-weight: 600;
    color: #323232;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-meta-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.meta-tag {
    background-color: #fef4e8;
    color: #d4a373;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 2px;
}

.activity-bottom-meta {
    margin-top: auto;
    font-size: 11px;
    color: #999;
}

@media (max-width: 1200px) {
    .activity-card {
        flex: 0 0 calc(33.333% - 13.5px);
    }
}

@media (max-width: 768px) {
    .activity-card {
        flex: 0 0 calc(50% - 10px);
    }

    .carousel-nav-btn {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .latest-activities-module {
        padding: 0 4px;
    }

    .activity-card {
        flex: 0 0 100%;
    }

    .activities-scroll-container {
        gap: 15px;
    }
}