/**
 * Ignitein Elementor Widgets Styles
 *
 * @package Ignitein
 */

/* ==========================================================================
   Hero Banner Widget
   ========================================================================== */

.ignitein-hero-banner {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #1b1d51;
    /* Start from very top, going behind the fixed header */
    margin-top: -80px !important;
    margin-bottom: 0 !important;
    /* Extra negative to ensure no gap */
    padding-top: 80px;
    /* compensate so content is centered properly */
}

/* Force remove any gaps above hero */
.elementor-section:first-child .ignitein-hero-banner,
.elementor-element:first-child .ignitein-hero-banner {
    margin-top: -100px !important;
    padding-top: 100px;
}

/* Remove gap after hero section */
.elementor-widget-ignitein_hero_banner {
    margin-bottom: 0 !important;
}

.elementor-widget-ignitein_hero_banner+.elementor-section,
.elementor-widget-ignitein_hero_banner+.elementor-widget {
    margin-top: 0 !important;
}

/* Hero section container should have no margin */
.elementor-section:has(.ignitein-hero-banner) {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.elementor-section:has(.ignitein-hero-banner)+.elementor-section {
    margin-top: 0 !important;
}

/* Animated Gradient Background */
.ignitein-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            #1b1d51 0%,
            #2a2d6a 25%,
            #1b1d51 50%,
            #14163d 75%,
            #1b1d51 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Video Background */
.ignitein-hero-video {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ignitein-hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay */
.ignitein-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(27, 29, 81, 0.9) 0%,
            rgba(27, 29, 81, 0.7) 50%,
            rgba(20, 22, 61, 0.9) 100%);
    z-index: 2;
}

/* Particles */
.ignitein-hero-particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}

.ignitein-hero-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(245, 158, 11, 0.6);
    border-radius: 50%;
    left: var(--x);
    bottom: -10px;
    animation: floatUp var(--duration, 20s) linear infinite;
    animation-delay: var(--delay, 0s);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.ignitein-hero-particles .particle:nth-child(even) {
    background: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

/* Content */
.ignitein-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.ignitein-hero-content-inner {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pre Title */
.ignitein-hero-pretitle {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.8);
}

.ignitein-hero-pretitle .pretitle-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f59e0b, transparent);
}

.ignitein-hero-pretitle .pretitle-text {
    color: #f59e0b;
}

/* Title */
.ignitein-hero-title {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Subtitle */
.ignitein-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Buttons */
.ignitein-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.ignitein-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.ignitein-hero-btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.ignitein-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
}

.ignitein-hero-btn-primary svg {
    transition: transform 0.3s ease;
}

.ignitein-hero-btn-primary:hover svg {
    transform: translateX(4px);
}

.ignitein-hero-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.ignitein-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Scroll Indicator */
.ignitein-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: #f59e0b;
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(8px);
        opacity: 0.5;
    }
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ignitein-hero-banner {
        min-height: 100vh;
    }

    .ignitein-hero-content {
        padding: 1.5rem;
    }

    .ignitein-hero-pretitle {
        font-size: 0.75rem;
    }

    .ignitein-hero-pretitle .pretitle-line {
        width: 25px;
    }

    .ignitein-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .ignitein-hero-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }

    .ignitein-hero-scroll {
        bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ignitein-hero-title {
        font-size: 1.5rem;
    }

    .ignitein-hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 2rem;
    }
}

/* ==========================================================================
   News Grid Widget - NCA Style
   ========================================================================== */

.ignitein-news-section {
    padding: 40px 0;
    background-color: #ffffff;
    /* Full width without causing overflow */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100vw;
    max-width: 100vw;
}

/* Remove Elementor default margins */
.elementor-widget-ignitein_news_grid {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.elementor-widget-ignitein_news_grid>.elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
}

/* Container after news section should have no top margin/padding */
.elementor-widget-ignitein_news_grid+.e-con,
.elementor-widget-ignitein_news_grid+.elementor-section,
.elementor-widget-ignitein_news_grid+.elementor-widget,
.elementor-widget-ignitein_news_grid~.e-con,
.elementor-widget-ignitein_news_grid~.elementor-element {
    margin-top: 0 !important;
}

.ignitein-news-section.ignitein-news-dark {
    background-color: #1b1d51;
}

.ignitein-news-section.ignitein-news-gradient {
    background: linear-gradient(180deg, #1b1d51 0%, #2a3a6a 100%);
}

.ignitein-news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Header - NCA Style: Icon + Title left, Link right */
.ignitein-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.ignitein-news-dark .ignitein-news-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.ignitein-news-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ignitein-news-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
}

.ignitein-news-icon svg {
    width: 100%;
    height: 100%;
}

.ignitein-news-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1b1d51;
    margin: 0;
    line-height: 1.3;
}

.ignitein-news-dark .ignitein-news-section-title {
    color: #ffffff;
}

.ignitein-news-header-right .ignitein-news-view-all-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #3b82f6;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.ignitein-news-header-right .ignitein-news-view-all-link:hover {
    color: #1d4ed8;
}

.ignitein-news-dark .ignitein-news-header-right .ignitein-news-view-all-link {
    color: #60a5fa;
}

/* Hide center-aligned elements in NCA style */
.ignitein-news-pretitle,
.ignitein-news-section-desc {
    display: none;
}

/* News Cards - NCA Style */
.ignitein-news-card {
    background: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ignitein-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ignitein-news-dark .ignitein-news-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Header - NCA Style with Date Icon and Category */
.ignitein-news-card-header {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    border-bottom: none;
    gap: 0;
}

.ignitein-news-date-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem 0 0 0;
    color: #3b82f6;
    background: #ffffff;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.ignitein-news-date-icon svg {
    width: 28px;
    height: 28px;
}

.ignitein-news-dark .ignitein-news-date-icon {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #60a5fa;
}

/* Category Badge - NCA style: fills remaining space, aligned with icon */
.ignitein-news-card-header .ignitein-news-category {
    position: static;
    padding: 0 1.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    background-color: #f59e0b;
    border-radius: 0 0.5rem 0 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -2px;
    min-height: 56px;
}

/* Thumbnail - NCA Style */
.ignitein-news-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.ignitein-news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ignitein-news-card:hover .ignitein-news-image {
    transform: scale(1.05);
}

.ignitein-news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #94a3b8;
}

/* Category Badge - NCA Style with colors */
.ignitein-news-category {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.375rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #ffffff;
    background-color: #f59e0b;
    text-align: center;
}

/* Different category colors */
.ignitein-news-category[data-category="su-kien"],
.ignitein-news-category.cat-event {
    background-color: #ef4444;
}

.ignitein-news-category[data-category="dao-tao"],
.ignitein-news-category.cat-training {
    background-color: #3b82f6;
}

.ignitein-news-category[data-category="chinh-sach"],
.ignitein-news-category.cat-policy {
    background-color: #10b981;
}

.ignitein-news-category[data-category="hop-tac"],
.ignitein-news-category.cat-cooperation {
    background-color: #8b5cf6;
}

/* Category in header should have specific colors too */
.ignitein-news-card-header .ignitein-news-category[data-category="su-kien"] {
    background-color: #ef4444;
}

.ignitein-news-card-header .ignitein-news-category[data-category="dao-tao"] {
    background-color: #3b82f6;
}

.ignitein-news-card-header .ignitein-news-category[data-category="chinh-sach"] {
    background-color: #10b981;
}

.ignitein-news-card-header .ignitein-news-category[data-category="hop-tac"] {
    background-color: #8b5cf6;
}

/* Content */
.ignitein-news-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ignitein-news-meta {
    display: none;
    /* Hidden in NCA style */
}

.ignitein-news-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ignitein-news-title a {
    color: #1b1d51;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ignitein-news-title a:hover {
    color: #3b82f6;
}

.ignitein-news-dark .ignitein-news-title a {
    color: #ffffff;
}

.ignitein-news-excerpt {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.ignitein-news-dark .ignitein-news-excerpt {
    color: rgba(255, 255, 255, 0.6);
}

.ignitein-news-read-more {
    display: none;
    /* Hidden in NCA style - card is clickable */
}

/* Footer */
.ignitein-news-footer {
    display: none;
    /* Use header link instead */
}

/* Grid spacing */
.ignitein-news-grid {
    gap: 1.25rem !important;
}

/* Empty State */
.ignitein-news-empty {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .ignitein-news-section {
        padding: 30px 0;
    }

    .ignitein-news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .ignitein-news-section-title {
        font-size: 1.125rem;
    }

    .ignitein-news-content {
        padding: 0.875rem;
    }

    .ignitein-news-title {
        font-size: 0.875rem;
    }

    .ignitein-news-excerpt {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }
}

/* ==========================================================================
   Media Gallery Widget (Tư liệu) - NCA Style
   ========================================================================== */

.ignitein-media-section {
    padding: 40px 0;
    background-color: #f5f7fa;
    /* Full width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100vw;
    max-width: 100vw;
}

.ignitein-media-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Header - NCA Style */
.ignitein-media-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.ignitein-media-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ignitein-media-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
}

.ignitein-media-icon svg {
    width: 100%;
    height: 100%;
}

.ignitein-media-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1b1d51;
    margin: 0;
    line-height: 1.3;
}

.ignitein-media-header-right .ignitein-media-view-all-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #3b82f6;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.ignitein-media-header-right .ignitein-media-view-all-link:hover {
    color: #1d4ed8;
}

/* Media Grid - Default */
.ignitein-media-grid {
    gap: 1.25rem !important;
}

/* Featured Layout Grid (NCA Style - 1 large + 2 small) */
.ignitein-media-grid-featured {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    min-height: 400px;
}

.ignitein-media-grid-featured .ignitein-media-card-featured {
    grid-row: 1 / 3;
    grid-column: 1;
}

.ignitein-media-grid-featured .ignitein-media-card-small {
    grid-column: 2;
}

.ignitein-media-grid-featured .ignitein-media-card-small:nth-of-type(2) {
    grid-row: 1;
}

.ignitein-media-grid-featured .ignitein-media-card-small:nth-of-type(3) {
    grid-row: 2;
}

/* Media Card - Light Background Style */
.ignitein-media-card {
    background: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ignitein-media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Featured card takes full height */
.ignitein-media-card-featured {
    height: 100%;
}

.ignitein-media-card-featured .ignitein-media-thumbnail {
    height: 100%;
    aspect-ratio: auto;
}

/* Thumbnail */
.ignitein-media-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #1b1d51;
}

.ignitein-media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.ignitein-media-card:hover .ignitein-media-image {
    transform: scale(1.05);
    opacity: 0.9;
}

.ignitein-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1b1d51 0%, #0f1035 100%);
    color: #4b5563;
}

/* Thumbnail Inner - for inline video replacement */
.ignitein-media-thumbnail-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.ignitein-media-thumbnail-inner .ignitein-media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Embed Container - for inline YouTube */
.ignitein-video-embed-container {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    background: #000;
}

.ignitein-video-embed-container.active {
    display: block;
}

.ignitein-video-embed-container .ignitein-video-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* YouTube Play Button */
.ignitein-media-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.3s ease;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.ignitein-media-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.ignitein-youtube-icon {
    width: 68px;
    height: 48px;
}

.ignitein-youtube-bg {
    transition: fill 0.2s ease;
}

.ignitein-media-play-btn:hover .ignitein-youtube-bg {
    fill: #cc0000;
}

/* Overlay link for images */
.ignitein-media-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

/* YouTube Source Badge */
.ignitein-media-source-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 10;
}

.ignitein-youtube-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.25rem;
    backdrop-filter: blur(4px);
}

.ignitein-youtube-badge svg {
    color: #ff0000;
}

/* Caption */
.ignitein-media-caption {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
}

.ignitein-media-title {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ignitein-media-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ignitein-media-title a:hover {
    color: #60a5fa;
}

/* Caption Overlay (NCA Style) - Inside thumbnail */
.ignitein-media-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 5;
}

.ignitein-media-caption-overlay .ignitein-media-title {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* For separate caption style */
.ignitein-media-card-separate .ignitein-media-caption {
    background: #ffffff;
}

.ignitein-media-card-separate .ignitein-media-title a {
    color: #1b1d51;
}

.ignitein-media-card-separate .ignitein-media-title a:hover {
    color: #3b82f6;
}

/* Empty State */
.ignitein-media-empty {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .ignitein-media-section {
        padding: 30px 0;
    }

    .ignitein-media-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    /* Switch to single column on mobile */
    .ignitein-media-grid-featured {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .ignitein-media-grid-featured .ignitein-media-card-featured {
        grid-row: auto;
        grid-column: auto;
    }

    .ignitein-media-grid-featured .ignitein-media-card-small {
        grid-row: auto;
        grid-column: auto;
    }

    .ignitein-youtube-icon {
        width: 54px;
        height: 38px;
    }

    .ignitein-media-caption,
    .ignitein-media-caption-overlay {
        padding: 0.875rem;
    }

    .ignitein-media-title {
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Video Lightbox Modal
   ========================================================================== */

.ignitein-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ignitein-video-modal.active {
    opacity: 1;
    visibility: visible;
}

.ignitein-video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.ignitein-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 1;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.ignitein-video-modal.active .ignitein-video-modal-content {
    transform: scale(1);
}

.ignitein-video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.ignitein-video-modal-close:hover {
    opacity: 0.7;
}

.ignitein-video-modal-close svg {
    width: 24px;
    height: 24px;
}

.ignitein-video-modal-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
}

.ignitein-video-modal-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .ignitein-video-modal-content {
        width: 95%;
    }

    .ignitein-video-modal-close {
        top: -35px;
        right: 5px;
    }
}