/*
Theme Name: Akbar Theme
Author: Akbar
Version: 1.0
*/

/* =========================================
   1. CORE & VARIABLES
   ========================================= */
:root {
    --primary: #0d3358;
    --secondary: #a53d33;
    --accent: #e8a608;
    --dark: #555;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    overflow-x: hidden;
}

section {
    padding: 60px 10%;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   2. NAVBAR & NAVIGATION
   ========================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background: #f5f5f5;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo {
    width: 80px;
    height: auto;
    transition: width 0.5s ease, transform 0.5s ease;
}

.title h2 {
    margin: 0;
    font-size: 28px;
    color: #1f4e79;
}

.title p {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    position: relative;
    text-decoration: none;
    color: #0a3d62;
    font-weight: 500;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #0a3d62;
    transition: width 0.5s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-links {
    animation: fadeIn 1.2s ease-in-out;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    position: relative;
    width: 40px;
}

.hamburger-box {
    width: 25px;
    height: 18px;
    display: block;
    position: relative;
    margin: auto;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    position: absolute;
    transition: all 0.3s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 7px; }
.hamburger span:nth-child(3) { top: 14px; }

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: var(--secondary);
}

.hamburger.active span:nth-child(2) { opacity: 0; }

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: var(--secondary);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 30px;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    background: #f5f5f5;
    list-style: none;
    padding: 10px 0;
    min-width: 100px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 8px 15px;
}

.dropdown-menu a {
    color: #333;
    display: block;
}

/* =========================================
   3. HEADER HOMEPAGE SLIDE
   ========================================= */
.header-container {
    background-color: var(--primary);
    overflow: hidden;
    padding: 30px 0;
}

.section-container {
    max-width: 800px;
    margin: 0 auto;
    font-weight: bold;
    text-align: center;
}

.section-container h1 {
    color: white;
    font-size: 2.8rem;
    margin: 0;
    letter-spacing: 1px;
    border-bottom: 1.5px solid white;
    display: inline-block;
    opacity: 0;
    transform: translateY(-50px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header-subtitle {
    color: var(--accent);
    font-size: 1.6rem;
    font-style: italic;
    margin-top: 20px;
    font-weight: 800;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}

.header-subtitle .light-text { font-weight: 400; }

section.header-container.show .section-container h1,
section.header-container.show .header-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.strategic-button {
    background-color: #d99300;
    color: white;
    padding: 15px 50px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    font-style: italic;
}

.strategic-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 166, 8, 0.3);
}

/* =========================================
   4. BANNER SLIDE
   ========================================= */
.banner-slide {
    padding-bottom: 20px;
    background: linear-gradient(to bottom, #e6dddd, #ffffff);
    width: 100%;
}

.carousel-container {
    display: flex;
    flex-direction: column;
    max-width: 60%;
    max-height: 20%;
    margin: 0px auto;
    padding: 10px 4px;
    align-items: center;
}

.carousel-item {
    min-width: 100%;
    aspect-ratio: 16 / 9;
    scroll-snap-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-radius: 15px;
    overflow-y: hidden;
    width: 100%;
    padding: 0px;
}

.carousel-wrapper::-webkit-scrollbar { display: none; }

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 15px !important;
    width: 100%;
}

.dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
    width: 25px;
    border-radius: 15px;
}

/* =========================================
   5. FOCUS AREA
   ========================================= */
.focus-areas {
    padding: 0 40px;
    padding-bottom: 10px;
}

.focus-container {
    padding: 0px 40px;
}

.focus-areas table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.focus-areas th {
    background-color: white;
    color: var(--primary);
    font-weight: bold;
    font-size: 1rem;
    padding: 20px 10px;
    text-align: center;
    border-bottom: 1px solid var(--primary);
    border-right: 1px solid var(--primary);
    font-style: italic;
}

.focus-areas td {
    padding: 20px 15px;
    text-align: center;
    border-right: 1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
    font-size: 0.95rem;
}

.focus-areas td:last-child, .focus-areas th:last-child {
    border-right: 0;
}

.focus-areas td:last-child { background-color: #f9f9f9; }

tbody tr:last-child td { border-bottom: 0; }

.arrow-section {
    text-align: center;
    padding: 0px 40px;
    color: var(--primary);
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #333;
    margin: 20px auto;
    cursor: pointer;
}

.integrated-section {
    background-color: var(--primary);
    color: white;
    padding: 10px;
    border-radius: 30px;
    text-align: center;
}

.integrated-section h2 {
    font-size: 2rem;
    padding: 5px 0;
    margin: 0;
    font-style: italic;
}

.integrated-section h2 .accent { color: var(--accent); }

/* =========================================
   6. PENDAFTARAN
   ========================================= */
.pendaftaran {
    background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.08)), url('media/bg.png');
    padding: 80px 10%;
    padding-top: 20px;
}

.pendaftaran-wrapper {
    display: flex;
    width: 100%;
    min-height: 550px;
    align-items: stretch;
}

.pendaftaran-timeline {
    flex: 1.2;
    padding-top: 80px;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.timeline-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid #b23b2b;
    position: relative;
    transition: 0.3s;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-number {
    background: #0a3d62;
    color: white;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.timeline-card h3 {
    font-size: 1.1rem;
    color: #0a3d62;
    margin-bottom: 10px;
    font-weight: 700;
}

.timeline-card p {
    font-size: 0.85rem;
    color: #555;
    margin: 5px 0;
    line-height: 1.4;
}

.info-biaya {
    background: rgba(10, 61, 98, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px dashed #0a3d62;
    font-size: 0.9rem;
}

.pendaftaran-content {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 40px;
    color: #000000;
    border-radius: 10px;
}

.pendaftaran-content h2 {
    font-size: 3rem;
    color: #0a3d62;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.pendaftaran-content h2 .sub-title {
    display: block;
    font-size: 1.5rem;
    color: #666;
    font-weight: 400;
    margin-top: 5px;
}

.pendaftaran-content p {
    max-width: 550px;
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: justify;
}

.btn-qr-vertical {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background-color: #b23b2b;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: 0.3s;
    width: fit-content;
}

.qr-box {
    background-color: white;
    padding: 8px;
    border-radius: 6px;
    line-height: 0;
}

.qr-box img {
    width: 100px;
    height: 100px;
    display: block;
}

.btn-qr-vertical:hover {
    background-color: #d32f2f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* =========================================
   7. TENTANG
   ========================================= */
.tentang { background-color: #ffffff; padding: 60px 0; }

.tentang-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.tentang-content { flex: 1; }

.tentang-content h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 800;
}

.tentang-content h2 .sub-title {
    display: block;
    font-size: 1rem;
    color: #666;
    font-weight: 400;
    margin-top: 5px;
}

.tentang-content p {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: justify;
}

.tentang-image {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.btn-selengkapnya {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-selengkapnya:hover { background-color: #8e2e2e; }

/* =========================================
   8. BERITA
   ========================================= */
.berita-wrapper {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
    color: #333;
}

.berita-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: 40px;
    font-weight: 800;
    font-size: 2.3rem;
}

.berita-title .sub-title {
    display: block;
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
    margin-top: 5px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image { transform: scale(1.05); }

.news-content { padding: 20px; flex-grow: 1; }

.news-content p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: #4a6fa5;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
}

.pagination {
    margin-top: 50px;
    margin-bottom: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.page-button {
    padding: 10px 20px;
    cursor: pointer;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-button:hover:not(:disabled) {
    background-color: #00509d;
    transform: scale(1.05);
}

.page-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* =========================================
   9. FASILITAS
   ========================================= */
.fasilitas { background-color: #f1e9e9; padding: 80px 10%; }

.fasilitas-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: 40px;
    font-weight: 800;
    font-size: 2.3rem;
}

.fasilitas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.fasilitas-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.fasilitas-card:hover { transform: translateY(-8px); }

.fasilitas-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.fasilitas-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fasilitas-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 54, 80, 0.9));
    color: white;
    display: flex;
    align-items: flex-end;
}

.fasilitas-overlay h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   10. FOOTER
   ========================================= */
.civil-footer {
    position: relative;
    background-color: #00335a;
    color: white;
    padding-bottom: 30px;
    margin-top: 50px;
    overflow: hidden;
}

.footer-layers {
    position: relative;
    width: 100%;
    height: 120px;
    background-color: white;
}

.layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.layer-1 {
    background-color: #7da1be;
    clip-path: polygon(0 40%, 100% 0, 100% 100%, 0% 100%);
}

.layer-2 {
    background-color: #3e6d92;
    clip-path: polygon(0 70%, 100% 30%, 100% 100%, 0% 100%);
}

.layer-3 {
    background-color: #00335a;
    clip-path: polygon(0 100%, 100% 60%, 100% 100%, 0% 100%);
}

.footer-main-content {
    text-align: center;
    padding: 20px 10%;
    position: relative;
    z-index: 5;
}

.footer-info h3 { font-size: 1.2rem; margin-bottom: 10px; }

.footer-info p { font-size: 0.9rem; margin: 5px 0; opacity: 0.9; }

.footer-info a { color: #00fffb; text-decoration: none; }

.footer-bottom-dev {
    margin-top: 30px;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    opacity: 0.7;
}

/* =========================================
   11. KEYFRAMES
   ========================================= */
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =========================================
   12. MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media screen and (max-width: 768px) {
    html, body { overflow-x: hidden; width: 100%; }

    section { padding: 20px 0 !important; }

    .nav-left { width: 100%; display: flex; justify-content: center; }

    .logo { width: 100% !important; max-width: 270px !important; margin: 0 auto; }

    .hamburger { display: flex; align-items: center; justify-content: center; }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #f5f5f5;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.75s ease-in-out;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1001;
        gap: 0;
    }

    .nav-menu.active { max-height: 80vh; overflow-y: auto; }

    .nav-menu li { width: 100%; border-bottom: 1px solid #ddd; }

    .nav-menu a { display: block; padding: 15px 20px; }

    .dropdown-menu {
        position: static;
        background: #ececec;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: all 0.5s ease;
        padding: 0;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        padding: 10px 0;
    }

    /* --- PENYESUAIAN FOCUS AREA MOBILE (TETAP TABEL) --- */
    .focus-areas { padding: 10px; }
    .focus-container { padding: 0 5px; }

    tbody tr {
        font-size: 0.5rem;
    }

    .focus-areas table {
        display: table; /* Pastikan tetap tabel */
        font-size: 0.65rem; /* Perkecil ukuran font secara signifikan */
    }

    .focus-areas th, .focus-areas td {
        padding: 8px 4px; /* Perkecil padding agar muat lebar layar */
        line-height: 1.2;
    }

    .focus-areas th { font-size: 0.7rem; }

    .header-container { padding: 5px 0; }
    .section-container h1 { font-size: 1.2rem; }
    .header-subtitle { font-size: 0.6rem; }

    .carousel-item { aspect-ratio: 5 / 3; }
    .carousel-container { width: 95%; padding: 4px; }

    .pendaftaran-wrapper { flex-direction: column; }
    .pendaftaran, .pendaftaran-wrapper { padding: 0 !important; }

    .pendaftaran-content h2 { font-size: 1.5rem !important; }
    .pendaftaran-content p { font-size: 0.85rem !important; }

    .tentang-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 30px 15px;
        gap: 25px;
    }

    .fasilitas { padding: 60px 5%; }
    .fasilitas-card { height: 180px; }
    .footer-layers { height: 80px; }
}

/* =========================================
   13. ANIMATION TRIGGERS
   ========================================= */
.nav-item, .news-card, .fasilitas-card {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease-in-out;
}

.show .nav-item, .show .news-card, .show .fasilitas-card {
    opacity: 1;
    transform: scale(1);
}