/* ============================================
   Rafli Project - Main Stylesheet
   ============================================ */

/* === CSS Variables === */
:root {
    --red-primary: #C0392B;
    --red-dark: #922B21;
    --red-light: #E74C3C;
    --red-soft: #FDEDEC;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-500: #ADB5BD;
    --gray-700: #495057;
    --gray-900: #1a1a2e;
    --dark: #1a1a2e;
    --dark-2: #2d2d4e;
    --white: #FFFFFF;
    --text-primary: #1a1a2e;
    --text-secondary: #6c757d;
    --text-light: #ADB5BD;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-red: 0 8px 30px rgba(43, 83, 192, 0.3);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font);
}

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-family: var(--font);
}

.btn-primary {
    background: var(--red-primary);
    color: var(--white);
    border-color: var(--red-primary);
}

.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--red-primary);
    border-color: var(--red-primary);
}

.btn-outline:hover {
    background: var(--red-primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--red-primary);
    border-color: var(--white);
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* === Top Bar === */
.top-bar {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 0;
    font-size: 0.82rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 20px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-left i {
    color: var(--red-light);
}

.top-bar-right {
    display: flex;
    gap: 12px;
}

.top-bar-right a {
    color: rgba(255, 255, 255, 0.7);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.top-bar-right a:hover {
    background: var(--red-primary);
    color: white;
}

/* === Header === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 16px 0;
}

/* Logo */
.logo-link {
    flex-shrink: 0;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 46px;
    height: 46px;
    background: var(--red-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--dark);
    line-height: 1.1;
}

.logo-tagline {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation */
.main-nav {
    flex: 1;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.nav-link {
    padding: 8px 14px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--red-primary);
    background: var(--red-soft);
}

.nav-link i {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--white);
    min-width: 220px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover>.nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--red-soft);
    color: var(--red-primary);
    padding-left: 20px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === Hero Slider === */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--dark);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--dark-2);
    transition: transform 8s ease;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1.05);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(192, 57, 43, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-nav {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.hero-nav-btn:hover {
    background: var(--red-primary);
    border-color: var(--red-primary);
    transform: scale(1.1);
}

.hero-dots {
    position: absolute;
    bottom: 52px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: white;
    width: 28px;
    border-radius: 5px;
}

/* === Section Styles === */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--gray-100);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    background: var(--red-soft);
    color: var(--red-primary);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-title span {
    color: var(--red-primary);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--red-primary), var(--red-light));
    border-radius: 2px;
    margin: 20px auto 0;
}

/* === News Cards === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.news-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--gray-200);
}

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

.news-card:hover .news-card-image img {
    transform: scale(1.08);
}

.news-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--red-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.news-card-meta i {
    color: var(--red-primary);
}

.news-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--dark);
    transition: var(--transition);
    flex: 1;
}

.news-card:hover .news-card-title {
    color: var(--red-primary);
}

.news-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.news-card-author {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-read-more {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--red-primary);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.news-card:hover .news-read-more {
    gap: 10px;
}

/* Featured Card (large) */
.news-card.featured {
    grid-column: span 2;
    flex-direction: row;
}

.news-card.featured .news-card-image {
    width: 45%;
    height: auto;
    min-height: 280px;
    flex-shrink: 0;
}

.news-card.featured .news-card-body {
    padding: 30px;
}

.news-card.featured .news-card-title {
    font-size: 1.3rem;
}

/* === "Apa yang Kami Lakukan" === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red-primary), var(--red-light));
    transform: scaleX(0);
    transition: var(--transition);
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.service-icon {
    width: 72px;
    height: 72px;
    background: var(--red-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: var(--transition);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--red-primary);
}

.service-card:hover .service-icon {
    background: var(--red-primary);
}

.service-card:hover .service-icon i {
    color: white;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.service-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === CTA Banner === */
.cta-banner {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-primary) 50%, var(--red-light) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.cta-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    line-height: 1.2;
}

.cta-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.cta-actions {
    flex-shrink: 0;
    display: flex;
    gap: 14px;
}

/* === Mitra / Partners === */
.mitra-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    align-items: center;
}

.mitra-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: var(--transition);
    overflow: hidden;
}

.mitra-card:hover {
    border-color: var(--red-primary);
    box-shadow: var(--shadow-sm);
    transform: scale(1.05);
}

.mitra-card img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.mitra-card:hover img {
    filter: none;
    opacity: 1;
}

.mitra-placeholder {
    font-weight: 700;
    font-size: 0.8rem;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* === Publikasi Grid === */
.pub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pub-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.pub-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.pub-card-image {
    position: relative;
    height: 200px;
    background: var(--gray-200);
    overflow: hidden;
}

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

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

.pub-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(192, 57, 43, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.pub-card:hover .pub-card-overlay {
    opacity: 1;
}

.pub-card-overlay i {
    color: white;
    font-size: 2rem;
}

.pub-card-body {
    padding: 20px;
}

.pub-badge {
    display: inline-block;
    background: var(--red-soft);
    color: var(--red-primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.pub-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark);
    margin-bottom: 8px;
}

.pub-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === Video Grid === */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.video-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.video-thumb {
    position: relative;
    height: 200px;
    background: var(--dark);
    overflow: hidden;
    cursor: pointer;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    opacity: 0.85;
}

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

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.video-play-btn i {
    width: 60px;
    height: 60px;
    background: var(--red-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(192, 57, 43, 0.5);
    padding-left: 4px;
}

.video-card:hover .video-play-btn i {
    transform: scale(1.15);
}

.video-card-body {
    padding: 20px;
}

.video-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.video-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === Gallery Grid === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--dark);
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s, opacity 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.1);
    opacity: 0.7;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.8), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay span {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.gallery-item-overlay i {
    color: white;
    font-size: 1.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* === Pagination === */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
    background: var(--red-primary);
    border-color: var(--red-primary);
    color: white;
}

/* === Page Banner === */
.page-banner {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-banner-content {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--red-light);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb .current {
    color: white;
}

.page-banner h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: white;
    margin-bottom: 12px;
}

.page-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* === Article Detail === */
.article-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
}

.article-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-category-tag {
    background: var(--red-soft);
    color: var(--red-primary);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.article-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta i {
    color: var(--red-primary);
}

.article-featured-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 40px;
}

.article-featured-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-primary);
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 32px 0 16px;
    color: var(--dark);
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 28px 0 12px;
    color: var(--dark);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    padding-left: 28px;
    margin-bottom: 20px;
}

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

.article-content blockquote {
    border-left: 4px solid var(--red-primary);
    background: var(--red-soft);
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-primary);
}

.article-content img {
    border-radius: var(--radius-md);
    margin: 20px 0;
}

/* === Kontak === */
.kontak-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.kontak-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--dark);
}

.kontak-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.kontak-icon {
    width: 48px;
    height: 48px;
    background: var(--red-soft);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kontak-icon i {
    color: var(--red-primary);
    font-size: 1.2rem;
}

.kontak-item h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.kontak-item p,
.kontak-item a {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.kontak-item a:hover {
    color: var(--red-primary);
}

/* === Forms === */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: var(--transition);
    outline: none;
    background: white;
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

/* === Lightbox === */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--red-primary);
}

/* === Video Modal === */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.video-modal.active {
    display: flex;
}

.video-modal-inner {
    position: relative;
    width: 90%;
    max-width: 860px;
}

.video-modal iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: var(--radius-md);
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.video-modal-close:hover {
    background: var(--red-primary);
}

/* === Footer === */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    background: var(--red-primary);
    width: 42px;
    height: 42px;
    font-size: 0.85rem;
}

.footer-logo .logo-name {
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
}

.footer-about p {
    font-size: 0.875rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--red-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--red-primary);
    border-radius: 2px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-col ul a i {
    font-size: 0.65rem;
    color: var(--red-primary);
}

.footer-col ul a:hover {
    color: white;
    padding-left: 6px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-item i {
    color: var(--red-primary);
    margin-top: 3px;
    width: 16px;
    flex-shrink: 0;
}

.contact-item span,
.contact-item a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

.contact-item a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    display: flex;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--red-primary);
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--red-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-red);
    transform: translateY(80px);
    opacity: 0;
    transition: var(--transition);
}

.back-to-top.visible {
    transform: translateY(0);
    opacity: 1;
}

.back-to-top:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
}

/* === Alert / Flash Messages === */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9rem;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* === Filter Tabs === */
.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    justify-content: center;
}

.filter-tab {
    padding: 8px 20px;
    border: 2px solid var(--gray-300);
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--red-primary);
    border-color: var(--red-primary);
    color: white;
}

/* === About Page === */
.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.stat-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--red-soft);
    border-radius: var(--radius-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--red-primary);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.team-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--red-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2rem;
    color: var(--red-primary);
    font-weight: 800;
}

.team-name {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* === Mitra Page === */
.mitra-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.mitra-page-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 36px;
    text-align: center;
    border: 2px solid var(--gray-200);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.mitra-page-card:hover {
    border-color: var(--red-primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.mitra-logo-box {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.mitra-logo-box img {
    max-height: 80px;
    max-width: 180px;
    object-fit: contain;
}

.mitra-page-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.mitra-page-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.mitra-page-card a.btn {
    width: 100%;
    justify-content: center;
}

/* === Loading Skeleton === */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

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

.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* === No Image Placeholder === */
.no-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    color: var(--gray-500);
}

.no-img-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.no-img-placeholder span {
    font-size: 0.75rem;
    font-weight: 600;
}

/* === Responsive === */
@media (max-width: 1100px) {
    .mitra-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .news-card.featured {
        grid-column: span 1;
        flex-direction: column;
    }

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

    .pub-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kontak-grid {
        grid-template-columns: 1fr;
    }

    .about-hero-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mitra-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-slider {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .top-bar-left {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 340px;
        height: 100vh;
        background: white;
        z-index: 1001;
        padding: 80px 24px 40px;
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .main-nav.open {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2px;
        align-items: stretch;
    }

    .nav-link {
        justify-content: space-between;
        padding: 12px 16px;
    }

    .has-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
        display: none;
        border-left: 3px solid var(--red-soft);
        margin-top: 4px;
    }

    .has-dropdown.open .dropdown-menu {
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .hero-slider {
        height: 450px;
    }

    .section {
        padding: 60px 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .pub-grid {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .mitra-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mitra-page-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .hero-slider {
        height: 400px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-actions {
        flex-direction: column;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}