/* ----------------------------
   :root — Theme variables
   ---------------------------- */
:root {
  --primary: #d93025;
  --accent: #005fcc;
  --dark: #121212;
  --muted: #666666;
  --light-bg: #f9fafc;
  --card-bg: #ffffff;
  --gray: #808080;
  --glass: rgba(255,255,255,0.04);
  --radius: 16px;
  --shadow-soft: 0 4px 15px rgba(0,0,0,0.08);
  --shadow-strong: 0 8px 25px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
  --font-family: "Inter", "Poppins", system-ui, -apple-system, "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ----------------------------
   Basic reset + global base
   ---------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  font-size: 16px; /* base for rem */
}

body {
  margin: 0;
  color: #111;
  background: #dedede; /* page background; dark-mode handled separately */
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* Utility (accessible focus outline, used widely) */
:focus {
  outline: none;
}
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(217,48,37,0.15);
  outline-offset: 2px;
}

/* ----------------------------
   Fluid typography (clamp)
   ---------------------------- */
/* Main scale — adjust if you want larger/smaller overall */
h1 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 3rem); line-height: 1.12; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); line-height: 1.2; }
h3 { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); line-height: 1.25; }
h4 { font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.25rem); line-height: 1.3; }
p, li, .text { font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.05rem); }

/* ----------------------------
   Container wrapper (fluid)
   ---------------------------- */
.container-wrapper {
  max-width: min(95%, 1200px);
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================================================
   NAVBAR / HEADER
   ========================================================================== */

/* ----------------------------
   Navbar base
   ---------------------------- */
.navbar {
  width: 100%;
  padding: 10px 25px;
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-top: 2px solid var(--dark);
  border-bottom: 2px solid var(--dark);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gray), rgb(35,35,35), var(--gray));
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 10px;
}

/* ----------------------------
   Logo
   ---------------------------- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  max-height: 40px;
  display: block;
}

/* Small text under logo if needed */
.logo small {
  display: block;
  font-size: 0.85rem;
  color: #ddd;
}

/* ----------------------------
   Menu (icon circle links)
   ---------------------------- */
.menu {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* icon circle */
.menu li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--muted);
  font-size: 1.6rem;
  border-radius: 50%;
  text-decoration: none;
  background: var(--card-bg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  isolation: isolate; /* keep glow contained */
  box-shadow: 0 1px 5px rgba(0,0,0,0.04);
}

/* hover & focus */
.menu li a:hover,
.menu li a:focus {
  transform: scale(1.12);
  filter: brightness(1.12);
  background: rgba(0,0,0,0.04);
  box-shadow: 0 0 12px currentColor;
}

/* active state */
.menu li.active a {
  box-shadow: 0 0 14px currentColor;
  background: rgba(0,0,0,0.05);
  transform: scale(1.2);
}
.menu li.active a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.9;
}

/* icon inner shine */
.menu li a i {
  position: relative;
  z-index: 2;
}
.menu li a i::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -30%;
  width: 160%;
  height: 140%;
  background: linear-gradient(120deg, rgba(255,255,255,0.32), rgba(255,255,255,0));
  transform: translateX(-100%);
  transition: transform 1s ease;
  pointer-events: none;
}
.menu li a:hover i::after { transform: translateX(100%); }

/* brand-color icons (kept concise) */
.fa-instagram { color: #E1306C; }
.fa-facebook  { color: #1877F2; }
.fa-x-twitter { color: #000; }
.fa-tiktok    { color: #010101; }
.fa-threads   { color: #000; }
.fa-pinterest { color: #E60023; }
.fa-linkedin  { color: #0A66C2; }
.fa-reddit    { color: #FF4500; }
.fa-telegram  { color: #0088cc; }
.fa-vimeo     { color: #1AB7EA; }
.fa-vk        { color: #4A76A8; }
.fa-snapchat  { color: #FFFC00; }
.fa-tumblr    { color: #35465C; }
.fa-twitch    { color: #9146FF; }
.fa-soundcloud{ color: #FF5500; }
.fa-youtube   { color: #FF0000; }

/* accessible focus visible */
.menu li a:focus { box-shadow: 0 0 0 3px rgba(217,48,37,0.12); }

/* ----------------------------
   Responsive Nav behavior
   ---------------------------- */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
  }
  .menu {
    justify-content: center;
    gap: 12px;
    width: 100%;
    order: 2;
    flex-wrap: wrap;
  }
  .logo {
    order: 1;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
  }
  .menu li a {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }
}
/* ==========================================================================
   FETCHED DATA SECTION (Search results / downloader UI)
   ========================================================================== */

.fetched-data {
  background: #ffffff;
  border-radius: var(--radius, 16px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 40px 30px;
  margin: 40px auto;
  max-width: 1100px;
  color: #222;
  transition: all 0.3s ease;
}

.fetched-data:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Section headings inside fetched-data */
.fetched-data h5,
.fetched-data h4 {
  font-weight: 600;
  margin-bottom: 15px;
  color: #111;
  background: linear-gradient(135deg, #808080, rgb(35, 35, 35), #808080);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Card style for fetched items */
.fetched-data .card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fetched-data .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* Card title & text */
.fetched-data .card-title {
  font-size: 1.25rem;
  color: #111;
  font-weight: 600;
}
.fetched-data .card p {
  color: #666;
}

/* List group styling */
.fetched-data .list-group-item {
  border: none;
  border-bottom: 1px solid #eee;
  background: #fff;
  transition: background 0.2s ease;
}
.fetched-data .list-group-item:hover {
  background: #f8f9fa;
}
.fetched-data .list-group-item:last-child {
  border-bottom: none;
}

/* Buttons */
.fetched-data .btn {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}
.fetched-data .btn-outline-success {
  color: #d93025;
  border-color: #d93025;
}
.fetched-data .btn-outline-success:hover {
  background: #d93025;
  color: #fff;
}
.fetched-data .btn-outline-primary {
  border-color: #005fcc;
  color: #005fcc;
}
.fetched-data .btn-outline-primary:hover {
  background: #005fcc;
  color: #fff;
}
.fetched-data .btn-success {
  background-color: #d93025;
  border-color: #d93025;
}
.fetched-data .btn-success:hover {
  background-color: #b62d23;
  border-color: #b62d23;
}

/* Search wrapper alignment */
.fetched-data .search-wrapper {
  margin-bottom: 25px;
}

/* Spinner and alerts */
.fetched-data .spinner-border {
  color: #d93025 !important;
}
.fetched-data .alert {
  border-radius: 8px;
  font-weight: 500;
}

/* Accordion */
.fetched-data .accordion-button {
  background-color: #f9fafc;
  color: #111;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: none;
}
.fetched-data .accordion-button:not(.collapsed) {
  background: #d93025;
  color: #fff;
}
.fetched-data .accordion-body {
  background: #fff;
}

/* Responsive design */
@media (max-width: 768px) {
  .fetched-data {
    padding: 20px 15px;
    margin: 20px auto;
  }
  .fetched-data .card-title {
    font-size: 1.1rem;
  }
  .fetched-data .list-group-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .fetched-data .list-group-item .btn {
    width: 100%;
    margin-top: 8px;
  }
}

/* ==========================================================================
   Platform Icons (larger clickable icon buttons used in sections)
   ========================================================================== */

.platform-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
}

.platform-icons a {
  text-decoration: none;
  font-size: 2.4rem;
  color: var(--muted);
  transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* hover effect */
.platform-icons a:hover,
.platform-icons a:focus {
  transform: scale(1.18);
  filter: brightness(1.12);
  box-shadow: 0 0 15px currentColor, 0 0 30px rgba(0,0,0,0.12);
}

/* glossy sweep */
.platform-icons a::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.35), rgba(255,255,255,0));
  transform: skewX(-20deg);
  transition: all 0.8s ease;
  pointer-events: none;
}
.platform-icons a:hover::after { left: 150%; }

/* pulse glow */
.platform-icons a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 10%, transparent 60%);
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.6s ease;
  z-index: 1;
}
.platform-icons a:hover::before { opacity: 0.4; transform: scale(1.5); }

/* icons color variants for platform-icons (fa variants) */
.platform-icons .fa-instagram { color: #E1306C; }
.platform-icons .fa-facebook-f { color: #1877F2; }
.platform-icons .fa-x-twitter { color: #000; }
.platform-icons .fa-tiktok { color: #010101; }
.platform-icons .fa-pinterest { color: #E60023; }
.platform-icons .fa-linkedin-in { color: #0A66C2; }
.platform-icons .fa-reddit-alien { color: #FF4500; }
.platform-icons .fa-telegram-plane { color: #0088cc; }
.platform-icons .fa-vimeo-v { color: #1AB7EA; }
.platform-icons .fa-vk { color: #4A76A8; }
.platform-icons .fa-snapchat-ghost { color: #FFFC00; }
.platform-icons .fa-tumblr { color: #35465C; }
.platform-icons .fa-twitch { color: #9146FF; }
.platform-icons .fa-soundcloud { color: #FF5500; }

@media (max-width: 768px) {
  .platform-icons a { font-size: 2rem; width: 45px; height: 45px; }
}

/* ==========================================================================
   Search / Input components
   ========================================================================== */

.search-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
}

/* big primary search button */
.button-search {
  background-color: var(--primary);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.12s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.button-search:hover { background-color: #b62d23; }
.button-search:active { transform: translateY(2px); }

/* input group (rounded pill) */
.input-group {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  flex: 1;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  min-width: 220px;
}

.input-group input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  background: transparent;
}

.button-paste {
  background-color: rgb(189,189,189);
  border: none;
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-weight: 700;
  transition: background 0.2s;
}
.button-paste:hover { background-color: rgb(114,114,114); color: #fff; }

@media (max-width: 768px) {
  .search-wrapper { flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .button-search { width: 100%; padding: 0.5rem; }
  .input-group input { width: 100%; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  text-align: center;
  padding: 60px 10px;
  border-radius: var(--radius);
  margin: 20px auto 40px;
  width: 100%;
  position: relative;
  overflow: hidden;
  color: #fff;
  transition: background 0.8s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  background-size: 200% 200%;
  animation: shimmerMove 8s ease-in-out infinite alternate;
}

/* hero content */
.hero-content { position: relative; z-index: 2; padding: 10px 20px; }
.hero-content h1 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.8rem); margin-bottom: 12px; }
.hero-content p  { font-size: clamp(1rem, 0.95rem + 0.2vw, 1.15rem); opacity: 0.95; }

/* shimmer overlay for depth */
.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg,
    rgba(255,255,255,0.05) 0%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0.05) 100%);
  transform: rotate(25deg);
  animation: shimmerLight 10s linear infinite;
  z-index: 1;
}

/* subtle gradient motion */
@keyframes shimmerMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@keyframes shimmerLight {
  0% { transform: translateX(-50%) rotate(25deg); }
  100% { transform: translateX(50%) rotate(25deg); }
}

/* mobile tweaks for hero */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p  { font-size: 1rem; }
}

/* ==========================================================================
   End of Part 1
   ========================================================================== */
/* ==========================================================================
   main.css — Part 2 of 3
   Blog grid, Blog card, Single post, Post content, Tables, Pagination,
   Sidebar, Latest posts, Link descriptions, Author box
   ========================================================================== */

/* ==========================================================================
   BLOG LIST / GRID
   ========================================================================== */
.blog-list {
  margin: 50px auto;
}

/* responsive grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* blog card */
.blog-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

/* image */
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* content */
.blog-card-content {
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-card-content h3 {
  font-size: clamp(1.1rem, 1rem + 0.3vw, 1.4rem);
  margin: 0;
  color: var(--text-dark);
  transition: color 0.2s ease;
}
.blog-card-content h3 a {
  color: inherit;
  text-decoration: none;
}
.blog-card-content h3 a:hover { color: var(--primary); }

.blog-excerpt {
  font-size: clamp(0.95rem, 0.9rem + 0.1vw, 1rem);
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
  flex: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: #777;
  margin-top: 12px;
}
.blog-meta i { color: var(--primary); margin-right: 6px; }

.read-more {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  transition: color 0.2s;
}
.read-more:hover { color: var(--accent); }

/* Empty state when no posts */
.no-posts {
  text-align: center;
  color: #777;
  font-size: 1.05rem;
  margin: 60px 0;
}

/* Pagination */
.pagination-wrapper {
  text-align: center;
  margin-top: 40px;
}
.pagination-wrapper .pagination {
  display: inline-flex;
  gap: 8px;
}
.pagination-wrapper .pagination a,
.pagination-wrapper .pagination span {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 8px 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: transform 0.18s ease, background 0.18s ease;
}
.pagination-wrapper .pagination a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   SINGLE POST / ARTICLE
   ========================================================================== */
.single-post {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 10px 30px 50px 30px;
  margin: 0 auto 40px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.single-post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.post-header {
  text-align: center;
  margin-bottom: 25px;
}

.post-title {
  font-size: clamp(1.6rem, 1.4rem + 1.2vw, 2.4rem);
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 10px;
}

/* featured image */
.post-image {
  margin: 25px 0;
  text-align: center;
}
.post-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: block;
}

/* post-content — generic content styling */
.post-content {
  padding: 0 0;
  color: var(--text-light);
  line-height: 1.8;
  font-size: clamp(1rem, 0.95rem + 0.15vw, 1.08rem);
}

/* images inside content */
.post-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 20px 0;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.09);
}

/* Tables (EditorJS output) — responsive */
.post-content .editor-table-wrapper {
  overflow-x: auto;
  margin: 25px 0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
}
.post-content table th,
.post-content table td {
  padding: 12px 14px;
  border: 1px solid #e6e6e6;
  text-align: left;
  background: var(--card-bg);
}
.post-content table tr:nth-child(even) { background: #fbfbfb; }

/* Code blocks & inline code */
.post-content pre {
  background: #0d1117;
  color: #e6eef8;
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
}
.post-content code {
  background: #f3f3f3;
  color: #c7254e;
  padding: 2px 6px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
}

/* blockquote styling */
.post-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--light-bg);
  padding: 12px 20px;
  border-radius: 10px;
  font-style: italic;
  margin: 25px 0;
  color: #555;
}

/* headings inside content — spacing and style */
.post-content h2 {
  font-weight: 700;
  background: linear-gradient(135deg, var(--gray), rgb(35,35,35), var(--gray));
  color: #fff;
  border-radius: 5px;
  padding: 10px 20px;
  margin-top: 60px;
  margin-bottom: 30px;
}
.post-content h3 { padding: 0 20px; margin-top: 40px; margin-bottom: 16px; }
.post-content p  { padding: 0 0; margin-bottom: 16px; }

/* small screens adjustments for single post */
@media (max-width: 768px) {
  .post-title { font-size: 1.6rem; }
  .post-image img { max-height: 350px; }
  .single-post { padding: 12px 16px 40px; }
}

/* ==========================================================================
   SIDEBAR & LAYOUT
   ========================================================================== */

/* layout: main + sidebar using grid */
.post-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
  margin: 50px auto;
  max-width: min(95%, 1200px);
}

/* fallback / mobile: stacked */
@media (max-width: 992px) {
  .post-layout { grid-template-columns: 1fr; }
}

/* sidebar container */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* sidebar section box */
.sidebar-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 25px 20px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.sidebar-section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

/* section heading */
.sidebar-section h3 {
  color: var(--text-dark);
  font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.25rem);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  padding-bottom: 5px;
}

/* Latest posts list */
.latest-posts { display: flex; flex-direction: column; gap: 15px; }
.latest-post-item {
  display: flex;
  gap: 12px;
  text-decoration: none;
  align-items: center;
  border-radius: 12px;
  padding: 6px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.latest-post-item:hover {
  background: #fbfbfb;
  transform: translateY(-2px);
}
.latest-post-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.latest-post-info h4 {
  color: var(--text-dark);
  font-size: 0.95rem;
  margin: 0 0 4px 0;
  font-weight: 600;
}
.latest-post-info p {
  color: #777;
  font-size: 0.8rem;
  margin: 0;
}

/* useful links list in sidebar */
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { margin-bottom: 10px; }
.sidebar-links a { text-decoration: none; color: #555; font-weight: 500; transition: color 0.2s; }
.sidebar-links a:hover { color: var(--primary); }

/* link description small text */
.link-description {
  font-size: 0.85rem;
  color: #777;
  margin: 6px 0 0 0;
  line-height: 1.4;
}

/* ==========================================================================
   AUTHOR BOX
   ========================================================================== */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 25px 30px;
  margin-top: 50px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.author-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.author-avatar img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}
.author-info h4 {
  font-size: 1.1rem;
  margin: 0 0 6px 0;
  color: var(--text-dark);
}
.author-info h4 span { color: var(--primary); font-weight: 700; }
.author-info p { color: #555; font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* responsive author box */
@media (max-width: 768px) {
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  .author-avatar img { width: 80px; height: 80px; }
}

/* ==========================================================================
   End of Part 2
   ========================================================================== */
/* ==========================================================================
   main.css — Part 3 of 3
   Footer, FAQ, Dark mode, Global responsive refinements
   ========================================================================== */

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 40px 25px;
  margin-bottom: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq h2 {
  text-align: center;
  font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2rem);
  margin-bottom: 30px;
  color: var(--text-dark);
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 8px 15px;
  transition: background 0.3s ease;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s, background 0.3s;
  padding: 12px 0;
}
.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s, color 0.3s;
}
.faq-question.active {
  color: var(--text-dark);
}
.faq-question.active::after {
  content: "−";
  color: var(--text-dark);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer p {
  margin: 10px 0;
  color: #555;
  line-height: 1.6;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: linear-gradient(135deg, #808080, rgb(35, 35, 35), #808080);
  color: #ddd;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  margin-top: 60px;
  overflow: hidden;
}

/* top footer section */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding: 50px 20px;
}

/* brand area */
.footer-brand {
  flex: 1;
  min-width: 260px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.footer-logo img {
  max-height: 45px;
  border-radius: 8px;
}
.footer-logo h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  margin: 0;
}
.footer-brand p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 400px;
}

/* social icons in footer */
.footer-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-social a {
  color: #fff;
  font-size: 1.3rem;
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
}
.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* links section */
.footer-links {
  flex: 1;
  min-width: 220px;
}
.footer-links h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  padding-bottom: 5px;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin: 8px 0;
}
.footer-links a {
  text-decoration: none;
  color: #ccc;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}
.footer-links a:hover {
  color: var(--primary);
}

/* bottom copyright line */
.footer-bottom {
  background: rgba(0, 0, 0, 0.25);
  text-align: center;
  padding: 15px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: #bbb;
}

/* responsive footer */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }
  .footer-links h3 {
    margin-top: 20px;
  }
  .footer-brand p {
    max-width: 100%;
  }
  .footer-social {
    justify-content: center;
  }
}

/* ==========================================================================
   DARK MODE (optional class toggle)
   ========================================================================== */
.dark-mode {
  background-color: var(--dark);
  color: #f1f1f1;
}
.dark-mode .navbar,
.dark-mode .footer {
  background: linear-gradient(135deg, #1e1e1e, #2a2a2a, #1e1e1e);
}
.dark-mode a {
  color: #e2e2e2;
}
.dark-mode .menu li a {
  background: #2b2b2b;
  color: #eaeaea;
}
.dark-mode .menu li a:hover {
  background: rgba(255, 255, 255, 0.08);
}
.dark-mode .blog-card,
.dark-mode .sidebar-section,
.dark-mode .single-post {
  background: #1f1f1f;
  color: #e0e0e0;
}

/* ==========================================================================
   RESPONSIVE TUNING & UTILITIES
   ========================================================================== */

/* For tablets */
@media (max-width: 992px) {
  .container-wrapper {
    max-width: 95%;
    padding: 0 12px;
  }
  .blog-grid {
    gap: 20px;
  }
  .sidebar {
    margin-top: 40px;
  }
}

/* For phones */
@media (max-width: 600px) {
  body {
    font-size: 15px;
  }
  .navbar {
    margin: 10px 0;
    padding: 8px 15px;
  }
  .hero-section {
    padding: 40px 12px;
  }
  .footer-top {
    padding: 30px 15px;
  }
  .blog-card img {
    height: 160px;
  }
  .platform-icons a {
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }
}

/* Ultra-small devices */
@media (max-width: 400px) {
  html {
    font-size: 14px;
  }
  .post-title {
    font-size: 1.4rem;
  }
  .button-search {
    font-size: 0.9rem;
  }
}
/* ==========================================================================
   AUTO DARK MODE (respects user system setting)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  body {
    background-color: #272727;
    color: #eaeaea;
  }

  .navbar,
  .footer {
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a, #1e1e1e);
    border-color: #333;
  }

  /* .menu li a {
    background: #2b2b2b;
    color: #eaeaea;
  } */
  .menu li a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .blog-card,
  .sidebar-section,
  .single-post,
  .faq,
  .author-box {
    background: #1c1c1c;
    color: #eaeaea;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
  }

  .post-content blockquote {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #e9453a;
  }

  .footer-links a,
  .footer-brand p {
    color: #ccc;
  }

  .footer-bottom {
    background: rgba(255, 255, 255, 0.05);
  }

  a,
  .read-more,
  .faq-question {
    color: #ff5b4d;
  }
  a:hover,
  .faq-question:hover {
    color: #ff786d;
  }

  /*  */
  .fetched-data {
    background: #1f1f1f;
    color: #eaeaea;
    box-shadow: 0 3px 15px rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
  }

  .fetched-data h5,
  .fetched-data h4,
  .fetched-data .card-title {
    color: #fff;
    background: linear-gradient(135deg, #eee, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .fetched-data p,
  .fetched-data small,
  .fetched-data .text-muted,
  .fetched-data .alert,
  .fetched-data .list-group-item,
  .fetched-data .accordion-button {
    color: #d8d8d8 !important;
  }

  .fetched-data .card {
    background: #262626;
    border-color: #333;
  }

  .fetched-data .list-group-item {
    background: #262626;
    border-color: #333;
  }

  .fetched-data .accordion-button {
    background: #2a2a2a;
    color: #fff;
  }

  .fetched-data .accordion-button:not(.collapsed) {
    background: #d93025;
  }

  .fetched-data .btn-outline-success {
    color: #ff6f61;
    border-color: #ff6f61;
  }
  .fetched-data .btn-outline-success:hover {
    background: #ff6f61;
    color: #fff;
  }

  .fetched-data .btn-outline-primary {
    color: #5aa9ff;
    border-color: #5aa9ff;
  }
  .fetched-data .btn-outline-primary:hover {
    background: #5aa9ff;
    color: #000;
  }

  .fetched-data .btn-success {
    background-color: #ff6f61;
    border-color: #ff6f61;
  }

  .fetched-data .btn-success:hover {
    background-color: #ff4c3b;
    border-color: #ff4c3b;
  }

}

/* ==========================================================================
   PERFORMANCE & MAINTENANCE NOTES
   ========================================================================== */

/*
✅ Tip 1: Use Laravel mix / vite versioning to avoid CSS cache issues:
   <link rel="stylesheet" href="{{ mix('assets/css/main.css') }}">
   or
   <link rel="stylesheet" href="{{ asset('assets/css/main.css?v=' . time()) }}">

✅ Tip 2: For production, minify this CSS (you can use "npm run prod" or any online minifier).

✅ Tip 3: Keep your design scalable:
   - Use `clamp()` for all major font sizes.
   - Use `max-width: min(95%, 1200px)` for fluid layouts.
   - Use CSS variables (at top) for consistent theme color changes.

✅ Tip 4: Add prefers-color-scheme dark/light detection if you want auto dark mode:
   @media (prefers-color-scheme: dark) { ... }

✅ Tip 5: Test in Chrome, Firefox, Safari, and mobile viewports.
*/

/* ==========================================================================
   END OF FILE
   ========================================================================== */
