/* ================= CSS (style.css) ================= */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #d1dcee;
}

.header {
  background: url('images/cloud.png');
  background-size: cover;
  display: flex;
  justify-content: space-between;
  padding: 20px 100px;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.header-right h2 {
  margin: 0;
}

.tag {
  background: red;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
}

.container {
  display: flex;
  padding: 20px;
}

.main {
  flex: 3;
}

.sidebar {
  flex: 1;
  margin-left: 20px;
}

.channel-info {
  background: white;
  padding: 1px 20px 20px;
  border-radius: 10px;
}

.channel-info ul {
  list-style: none;
  padding-left: 0;
}

.featured {
  display: flex;
  margin-top: 20px;
  background: white;
  padding: 15px;
  border-radius: 10px;
}

.thumbnail {
  width: 200px;
  height: 120px;
  background: #ccc;
  border-radius: 10px;
}

.featured-text {
  margin-left: 15px;
}

.article, .videos, .playlist {
  margin-top: 20px;
  padding-left: 20px;
}

.article h3, .videos h3, .playlist h3 { /* Desktop styles */
  background-color: #ABC4F2; /* Warna merah gelap sesuai tema */
  color: #004494;
  padding: 12px 25px;
  border-radius: 0px;
  font-size: 1.6rem;
  display: block; /* Agar background mengambil lebar penuh */
  margin-bottom: 20px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.article-list, .playlist-list {
  display: flex;
  gap: 10px;
}

.video-card, .playlist-card {
  width: 100%;
  height: 150px;
  background: #CCCCCC;
  border-radius: 10px;
  object-fit: cover;
}

.card {
  background: white;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 10px;
}

.card h3 {
  color: #910507;
}

.subscribe {
  width: 100%;
  padding: 10px;
  background: rgb(50, 92, 207);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.subscribe:hover {
  background-color: #004494;
  transform: scale(1.03);
}

.article-more {
  width: 100%;
  padding: 10px;
  background: rgb(50, 92, 207);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.article-more:hover {
  background-color: #004494;
  transform: scale(1.03);
}

.video-more {
  width: 100%;
  padding: 10px;
  background: #D80B0E;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.video-more:hover {
  background-color: #910507;
  transform: scale(1.03);
}

.btn-more {
  width: auto !important; /* Mengabaikan width 100% dari class subscribe */
  padding: 15px 60px !important; /* Padding lebih besar agar tombol terlihat kokoh */
  font-size: 18px; /* Memperbesar ukuran teks */
  font-weight: bold;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin-bottom: 10px;
}

.sidebar ul img {
  width: 180px;
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.sidebar ul img:hover {
  transform: scale(1.05);
}

.header-right img {
  width: 200px;
  height: auto;
}

.sidebar .card > img {
  width: 100%;
  height: auto;
}

/* Tampilan Mobile */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .header img {
    max-width: 100%;
    height: auto;
  }

  .container {
    flex-direction: column;
    padding: 10px;
  }

  .sidebar {
    margin-left: 0;
    margin-top: 20px;
  }

  .featured {
    flex-direction: column;
  }

  .thumbnail {
    width: 100%;
    height: 250px;
    margin-bottom: 10px;
  }

  .featured-text {
    margin-left: 0;
  }

  .article-list, .playlist-list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .article, .playlist {
    padding-right: 20px;
  }

  .article h3, .playlist h3 {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .video-card, .playlist-card {
    height: 250px;
  }

  .sidebar .card > img {
    max-width: 300px;
    display: block;
    margin: 0;
  }
}

/* Styling for playlist video titles */
.article-list a, .playlist-list a {
  text-decoration: none; /* Remove underline from the link */
  color: inherit; /* Inherit text color from parent */
  display: flex; /* Make the link a flex container */
  flex-direction: column; /* Stack image and title vertically */
  align-items: flex-start; /* Align items to the start (left) */
  width: 100%;
}

.article-title, .playlist-video-title {
  margin-top: 8px; /* Space between image and title */
  font-size: 0.95em; /* Slightly smaller font for title */
  color: #333; /* Dark gray text */
  text-align: left;
  padding: 0 2px; /* Small horizontal padding */
  line-height: 1.3;
  font-weight: bold; /* Make it stand out */
  word-break: break-word; /* Allow long words to break */
}

.footer {
  position: relative;
  text-align: center;
  padding: 20px;
  background: url('images/flag.png') no-repeat center;
  background-size: 100% 100%;
  color: #333;
  margin-top: 20px;
  font-size: 11px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* Mobile adjustments for playlist video title */
@media (max-width: 768px) {
  .article-title, .playlist-video-title {
    font-size: 1em; /* Slightly larger on mobile for readability */
  }
}

/* Utility classes */
.section-footer {
  text-align: center;
  margin-top: 20px;
}

/* Post Page Content Styles */
.post-main-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
}

.post-highlight {
  background: #f9f9f9;
  padding: 15px;
  border-left: 5px solid #910507;
  margin: 20px 0;
}

.post-highlight-large {
  padding: 20px;
  font-style: italic;
}

.youtube-footer {
  text-align: center;
  margin-top: 40px;
}

.youtube-footer img {
  max-width: 300px;
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

/* Blog List Styles (all_post.html) */
.blog-item-container {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.blog-item-thumbnail {
  flex: 1;
}

.blog-item-thumbnail img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.blog-item-info {
  flex: 2;
}

.blog-item-info h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.blog-item-info h2 a {
  text-decoration: none;
  color: #0056b3;
}

/* Form Styles (contact.html) */
.form-group {
  margin-bottom: 15px;
}

.form-control {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.btn-submit {
  width: auto !important;
  padding: 10px 30px !important;
}

/* YouTube Stats Styling */
.yt-stats-container {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.yt-stats-container h2 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.yt-stats-container h2::before {
  content: '';
  width: 4px;
  height: 20px;
  background: #FF0000;
  border-radius: 2px;
}

.yt-stats-container h3 {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  margin: 8px 0;
  border: 1px solid #eee;
  color: #444;
  transition: all 0.3s ease;
}

.yt-stats-container h3:hover {
  background: #fff5f5;
  border-color: #FF0000;
  transform: translateX(5px);
  color: #FF0000;
}

/* Animasi putar untuk ikon refresh */
@keyframes kf-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.refresh-animate {
  display: inline-block !important;
  animation: kf-rotate 1s linear infinite !important;
}

/* Memberi sedikit jarak antara ikon dan teks tombol */
#refreshButton .fas {
  margin-right: 8px;
}
