@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 14px; /* Set dasar 1rem = 14px */
}

body {
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 1rem; /* Gunakan ukuran dasar agar konsisten */
  margin: 0; /* Pastikan tidak ada margin bawaan */
  padding: 0;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 50px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.main-content {
  flex: 1;
}

/* HEADER */
.navbar {
  background: #fff;
  border-bottom: 1px solid rgba(108, 99, 255, 0.2);
  padding: 15px 0;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}



.navbar.scrolled {
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.navbar-brand {
  font-weight: 600;
  color: #8338ec !important;
  font-size: 1.5rem;
  margin-left: 50px;
}

@media (max-width: 768px) {
  .navbar-brand {
    margin-left: 0;
  }
}

.navbar-brand img {
  height: 42px;
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.navbar-nav .nav-link {
  color: #000 !important;
  font-weight: 500;
  font-size: 18px;
  transition: color 0.3s ease;
  padding: 15px 20px;
}

.navbar-nav {
  flex: 1;
  justify-content: flex-end;
  margin-right: 50px;
}

.navbar-nav .nav-item {
  margin-right: 30px;
}

.navbar-nav .nav-link:hover {
  color: #8338ec !important;
  transform: translateY(-2px);
  background-color: #f8f9fa;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.btn-link {
  border: none;
  background: none;
  color: #000;
  padding: 0;
}

.btn-link:hover {
  color: #8338ec;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.search-form {
  display: none;
  flex: 1;
  margin-left: 10px;
  opacity: 0;
  transform: translateX(-20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.search-container.active .search-form {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.search-input {
  border-radius: 20px;
  border: 1px solid #ddd;
  font-size: 14px;
  max-width: 200px;
}

.search-btn {
  border-radius: 20px;
  border-color: #8338ec;
  color: #8338ec;
  font-size: 14px;
  margin-left: 5px;
}

.search-btn:hover {
  background-color: #8338ec;
  border-color: #8338ec;
}

.search-container.active .search-form {
  display: flex;
}

.search-container.active .search-icon {
  display: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(108, 99, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform: rotate(0deg);
}

.navbar-toggler-icon.is-open {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(108, 99, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m6 6l18 18M6 24l18-18'/%3e%3c/svg%3e");
  transform: rotate(180deg);
}

/* Dropdown submenu styles */
.dropdown-menu {
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px 0;
}

.dropdown-item {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  color: #333;
  padding: 10px 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
  background-color: #8338ec;
  color: #fff;
}

/* MAIN CONTENT */
main {
  background-color: #fff;
  padding: 40px 0;
  flex: 1;
}

/* ARTIKEL GRID - 3 kolom */
.article-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.article-card {
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 10px;
  min-height: 180px; /* Reduced card heights */
}

.article-card:hover {
  transform: scale(1.05) translateY(-15px);
  box-shadow: 0 0 10px rgba(131, 56, 236, 0.3);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.article-card:hover img {
  transform: scale(1.1);
  transition: transform 0.5s ease;
}

.article-card:hover h3,
.article-card:hover p {
  opacity: 0.7;
  color: #8338ec;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.article-card img {
  width: 234px;
  height: 123px;
  object-fit: cover;
  margin-bottom: 15px;
}

.article-card h3 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 10px;
  flex-grow: 1;
}

.article-card h3 a {
  color: #8338ec;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.article-card h3 a:hover {
  color: #6c5ce7;
}

.article-card p {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  text-align: justify;
  margin-top: 8px;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

.article-card .article-meta {
  font-size: 11px;
  color: #666;
  margin-top: 5px;
  margin-bottom: 0;
  font-weight: 400;
}

/* SIDEBAR */
.sidebar {
  width: 350px;
  background-color: #fff;
  padding: 25px;
  border-radius: 12px;
  position: sticky;
  top: 20px;
  height: fit-content;
}



.sidebar-tabs {
  display: flex;
  gap: 30px;
  margin-bottom: 1rem;
}

.tab {
  text-transform: uppercase;
  display: inline-block;
  background-color: #e9ecef;
  color: #495057;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  margin: 0;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
}

.tab.active {
  background-color: #8338ec;
  box-shadow: 2px 2px #222222;
  border: 1px solid #222222;
  color: #ffffff;
}

.tab:hover {
  background-color: #e9ecef;
  color: #8338ec;
}

.sidebar h3 {
  text-transform: uppercase;
  display: inline-block;
  background-color: #8338ec;
  box-shadow: 2px 2px #222222;
  border: 1px solid #222222;
  color: #ffffff;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.sidebar-item {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: space-between;
}

.sidebar-thumb {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-link {
  font-size: 0.95rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  margin-left: 10px;
  text-align: left;
  display: block;
}

.category-list {
  margin-bottom: 1rem;
}

.category-item {
  margin-bottom: 15px;
}

.category-list .sidebar-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-count {
  color: #8338ec;
  font-weight: 700;
}

.sidebar-link:hover {
  color: #8338ec;
}

hr {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #3A86FF 0%, #3A86FF 25%, #8338EC 25%, #8338EC 50%, #FF006E 50%, #FF006E 75%, #FFBE0D 75%, #FFBE0D 100%);
  height: 2px;
  border: none;
  opacity: 1;
}

/* TAG CLOUD */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  background-color: #e9ecef;
  color: #495057;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tag:hover {
  background-color: #8338ec;
  color: #fff;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-block;
  padding: 10px 15px;
  background-color: #fff;
  color: #8338ec;
  text-decoration: none;
  border: 1px solid #8338ec;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.page-link:hover {
  background-color: #8338ec;
  color: #fff;
}

.page-link.active {
  background-color: #8338ec;
  color: #fff;
}

/* ARTICLE PAGE */
.article-content {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.8;
  color: #333;
  padding: 20px;
}

.article-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000;
}

.article-content img {
  width: 100%;
  height: auto;
  margin: 30px 0;
  border-radius: 8px;
}

.article-meta {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 20px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-meta span:first-child {
  font-size: 0.9rem;
}

.article-meta .admin-name {
  font-weight: bold;
  text-decoration: underline;
  text-decoration-color: #8338ec;
}

/* Article Categories and Tags */
.article-categories-tags {
  margin-top: 15px;
  padding-top: 5px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.article-left-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.article-categories,
.article-tags,
.article-social {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 5px;
}

.article-social .social-link {
  color: #8338ec;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.article-social .social-link:hover {
  color: #6c5ce7;
}

.article-categories .category-link,
.article-tags .tag-link {
  color: #8338ec;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.article-categories .category-link:hover,
.article-tags .tag-link:hover {
  color: #6c5ce7;
}

.article-content p {
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: justify;
}

/* COMMENTS SECTION */
.comments-section {
  margin-top: 15px;
  padding-top: 5px;
  padding-left: 30px;
  padding-right: 30px;
}

.comments-section h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #333;
}

.comment {
  background-color: #f8f9fa;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  border-left: 4px solid #8338ec;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.comment-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.reply-btn {
  background-color: transparent;
  color: #007bff;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.3s ease;
  margin-top: 10px;
}

.reply-btn:hover {
  color: #0056b3;
}

.reply-btn i {
  font-size: 0.9rem;
}

.reply-form {
  display: none;
  margin-top: 15px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.reply-form.show {
  display: block;
}

.reply-form-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reply-form .form-group {
  margin-bottom: 0;
}

.reply-form input,
.reply-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
}

.reply-form textarea {
  height: 80px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.submit-reply-btn {
  background-color: #8338ec;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.submit-reply-btn:hover {
  background-color: #6c5ce7;
}

.cancel-reply-btn {
  background-color: #6c757d;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.cancel-reply-btn:hover {
  background-color: #5a6268;
}

.comment .comment-author {
  font-weight: 600;
  color: #007bff;
  margin-bottom: 5px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background-color: #1da1f2; /* warna biru verified */
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  margin-left: 6px;
  position: relative;
  clip-path: polygon(
    50% 0%,
    61% 12%,
    78% 7%,
    88% 22%,
    100% 35%,
    93% 53%,
    100% 70%,
    88% 78%,
    78% 93%,
    61% 88%,
    50% 100%,
    39% 88%,
    22% 93%,
    12% 78%,
    0% 70%,
    7% 53%,
    0% 35%,
    12% 22%,
    22% 7%,
    39% 12%
  );
  transition: transform 0.2s ease;
}

.admin-badge::before {
  content: "✓";
  font-size: 12px;
  font-weight: 900;
}

.admin-badge:hover {
  transform: scale(1.1);
}



.comment .comment-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.comment .comment-text {
  line-height: 1.6;
  font-size: 0.9rem;
}

.comment.reply {
  margin-left: 60px;
  background: #f8f9fa;
  border-left: 3px solid #007bff;
}

.comment.level-1 {
  margin-left: 60px;
  background: #f8f9fa;
  border-left: 3px solid #007bff;
}

.comment.level-2 {
  margin-left: 120px;
  background: #e9ecef;
  border-left: 3px solid #28a745;
}

.comment-form {
  margin-top: 30px;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment-form h3 {
  margin-bottom: 20px;
  color: #333;
}

.comment-form .form-group {
  margin-bottom: 15px;
}

.comment-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
}

.comment-form textarea {
  height: 80px;
  resize: vertical;
}

.comment-form button {
  background-color: #8338ec;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.comment-form button:hover {
  background-color: #6c5ce7;
}

/* FOOTER */
footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 50px 0 20px;
  margin-top: 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}



.footer-section h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  position: relative;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 50px;
  height: 2px;
  background-color: #ff6b6b;
}

.footer-section p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ff6b6b;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: #ff6b6b;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-copyright {
  text-align: center;
}

.footer-copyright p {
  margin: 0;
  color: #e0e0e0;
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.footer-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ff6b6b;
}

@media (max-width: 768px) {
  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .footer-left,
  .footer-right {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #8338ec;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #6c5ce7;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ANIMASI */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-card, .sidebar {
  animation: fadeInUp 0.6s ease-out;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .navbar-collapse {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
  }

  .dropdown-menu {
    width: 100%; /* Match the width of navbar-collapse */
    margin-top: 0;
    border-radius: 15px; /* Match navbar-collapse border-radius */
  }

  .navbar-light .navbar-nav .nav-link {
    padding: 12px 0;
    display: block;
    border-bottom: 1px solid rgba(108, 99, 255, 0.1);
    min-height: 44px; /* Touch target */
  }

  .navbar-light .navbar-nav .nav-link:hover {
    transform: translateX(5px);
  }
}

@media (max-width: 992px) {
  .container {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }
  .sidebar {
    width: 100%;
  }
  .article-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 13.5px; /* Sedikit lebih kecil untuk tablet */
  }
  .sidebar {
    width: 100%;
    margin-top: 30px;
  }
  .article-card img {
    height: 180px;
  }
  .article-card h3 {
    font-size: 16px;
  }
  .sidebar h3 {
    font-size: 1.1rem;
  }
  .sidebar-thumb {
    width: 60px;
    height: 45px;
  }
  .search-input {
    max-width: 150px;
  }
  .pagination {
    gap: 5px;
    padding: 0 10px;
  }
  .page-link {
    padding: 8px 12px;
    font-size: 14px;
    min-height: 44px;
  }
  .article-content {
    padding: 20px;
  }
  .article-content h1 {
    font-size: 2rem;
  }
  .comments-section {
    padding: 0 15px;
  }
  .comments-section h2 {
    font-size: 1.2rem;
  }
  footer {
    padding: 20px 15px; /* Ensure footer is visible on mobile with proper padding */
  }
  /* Disable hover effects on mobile */
  .article-card:hover {
    transform: none;
    box-shadow: none;
  }
  .article-card:hover img {
    transform: none;
  }
  .article-card:hover h3,
  .article-card:hover p {
    opacity: 1;
    color: inherit;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
  .container {
    padding: 0; /* Remove padding for full width */
    max-width: 100%; /* Ensure full width */
  }
  .article-content {
    padding: 20px;
  }
  .article-content h1 {
    font-size: 1.8rem; /* Smaller title for mobile */
  }
  .comments-section {
    padding: 0 5px; /* Further reduce padding to prevent horizontal scroll */
  }
  .comment {
    padding: 10px; /* Reduce comment padding */
  }
  .reply-form {
    padding: 10px; /* Reduce reply form padding */
  }
  .comment-form {
    padding: 15px; /* Reduce comment form padding */
  }
  .article-grid {
    grid-template-columns: 1fr;
    gap: 0; /* Remove gap for full width */
  }
  .article-card {
    padding: 15px;
    min-height: auto; /* Remove fixed height for compact layout */
    width: 100%; /* Full width cards */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to top */
  }
  .article-card img {
    width: 100% !important; /* Full width images on mobile */
    height: 150px;
    object-fit: cover;
    display: block; /* Remove any inline spacing */
  }
  .article-card h3 {
    font-size: 14px;
    margin-bottom: 8px; /* Reduce margin between title and description */
    flex-grow: 0; /* Don't grow to fill space */
  }
  .article-card p {
    font-size: 13px;
    margin-top: 0; /* Remove top margin */
    flex-grow: 0; /* Don't grow to fill space */
  }
  .sidebar {
    padding: 15px;
  }
  .sidebar-thumb {
    width: 50px;
    height: 40px;
  }
  .sidebar-link {
    font-size: 0.9rem;
  }
  .tag {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  .pagination {
    flex-wrap: wrap;
    gap: 3px;
  }
  .page-link {
    padding: 6px 10px;
    font-size: 12px;
  }
  footer {
    padding: 20px 15px; /* Ensure footer is visible on mobile with proper padding */
  }
}

@media (max-width: 360px) {
  .navbar-brand {
    font-size: 1.2rem;
  }
  .article-card h3 {
    font-size: 13px;
  }
  .sidebar h3 {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }
  .tab {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 10px;
  }
  .navbar-brand {
    font-size: 1.1rem;
    margin-left: 10px;
  }
  .navbar-nav {
    margin-right: 10px;
  }
  .article-card {
    padding: 10px;
    min-height: auto;
  }
  .article-card img {
    height: 120px;
  }
  .article-card h3 {
    font-size: 12px;
  }
  .article-card p {
    font-size: 12px;
  }
  .sidebar {
    padding: 10px;
  }
  .sidebar-thumb {
    width: 40px;
    height: 35px;
  }
  .sidebar-link {
    font-size: 0.85rem;
  }
  .tag {
    padding: 5px 8px;
    font-size: 0.75rem;
  }
  .pagination {
    padding: 0 5px;
  }
  .page-link {
    padding: 5px 8px;
    font-size: 11px;
  }
  .article-content {
    padding: 10px;
  }
  .article-content h1 {
    font-size: 1.8rem;
  }
  .comments-section {
    padding: 0 10px;
  }
  .comment-form {
    padding: 20px;
  }

  footer {
    padding: 15px 10px;
  }
}

/* ALERT STYLES */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 5px;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

/* About Page Styles */
.page-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
}

.about-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-content p {
  text-align: justify;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #555;
  text-justify: inter-word;
}

.contact-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.contact-section h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-weight: 600;
}

.contact-section p {
  margin-bottom: 0.5rem;
  color: #555;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .about-content {
    padding: 1.5rem;
  }

  .contact-section h2 {
    font-size: 1.5rem;
  }
}

/* Syntax Highlighter - Blogger Style */
.post-body pre {
  white-space: pre;
  word-wrap: normal;
  overflow: auto;
  font-size: 11px;
  margin: 0;
  padding: 0;
  position: relative;
}

.post-body .hljs {
  display: block;
  overflow-x: auto;
  padding: 1.2em;
  background: #2b2b2c;
  color: #fff;
  line-height: 1.5;
  text-align: left;
  word-spacing: 0;
  font-family: monospace;
  border-radius: 3px;
  position: relative;
}

.post-body .hljs-tag {
  color: #62c8f3;
}

.post-body .hljs-string,
.post-body .hljs-bullet {
  color: #a2fca2;
}

.post-body .hljs-keyword,
.post-body .hljs-selector-tag,
.post-body .hljs-literal {
  color: #fcc28c;
}

.post-body .hljs-number,
.post-body .hljs-symbol {
  color: #d36363;
}

.post-body .hljs-comment {
  color: #888;
}

/* Copy Code Button */
.copy-code-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
  font-family: monospace;
}

.post-body pre:hover .copy-code-btn {
  opacity: 1;
}

.copy-code-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.copy-code-btn.copied {
  background: #28a745;
  border-color: #28a745;
  color: #fff;
}





