@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
  --bluedark:  #0d3d6e;
  --blue-main:  #1e63a5;
  --blue-mid:   #2e7abf;
  --blue-light: #d6e8f7;
  --gold:       #c9a84c;
  --gold-light: #f0d98a;
  --gray-light: #e2e8f0;
  --text-dark:  #1a202c;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: 'Source Sans 3', Arial, sans-serif;
}

body{
  padding-top: 90px;
  background:#f2f2f2;
}

/* NAVBAR */

.navbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--blue-main);
  color: white;
  padding: 12px 30px;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 90px;
  z-index: 999;
}

.navbar a{
  align-items: center;
}

.logo{
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-itb{
  height: 70px;
  margin-right: 10px;
}

.logo-circle{
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: white;
}

.logo-text h1{ font-size: 18px; }
.logo-text span{ font-size: 12px; opacity: 0.9; }

.menu{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
}

.menu a, .dropbtn{
  color: white;
  text-decoration: none;
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-weight: 600;
}

.menu a:hover{
  text-decoration: none;
  color: var(--gold-light);
}

.lang span{
  margin-left: 10px;
  font-size: 18px;
}

.language-switch{ display: flex; align-items: center; gap: 8px; }
.language-switch img{ height: 20px; border-radius: 2px; }


/* LAYOUT */

.container{
  display:flex;
  padding:40px 40px 0 40px;
  gap:30px;
  position: relative;
  min-height: calc(100vh - 90px);
}

.container::before {
  content: '';
  position: absolute;
  left: 350px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #ddd;
}

/* SIDEBAR */

.sidebar h2{
  display: inline-block;
  background: var(--gold);
  color: var(--bluedark);
  padding: 13px 40px;
  font-size:large;
  font-weight:bolder;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s;
  margin-left: 10px;
}

.sidebar{
  width:350px;
  padding: 30px;
  position:fixed;
  top:90px;          /* tinggi navbar */
  left:0;

  height:calc(100vh - 90px);
  overflow-y:auto;
  animation: slideIn 1s ease-out;
}

.sidebar.is-bottom {
  position:absolute;
  top:auto;
  bottom:0;        /* menempel di atas footer */
}

.sidebar ul{
  list-style:none;
  margin-top: 15px;
  margin-left: -10px;
  padding-right: 10px;
}

.sidebar li{
  margin-bottom:6px;
  border-radius:6px;
  cursor:pointer;
}

.sidebar .active{
  background: var(--blue-light);
  border-radius:6px;
}

.sidebar a{
    text-decoration: none;
    color: black;
    display: block;
    padding: 10px;
}

.sidebar a:hover{
    background: var(--blue-light);
    border-radius:6px;
}

/* CONTENT */

a{
  text-decoration: none;
}

.content{
  flex:1;
  margin-left: 350px;
  margin-right: 50px;
}

ul{
  padding-left: 20px;
  padding-bottom: 20px;
}
ul li{
    margin-bottom: 6px;
    line-height:1.6;
    color: #333;
    
}

ol{
  padding-left: 20px;
}
ol li{
    margin-bottom: 10px;
    line-height:1.6;
    color: #333;
    
}

/* CARD */

.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  animation: fadeIn 1s ease-out 0.5s both;
}

.card h2{
  margin-bottom:15px;
}

.card p{
  margin-bottom:15px;
  line-height:1.6;
  color:#333;
}

/* GAMBAR */

.img{
    margin-top: 30px;
    text-align: center;
}

.img-text{
    margin-top: 20px;
    text-align: center;
    font-size:small;
    color:#777;
}

/* DIAGRAM PLACEHOLDER */

.diagram-placeholder{
  margin-top:25px;
  height:260px;
  border:2px dashed #bbb;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  color:#777;
  font-size:14px;
}

/* DROPDOWN */

.dropdown{
  position: relative;
}

.dropdown-content{
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-top: 3px solid var(--gold);
  overflow: hidden;
}

.dropdown-content a{
  display: block;
  padding: 11px 16px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  border-bottom: 1px solid var(--gray-light);
}

.dropdown-content a:last-child{ border-bottom: none; }

.dropdown-content a:hover{
  background: var(--blue-light);
  color: var(--blue-main);
}

/* tampil saat hover */
.dropdown:hover .dropdown-content{
  display: block;
}

/* FOOTER */

.footer {
  background: var(--blue-dark);
  color: white;
  padding: 56px 80px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin: 0 0 4px;
}

.footer-brand span {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-img { height: 70px; }

.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 8px !important;
}

.footer h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
  opacity: 1 !important;
}

.footer ul { list-style: none; padding: 0; }

.footer ul li { margin-bottom: 10px; }

.footer ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer ul li a:hover { color: white; }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0 0 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  opacity: 1 !important;
}

/* ─── ANIMASI ─────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Route Selector */
    .route-selector {
      display: flex;
      gap: 10px;
      margin: 20px 0 30px 0;
      border-bottom: 2px solid #e0e0e0;
    }

    .route-btn {
      padding: 12px 20px;
      background-color: transparent;
      border: none;
      border-bottom: 3px solid transparent;
      cursor: pointer;
      font-size: 16px;
      font-weight: 500;
      color: #666;
      transition: all 0.3s ease;
      margin-bottom: -2px;
    }

    .route-btn:hover {
      color: #0066cc;
    }

    .route-btn.active {
      color: #0066cc;
      border-bottom-color: #0066cc;
    }

    /* Route Content */
    .route-content {
      display: none;
      animation: fadeIn 0.3s ease-in;
    }

    .route-content.active {
      display: block;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    .route-info {
      background-color: #f9f9f9;
      padding: 20px;
      border-left: 4px solid #0066cc;
      margin-bottom: 20px;
      border-radius: 4px;
    }

    .route-info h3 {
      margin-top: 0;
      color: #0066cc;
    }

    /* Curriculum Table */
    .curriculum-table {
      width: 100%;
      border-collapse: collapse;
      margin: 20px 0;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .curriculum-table thead {
      background-color: #0066cc;
      color: white;
    }

    .curriculum-table th,
    .curriculum-table td {
      padding: 12px;
      text-align: left;
      border-bottom: 1px solid #ddd;
    }

    .curriculum-table tbody tr:hover {
      background-color: #f5f5f5;
    }

    .curriculum-table tbody tr:nth-child(even) {
      background-color: #fafafa;
    }

    .curriculum-table th {
      font-weight: 600;
      padding: 14px 12px;
    }

    /* Curriculum Notes */
    .curriculum-notes {
      background-color: #e8f4ff;
      padding: 15px;
      border-radius: 4px;
      margin-top: 20px;
      border-left: 4px solid #0066cc;
    }

    .curriculum-notes p {
      margin: 8px 0;
      color: #333;
    }

    .curriculum-notes strong {
      color: #0066cc;
    }

    h4 {
      color: #333;
      margin-top: 25px;
      margin-bottom: 15px;
      font-size: 18px;
    }

    @media (max-width: 768px) {
      .route-selector {
        flex-direction: column;
      }

      .route-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
        padding: 10px 15px;
        margin-bottom: 0;
      }

      .route-btn.active {
        border-bottom: none;
        border-left-color: #0066cc;
      }

      .curriculum-table th,
      .curriculum-table td {
        padding: 8px;
        font-size: 14px;
      }
    }