/* PATCH: Remove top white gap and reset margins */
html, body { margin:0; padding:0; }
body.dark .hero-photo{ border-top:0 !important; }
@font-face{
  font-family:"Jost";
  src:url("assets/Jost-Regular.ttf") format("truetype");
  font-weight:normal;
  font-style:normal;
}

*{margin:0;padding:0;box-sizing:border-box}
:root{
  --bg:#fff; --fg:#111; --muted:#555; --pill:#fff;
  --shadow:0 10px 30px rgba(0,0,0,.08);
}
html{scroll-behavior:smooth}
body{
  font-family:"Jost", system-ui, sans-serif;
  background:var(--bg); color:var(--fg); line-height:1.45;
  transition: background .4s, color .4s;
}

/* DARK MODE */
body.dark{
  --bg:#111; --fg:#f0f0f0; --muted:#aaa; --pill:#222;
}
body.dark .dock{ background:rgba(20,20,20,.92); border-color:#333; }
body.dark .content{ background:#000; border-color:#333; }

/* TOPBAR */
.topbar{
  position:fixed; top:20px; left:0; right:0;
  display:flex; justify-content:space-between; align-items:center;
  padding:0 40px;
  z-index:1300;
}
.topbar-left{ display:flex; flex-direction:column; gap:10px; }

/* Brand (tanpa logo) */
.brand{ display:flex; flex-direction:column; align-items:center; gap:4px; }
.brand span{ font-weight:600; font-size:.95rem; }

/* Toggle pill */
.mode-toggle{
  display:flex; align-items:center; justify-content:center;
  width:160px; height:44px;
  background:#000; color:#fff;
  border-radius:999px;
  position:relative; cursor:pointer;
  box-shadow:var(--shadow);
  user-select:none;
  transition:background .3s ease, color .3s ease;
  overflow:hidden;
}
.toggle-circle{
  width:32px; height:32px;
  border-radius:50%; background:#fff;
  position:absolute; top:50%;
  transform:translateY(-50%);
  left:6px;
  transition:left .3s ease, background .3s ease;
}
.toggle-label{
  font-size:.8rem; font-weight:600;
  position:relative; z-index:2;
  transition:transform .3s ease, color .3s ease;
}
/* Light mode (default) → lingkaran kiri, teks geser kanan */
body:not(.dark) .toggle-label{ transform:translateX(30px); color:#fff; }
/* Dark mode → lingkaran kanan, teks geser kiri */
body.dark .mode-toggle{ background:#fff; color:#000; }
body.dark .toggle-circle{ left:calc(100% - 38px); background:#000; }
body.dark .toggle-label{ transform:translateX(-30px); color:#000; }

/* Language switcher */
.lang-switch{ display:flex; flex-wrap:wrap; gap:8px; }
.lang-btn{
  padding:6px 10px; font-size:.8rem; font-weight:600;
  border:1px solid rgba(0,0,0,.12);
  background:var(--pill); color:var(--fg);
  border-radius:999px; cursor:pointer;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.lang-btn:hover{ filter:brightness(0.98); }
.lang-btn.active{ background:#000; color:#fff; border-color:#000; }
body.dark .lang-btn{ border-color:#333; }
body.dark .lang-btn.active{ background:#fff; color:#000; border-color:#fff; }

/* CONTAINER */
.container{
  width:100%; margin-inline:auto;
  padding-inline: clamp(40px, 9vw, 160px);
  max-width:1800px;
}

/* HERO */
.hero{
  min-height:calc(100vh - 100px);
  display:flex; flex-direction:column; justify-content:space-between;
}
.hero-grid{
  display:flex; align-items:center; justify-content:center; flex:1;
  padding-top:120px;
}
.hero-block{
  display:flex; flex-direction:column; gap:24px;
  justify-content:center; align-items:center; text-align:center;
  flex:1;
}




/* Role box */
.role-box{
  display:block; position:relative;
  background:var(--pill); color:var(--fg);
  padding:.55rem 1.25rem; border-radius:999px;
  width:100%; max-width:720px; height:2.2em;
  overflow:hidden; box-shadow:var(--shadow);
  opacity:0; transform:translateX(40px);
}
.role-box.animate{ animation:fadeInRight 1s ease forwards; animation-delay:0.8s; }
.role-text{
  position:absolute; top:0; left:0; width:100%; height:100%;
  line-height:2.2em; white-space:nowrap; text-align:center; font-weight:600;
}

/* Teks ringkas */
.text-single{ max-width:720px; margin-inline:auto; opacity:0; transform:translateX(40px); }
.text-single.animate{ animation:fadeInRight 1s ease forwards; animation-delay:1.4s; }
.text-single p{ color:var(--muted); font-size:1.02rem; line-height:1.58; transition:color .4s; }

/* Foto background */
.hero-photo{
  width:100%;
  height: clamp(320px, 35vh, 420px);
  background:
    linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,.08)),
    url("assets/background.jpg") center/cover no-repeat;
  filter:grayscale(100%) contrast(110%);
  border-top:1px solid #eee;
  margin-top:60px;
}

/* Dock */
.dock{
  position:fixed; left:50%; bottom:20px;
  transform:translateX(-50%);
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(120%) blur(8px);
  border:1px solid rgba(0,0,0,.08);
  border-radius:999px;
  padding:10px 14px; display:flex; gap:18px; align-items:center;
  box-shadow:var(--shadow); z-index:1000;
}
.dock a{
  text-decoration:none; color:var(--fg); font-weight:600; font-size:.9rem;
  padding:8px 14px; border-radius:999px;
  transition:background .25s ease, color .25s ease;
  position:relative;
}
.dock a::after{
  content:""; position:absolute; left:0; bottom:0;
  width:0; height:2px; background:currentColor;
  transition:width .3s ease;
}
.dock a:hover::after{ width:100%; }
.dock a.active{ background:#000; color:#fff; }
body.dark .dock a.active{ background:#fff; color:#000; }

/* Sections */
.content{padding:48px 0; border-top:1px solid #eee; transition:background .4s, border-color .4s;}
.content h2{font-size:2rem; margin-bottom:16px;}

/* Transition overlay */
.page-transition{
  position:fixed; inset:0; background:var(--bg);
  z-index:9999; pointer-events:none;
  opacity:0; transform:scaleY(0); transform-origin:top;
  transition:transform .6s ease, opacity .6s ease;
}
.page-transition.active{opacity:1; transform:scaleY(1);}

/* Animasi */
@keyframes fadeInRight{
  from{opacity:0; transform:translateX(40px);}
  to{opacity:1; transform:translateX(0);}
}
@keyframes slideDown{
  from{opacity:0; transform:translateY(-40px);}
  to{opacity:1; transform:translateY(0);}
}

/* Responsive */
@media(max-width:1100px){
  .hero-block{gap:20px;}
  .text-single{max-width:100%;}
}
@media(max-width:560px){
  .dock{gap:8px; padding:8px 10px;}
  .dock a{padding:7px 10px; font-size:.85rem;}
  .role-box{min-width:220px;}
}

/* ======== PENDIDIKAN (academics) ======== */
.content .edu-container{ padding-inline:0; }
#Academics.content{ background:transparent; }
.edu-container{ background:transparent !important; border:none !important; }
.edu-scroll{ background:transparent; }

.edu-title{ text-align:center; margin-bottom:16px; }

.edu-scroll{
  display:flex; align-items:center; flex-wrap:nowrap;
  gap:32px; overflow-x:auto; padding:24px 16px;
  margin:0; scrollbar-width:none; -ms-overflow-style:none;
}
.edu-scroll::-webkit-scrollbar{ display:none; }

/* CARD Pendidikan */
.edu-card{
  flex:0 0 600px; min-height:300px;
  background:var(--pill); color:var(--fg);
  border-radius:20px; padding:28px;
  display:flex; flex-direction:column; align-items:center; text-align:center;
  gap: 16px; /* PATCH: spacing between logo & info */ box-shadow:0 0 16px rgba(0,0,0,.10), 0 0 6px rgba(0,0,0,.05);
  cursor:pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.edu-card:hover{
  transform:translateY(-6px);
  box-shadow:0 0 22px rgba(0,0,0,.14), 0 0 10px rgba(0,0,0,.08);
}
.edu-logo{
  width:auto !important; height:auto !important;
  max-height:120px; max-width:90%;
  border:none !important; border-radius:0 !important;
  box-shadow:none !important; background:transparent !important;
  padding:0 !important; object-fit:unset !important;
}
.edu-info h3{
  font-size:1.4rem; font-weight:800;
}
.edu-info p{ margin:0; font-weight:600; color:var(--muted); }
.edu-link{ color:#000 !important; font-weight:800 !important; text-decoration:none !important; }
.edu-link:hover{ text-decoration:none !important; }

/* Popup (academics) */
.edu-modal{
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,.55); backdrop-filter:blur(10px);
  z-index:3000; justify-content:center; align-items:center;
}
.edu-modal-content{
  position:relative; background:var(--bg); color:var(--fg);
  padding:40px; border-radius:20px; max-width:1100px; width:95%;
  box-shadow:var(--shadow); animation: fadeInRight .35s ease;
 max-width:1280px; /* PATCH: enlarge modal to fit 3 images */ }
.edu-modal-body{ display:flex; gap:32px; align-items:flex-start; }
.edu-modal-img{ width:340px; height:240px; object-fit:cover; border-radius:12px; flex-shrink:0; }
.edu-modal-text h3{ margin-bottom:12px; font-size:1.5rem; }
.edu-modal-text p{ font-size:1rem; line-height:1.6; }
.edu-close{
  position:absolute; top:14px; right:22px; font-size:2.4rem;
  background:transparent; border:0; color:var(--fg); cursor:pointer;
}
body.modal-open{ overflow:hidden; }

@media(max-width:800px){
  .edu-modal-body{ flex-direction:column; align-items:center; }
  .edu-modal-img{ width:100%; height:auto; }
}

/* ======== PROJECTS ======== */
#Projects.content{ background:transparent; }
.proj-container{ padding-inline:0; }

.proj-title{ text-align:center; margin-bottom:8px; }
.proj-sub{ text-align:center; color:var(--muted); margin-bottom:20px; }

.proj-scroll{
  display:flex; align-items:center; flex-wrap:nowrap; gap:32px;
  overflow-x:auto; padding:24px 16px; scrollbar-width:none; -ms-overflow-style:none;
}
.proj-scroll::-webkit-scrollbar{ display:none; }

/* CARD Projects */
.proj-card{
  flex:0 0 600px; 
  background:var(--pill); color:var(--fg);
  border-radius:20px; padding:28px;
  display:flex; flex-direction:column; gap:16px;
  box-shadow:0 0 16px rgba(0,0,0,.10), 0 0 6px rgba(0,0,0,.05);
  transition:transform .3s ease, box-shadow .3s ease; cursor:pointer;
}
.proj-card:hover{
  transform:translateY(-6px);
  box-shadow:0 0 22px rgba(0,0,0,.14), 0 0 10px rgba(0,0,0,.08);
}
.proj-img{ width:100%; height:200px; object-fit:cover; border-radius:12px; }
.proj-info{ text-align:center; }
.proj-info h3{ margin-bottom:6px; font-size:1.3rem; }
.proj-info p{ font-size:1rem; color:var(--muted); }

/* ===== HERO PHOTO SLIDESHOW ===== */
.hero-photo{ position: relative; overflow: hidden;
  --img-current: url("assets/background.jpg");
  --img-next: url("assets/background2.jpg");
  --slide-duration: 1500ms;
}
.hero-photo::before,
.hero-photo::after{
  content:""; position:absolute; inset:0;
  background-size: cover; background-position: center;
  transition: transform var(--slide-duration) ease-in-out; will-change: transform;
}
.hero-photo::before{ background-image: var(--img-current); transform: translateX(0); z-index:1; }
.hero-photo::after{ background-image: var(--img-next); transform: translateX(100%); z-index:2; }
.hero-photo.is-sliding::before{ transform: translateX(-100%); }
.hero-photo.is-sliding::after{ transform: translateX(0); }
.hero-photo.no-animate::before, .hero-photo.no-animate::after{ transition: none !important; }

/* === Pengalaman (Experience) === */
#Experience.content{ background:transparent; }
.exp-container{ padding-inline:0; }
.exp-title{ text-align:center; margin-bottom:8px; }
.exp-sub{ text-align:center; color:var(--muted); margin-bottom:20px; }
.exp-scroll{ display:flex; align-items:center; flex-wrap:nowrap; gap:32px;
  overflow-x:auto; padding:24px 16px; scrollbar-width:none; -ms-overflow-style:none;
}
.exp-scroll::-webkit-scrollbar{ display:none; }
.exp-card{border-radius:20px;box-shadow:0 4px 12px rgba(0,0,0,0.1);padding:28px;
  flex:0 0 600px; min-height:300px;
  background:var(--pill); color:var(--fg);
  border-radius:20px; padding:28px;
  display:flex; flex-direction:column; gap:16px;
  box-shadow:0 0 16px rgba(0,0,0,.10), 0 0 6px rgba(0,0,0,.05);
  transition:transform .3s ease, box-shadow .3s ease; cursor:pointer;
}
.exp-card:hover{ transform:translateY(-6px);
  box-shadow:0 0 22px rgba(0,0,0,.14), 0 0 10px rgba(0,0,0,.08);
}
.exp-img{ width:100%; height:200px; object-fit:cover; border-radius:12px; }
.exp-info{ text-align:center; }
.exp-info h3{ margin-bottom:6px; font-size:1.3rem; }
.exp-info p{ font-size:1rem; color:var(--muted); }

/* === Modal generik Projects & Pengalaman === */
.item-modal{
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,.55); backdrop-filter:blur(10px);
  z-index:3000; justify-content:center; align-items:center;
}
.item-modal-content{
  position:relative; background:var(--bg); color:var(--fg);
  padding:28px; border-radius:20px;
  max-width:1200px; width:95%; max-height:90vh;
  box-shadow:var(--shadow); animation: fadeInRight .35s ease;
  display:grid; grid-template-columns:1fr 1.2fr; grid-template-rows:auto 1fr;
  grid-template-areas:"header header" "media body"; gap:20px;
}
.item-modal-header{ grid-area:header; text-align:center; }
#itemModalTitle{ font-size:1.6rem; font-weight:800; }
#itemModalSubtitle{ font-size:1rem; opacity:.8; }
.item-modal-body{ display:contents; }
.item-modal-media{ grid-area:media; display:grid; gap:14px; }
.item-modal-media img{ width:100%; height:220px; object-fit:contain; background:#f5f5f5; border:1px solid rgba(0,0,0,.08); border-radius:12px; padding:6px; box-shadow:0 2px 6px rgba(0,0,0,.08); }
.item-modal-text{ grid-area:body; overflow:auto; line-height:1.6; }
.item-close{
  position:absolute; top:14px; right:22px; font-size:2.4rem;
  background:transparent; border:0; color:var(--fg); cursor:pointer;
}
@media(max-width:900px){
  .item-modal-content{
    grid-template-columns:1fr; grid-template-rows:auto auto 1fr;
    grid-template-areas:"header" "media" "body";
  }
}


/* ==================== PATCH: Projects Top Row & Ribbon ==================== */
.proj-row-top{
  display:grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap:32px;
  padding: 24px 16px;
  margin-top: 8px;
}
@media (max-width: 820px){
  .proj-row-top{ grid-template-columns: 1fr; }
}
/* Corner ribbon */
.proj-card{ position:relative; }
.sig-ribbon{
  position:absolute; top:14px; right:-38px;
  background:#444; color:#fff; font-weight:700; font-size:.72rem;
  padding:8px 46px; text-transform:uppercase; letter-spacing:.06em;
  transform: rotate(45deg);
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
  pointer-events:none; user-select:none;
}

/* ==================== PATCH: Item Modal vertical layout ==================== */
.item-modal-content{
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  gap:16px;
}
.item-modal-header{ text-align:center; }
.item-modal-media{
  display:flex; gap:14px; justify-content:center; align-items:center; flex-wrap:nowrap;
  width:100%; overflow-x:hidden; /* PATCH: hide scrollbar in item modal */ padding: 2px 6px;
}
.item-modal-media img{
  width: 100%; max-width: 360px; height: 220px; object-fit: cover;
  border-radius: 12px; /* removed borders/frames */
  box-shadow: none; padding: 0;
}
.item-modal-text{ width:100%; max-width: 960px; text-align:center; }

/* ==================== PATCH: Education Modal new layout ==================== */
.edu-modal-content{
  position:relative; background:var(--bg); color:var(--fg);
  padding:28px; border-radius:20px; max-width:1000px; width:95%; max-height:90vh;
  box-shadow: var(--shadow);
  display:flex; flex-direction:column; align-items:center; gap:18px;
 max-width:1280px; /* PATCH: enlarge modal to fit 3 images */ }
.edu-modal-header{ text-align:center; }
.edu-modal-header h3{ font-size:1.5rem; font-weight:800; margin:0; }
.edu-modal-gallery{
  display:flex; gap:14px; justify-content:center; align-items:center;
  width:100%; overflow-x:auto; padding: 2px 6px;
 overflow:visible; flex-wrap:nowrap; }
.edu-modal-gallery img{
  width: calc((100% - 28px)/3); height:220px;  object-fit: cover;
  border-radius:12px; box-shadow:none; padding:0;
}
.edu-modal-desc{ max-width:960px; text-align:center; line-height:1.6; }

/* ==================== PATCH: Training & Certificate sections ==================== */
.list-container{ max-width:1800px; margin: 0 auto; }
.list-title{ text-align:center; margin-bottom:8px; }
.list-sub{ text-align:center; opacity: .8; margin-bottom: 8px; }
.list-scroll{
  display:flex; align-items:stretch; gap:24px; overflow-x:auto;
  padding: 16px; scrollbar-width:none; -ms-overflow-style:none; justify-content:center;
}
.list-scroll::-webkit-scrollbar{ display:none; }
.list-card{
  flex: 0 0 380px;
  background:var(--pill); color:var(--fg);
  border-radius:20px; padding:22px;
  box-shadow:0 0 16px rgba(0,0,0,.10), 0 0 6px rgba(0,0,0,.05);
  display:flex; flex-direction:column; gap:6px; cursor:pointer;
}
.list-card h3{ margin:0; font-size:1.1rem; font-weight:700; }
.list-card time{ font-size:.95rem; opacity:.9; }
/* Ensure text readable (no transparency) */
/* PATCH: ensure readable text, no forced transparency */
/* popup uses #itemModal -> already handled */

/* ==================== PATCH: Experience Top Row ==================== */
.exp-row-top{
  display:grid;
  grid-template-columns: 1fr;
  gap:32px;
  padding: 24px 16px;
  margin-top: 8px;
}


/* PATCH: Signature ribbon wrap effect (adjusted smaller like bandage) */
.sig-ribbon{
  position:absolute; top:14px; right:-28px;
  background: linear-gradient(180deg, #555, #3a3a3a);
  color:#fff; font-weight:700; font-size:.68rem;
  padding:6px 34px;
  text-transform:uppercase; letter-spacing:.06em;
  transform: rotate(45deg);
  box-shadow: 0 4px 10px rgba(0,0,0,.2), inset 0 -1px 0 rgba(255,255,255,.08);
  pointer-events:none; user-select:none;
}
.sig-ribbon::before, .sig-ribbon::after{
  content:""; position:absolute; top:100%;
  border:6px solid transparent; border-top-color:#2a2a2a;
}
.sig-ribbon::before{ left:8px; }
.sig-ribbon::after{ right:8px; }
.proj-card{ position:relative; overflow:visible; }
.exp-card{border-radius:20px;box-shadow:0 4px 12px rgba(0,0,0,0.1);padding:28px; position:relative; overflow:visible; }
.sig-exp{ right:-24px; padding:5px 28px; font-size:.65rem; }

/* PATCH: edu-link visible in dark mode */
body.dark .edu-link{ color:#fff !important; font-weight:800 !important; }

/* PATCH: Signature bar at bottom (replaces diagonal ribbon) */
.sig-ribbon{ display:none !important; } /* cancel old ribbon */
.sig-bar{border-radius:0 0 20px 20px;
  position:absolute; left:0; right:0; bottom:0;
  background:#444; color:#fff; text-align:center;
  font-weight:800; font-size:.8rem; padding:8px 0;
  border-radius:0 0 20px 20px; box-shadow:0 3px 8px rgba(0,0,0,.15);
}
.proj-card, .exp-card{border-radius:20px;box-shadow:0 4px 12px rgba(0,0,0,0.1);padding:28px; position:relative; }
.proj-card:has(.sig-bar), .exp-card:has(.sig-bar){ padding-bottom:52px; } /* make room for bar */

/* PATCH: Hero name refinement removed (revert to default) */

.hero-name 
.hero-name 

/* PATCH v5: Signature preview box slightly taller + bigger thumbnail */
.proj-card:has(.sig-bar), .exp-card:has(.sig-bar){ min-height: 340px; }
.proj-card:has(.sig-bar) .proj-img{ height: 240px; }
.exp-card:has(.sig-bar) .exp-img{ height: 240px; }

/* PATCH v5: make signature bar non-blocking for clicks */
.sig-bar{border-radius:0 0 20px 20px; pointer-events: none; }

/* PATCH v5: enlarge item modal, remove media scroll, add bottom signature bar */
.item-modal-content{ max-width: 1360px; padding-bottom: 56px; position:relative; }
.item-modal-media{ overflow-x: visible; flex-wrap: nowrap; }
.item-modal-media img{ width: calc((100% - 28px)/3); height: 240px; }
.item-modal-content .sig-bar{border-radius:0 0 20px 20px;
  position:absolute; left:0; right:0; bottom:0;
  background:#444; color:#fff; text-align:center;
  font-weight:800; font-size:.85rem; padding:10px 0;
  border-radius:0 0 20px 20px; box-shadow:0 3px 8px rgba(0,0,0,.15);
}

/* PATCH v5: Contact cards (taller & narrower) */
.contact-container{ max-width: 1100px; margin: 0 auto; }
.contact-scroll{
  display:flex; gap:20px; overflow-x:auto; padding:16px;
  justify-content:center; align-items:stretch; scrollbar-width:none; -ms-overflow-style:none;
}
.contact-scroll::-webkit-scrollbar{ display:none; }
.contact-card{
  flex: 0 0 220px; height: 260px;
  border-radius: 20px; background: var(--pill);
  box-shadow: 0 0 16px rgba(0,0,0,.10), 0 0 6px rgba(0,0,0,.05);
  display:flex; align-items:center; justify-content:center;
}
.contact-card img{max-width:75%;max-height:75%; max-width:48%; max-height:48%; object-fit:contain; margin:auto; display:block; }

/* PATCH v6: Contact section margins and extra bottom space */
#contact{ padding-bottom: 80px; }
.contact-container{ max-width: 1200px; margin: 0 auto; padding-inline:16px; }
.contact-scroll{ flex-wrap:wrap; justify-content:center; overflow-x:auto; }

/* PATCH v7: Restore exact original hero styles */
.hero-name{ line-height:1.05; transition:color .4s; }
.first-name{ font-weight:800; font-size:clamp(64px, 14vw, 160px); }
.last-name{ font-weight:400; font-size:clamp(36px, 7vw, 90px); }
/* PATCH v8: Experience cards taller + thumbnails */
.exp-card{border-radius:20px;box-shadow:0 4px 12px rgba(0,0,0,0.1);padding:28px; min-height: 320px; }
.exp-card .exp-img{ height: 220px; object-fit: cover; }

/* PATCH v9: Contact logo sizing & centering */
.contact-card{ display:flex; align-items:center; justify-content:center; }
.contact-card img{max-width:75%;max-height:75%; max-width:48%; max-height:48%; object-fit:contain; margin:auto; display:block; }

/* PATCH v9: Hover effect for list-cards (Pelatihan & Sertifikat) */
.list-card{
  transition: transform .25s ease, box-shadow .25s ease;
  text-align:center;
}
.list-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

/* PATCH v9: Popup size adjustments for certs and training */
.item-modal-content.modal-cert{ max-width: 1400px; }
.item-modal-content.modal-cert .item-modal-media img{
  height:auto; max-height: 720px; width:auto; margin:auto;
}
.item-modal-content.modal-train{ max-width: 900px; }
.item-modal-content.modal-train .item-modal-media img{
  width: 100%; max-width: 600px; height: auto; margin:auto;
}

/* PATCH v10: Taller signature experience cards */
.exp-card{border-radius:20px;box-shadow:0 4px 12px rgba(0,0,0,0.1);padding:28px; min-height: 380px; }
.exp-card .exp-img{ height: 280px; object-fit: cover; }

/* PATCH v10: Uniform height for pelatihan list-cards */
#pelatihanList .list-card{ min-height: 220px; }

/* PATCH v10: Clock positioning */

body.dark 

/* PATCH v11: Signature Experience thumbnail taller */
.exp-card:has(.sig-bar){ min-height: 420px; }
.exp-card:has(.sig-bar) .exp-img{ height: 320px; object-fit: cover; }

/* PATCH v11: Uniform Pelatihan card height & centered content */
#pelatihanList .list-card{
  height: 260px; /* fixed height */
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
}
#pelatihanList .list-card h3{
  display:-webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow:hidden; text-overflow:ellipsis; max-width: 92%;
}

/* PATCH v11: Clock stronger layer & color */

body.dark 

/* PATCH v11: Contact logos slightly smaller */
.contact-card img{max-width:75%;max-height:75%; max-width:48%; max-height:48%; object-fit:contain; margin:auto; display:block; }
@media (min-width:1100px){
  .contact-card img{max-width:75%;max-height:75%; max-width:48%; max-height:48%; object-fit:contain; margin:auto; display:block; }
}

/* PATCH v13: Two-line clock */



body.dark 

/* PATCH v13: Contact hover effect (consistent with cards) */
.contact-card{
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

/* PATCH v13: Pelatihan uniform alignment */
#pelatihanList.list-scroll{
  display:flex; flex-wrap:wrap; gap:24px; justify-content:center; align-items:stretch;
}
#pelatihanList .list-card{
  flex: 0 0 420px;
  height: 260px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  margin:0;
}
#pelatihanList .list-card h3{
  max-width: 92%;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 900px){
  #pelatihanList .list-card{ flex: 0 0 320px; height: 220px; }
}

/* PATCH v14: Pelatihan one-row horizontal alignment with scroll */
#pelatihanList.list-scroll{
  display:flex; flex-wrap:nowrap; gap:24px;
  overflow-x:auto; overflow-y:hidden;
  justify-content:center; align-items:stretch;
  scroll-snap-type:x mandatory;
}
#pelatihanList .list-card{ scroll-snap-align:center; }

/* PATCH v14: spacing & bold detail in list cards */
.list-card h3{ margin: 0 0 8px 0; font-weight: 800; }
.list-card time{ margin: 0; opacity:.9; }
.list-card .detail-text{ display:block; margin-top:10px; font-weight:700; }

/* PATCH v14: Contact hover + pointer + CTA spacing */
.contact-card{ cursor:pointer; transition: transform .25s ease, box-shadow .25s ease; }
.contact-card:hover{ transform: translateY(-6px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.contact-card .contact-cta{ display:block; margin-top:10px; font-weight:600; text-align:center; opacity:.95; }

/* PATCH v14: Two-line clock, fixed top-right */
#clock{
  position: fixed; top: 12px; right: 16px;
  z-index: 2147483647;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  pointer-events: none;
}
#clock .clk-time{
  font: 800 16px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: var(--fg, #111);
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
#clock .clk-date{
  font: 700 13px/1.1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--fg, #111); opacity:.9;
  text-shadow: 0 1px 2px rgba(0,0,0,.20);
}
body.dark #clock .clk-time, body.dark #clock .clk-date{ color:#fff; text-shadow: 0 1px 2px rgba(0,0,0,.45); }


/* PATCH v15: Contact vertical stack + smaller CTA */
.contact-card{
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.contact-card .contact-cta{
  display:block;
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: .95;
}
.contact-card img{max-width:75%;max-height:75%;
  max-width: 48%;
  max-height: 48%;
  object-fit: contain;
  margin: auto;
  display: block;
}

/* PATCH v15: Narrow signature bar for Experience only */
.exp-card .sig-bar{border-radius:0 0 20px 20px;
  width: 70%;
  left: 15%;
  right: auto;
  border-radius: 12px;
}
@media (max-width: 520px){
  .exp-card .sig-bar{border-radius:0 0 20px 20px; width: 86%; left: 7%; }
}


/* PATCH v16: Experience box smaller, rounded bottom only */
.exp-card{border-radius:20px;box-shadow:0 4px 12px rgba(0,0,0,0.1);padding:28px;
  width: 70%;
  margin: 0 auto;
  border-radius: 0 0 12px 12px;
}
.exp-card .sig-bar{border-radius:0 0 20px 20px;
  width: 100%;
  left: 0;
  right: 0;
  border-radius: 0 0 12px 12px;
}
@media (max-width: 520px){
  .exp-card{border-radius:20px;box-shadow:0 4px 12px rgba(0,0,0,0.1);padding:28px; width: 90%; }
}

/* PATCH v16: Contact logo bigger, text smaller */
.contact-card{
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.contact-card img{max-width:75%;max-height:75%;
  width: 120px;
  height: auto;
  object-fit: contain;
}
.contact-card .contact-cta{
  margin-top: 8px;
  text-align: center;
  font-weight: 500;
  font-size: 0.75rem;
  opacity: .9;
}
