/* styles.css */

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


/* Header & Nav */
header {
    display: flex;
    justify-content: left; 
    align-items: center;
    padding: 1rem 2rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    gap: 2rem;
    min-width: 600px;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    flex-wrap: wrap;
    font-family: Jura, sans-serif;
    max-width: 640px; 
    width: 100%;        
    box-sizing: border-box;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

nav a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #00ADB5;
}

nav a.active {
    color: #00ADB5;
    font-weight: bold;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: small;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Kanit', sans-serif;
}

body {
  justify-content: center;  /* center horizontally */
  align-items: center;      /* center vertically */
  background: #e4e4e4;
  font-family: sans-serif;
}

.container {
  max-width: 1000px;
  display: flex;
  gap: 20px;
  width: 100%;
}

/* Left column */
.main-content {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Video Card */
.video-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 240px;
  /* adjust as needed */
  background: #333;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay info */
.video-info {
  position: absolute;
  top: 15px;
  left: 20px;
  color: #fff;
}

.video-info h1 {
  font-size: 24px;
}

.video-info p {
  font-size: 16px;
}

.video-info .episode {
  display: inline-block;
  margin-top: 10px;
  font-size: 32px;
  font-weight: 300;
}

/* Play icon */
.play-icon {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 28px;
  color: #ff0000;
}

/* Two smaller cards under video */
.small-cards {
  display: flex;
  gap: 20px;
  height: fit-content;
}

.card {
  flex: 1;
  border-radius: 15px;

}

/* White card */
.white-card {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Dark card */
.dark-card {
  background: #393a47;
}

/* Right column */
.sidebar {
  flex: 1;
  background: linear-gradient(145deg, #1e2329, #252a32);
  border-radius: 15px;
  color: #fff;
  padding: 20px;
  min-height: 460px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.sidebar h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #00ADB5;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.sidebar h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: #00ADB5;
  margin-top: 8px;
  border-radius: 3px;
}

.sidebar ol {
  padding-left: 0;
  margin: 0;
  list-style: none; /* Hilangkan nomor default */
}

.sidebar li {
  margin: 12px 0;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.sidebar a {
  color: #ddd;
  text-decoration: none;
  font-size: 16px;
  display: block;
  transition: color 0.3s ease, transform 0.2s ease;
}

.sidebar li:hover {
  background: rgba(0, 173, 181, 0.15);
  transform: translateX(5px);
}

.sidebar a:hover {
  color: #00ADB5;
  transform: translateX(5px);
}


.card li{
  margin-bottom: 15px;
}

.card h2{
  margin-bottom: 10px;
}

.box-2 ul {
  margin-bottom: 15px;
}

.box-1 {
  width: 200px;
  min-height: 389px;
  height: fit-content;
  padding: 40px;
  color: #222831;
  text-align: left;
  line-height: 1.5;
}

.box-2 {
  padding: 40px;
  color: #e4e4e4;
  text-align: left;
  width: 200px;
  height: 398px;
}

.sidebar h2 {
  margin-bottom: 15px;
  font-size: 20px;
}

.video-card {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

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

.copyright {
    text-align: center;
    font-size: 12px;
    margin: 1rem 0;
    color: #444;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff; /* Warna background loading */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Di atas semua elemen */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top: 5px solid #00ADB5; /* Warna utama */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hilangkan preloader setelah halaman tampil */
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
