

        /* ============================================ */
/* BASE STYLES */
/* ============================================ */
.ribbon-tab:focus { outline: none !important; box-shadow: none !important; }

*, *::before, *::after {
    box-sizing: border-box;
}

.ribbon-container {
    display: flex;
    gap: 0;
    margin: 20px 0 30px;
    min-height: 400px;
    width: 100%;
    max-width: 100%;
}

.ribbon-content-area {
    flex: 1;
    min-width: 0;
    background: var(--bg-card-front, #ffffff);
    border: 1px solid var(--border-light, #e8e8e8);
    border-radius: 8px 0 0 8px;
    padding: 30px 35px;
    box-shadow: 0 4px 20px var(--shadow-light, rgba(0,0,0,0.04));
    min-height: 400px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.ribbon-content-area .category-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-light, #e8e8e8);
}

.ribbon-content-area .category-header h2 {
    font-family: var(--font-primary, 'Georgia', serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    margin: 0;
}

.ribbon-content-area .category-header h2 span {
    color: var(--gold, #c9a84c);
}

.ribbon-content-area .category-header p {
    font-size: 14px;
    color: var(--text-secondary, #555555);
    font-family: var(--font-primary, 'Georgia', serif);
    font-style: italic;
    margin: 5px 0 0;
}

/* ============================================ */
/* IMAGE CAROUSEL */
/* ============================================ */
.image-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-light, #e8e8e8);
    background: #1a1a1a;
    width: 100%;
    max-width: 100%;
}

.image-carousel {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    max-width: 100%;
}

.image-carousel .slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-carousel .slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    background: rgba(0,0,0,0.7);
    flex-wrap: wrap;
}

.carousel-dots .dot {
    display: inline-block !important;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 10px;
    min-height: 10px;
    padding: 0;
}

.carousel-dots .dot.active {
    background: var(--gold, #c9a84c);
    transform: scale(1.2);
}

.carousel-dots .dot:hover {
    background: rgba(255,255,255,0.6);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background: var(--gold, #c9a84c);
}

.carousel-arrow-left { left: 10px; }
.carousel-arrow-right { right: 10px; }

/* ============================================ */
/* NEWLY ADDED SECTION */
/* ============================================ */
.newly-added-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.badge-new {
    display: inline-block;
    background: rgba(201, 168, 76, 0.15);
    color: #c9a84c;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.newly-added-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin: 15px 0 25px;
    padding: 0 35px;
    width: 100%;
    max-width: 100%;
}

.newly-added-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 15px;
    will-change: transform;
}

.newly-added-item {
    flex: 0 0 calc(25% - 12px);
    min-width: calc(25% - 12px);
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1/1;
    border: 2px solid transparent;
    transition: border-color 0.3s, transform 0.3s;
}

.newly-added-item:hover {
    border-color: var(--gold, #c9a84c);
    transform: scale(1.05);
}

.newly-added-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.newly-added-item .new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff4444;
    color: white;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

.newly-added-item .item-date {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 9px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.newly-added-item .item-date i {
    font-size: 8px;
    color: var(--gold, #c9a84c);
}

.newly-added-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    font-size: 14px;
}

.newly-added-carousel-btn:hover {
    background: var(--gold, #c9a84c);
}

.newly-added-carousel-btn-left { left: 6px; }
.newly-added-carousel-btn-right { right: 6px; }

.newly-added-carousel-dots {
    text-align: center;
    margin-top: 10px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 20px;
}

.newly-added-carousel-dots .dot {
    display: inline-block !important;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.3s;
    min-width: 8px;
    min-height: 8px;
}

.newly-added-carousel-dots .dot.active {
    background: var(--gold, #c9a84c);
}

/* ============================================ */
/* ALL MODULARS SECTION */
/* ============================================ */
.all-modulars-section {
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.all-modulars-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-light, #e8e8e8);
}

.all-modulars-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    margin: 0;
    font-family: var(--font-primary, 'Georgia', serif);
}

.all-modulars-header h2 span {
    color: var(--gold, #c9a84c);
}

.all-modulars-header .modular-count {
    font-size: 13px;
    color: var(--text-muted, #999);
    font-family: var(--font-secondary, 'Segoe UI', sans-serif);
}

.all-modulars-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.all-modulars-filter label {
    font-size: 13px;
    color: var(--text-secondary, #555555);
    margin: 0;
    font-family: var(--font-secondary, 'Segoe UI', sans-serif);
}

.all-modulars-filter select {
    padding: 4px 10px;
    border: 1px solid var(--border-light, #e8e8e8);
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: var(--text-primary, #1a1a1a);
    font-family: var(--font-secondary, 'Segoe UI', sans-serif);
    cursor: pointer;
    outline: none;
}

.all-modulars-filter select:focus {
    border-color: var(--gold, #c9a84c);
}

.modular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

.modular-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modular-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.modular-card .modular-image {
    width: 100%;
    height: 75%;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}

.modular-card .modular-name {
    padding: 10px 12px 0;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-primary, 'Georgia', serif);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modular-card .modular-name span {
    color: var(--gold, #c9a84c);
}

/* ============================================ */
/* PAGINATION */
/* ============================================ */
.pagination-container {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination-container .page-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 13px;
}

.pagination-container .page-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.pagination-container .page-btn.active {
    background: var(--gold, #c9a84c);
    color: #fff;
    border-color: var(--gold, #c9a84c);
}

.pagination-container .page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================ */
/* IMAGE MODAL */
/* ============================================ */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-modal.show {
    display: flex !important;
}

.modal-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 8px;
    background: transparent;
}

.modal-image-wrapper {
    position: relative;
    max-height: 80vh;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-wrapper img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    cursor: grab;
    user-select: none;
}

.modal-image-wrapper img:active {
    cursor: grabbing;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 20px;
    background: rgba(0,0,0,0.7);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #dc3545;
    transform: rotate(90deg) scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-nav:hover {
    background: var(--gold, #c9a84c);
    border-color: var(--gold, #c9a84c);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-left { left: 10px; }
.modal-nav-right { right: 10px; }

.modal-counter {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    margin-top: 10px;
    font-weight: 300;
}

.modal-counter span {
    color: var(--gold, #c9a84c);
    font-weight: 600;
}

/* Modal thumbnail strip */
.modal-thumb-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 4px;
    flex-wrap: wrap;
    max-width: 90vw;
    margin: 0 auto;
}
.modal-thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    background: #2a2a2a;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.modal-thumb:hover {
    border-color: rgba(201, 168, 76, 0.5);
    transform: translateY(-2px);
}
.modal-thumb.active {
    border-color: #c9a84c;
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.25);
}

/* ============================================ */
/* RIBBON SIDE - DESKTOP */
/* ============================================ */
.ribbon-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 0;
    flex-shrink: 0;
    width: 160px;
    position: relative;
    z-index: 2;
    padding-top: 10px;
}

.ribbon-tab {
    position: relative;
    padding: 14px 20px 12px 18px;
    background: var(--bg-card-front, #ffffff);
    border: none;
    border-radius: 0 8px 8px 0;
    font-family: var(--font-primary, 'Georgia', serif);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #555555);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: left;
    box-shadow: 2px 2px 8px var(--shadow-light, rgba(0,0,0,0.04));
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 48px;
    width: 100%;
    text-decoration: none !important;
    border-left: none;
}

.ribbon-tab::after {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    width: 12px;
    height: 100%;
    background: inherit;
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
    border-left: 1px solid var(--border-light, #e8e8e8);
    border-top: 1px solid var(--border-light, #e8e8e8);
    border-bottom: 1px solid var(--border-light, #e8e8e8);
    border-radius: 4px 0 0 4px;
}

.ribbon-tab::before {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 100%;
    height: 10px;
    background: inherit;
    clip-path: polygon(100% 0, 50% 100%, 0 0);
    border: 1px solid var(--border-light, #e8e8e8);
    border-top: none;
    border-radius: 0 0 4px 4px;
    opacity: 0;
    transition: all 0.3s ease;
}

.ribbon-tab.active {
    background: var(--gold, #c9a84c);
    color: #ffffff;
    border-color: var(--gold, #c9a84c);
    box-shadow: 4px 4px 20px rgba(201, 168, 76, 0.25);
    transform: translateX(4px);
    z-index: 3;
}

.ribbon-tab.active::after {
    border-color: var(--gold, #c9a84c);
    background: var(--gold, #c9a84c);
}

.ribbon-tab.active::before {
    opacity: 1;
    border-color: var(--gold, #c9a84c);
    background: var(--gold-dark, #a8893a);
}

.ribbon-tab:hover:not(.active) {
    background: var(--gold-light, #e8d5a3);
    border-color: var(--gold, #c9a84c);
    color: var(--text-primary, #1a1a1a);
    transform: translateX(4px);
}

.ribbon-tab i {
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.ribbon-tab.active i {
    color: #ffffff;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state .empty-icon {
    font-size: 60px;
    color: var(--gold, #c9a84c);
    opacity: 0.2;
    display: block;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    color: #666;
    font-weight: 300;
}

.empty-state p {
    font-size: 14px;
    color: #999;
}

/* ============================================ */
/* VIDEO SECTION */
/* ============================================ */
.video-section-wrapper {
    margin: 20px 0 30px 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.video-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.video-section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    margin: 0;
    font-family: var(--font-primary, 'Georgia', serif);
}

.video-section-header h2 span {
    color: #c9a84c;
    font-weight: 700;
}

.video-section-header .video-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-section-header .video-filter-group label {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.video-section-header .video-filter-group select {
    padding: 4px 10px;
    border: 1px solid #e0d5c0;
    border-radius: 6px;
    font-size: 12px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary, 'Georgia', serif);
}

.video-section-header .video-filter-group select:focus {
    outline: none;
    border-color: #c9a84c;
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.1);
}

.video-counter-badge {
    display: inline-block;
    background: rgba(201, 168, 76, 0.12);
    color: #c9a84c;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
    font-family: var(--font-primary, 'Georgia', serif);
}

.video-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.video-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 0 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    max-width: 100%;
}

.video-carousel::-webkit-scrollbar { display: none; }

.video-card {
    flex: 0 0 calc(25% - 9px);
    min-width: 180px;
    max-width: 280px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e0d0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #c9a84c;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #1a1a1a;
    overflow: hidden;
}

.video-thumbnail video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.video-thumbnail .video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.15);
    transition: background 0.3s ease;
    z-index: 1;
}

.video-card:hover .video-thumbnail .video-overlay {
    background: rgba(0,0,0,0.05);
}

.video-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 40px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
    z-index: 2;
}

.video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    color: #c9a84c;
}

.video-card .video-info { padding: 6px 10px 8px; }

.video-card .video-info .video-date {
    font-size: 10px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-primary, 'Georgia', serif);
}

.video-card .video-info .video-date i {
    font-size: 10px;
    color: #c9a84c;
}

.video-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px; height: 32px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-carousel-btn:hover {
    background: #c9a84c;
    transform: translateY(-50%) scale(1.1);
}

.video-carousel-btn-left { left: 6px; }
.video-carousel-btn-right { right: 6px; }

.video-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

/* Video Modal */
.video-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.video-modal-overlay.show { display: flex !important; }

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.video-modal-close {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 10;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px; height: 38px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-close:hover {
    background: #c9a84c;
    transform: scale(1.1);
}

.video-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 42px; height: 42px;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-nav:hover {
    background: #c9a84c;
    transform: translateY(-50%) scale(1.1);
}

.video-modal-nav-left { left: 10px; }
.video-modal-nav-right { right: 10px; }

.video-modal-wrapper { width: 100%; }

.video-modal-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.video-modal-container video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
}

.video-modal-info {
    padding: 10px 20px 12px;
    background: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-modal-info .video-date-modal {
    color: #999;
    font-size: 13px;
    font-family: var(--font-primary, 'Georgia', serif);
}

.video-modal-info .video-date-modal i {
    color: #c9a84c;
    margin-right: 5px;
}

.video-counter-modal {
    color: #666;
    font-size: 12px;
    font-family: var(--font-primary, 'Georgia', serif);
}

.video-counter-modal span {
    color: #c9a84c;
    font-weight: 600;
}

.no-videos {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-family: var(--font-primary, 'Georgia', serif);
}

.no-videos i {
    font-size: 36px;
    opacity: 0.3;
    display: block;
    margin-bottom: 10px;
}

.no-videos h3 {
    font-size: 16px;
    color: #666;
    font-weight: 300;
    margin: 0;
}

.no-videos h3 span {
    color: #c9a84c;
    font-weight: 600;
}

/* ============================================ */
/* ALL MODULARS FILTER BAR */
/* ============================================ */
.filter-search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #fcf9f5;
    border: 1px solid #e8e0d0;
    border-radius: 8px;
    margin-bottom: 18px;
    width: 100%;
    max-width: 100%;
}

.filter-search-bar .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-search-bar .filter-group label {
    font-size: 12px;
    color: #666;
    margin: 0;
    font-family: var(--font-primary, 'Georgia', serif);
}

.filter-search-bar .filter-group select {
    padding: 5px 10px;
    border: 1px solid #e0d5c0;
    border-radius: 6px;
    font-size: 12px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-family: var(--font-primary, 'Georgia', serif);
}

.filter-search-bar .filter-group select:focus {
    outline: none;
    border-color: #c9a84c;
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.1);
}

.filter-search-bar .search-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 200px;
}

.filter-search-bar .search-group input {
    flex: 1;
    padding: 6px 12px;
    border: 1px solid #e0d5c0;
    border-radius: 6px;
    font-size: 13px;
    font-family: var(--font-primary, 'Georgia', serif);
    background: #fff;
}

.filter-search-bar .search-group input:focus {
    outline: none;
    border-color: #c9a84c;
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.1);
}

.filter-search-bar .search-btn {
    padding: 6px 14px;
    background: #c9a84c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-primary, 'Georgia', serif);
    transition: all 0.3s ease;
}

.filter-search-bar .search-btn:hover {
    background: #b89a3a;
}

.filter-search-bar .clear-search-btn {
    padding: 6px 12px;
    background: #fff;
    color: #dc3545;
    border: 1px solid #e8e0d0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-primary, 'Georgia', serif);
    display: none;
    transition: all 0.3s ease;
}

.filter-search-bar .clear-search-btn.visible { display: inline-block; }

.filter-search-bar .clear-search-btn:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.filter-search-bar .results-count {
    font-size: 12px;
    color: #888;
    font-family: var(--font-primary, 'Georgia', serif);
}

.filter-search-bar .results-count span {
    color: #c9a84c;
    font-weight: 700;
}

.no-results-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-family: var(--font-primary, 'Georgia', serif);
}

.no-results-message i {
    font-size: 40px;
    opacity: 0.3;
    display: block;
    margin-bottom: 10px;
}

.no-results-message h3 {
    font-size: 16px;
    color: #666;
    margin-bottom: 6px;
}

.no-results-message h3 span {
    color: #c9a84c;
    font-weight: 600;
}

.no-results-message p {
    font-size: 13px;
    color: #aaa;
}

/* ============================================ */
/* RESPONSIVE MOBILE FRIENDLY */
/* ============================================ */

/* Tablets and small desktops */
@media (max-width: 1024px) {
    .ribbon-side { width: 140px; }
    .ribbon-tab { font-size: 12px; padding: 12px 16px 10px 14px; min-height: 44px; }
    .ribbon-tab i { font-size: 15px; min-width: 18px; }
    .modular-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .ribbon-content-area { padding: 25px 28px; }
    .video-card {
        flex: 0 0 calc(33.333% - 8px);
        min-width: 160px;
        max-width: 240px;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .ribbon-side { width: 130px; }
    .ribbon-tab { font-size: 12px; padding: 10px 14px 8px 12px; min-height: 40px; }
    .ribbon-tab i { font-size: 14px; min-width: 16px; }
    .modular-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .ribbon-content-area { padding: 20px 24px; }
    .ribbon-content-area .category-header h2 { font-size: 22px; }
    .all-modulars-header h2 { font-size: 20px; }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
    .ribbon-container { 
        flex-direction: column-reverse; 
        margin: 15px 0 20px;
    }
    
    .ribbon-side {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        padding: 10px 0 8px 0;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start;
        border-bottom: 2px solid var(--border-light, #e8e8e8);
        margin-bottom: 5px;
        background: transparent;
        box-shadow: none;
    }
    
    .ribbon-side::-webkit-scrollbar {
        display: none;
    }
    
    .ribbon-tab {
        position: relative;
        padding: 6px 16px 6px 16px;
        background: #f5f5f5;
        border: 1px solid var(--border-light, #e8e8e8);
        border-radius: 20px;
        font-family: var(--font-primary, 'Georgia', serif);
        font-size: 12px;
        font-weight: 600;
        color: var(--text-secondary, #555555);
        text-decoration: none;
        transition: all 0.3s ease;
        cursor: pointer;
        text-align: center;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 32px;
        white-space: nowrap;
        flex: 0 0 auto;
        width: auto;
        border-left: 1px solid var(--border-light, #e8e8e8);
        transform: none;
    }
    
    .ribbon-tab i {
        font-size: 12px;
        min-width: 14px;
        color: var(--text-secondary, #555555);
    }
    
    .ribbon-tab::after,
    .ribbon-tab::before { 
        display: none; 
    }
    
    .ribbon-tab.active {
        background: var(--gold, #c9a84c);
        color: #ffffff;
        border-color: var(--gold, #c9a84c);
        transform: none;
        box-shadow: 0 2px 8px rgba(201, 168, 76, 0.3);
    }
    
    .ribbon-tab.active i {
        color: #ffffff;
    }
    
    .ribbon-tab:hover:not(.active) {
        background: var(--gold-light, #e8d5a3);
        border-color: var(--gold, #c9a84c);
        color: var(--text-primary, #1a1a1a);
        transform: none;
    }
    
    .ribbon-content-area {
        border-radius: 8px 8px 0 0;
        padding: 20px 18px;
        min-height: auto;
    }
    
    .ribbon-content-area .category-header h2 { 
        font-size: 20px; 
    }
    
    .ribbon-content-area .category-header p {
        font-size: 13px;
    }
    
    /* Image Carousel Mobile - Smaller Dots */
    .image-carousel .slide { 
        aspect-ratio: 4 / 3; 
    }
    
    .carousel-arrow { 
        width: 34px; 
        height: 34px; 
        font-size: 14px; 
    }
    
    .carousel-arrow-left { left: 6px; }
    .carousel-arrow-right { right: 6px; }
    
    .carousel-dots {
        padding: 6px 0;
        gap: 5px;
    }
    
    .carousel-dots .dot {
        width: 5px !important;
        height: 5px !important;
        min-width: 5px !important;
        min-height: 5px !important;
        border-radius: 50%;
        margin: 0;
    }
    
    /* Newly Added Mobile - 3 items per page on tablet */
    .newly-added-item {
        flex: 0 0 calc(33.33% - 6px) !important;
        min-width: calc(33.33% - 6px) !important;
        max-width: calc(33.33% - 6px) !important;
        aspect-ratio: 1/1;
    }
    
    .newly-added-carousel-track {
        gap: 8px;
    }
    
    .newly-added-carousel-wrapper {
        padding: 0 25px;
        margin: 10px 0 20px;
    }
    
    .newly-added-carousel-dots {
        gap: 4px;
    }
    
    .newly-added-carousel-dots .dot {
        width: 6px;
        height: 6px;
        min-width: 6px;
        min-height: 6px;
    }
    
    .newly-added-header h2 {
        font-size: 16px !important;
    }
    
    .badge-new {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .newly-added-item .new-badge {
        font-size: 8px;
        padding: 2px 8px;
        top: 6px;
        left: 6px;
    }
    
    .newly-added-item .item-date {
        font-size: 8px;
        padding: 2px 8px;
        bottom: 6px;
        left: 6px;
    }
    
    .newly-added-item .item-date i {
        font-size: 7px;
    }
    
    .newly-added-carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    /* All Modulars Mobile */
    .modular-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .all-modulars-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .all-modulars-header h2 {
        font-size: 18px;
    }
    
    .all-modulars-filter {
        width: 100%;
    }
    
    .all-modulars-filter select {
        flex: 1;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .all-modulars-filter label {
        font-size: 12px;
    }
    
    .modular-card .modular-name {
        font-size: 12px;
        padding: 6px 8px 0;
    }
    
    /* Video Section Mobile */
    .video-card {
        flex: 0 0 calc(50% - 6px);
        min-width: 140px;
        max-width: 200px;
    }
    .video-play-btn { font-size: 32px; }
    .video-carousel-btn {
        width: 28px; height: 28px;
        font-size: 11px;
    }
    .video-carousel-btn-left { left: -4px; }
    .video-carousel-btn-right { right: -4px; }
    .video-modal-nav {
        width: 32px; height: 32px;
        font-size: 13px;
    }
    .video-modal-nav-left { left: 6px; }
    .video-modal-nav-right { right: 6px; }
    .video-modal-close {
        width: 32px; height: 32px;
        font-size: 14px;
        top: 6px; right: 6px;
    }
    .video-modal-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px 14px 10px;
    }
    .video-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .filter-search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-search-bar .search-group { width: 100%; }
    
    /* Pagination Mobile */
    .pagination-container .page-btn {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    /* Modal Mobile */
    .modal-container {
        max-width: 95%;
        padding: 6px;
    }
    
    .modal-nav {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    
    .modal-nav-left { left: 4px; }
    .modal-nav-right { right: 4px; }
    
    .modal-close {
        width: 34px;
        height: 34px;
        font-size: 16px;
        top: 6px;
        right: 6px;
    }
    
    .modal-counter {
        font-size: 12px;
    }
    
    .modal-image-wrapper {
        max-height: 60vh;
    }
    
    .modal-image-wrapper img {
        max-height: 60vh;
    }

    /* Modal thumbs mobile */
    .modal-thumb { width: 46px; height: 46px; }
    .modal-thumb-strip { gap: 6px; padding: 10px 10px 4px; }
}

/* Mobile portrait - 2 items per page */
@media (max-width: 480px) {
    .ribbon-side {
        gap: 4px;
        padding: 8px 0 6px 0;
    }
    
    .ribbon-tab { 
        font-size: 10px; 
        padding: 4px 12px 4px 12px; 
        min-height: 26px;
        gap: 4px;
        border-radius: 16px;
    }
    
    .ribbon-tab i { 
        font-size: 10px; 
        min-width: 12px; 
    }
    
    .ribbon-content-area { 
        padding: 14px 12px; 
    }
    
    .ribbon-content-area .category-header h2 { 
        font-size: 18px; 
    }
    
    .ribbon-content-area .category-header p {
        font-size: 12px;
    }
    
    .ribbon-content-area .category-header {
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
    
    /* Image Carousel Mobile - Even Smaller Dots */
    .image-carousel .slide { 
        aspect-ratio: 1 / 1; 
    }
    
    .carousel-arrow { 
        width: 28px; 
        height: 28px; 
        font-size: 12px; 
    }
    
    .carousel-dots {
        padding: 4px 0;
        gap: 4px;
    }
    
    .carousel-dots .dot {
        width: 4px !important;
        height: 4px !important;
        min-width: 4px !important;
        min-height: 4px !important;
        border-radius: 50%;
        margin: 0;
    }
    
    .image-carousel-wrapper {
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    /* Newly Added Mobile - 2 items per page on mobile */
    .newly-added-item {
        flex: 0 0 calc(50% - 5px) !important;
        min-width: calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        aspect-ratio: 1/1;
        border-radius: 6px;
    }
    
    .newly-added-carousel-track {
        gap: 6px;
    }
    
    .newly-added-carousel-wrapper {
        padding: 0 20px;
        margin: 8px 0 16px;
    }
    
    .newly-added-carousel-dots {
        gap: 3px;
    }
    
    .newly-added-carousel-dots .dot {
        width: 5px;
        height: 5px;
        min-width: 5px;
        min-height: 5px;
    }
    
    .newly-added-header h2 {
        font-size: 14px !important;
    }
    
    .badge-new {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .newly-added-item .new-badge {
        font-size: 7px;
        padding: 1px 6px;
        top: 4px;
        left: 4px;
        border-radius: 6px;
    }
    
    .newly-added-item .item-date {
        font-size: 7px;
        padding: 1px 6px;
        bottom: 4px;
        left: 4px;
        border-radius: 6px;
    }
    
    .newly-added-item .item-date i {
        font-size: 6px;
    }
    
    .newly-added-carousel-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    /* All Modulars Mobile Small */
    .modular-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .all-modulars-header h2 {
        font-size: 16px;
    }
    
    .all-modulars-header .modular-count {
        font-size: 11px;
    }
    
    .all-modulars-filter select {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .all-modulars-filter label {
        font-size: 11px;
    }
    
    .modular-card {
        border-radius: 6px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    }
    
    .modular-card .modular-image {
        height: 70%;
    }
    
    .modular-card .modular-name {
        font-size: 11px;
        padding: 4px 6px 0;
    }
    
    .modular-card:hover {
        transform: translateY(-3px);
    }
    
    .all-modulars-section {
        margin-top: 20px;
    }
    
    /* Video Section Mobile Small */
    .video-card {
        flex: 0 0 calc(50% - 5px);
        min-width: 120px;
        max-width: 170px;
    }
    .video-play-btn { font-size: 26px; }
    .video-card .video-info .video-date { font-size: 9px; }
    .video-carousel-btn {
        width: 24px; height: 24px;
        font-size: 10px;
    }
    .video-section-header h2 { font-size: 15px; }
    .filter-search-bar .search-text,
    .filter-search-bar .clear-text { display: none; }
    
    /* Pagination Mobile Small */
    .pagination-container {
        margin-top: 18px;
        gap: 4px;
    }
    
    .pagination-container .page-btn {
        padding: 4px 8px;
        font-size: 11px;
        border-radius: 3px;
    }
    
    /* Modal Mobile Small */
    .modal-container {
        max-width: 98%;
        padding: 4px;
    }
    
    .modal-nav {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .modal-nav-left { left: 2px; }
    .modal-nav-right { right: 2px; }
    
    .modal-close {
        width: 30px;
        height: 30px;
        font-size: 14px;
        top: 4px;
        right: 4px;
    }
    
    .modal-counter {
        font-size: 11px;
        margin-top: 6px;
    }
    
    .modal-image-wrapper {
        max-height: 50vh;
    }
    
    .modal-image-wrapper img {
        max-height: 50vh;
    }

    /* Modal thumbs small */
    .modal-thumb { width: 40px; height: 40px; }
    .modal-thumb-strip { gap: 5px; padding: 8px 8px 2px; }
}

/* Extra small devices */
@media (max-width: 360px) {
    .ribbon-content-area { 
        padding: 10px 8px; 
    }
    
    .ribbon-side {
        gap: 3px;
        padding: 6px 0 4px 0;
    }
    
    .ribbon-tab { 
        font-size: 9px; 
        padding: 3px 8px 3px 8px; 
        min-height: 22px;
        gap: 3px;
        border-radius: 12px;
    }
    
    .ribbon-tab i { 
        font-size: 9px; 
        min-width: 10px; 
    }
    
    /* Even smaller dots for extra small devices */
    .carousel-dots {
        padding: 3px 0;
        gap: 3px;
    }
    
    .carousel-dots .dot {
        width: 3px !important;
        height: 3px !important;
        min-width: 3px !important;
        min-height: 3px !important;
        border-radius: 50%;
        margin: 0;
    }
    
    .newly-added-carousel-dots .dot {
        width: 4px;
        height: 4px;
        min-width: 4px;
        min-height: 4px;
    }
    
    .modular-grid {
        gap: 6px;
    }
    
    .modular-card .modular-name {
        font-size: 10px;
        padding: 3px 4px 0;
    }
    
    .newly-added-item {
        flex: 0 0 calc(50% - 4px) !important;
        min-width: calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
    }
    
    .newly-added-carousel-wrapper {
        padding: 0 16px;
    }
    
    .newly-added-carousel-track {
        gap: 4px;
    }
    
    .pagination-container .page-btn {
        padding: 3px 6px;
        font-size: 10px;
    }
}
