﻿/* ===================================
   TBM SANGGAR PUSTAKALOKA OPEN
   Premium Monochrome Design System
   =================================== */

/* Import Design Tokens & Component Styles */
@import url('assets/css/tokens.css');
@import url('assets/css/style.css');
@import url('assets/css/news-enhanced.css');
@import url('assets/css/contact.css');
@import url('assets/css/books.css');

/* === ADDITIONAL COMPONENT STYLES === */

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero__text {
    animation: fadeInUp 0.8s ease-out;
}

.hero__media {
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

.hero__title {
    font-size: var(--font-size-6xl);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.hero__subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

@media (max-width: 767px) {
    .hero {
        grid-template-columns: 1fr;
    }
}

/* Eyebrow Text */
.eyebrow {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
}

/* Hero Card */
.hero-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-2xl);
}

.hero-card__image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-sm);
}

.hero-card__caption {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    font-style: italic;
}

/* Section Headers */
.section-header {
    margin-bottom: var(--spacing-2xl);
}

.section-header--center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    margin-bottom: var(--spacing-md);
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
}

/* Lists */
.list {
    list-style: none;
    padding: 0;
}

.list li {
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    width: 6px;
    height: 10px;
    border: solid var(--color-text-muted);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* CTA Section */
.cta {
    text-align: center;
}

.cta h2 {
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

.cta p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

.cta__actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Testimonials */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

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

@media (max-width: 767px) {
    .testimonials__grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-border-medium);
}

.testimonial-card__rating {
    margin-bottom: var(--spacing-md);
}

.testimonial-card__rating .star {
    color: var(--color-text-muted);
    font-size: var(--font-size-lg);
    margin-right: 2px;
}

.testimonial-card__quote {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-md);
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.testimonial-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-text-muted);
    color: var(--color-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
}

.testimonial-card__info {
    flex: 1;
}

.testimonial-card__name {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.testimonial-card__role {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* Impact Stats */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

@media (max-width: 1023px) {
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .impact-stats {
        grid-template-columns: 1fr;
    }
}

.impact-stat {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.impact-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.impact-stat__icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-accent);
}

.impact-stat__icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--color-accent);
}

.impact-stat__number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: var(--spacing-sm);
}

.impact-stat__value {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-text-primary);
    line-height: 1;
}

.impact-stat__unit {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-accent);
}

.impact-stat__label {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
}

/* Info Cards */
.info-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-border-medium);
}

.info-card__header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.info-card__icon {
    font-size: 2.5rem;
    color: var(--color-accent);
}

.info-card__icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-accent);
}

.info-card__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin: 0;
}

.info-card__content {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

.info-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card__list li {
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.info-card__list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    width: 6px;
    height: 10px;
    border: solid var(--color-accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-border-medium);
    color: var(--color-text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.whatsapp-float svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-text-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: var(--color-bg-primary);
}

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

/* Section Background Overlays */
.section--cta {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-text-primary);
}

.section--cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 15, 20, 0.92);
    backdrop-filter: blur(4px);
    z-index: 0;
}

.section--cta .container {
    position: relative;
    z-index: 1;
}

/* === NEW SECTIONS STYLING === */

/* Grid 4 Column */
.grid--4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

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

@media (max-width: 600px) {
    .grid--4 {
        grid-template-columns: 1fr;
    }
}

/* Hero Pillars */
.hero-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-2xl);
    text-align: left;
}

@media (max-width: 768px) {
    .hero-pillars {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero-pillar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
}

.hero-pillar h3 {
    color: var(--color-text-primary);
    /* Assuming dark background for hero */
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
}

.hero-pillar p {
    color: var(--color-text-secondary);
    /* Or specific light text color if hero is dark */
    font-size: var(--font-size-sm);
    margin: 0;
    line-height: 1.5;
}

/* Program Cards (Ensuring equal height) */
.card-program {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-program .card__text {
    flex-grow: 1;
}

/* Benefit Cards (Kenapa Kami Ada) */
.benefit-card {
    background: var(--color-surface);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.benefit-card h3 {
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
}

.benefit-card p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin: 0;
}

/* Collaboration Cards */
.collab-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: transform 0.3s ease;
}

.collab-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.collab-card h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

/* === NEW SERVICE PAGE STYLES === */

/* 1. Calendar Card (Jadwal Rutin) */
.card-calendar {
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.card-calendar:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.card-calendar__date {
    background: var(--color-bg-secondary);
    color: var(--color-primary);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 80px;
    margin-right: var(--spacing-md);
}

.card-calendar__day {
    font-weight: 800;
    font-size: var(--font-size-lg);
    display: block;
    line-height: 1;
}

.card-calendar__content h4 {
    margin: 0 0 5px 0;
    color: var(--color-text-primary);
    font-size: var(--font-size-md);
}

.card-calendar__content p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* 2. Premium Service Card (Layanan Inti) */
.card-service-premium {
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-service-premium::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card-service-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-service-premium:hover::after {
    transform: scaleX(1);
}

.card-service-premium__icon {
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.card-service-premium:hover .card-service-premium__icon {
    transform: scale(1.1);
}

.card-service-premium__chip {
    display: inline-block;
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
}

.card-service-premium__title {
    font-size: 1.25rem;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.card-service-premium__subtitle {
    font-size: 0.875rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.card-service-premium__desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

.card-service-premium__output {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border-subtle);
    padding-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

/* === PRIVATE SERVICES STYLES === */

/* Private Service Card (Premium Look) */
.card-service-private {
    background: linear-gradient(135deg, var(--color-surface) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-service-private::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #D97706 0%, #F59E0B 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-service-private:hover::before {
    opacity: 1;
}

.card-service-private:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(217, 119, 6, 0.2);
    border-color: rgba(217, 119, 6, 0.3);
}

.card-service-private__icon {
    margin-bottom: var(--spacing-md);
    color: #D97706;
    transition: transform 0.3s ease;
}

.card-service-private:hover .card-service-private__icon {
    transform: scale(1.1);
}

.card-service-private__title {
    font-size: 1.25rem;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.card-service-private__subtitle {
    font-size: 0.875rem;
    color: #D97706;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.card-service-private__desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

.card-service-private__chip {
    display: inline-block;
    background: rgba(217, 119, 6, 0.1);
    color: #D97706;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.card-service-private__output {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border-subtle);
    padding-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

/* Service Badges */
.service-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
}

.service-badge--orange {
    background: rgba(217, 119, 6, 0.15);
    color: #D97706;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

/* === MEGA MENU STYLES === */
.header__nav-item--mega {
    position: static;
}

.header__dropdown--mega-content {
    width: 900px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    box-shadow: var(--shadow-2xl);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: block;
    /* Override default if needed, but rely on opacity/visibility */
}

.header__nav-item--mega:hover .header__dropdown--mega-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    /* Nav, Stats, Featured */
    gap: var(--spacing-xl);
}

.mega-menu-col {
    display: flex;
    flex-direction: column;
}

.mega-menu-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: var(--spacing-xs);
}

/* Mega Link */
.mega-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 0.2s ease;
    margin-bottom: var(--spacing-xs);
}

.mega-link:hover {
    background: var(--color-bg-secondary);
}

.mega-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    /* Assuming dark mode default or adaptable */
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-subtle);
}

.mega-link:hover .mega-icon {
    background: var(--color-bg-primary);
    border-color: var(--color-primary);
}

.mega-link-text {
    flex: 1;
}

.mega-link-text strong {
    display: block;
    color: var(--color-text-primary);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.mega-link-text small {
    display: block;
    color: var(--color-text-secondary);
    font-size: 0.8rem;
}

/* Mega Stat Card */
.mega-stat-card {
    background: var(--color-bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    border: 1px solid var(--color-border-subtle);
}

.mega-stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.mega-stat-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.mega-stat-bar>div {
    height: 100%;
    background: var(--color-success, #10B981);
    /* Default success green */
    border-radius: 3px;
    background-image: linear-gradient(90deg, var(--color-primary) 0%, var(--color-success) 100%);
}

.text-success {
    color: var(--color-success, #10B981);
    font-size: 0.8rem;
}

/* Featured Card */
.mega-featured-card {
    position: relative;
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    text-decoration: none;
    border: 1px solid var(--color-border-subtle);
}

.mega-featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mega-featured-card:hover img {
    transform: scale(1.05);
}

.mega-featured-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
}

.mega-featured-info .badge {
    background: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
    display: inline-block;
}

.mega-featured-info h5 {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1024px) {
    .header__dropdown--mega-content {
        width: 90vw;
    }
}

.badge-gratis {
    display: inline-block;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.badge-by-request {
    display: inline-block;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.2);
}

/* Badge Container for Section Headers */
.service-badges {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.service-badge-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
}

.service-badge-item__icon {
    font-size: 1.25rem;
}

.service-badge-item__text {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* By Request Panel */
.by-request-panel {
    background: var(--color-surface);
    border: 2px dashed rgba(217, 119, 6, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.3s ease;
}

.by-request-panel:hover {
    border-color: rgba(217, 119, 6, 0.5);
    background: rgba(217, 119, 6, 0.02);
}

.by-request-panel h4 {
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.by-request-panel p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}

/* Microcopy Style */
.microcopy {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
    padding: var(--spacing-md);
    background: rgba(217, 119, 6, 0.05);
    border-left: 3px solid #D97706;
    border-radius: var(--radius-md);
    margin-top: var(--spacing-lg);
}


/* 3. Banner Card (Full Width Community) */
.card-banner {
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.card-banner__content {
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-banner__visual {
    background: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

@media (max-width: 768px) {
    .card-banner {
        grid-template-columns: 1fr;
    }

    .card-banner__visual {
        display: none;
    }
}

/* 4. Checklist Feature Card (Support Services) */
.card-checklist {
    background: var(--color-surface);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.card-checklist:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-border-subtle);
}

.card-checklist__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-top: 2px;
}

.card-checklist__content h4 {
    margin: 0 0 5px 0;
    color: var(--color-text-primary);
    font-size: 1rem;
}

.card-checklist__content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* 5. Metrics Strip (Standards) */
.metrics-strip {
    display: flex;
    justify-content: space-between;
    background: var(--color-surface);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-subtle);
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.metric-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
    min-width: 200px;
}

.metric-item__icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.metric-item__text h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--color-text-primary);
}

.metric-item__text p {
    margin: 5px 0 0 0;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* 6. Step Cards */
.step-card {
    text-align: center;
    position: relative;
    padding: var(--spacing-lg);
}

.step-card__number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-border-subtle);
    line-height: 1;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 0;
}

.step-card__number::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--color-primary);
    opacity: 0.5;
}

.step-card h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

/* Timeline/Stepper Visual */
.service-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: var(--spacing-2xl) 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.service-stepper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-border-subtle);
    z-index: 0;
    transform: translateY(-50%);
}

.stepper-item {
    position: relative;
    z-index: 1;
    background: var(--color-surface);
    padding: 0 var(--spacing-sm);
    text-align: center;
}

.stepper-dot {
    width: 16px;
    height: 16px;
    background: var(--color-primary);
    border-radius: 50%;
    margin: 0 auto var(--spacing-sm) auto;
    box-shadow: 0 0 0 4px var(--color-surface);
}

.stepper-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-primary);
}

@media (max-width: 768px) {
    .service-stepper {
        flex-direction: column;
        gap: var(--spacing-md);
        padding-left: var(--spacing-xl);
    }

    .service-stepper::before {
        width: 2px;
        height: 100%;
        left: 7px;
        top: 0;
        transform: none;
    }

    .stepper-item {
        text-align: left;
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
        padding: 0;
    }

    .stepper-dot {
        margin: 0;
    }
}


/* === CREATIVE INFOGRAPHICS STYLES === */

/* 1. Creative Service Framework (Timeline) */
.timeline-container {
    position: relative;
    padding: var(--spacing-2xl) 0;
    margin-top: var(--spacing-xl);
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-border-subtle);
    transform: translateY(-50%);
    z-index: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--color-border-subtle) 0%, var(--color-primary) 50%, var(--color-border-subtle) 100%);
    opacity: 0.3;
}

.timeline-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.timeline-node:hover {
    transform: translateY(-10px) scale(1.05);
}

.timeline-marker {
    width: 48px;
    height: 48px;
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 0 0 4px var(--color-bg-primary);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-node:hover .timeline-marker {
    background: var(--color-primary);
    color: var(--color-surface);
    box-shadow: 0 0 0 6px var(--color-bg-primary), 0 0 0 8px rgba(var(--color-primary-rgb), 0.2);
}

.timeline-marker svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-primary);
    transition: all 0.3s ease;
}

.timeline-node:hover .timeline-marker svg {
    stroke: white;
}

.timeline-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.timeline-node:hover .timeline-desc {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .timeline-container {
        padding: 0;
    }

    .timeline-line {
        width: 4px;
        height: 100%;
        left: 22px;
        top: 0;
        transform: none;
        background: linear-gradient(180deg, var(--color-border-subtle) 0%, var(--color-primary) 50%, var(--color-border-subtle) 100%);
    }

    .timeline-nodes {
        flex-direction: column;
        gap: var(--spacing-xl);
    }

    .timeline-node {
        width: 100%;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }

    .timeline-marker {
        margin-right: var(--spacing-md);
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .timeline-desc {
        opacity: 1;
        transform: none;
    }
}

/* 2. Creative Standards Grid (Mosaic) */
.standards-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.standard-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.standard-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.standard-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.standard-card:hover::before {
    opacity: 1;
}

.standard-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: rotate(-5deg);
    transition: all 0.3s ease;
}

.standard-card:hover .standard-icon-box {
    transform: rotate(0deg) scale(1.1);
    background: var(--color-primary);
}

.standard-icon-box svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-text-primary);
    transition: all 0.3s ease;
}

.standard-card:hover .standard-icon-box svg {
    stroke: white;
}

.standard-card h4 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.standard-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .standards-mosaic {
        grid-template-columns: 1fr;
    }

    .standard-card {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }

    .standard-icon-box {
        margin-bottom: 0;
        margin-right: var(--spacing-md);
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .standard-icon-box svg {
        width: 24px;
        height: 24px;
    }
}

/* 3. Program Flow (for Literasi Produktif) */
.program-flow {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.program-flow::before {
    content: '';
    position: absolute;
    top: 50px;
    bottom: 50px;
    left: 50%;
    width: 4px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 100%);
    transform: translateX(-50%);
    opacity: 0.3;
    z-index: 0;
}

.program-step {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.program-step:nth-child(even) {
    flex-direction: row-reverse;
}

.program-step__content {
    flex: 1;
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.program-step:hover .program-step__content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.program-step__marker {
    width: 60px;
    height: 60px;
    background: var(--color-surface);
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-primary);
    box-shadow: 0 0 0 8px var(--color-bg-primary);
    flex-shrink: 0;
}

/* 4. Glass Showcase (for Literasi Dasar) */
.glass-showcase {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-xl);
}

.glass-showcase__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.glass-showcase:hover .glass-showcase__bg {
    transform: scale(1.05);
}

.glass-showcase__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.glass-showcase__content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-3xl);
    max-width: 600px;
    color: white;
}

.glass-showcase__card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    margin-top: var(--spacing-lg);
}

/* 4. Feature Hero (Vector only, no photos) */
.feature-hero {
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-3xl);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-2xl);
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.feature-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.1) 0%, transparent 70%);
    z-index: 0;
}

.feature-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.1) 0%, transparent 70%);
    z-index: 0;
}

.feature-hero__content {
    position: relative;
    z-index: 2;
}

.feature-hero__visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-hero__icon-composite {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-hero__main-icon {
    width: 120px;
    height: 120px;
    stroke: var(--color-primary);
    stroke-width: 1;
    filter: drop-shadow(0 10px 20px rgba(var(--color-primary-rgb), 0.2));
    animation: float 6s ease-in-out infinite;
}

.feature-hero__sub-icon {
    position: absolute;
    stroke: var(--color-accent);
    stroke-width: 1.5;
    opacity: 0.8;
}

.feature-hero__sub-icon--1 {
    width: 40px;
    height: 40px;
    top: 0;
    right: 20px;
    animation: float 8s ease-in-out infinite reverse;
}

.feature-hero__sub-icon--2 {
    width: 30px;
    height: 30px;
    bottom: 20px;
    left: 10px;
    animation: float 5s ease-in-out infinite 1s;
}

@keyframes float {

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

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

@media (max-width: 768px) {
    .program-flow::before {
        left: 30px;
    }

    .program-step {
        flex-direction: row !important;
        gap: var(--spacing-md);
    }

    .program-step__marker {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .glass-showcase__overlay {
        width: 100%;
        background: rgba(0, 0, 0, 0.6);
    }

    .feature-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: var(--spacing-xl);
    }

    .feature-hero__visual {
        margin-top: var(--spacing-lg);
    }
}

/* === NEWS ECOSYSTEM STYLES === */

/* 1. Mini Dashboard (Infographic) */
.mini-dashboard {
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-md);
}

.stat-card {
    background: var(--color-bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--color-border-subtle);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-highlights {
    border-left: 1px solid var(--color-border-subtle);
    padding-left: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.highlight-item {
    margin-bottom: var(--spacing-md);
}

.highlight-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
    display: block;
}

.highlight-value {
    font-weight: 600;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 2. Editorial Cards (Berita) */
.card-editorial {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border-subtle);
    transition: all 0.3s ease;
    height: 100%;
}

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

.editorial-cover {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.editorial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-editorial:hover .editorial-img {
    transform: scale(1.05);
}

.editorial-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.editorial-content {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.editorial-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xs);
}

.editorial-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
    color: var(--color-text-primary);
}

.editorial-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

/* 3. How-to Cards (Tutorial) */
.card-howto {
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    position: relative;
}

.card-howto:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.howto-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.howto-icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.howto-time {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    background: var(--color-bg-secondary);
    padding: 4px 8px;
    border-radius: 4px;
}

.howto-steps-preview {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.howto-steps-preview li {
    margin-bottom: 4px;
}

/* 4. Gallery Masonry */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    background: var(--color-surface);
}

/* Aspect ratios for masonry feel */
.gallery-item--wide {
    grid-column: span 2;
}

.gallery-item--tall {
    grid-row: span 2;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-lg);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 1;
    /* Always visible on mobile/desktop for better UX, or hover only */
    transition: opacity 0.3s ease;
}

.gallery-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.gallery-date {
    font-size: 0.8rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .mini-dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-highlights {
        border-left: none;
        border-top: 1px solid var(--color-border-subtle);
        padding-left: 0;
        padding-top: var(--spacing-lg);
    }

    .gallery-item--wide {
        grid-column: span 1;
    }

    .gallery-item--tall {
        grid-row: span 1;
    }
}

/* === NEWS PORTAL ADDITIONAL STYLES === */

/* 1. Toolbar Navigation (Sticky Secondary) */
/* 1. News Tabs (Strict Fixed Height) */
.news-tabs {
    background: var(--color-surface);
    height: 56px;
    /* Fixed Height Container */
    display: flex;
    align-items: center;
    padding: 0;
    position: sticky;
    top: 70px;
    z-index: 90;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-tabs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.tab {
    display: flex;
    align-items: center;
    height: 56px;
    /* Fixed Height Item */
    line-height: 1;
    padding: 0 12px;
    position: relative;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
    border-bottom: none !important;
}

.tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
    transform-origin: center;
}

.tab:hover,
.tab.active {
    color: var(--color-primary);
}

.tab:hover::after,
.tab.active::after {
    transform: scaleX(1);
}

.news-tabs-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.toolbar-nav__actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

/* 2. News Card Row (Horizontal List) */
.card-news-row {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: var(--spacing-lg);
}

.card-news-row:last-child {
    border-bottom: none;
}

.card-news-row__img {
    width: 240px;
    height: 160px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

.card-news-row:hover .card-news-row__img img {
    transform: scale(1.05);
}

.card-news-row__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-news-row__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.card-news-row__title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.card-news-row__title a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.card-news-row__title a:hover {
    color: var(--color-primary);
}

.card-news-row__meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
}

.card-news-row__excerpt {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .card-news-row {
        flex-direction: column;
    }

    .card-news-row__img {
        width: 100%;
        height: 200px;
    }
}

/* 3. Sidebar Widgets */
.sidebar-widget {
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.sidebar-widget__title {
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    display: inline-block;
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: widget-counter;
}

.widget-list__item {
    position: relative;
    padding-left: 24px;
    margin-bottom: var(--spacing-md);
}

.widget-list__item::before {
    counter-increment: widget-counter;
    content: counter(widget-counter);
    position: absolute;
    left: 0;
    top: 2px;
    font-weight: 800;
    color: var(--color-border-medium);
    font-size: 0.9rem;
}

.widget-list__link {
    display: block;
    font-weight: 600;
    color: var(--color-text-primary);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s;
}

.widget-list__link:hover {
    color: var(--color-primary);
}

.widget-list__meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    display: block;
}

/* 4. Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox__content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox__caption {
    color: white;
    margin-top: var(--spacing-md);
    text-align: center;
    max-width: 800px;
}

.lightbox__close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
}

.lightbox__nav--prev {
    left: 30px;
}

.lightbox__nav--next {
    right: 30px;
}

/* === 5. INTERNATIONAL NEWS GRID SYSTEM === */
.layout-news-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--spacing-2xl);
}

.news-main-col {
    grid-column: span 8;
}

.news-sidebar-col {
    grid-column: span 4;
    padding-left: var(--spacing-lg);
    border-left: 1px solid var(--color-border-subtle);
    /* Align bottom widget */
    display: flex;
    flex-direction: column;
}

.news-sidebar-col .sidebar-widget:last-child {
    margin-top: auto;
}

@media (max-width: 992px) {
    .layout-news-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .news-main-col,
    .news-sidebar-col {
        grid-column: span 1;
    }

    .news-sidebar-col {
        border-left: none;
        padding-left: 0;
        margin-top: var(--spacing-xl);
        border-top: 1px solid var(--color-border-subtle);
        padding-top: var(--spacing-xl);
    }
}

/* === 6. CARD SYSTEM VARIATIONS === */
/* Card XL (Hero) */
.card-news-xl {
    margin-bottom: var(--spacing-xl);
}

.card-news-xl .editorial-cover {
    height: 360px;
    /* Reduced from 450px to prevent overflow */
    margin-bottom: 20px;
}

.card-news-xl .editorial-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.card-news-xl .editorial-excerpt {
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 90%;
}

/* Card MD (Grid Item) */
.card-news-md {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-news-md .editorial-cover {
    height: 220px;
    /* 16:9 for smaller cards */
    margin-bottom: 12px;
}

.card-news-md .editorial-title {
    font-size: 1.25rem;
    line-height: 1.35;
    margin-bottom: 8px;
}

.card-news-md .editorial-meta {
    margin-bottom: 8px;
}

/* Grid Wrapper for MD Cards */
.editorial-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-3xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid var(--color-border-subtle);
}

@media (max-width: 768px) {
    .editorial-grid-3 {
        grid-template-columns: 1fr;
    }

    .card-news-xl .editorial-cover {
        height: 250px;
    }

    .card-news-xl .editorial-title {
        font-size: 1.75rem;
    }
}

/* === 7. TUTORIAL & GALLERY SPECIFIC === */
.quick-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--spacing-xl);
}

.topic-chip {
    padding: 6px 16px;
    background: var(--color-bg-secondary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.topic-chip:hover,
.topic-chip.active {
    background: var(--color-primary);
    color: white;
}

.series-progress-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.series-progress-bar {
    height: 6px;
    background: var(--color-border-subtle);
    border-radius: 3px;
    margin: 8px 0;
    overflow: hidden;
}

.series-progress-fill {
    height: 100%;
    background: var(--color-success);
}


/* === UTILITIES === */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === NEWS REDESIGN V2 === */

/* 1. Footer Safety (Anti-Overlap) */
/* Sticky Footer Layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

main {
    flex: 1;
    width: 100%;
}

:root {
    --footer-height: 360px;
    /* Estimated height */
}

main {
    padding-bottom: var(--spacing-4xl);
    /* Safe buffer */
    min-height: 80vh;
}

/* Footer Fix - remove large padding */
.news-detail-container {
    padding-bottom: var(--spacing-2xl);
    min-height: 60vh;
}

/* Duplicate news-tabs removed */

.news-tab-btn {
    padding: var(--spacing-md) var(--spacing-lg);
    background: none;
    border: none;
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.news-tab-btn.active {
    color: var(--color-primary);
}

.news-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
}

/* 3. Featured Card XL */
.card-featured-xl {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-2xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--spacing-3xl);
}

.card-featured-xl__media {
    position: relative;
    height: 100%;
    min-height: 300px;
}

.card-featured-xl__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-featured-xl__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-xl);
    padding-left: 0;
}

@media (max-width: 900px) {
    .card-featured-xl {
        grid-template-columns: 1fr;
    }

    .card-featured-xl__content {
        padding: var(--spacing-lg);
    }

    .card-featured-xl__media {
        height: 260px;
    }
}

/* 4. List Card (Small) */
.card-list-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-border-subtle);
    transition: transform 0.2s;
}

.card-list-item:hover {
    transform: translateX(4px);
}

.card-list-item__thumb {
    width: 120px;
    height: 90px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.card-list-item__content {
    flex: 1;
}

/* 5. Tutorial Infographic Card */
.card-tutorial {
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: all 0.2s;
}

.card-tutorial:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.card-tutorial__badges {
    display: flex;
    gap: 8px;
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.badge-level {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--color-neutral-100);
    color: var(--color-neutral-700);
    font-weight: 600;
}

/* 6. Gallery Album Card */
.card-album {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.card-album__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.card-album:hover .card-album__img {
    transform: scale(1.05);
}

.card-album__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

/* === NEWS REDESIGN V3 PATCH === */

/* Sticky Footer Fixed */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    width: 100%;
}

footer {
    margin-top: auto;
}

/* Card Featured XL */
.card-featured-xl {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--spacing-2xl);
}

.card-featured-xl__media {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--color-border-subtle);
}

.card-featured-xl__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card List Item (News & Tutorial) */
.card-list-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border-subtle);
    align-items: flex-start;
}

.card-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.card-list-item__thumb {
    width: 200px;
    height: 112px;
    /* 16:9 */
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.card-list-item__content {
    flex: 1;
}

/* Gallery Album Card Patch */
/* Override existing card-album to support Image + Text layout */
.card-album {
    aspect-ratio: auto !important;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-surface);
}

.card-album img {
    /* Ensure image inside fills the aspect-ratio wrapper defined in HTML or here */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card-album:hover img {
    transform: scale(1.05);
}

/* Utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .card-list-item__thumb {
        width: 140px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .card-list-item {
        flex-direction: column;
    }

    .card-list-item__thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        margin-bottom: var(--spacing-sm);
    }
}

/* Whatsapp Floating Button Override */
.whatsapp-float {
    background-color: green !important;
}