/* ===================== General Reset ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #0a0f1a;
  color: #fff;
  line-height: 1.6;
}

/* ===================== Navbar ===================== */
.navbar {
  background-color: #10131a;
  padding: 12px 20px;
  border-bottom: 2px solid #1f2833;
}

.navbar-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.navbar-search {
  display: flex;
}

.navbar-search input {
  padding: 6px 10px;
  border: none;
  border-radius: 4px 0 0 4px;
}

.navbar-search button {
  padding: 6px 12px;
  border: none;
  background-color: forestgreen;
  color: #fff;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

/* ===================== Main Content ===================== */
.main-content {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.main-header {
  text-align: center;
  margin-bottom: 30px;
}

.main-header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.subheading {
  font-size: 1rem;
  color: #ccc;
}

/* ===================== Section Titles ===================== */
.section {
  margin-bottom: 40px;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #1f2833;
  padding-bottom: 8px;
}

/* ===================== Card Layout ===================== */
.card {
  background: #121826;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.card:hover {
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.3);
}

/* ===================== Card Top Row ===================== */
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-top img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  transition: box-shadow 0.4s ease;
}

/* Glow image softly on hover */
.card:hover .card-top img {
  box-shadow: 0 0 20px rgba(56,189,248,0.4);
}

/* Info beside the image */
.top-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Site name and badge */
.top-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.site-name.verified { color: forestgreen; }
.site-name.unverified { color: #8b0000; }

.badge {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: #333;
  color: #fff;
}

.badge.verified { background-color: forestgreen; }
.badge.unverified { background-color: #8b0000; }

/* Visit button and rating */
.top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.visit-btn {
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.visit-btn.verified {
  background-color: forestgreen;
  color: #fff;
}

.visit-btn.unverified {
  background-color: #8b0000;
  color: #fff;
}

.rating {
  font-size: 0.9rem;
  color: gold;
}

/* ===================== Description Reveal ===================== */
.card-description {
  margin-top: 12px;
  background: rgba(18, 24, 38, 0.9);
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.4;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

/* Reveal softly below image and title */
.card:hover .card-description {
  max-height: 300px;
  opacity: 1;
}
/* ===================== Banners ===================== */
.banners {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.banner {
  background: #1f2833;
  border-radius: 6px;
  height: 120px;
  cursor: pointer;
  transition: transform 0.2s;
}

.banner:hover {
  transform: scale(1.05);
}

/* ===================== Footer ===================== */
.footer {
  background-color: #10131a;
  padding: 20px;
  margin-top: 40px;
  text-align: center;
  border-top: 2px solid #1f2833;
}

.footer-links {
  margin-bottom: 12px;
}

.footer-links a {
  color: #fff;
  margin: 0 15px;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover { text-decoration: underline; }

.footer-copy {
  font-size: 12px;
  color: #aaa;
}

/* ===================== Guides Page ===================== */
.guides-page {
  padding: 40px 20px;
  background-color: #0a0f1a;
  color: #fff;
}

.guides-page h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.guides-grid .guide-box {
  background-color: #121826;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.guides-grid .guide-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.guides-grid .guide-box h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.guides-grid .guide-box img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  background-color: #1f2833;
  border-radius: 4px;
  margin-bottom: 10px;
}

.guides-grid .guide-box p {
  font-size: 0.9rem;
  color: #ccc;
}

/* ===================== Responsive ===================== */
@media (max-width: 1200px) { .guides-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px) { .guides-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .guides-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .guides-grid { grid-template-columns: 1fr; } }

/* ===================== Trending Sites ===================== */
.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.site-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.site-list article {
  background: #121826;
  border-radius: 8px;
  padding: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.site-list article:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.site-list h2 { font-size: 1.4rem; margin-bottom: 10px; color: #facc15; }
.site-list p { font-size: 0.95rem; color: #ddd; margin-bottom: 10px; }
.site-list a { color: #38bdf8; font-weight: 500; text-decoration: none; margin-right: 6px; }
.site-list a:hover { text-decoration: underline; }

@media (min-width: 768px) { .site-list { grid-template-columns: 1fr 1fr; } }
/* ====== BLOG PAGE STYLING ====== */

/* Blog list container */
.blog-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Each blog article */
.blog-article {
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* Article title */
.blog-article h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: #eaeaea;
  font-weight: 600;
}

/* Links inside titles */
.blog-article h2 a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease, border-bottom 0.2s ease;
  border-bottom: 1px solid transparent;
}

.blog-article h2 a:hover {
  color: #4fc3f7;
  border-bottom: 1px solid #4fc3f7;
}

/* Metadata (date, author) */
.blog-meta {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  font-style: italic;
}

/* Paragraph teaser text */
.blog-article p {
  color: #ddd;
  margin-bottom: 0.4rem;
}

/* “Read more” links */
.blog-article a {
  color: #4fc3f7;
  text-decoration: none;
  font-weight: 500;
}

.blog-article a:hover {
  text-decoration: underline;
}

/* Horizontal divider */
.blog-list hr {
  border: 0;
  border-top: 1px solid #333;
  margin: 2rem 0;
}

/* Page header styling (reuse from about.html) */
.main-header {
  text-align: center;
  padding: 3rem 1rem 1rem;
}

.main-header h1 {
  font-size: 2.2rem;
  color: #fff;
}

.main-header .subheading {
  color: #bbb;
  font-size: 1rem;
  max-width: 700px;
  margin: 0.5rem auto 2rem;
  line-height: 1.6;
}
.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.blog-post {
  color: #ddd;
  line-height: 1.7;
}

.blog-post h1, .blog-post h2 {
  color: #fff;
  margin-top: 2rem;
}

.blog-post code {
  background: #222;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: #4fc3f7;
}
/* ============================
   NEWS PAGE STYLES
   ============================ */

.main-header {
  text-align: center;
  margin: 2rem 0 3rem;
}

.main-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #e0e0e0;
  letter-spacing: 0.5px;
}

.subheading {
  font-size: 1.1rem;
  color: #aaa;
  margin-top: 0.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===== News Section ===== */
.news-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 0 1.5rem 3rem;
}

.news-article {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.news-article:hover {
  border-color: #4f46e5;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

/* ===== Titles ===== */
.news-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-title a {
  color: #c7d2fe;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.news-title a:hover {
  color: #818cf8;
  text-decoration: underline;
}

/* ===== Meta Info ===== */
.news-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.75rem;
}

.news-meta time {
  color: #bbb;
}

/* ===== Summary ===== */
.news-summary {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== Responsiveness ===== */
@media (max-width: 768px) {
  .main-header h1 {
    font-size: 1.8rem;
  }

  .subheading {
    font-size: 1rem;
  }

  .news-article {
    padding: 1.25rem;
  }

  .news-title {
    font-size: 1.15rem;
  }
}

/* ===== Dark Mode Base ===== */
body {
  background-color: #0f0f0f;
  color: #e5e5e5;
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.7;
}
