@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --navy: #0f1b3d;
    --navy-light: #162044;
    --navy-mid: #1a2a55;
    --gold: #c9a84c;
    --gold-light: #dabb6a;
    --gold-dark: #b08f3a;
    --white: #ffffff;
    --grey-light: #f0eeea;
    --grey-card: #eae8e3;
    --text-dark: #1a1a2e;
    --text-body: #4a4a5a;
    --text-light: #8a8a9a;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: var(--navy);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== HEADER / NAV ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navy);
    padding: 0 40px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(15, 27, 61, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.header-brand-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
    line-height: 1.2;
}

.header-brand-text p {
    font-size: 0.65rem;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--gold);
}

.header-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 10px 24px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 16px;
}

.btn-contact:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

.btn-contact svg {
    width: 16px;
    height: 16px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: var(--hero-height, 100vh);
    background-color: var(--navy);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.hero-container {
    max-width: var(--hero-max-width, 1280px);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 5;
}

.hero-content {
    padding-right: 20px;
}

.hero-accent {
    display: inline-block;
    background: rgba(201, 168, 76, 0.15);
    color: var(--gold);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(201, 168, 76, 0.3);
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title span {
    display: block;
}

.hero-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 460px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: var(--navy);
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

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

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--gold);
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: rgba(201, 168, 76, 0.1);
    transform: translateY(-2px);
}

.btn-outline svg {
    width: 18px;
    height: 18px;
}

/* Hero image side */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image-wrapper img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* Gold curved line decoration */
.hero-curve {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    pointer-events: none;
    z-index: 1;
}

/* Stamp badge */
.hero-stamp {
    position: absolute;
    bottom: var(--stamp-bottom, -20px);
    left: var(--stamp-left, 50%);
    transform: translateX(-50%);
    width: var(--stamp-size, 150px);
    height: var(--stamp-size, 150px);
    z-index: 10;
    animation: floatBadge 4s ease-in-out infinite;
}

.hero-stamp img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(201, 168, 76, 0.4));
}

@keyframes floatBadge {

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

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

/* Hero Image Slider Styles */
.hero-image-side {
    position: absolute;
    right: var(--slider-right, 10%);
    left: var(--slider-left, auto);
    top: var(--slider-top, 50%);
    transform: translateY(var(--slider-translate-y, -50%));
    width: var(--slider-width, 560px);
    z-index: var(--slider-z-index, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-image-slider {
    position: relative;
    width: 100%;
    height: var(--slider-height, 420px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-img-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.hero-img-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-img-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dots and navigation controls container directly below the image */
.slider-dots-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    z-index: 10;
}

.img-slider-arrow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.img-slider-arrow:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    transform: scale(1.05);
}

.img-slider-arrow svg {
    width: 16px;
    height: 16px;
}

.img-slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.img-slider-dots .img-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.img-slider-dots .img-dot.active {
    background: var(--gold);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(201, 168, 76, 0.6);
}

/* ===== FEATURES ROW ===== */
.features-row {
    background: var(--navy);
    padding: 0 40px 0;
    position: relative;
    z-index: 3;
    margin-top: -30px;
}

.features-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 30px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
    background: var(--navy-mid);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-icon,
.feature-text,
.feature-arrow {
    position: relative;
    z-index: 3;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    /* border thickness */
    background: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    transition: background-position 0.6s ease, opacity var(--transition);
    opacity: 0.85;
}

.feature-card:not(:last-child)::after {
    display: none;
}

.feature-card:hover {
    background: var(--navy-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(201, 168, 76, 0.25);
}

.feature-card:hover::before {
    background-position: 100% 50%;
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.12);
    border: 1.5px solid rgba(201, 168, 76, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    transform: scale(1.05);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-text h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 3px;
}

.feature-text p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.feature-arrow {
    margin-left: auto;
    color: var(--gold);
    opacity: 0.5;
    transition: var(--transition);
}

.feature-card:hover .feature-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.feature-arrow svg {
    width: 18px;
    height: 18px;
}

/* ===== MIDDLE CONTENT SECTION ===== */
.middle-section {
    background: #f7f7f7;
    padding: 35px 0 50px;
    position: relative;
    border-top: 1px solid #e0e0e0;
}

/* 2-Column Grid Container */
.news-grid-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: flex-start;
}

/* --- LEFT COLUMN: MAIN CONTENT --- */
.news-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    /* Prevent white-space: nowrap from stretching grid layout width */
}

/* Running Ticker */
.news-ticker-box {
    display: flex;
    align-items: center;
    background: #1a252f;
    border-radius: 4px;
    overflow: hidden;
    height: 38px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-width: 0;
}

.ticker-btn-control {
    background: var(--gold);
    color: var(--navy);
    width: 38px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ticker-btn-control svg {
    width: 14px;
    height: 14px;
}

.ticker-text-wrapper {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
}

.ticker-text-content {
    display: inline-block;
    animation: tickerScrollNews 32s linear infinite;
    color: #ecf0f1;
    font-size: 0.82rem;
    font-weight: 500;
}

@keyframes tickerScrollNews {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Featured Image Slider */
.featured-slider-container {
    position: relative;
    width: 100%;
    height: 420px;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.featured-slides-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.featured-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.featured-slide-item.active {
    opacity: 1;
    visibility: visible;
}

.featured-slide-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block;
}

/* Caption Overlay (Matches reference image style: white/grey overlay at bottom) */
.featured-caption-bar {
    position: absolute;
    bottom: 25px;
    left: 20px;
    background: rgba(255, 255, 255, 0.92);
    border-left: 5px solid var(--gold);
    padding: 10px 18px;
    max-width: 85%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 2px;
}

.featured-caption-bar p {
    color: #2c3e50;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

/* Slider Navigation Arrows */
.featured-slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background 0.2s;
    margin: 0 10px;
}

.featured-slide-arrow:hover {
    background: var(--gold);
    color: var(--navy);
}

.prev-slide {
    left: 0;
}

.next-slide {
    right: 0;
}

/* Divider & Berita Terkini Header */
.berita-terkini-header {
    border-bottom: 2px solid #bdc3c7;
    margin-top: 15px;
    padding-bottom: 8px;
}

.berita-terkini-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0;
    text-transform: capitalize;
}

/* News List Wrapper */
.news-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-list-row {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

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

.news-row-thumb {
    width: 160px;
    height: 110px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.news-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-row-desc {
    flex: 1;
}

.news-row-desc h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
    line-height: 1.35;
}

.news-row-desc h4 a {
    color: var(--navy);
    transition: color 0.2s;
}

.news-row-desc h4 a:hover {
    color: var(--gold-dark);
}

.news-row-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.news-row-meta svg {
    width: 12px;
    height: 12px;
}

.news-row-desc p {
    font-size: 0.78rem;
    color: #555;
    line-height: 1.5;
}

/* --- RIGHT COLUMN: SIDEBAR WIDGETS --- */
.news-right-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget-box {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.widget-header {
    padding: 12px 18px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #fff;
}

/* Widget Header Accent Colors */
.orange-widget {
    background: #e67e22;
    /* Just like reference image orange */
}

.red-widget {
    background: #c0392b;
    /* Just like reference image red */
}

.green-widget {
    background: #27ae60;
    /* Professional green for MBG */
}

.widget-body {
    padding: 10px 0;
}

/* Sidebar Menu Links */
.widget-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f2f6;
    transition: background 0.2s, padding-left 0.2s;
    text-decoration: none;
}

.widget-menu-link:last-child {
    border-bottom: none;
}

.widget-menu-link:hover {
    background: #fffcf4;
    padding-left: 22px;
}

.widget-link-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(230, 126, 34, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #e67e22;
}

.widget-link-icon svg {
    width: 18px;
    height: 18px;
}

.widget-menu-link span {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
}

/* Announcement Item */
.announcement-list-body {
    padding: 8px 0;
}

.widget-announcement-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f2f6;
}

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

.announcement-item-thumb {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-item-thumb img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.announcement-item-content {
    flex: 1;
}

.announcement-item-content h5 {
    font-size: 0.78rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.35;
    margin-bottom: 5px;
}

.announcement-item-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    color: #7f8c8d;
}

.announcement-item-meta svg {
    width: 10px;
    height: 10px;
}

/* SPPG MBG Widget Style */
.mbg-widget-body {
    padding: 18px !important;
}

.mbg-status-indicator-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(39, 174, 96, 0.06);
    border: 1px solid rgba(39, 174, 96, 0.2);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.74rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.mbg-pulse-light {
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.6);
    animation: pulseLight 1.8s infinite;
}

@keyframes pulseLight {
    0% {
        transform: scale(0.95);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.6;
    }
}

.mbg-status-indicator-bar strong {
    color: #27ae60;
}

.mbg-quick-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.mbg-stat-card {
    flex: 1;
    background: #fdfaf2;
    border: 1px dashed var(--gold);
    border-radius: 4px;
    padding: 10px 8px;
    text-align: center;
}

.mbg-stat-card strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold-dark);
}

.mbg-stat-card span {
    font-size: 0.65rem;
    color: #555;
    font-weight: 600;
}

.mbg-today-menu-card {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 12px 14px;
    border-left: 3px solid #27ae60;
    margin-bottom: 15px;
}

.mbg-today-menu-card h5 {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.mbg-today-menu-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mbg-today-menu-card ul li {
    font-size: 0.74rem;
    color: #333;
    padding: 3px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mbg-today-menu-card ul li::before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
}

.mbg-action-link {
    display: block;
    text-align: center;
    background: #27ae60;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.mbg-action-link:hover {
    background: #219653;
}

transition: var(--transition);
width: fit-content;
margin-top: auto;
}

.btn-gold:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

.btn-gold svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

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

/* ===== FOOTER ===== */
.footer {
    background: var(--navy);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-contacts {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

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

.footer-contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.footer-contact-icon svg {
    width: 18px;
    height: 18px;
}

.footer-contact-text h5 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
}

.footer-contact-text p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Social links */
.footer-social {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-social-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: var(--transition);
    cursor: pointer;
}

.social-icon:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.social-icon svg {
    width: 16px;
    height: 16px;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.2rem;
    }

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

    .feature-card:nth-child(2)::after {
        display: none;
    }

    .middle-container {
        grid-template-columns: 1fr 1fr;
    }

    .building-card {
        order: -1;
        grid-column: 1 / -1;
    }

    .hero-image-side {
        width: 45%;
    }
}

/* ===== TABLET (≤ 992px) ===== */
@media (max-width: 992px) {
    .header {
        padding: 0 20px;
    }

    .header-nav a {
        display: none;
    }

    /* Hero: stack konten di atas, slider di bawah */
    .hero {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 60px;
        overflow: visible;
    }

    /* ===== Sembunyikan tombol "Masuk" desktop di mobile ===== */
    .btn-contact {
        display: none !important;
    }

    /* ===== Hero: susun vertikal di mobile ===== */
    .hero {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 60px;
        overflow: hidden;
        /* Ubah flex ke kolom agar slider muncul DI BAWAH teks */
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    /* Sembunyikan background PNG overlay di mobile agar tidak bleeding */
    .hero-bg-overlay {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 24px;
        position: relative;
        z-index: 5;
        width: 100%;
        max-width: 100%;
    }

    .hero-image-placeholder {
        display: none;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Slider: RELATIVE (bukan absolute), tampil di bawah teks */
    .hero-image-side {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 92%;
        max-width: 480px;
        margin: 32px auto 0;
        z-index: 3;
    }

    .hero-image-slider {
        height: 300px;
    }

    /* Stamp badge: tampil relatif di dalam flow, tidak absolute overflow */
    .hero-stamp {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 90px;
        height: 90px;
        margin: 12px auto 0;
        display: block;
    }

    /* Stacking new 2-column middle content layout */
    .news-grid-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .featured-slider-container {
        height: 280px;
    }

    .news-row-thumb {
        width: 100px;
        height: 80px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-contacts {
        flex-direction: column;
    }

    .footer-social {
        flex-direction: column;
    }
}

/* ===== MOBILE (≤ 768px) ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-accent {
        font-size: 0.78rem;
    }

    .hero-desc {
        font-size: 0.92rem;
    }

    .hero-image-slider {
        height: 260px;
    }

    .hero-stamp {
        width: 90px;
        height: 90px;
        bottom: -10px;
        left: 10px;
    }

    .btn-primary,
    .btn-outline {
        padding: 12px 22px;
        font-size: 0.85rem;
    }

    .hero-buttons {
        flex-wrap: wrap;
        gap: 12px;
    }

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

    .feature-card::after {
        display: none !important;
    }

    .feature-card:not(:last-child) {
        border-bottom: none;
    }

    .container {
        padding: 0 16px;
    }

    .quote-text {
        font-size: 1.15rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.88rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .mini-features {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

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

/* ===== SMALL MOBILE (≤ 480px) ===== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem;
        line-height: 1.25;
    }

    .hero-accent {
        font-size: 0.72rem;
        letter-spacing: 1px;
    }

    .hero-desc {
        font-size: 0.85rem;
        max-width: 100%;
    }

    .hero-image-side {
        width: 100%;
        max-width: 100%;
        margin: 24px 0 0;
    }

    .hero-image-slider {
        height: 220px;
        border-radius: 16px;
    }

    .hero-stamp {
        width: 72px;
        height: 72px;
        bottom: -8px;
        left: 8px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .features-row {
        padding: 40px 16px;
    }

    .section-title {
        font-size: 1.5rem;
    }

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

    .mini-features {
        grid-template-columns: 1fr;
    }

    .slider-dots-container {
        gap: 10px;
        margin-top: 14px;
    }

    .img-slider-arrow {
        width: 30px;
        height: 30px;
    }

    .img-dot {
        width: 8px;
        height: 8px;
    }

    .footer-logo-title {
        font-size: 1rem;
    }
}

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: none;
    z-index: 1100;
    position: relative;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}

/* Hamburger → X animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hide mobile-only elements on desktop */
.btn-mobile-login {
    display: none;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
    }

    /* Hide desktop button on mobile */
    .btn-contact {
        display: none !important;
    }

    /* Mobile dropdown nav */
    .header-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--navy);
        border-bottom: 1px solid rgba(201, 168, 76, 0.2);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
        z-index: 999;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    }

    .header-nav.mobile-open {
        max-height: 550px;
        padding: 12px 0 25px;
        overflow-y: auto;
    }

    .header-nav a {
        display: block;
        padding: 14px 24px;
        font-size: 0.95rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.85);
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
    }

    .header-nav a:hover,
    .header-nav a.active {
        color: var(--gold);
        border-left-color: var(--gold);
        background: rgba(201, 168, 76, 0.07);
    }

    .header-nav a.active::after {
        display: none;
    }

    /* Mobile login button inside nav */
    .header-nav .btn-mobile-login {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 10px 24px 0;
        background: var(--gold);
        color: var(--navy);
        padding: 10px 20px;
        border-radius: 50px;
        font-size: 0.88rem;
        font-weight: 700;
        text-align: center;
        justify-content: center;
    }

    .header-nav .btn-mobile-login svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
}

/* ===== SCROLL-REVEAL ===== */
/* Only hide elements when JS is loaded */
body.js-loaded .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

body.js-loaded .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== GALLERY SECTION STYLES ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 10px 30px rgba(15, 27, 61, 0.05);
    background: #fff;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 27, 61, 0.9) 0%, rgba(15, 27, 61, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay h4 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: 'Poppins', sans-serif;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0;
}

/* Hover effects */
.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 27, 61, 0.15);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
    }

    .gallery-item {
        height: 220px;
    }
}