/*
Theme Name: Technopat Style Portal
Theme URI: https://github.com/burak/blogsite
Author: Burak
Author URI: https://netse.com
Description: High-fidelity technology portal theme inspired by Technopat and ShiftDelete. High performance, dark mode, and fluid typography.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: technopat-portal
Tags: news, tech, magazine, dark-mode, responsive
*/

/* Modern Container System */
:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --card: #ffffff;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 8px 30px rgba(2, 6, 23, 0.08);
  /* Container Widths */
  --container-max: 1140px;
  /* Modern Standard */
  --container-narrow: 800px;
  --container-wide: 1400px;
  /* Responsive Spacing */
  --container-gap: clamp(16px, 5vw, 24px);
  --section-gap: clamp(40px, 8vw, 80px);
  --radius-xl: 16px;
  --accent: #73bd21;
}

html.dark {
  --bg: #1a1a1a;
  --text: #f8fafc;
  --muted: rgba(248, 250, 252, 0.72);
  --card: #242424;
  --border: #333;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
  --accent: #73bd21;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 1rem;
  line-height: 1.5;
  background: radial-gradient(1200px 700px at 50% 10%, rgba(99, 102, 241, 0.12), transparent 60%),
    radial-gradient(1200px 700px at 10% 40%, rgba(14, 165, 233, 0.10), transparent 55%),
    var(--bg);
  color: var(--text);
}

.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  /* Base mobile padding */
  padding-right: 16px;
  width: 100%;
}

@media (min-width: 1024px) {
  .container {
    padding-left: 24px;
    /* Desktop padding */
    padding-right: 24px;
  }
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--full {
  max-width: 100%;
  padding: 0;
}

.section-py {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.section-mt {
  margin-top: var(--section-gap);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

html.dark .site-header {
  background: rgba(26, 26, 26, 0.75);
}

.topbar {
  background: #212121;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__inner {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
  padding-bottom: 2px;
}

.topbar__social {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-socials-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.header-link:hover {
  color: #fff;
}

.tp-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
  fill: currentColor;
}

.topbar__divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 8px;
}

.topbar__pipe {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1;
  transform: translateY(-0.5px);
}

.topbar-search {
  position: relative;
}

.topbar-search__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(260px, 70vw);
  padding: 10px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 60;
}

.topbar-search__input {
  width: 100%;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 0 10px;
  outline: none;
}

.topbar-search__input:focus {
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.icon-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.icon-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.25);
  outline-offset: 2px;
}

.icon-btn i {
  font-size: 12px;
}

.svg-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.svg-icon--md {
  width: 18px;
  height: 18px;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  /* 8px rhythm */
  padding-bottom: 16px;
}

@media (min-width: 768px) {
  .header-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    padding: 15px 0;
  }
}

.header-main__left {
  justify-self: start;
}

.brand {
  justify-self: center;
}

.header-main__right {
  justify-self: end;
}

.header-main__right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-h1 {
  margin: 0;
  line-height: 0;
}

.brand__logo {
  height: 32px;
  width: auto;
  display: block;
}

.brand__logo--dark {
  display: none;
}

html.dark .brand__logo--light {
  display: none;
}

html.dark .brand__logo--dark {
  display: block;
}

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

.nav__link {
  text-decoration: none;
  font-size: clamp(13px, 1.2vw, 14px);
  /* Fluid typography */
  color: rgba(15, 23, 42, 0.72);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  /* Touch target */
  padding: 0 8px;
  /* 8px logic */
}

html.dark .nav__link {
  color: rgba(248, 250, 252, 0.78);
}

.nav__link:hover {
  color: rgba(15, 23, 42, 0.95);
}

html.dark .nav__link:hover {
  color: #fff;
}

.nav--desktop {
  display: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dropdown {
  position: relative;
}

.dropdown__trigger {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown__chev {
  font-size: 11px;
  opacity: 0.75;
}

.dropdown__menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 10px;
  min-width: 240px;
  max-width: 320px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.14);
  padding: 6px 0;
  display: none;
  z-index: 100;
}

.dropdown__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

html.dark .dropdown__menu {
  background: #242424;
  border-color: #333;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.dropdown__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font-size: 15px;
  text-decoration: none;
  color: rgba(15, 23, 42, 0.78);
  white-space: nowrap;
}

html.dark .dropdown__item {
  color: rgba(248, 250, 252, 0.82);
}

.dropdown__item:hover {
  background: #f3f4f6;
  color: rgba(15, 23, 42, 0.95);
}

html.dark .dropdown__item:hover {
  background: #333;
  color: #fff;
}

.dropdown__item--haschild i {
  opacity: 0.75;
  font-size: 12px;
}

/* Hover/focus open */
.dropdown:hover .dropdown__menu,
.dropdown:focus-within .dropdown__menu {
  display: block;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

html.dark .menu-btn {
  background: rgba(26, 26, 26, 0.75);
}

.menu-btn:hover {
  filter: brightness(0.98);
}

.menu-btn--icon {
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 16px;
}

/* Mobile theme button (hamburger ile aynı stil) */
.theme-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-btn i {
  font-size: 16px;
}

/* Topbar sadece desktop */
.topbar--desktop {
  display: none;
}

/* Theme switch */
.theme-switch {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.theme-switch__track {
  width: 44px;
  height: 26px;
  padding: 4px;
  border-radius: 999px;
  background: #e2e8f0;
  display: inline-flex;
  align-items: center;
  transition: background 160ms ease;
}

html.dark .theme-switch__track {
  background: #1e293b;
}

.theme-switch__thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.16);
  display: grid;
  place-items: center;
  color: #334155;
  transform: translateX(0);
  transition: transform 180ms ease, background 160ms ease, color 160ms ease;
}

html.dark .theme-switch__thumb {
  transform: translateX(18px);
  background: #242424;
  color: rgba(248, 250, 252, 0.85);
}

.theme-switch__thumb i {
  font-size: 11px;
}

/* Mobile menu */
/* Mobile sidebar (off-canvas) */
.sidebar {
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.sidebar.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sidebar__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
  opacity: 0;
  transition: opacity 220ms ease;
}

.sidebar.is-open .sidebar__overlay {
  opacity: 1;
}

.sidebar__panel {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: min(86vw, 320px);
  z-index: 1;
  background-color: #fff !important;
  border-right: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 18px 0 44px rgba(2, 6, 23, 0.18);
  transform: translateX(-100%);
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: transform 240ms ease;
  will-change: transform;
}

.sidebar.is-open .sidebar__panel {
  transform: translateX(0);
}

html.dark .sidebar__panel {
  background-color: #242424 !important;
  border-right-color: #333;
  box-shadow: 18px 0 44px rgba(0, 0, 0, 0.45);
}

@media (prefers-reduced-motion: reduce) {

  .sidebar,
  .sidebar__overlay,
  .sidebar__panel {
    transition: none !important;
  }
}

.sidebar__top {
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar__search {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.10);
}

html.dark .sidebar__search {
  background: rgba(255, 255, 255, 0.06);
}

.sidebar__searchInput {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.sidebar__searchInput::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

html:not(.dark) .sidebar__searchInput::placeholder {
  color: rgba(15, 23, 42, 0.45);
}

.sidebar__searchBtn {
  border: 0;
  background: transparent;
  color: rgba(248, 250, 252, 0.85);
  cursor: pointer;
  padding: 6px 8px;
}

html:not(.dark) .sidebar__searchBtn {
  color: rgba(15, 23, 42, 0.7);
}

.sidebar__nav {
  padding: 10px 0;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  display: block;
}

.sidebar__nav--big {
  padding-top: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: rgba(248, 250, 252, 0.92) !important;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

html:not(.dark) .sidebar-link {
  color: rgba(15, 23, 42, 0.92) !important;
  font-size: 16px;
  font-weight: 800;
}

html:not(.dark) .sidebar-link:hover {
  background: rgba(2, 6, 23, 0.05);
}

.sidebar-link--arrow i {
  opacity: 0.75;
  font-size: 16px;
}

.sidebar__bottom {
  margin-top: auto;
  flex: 0 0 auto;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
}

.sidebar__social {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 2px 10px;
}

.sidebar__socialIcon {
  color: rgba(248, 250, 252, 0.86);
  text-decoration: none;
  font-size: 16px;
}

html:not(.dark) .sidebar__socialIcon {
  color: rgba(15, 23, 42, 0.8);
}

.sidebar__meta {
  font-size: 12px;
  color: rgba(248, 250, 252, 0.55);
}

html:not(.dark) .sidebar__meta {
  color: rgba(15, 23, 42, 0.55);
}

.sidebar__metaSmall {
  margin-top: 4px;
}

/* Page */
.page {
  padding: 0;
}

/* Cards / buttons */
.card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.card--p8 {
  padding: 28px;
}

.card--p6 {
  padding: 18px;
  box-shadow: none;
}

.kicker {
  font-size: 12px;
  font-weight: 800;
  color: #4f46e5;
}

.title-xl {
  margin: 16px 0 0;
  /* 8px rhythm */
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  /* Fluid header */
  letter-spacing: -0.02em;
  font-weight: 800;
}

.text-muted {
  color: var(--muted);
  line-height: 1.5;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}

html.dark .btn {
  background: rgba(26, 26, 26, 0.65);
}

.btn:hover {
  filter: brightness(0.98);
}

.btn--primary {
  background: #0f172a;
  border-color: transparent;
  color: #fff;
}

.btn--primary:hover {
  background: #111c33;
}

.grid3 {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

/* Footer */
.site-footer {
  margin-top: 46px;
  background: #212121;
  color: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer {
  padding-top: 28px;
  padding-bottom: 16px;
}

.footer__grid {
  display: grid;
  gap: 22px;
}

.footer__brand {
  max-width: 520px;
}

.footer__brandLink {
  display: inline-flex;
  text-decoration: none;
}

.footer__logo {
  height: 36px;
  width: auto;
  display: block;
}

.footer__desc {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
  /* Improved contrast */
  margin-bottom: 24px;
}

.footer__hash {
  font-family: monospace;
  font-size: 10px;
  opacity: 0.5;
  /* Improved contrast from 0.2 */
  word-break: break-all;
  line-height: 1.4;
  color: #fff;
}

.footer__title {
  font-weight: 900;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 10px;
}

.footer__title--mt {
  margin-top: 16px;
}

.footer__links {
  display: grid;
  gap: 8px;
}

.footer__links a {
  text-decoration: none;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.footer__links a:hover {
  color: #fff;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  flex-wrap: wrap;
}

.footer__socialLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
}

.footer__socialLink:hover {
  color: #fff;
}

.footer__bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.footer__bottomSmall {
  margin-top: 6px;
}

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

.footer__poweredLogo {
  height: 14px;
  width: auto;
  display: block;
  opacity: 0.95;
}

@media (min-width: 768px) {
  html {
    scrollbar-gutter: stable;
  }

  body {
    overflow-y: scroll;
  }

  .topbar--desktop {
    display: block;
  }

  .nav--desktop {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .header-main__left {
    display: none;
  }

  .header-main__right {
    display: none;
  }

  .grid3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
  }

  .footer {
    padding-top: 40px;
    padding-bottom: 20px;
  }

  /* Latest Posts Section */
  .home-latest {
    margin: var(--section-gap) 0;
  }

  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 12px;
  }

  .section-title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 800;
    margin: 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .section-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #79c720;
  }

  .section-link {
    font-size: 13px;
    font-weight: 700;
    color: #79c720;
    text-decoration: none;
    text-transform: uppercase;
  }

  .latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
  }

  .post-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
  }

  .post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
  }

  .post-card__image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  .post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .post-card:hover .post-card__image img {
    transform: scale(1.05);
  }

  .post-card__category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #79c720;
    color: #fff;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
  }

  .post-card__content {
    padding: 20px;
  }

  .post-card__title {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.4;
  }

  .post-card__title a {
    text-decoration: none;
    color: var(--text);
    transition: color 0.2s;
  }

  .post-card__title a:hover {
    color: #79c720;
  }

  .post-card__excerpt {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .post-card__meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }

  @media (min-width: 640px) {
    .latest-posts-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 1024px) {
    .latest-posts-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
}

/* End @media (min-width: 768px) */

/* =====================================================
   Modern Hero Section — top-level rules (no nesting)
   ===================================================== */

/* Mobile: no card frame, slider uses full container width */
.modern-hero {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
}

/* Desktop: wrap everything in a card panel */
@media (min-width: 1024px) {
  .modern-hero {
    background: var(--card);
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
  }
}

.modern-hero__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .modern-hero__grid {
    grid-template-columns: 3fr 2fr;
    align-items: stretch;
    /* sidebar matches slider height */
    gap: 12px;
  }
}

.modern-hero__main {
  display: flex;
  flex-direction: column;
}

.modern-hero__sidebar {
  display: none;
  /* hidden on mobile */
  flex-direction: column;
  min-height: 0;
}

@media (min-width: 1024px) {
  .modern-hero__sidebar {
    display: flex;
  }
}

/* Slider */
.hp-slider {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  width: 100%;
}

@media (min-width: 1024px) {
  .hp-slider {
    border-radius: 12px;
    box-shadow: none;
  }
}

.hp-slider__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hp-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.hp-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hp-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-slide__link {
  display: block;
  width: 100%;
  height: 100%;
}

.hp-slide__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(16px, 4vw, 32px);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  color: #fff;
}

.hp-slide__title {
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

/* Slider Controls */
.hp-slider__controls {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  padding: 14px;
  display: flex;
  gap: 6px;
}

.hp-slider__btn {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.hp-slider__btn:hover {
  background: rgba(255, 255, 255, 0.45);
}

.hp-slider__btn--prev {
  transform: rotate(180deg);
  margin-right: 8px;
}

/* Thumbnails */
.hp-thumbs {
  margin-top: 10px;
}

.hp-thumbs__row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hp-thumbs__row::-webkit-scrollbar {
  display: none;
}

.hp-thumb {
  flex: 0 0 clamp(70px, 14vw, 100px);
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s, border-color 0.3s;
  border: 2px solid transparent;
}

.hp-thumb.active {
  opacity: 1;
  border-color: var(--accent);
}

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

/* Trending Block — inherits hero panel, full-height flex */
.trending-block {
  background: transparent;
  padding: 4px 0 4px 12px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex: 1;
  /* fill sidebar height */
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.trending-block__header {
  margin-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  flex-shrink: 0;
}

.trending-block__title {
  font-size: 13px;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.trending-block__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.trending-item {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
  align-items: center;
  flex: 1;
}

.trending-item:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.trending-item:hover {
  transform: translateX(4px);
}

.trending-item__image {
  flex: 0 0 72px;
  width: 72px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
}

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

.trending-item__title {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}


/* === End of stylesheet === */

/* =====================================================
   Technology News Section
   ===================================================== */

/* Mobile: no card frame to match hero */
.news-section {
  margin-top: 16px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
}

/* Desktop: card panel like hero */
@media (min-width: 1024px) {
  .news-section {
    background: var(--card);
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
  }
}

.news-section__inner {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .news-section__inner {
    grid-template-columns: 3fr 2fr;
    align-items: start;
    gap: 12px;
  }
}

/* Section header */
.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.news-header__title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
}

.news-header__title::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.news-header__link {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.news-header__link:hover {
  opacity: 0.75;
}

/* News Cards */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-card {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.news-card:first-child {
  padding-top: 0;
}

.news-card__thumb {
  flex: 0 0 120px;
  width: 120px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  display: block;
}

@media (min-width: 640px) {
  .news-card__thumb {
    flex: 0 0 160px;
    width: 160px;
    height: 108px;
  }
}

.news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card__thumb img {
  transform: scale(1.04);
}

.news-card__body {
  flex: 1;
  min-width: 0;
}

.news-card__cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 6px;
}

.news-card__cat:hover {
  text-decoration: underline;
}

.news-card__title {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 6px;
}

.news-card__title a {
  text-decoration: none;
  color: var(--text);
}

.news-card__title a:hover {
  color: var(--accent);
}

.news-card__excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 8px;
  display: none;
}

@media (min-width: 640px) {
  .news-card__excerpt {
    display: block;
  }
}

.news-card__meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card__meta-sep {
  opacity: 0.4;
}

/* Sidebar */
.news-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .news-sidebar {
    display: block;
    position: sticky;
    top: 80px;
    padding: 0 0 0 12px;
    border-left: 1px solid var(--border);
  }
}