/* =========================
   RESET & DASAR
========================= */
* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================
   NAVBAR (DESKTOP)
========================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 1px 30px;
    color: #404040;
    box-shadow: 0px 5px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2000;
}

.logo img {
    height: 100px;
    width: 100px;
    position: relative;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none !important;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none !important;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: gray;
    font-size: 17px;
    transition: 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.navbaractive {
    color: blue;
}




/* =========================
   HAMBURGER — hidden di desktop
========================= */
.nav-toggle {
    display: none !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    width: 30px;
    height: 24px;
    z-index: 2001;
    position: relative;
    margin-left: auto;
}


.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #1f2dbf;
    border-radius: 3px;
    transition: transform 0.4s cubic-bezier(.68,-0.55,.27,1.55),
                opacity 0.3s ease;
}

.nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* =========================
   GOOGLE TRANSLATE
========================= */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0px !important; }
.goog-logo-link { display: none !important; }
.goog-te-gadget span { display: none !important; }

#google_translate_element {
    display: inline-flex;
    align-items: center;
    position: relative;
}

#google_translate_element select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px 40px 10px 14px;
    border: 1px solid blue;
    border-radius: 8px;
    background: #fff;
    color: blue;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    line-height: 1;
}

#google_translate_element::after {
    content: "▾";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: blue;
    pointer-events: none;
    font-size: 14px;
}

/* =========================
   FLOATING WHATSAPP
========================= */
.floating-action {
    position: fixed;
    bottom: 10px;
    right: -15px;
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.floating-action img {
    width: 110px;
    height: auto;
}

.floating-action:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

/* =========================
   HERO SECTION
========================= */
.hero {
    background: linear-gradient(rgba(0,50,150,0.6), rgba(0,50,150,0.4)),
                url('/images/background tentang.png');
    background-size: cover;
    background-position: center;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 18px;
    font-weight: 400;
}

/* =========================
   ABOUT CONTENT
========================= */
.about-container {
    padding: 60px 5%;
    display: flex;
    justify-content: center;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    width: 100%;
}

.image-box {
    flex: 1;
}

.image-box img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.text-box {
    flex: 1;
}

.heading-wrapper {
    border-left: 5px solid #2b4eff;
    padding-left: 15px;
    margin-bottom: 20px;
}

.text-box h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.text-box p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #666;
    font-size: 15px;
    text-align: justify;
}

/* =========================
   TIMELINE
========================= */
.timeline-section {
    padding: 60px 5%;
    text-align: center;
    background-color: white;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #000;
}

.timeline-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.card {
    background-color: #302F8D;
    width: 260px;
    padding: 45px 25px 30px 25px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 10px 25px rgba(48,47,141,0.25);
    margin-top: 25px;
    transition: transform 0.3s ease;
    text-align: left;
}

.card:hover {
    transform: translateY(-5px);
}

.year-badge {
    position: absolute;
    border: 1px solid black;
    top: -20px;
    left: 20px;
    background-color: #ffffff;
    color: #302F8D;
    font-size: 15px;
    font-weight: 800;
    padding: 8px 24px;
    border-radius: 50px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    letter-spacing: 1px;
    display: inline-block;
}

.card h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.card p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* =========================
   VISI MISI
========================= */
.visi-misi {
    display: flex;
    justify-content: center;
}

.visi-misi img {
    box-shadow: 0px 2px 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    height: 800px;
    width: auto;
    border-radius: 20px;
}

.visidanmisicontainer {
	background: #CDCDCD;
}

.visidanmisi {
    display: flex;
    justify-content: space-between;
    padding: 40px;
	margin: 50px;
}

.visi-h {
    color: blue;
    font-family: Arial, Helvetica, sans-serif;
}

.misi-h {
    color: red;
    font-family: Arial, Helvetica, sans-serif;
}

/* =========================
   KEBIJAKAN MUTU
========================= */
.kebijakanmutu {
    margin-top: 20px;
    text-align: center;
    font-weight: 700;
    color: black;
    margin-bottom: 30px;
}

.kebijakan-mutu {
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding: 20px 10px;
}

.kebijakan-mutu .paragraf {
    flex: 1;
    min-width: 0;
    padding-bottom: 40px;
}

.paragfraf-h3 {
    font-size: 20px;
    margin-bottom: 16px;
    line-height: 1.6;
	text-align: justify;
}

.paragraf-p {
    font-size: 18px;
    line-height: 1.8;
	text-align: justify;
}

.kebijakanmutu-images {
    box-shadow: 0px 2px 4px 6px rgba(0,0,0,0.1);
    border-radius: 20px;
    flex: 0 0 500px;
    width: 500px;
    max-width: 500px;
    overflow: hidden;
}

.kebijakanmutu-images img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* =========================
   SERTIFIKAT
========================= */
.sertif {
    margin-top: 10px;
    text-align: center;
}

.sertifikatpartner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 30px;
    margin-bottom: 90px;
    padding: 0 18px;
}

.sertifikat1,
.sertifikat2,
.sertifikat3 {
    text-align: center;
    background: white;
    border-radius: 20px;
    box-shadow: 0px 2px 4px 6px rgba(0,0,0,0.1);
    width: min(400px, 100%);
    padding: 10px;
    transition: 0.3s ease-in-out;
}

.sertifikat1 img,
.sertifikat2 img,
.sertifikat3 img {
    margin-top: 20px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border: 3px solid #e2e8f0;
    border-radius: 15px;
}

.sertifikat1:hover,
.sertifikat2:hover,
.sertifikat3:hover {
    border: 1px solid #4169E1;
    transform: translateY(-10px);
    box-shadow: 0px 2px 4px 6px rgba(0,0,0,0.1);
}

/* =========================
   FOOTER
========================= */
.site-footer {
    background-color: #020B40;
    color: white;
    padding: 48px 0 20px;
}

.footer-branch {
	color: white;
	font-size: 18px;
	font-weight: 600;
}

.site-footer .footer-wrap {
    width: 92%;
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
  grid-template-columns: 1.35fr .85fr 1fr;
    gap: 48px;
    align-items: start;
}

.footer-col {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.footer-title {
    font-size: 22px;
    margin: 0 0 14px;
    font-weight: 800;
    color: white;
}

.footer-text {
	    margin: 0;
    color: #eaf0ff;
    font-size: 14px;
    line-height: 1.55;
	text-align: justify;
}

.footer-desc {
    margin: 0;
    color: #eaf0ff;
    font-size: 14px;
    line-height: 1.55;
	text-align: justify;
}

.footer-list {
    list-style: none;
    display: grid;
    gap: 10px;
	text-align: justify;
    padding: 0;
}

.footer-list span {
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: 0.1s ease-in-out;
}

.footer-list a:hover {
    color: blue;
}

.footer-item {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    font-size: 13.5px;
    line-height: 1.5;
    color: #eaf0ff;
}

.footer-icon {
    padding-top: 2px;
}

.footer-social {
    margin-top: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    text-decoration: none;
    transition: transform .25s ease, filter .25s ease;
}

.footer-social a:hover {
    transform: translateY(-4px);
    filter: brightness(1.05);
}

.footer-social svg {
    width: 42px;
    height: 42px;
    display: block;
}

.footer-bottom {
    width: 90%;
    max-width: 1300px;
    margin: 24px auto 0;
    text-align: center;
    font-size: 13px;
    color: #eaf0ff;
}

.footer-divider {
    background: rgba(255,255,255,.35);
    height: 1px;
    width: 100%;
    display: block;
    margin-bottom: 14px;
}

/* =========================
   RESPONSIVE — TABLET (769px – 1024px)
========================= */
@media (min-width: 769px) and (max-width: 1024px) {

    .navbar {
        padding: 5px 20px;
    }

    .logo img {
        width: 80px;
        height: 80px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 14px;
    }

    /* Hero */
    .hero {
        height: 280px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    /* About */
    .about-content {
        flex-direction: column;
        gap: 24px;
    }

    /* Timeline */
    .timeline-container {
        gap: 16px;
    }

    .card {
        width: 220px;
    }

    /* Visi Misi */
    .visidanmisi {
        flex-direction: column;
        padding: 24px;
        gap: 18px;
    }
	
	.visi-misi img {
		box-shadow: 0px 2px 4px 6px rgba(0,0,0,0.1);
        margin-bottom: 30px;
        height: 550px;
        width: auto;
        border-radius: 16px;
		
	}
    /* Kebijakan Mutu */
    .kebijakan-mutu {
        flex-direction: column;
        padding: 16px;
        gap: 18px;
    }

    .kebijakanmutu-images {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    /* Sertifikat */
    .sertifikatpartner {
        gap: 20px;
    }

    .sertifikat1,
    .sertifikat2,
    .sertifikat3 {
        width: min(340px, 100%);
    }

    /* Footer */
    .site-footer .footer-wrap {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

/* =========================
   RESPONSIVE — (≤ 1100px)
========================= */
@media (max-width: 1100px) {
    .site-footer .footer-wrap {
        grid-template-columns: 1fr 1fr;
    }
	    .visi-misi img {
        box-shadow: 0px 2px 4px 6px rgba(0,0,0,0.1);
        margin-bottom: 30px;
        height: 600px;
        width: auto;
        border-radius: 18px;
    }
}

/* =========================
   RESPONSIVE — (≤ 980px)
========================= */
@media (max-width: 980px) {
    .about-content {
        flex-direction: column;
        gap: 18px;
    }

    .visidanmisi {
        flex-direction: column;
        padding: 18px;
        gap: 18px;
    }
	
	    .visi-misi img {
        box-shadow: 0px 2px 4px 6px rgba(0,0,0,0.1);
        margin-bottom: 30px;
        height: 480px;
        width: auto;
        border-radius: 15px;
    }
	
    .kebijakan-mutu {
        flex-direction: column;
        padding: 16px;
        gap: 18px;
    }

    .kebijakanmutu-images {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .sertifikatpartner {
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
    }

    .sertifikat1,
    .sertifikat2,
    .sertifikat3 {
        max-width: 520px;
        margin: 0 auto;
    }

    .site-footer .footer-wrap {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

/* =========================
   RESPONSIVE — MOBILE (≤ 768px)
========================= */
@media (max-width: 768px) {

    .navbar {
        flex-wrap: nowrap;
        padding: 10px 18px;
    }

    .logo img {
        width: 70px;
        height: 70px;
    }

    .hamburger {
        display: flex !important;
    }

    /* ── FULLSCREEN OVERLAY ── */
    .nav-links {
        position: fixed;
        inset: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 110px 28px 40px;
        gap: 0;
        transform: translateX(-100%); /* FIXED: Y bukan X */
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(.4,0,.2,1),
                    opacity 0.28s ease;
        z-index: 1999;
        overflow-y: auto;
    }

    .nav-toggle:checked ~ .nav-links {
        transform: translateY(0); /* FIXED: konsisten Y */
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        list-style: none !important;
        width: 100%;
        border-bottom: 1px solid #ebebeb;
        padding: 0;
        margin: 0;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 20px 0;
        font-size: 15px;
        font-weight: 400;
        color: #555555;
        text-decoration: none;
        transition: color 0.2s, padding-left 0.2s;
    }

    .nav-links a.navbaractive {
        color: #1f2dbf;
        font-weight: 600;
    }

    .nav-links a:hover {
        color: #1f2dbf;
        padding-left: 4px;
    }

    .nav-links li:has(#google_translate_element) {
        border-bottom: none;
        padding: 24px 0 8px;
    }

    #google_translate_element {
        width: 100%;
        justify-content: flex-start;
    }

    #google_translate_element select {
        width: 100%;
        padding: 12px 40px 12px 14px;
        border: 1.5px solid #1f2dbf;
        border-radius: 10px;
        color: #1f2dbf;
        font-weight: 700;
        font-size: 14px;
    }

    /* Hero */
    .hero {
        height: 220px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
    }

    /* Timeline */
    .timeline-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 400px;
    }

    /* Visi Misi */
    .visidanmisi {
        flex-direction: column;
        padding: 18px;
        gap: 18px;
    }
	
	    .visi-misi img {
        box-shadow: 0px 2px 4px 6px rgba(0,0,0,0.1);
        margin-bottom: 20px;
        height: 350px;
        width: auto;
        border-radius: 12px;
    }
    /* Kebijakan mutu */
    .kebijakan-mutu {
        flex-direction: column;
        padding: 16px;
        gap: 18px;
    }

    .kebijakanmutu-images {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .paragraf-p {
        font-size: 15px;
    }

    /* Sertifikat */
    .sertifikatpartner {
        flex-direction: column;
        align-items: center;
        padding: 0 16px;
        gap: 16px;
        margin-bottom: 40px;
    }

    .sertifikat1,
    .sertifikat2,
    .sertifikat3 {
        width: 100%;
        max-width: 100%;
    }

    /* Footer */
    .site-footer .footer-wrap {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* HP kecil banget */
@media (max-width: 420px) {
    .logo img {
        width: 60px;
        height: 60px;
    }
}

html.dark body,
html.dark .about-container,
html.dark .timeline-section,
html.dark .kebijakan-mutu,
html.dark .sertifikatpartner {
    background: #0f172a;
    color: #e5e7eb;
}

html.dark .navbar,
html.dark .sertifikat1,
html.dark .sertifikat2,
html.dark .sertifikat3,
html.dark .year-badge,
html.dark #google_translate_element select {
    background: #111827;
    color: #e5e7eb;
    border: 1px solid #475569;
}

html.dark .nav-links a,
html.dark .text-box p,
html.dark .paragraf-p,
html.dark .paragfraf-h3 {
    color: #cbd5e1;
}

html.dark .section-title,
html.dark .kebijakanmutu,
html.dark .text-box h2 {
    color: #f8fafc;
}

html.dark .visidanmisi {
    background: #1f2937;
}

html.dark .card {
    background: #1e3a8a;
}

html.dark .card p {
    color: rgba(255,255,255,0.88);
}

html.dark .site-footer {
    background: #020617;
}

html.dark .footer-text,
html.dark .footer-desc,
html.dark .footer-item,
html.dark .footer-bottom {
    color: #cbd5e1;
}

@media (max-width: 768px) {
    html.dark .nav-links {
        background: #111827;
    }

    html.dark .nav-links li {
        border-bottom: 1px solid #334155;
    }

    html.dark .nav-links a {
        color: #e5e7eb;
    }

    html.dark .nav-links a.navbaractive,
    html.dark .nav-links a:hover {
        color: #93c5fd;
    }
	.theme-toggle {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-main);
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 16px;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
}
}

.theme-toggle {
    border: 1px solid gray;
    background: var(--surface);
    color: var(--text-main);
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 16px;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.theme-toggle-dark {
    display: none;
}

html.dark .theme-toggle-light {
    display: none;
}

html.dark .theme-toggle-dark {
    display: inline;
}

html.dark .nav-links a.navbaractive {
	color: #93c5fd;
	font-weight: 600;
}
html.dark .nav-links a:hover {
	color: #93c5fd;
}
