/* =====================================================
   FONTS
===================================================== */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
}

/* =====================================================
   ROOT VARIABLES
===================================================== */
:root {
  --primary: #FF9A86;
  --primary-dark: color-mix(in srgb, var(--primary), black 20%);
  --primary-light: color-mix(in srgb, var(--primary), white 30%);

  --bg-main: #ffffff;
  --bg-dark: #000000;

  --text-main: #222;
  --text-muted: #666;
  --text-light: #aaa;
  --text-white: #fff;

  --border-light: #eee;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
}


/* =====================================================
   GLOBAL RESET
===================================================== */
* {
  box-sizing: border-box;
  transition: all 0.2s ease;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  letter-spacing: -0.2px;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* =====================================================
   DARK MODE
===================================================== */
body.dark-mode {
  --bg-main: #0e0e0e;
  --bg-dark: #000000;

  --text-main: #e4e4e4;
  --text-muted: #b0b0b0;
  --text-light: #777;
  --text-white: #ffffff;

  --border-light: #2a2a2a;

  --shadow-soft: 0 10px 30px rgba(0,0,0,0.6);
}



/* =========================
   THEME SWITCH
========================= */

.theme-switch {
  position: relative;
  width: 50px;
  height: 20px;

  display: inline-block;
}

/* HIDE INPUT */
.theme-switch input {
  display: none;
}

/* TRACK */
.slider {
  position: absolute;
  inset: 0;

  border-radius: 999px;

  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border-light);

  backdrop-filter: blur(10px);

  cursor: pointer;
  transition: all 0.3s ease;
}

/* KNOB */
.slider::before {
  content: "";

  position: absolute;
  left: 3px;
  top: 50%;

  width: 16px;
  height: 16px;

  border-radius: 50%;

  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);

  transform: translateY(-50%);
  transition: all 0.35s ease;
}

/* ICON */
.slider::after {
  content: "";

  position: absolute;
  left: 4px;
  top: 50%;

  width: 14px;
  height: 14px;

  transform: translateY(-50%);

  background: url("../icons/moon.svg") no-repeat center;
  background-size: contain;

  transition: all 0.35s ease;
}

/* ACTIVE DARK MODE */
.theme-switch input:checked + .slider {
  background: rgba(0,0,0,0.6);
  border-color: rgba(255,255,255,0.15);
}

/* MOVE KNOB */
.theme-switch input:checked + .slider::before {
  transform: translate(28px, -50%);
}

/* CHANGE ICON */
.theme-switch input:checked + .slider::after {
  transform: translate(28px, -50%);
  background: url("../icons/sun.svg") no-repeat center;
  background-size: contain;
}

/* =========================
   TOOLTIP
========================= */

.theme-switch::after {
  content: attr(data-tooltip);

  position: absolute;
  left: 50%;
  bottom: 130%;

  transform: translateX(-50%);

  background: var(--bg-card);
  color: var(--text-main);

  padding: 6px 10px;
  border-radius: 8px;

  font-size: 12px;
  white-space: nowrap;

  box-shadow: 0 6px 16px rgba(0,0,0,0.08);

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.2s ease;
}

.theme-switch:hover::after {
  opacity: 1;
}

/* =====================================================
   PRELOADER
===================================================== */

#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.loader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-light);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader-box p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--primary);
  letter-spacing: 1px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =====================================================
   ICON
===================================================== */

.icon-svg {
  width: 20px;
  height: 20px;
  vertical-align: left;
}
/* variations */
.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-md {
  width: 24px;
  height: 24px;
}

.icon-lg {
  width: 32px;
  height: 32px;
}

.icon-xlg {
  width: 45px;
  height: 45px;
}

.icon-svg:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* =====================================================
   LOGIN - THEME SYSTEM
===================================================== */

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg-main);
}

/* CARD */
.login-card {
  width: 980px;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--bg-main);
}

/* IMAGE */
.login-image {
  position: relative;
  min-height: 100%;
}

.login-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

}

/* overlay */
.login-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.55)
  );
}

/* IMAGE TEXT */
.login-image-text {
  position: absolute;
  bottom: 35px;
  left: 35px;
  color: var(--text-white);
  z-index: 2;
}

.login-image-text h3 {
  margin: 0;
  font-size: 24px;
}

.login-image-text p {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: 0.85;
}

/* FORM */
.login-form {
  padding: 55px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form h2 {
  margin: 0;
  font-size: 30px;
  color: var(--text-main);
}

.login-form p {
  margin: 8px 0 25px;
  color: var(--text-muted);
  font-size: 14px;
}

/* INPUT */
.login-form input {
  width: 100%;
  padding: 13px 15px;
  margin-bottom: 14px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: #fafafa;
  font-size: 14px;
  transition: all 0.25s ease;
  color: var(--text-main);
}

/* INPUT FOCUS */
.login-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-main);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary), transparent 85%);
}

/* PASSWORD FIELD */
.input-group {
  position: relative;
}

.input-group button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: 0.2s;
}

.input-group button:hover {
  color: var(--primary);
}

/* OPTIONS */
.form-options {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 15px;
}

.form-options a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: 0.2s ease;
}

/* underline hover (same as nav style) */
.form-options a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: 0.3s ease;
}

.form-options a:hover {
  color: var(--primary);
}

.form-options a:hover::after {
  width: 100%;
}


/* =========================
   HEADER
========================= */
.header {
  position: sticky;
  top: 0;
  padding: 18px 0;

  background: var(--bg-main);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo img {
  height: 65px;
  width: auto;
  display: block;
}

.logo img:hover {
  opacity: 0.8;
}

/* =========================
   NAV
========================= */

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

/* ALL NAV LINKS */
.nav a {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 12px;
  margin: 0 6px;

  text-decoration: none;
  color: var(--text-main);
  font-size: 0.95rem;

  position: relative;
  border-radius: 10px;
  transition: 0.2s ease;
}

/* HOVER */
.nav a:hover {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary), transparent 90%);
}

/* UNDERLINE */
.nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 5px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: calc(100% - 20px);
}

/* ACTIVE */
.nav a.active {
  color: var(--primary);
}

.nav a.active::after {
  width: calc(100% - 20px);
}

/* =========================
   MOBILE NAV
========================= */

.menu-toggle {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;

    background: var(--bg-main);
    padding: 20px;
    border-radius: 12px;

    box-shadow: var(--shadow-soft);

    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav.active {
    display: flex;
  }

  .nav a,
  .user-link {
    width: 100%;
    height: auto;
    padding: 10px 12px;
  }
}

/* =========================
   USER MENU
========================= */

.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* MAIN BUTTON */
.user-link {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s ease;
  color: var(--text-main);
  text-decoration: none;
}

/* HOVER */
.user-link:hover {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary), transparent 90%);
}

/* ICON + TEXT + ARROW */
.user-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ARROW */
.arrow {
  font-size: 12px;
  opacity: 0.7;
}


/* =========================
   DROPDOWN
========================= */

.dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--bg-main);
  min-width: 180px;

  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);

  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
}

.dropdown a {
  padding: 12px 15px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 14px;
  transition: 0.2s;
}

.dropdown a:hover {
  background: #f9f9f9;
  color: var(--primary);
}

.dropdown.show {
  display: flex;
}

  /* =========================
   COMING SOON OVERLAY
========================= */

/* =========================
   BLUR ONLY CONTENT
========================= */

/* blur background content */
.page-content {
  filter: blur(9px);
  pointer-events: none; /* disable clicks */
  user-select: none;
}

/* =========================
   OVERLAY (CENTER BOX)
========================= */
.coming-overlay {
  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;

  /* subtle dark layer */
  background: rgba(0,0,0,0.25);
}

/* box */
.coming-box {
  max-width: 420px;
  width: 90%;
  padding: 40px;
  border-radius: 20px;

  text-align: center;

  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);

  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

/* dark mode */
body.dark-mode .coming-box {
  background: rgba(20,20,20,0.9);
  color: #fff;
}

/* badge */
.coming-badge {
  display: inline-block;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;

  background: var(--primary);
  color: #fff;

  margin-bottom: 15px;
}

/* text */
.coming-box p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* countdown number */
.countdown {
  font-size: 28px;
  font-weight: 700;
  margin-top: 10px;
  color: var(--primary);
}




/* =========================
   GLOBAL BUTTON
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 8px 15px;
  border-radius: 20px;

  font-size: 12px;
  font-weight: 500;
  text-decoration: none;

  cursor: pointer;
  border: 1px solid var(--primary);

  color: var(--text-white);
  background: var(--primary);

  transition: 0.2s ease;
}

/* hover */
.btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* click */
.btn:active {
  transform: scale(0.98);
}

/* disabled */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================
   PAGE HERO GLOBAL
========================= */


.page-hero {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 80px 0;
  text-align: center;
}

.page-hero .meta {
  color: var(--primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.page-hero h1 {
  font-size: 42px;
  margin: 10px 0;
}

.page-hero p {
  opacity: 0.7;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  opacity: 0;
  animation: slideIn 0.8s ease forwards;
}

/* delay for smooth stagger effect */
.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}


/* =========================
   DASHBOARD / INDEX   HERO
========================= */
  /* HERO */
.dash-hero {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 80px 0;
  text-align: center;
}

.dash-hero-inner {
  max-width: 900px;
  margin: auto;
}

.dash-text h1 {
  font-size: 42px;
  margin: 10px 0;
  animation: slideInLeft 0.8s ease forwards;
}

.dash-text p {
  opacity: 0.9;
  animation: slideInRight 0.9s ease forwards;
}

.inline-flex {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.card.full {
  grid-column: 1 / -1;
}

/* ANIMATION */
@keyframes slideInLeft {
  from {
    transform: translateX(-80px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(80px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* SECTION HEADER */
.section-head {
  margin-bottom: 15px;
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
}

.section-head p {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* TABLE WRAPPER */
.table-wrap {
  overflow-x: auto;
}

/* MAIN DASHBOARD GRID */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
  align-items: start;
}

/* RIGHT SIDE STACK */
.dashboard-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* TABLE */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 14px;
}

.table thead {
  background: #fafafa;
}

.table th {
  text-align: left;
  padding: 12px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-light);
}

/* ROW HOVER */
.table tbody tr:hover {
  background: #f9f9f9;
}

/* PRODUCT NAME */
.product-name {
  font-weight: 500;
  color: var(--text-main);
}

/* BADGE */
.badge.success {
  background: #e8fff1;
  color: #1a9c4b;
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.empty-state p {
  margin-bottom: 15px;
}

/* =========================
   INDEX   HERO
========================= */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 80px 0;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.hero p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* =========================
   GRID
========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.grid a {
  text-decoration: none;
  color: inherit;
}

.grid a:hover .card {
  transform: translateY(-8px);
}

.grid a:hover h3 {
  color: var(--primary);
}

/* =========================
   CARD
========================= */

.card:hover {
  transform: translateY(-8px);
}

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

.card-body {
  padding: 15px;
}

/* =========================
   CTA
========================= */
.cta {
  background: var(--bg-dark);
  color: var(--text-white);
  text-align: center;
  padding: 60px;
  border-radius: 20px;
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:900px){
  .hero {
    grid-template-columns: 1fr;
  }

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

  .features {
    grid-template-columns: 1fr;
  }
}


/* =========================
   SHOP / PRODUCTS PAGE
========================= */

/* GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* CARD */
.product-card {
  background: var(--bg-main);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* IMAGE */
.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* CONTENT */
.product-content {
  padding: 18px;
}

.product-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #222;
}

.product-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* RESPONSIVE */
@media(max-width:900px){
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   PRODUCT PAGE
========================= */
.product-page {
  padding: 80px 0;
}

/* HERO */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.product-hero img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.product-hero img:hover {
  transform: scale(1.02);
}

/* INFO */
.product-info h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.product-info p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* PRICE */
.price {
  font-size: 30px;
  color: var(--primary);
  margin: 20px 0;
  font-weight: bold;
}

/* =========================
   GALLERY
========================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 60px;
}

.gallery img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

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

/* =========================
   FEATURES
========================= */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.feature {
  background: var(--bg-main);
  padding: 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:900px){
  .product-hero {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }
}


/* =========================
   DOWNLOAD
========================= */
.download-page {
  max-width: 700px;
  margin: 80px auto;
  padding: 40px;
  text-align: center;
  background: var(--bg-main);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  font-family: Arial, sans-serif;
}

.download-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.download-desc {
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.6;
}

.download-box {
  padding: 30px;
  border: 2px dashed var(--primary);
  border-radius: 15px;
  margin-bottom: 25px;
}

.small-text {
  font-size: 12px;
  color: #888;
  margin-top: 15px;
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}


/* =========================
   ARTICLES
========================= */

.blog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.blog-search {
  position: relative;
}

.blog-search input {
  padding: 12px 16px 12px 42px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  width: 280px;
  font-size: 14px;
  color: var(--text-main);

  background: var(--bg-main);
  box-shadow: var(--shadow-soft);

  transition: all 0.25s ease;
}

/* subtle icon (pure CSS) */
.blog-search::before {
  content: "🔍";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.6;
}

/* focus state */
.blog-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--primary), transparent 80%),
    0 8px 20px rgba(0,0,0,0.05);
}
/* category */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  justify-content: center;
}

.category-pills a {
  display: inline-block;
  margin: 5px;
  padding: 7px 16px;
  border-radius: 14px;
  font-size: 14px;
  border: 1px solid var(--border-light);

  background: var(--bg-main);
  color: var(--text-main);
  text-decoration: none;

  box-shadow: var(--shadow-soft);
  transition: 0.25s;
}

/* hover + active same as pagination */
.category-pills a:hover,
.category-pills a.active {
  background: var(--primary);
  color: var(--text-white);
}

/* =========================
   FEATURED POST
========================= */
.featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  margin-bottom: 60px;
  background: var(--bg-main);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.featured-image {
  position: relative;
}

.featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  height: 40%;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.featured-content {
  padding: 40px;
}

.meta {
  font-size: 11px;
  color: var(--primary);
  text-transform: uppercase;
}

.featured-content h2 {
  margin: 15px 0;
}

.featured-content p {
  color: var(--text-muted);
}

.featured-content a {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: 0.3s;
}

.featured-content a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
}

.featured-content a:hover {
  color: var(--primary-dark);
}

.featured-content a:hover::after {
  width: 100%;
}

/* =========================
   GRID
========================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* =========================
   CARD (REUSE SYSTEM)
========================= */
.card {
  background: var(--bg-main);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
}

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

.card-content {
  padding: 20px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* =========================
   PAGINATION
========================= */
.pagination {
  margin-top: 50px;
  text-align: center;
}

.pagination a {
  display: inline-block;
  margin: 5px;
  padding: 7px 16px;
  border-radius: 10px;
  background: var(--bg-main);
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
  transition: 0.25s;
}

.pagination a.active,
.pagination a:hover {
  background: var(--primary);
  color: var(--text-white);
}

/* =========================
   MOBILE
========================= */
@media(max-width:900px){
  .featured {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================
   ARTICLE PAGE
========================= */

.article-wrapper {
  padding: 70px 0;
}

.article-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 40px;
}

/* =========================
   ARTICLE CARD
========================= */
.article {
  background: var(--bg-main);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

/* =========================
   TEXT
========================= */
.category {
  font-size: 12px;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

/* FIXED SIZE */
.article h1 {
  font-size: 42px;
  margin: 15px 0;
  color: var(--text-main);
}

.meta-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

/* =========================
   IMAGE
========================= */
.article-image {
  width: 100%;
  border-radius: 16px;
  margin: 20px 0;
}

/* =========================
   CONTENT
========================= */
.article-content {
  font-family: Inter, serif;
  font-size: 20px;
  line-height: 1.9;

  /* IMPORTANT */
  color: inherit;
  background: transparent;

  max-height: 450px;
  overflow: hidden;
  position: relative;

  transition: max-height 0.4s ease;
}

/* spacing */
.article-content p {
  margin-bottom: 18px;
}

/* fade effect */
.article-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;

  background: linear-gradient(
    to bottom,
    transparent,
    var(--bg-main)
  );
}

/* expanded */
.article-content.expanded {
  max-height: 5000px;
}

.article-content.expanded::after {
  display: none;
}

/* =========================
   FIX DB CONTENT (SMART)
========================= */

/* remove bad backgrounds */
.article-content * {
  background: none !important;
  background-color: transparent !important;
}

/* inherit theme text */
.article-content,
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: inherit;
}

/* links */
.article-content a {
  color: var(--primary);
}

/* images */
.article-content img {
  max-width: 100%;
  height: auto;
  background: transparent !important;
}

/* tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
}

.article-content td,
.article-content th {
  border: 1px solid var(--border-light);
}

/* =========================
   DARK MODE READABILITY BOOST
========================= */

/* brighter base text */
body.dark-mode .article-content {
  color: #f5f5f5;
}

/* headings more contrast */
body.dark-mode .article-content h1,
body.dark-mode .article-content h2,
body.dark-mode .article-content h3 {
  color: #ffffff;
}

/* secondary text */
body.dark-mode .article-content p,
body.dark-mode .article-content li,
body.dark-mode .article-content span {
  color: #e8e8e8;
}

/* subtle premium glow */
body.dark-mode .article-content {
  text-shadow: 0 0 1px rgba(255,255,255,0.05);
}

/* =========================
   FIX BAD INLINE COLORS
========================= */

/* black → bad in dark */
body.dark-mode .article-content [style*="color: black"],
body.dark-mode .article-content [style*="color:#000"] {
  color: var(--text-main) !important;
}

/* white → bad in light */
body:not(.dark-mode) .article-content [style*="color: white"],
body:not(.dark-mode) .article-content [style*="color:#fff"] {
  color: var(--text-main) !important;
}

/* =========================
   AUTHOR
========================= */
.author-box {
  display: flex;
  gap: 15px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.author-box img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.author-box p {
  color: var(--text-muted);
  font-size: 14px;
}


/* SIDEBAR */
.sidebar {
  position: sticky;
  top: 20px;
}

.box {
  background: var(--bg-main);
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}




.blog-search {
  position: relative;
}

.blog-search input {
  padding: 12px 16px 12px 42px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  width: 280px;
  font-size: 14px;
  color: var(--text-main);

  background: var(--bg-main);
  box-shadow: var(--shadow-soft);

  transition: all 0.25s ease;
}

/* subtle icon (pure CSS) */
.blog-search::before {
  content: "🔍";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.6;
}

/* focus state */
.blog-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--primary), transparent 80%),
    0 8px 20px rgba(0,0,0,0.05);
}


/* =========================
   INPUTS (LIGHT + DARK MODE)
========================= */

/* LIGHT MODE (default) */
.search-box,
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  margin-top: 10px;

  color: var(--text-main);

  background: var(--bg-main);
  box-shadow: var(--shadow-soft);

  transition: all 0.25s ease;
}


/* PLACEHOLDER */
.search-box::placeholder,
.comment-form input::placeholder,
.comment-form textarea::placeholder {
  color: var(--text-light);
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical; /* user can drag to resize */
}

/* FOCUS */
.search-box:focus,
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--primary), transparent 80%),
    0 8px 20px rgba(0,0,0,0.05);
}

/* BUTTON */
.comment-form button {
  margin-top: 15px;
}


/* POPULAR POSTS */
.popular-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  align-items: center;
}

.popular-item img {
  width: 65px;
  height: 65px;
  border-radius: 12px;
}

.popular-item a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.popular-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
}

.popular-item a:hover::after {
  width: 100%;
}

/* SUBSCRIBE */
.subscribe-box {
  padding: 25px;
  border-radius: 16px;
}

.subscribe-box h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.sub-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.subscribe-form {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.subscribe-form input {
  background: var(--bg-main);
  box-shadow: var(--shadow-soft);
  color: var(--text-main);
  flex: 1;
  padding: 10px 12px;
  border: none;
  outline: none;
  transition: 0.2s;
}

.subscribe-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 0px var(--primary-light);
}

.subscribe-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.subscribe-form button {
  padding: 0 16px;
  background: var(--primary);
  color: var(--text-white);
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.subscribe-form button:hover {
  background: var(--primary-dark);
}

/* =========================
   RELATED SIDE BY SIDE
========================= */

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

/* CARD */
.related-item {
  display: flex;
  gap: 14px;
  text-decoration: none;
  background: var(--bg-main);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
  transition: 0.3s;
}

/* hover */
.related-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* IMAGE */
.related-thumb {
  flex: 0 0 110px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CONTENT */
.related-info {
  flex: 1;
}

/* badge */
.related-info .badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--text-white);
  display: inline-block;
  margin-bottom: 5px;
}

/* title */
.related-info h4 {
  font-size: 14px;
  margin: 0 0 5px;
  color: var(--text-main);
}

.related-info .meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-light);
  align-items: center;
}

/* optional: dot spacing refinement */
.related-info .meta span {
  display: flex;
  align-items: center;
}

@media(max-width: 768px){
  .related-grid {
    grid-template-columns: 1fr;
  }
}

  /* =========================
   AD CARD (SIDEBAR)
========================= */
.ad-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-main);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: 0.3s;
}

.ad-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.ad-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.ad-card-content {
  padding: 15px;
}

.ad-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
  display: block;
}

.ad-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--text-main);
}

.ad-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.ad-slide {
  transition: opacity 0.4s ease;
}


/* =========================
   PREMIUM SHARE BUTTONS
========================= */

.share-box {
  margin-top: 25px;
}

.share-box span {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}

/* container */
.share-buttons {
  display: flex;
  gap: 10px;
}

/* button */
.share-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border-light);

  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);

  cursor: pointer;
  transition: all 0.25s ease;
}

/* dark mode glass */
body.dark-mode .share-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid #2a2a2a;
}

/* icon */
.share-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--text-main);
}

/* hover */
.share-btn:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--primary);
  border-color: var(--primary);
}

/* hover icon */
.share-btn:hover svg {
  fill: #fff;
}


/* =========================
   COMMENTS
========================= */
.comments {
  margin-top: 40px;
  background: var(--bg-main);
  padding: 25px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

/* PROGRESS BAR */
#progress {
  position: fixed;
  top: 90px;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(255, 0, 135, 0.3);
  z-index: 9999;
  transition: width 0.2s ease;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

  /* =========================
   CONTACT PAGE
========================= */

/* LAYOUT */
.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  padding: 60px 0;
}

/* FORM CARD */
.contact-card {
  background: var(--bg-main);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-card h2 {
  margin-bottom: 20px;
}

/* FORM */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
    color: var(--text-main);

  background: var(--bg-main);
  box-shadow: var(--shadow-soft);

  transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}


/* INFO BOXES */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-box {
  background: var(--bg-main);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}

.info-box h3 {
  margin-bottom: 6px;
  font-size: 14px;
}

.info-box p {
  font-size: 13px;
  color: #666;
}

/* RESPONSIVE */
@media(max-width:900px){
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* =========================
   ALERT SYSTEM
========================= */

.alert-box {
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.5;
}

/* WARNING */
.alert-warning {
  background: #fff3cd;
  color: #664d03;
  border: 1px solid #ffe69c;
}

/* SUCCESS */
.alert-success {
  background: #e8fff1;
  color: #1a9c4b;
  border: 1px solid #b7f5cc;
}

/* ERROR */
.alert-danger {
  background: #ffe5e5;
  color: #a30000;
  border: 1px solid #ffb3b3;
}

/* INFO */
.alert-info {
  background: #e7f1ff;
  color: #084298;
  border: 1px solid #b6d4fe;
}

  /* =========================
   ABOUT PAGE
========================= */

.about-content {
  padding: 70px 0;
}

/* GRID */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 60px;
}

/* BOX */
.about-box {
  background: var(--bg-main);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.about-box:hover {
  transform: translateY(-5px);
}

.about-box h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.about-box p {
  color: #666;
  line-height: 1.6;
  font-size: 14px;
}

/* STATS */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat {
  background: var(--bg-main);
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.04);
}

.stat h3 {
  font-size: 28px;
  color: var(--primary);
}

.stat p {
  font-size: 13px;
  color: var(--text-light);
}

/* RESPONSIVE */
@media(max-width:900px){
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
}


/* =========================
   FOOTER BASE
========================= */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  margin-top: 100px;
}

/* =========================
   GRID SECTION
========================= */
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding: 70px 20px;
}

/* =========================
   BRAND
========================= */
.footer-col.brand h3 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 18px;
}

.footer-col.brand p {
  max-width: 280px;
  line-height: 1.6;
  color: var(--text-light);
}

/* =========================
   HEADINGS
========================= */
.footer-col h4 {
  margin-bottom: 15px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
}

/* =========================
   LINKS
========================= */
.footer-col a {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-light);
  text-decoration: none;
  position: relative;
  transition: 0.2s ease;
}

/* underline hover */
.footer-col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: 0.3s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-col a:hover::after {
  width: 100%;
}

/* =========================
   BOTTOM BAR
========================= */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;

  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: var(--text-light);
}

/* =========================
   PAYMENT LINE
========================= */

.payment-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
}

/* =========================
   HOVER EFFECT (PAYMENT ICON)
========================= */
.payment-line img {
  transition: 0.2s ease;
}

.payment-line:hover img {
  transform: scale(1.08);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .footer-col.brand p {
    margin: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}