/* ==================================================
   GLOBAL
================================================== */
* {
    box-sizing: border-box;
}


body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    color: #333;
    background:
        linear-gradient(rgba(244, 246, 248, 0.775), rgba(244, 246, 248, 0.775)),
        url('../img/skynav.png') no-repeat center center fixed;
    background-size: 420px;
    padding-top: 76px;

    display: flex;
    flex-direction: column;
     min-height: 100vh; /* penting */
}

main,
.container,
.news-detail {
    flex: 1 0 auto;
}


.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================================================
   HERO SECTION PREMIUM
================================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../img/skynav.png') no-repeat center center;
    background-size: cover;
    overflow: hidden;
    color: #fff;
}

.ultimate-heading {
    text-align: center;
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(90deg, #000000, #094aab); /* biru gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 
        0 0 2px #0d6efd,
        0 0 4px #0d6efd,
        1px 1px 3px rgba(0,0,0,0.2); /* glow lebih kecil */
    margin-bottom: 40px;
    animation: bounce-glow 1.2s infinite;
}

@keyframes bounce-glow {
    0%, 100% { 
        transform: translateY(0); 
        text-shadow: 
            0 0 2px #0d6efd,
            0 0 3px #0d6efd,
            1px 1px 3px rgba(0,0,0,0.2);
    }
    50% { 
        transform: translateY(-15px);
        text-shadow: 
            0 0 3px #0d6efd,
            0 0 4px #0d6efd,
            1px 1px 4px rgba(0,0,0,0.25);
    }
}

/* Responsive untuk layar kecil */
@media (max-width: 768px) {
    .ultimate-heading {
        font-size: 36px;
    }
}



/* Overlay untuk kontras teks */
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(rgba(10,61,98,0.85), rgba(10,61,98,0.55));
    z-index: 1;
}

/* Content di atas overlay */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 20px;
}

/* Animasi staggered */
.hero-title, .hero-subtitle, .hero-btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    animation-delay: 0.2s;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin: 20px 0 30px;
    animation-delay: 0.5s;
    color: #ffffff;
}

.hero-btn {
    display: inline-block;
    background: #ffffff;
    color: #0a3d62;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    animation-delay: 0.8s;
}

.hero-btn:hover {
    background: #eaeaea;
    transform: translateY(-2px);
}

/* ==================================================
   HERO SLIDER
================================================== */
.hero-slider {
    width: 100%;
    height: calc(100vw / 1.78); /* tinggi = lebar / rasio gambar */
    max-height: 850px;
    overflow: hidden;
    position: relative;
}

/* Slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% 100%; /* stretch gambar agar tidak terpotong */
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

/* Overlay optional */
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3); /* bisa diubah sesuai kebutuhan */
    z-index: 1;
}

/* Tombol navigasi slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    font-size: 32px;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 3;
    transition: background 0.3s ease;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.9);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.slider-dots span {
    display: block;
    width: 12px; height: 12px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dots span.active {
    background: #ffffff;
}

/* Animasi teks */
.hero-title, .hero-subtitle, .hero-btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.hero-title { animation-delay: 0.3s; }
.hero-subtitle { animation-delay: 0.6s; }
.hero-btn { animation-delay: 0.9s; }

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}


/* ==================================================
   Scroll down indicator
================================================== */
.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.scroll-down span {
    display: block;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: scrollBounce 1.5s infinite;
}

.scroll-down span:nth-child(2) { animation-delay: 0.2s; }
.scroll-down span:nth-child(3) { animation-delay: 0.4s; }

@keyframes scrollBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(8px); opacity: 1; }
}

/* ==================================================
   Responsive
================================================== */
@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 16px; }
    .hero-btn { padding: 12px 28px; }
}

/* ==================================================
   HIGHLIGHT FULL - FLIP CARDS DRAMATIS
================================================== */
.highlight-full {
    margin: 80px auto;
}

.vision-flip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 3 kolom desktop */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.flip-card {
    background: transparent;
    perspective: 1200px; /* lebih kuat efek 3D */
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 160px; /* lebih tinggi */
    text-align: center;
    transition: transform 0.7s ease, box-shadow 0.7s ease;
    transform-style: preserve-3d;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.flip-card:hover .flip-card-inner {
    transform: rotateX(180deg) scale(1.05); /* flip vertikal + zoom sedikit */
    box-shadow: 0 12px 28px rgba(0,0,0,0.25); /* shadow lebih besar */
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: inherit;
    transition: inherit;
}

.flip-card-front {
    background-color: #f0f4f8;
    color: #0a3d62;
}

.flip-card-back {
    background-color: #0a3d62;
    color: #ffffff;
    transform: rotateX(180deg);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .vision-flip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .flip-card-inner {
        height: 150px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .vision-flip-grid {
        grid-template-columns: 1fr;
    }
    .flip-card-inner {
        height: 130px;
        font-size: 14px;
    }
    .flip-card-front, .flip-card-back {
        padding: 10px;
    }
}


/* ==================================================
   LATEST NEWS - MODERN CARD STYLE
================================================== */
.latest-news {
    background-color: rgba(10, 61, 98, 0.85); /* biru gelap semi-transparan */
    color: #ffffff;
    padding: 60px 20px;
    border-radius: 16px;
    margin-bottom: 80px;
    position: relative;
}


.latest-news .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.latest-news .section-header h2 {
    color: #ffffff;
}

.latest-news .section-header a {
    text-decoration: none;
    color: #f0f4f8;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.latest-news .section-header a:hover {
    border-bottom: 1px solid #ffffff;
}

/* Grid cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Card style */
.news-card {
    background: #ffffff;
    color: #0a3d62;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.25);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-no-image {
    height: 180px;
    background: #0a3d62;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 2px;
}

.news-content {
    padding: 22px;
}

.news-content h3 {
    font-size: 18px;
    margin: 10px 0 16px;
    color: #0a3d62;
}

.news-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.news-link {
    text-decoration: none;
    color: #0a3d62;
    font-weight: 600;
    transition: color 0.3s;
}

.news-link:hover {
    color: #0a3d62;
    text-decoration: underline;
}

.latest-news p {
    color:#000d61;
}

.latest-news .section-header h2{
    margin:0;
}


/* =======================
   NEWS DETAIL PAGE STYLING
   ======================= */
.news-detail {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 15px;
}

.news-article h1 {
    font-size: 28px;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Meta Info */
.news-meta {
    color: #888;
    font-size: 14px;
    margin-bottom: 25px;
}

/* =======================
   IMAGE HANDLING (VERY IMPORTANT)
   - Responsive
   - Tetep proporsional
   - Ga melebar aneh
   ======================= */
.news-thumbnail {
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 25px;
    background: #f3f3f3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* MAGIC biar proporsional */
    object-position: center;
}

/* =======================
   CONTENT AREA
   ======================= */
.news-body {
    font-size: 17px;
    line-height: 1.7;
    color: #333;
}

.news-body p {
    margin-bottom: 15px;
}

/* =======================
   BACK LINK
   ======================= */
.news-back {
    margin-top: 35px;
}

.news-back a {
    text-decoration: none;
    color: #0077ff;
    font-weight: 600;
}

.news-back a:hover {
    text-decoration: underline;
}

/* =======================
   MOBILE RESPONSIVE
   ======================= */
@media (max-width: 768px) {
    .news-detail {
        margin-top: 25px;
    }

    .news-article h1 {
        font-size: 22px;
    }

    .news-thumbnail {
        max-height: 320px;
    }
}



/* =========================
   STATISTICS SECTION WHITE
========================= */
.stats-section-white {
    background-color: transparent; /* biar gambar body kelihatan */
    padding: 80px 0;
}


.stats-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-circle-glass {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(16, 6, 212, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-circle-glass:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15), 0 0 20px rgba(10,61,98,0.2);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #0a3d62;
    transition: transform 0.2s ease;
}

.stat-label {
    margin-top: 8px;
    font-size: 16px;
    color: #0a3d62;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-circle-glass {
        width: 130px;
        height: 130px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 14px;
    }
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .vision-flip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vision-flip-grid {
        grid-template-columns: 1fr;
    }

    .flip-card-inner {
        height: 130px;
    }

    .flip-card-front, .flip-card-back {
        font-size: 13px;
        padding: 10px;
    }

    .stat-circle-glass {
        width: 130px;
        height: 130px;
    }

    .stat-number {
        font-size: 28px;
    }
}