:root {
  --kemendikbud-cyan: #00a8cc;
  --kemendikbud-blue: #0f56a6;
  --kemendikbud-blue-hover: #002d62;
  --kemendikbud-blue-dark: #002d62; /* Navy blue khas kementerian */
  --kemendikbud-green: #10b981;
  --kemendikbud-green-hover: #059669;
  --text-dark: #334155;
  --text-black: #0f172a;
  --text-light: #64748b;
  --bg-white: #FFFFFF;
  --bg-light-gray: #f8fafc;
  --border-color: #e2e8f0;
  --radius-md: 8px; /* Sudut lebih tegas, bersih, dan formal */
  --radius-lg: 12px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.25s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: var(--kemendikbud-blue);
  transition: var(--transition);
}

a:hover {
  text-decoration: underline;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-black);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

p {
  margin-bottom: 1rem;
  text-align: justify;
}

/* Navigation Bertingkat Ala Kemendikdasmen */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-white) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Backward compatibility untuk subpage artefak */
.nav-container {
  max-width: 1350px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
}

.nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1350px;
  width: 100%;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  background: var(--bg-white);
}

.nav-bottom {
  background: var(--kemendikbud-blue-dark);
  width: 100%;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.nav-bottom-container {
  max-width: 1350px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-black) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.2rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  padding: 0.9rem 0.2rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: #f39c12 !important; /* Gold/Kuning Emas aksen Kemendikbud */
  text-decoration: none;
}

.btn-primary {
  background-color: var(--kemendikbud-blue);
  color: var(--bg-white) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 4px; /* Sudut lebih tegas, formal */
  font-weight: 600;
  border: 1px solid var(--kemendikbud-blue);
  box-shadow: 0 4px 12px rgba(15, 86, 166, 0.15);
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--kemendikbud-blue-hover);
  border-color: var(--kemendikbud-blue-hover);
  color: var(--bg-white) !important;
  box-shadow: 0 6px 16px rgba(0, 45, 98, 0.25);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Sections */
section {
  padding: 4rem 2rem;
  max-width: 1160px;
  margin: 0 auto;
}

/* Hero Section */
#home {
  margin-top: 110px; /* offset for bertigkat nav */
  background-color: var(--kemendikbud-blue-dark);
  background-image: linear-gradient(135deg, rgba(0, 45, 98, 0.95), rgba(15, 86, 166, 0.85)), url('bg-hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6rem 2rem;
  text-align: center;
  color: var(--bg-white);
  max-width: 100%;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

.hero-header-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.hero-img {
  width: 180px;
  height: 180px;
  border-radius: 50%; /* Circle profile like kemendikdasmen news avatar */
  border: 5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  margin-bottom: 0;
  object-fit: cover;
  object-position: center 10%;
  transition: var(--transition);
  flex-shrink: 0;
}

.hero-img:hover {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-title {
  font-size: 2.6rem;
  color: var(--bg-white);
  margin-bottom: 0;
  font-weight: 700;
  position: relative;
  text-align: left;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background-color: #f39c12; /* Gold Kemendikbud Underline */
  border-radius: 2px;
}

/* Mock Search Bar */
.search-container {
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  outline: none;
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--kemendikbud-blue);
  font-weight: bold;
}

/* Category Cards (Grey Background) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card-category {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 2.2rem 1.8rem;
  text-align: justify;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.card-category:hover {
  border-color: var(--kemendikbud-green);
  box-shadow: 0 12px 24px -4px rgba(16, 185, 129, 0.12), 0 4px 6px -2px rgba(16, 185, 129, 0.05);
  transform: translateY(-4px);
}

.card-category .icon {
  font-size: 2.5rem;
  color: var(--kemendikbud-blue);
  margin-bottom: 1rem;
  display: block;
}

.card-category h3 {
  font-size: 1.1rem;
  color: var(--text-black);
  margin-bottom: 0.5rem;
}

.card-category p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Article/Service Cards (White Background with border) */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card-article {
  background: var(--bg-white);
  border-radius: var(--radius-md); /* 8px */
  padding: 1.6rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.card-article:hover {
  border-color: var(--kemendikbud-blue);
  box-shadow: 0 8px 20px rgba(11, 92, 180, 0.08);
  transform: translateY(-3px);
}

.card-article h3 {
  font-size: 1.15rem;
  color: var(--kemendikbud-blue-dark);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.card-article p {
  font-size: 0.92rem;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Profile Section Content */
.profile-container {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--kemendikbud-blue);
  border-radius: 20px;
  padding: 3.5rem;
  margin-top: 2rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.03);
}

.profile-container p {
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.7;
}

.quote-box {
  margin-top: 2.5rem;
  padding: 1.8rem;
  background: #f0fdf4; /* Very light emerald */
  border-left: 4px solid var(--kemendikbud-green);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #15803d;
  font-size: 1.1rem;
}

/* Portfolio Chooser Overlay */
#portfolioChooser {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-light-gray);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: justify;
  transition: opacity 0.5s ease;
}

.chooser-content {
  max-width: 800px;
  padding: 2rem;
}

.chooser-logo {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 2rem;
}

.chooser-logo img {
  height: 60px;
  width: auto;
}

.chooser-title {
  font-size: 2.5rem;
  color: var(--kemendikbud-blue);
  margin-bottom: 0.5rem;
}

.chooser-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 3rem;
}

.chooser-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.chooser-card {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.chooser-card:hover {
  border-color: var(--kemendikbud-cyan);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.chooser-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--kemendikbud-blue);
  color: var(--bg-white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.chooser-card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.chooser-card h3 {
  font-size: 1.5rem;
  color: var(--text-black);
  margin-bottom: 1rem;
}

.chooser-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.chooser-card-cta {
  color: var(--kemendikbud-blue);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hidden Class */
.hidden-section {
  display: none !important;
}

/* Skills Section */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.skill-badge {
  background: var(--bg-white);
  border: 1px solid var(--kemendikbud-cyan);
  color: var(--kemendikbud-blue);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  min-height: 520px; /* Menghindari halaman collapse/mental saat di-filter */
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  background: #eee;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
}

/* EP2 Hero Specific */
#ep2-hero {
  margin-top: 110px;
  background-color: var(--text-dark);
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 89, 178, 0.8)), url('bg-hero.png');
  background-size: cover;
  background-position: center;
  padding: 5rem 2rem;
  text-align: center;
  color: var(--bg-white);
}

/* Footer Portal Kemendikdasmen Style */
footer {
  background: var(--kemendikbud-blue-dark);
  color: rgba(255, 255, 255, 0.85);
  border-top: 4px solid #f39c12; /* Aksen Emas resmi */
  padding: 4rem 2rem 2rem;
  font-size: 0.9rem;
  margin-top: 4rem;
  text-align: left;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 3px;
  background: #f39c12;
  border-radius: 2px;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7) !important;
  line-height: 1.8;
  margin-bottom: 1rem;
  text-align: left !important;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: var(--transition);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #f39c12 !important;
  text-decoration: none;
  padding-left: 5px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    position: static !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
  .nav-top {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    text-align: center;
  }
  .nav-top .logo {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  .nav-top .logo div {
    border-left: none !important;
    padding-left: 0 !important;
    align-items: center;
  }
  .nav-bottom-container {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
  }
  .nav-links {
    display: flex;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    justify-content: flex-start;
    gap: 1rem;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }
  .nav-links::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
  }
  .nav-links a {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.5rem 0.2rem;
  }
  #home, #ep2-hero {
    margin-top: 0 !important;
    padding: 3rem 1rem;
  }
  section {
    padding: 3rem 1rem;
  }
  .hero-header-row {
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
  }
  .hero-title {
    font-size: 1.75rem;
    text-align: center;
    width: 100%;
  }
  .hero-img {
    width: 120px;
    height: 120px;
  }
  .profile-container {
    padding: 1.5rem;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
  }
  .card-category {
    padding: 1.5rem 1rem;
  }
  .card-category .icon {
    font-size: 2rem;
  }
  .btn-primary {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  .quote-box {
    padding: 1rem;
    font-size: 0.95rem;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-white);
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-light-gray);
}

.modal-title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-black);
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-dark);
  line-height: 1;
  padding: 0;
}

.modal-close:hover {
  color: var(--kemendikbud-blue);
}

.modal-body {
  flex: 1;
  width: 100%;
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Search Results Dropdown */
.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-top: 0.5rem;
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  text-align: left;
}

.search-results-dropdown.active {
  display: block;
}

.search-result-item {
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 0.95rem;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: var(--bg-light-gray);
  color: var(--kemendikbud-blue);
}

/* Filter Buttons */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--kemendikbud-blue);
    color: white;
    border-color: var(--kemendikbud-blue);
}

/* Document Card Layout */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.doc-card {
  background: var(--bg-white);
  border-radius: var(--radius-md); /* 8px */
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.doc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(11, 92, 180, 0.08);
  border-color: var(--kemendikbud-blue);
}

.doc-card-thumb {
  height: 150px;
  background-color: var(--bg-light-gray);
  background-image: linear-gradient(45deg, var(--bg-light-gray) 25%, #f1f5f9 25%, #f1f5f9 50%, var(--bg-light-gray) 50%, var(--bg-light-gray) 75%, #f1f5f9 75%, #f1f5f9 100%);
  background-size: 20px 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.doc-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.doc-card:hover .doc-thumb-img {
  opacity: 1;
  transform: scale(1.05);
}

.doc-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--kemendikbud-blue);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(15, 86, 166, 0.15);
}

.doc-icon {
  font-size: 3rem;
  color: rgba(15, 86, 166, 0.15);
}

.doc-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.doc-card:hover .doc-overlay-btn {
  opacity: 1;
  pointer-events: auto;
}

.doc-overlay-btn:hover {
  text-decoration: none;
  background: var(--kemendikbud-blue);
  color: white;
  box-shadow: 0 6px 16px rgba(15, 86, 166, 0.3);
}

.doc-card-content {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.doc-card-content h4 {
  color: var(--kemendikbud-blue-dark);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.doc-card-content p {
  color: var(--text-dark);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.doc-btn {
  background: var(--bg-light-gray);
  color: var(--kemendikbud-blue);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  align-self: flex-start;
  text-decoration: none;
  transition: var(--transition);
}

.doc-btn:hover {
  background: var(--kemendikbud-blue);
  color: white !important;
  border-color: var(--kemendikbud-blue);
  text-decoration: none;
}

/* Carousel Documentation */
.carousel-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: #EAF5FA;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .carousel-slide img {
        height: auto;
    }
}

/* Accordion Gallery for Dokumentasi Kegiatan */
.accordion-gallery {
    display: flex;
    gap: 8px;
    height: 400px;
    width: 100%;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-light-gray);
}

.accordion-item {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: flex 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    background-color: #000;
}

.accordion-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: all 0.5s ease;
}

.accordion-item:hover {
    flex: 8;
}

.accordion-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .accordion-gallery {
        height: 300px;
        gap: 4px;
    }
    .accordion-item:hover {
        flex: 5;
    }
}

/* Analisis Produk Section */
.analisis-section {
    background-color: var(--bg-white);
    padding: 5rem 2rem;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.analisis-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.analisis-subtitle {
    color: var(--kemendikbud-blue);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.analisis-header h2 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-black);
}

.analisis-desc {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.05rem;
}

.analisis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1160px;
    margin: 0 auto;
}

.analisis-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.2rem 1.8rem;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.analisis-card:hover {
    transform: translateY(-5px);
}

.card-cyan:hover { box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15); border-color: rgba(6, 182, 212, 0.3); }
.card-purple:hover { box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15); border-color: rgba(168, 85, 247, 0.3); }
.card-green:hover { box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); }
.card-orange:hover { box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.3); }

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.cyan-bg { background-color: #22d3ee; color: #083344; }
.purple-bg { background-color: #c084fc; color: #3b0764; }
.green-bg { background-color: #34d399; color: #064e3b; }
.orange-bg { background-color: #fbbf24; color: #78350f; }

.card-title-group {
    display: flex;
    flex-direction: column;
}

.card-line {
    width: 30px;
    height: 3px;
    margin-bottom: 0.8rem;
    border-radius: 2px;
}

.cyan-line { background-color: #22d3ee; }
.purple-line { background-color: #c084fc; }
.green-line { background-color: #34d399; }
.orange-line { background-color: #fbbf24; }

.analisis-card h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.4;
}

.card-cyan h3 { color: #22d3ee; }
.card-purple h3 { color: #c084fc; }
.card-green h3 { color: #34d399; }
.card-orange h3 { color: #fbbf24; }

.card-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.btn-buka-analisis {
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--kemendikbud-blue);
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: inline-block;
    width: fit-content;
}

.btn-buka-analisis:hover {
    background: var(--kemendikbud-blue);
    color: #fff;
}

/* Modal CSS */
.analysis-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.analysis-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.analysis-modal-content {
    background: #1a1e29;
    width: 90%;
    max-width: 900px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.analysis-modal-overlay.active .analysis-modal-content {
    transform: translateY(0) scale(1);
}

.analysis-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.modal-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: #fff;
}

.header-titles {
    display: flex;
    flex-direction: column;
}

.modal-kategori {
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
    color: #22d3ee;
}

.analysis-modal-content h2 {
    color: #f8fafc;
    font-size: 1.8rem;
    margin: 0;
}

.btn-close-modal {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-close-modal:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.modal-subtitle {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.modal-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-box {
    background: #232936;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.modal-box h4 {
    color: #22d3ee;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 1rem;
}

.modal-box p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.box-full {
    border-color: rgba(34, 211, 238, 0.2);
}
.box-full h4 {
    color: #22d3ee;
}

@media (max-width: 768px) {
    .modal-grid-2 {
        grid-template-columns: 1fr;
    }
    .analysis-modal-content {
        padding: 1.5rem;
    }
    .analysis-modal-content h2 {
        font-size: 1.4rem;
    }
}

/* Sintesis Container */
.sintesis-container {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 20px;
    padding: 2.2rem 2.5rem;
    margin-top: 2.5rem;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 2rem;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    color: var(--text-dark);
}

.sintesis-left {
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: center;
}

.sintesis-tag {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #34d399; /* emerald accent */
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.sintesis-left h3 {
    font-size: 1.65rem;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-black);
}

.sintesis-left p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 0;
}

.sintesis-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: left;
}

.sintesis-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.sintesis-box:hover {
    background: #f8fafc;
    border-color: rgba(52, 211, 153, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 211, 153, 0.1);
}

.sintesis-box h4 {
    color: #34d399;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
}

.sintesis-box p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.45;
    margin: 0;
}

@media (max-width: 992px) {
    .sintesis-container {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.5rem;
        gap: 2rem;
    }
    .sintesis-right {
        grid-template-columns: 1fr;
    }
    .sintesis-left h3 {
        font-size: 1.8rem;
    }
}

/* One Screen Sections */
.one-screen {
    min-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2rem !important;
    box-sizing: border-box;
}

.one-screen > div {
    width: 100%;
}

.one-screen h2 {
    margin-bottom: 1.5rem !important;
}

.one-screen .article-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 1rem !important;
    margin-top: 1rem !important;
}

.one-screen .card-article {
    padding: 1.2rem !important;
}

.one-screen .profile-container {
    padding: 2rem !important;
}

.one-screen .skills-container {
    margin-top: 1rem !important;
}

.one-screen .accordion-gallery {
    margin: 1rem 0 !important;
    height: 350px !important; /* slightly smaller to fit */
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
    max-width: 800px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--kemendikbud-blue);
    background-color: white;
    color: var(--kemendikbud-blue);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: #f0f7ff;
}

.tab-btn.active {
    background-color: var(--kemendikbud-blue);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 89, 178, 0.2);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Enhanced Elegant UI Additions */
.analisis-section {
    position: relative;
    overflow: hidden;
    background-color: #fafcff;
}

.analisis-section::before {
    content: '';
    position: absolute;
    top: -20%; left: -10%; width: 50%; height: 60%;
    background: radial-gradient(circle, rgba(34,211,238,0.04) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.analisis-section::after {
    content: '';
    position: absolute;
    bottom: -20%; right: -10%; width: 50%; height: 60%;
    background: radial-gradient(circle, rgba(168,85,247,0.04) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.analisis-header, .analisis-grid, .sintesis-container {
    position: relative;
    z-index: 1;
}

.analisis-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
}

.analisis-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #22d3ee, #c084fc, #34d399);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.analisis-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
}

.analisis-card:hover::before {
    opacity: 1;
}

.card-number {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.analisis-card:hover .card-number {
    transform: scale(1.15) rotate(5deg);
}

.sintesis-container {
    border-radius: 24px;
    padding: 3rem;
    margin-top: 4rem;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f4f7fb 100%);
    border: 1px solid rgba(255,255,255,1);
}

.sintesis-container::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; width: 40%;
    background: linear-gradient(135deg, rgba(34,211,238,0.03) 0%, rgba(168,85,247,0.03) 100%);
    border-top-left-radius: 100%;
    border-bottom-left-radius: 100%;
    pointer-events: none;
}

.sintesis-left, .sintesis-right {
    position: relative;
    z-index: 2;
}

.sintesis-box {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.sintesis-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(52, 211, 153, 0.1);
    background: #ffffff;
}

/* Make artefak cards also hover nicely */
.doc-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.doc-card:hover {
    transform: translateY(-8px);
}

/* ========================================================================= */
/* TWO-COLUMN SPLIT LAYOUT                                                   */
/* ========================================================================= */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.split-layout.align-start {
    align-items: flex-start;
}
.split-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.split-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Slideshow Background for Keahlian Section */
.bg-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: bgSlide 10s infinite;
}

.bg-slideshow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: rgba(255, 255, 255, 0.85); /* White overlay to ensure text is readable */
}

@keyframes bgSlide {
    0%, 18% { background-image: url('assets/slideshow/bg1.png'); }
    20%, 38% { background-image: url('assets/slideshow/bg2.png'); }
    40%, 58% { background-image: url('assets/slideshow/bg3.png'); }
    60%, 78% { background-image: url('assets/slideshow/bg4.png'); }
    80%, 98% { background-image: url('assets/slideshow/bg5.jpg'); }
    100% { background-image: url('assets/slideshow/bg1.png'); }
}


/* Elegant Timeline Layout */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, #3b82f6 0%, #8b5cf6 20%, #10b981 40%, #f59e0b 60%, #ef4444 80%, #94a3b8 100%);
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    padding-left: 100px;
    transition: all 0.4s ease;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 41.5px;
    top: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05), 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.4);
}

.timeline-date {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: var(--kemendikbud-blue);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 30px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,89,178,0.25);
    letter-spacing: 0.5px;
}

.timeline-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 22px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: rgba(34, 211, 238, 0.3);
}

.timeline-title {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.timeline-company {
    color: var(--kemendikbud-cyan);
    font-weight: 500;
    font-size: 1.1rem;
}

.timeline-desc {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.timeline-tag {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    margin-right: 0.6rem;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.timeline-tag:hover {
    background: #e2e8f0;
    color: #1e293b;
}

@media (max-width: 768px) {
    .timeline-container::before {
        left: 30px;
    }
    .timeline-item {
        padding-left: 70px;
    }
    .timeline-dot {
        left: 21px;
    }
    .timeline-content {
        padding: 1.5rem;
    }
    .timeline-title {
        font-size: 1.2rem;
    }
    .timeline-company {
        font-size: 1rem;
        display: block;
        margin-top: 0.3rem;
    }
}
