.lazy-img {
    background: #f3f4f6;
    opacity: 0;
    transition: opacity 0.4s ease-in;
}
.lazy-img.loaded {
    opacity: 1;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    scroll-behavior: smooth;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
}

@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .text-gradient {
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .scroll-smooth {
        scroll-behavior: smooth;
    }
}

.carousel-item {
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-item.active {
    display: block;
    opacity: 1;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.carousel-item.active .carousel-hero-img {
    animation: kenBurns 8s ease-out forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carousel-item.active .hero-tag {
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.carousel-item.active .hero-title {
    animation: slideUp 0.7s ease-out 0.4s both;
}

.carousel-item.active .hero-subtitle {
    animation: slideUp 0.7s ease-out 0.6s both;
}

.carousel-item.active .hero-actions {
    animation: slideUp 0.7s ease-out 0.8s both;
}

.carousel-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay-left {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(180, 185, 190, 0.88) 0%, rgba(190, 195, 200, 0.75) 40%, rgba(200, 205, 210, 0.5) 70%, transparent 100%);
    z-index: 10;
}

.hero-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(175, 180, 185, 0.45) 0%, transparent 100%);
    z-index: 10;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(22, 93, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(22, 93, 255, 0.2);
    border-radius: 100px;
    color: #165DFF;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    opacity: 0;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    opacity: 0;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: #4a5568;
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 32px;
    opacity: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    opacity: 0;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #165DFF;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(22, 93, 255, 0.25);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(22, 93, 255, 0.35);
    background: #1450e6;
}

.hero-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: rgba(22, 93, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(22, 93, 255, 0.35);
    color: #165DFF;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-btn-outline:hover {
    background: rgba(22, 93, 255, 0.15);
    border-color: rgba(22, 93, 255, 0.5);
    transform: translateY(-2px);
}

.hero-gradient-text {
    background: linear-gradient(135deg, #165DFF, #2563eb, #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.carousel-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.carousel-container:hover .carousel-arrow-btn {
    opacity: 1;
}

.carousel-arrow-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.carousel-arrow-btn.prev { left: 24px; }
.carousel-arrow-btn.next { right: 24px; }

.carousel-indicators {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s ease;
}

.carousel-indicator.active {
    width: 36px;
    background: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.carousel-indicator:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6);
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-module {
    margin-bottom: 32px;
}

.section-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.section-title-bar .category-tabs {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: #165DFF;
    border-radius: 2px;
    flex-shrink: 0;
}

.section-more {
    font-size: 14px;
    color: #9CA3AF;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    transition: color 0.2s;
}

.section-more:hover {
    color: #6B7280;
}

.module-box {
    display: flex;
    gap: 24px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    height: 440px;
}

.module-carousel {
    width: 60%;
    height: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.module-carousel .carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.module-carousel .carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.module-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}

.module-carousel .carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    z-index: 2;
}

.module-carousel .carousel-overlay p {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.module-carousel .carousel-dots {
    position: absolute;
    bottom: 10px;
    right: 20px;
    display: flex;
    gap: 6px;
    z-index: 3;
}

.module-carousel .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.module-carousel .carousel-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

.module-carousel .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
    border: none;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
}

.module-carousel:hover .carousel-arrow {
    opacity: 1;
}

.module-carousel .carousel-arrow:hover {
    background: rgba(255,255,255,0.45);
}

.module-carousel .carousel-arrow.prev {
    left: 10px;
}

.module-carousel .carousel-arrow.next {
    right: 10px;
}

.module-report-list {
    width: 40%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.module-report-list .list-header {
    padding: 16px 20px 10px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.module-report-list .list-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.module-report-list .list-body {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
}

.module-report-list .list-body::-webkit-scrollbar {
    width: 4px;
}

.module-report-list .list-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.module-report-list .list-body::-webkit-scrollbar-track {
    background: transparent;
}

.report-title-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
    color: inherit;
}

.report-title-item:hover {
    background: #f9fafb;
    border-left-color: #165DFF;
}

.report-title-item .item-index {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.report-title-item:nth-child(1) .item-index { background: #165DFF; color: #fff; }
.report-title-item:nth-child(2) .item-index { background: #36B37E; color: #fff; }
.report-title-item:nth-child(3) .item-index { background: #f59e0b; color: #fff; }

.report-title-item .item-content {
    flex: 1;
    min-width: 0;
}

.report-title-item .item-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
    text-align: left;
}

.report-title-item:hover .item-title {
    color: #165DFF;
}

.report-title-item .item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 3px;
    font-size: 12px;
    color: #9ca3af;
    text-align: left;
}

.live-scroll-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.live-scroll-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: liveScrollLeft 80s linear infinite;
}

.live-scroll-track.paused {
    animation-play-state: paused;
}

@keyframes liveScrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.live-scroll-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    width: 276px;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
}

.live-scroll-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: scale(1.03);
}

.live-scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.live-scroll-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.live-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.live-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.live-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.live-lightbox-overlay.active .live-lightbox-content {
    transform: scale(1);
}

.live-lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    object-fit: contain;
}

.live-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.live-lightbox-close:hover {
    background: rgba(255,255,255,0.4);
}

.live-photos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.live-photos-grid .live-photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    width: 276px;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
}

.live-photos-grid .live-photo-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.live-photos-grid .live-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.live-photos-grid .live-photo-item .live-photo-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.live-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.live-videos-grid .live-video-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}

.live-videos-grid .live-video-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.live-videos-grid .live-video-item video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

.video-section {
    max-width: 100%;
}

.video-row-label {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    padding-left: 10px;
    border-left: 4px solid #165DFF;
    text-align: left;
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.video-grid-h .video-card {
    width: calc((100% - 32px) / 3);
}

.video-grid-v .video-card {
    width: calc((100% - 64px) / 5);
}

.video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}

.video-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-card video {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.category-tabs-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.category-tabs {
    display: inline-flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 3px;
    gap: 0;
}

.category-tab {
    padding: 8px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    color: #4B5563;
}

.category-tab:hover {
    color: #165DFF;
    background: rgba(22, 93, 255, 0.05);
}

.category-tab.active {
    background: #165DFF;
    color: #fff;
    box-shadow: 0 1px 3px rgba(22, 93, 255, 0.2);
}

.xfcbo-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.xfcbo-feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
    color: inherit;
}

.xfcbo-feature-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.xfcbo-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.3rem;
}

.xfcbo-feature-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
    text-align: center;
}

.xfcbo-feature-card p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    text-align: center;
}

.image-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.gallery-scroll-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.gallery-scroll-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: galleryScrollLeft 90s linear infinite;
}

.gallery-scroll-track.paused {
    animation-play-state: paused;
}

@keyframes galleryScrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.gallery-scroll-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    width: 276px;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
}

.gallery-scroll-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: scale(1.03);
}

.gallery-scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-scroll-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-scroll-item:hover .gallery-scroll-item-title {
    opacity: 1;
}

.image-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    width: 276px;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
}

.image-gallery-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-gallery-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-gallery-item:hover .image-gallery-item-title {
    opacity: 1;
}

.cert-tabs-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.cert-tabs {
    display: inline-flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 3px;
    gap: 0;
}

.cert-tab {
    padding: 8px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    color: #4B5563;
}

.cert-tab:hover {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.cert-tab.active {
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.2);
}

.cert-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.cert-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    background: #fff;
}

.cert-gallery-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cert-gallery-item img {
    width: 100%;
    display: block;
}

.cert-gallery-item-name {
    padding: 6px 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cert-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cert-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cert-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cert-lightbox-overlay.active .cert-lightbox-content {
    transform: scale(1);
}

.cert-lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    object-fit: contain;
}

.cert-lightbox-name {
    text-align: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
}

.cert-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cert-lightbox-close:hover {
    background: rgba(255,255,255,0.4);
}

.cert-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.cert-lightbox-arrow:hover {
    background: rgba(255,255,255,0.4);
}

.cert-lightbox-arrow.prev {
    left: -60px;
}

.cert-lightbox-arrow.next {
    right: -60px;
}

.waterfall-container {
    position: relative;
    margin-bottom: 32px;
}

.waterfall-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
    position: absolute;
}

.waterfall-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.waterfall-card-img {
    position: relative;
    overflow: hidden;
}

.waterfall-card-img img {
    width: 100%;
    display: block;
}

.waterfall-card-body {
    padding: 12px 14px 16px;
}

.waterfall-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    line-height: 1.5;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.waterfall-card-desc {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

@media (max-width: 1024px) {
    .cert-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .video-grid-h .video-card {
        width: calc((100% - 16px) / 2);
    }
    .video-grid-v .video-card {
        width: calc((100% - 32px) / 3);
    }
    .xfcbo-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-overlay-left {
        background: linear-gradient(135deg, rgba(170, 175, 180, 0.92) 0%, rgba(180, 185, 190, 0.85) 50%, rgba(190, 195, 200, 0.6) 80%, rgba(200, 205, 210, 0.3) 100%);
    }
    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
        margin-bottom: 10px;
    }
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
        max-width: 100%;
    }
    .hero-tag {
        margin-bottom: 16px;
        font-size: 0.75rem;
        padding: 4px 12px;
    }
    .hero-btn-primary,
    .hero-btn-outline {
        padding: 10px 22px;
        font-size: 0.85rem;
    }
    .carousel-arrow-btn {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }
    .carousel-arrow-btn.prev { left: 12px; }
    .carousel-arrow-btn.next { right: 12px; }
    .carousel-indicators {
        bottom: 20px;
    }
    .section-title-bar {
        flex-wrap: wrap;
    }
    .section-title-bar .category-tabs {
        position: static;
        transform: none;
        margin-top: 8px;
        width: 100%;
        justify-content: center;
    }
    .module-box {
        flex-direction: column;
        height: auto;
    }
    .module-carousel {
        width: 100%;
        height: 240px;
    }
    .module-carousel .carousel-slide img {
        border-radius: 8px 8px 0 0;
    }
    .module-report-list {
        width: 100%;
        height: 360px;
    }
    .image-gallery-item,
    .live-photo-item {
        width: calc((100% - 16px) / 2);
    }
    .live-scroll-item,
    .gallery-scroll-item {
        width: 220px;
    }
    .cert-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .video-grid-h .video-card {
        width: 100%;
    }
    .video-grid-v .video-card {
        width: calc((100% - 16px) / 2);
    }
    .xfcbo-features {
        grid-template-columns: 1fr;
    }
    .live-videos-grid {
        grid-template-columns: 1fr;
    }
    .cert-lightbox-arrow.prev {
        left: -10px;
    }
    .cert-lightbox-arrow.next {
        right: -10px;
    }
}

@media (max-width: 480px) {
    .image-gallery-item,
    .live-photo-item {
        width: 100%;
    }
    .live-scroll-item,
    .gallery-scroll-item {
        width: 180px;
    }
    .video-grid-v .video-card {
        width: 100%;
    }
    .cert-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
