/* ============================================================
   JANNATA GROUP — ARTIKEL & BERITA PAGE STYLESHEET
   Mobile (<768px), Tablet (768px-1023px), Macbook (1024px-1439px), Desktop (>=1440px)
   ============================================================ */

/* ============================================================
   SECTION 1 — HERO BANNER
   ============================================================ */
.art-hero-section {
    position: relative;
    height: 450px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 40px;
    background: url('/img/kontak-kami/hero.png') no-repeat center center / cover, linear-gradient(180deg, #000843 -50%, #03225D 74%, #0F2A5C 133%);
    border-radius: 0 0 120px 120px;
    color: #FFFFFF;
    text-align: center;
    overflow: hidden;
}

.art-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.art-hero-tag {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.art-hero-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}

.art-hero-desc {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 780px;
}

/* ============================================================
   SECTION HEADERS & BADGES
   ============================================================ */
.art-section-header {
    margin-bottom: 40px;
}

.art-section-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 48px;
}

.art-section-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #004BA8;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.art-section-title {
    font-size: 36px;
    font-weight: 600;
    color: #0F172A;
    margin: 0;
    line-height: 1.25;
}

.art-section-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #64748B;
    margin: 0;
    max-width: 500px;
}

.art-badge-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #004BA8;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
   SECTION 2 — HEADLINE / SWIPER CAROUSEL
   ============================================================ */
.art-headline-section {
    background: #FFFFFF;
}

.art-headline-swiper {
    width: 100%;
    padding-bottom: 48px;
}

.art-headline-slide {
    height: auto;
}

.art-headline-card {
    display: block;
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    height: 425px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.art-headline-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(30, 67, 111, 0.3);
}

.art-headline-img-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

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

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

.art-headline-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30, 67, 111, 0.9) 0%, rgba(30, 67, 111, 0.15) 50%, rgba(0, 0, 0, 0.75) 100%);
}

.art-headline-content {
    position: absolute;
    inset: 0;
    padding: 32px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.art-headline-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    color: #FFFFFF;
    margin: 8px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.art-headline-swiper .swiper-button-next,
.art-headline-swiper .swiper-button-prev {
    width: 48px;
    height: 48px;
    background: #FFFFFF;
    border-radius: 50%;
    color: #004BA8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
}

.art-headline-swiper .swiper-button-next::after,
.art-headline-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.art-headline-swiper .swiper-button-next:hover,
.art-headline-swiper .swiper-button-prev:hover {
    background: #004BA8;
    color: #FFFFFF;
}

.art-headline-swiper .swiper-pagination-bullet-active {
    background: #004BA8;
}

/* ============================================================
   SECTION 3 — ARTIKEL GRID LIST (EXACT FIGMA SPECIFICATIONS)
   ============================================================ */
.art-list-section {
    background: #F9FAFB;
}

.art-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Card Berita (Figma Specifications) */
.art-card {
    position: relative;
    width: 100%;
    height: 425px;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    isolation: isolate;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-sizing: border-box;
}

.art-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(30, 67, 111, 0.28);
}

.art-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 0.6s ease;
}

.art-card:hover .art-card-bg {
    transform: scale(1.06);
}

/* Top Gradient Overlay (Rectangle 6105 in Figma) */
.art-card-top-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 65%;
    background: linear-gradient(180deg, rgba(30, 67, 111, 0.9) 0%, rgba(30, 67, 111, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Bottom Gradient Overlay (Frame 1000005238 in Figma) */
.art-card-bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
    z-index: 1;
    pointer-events: none;
}

.art-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.art-card-top {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.art-card-date {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: #E2E8F0;
}

.art-card-title {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 150%;
    color: #FFFFFF;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.art-card-bottom {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.art-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: #FFFFFF;
    transition: gap 0.25s ease;
}

.art-card:hover .art-card-btn {
    gap: 12px;
}

.art-card-btn svg {
    transition: transform 0.25s ease;
}

.art-card:hover .art-card-btn svg {
    transform: translateX(4px);
}

/* Empty State */
.art-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 0;
    color: #64748B;
    background: transparent;
    border: none;
    box-shadow: none;
}

.art-empty-state p {
    font-size: 16px;
    font-weight: 500;
    color: #64748B;
    margin: 0;
}

/* Pagination Wrapper */
.art-pagination-wrapper {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.art-pagination-wrapper nav ul.pagination,
.art-pagination-wrapper nav .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.art-pagination-wrapper nav ul.pagination li a,
.art-pagination-wrapper nav ul.pagination li span,
.art-pagination-wrapper nav .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #1E293B;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.art-pagination-wrapper nav ul.pagination li a:hover,
.art-pagination-wrapper nav .page-link:hover {
    border-color: #004BA8;
    color: #004BA8;
    background: #EFF6FF;
}

.art-pagination-wrapper nav ul.pagination li.active span,
.art-pagination-wrapper nav ul.pagination li.active .page-link,
.art-pagination-wrapper nav .page-item.active .page-link {
    background: #004BA8 !important;
    border-color: #004BA8 !important;
    color: #FFFFFF !important;
}

/* ============================================================
   SECTION 4 — DETAIL ARTIKEL (SHOW PAGE)
   ============================================================ */
.art-detail-hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 56px;
    background: url('/img/kontak-kami/hero.png') no-repeat center center / cover, linear-gradient(180deg, #000843 -50%, #03225D 74%, #0F2A5C 133%);
    color: #FFFFFF;
}

.art-detail-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.art-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.art-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.art-breadcrumb a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.art-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.4);
}

.art-breadcrumb-current {
    color: #FFFFFF;
    font-weight: 500;
}

.art-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.art-detail-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.art-detail-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.25;
    color: #FFFFFF;
    margin: 0;
}

.art-detail-body-section {
    background: #FFFFFF;
}

.art-detail-container {
    max-width: 880px;
    margin: 0 auto;
}

.art-detail-img-wrapper {
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.art-detail-featured-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.art-detail-content {
    font-size: 18px;
    line-height: 1.8;
    color: #334155;
}

.art-detail-content p {
    margin-bottom: 24px;
}

.art-detail-content h2,
.art-detail-content h3,
.art-detail-content h4 {
    font-weight: 700;
    color: #0F172A;
    margin: 36px 0 16px 0;
    line-height: 1.3;
}

.art-detail-content h2 {
    font-size: 28px;
}

.art-detail-content h3 {
    font-size: 22px;
}

.art-detail-content ul,
.art-detail-content ol {
    margin: 0 0 24px 0;
    padding-left: 24px;
}

.art-detail-content li {
    margin-bottom: 8px;
}

.art-detail-content blockquote {
    margin: 32px 0;
    padding: 20px 28px;
    background: #EFF6FF;
    border-left: 4px solid #004BA8;
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: #1E3A8A;
}

.art-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 28px 0;
}

.art-detail-footer {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid #E2E8F0;
}

/* Related Articles Section */
.art-related-section {
    background: #F9FAFB;
    border-top: 1px solid #E2E8F0;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (min-width: 1024px) and (max-width: 1439px) {
    .art-hero-title {
        font-size: 40px;
    }
    .art-detail-title {
        font-size: 34px;
    }
    .art-grid {
        gap: 24px;
    }
    .art-card {
        height: 390px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .art-hero-section {
        height: 450px;
        padding-top: 80px;
        border-radius: 0 0 60px 60px;
    }
    .art-hero-title {
        font-size: 32px;
    }
    .art-detail-hero {
        padding-top: 110px;
    }
    .art-detail-title {
        font-size: 28px;
    }
    .art-section-title {
        font-size: 28px;
    }
    .art-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .art-card {
        height: 380px;
    }
    .art-section-header-split {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 767px) {
    .art-hero-section {
        height: 450px;
        padding-top: 80px;
        padding-bottom: 24px;
        border-radius: 0 0 40px 40px;
    }
    .art-hero-title {
        font-size: 26px;
    }
    .art-hero-desc {
        font-size: 14px;
    }
    .art-detail-hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    .art-detail-title {
        font-size: 24px;
    }
    .art-detail-content {
        font-size: 16px;
        line-height: 1.7;
    }
    .art-section-title {
        font-size: 24px;
    }
    .art-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .art-card {
        height: 360px;
    }
    .art-card-content {
        padding: 24px;
    }
    .art-headline-card {
        height: 320px;
    }
    .art-headline-content {
        padding: 24px;
    }
    .art-section-header-split {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 32px;
    }
}