html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    width: 100%;
    max-width: 100%;
    background-size: cover;
}

/* ======================================================
   🌟 WELCOME ANIMATION
====================================================== */
#preloader {
    position: fixed;
    inset: 0;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 1s ease 2.5s forwards;
}

#preloader img {
    width: 200px;
    animation: spinZoom 3s ease forwards;
    animation-fill-mode: forwards;
}

@keyframes spinZoom {
    0% { transform: rotate(0) scale(0.5); opacity: 0; }
    50% { transform: rotate(360deg) scale(1.2); opacity: 1; }
    100% { transform: rotate(360deg) scale(0.8); opacity: 0; }
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}
/* ======================================================
   🌟 WELCOME ANIMATION [END]
====================================================== */

/* ======================================================
   🌌 BACKGROUND
====================================================== */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
/* ======================================================
   🌌 BACKGROUND [END]
====================================================== */

 /* ======================================================
   🏠 HEADER
====================================================== */
.head {
    background: rgba(255, 255, 255, 0.315);
    backdrop-filter: blur(14px);
    border-radius: 14px;
    padding: 14px 30px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 20px auto;
    max-width: 1480px;
    position: sticky;
    top: 0;
    z-index: 1000; 
}

.head img {
    width: 150px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.head h1 {
    font-size: 24px;
    color: #fff;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
}

.navi {
    margin-left: auto;
}

.navi ul {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navi li, a {
    position: relative;
    font-size: 12px;
    cursor: pointer;
    padding: 6px 4px;
    border-radius: 2px;
    transition: color .18s ease, background .18s ease;
    position: relative;
    text-decoration: none;
    outline: none;
    transition: all 0.4s ease;
    color: #000000;
}

.navi > ul > li > a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    height: 3px;
    width: 0;
    background: #F1EE3D;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navi > ul > li.has-dropdown > a::after {
    display: none;
}
.navi > ul > li > a:hover::after {
    width: 90%;
}

.dropdown a::after {
    display: none;
}

.navi a {
    position: relative;
    letter-spacing: 1px;
    font-size: 13px;
    padding: 6px 8px;
    text-decoration: none;   
    transition: color 0.3s ease;
}

.navi a:hover {
    color: #F1EE3D;
}

.navi a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    height: 3px;
    width: 0;
    background: #F1EE3D;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navi a:hover::after {
   width: 100%;
}

.has-dropdown {
    position: relative;
}

.has-dropdown .dropdown {
    position: absolute;
    top: 120%; 
    left: 0;
    background: rgba(255, 255, 255, 0.08); 
    backdrop-filter: blur(14px);         
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    min-width: 200px;
    display: flex;
    flex-direction: column; 
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.35s ease;
    z-index: 2000;
}

.has-dropdown .dropdown li {
    width: 100%;
}

.has-dropdown .dropdown a {
    display: block;
    padding: 12px 16px;
    font-size: 13px;
   letter-spacing: .5px;
    transition: all 0.3s ease;
}

.has-dropdown .dropdown a:hover {
    background: #F1EE3D;
    color: #111;
    border-radius: 4px;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
/* ======================================================
   🏠 HEADER [END]
====================================================== */

/* ======================================================
   📢 MAIN CONTENT
====================================================== */
.m-content {
    position: relative;
    height: 70vh; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.m-content h1{
    text-align: center;
    font-size: 42px;
    margin: 0 auto;
    color: #fff;
}

.m-content span {
    color: #F1EE3D;
}

.m-content p {
    max-width: 1000px;
    margin: 5px auto;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: auto;
    text-align: center;
    text-shadow: 4px 4px 8px rgba(0,0,0,.3);
    color: #fff;
}

.m-content button {
    border: none;
    padding: 10px 50px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 5px;
    background: #F1EE3D;
    cursor: pointer;
    transition: all 0.3s ease;
}

.m-content button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(241, 238, 61, 0.4);
}
/* ======================================================
   📢 MAIN CONTENT [END]
====================================================== */

/* ======================================================
   📖 CONTENT 3T
====================================================== */
.content-3t {
    max-width: 1350px;
    margin: 250px auto;
    text-align: center;
    padding: 20px;
}

.cards-3t {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card-3t {
    background: linear-gradient(145deg, #ffffff, #f3f3f3);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card-3t::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #F1EE3D, #ff004c, #06b6d4);
    -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
    mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
   -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: 0.4s;
}

.card-3t:hover::before {
    opacity: 1;
}

.card-3t:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}

.card-3t h3 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    position: relative;
    display: inline-block;
}

.card-3t h3::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 60%;
    height: 3px;
    background: #ff004c;
    border-radius: 2px;
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.3s ease;
}

.card-3t:hover h3::after {
    transform: translateX(-50%) scaleX(1);
}

.card-3t h3 {
    text-transform: uppercase;
}
.card-3t p {
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
    transition: 0.3s;
}

.card-3t:hover p {
    color: #1e293b;
}

.card-3t i {
    display: block;
    font-size: 44px;
    color: #F1EE3D; /* kuning emas */
    margin-bottom: 16px;
    transition: 0.3s ease;
}

.card-3t:hover i {
    transform: translateY(-5px) scale(1.15);
    color: #ff004c;
}
/* ======================================================
   📖 CONTENT 3T [END]
====================================================== */

/* ======================================================
   🛡️ MAKNA LAMBANG
====================================================== */
.lambang {
    max-width: 1300px;
    margin: -200px auto;
    padding: 30px;
    color: #333;
    line-height: 1.8;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(233, 233, 233, 0.329);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.lambang-title {
    font-size: 25px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.lambang-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #f9c907;
    margin: 10px auto 0;
    border-radius: 2px;
}

.lambang-logo {
    text-align: center;
    margin: 20px 0;
}

.lambang-logo img {
    max-width: 200px;
    height: auto;
    transition: transform 0.8s ease;
}

.lambang-logo img:hover {
    transform: scale(1.2) rotate(360deg);
    transition: all 0.8s ease;
}

.lambang-subtitle {
    font-size: 22px;
    font-weight: 600;
    margin: 35px 0 15px;
    color: #222;
    border-left: 5px solid #f9c907;
    padding-left: 10px;
}

.lambang h3 {
    font-size: 18px;
}
.lambang p {
    text-align: justify;
    margin-bottom: 15px;
    font-size: 12px;
}

.lambang ol {
    margin-left: 25px;
    padding-left: 20px;
    color: #444;
}

.lambang ol li {
    margin: 8px 0;
    padding: 8px 12px;
    background: #f7f7f7;
    border-left: 4px solid #0193DE;
    border-radius: 6px;
    transition: background 0.3s ease;
    font-size: 12px;
}

.lambang ol li:hover {
    background: #eaf2ff;
}
/* ======================================================
   🛡️ MAKNA LAMBANG [END]
====================================================== */

/* ======================================================
   📖 CONTENT 1
====================================================== */
.content1 {
    max-width: 1500px;     
    margin: auto;
    padding: 28px;         
    background-color: rgba(233, 233, 233, 0.329);
    border-radius: 12px;
    color: #222;
    margin-top: 17rem;
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.content1-text h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #000000; 
    margin-top: 8px;
    border-radius: 2px;
}

.content1-div {
    display: flex;
    align-items: flex-start;
    gap: 20px;            
    width: 100%;
}

.content1 img {
    width: 100%;           
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    flex: 0 0 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.content1-text {
    flex: 1 1 auto;
    min-width: 0;
}

.content1-text h2 {
    margin: 0 0 10px 0;
    font-size: 20px;        
    font-weight: 700;
    color: #111;
}

.content1-text p {
    margin: 0;
    font-size: 12px;      
    color: #4b4b4b;
    line-height: 1.6;
    text-align: justify;
}

.polsri {
    background: linear-gradient(90deg, #ff004c, #ff9100);
    font-weight: 600;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* ======================================================
   📖 CONTENT 1 [END]
====================================================== */

/* ======================================================
   📖 CONTENT 2
====================================================== */
.content2 {
    margin: 80px auto;
    padding: 28px;
    background-color: rgba(233, 233, 233, 0.329);
    max-width: 1500px;
    border-radius: 12px;
    color: #222;
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.content2-div {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-direction: row-reverse;
}

.content2 img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 10px;
    flex: 0 0 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.content2-text {
    flex: 1 1 auto;
    min-width: 0;
}

.content2-text h2 {
    margin: 0 0 10px 0;
    font-size: 25px;
    font-weight: 700;
    color: #111;
}

.content2-text h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #000000;
    margin-top: 8px;
    border-radius: 2px;
}

.content2-text p {
    margin: 0;
    font-size: 12px;
    color: #4b4b4b;
    line-height: 1.6;
    text-align: justify;
}

.bold {
    font-weight: 600;
    color: #111;
}

.italic {
    font-style: italic;
    color: #555;
    font-weight: 200;
}
/* ======================================================
   📖 CONTENT 2 [END]
====================================================== */

/* ======================================================
   📞 CONTACT
====================================================== */
.contact {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #e9e9e95d;
    padding: 40px;
    border-radius: 12px;
    gap: 40px;
}

.contact-left, .contact-right {
    flex: 1;
}

.contact h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #222;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item .icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #F1EE3D;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 12px;
}

.contact-item .info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.contact-item .info p {
    margin: 2px 0 0;
    color: #555;
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin: 0 auto;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: #F1EE3D;
    color: rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #0193DE;
    transform: translateY(-2px);
    color: rgb(255, 255, 255);
}

.map iframe {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 20px;
}
/* ======================================================
   📞 CONTACT [END]
====================================================== */

/* ======================================================
   ✨ CUSTOM UNDERLINE
====================================================== */
.lambang-title::after,
.content2-title::after,
.content4 h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background: #000000;
    margin: 10px auto 0;
    border-radius: 2px;
}
/* ======================================================
   ✨ CUSTOM UNDERLINE
====================================================== */

/* ======================================================
   📱 RESPONSIVE WEBSITE
====================================================== */
@media (max-width: 1024px) {
  .m-content h1 { font-size: 36px; }
  .m-content p { font-size: 18px; max-width: 900px; }
  .m-content button { padding: 10px 40px; font-size: 17px; }

  /* CONTENT 1 */
  .content1 {
    margin: 200px 20px 40px;
    padding: 20px;
  }
  .content1-div {
    flex-direction: column !important;  
    gap: 20px;
  }
  .content1 img {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 15px;
  }
  .content1-text { text-align: justify; }

  /* CONTENT 2 */
  .content2 {
    margin: 40px 20px;
    padding: 20px;
  }
  .content2-div {
    flex-direction: column !important; 
    gap: 20px;
  }
  .content2 img {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 15px;
  }
  .content2-text { text-align: justify; }

  /* CONTACT */
  .contact { padding: 30px; gap: 25px; }
  .contact h2 { font-size: 22px; text-align: center; }
  .map iframe { height: 280px; }

  /* 3T */
  .cards-3t {     display: grid !important;
    grid-template-columns: 1fr !important; /* pastikan cuma 1 kolom */
    gap: 20px; }
}

@media (max-width: 900px) {
  /* CONTENT 1 */
  .content1 { padding: 20px; }
  .content1-text h2 { font-size: 18px; }
}

@media (max-width: 860px) {
  .cards-3t { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* NAVIGATION */
  .head { padding: 10px 16px; }

  /* MAIN CONTENT */
  .m-content { height: auto; padding: 60px 20px; }
  .m-content h1 { font-size: 32px; line-height: 1.3; }
  .m-content p { font-size: 16px; max-width: 600px; }
  .m-content button { padding: 10px 32px; font-size: 16px; }

  /* CONTENT 1 */
  .content1 { margin: 250px 12px 40px; padding: 16px; }
  .content1-div {
    flex-direction: column !important;
    gap: 16px;
  }
  .content1 img {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 15px;
  }
  .content1-text { width: 100%; text-align: justify; }

  /* CONTENT 2 */
  .content2 { margin: 40px 12px; padding: 16px; }
  .content2-div {
    flex-direction: column !important;
    gap: 16px;
  }
  .content2 img {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 15px;
  }
  .content2-text { width: 100%; text-align: justify; }

  /* CONTACT */
  .contact { flex-direction: column; gap: 30px; }
  .contact-left, .contact-right { width: 100%; }
  .contact h2 { font-size: 20px; margin-bottom: 15px; }
  .contact-item { align-items: flex-start; text-align: left; }
  .contact-item .icon {
    width: 42px; height: 42px;
    font-size: 18px; margin-right: 12px; flex-shrink: 0;
  }
  .contact-item .info h4 { font-size: 15px; }
  .contact-item .info p { font-size: 13px; line-height: 1.4; }
  .social-icons { justify-content: center; }
  .map iframe { height: 240px; }
}

@media (max-width: 600px) {
  .cards-3t { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cards-3t { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  /* MAIN CONTENT */
  .m-content { padding: 50px 15px; }
  .m-content h1 { font-size: 26px; }
  .m-content p { font-size: 14px; max-width: 100%; }
  .m-content button { width: 100%; padding: 12px; font-size: 15px; }

  /* CONTACT */
  .contact { padding: 20px; gap: 20px; }
  .contact h2 { font-size: 18px; }
  .contact-item .icon {
    width: 36px; height: 36px; font-size: 16px; margin-right: 10px;
  }
  .contact-item .info h4 { font-size: 14px; }
  .contact-item .info p { font-size: 12px; }
  .social-icons a { width: 34px; height: 34px; font-size: 14px; }
  .map iframe { height: 200px; }

  /* CONTENT 1 AND CONTENT 2 (FONT & SCALING) */
  .content1-text h2,
  .content2-text h2 { font-size: 16px; }
  .content1-text p,
  .content2-text p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .navi li::after {
    transition: none;
    transform: scaleX(1) translateY(-2px);
  }
}

/* ======================================================
   📱 RESPONSIVE WEBSITE [END]
====================================================== */

/* ======================================================
   📱 JAVA SCRIPT ANIMATION
====================================================== */
.fade-slide {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-slide.appear {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
  .fade-slide {
  opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
/* ======================================================
   📱 JAVA SCRIPT ANIMATION [END]
====================================================== */

/* ======================================================
   🍔 HAMBURGER
====================================================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #000000;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.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(6px, -6px);
}

/* MOBILE NAVIGATION */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navi {
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    width: 100%;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    transition: max-height 0.3s ease;
    border-radius: 0 0 14px 14px;
  }

  .navi.open {
    max-height: 500px; 
  }

  .navi ul {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .navi a {
    font-size: 16px;
    display: block;
    text-align: center;
  }

    .has-dropdown .dropdown {
    position: static;  
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: none;  
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0;
    box-shadow: none;
    padding-left: 0;
  }

  .has-dropdown.open .dropdown {
    display: block; 
  }

  .has-dropdown .dropdown a {
    text-align: center;
    padding: 10px;
    font-size: 15px;
  }
}
/* ======================================================
   🍔 HAMBURGER [END]
====================================================== */