/* ===========================================
   HOMEPAGE SECTION STYLES
   =========================================== */

/* Base Section */
.hp-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.hp-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hp-section__title {
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.hp-section__title .title-accent {
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 2px;
}

.hp-section__more {
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.hp-section__more:hover {
    color: var(--primary);
}

/* ===========================================
   FEATURED LARGE STYLE
   =========================================== */
.style-featured-large {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.featured-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.featured-main a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-main .featured-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.featured-main .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.featured-main:hover .featured-image img {
    transform: scale(1.05);
}

.featured-main .featured-content {
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
}

.featured-main .featured-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0;
    line-height: 1.3;
    color: #fff;
}

.featured-main .featured-content p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
}

.featured-main .featured-content time {
    font-size: 12px;
    opacity: 0.7;
}

.featured-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-side-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.featured-side-item:hover {
    transform: translateX(5px);
}

.featured-side-item a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.featured-side-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.featured-side-item .side-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
    color: var(--primary);
}

.featured-side-item .side-content time {
    font-size: 11px;
    color: var(--text-light);
}

/* ===========================================
   GRID CARDS STYLE
   =========================================== */
.style-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.grid-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.grid-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.grid-card a {
    text-decoration: none;
    color: inherit;
}

.grid-card .card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.grid-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.grid-card:hover .card-image img {
    transform: scale(1.1);
}

.grid-card .card-content {
    padding: 15px;
}

.grid-card .card-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 8px 0;
    line-height: 1.4;
    color: var(--primary);
}

.grid-card .card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
}

/* ===========================================
   MAGAZINE STYLE
   =========================================== */
.style-magazine {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.magazine-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
}

.magazine-main a {
    display: block;
    height: 100%;
}

.magazine-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
}

.magazine-main .magazine-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: #fff;
}

.magazine-main .magazine-overlay h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 10px 0 5px 0;
    color: #fff;
}

.magazine-main .magazine-overlay time {
    font-size: 12px;
    opacity: 0.8;
}

.magazine-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.magazine-item {
    display: flex;
    gap: 12px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.magazine-item:hover {
    transform: translateX(5px);
}

.magazine-item a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.magazine-item img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    flex-shrink: 0;
}

.magazine-item-content {
    padding: 10px 10px 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.magazine-item-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.4;
    color: var(--primary);
}

.magazine-item-content time {
    font-size: 11px;
    color: var(--text-light);
}

/* ===========================================
   SPOTLIGHT STYLE
   =========================================== */
.style-spotlight {
    max-width: 100%;
}

.spotlight-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.spotlight-main a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.spotlight-image {
    position: relative;
    aspect-ratio: 21/9;
}

.spotlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-image .spotlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, transparent 60%);
}

.spotlight-content {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    max-width: 50%;
    color: #fff;
}

.spotlight-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 10px 0;
    line-height: 1.2;
    color: #fff;
}

.spotlight-content p {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.spotlight-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    opacity: 0.8;
}

/* ===========================================
   HORIZONTAL SCROLL STYLE
   =========================================== */
.style-horizontal-scroll {
    position: relative;
}

.scroll-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-card {
    flex-shrink: 0;
    width: 250px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.scroll-card:hover {
    transform: translateY(-5px);
}

.scroll-card a {
    text-decoration: none;
    color: inherit;
}

.scroll-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.scroll-card .scroll-content {
    padding: 12px;
}

.scroll-card .scroll-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 5px 0 0 0;
    line-height: 1.4;
    color: var(--primary);
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.scroll-btn:hover {
    background: var(--accent);
}

.scroll-prev { left: -20px; }
.scroll-next { right: -20px; }

/* ===========================================
   TIMELINE STYLE
   =========================================== */
.style-timeline {
    position: relative;
    padding-left: 30px;
}

.style-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding: 15px 0;
    border-bottom: 1px dashed var(--border);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-marker {
    position: absolute;
    left: -26px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item a {
    text-decoration: none;
    color: inherit;
}

.timeline-item time {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

.timeline-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 5px 0 0 0;
    color: var(--primary);
    line-height: 1.4;
}

.timeline-item:hover h4 {
    color: var(--accent);
}

/* ===========================================
   MINIMAL STYLE
   =========================================== */
.style-minimal {
    display: flex;
    flex-direction: column;
}

.minimal-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.minimal-item:last-child {
    border-bottom: none;
}

.minimal-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.minimal-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--border);
    min-width: 40px;
}

.minimal-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    color: var(--primary);
    line-height: 1.4;
}

.minimal-item time {
    font-size: 12px;
    color: var(--text-light);
}

.minimal-item:hover h4 {
    color: var(--accent);
}

.minimal-item:hover .minimal-number {
    color: var(--accent);
}

/* ===========================================
   PODCAST STYLES
   =========================================== */
.style-podcast-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.podcast-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.podcast-card .podcast-image {
    position: relative;
    aspect-ratio: 1/1;
}

.podcast-card .podcast-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcast-card .play-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}

.podcast-card .play-btn:hover {
    transform: scale(1.1);
    background: var(--primary);
}

.podcast-card .play-btn svg {
    width: 24px;
    height: 24px;
}

.podcast-card .podcast-info {
    padding: 15px;
}

.podcast-card .podcast-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--primary);
}

.podcast-card .podcast-info .author {
    font-size: 12px;
    color: var(--text-light);
    display: block;
}

.podcast-card .podcast-info .duration {
    font-size: 12px;
    color: var(--accent);
}

/* Podcast Vertical */
.style-podcast-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.podcast-row {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.podcast-row img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.podcast-row .podcast-info {
    flex: 1;
}

.podcast-row .podcast-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 3px 0;
    color: var(--primary);
}

.podcast-row .podcast-info p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

.podcast-row .duration {
    font-size: 13px;
    color: var(--text-light);
}

.podcast-row .play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.podcast-row .play-btn svg {
    width: 20px;
    height: 20px;
}

/* Podcast Featured */
.style-podcast-featured {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.podcast-player {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.podcast-player img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius);
}

.podcast-player .player-info {
    flex: 1;
}

.podcast-player .player-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--primary);
}

.podcast-player .player-info p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 15px 0;
}

.podcast-player audio {
    width: 100%;
}

.podcast-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.podcast-list-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.podcast-list-item:hover {
    background: var(--bg);
}

.podcast-list-item .title {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
}

.podcast-list-item .duration {
    font-size: 12px;
    color: var(--text-light);
}

/* ===========================================
   VIDEO STYLES
   =========================================== */
.style-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.video-card:hover {
    box-shadow: var(--shadow-lg);
}

.video-card .video-thumb {
    position: relative;
    aspect-ratio: 16/9;
}

.video-card .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card .video-thumb .duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.video-card .video-thumb .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.video-card:hover .play-btn {
    opacity: 1;
}

.video-card .play-btn svg {
    width: 28px;
    height: 28px;
}

.video-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    padding: 12px;
    color: var(--primary);
}

/* Video Slider */
.style-video-slider {
    position: relative;
}

.video-slider-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
}

.video-slide {
    flex-shrink: 0;
    width: 300px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.video-slide img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.video-slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
}

.video-slide-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

/* Video Featured */
.style-video-featured {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.video-main .video-player {
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}

.video-main .video-player iframe {
    width: 100%;
    height: 100%;
}

.video-main h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 15px 0 0 0;
    color: var(--primary);
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-list-item {
    display: flex;
    gap: 10px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.video-list-item:hover {
    background: var(--bg);
}

.video-list-item img {
    width: 100px;
    height: 60px;
    object-fit: cover;
}

.video-list-item span {
    padding: 10px 10px 10px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
}

/* ===========================================
   CATEGORY TAG (shared)
   =========================================== */
.category-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    .style-featured-large,
    .style-magazine,
    .style-podcast-featured,
    .style-video-featured {
        grid-template-columns: 1fr;
    }
    
    .spotlight-content {
        max-width: 80%;
        left: 20px;
    }
    
    .spotlight-content h2 {
        font-size: 22px;
    }
    
    .spotlight-image {
        aspect-ratio: 16/12;
    }
    
    .scroll-btn {
        display: none;
    }
}


/* ===========================================
   VIDEO GRID FIX - 3 Columns with proper sizing
   =========================================== */
.style-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.style-video-grid .video-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.style-video-grid .video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.style-video-grid .video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}

.style-video-grid .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.style-video-grid .video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.style-video-grid .video-thumb .duration {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.style-video-grid .video-thumb .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.95);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.style-video-grid .video-card:hover .play-btn {
    opacity: 1;
}

.style-video-grid .video-card:hover .play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
}

.style-video-grid .play-btn svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
}

.style-video-grid .video-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    padding: 15px;
    color: var(--primary);
    line-height: 1.4;
}

@media (max-width: 992px) {
    .style-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .style-video-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   PODCAST HORIZONTAL FIX - 3 Columns
   =========================================== */
.style-podcast-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.style-podcast-horizontal .podcast-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.style-podcast-horizontal .podcast-card:hover {
    transform: translateY(-5px);
}

.style-podcast-horizontal .podcast-image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.style-podcast-horizontal .podcast-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .style-podcast-horizontal {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .style-podcast-horizontal {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   GRID CARDS FIX - Consistent 3 Columns
   =========================================== */
.style-grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.style-grid-cards .grid-card .card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f0f0f0;
}

.style-grid-cards .grid-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .style-grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .style-grid-cards {
        grid-template-columns: 1fr;
    }
}
