/* General */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f8fafc;
  color: #2d3748;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: linear-gradient(135deg, #16167c, #144f80);
  color: #fff;
}

.header-flex {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.logo-text {
  display: flex;
  align-items: center;
}

.logo-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hero */
.hero {
  margin-top: 20px;
  margin-left: 120px;
  margin-right: 120px;
}

.hero-image {
  overflow: hidden;
  border-radius: 8px;
  width: 30rem;
  width: 100%;
}

.hero-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.hero-text .category {
  background: #144f80;
  color: #fff;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
}

.hero-text .meta {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Content */
.content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.article-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-tags span {
  background: #edf2f7;
  padding: 5px 10px;
  border-radius: 12px;
  margin-right: 8px;
  font-size: 0.85rem;
}

.related-news {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-news h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #16167c;
}

.related-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 3fr));
  gap: 15px;
}

.news-card {
  display: block;
  text-decoration: none;
  color: #2d3748;
  border-radius: 6px;
  overflow: hidden;
  background: #f9fafb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  padding-bottom: 30px;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.news-card p {
  font-size: 0.9rem;
  padding: 8px;
  margin: 0;
}

.news-card .meta {
  font-size: 0.8rem;
  color: #718096;
  padding: 0 8px 8px;
  opacity: 0.8;
}

/* Ads */
.in-article-ad,
.bottom-feature {
  text-align: center;
  margin: 20px 0;
}

.in-article-ad img,
.bottom-feature img {
  width: 80%;
  height: 180px;
  border-radius: 8px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* Sidebar Features */
.sidebar-feature {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.sidebar-feature img {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

.sticky {
  position: sticky;
  top: 20px;
}

/* Sidebar */
.related-posts {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.related-posts h3 {
  margin-bottom: 15px;
}

.related-posts a {
  display: flex;
  margin-bottom: 10px;
  text-decoration: none;
  color: #2d3748;
  gap: 10px;
}

.related-posts a:hover {
  color: #9f13da;
}

/* Comments */
.comments-section {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  margin: 40px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.comment {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.comment img {
  border-radius: 50%;
}

.comment h5 {
  margin: 0;
  font-size: 1rem;
}

.comment span {
  font-size: 0.8rem;
  color: #718096;
}

.comment-box {
  background: #f1f5f9;
  padding: 15px;
  border-radius: 8px;
  width: 95%;
}

.add-comment-box {
  margin-top: 25px;
  background: #f9fafb;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.add-comment-box h4 {
  margin-bottom: 5px;
  font-size: 18px;
  color: #111827;
}

.add-comment-box .sub-text {
  margin-bottom: 15px;
  font-size: 14px;
  color: #6b7280;
}

.comment-form textarea {
  width: 95%;
  height: 100px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  resize: none;
  font-size: 14px;
  transition: border 0.3s, box-shadow 0.3s;
}

.comment-form textarea:focus {
  border: 1px solid #0073e6;
  box-shadow: 0 0 5px rgba(0,115,230,0.3);
}

.comment-form button {
  margin-top: 12px;
  padding: 10px 18px;
  border: none;
  background: #0073e6;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.comment-form button:hover {
  background: #005bb5;
  transform: translateY(-1px);
}

/* Responsive */
@media(max-width:768px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .hero-text {
    font-size: 1.5rem;
    padding: 1rem;
  }

  .hero-image img {
    height: auto;
  }

  .hero {
    margin: 0px;
  }

  .header-flex {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 20px 0;
  }

  .logo img {
    width: 60px;
    height: 60px;
    margin: 0 auto;
  }

  .logo-text h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .related-news-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width:480px) {
  .header-flex {
    gap: 8px;
    padding: 15px 0;
  }

  .logo img {
    width: 50px;
    height: 50px;
  }

  .logo-text h1 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 15px;
  }
}

/* Simple modal styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 300px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.modal-content h4 {
  margin-bottom: 15px;
}

.close-btn {
  margin-top: 10px;
  padding: 6px 12px;
  border: none;
  background: #0073e6;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #16167c, #144f80);
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}