/* ==========================================================================
   NEWSERS - News/Magazine Blog Theme Stylesheet
   Version: 1.0.0
   ========================================================================== */

/* ===== FONT FACES ===== */

/* Open Sans - 400 - Latin Extended */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('open-sans-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Open Sans - 400 - Latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('open-sans-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Open Sans - 600 - Latin Extended */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('open-sans-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Open Sans - 600 - Latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('open-sans-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Raleway - 100 - Latin Extended */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url('raleway-latin-ext-100.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Raleway - 100 - Latin */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url('raleway-latin-100.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Raleway - 600 - Latin Extended */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('raleway-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Raleway - 600 - Latin */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('raleway-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Raleway - 800 - Latin Extended */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('raleway-latin-ext-800.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Raleway - 800 - Latin */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('raleway-latin-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ===== CSS VARIABLES ===== */

:root {
  --primary: #1A7DFF;
  --primary-rgb: 26, 125, 255;
  --secondary: #1a1a1a;
  --accent: #1A7DFF;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a1a;
  --text: #212529;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
  --white: #fff;
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --container-width: 1200px;
  --radius: 10px;
  --radius-sm: 5px;
  --radius-pill: 50px;
  --transition: 0.5s;
}


/* ===== RESET & BASE ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--secondary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.5rem;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
}


/* ===== LAYOUT ===== */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.row.g-4 {
  gap: 1.5rem;
  margin: 0;
}

[class*="col-"] {
  padding: 0 12px;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.col-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
}

.col-5 {
  flex: 0 0 41.666%;
  max-width: 41.666%;
}

.col-7 {
  flex: 0 0 58.333%;
  max-width: 58.333%;
}

.col-8 {
  flex: 0 0 66.666%;
  max-width: 66.666%;
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-5 {
    flex: 0 0 41.666%;
    max-width: 41.666%;
  }

  .col-lg-7 {
    flex: 0 0 58.333%;
    max-width: 58.333%;
  }
}

@media (min-width: 1200px) {
  .col-xl-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .col-xl-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }

  .col-xl-8 {
    flex: 0 0 66.666%;
    max-width: 66.666%;
  }
}


/* ===== UTILITIES ===== */

.d-flex {
  display: flex;
}

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-inline-block {
  display: inline-block;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-grow-1 {
  flex-grow: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-end {
  justify-content: flex-end;
}

.align-items-center {
  align-items: center;
}

.align-items-start {
  align-items: flex-start;
}

.align-items-end {
  align-items: flex-end;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 1rem;
}

.gap-4 {
  gap: 1.5rem;
}

.text-primary {
  color: var(--primary);
}

.text-white {
  color: var(--white);
}

.text-dark {
  color: var(--secondary);
}

.text-muted,
.text-body {
  color: var(--text-muted);
}

.text-uppercase {
  text-transform: uppercase;
  font-size: 14px;
}

.text-center {
  text-align: center;
}

.text-start {
  text-align: left;
}

.text-end {
  text-align: right;
}

.bg-light {
  background: var(--bg-light);
}

.bg-dark {
  background: var(--bg-dark);
}

.bg-primary {
  background: var(--primary);
}

.bg-white {
  background: var(--white);
}

.rounded {
  border-radius: var(--radius);
}

.rounded-circle {
  border-radius: 50%;
}

.rounded-pill {
  border-radius: var(--radius-pill);
}

.overflow-hidden {
  overflow: hidden;
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.position-sticky {
  position: sticky;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.border {
  border: 1px solid var(--border-color);
}

.border-bottom {
  border-bottom: 1px solid var(--border-color);
}

.border-top {
  border-top: 1px solid var(--border-color);
}

.border-primary {
  border-color: var(--primary) !important;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Spacing: margin-bottom */
.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

/* Spacing: margin-top */
.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

/* Spacing: margin-right */
.me-1 {
  margin-right: 0.25rem;
}

.me-2 {
  margin-right: 0.5rem;
}

.me-3 {
  margin-right: 1rem;
}

.me-4 {
  margin-right: 1.5rem;
}

/* Spacing: margin-left */
.ms-1 {
  margin-left: 0.25rem;
}

.ms-2 {
  margin-left: 0.5rem;
}

.ms-3 {
  margin-left: 1rem;
}

.ms-auto {
  margin-left: auto;
}

/* Spacing: padding-y */
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Spacing: padding-x */
.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-4 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-5 {
  padding-left: 3rem;
  padding-right: 3rem;
}

/* Spacing: padding all */
.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 1rem;
}

.p-4 {
  padding: 1.5rem;
}

.p-5 {
  padding: 3rem;
}

/* Spacing: padding individual */
.pb-1 {
  padding-bottom: 0.25rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pb-3 {
  padding-bottom: 1rem;
}

.pb-4 {
  padding-bottom: 1.5rem;
}

.pt-1 {
  padding-top: 0.25rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pt-3 {
  padding-top: 1rem;
}

.pt-4 {
  padding-top: 1.5rem;
}

.pe-1 {
  padding-right: 0.25rem;
}

.pe-2 {
  padding-right: 0.5rem;
}

.pe-3 {
  padding-right: 1rem;
}

.ps-1 {
  padding-left: 0.25rem;
}

.ps-2 {
  padding-left: 0.5rem;
}

.ps-3 {
  padding-left: 1rem;
}

.ps-4 {
  padding-left: 1.5rem;
}

/* Font sizes */
.fs-1 {
  font-size: 2.5rem;
}

.fs-2 {
  font-size: 2rem;
}

.fs-3 {
  font-size: 1.75rem;
}

.fs-4 {
  font-size: 1.5rem;
}

.fs-5 {
  font-size: 1.25rem;
}

.fs-6 {
  font-size: 1rem;
}

/* Font weights */
.fw-light {
  font-weight: 300;
}

.fw-normal {
  font-weight: 400;
}

.fw-semibold {
  font-weight: 600;
}

.fw-bold {
  font-weight: 700;
}

.fw-thin {
  font-weight: 100;
}

/* Line height */
.lh-1 {
  line-height: 1;
}

.lh-sm {
  line-height: 1.25;
}

.lh-base {
  line-height: 1.5;
}

.lh-lg {
  line-height: 2;
}

/* Small text */
.small,
small {
  font-size: 0.875rem;
}


/* ===== HOVER EFFECTS ===== */

.img-zoomin {
  transition: transform var(--transition);
}

.img-zoomin:hover {
  transform: scale(1.1);
}

.link-hover {
  transition: color var(--transition);
}

.link-hover:hover {
  color: var(--primary) !important;
}


/* ===== BUTTON STYLES ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  font-size: 1rem;
  text-decoration: none;
  line-height: 1.5;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: #0d6efd;
  color: var(--white);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background: #333;
  color: var(--white);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-light {
  background: var(--bg-light);
  color: var(--secondary);
  border: none;
}

.btn-light:hover {
  background: var(--border-color);
}

.btn-sm {
  padding: 0.35rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
}

.btn-sm-square {
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

.btn-md-square {
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

.btn-lg-square {
  width: 54px;
  height: 54px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}


/* ===== TOPBAR ===== */

.topbar {
  background: var(--bg-dark);
  padding: 10px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.topbar .top-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar .trending-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.topbar .trending-badge svg {
  width: 14px;
  height: 14px;
  fill: var(--white);
}

.topbar .trending-label {
  color: var(--white);
  font-size: 15px;
  font-weight: 400;
  padding-right: 0.75rem;
  margin-right: 0.75rem;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.topbar .trending-ticker {
  overflow: hidden;
  width: 500px;
  position: relative;
  height: 30px;
}

.topbar .trending-ticker-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: absolute;
  white-space: nowrap;
  animation: tickerSlide 15s linear infinite;
}

.topbar .trending-ticker-inner img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
  flex-shrink: 0;
}

.topbar .trending-ticker-inner a {
  color: var(--white);
  font-size: 14px;
}

.topbar .trending-ticker-inner a:hover {
  color: var(--primary);
}

@keyframes tickerSlide {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.topbar .top-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar .top-date {
  color: var(--white);
  font-size: 14px;
  padding-right: 0.75rem;
  margin-right: 0.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.topbar .top-date span {
  color: var(--text-muted);
}

.topbar .social-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar .social-icons span {
  color: var(--white);
  font-size: 14px;
  margin-right: 0.25rem;
}

.topbar .social-icons a {
  color: var(--text-muted);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
}

.topbar .social-icons a:hover {
  color: var(--primary);
}

.topbar .social-icons a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}


/* ===== NAVBAR ===== */

.site-header {
  background: var(--bg-light);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo:hover {
  color: inherit;
}

.site-logo .site-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 2px;
}

.site-logo .site-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 8px;
  text-transform: uppercase;
  font-weight: 400;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  border-top: 1px solid var(--border-color);
  padding-top: 0.5rem;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex-wrap: nowrap;
}
.nav-menu::-webkit-scrollbar { display: none; }

.nav-menu .nav-item {
  position: relative;
}

.nav-menu .nav-item {
  flex-shrink: 0;
}
.nav-menu .nav-item a {
  display: block;
  padding: 10px 15px;
  font-weight: 400;
  font-size: 16px;
  color: var(--text);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-menu .nav-item a:hover,
.nav-menu .nav-item a.active {
  color: var(--primary);
}

.nav-item.has-dropdown {
  position: relative;
}

.nav-item.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  vertical-align: middle;
  margin-bottom: 3px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-light);
  border-radius: var(--radius);
  min-width: 200px;
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: rotateX(-75deg);
  transform-origin: top;
  transition: all 0.3s;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: rotateX(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 8px 20px;
  color: var(--text);
  font-size: 14px;
}

.dropdown-menu a:hover {
  background: var(--secondary);
  color: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.search-toggle:hover {
  background: var(--primary);
}

.search-toggle:hover svg {
  stroke: var(--white);
}

.search-toggle svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
}

.nav-toggle {
  display: none;
  padding: 8px 12px;
  background: none;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ===== FEATURES STRIP ===== */

.features-section {
  background: linear-gradient(rgba(26, 125, 255, 0.5), rgba(255, 255, 255, 0.3)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23e8e8e8" width="100" height="100"/></svg>');
  background-size: cover;
  background-position: center;
  padding: 3rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.features-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.features-item .feature-image {
  position: relative;
  flex-shrink: 0;
}

.features-item .feature-image .img-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
}

.features-item .feature-image .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.features-item:hover .feature-image .img-wrap img {
  transform: scale(1.1);
}

.features-item .feature-badge {
  position: absolute;
  top: 5px;
  right: -5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

.features-item .feature-content {
  display: flex;
  flex-direction: column;
}

.features-item .feature-content .feature-category {
  text-transform: uppercase;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.features-item .feature-content a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.3;
}

.features-item .feature-content a:hover {
  color: var(--primary);
}

.features-item .feature-content .feature-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.features-item .feature-content .feature-date svg {
  width: 13px;
  height: 13px;
  vertical-align: middle;
  margin-right: 4px;
  fill: currentColor;
}


/* ===== MAIN POST SECTION ===== */

.main-post-section {
  padding: 3rem 0;
}

.main-post-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 1.5rem;
}

/* Main article */
.main-article .main-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.main-article .main-image img {
  width: 100%;
  height: auto;
  transition: transform var(--transition);
}

.main-article .main-image:hover img {
  transform: scale(1.05);
}

.main-article .main-image .image-overlay {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-article .main-image .image-overlay a {
  color: var(--white);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-article .main-image .image-overlay a:hover {
  color: var(--primary);
}

.main-article .main-image .image-overlay a svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.main-article .main-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.main-article .main-title a {
  color: var(--secondary);
}

.main-article .main-title a:hover {
  color: var(--primary);
}

.main-article .main-excerpt {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Top Story */
.top-story {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.top-story .story-label {
  position: relative;
  margin-bottom: 1.5rem;
}

.top-story .story-label h3 {
  display: inline-block;
  padding-right: 1rem;
  background: var(--bg-light);
  position: relative;
  z-index: 1;
}

.top-story .story-label::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 100%;
  height: 1px;
  background: var(--secondary);
  opacity: 0.15;
}

.top-story .story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.top-story .story-grid .story-image {
  border-radius: var(--radius);
  overflow: hidden;
}

.top-story .story-grid .story-image img {
  width: 100%;
  transition: transform var(--transition);
}

.top-story .story-grid .story-image:hover img {
  transform: scale(1.1);
}

.top-story .story-content a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.3;
}

.top-story .story-content a:hover {
  color: var(--primary);
}

.top-story .story-content .meta {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.top-story .story-content .meta svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  vertical-align: middle;
  margin-right: 3px;
}

/* Sidebar articles */
.sidebar-articles {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.sidebar-article-main {
  margin-bottom: 1.5rem;
}

.sidebar-article-main .article-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.sidebar-article-main .article-image img {
  width: 100%;
  transition: transform var(--transition);
}

.sidebar-article-main .article-image:hover img {
  transform: scale(1.1);
}

.sidebar-article-main h4 a {
  color: var(--secondary);
  font-weight: 600;
}

.sidebar-article-main h4 a:hover {
  color: var(--primary);
}

.sidebar-article-main .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sidebar-article-main .meta svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  vertical-align: middle;
  margin-right: 3px;
}

.sidebar-article-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-color);
}

.sidebar-article-item .thumb {
  flex-shrink: 0;
  width: 100px;
  border-radius: var(--radius);
  overflow: hidden;
}

.sidebar-article-item .thumb img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  transition: transform var(--transition);
}

.sidebar-article-item:hover .thumb img {
  transform: scale(1.1);
}

.sidebar-article-item .item-content a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.3;
}

.sidebar-article-item .item-content a:hover {
  color: var(--primary);
}

.sidebar-article-item .item-content .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.sidebar-article-item .item-content .meta svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  vertical-align: middle;
  margin-right: 3px;
}


/* ===== NEWSLETTER BANNER ===== */

.newsletter-banner {
  background: #CACBB9;
  padding: 3rem 0;
  margin: 2rem 0;
}

.newsletter-banner-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 2rem;
  align-items: center;
}

.newsletter-banner h2 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.newsletter-banner h3 {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.newsletter-banner p {
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.newsletter-form-inline {
  position: relative;
  max-width: 500px;
}

.newsletter-form-inline input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
}

.newsletter-form-inline input:focus {
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.newsletter-form-inline button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 2rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--transition);
}

.newsletter-form-inline button:hover {
  background: #0d6efd;
}

.newsletter-banner .banner-image {
  border-radius: var(--radius);
  overflow: hidden;
}

.newsletter-banner .banner-image img {
  width: 100%;
  border-radius: var(--radius);
}


/* ===== LATEST NEWS SECTION ===== */

.latest-news-section {
  padding: 3rem 0;
}

.latest-news-section h2 {
  margin-bottom: 2rem;
}

.latest-news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.news-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-card .card-image {
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.news-card .card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition);
}

.news-card:hover .card-image img {
  transform: scale(1.1);
}

.news-card .card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.news-card .card-body .card-category {
  text-transform: uppercase;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-card .card-body h4 {
  margin-bottom: 0;
}

.news-card .card-body h4 a {
  color: var(--secondary);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.news-card .card-body h4 a:hover {
  color: var(--primary);
}

.news-card .card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.news-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.news-card .card-footer a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.news-card .card-footer a:hover {
  color: var(--primary);
}

.news-card .card-footer .date {
  display: flex;
  align-items: center;
  gap: 3px;
}

.news-card .card-footer .date svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  vertical-align: middle;
  margin-right: 3px;
}


/* ===== WHAT'S NEW / POPULAR SECTION ===== */

.popular-section {
  padding: 3rem 0;
}

.popular-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.popular-header h2 {
  margin: 0;
}

.tab-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tab-nav li {
  list-style: none;
}

.tab-nav .tab-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--bg-light);
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  text-decoration: none;
}

.tab-nav .tab-btn:hover,
.tab-nav .tab-btn.active {
  background: var(--primary);
  color: var(--white);
}

.popular-grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 2rem;
}

/* Popular main article */
.popular-main .main-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.popular-main .main-image img {
  width: 100%;
  transition: transform var(--transition);
}

.popular-main .main-image:hover img {
  transform: scale(1.05);
}

.popular-main .main-image .category-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: var(--white);
  padding: 6px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
}

.popular-main h4 a {
  font-size: 1.2rem;
  color: var(--secondary);
}

.popular-main h4 a:hover {
  color: var(--primary);
}

.popular-main .meta-row {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.popular-main .meta-row a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.popular-main .meta-row a:hover {
  color: var(--primary);
}

.popular-main .meta-row svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.popular-main .excerpt {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Popular sidebar articles */
.popular-sidebar-articles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popular-sidebar-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.popular-sidebar-item .thumb {
  flex-shrink: 0;
  width: 100px;
  border-radius: var(--radius);
  overflow: hidden;
}

.popular-sidebar-item .thumb img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  transition: transform var(--transition);
}

.popular-sidebar-item:hover .thumb img {
  transform: scale(1.1);
}

.popular-sidebar-item .item-content .category-label {
  text-transform: uppercase;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.popular-sidebar-item .item-content a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.3;
}

.popular-sidebar-item .item-content a:hover {
  color: var(--primary);
}

.popular-sidebar-item .item-content .date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.popular-sidebar-item .item-content .date svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}


/* ===== RIGHT SIDEBAR WIDGETS ===== */

.content-with-sidebar {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 2rem;
}

.sidebar {
  position: sticky;
  top: 100px;
}

/* Widget base */
.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

/* Stay Connected / Social widget */
.widget-social .social-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity var(--transition);
  text-decoration: none;
}

.social-btn:hover {
  opacity: 0.85;
  color: var(--white);
}

.social-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.social-btn .social-count {
  margin-left: auto;
  font-size: 0.85rem;
  opacity: 0.8;
}

.social-btn.facebook {
  background: #1877F2;
}

.social-btn.twitter {
  background: #1DA1F2;
}

.social-btn.youtube {
  background: #FF0000;
}

.social-btn.instagram {
  background: #1a1a1a;
}

.social-btn.linkedin {
  background: #0A66C2;
}

.social-btn.pinterest {
  background: #E60023;
}

/* Popular News widget */
.widget-popular .popular-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.widget-popular .popular-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.widget-popular .popular-item .pop-image {
  position: relative;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.widget-popular .popular-item .pop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.widget-popular .popular-item:hover .pop-image img {
  transform: scale(1.1);
}

.widget-popular .popular-item .pop-badge {
  position: absolute;
  top: 0;
  right: -3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

.widget-popular .popular-item .pop-content .pop-category {
  text-transform: uppercase;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.widget-popular .popular-item .pop-content a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  display: block;
  line-height: 1.3;
  margin: 3px 0;
}

.widget-popular .popular-item .pop-content a:hover {
  color: var(--primary);
}

.widget-popular .popular-item .pop-content .pop-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

.widget-popular .popular-item .pop-content .pop-date svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.widget-popular .view-more {
  display: block;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 0.9rem;
  margin-top: 1rem;
  transition: all var(--transition);
}

.widget-popular .view-more:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Categories widget (replaces Trending Tags) */
.widget-categories .categories-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.widget-categories .category-pill {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 0.85rem;
  transition: all var(--transition);
  text-decoration: none;
}

.widget-categories .category-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
}

/* Newsletter widget */
.widget-newsletter {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.widget-newsletter p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.widget-newsletter input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  margin-bottom: 0.75rem;
  outline: none;
}

.widget-newsletter input:focus {
  border-color: var(--primary);
}

.widget-newsletter button {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--transition);
}

.widget-newsletter button:hover {
  background: #0d6efd;
}

/* Categories list widget */
.widget-cat-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-cat-list ul li {
  border-bottom: 1px solid var(--border-color);
}

.widget-cat-list ul li:last-child {
  border-bottom: none;
}

.widget-cat-list ul li a {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  color: var(--text);
  font-size: 0.9rem;
}

.widget-cat-list ul li a:hover {
  color: var(--primary);
}

.widget-cat-list ul li a .count {
  background: var(--bg-light);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ===== MOST VIEWS NEWS ===== */

.most-views-section {
  padding: 2rem 0;
}

.most-views-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.most-views-section .section-header h2 {
  margin: 0;
}

.most-views-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.views-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.views-card .card-image {
  overflow: hidden;
}

.views-card .card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition);
}

.views-card:hover .card-image img {
  transform: scale(1.1);
}

.views-card .card-body {
  padding: 1.25rem;
}

.views-card .card-body .card-category {
  text-transform: uppercase;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.views-card .card-body h4 {
  margin-bottom: 0.5rem;
}

.views-card .card-body h4 a {
  color: var(--secondary);
  font-weight: 600;
}

.views-card .card-body h4 a:hover {
  color: var(--primary);
}

.views-card .card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.views-card .card-footer {
  display: flex;
  justify-content: space-between;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.views-card .card-footer a {
  color: var(--text-muted);
}

.views-card .card-footer a:hover {
  color: var(--primary);
}

.views-card .card-footer .date {
  display: flex;
  align-items: center;
  gap: 3px;
}

.views-card .card-footer .date svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}


/* ===== LIFESTYLE SECTION ===== */

.lifestyle-section {
  padding: 2rem 0;
}

.lifestyle-section h2 {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.lifestyle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.lifestyle-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 400px;
}

.lifestyle-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.lifestyle-card:hover img {
  transform: scale(1.2);
}

.lifestyle-card .lifestyle-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  border-radius: var(--radius);
}

.lifestyle-card .lifestyle-overlay .category-label {
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.lifestyle-card .lifestyle-overlay h4 {
  margin-bottom: 0;
}

.lifestyle-card .lifestyle-overlay h4 a {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
}

.lifestyle-card .lifestyle-overlay h4 a:hover {
  color: var(--primary);
}

.lifestyle-card .lifestyle-overlay .meta {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
}

.lifestyle-card .lifestyle-overlay .meta a {
  color: rgba(255, 255, 255, 0.8);
}

.lifestyle-card .lifestyle-overlay .meta a:hover {
  color: var(--primary);
}

.lifestyle-card .lifestyle-overlay .meta svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  vertical-align: middle;
  margin-right: 3px;
}


/* ===== FOOTER ===== */

.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 3rem;
}

/* Footer newsletter */
.footer-newsletter {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
}

.footer-newsletter .footer-logo {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.footer-newsletter .footer-logo .logo-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.footer-newsletter .footer-logo .logo-tagline {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 8px;
  text-transform: uppercase;
}

.footer-newsletter .newsletter-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-newsletter .newsletter-input {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.footer-newsletter .newsletter-input input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
}

.footer-newsletter .newsletter-input input:focus {
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.3);
}

.footer-newsletter .newsletter-input button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 2rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--transition);
}

.footer-newsletter .newsletter-input button:hover {
  background: var(--white);
  color: var(--primary);
}

/* Footer grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-section .line-h {
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-section .line-h span {
  color: var(--white);
}

/* Footer social icons */
.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Footer recent posts */
.footer-recent-post {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.footer-recent-post:last-child {
  margin-bottom: 0;
}

.footer-recent-post .post-image {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary);
}

.footer-recent-post .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-recent-post .post-content .post-category {
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 3px;
}

.footer-recent-post .post-content a {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-recent-post .post-content a:hover {
  color: var(--primary);
}

.footer-recent-post .post-content .post-date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 3px;
}

.footer-recent-post .post-content .post-date svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  vertical-align: middle;
  margin-right: 3px;
}

/* Footer categories */
.footer-categories a {
  display: block;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-categories a:hover {
  color: var(--primary);
}

.footer-categories a svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  margin-right: 6px;
}

/* Footer links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  line-height: 2.2;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
  font-size: 0.9rem;
}

.footer-links li a:hover {
  color: var(--primary);
}

.footer-links li a svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  margin-right: 6px;
}

/* Copyright bar */
.copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.copyright-bar p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.copyright-bar a {
  color: rgba(255, 255, 255, 0.7);
}

.copyright-bar a:hover {
  color: var(--primary);
}

.copyright-links {
  display: flex;
  gap: 1.5rem;
}

.copyright-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.copyright-links a:hover {
  color: var(--primary);
}


/* ===== BACK TO TOP ===== */

#back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: #0d6efd;
  transform: translateY(-3px);
}

#back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}


/* ===== SEARCH OVERLAY ===== */

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay .search-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--secondary);
  line-height: 1;
  padding: 0.5rem 0.75rem;
  transition: color 0.3s;
  z-index: 10000;
}

.search-overlay .search-close:hover {
  color: var(--primary);
}

.search-overlay .search-box {
  width: 75%;
  max-width: 700px;
}

.search-overlay .search-box input {
  width: 100%;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1.25rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.3s;
}

.search-overlay .search-box input:focus {
  border-color: var(--primary);
}

.search-overlay .search-box input::placeholder {
  color: var(--text-muted);
}


/* ===== BREADCRUMB ===== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .separator {
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--text);
}

.breadcrumb svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  vertical-align: middle;
}


/* ===== ARTICLE PAGE ===== */

.article-page {
  padding: 2rem 0;
}

.article-header {
  margin-bottom: 2rem;
}

.article-header .category-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 4px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 1rem;
  text-decoration: none;
}

.article-header .category-badge:hover {
  background: #0d6efd;
  color: var(--white);
}

.article-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.article-meta .author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta .author-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.article-meta .author-info a {
  color: var(--secondary);
  font-weight: 600;
}

.article-meta .author-info a:hover {
  color: var(--primary);
}

.article-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-meta svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  vertical-align: middle;
  margin-right: 3px;
}

.article-featured-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.article-featured-image img {
  width: 100%;
}

/* Article body */
.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.article-body h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bg-light);
}

.article-body h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.75rem;
}

.article-body h4 {
  font-size: 1.2rem;
  margin: 1.25rem 0 0.5rem;
}

.article-body h5 {
  font-size: 1.1rem;
  margin: 1rem 0 0.5rem;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--bg-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.25rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body pre {
  background: var(--bg-dark);
  color: #e9ecef;
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.article-body code {
  background: var(--bg-light);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

.article-body pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.article-body th,
.article-body td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

.article-body th {
  background: var(--bg-light);
  font-weight: 600;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
}

.article-body a:hover {
  color: #0d6efd;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0;
}

/* Table of Contents */
.toc {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.toc h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
}

.toc ul li:last-child {
  border-bottom: none;
}

.toc ul li a {
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
}

.toc ul li a:hover {
  color: var(--primary);
}

.toc ul li.level-3 {
  padding-left: 1.25rem;
}

.toc ul li.level-4 {
  padding-left: 2.5rem;
}

/* Key Takeaways */
.key-takeaways {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--primary-rgb), 0.1));
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.key-takeaways h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.key-takeaways ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.key-takeaways ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
  font-size: 0.95rem;
}

.key-takeaways ul li:last-child {
  border-bottom: none;
}

.key-takeaways ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* FAQ Section */
.faq-section {
  margin: 2rem 0;
}

.faq-section h3 {
  margin-bottom: 1.5rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item .faq-question {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-light);
  transition: background 0.3s;
  user-select: none;
}

.faq-item .faq-question:hover {
  background: var(--border-color);
}

.faq-item .faq-question svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
  fill: var(--text-muted);
  flex-shrink: 0;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-item .faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item.open .faq-answer {
  padding: 1rem 1.25rem;
  max-height: 500px;
}

.faq-item .faq-answer p:last-child {
  margin-bottom: 0;
}

/* Author box */
.author-box {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}

.author-box .author-portrait {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
}

.author-box .author-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-box .author-info h4 {
  margin-bottom: 0.5rem;
}

.author-box .author-info h4 a {
  color: var(--secondary);
}

.author-box .author-info h4 a:hover {
  color: var(--primary);
}

.author-box .author-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

.author-box .author-info .author-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.author-box .author-info .author-link:hover {
  color: #0d6efd;
}

/* Social share */
.social-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.social-share span {
  font-weight: 600;
  margin-right: 0.5rem;
}

.social-share a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: opacity var(--transition);
}

.social-share a:hover {
  opacity: 0.8;
  color: var(--white);
}

.social-share a.share-facebook {
  background: #1877F2;
}

.social-share a.share-twitter {
  background: #1DA1F2;
}

.social-share a.share-linkedin {
  background: #0A66C2;
}

.social-share a.share-pinterest {
  background: #E60023;
}

.social-share a.share-email {
  background: var(--text-muted);
}

.social-share a.share-whatsapp {
  background: #25D366;
}

.social-share a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Related articles */
.related-articles {
  padding: 2rem 0;
}

.related-articles h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}


/* ===== CATEGORY PAGE ===== */

.category-page {
  padding: 2rem 0;
}

.category-header {
  margin-bottom: 2rem;
}

.category-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.category-header p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.category-header .article-count {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}


/* ===== AUTHOR PAGE ===== */

.author-page {
  padding: 2rem 0;
}

.author-profile {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.author-profile .portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid var(--primary);
}

.author-profile .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-profile h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.author-profile .author-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.author-profile p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.author-profile .author-social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.author-profile .author-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}

.author-profile .author-social a:hover {
  background: var(--primary);
  color: var(--white);
}

.author-profile .author-social a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}


/* ===== CONTACT PAGE ===== */

.contact-page {
  padding: 2rem 0;
}

.contact-page h1 {
  margin-bottom: 1rem;
}

.contact-page .page-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.contact-wrapper {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}

.contact-info-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-info-card svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-info-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-info-card a {
  color: var(--primary);
}

.contact-info-card a:hover {
  color: #0d6efd;
}

/* Contact form */
.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.3s;
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form button[type="submit"] {
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--transition);
}

.contact-form button[type="submit"]:hover {
  background: #0d6efd;
}


/* ===== 404 PAGE ===== */

.error-page {
  padding: 5rem 0;
  text-align: center;
}

.error-page h1 {
  font-size: 8rem;
  color: var(--primary);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-page h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.error-page .btn {
  padding: 0.75rem 2rem;
}

.error-page .search-form {
  max-width: 400px;
  margin: 2rem auto 0;
  position: relative;
}

.error-page .search-form input {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
}

.error-page .search-form input:focus {
  border-color: var(--primary);
}


/* ===== PAGINATION ===== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
}

.pagination a {
  color: var(--text);
  border: 1px solid var(--border-color);
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .active {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}

.pagination .disabled {
  color: var(--text-muted);
  opacity: 0.5;
  pointer-events: none;
  border: 1px solid var(--border-color);
}

.pagination .ellipsis {
  border: none;
  color: var(--text-muted);
}

.pagination svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}


/* ===== PAGE (STATIC PAGES) ===== */

.static-page {
  padding: 2rem 0;
}

.static-page h1 {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bg-light);
}

.static-page .page-content {
  max-width: 800px;
  line-height: 1.8;
}

.static-page .page-content h2 {
  margin: 2rem 0 1rem;
}

.static-page .page-content h3 {
  margin: 1.5rem 0 0.75rem;
}

.static-page .page-content p {
  margin-bottom: 1.25rem;
}

.static-page .page-content ul,
.static-page .page-content ol {
  margin-bottom: 1.25rem;
}

.static-page .page-content li {
  margin-bottom: 0.5rem;
}

.static-page .page-content a {
  color: var(--primary);
  text-decoration: underline;
}

.static-page .page-content a:hover {
  color: #0d6efd;
}


/* ===== CATEGORY BADGE (SHARED) ===== */

.category-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 4px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}

.category-badge:hover {
  background: #0d6efd;
  color: var(--white);
}


/* ===== SECTION TITLES ===== */

.section-title {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary);
}


/* ===== LOADING / SKELETON ===== */

.skeleton {
  background: linear-gradient(90deg, var(--bg-light) 25%, var(--border-color) 50%, var(--bg-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}


/* ===== ACCESSIBILITY ===== */

.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;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}


/* ===== PRINT STYLES ===== */

@media print {
  .topbar,
  .site-header,
  .site-footer,
  .search-overlay,
  #back-to-top,
  .social-share,
  .related-articles,
  .sidebar,
  .nav-toggle {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .container {
    max-width: 100%;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}


/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {
  .topbar .top-link {
    display: none;
  }

  .topbar .trending-ticker {
    width: 400px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .latest-news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .col-xl-3 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }

  .col-xl-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-xl-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 992px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 0;
    margin-top: 0.5rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu .nav-item a {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
    background: transparent;
    min-width: auto;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .main-post-grid {
    grid-template-columns: 1fr;
  }

  .popular-grid {
    grid-template-columns: 1fr;
  }

  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .newsletter-banner-grid {
    grid-template-columns: 1fr;
  }

  .latest-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lifestyle-grid {
    grid-template-columns: 1fr;
  }

  .most-views-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .top-story .story-grid {
    grid-template-columns: 1fr;
  }

  .col-lg-5 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .col-lg-7 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .topbar {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .latest-news-grid {
    grid-template-columns: 1fr;
  }

  .lifestyle-card {
    height: 300px;
  }

  .article-header h1 {
    font-size: 1.75rem;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

  .author-box .author-portrait {
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-newsletter {
    flex-direction: column;
    text-align: center;
  }

  .footer-newsletter .newsletter-input {
    min-width: auto;
    width: 100%;
  }

  .copyright-bar {
    flex-direction: column;
    text-align: center;
  }

  .copyright-links {
    justify-content: center;
  }

  .error-page h1 {
    font-size: 5rem;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .col-4,
  .col-5,
  .col-7,
  .col-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .py-5 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .p-5 {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 10px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .popular-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .social-share {
    flex-wrap: wrap;
  }

  .newsletter-form-inline button {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
    border-radius: var(--radius-pill);
  }

  .newsletter-form-inline input {
    border-radius: var(--radius-pill);
  }

  .search-overlay .search-box {
    width: 90%;
  }

  .search-overlay .search-box input {
    font-size: 1rem;
    padding: 1rem;
  }

  .tab-nav {
    gap: 0.25rem;
  }

  .tab-nav .tab-btn {
    padding: 6px 14px;
    font-size: 13px;
  }

  .site-logo .site-name {
    font-size: 1.5rem;
  }

  .site-logo .site-tagline {
    letter-spacing: 4px;
    font-size: 0.6rem;
  }

  .features-item .feature-image .img-wrap {
    width: 60px;
    height: 60px;
  }

  .main-article .main-title {
    font-size: 1.5rem;
  }

  #back-to-top {
    right: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
  }

  .footer-newsletter .footer-logo .logo-name {
    font-size: 1.5rem;
  }

  .footer-newsletter .footer-logo .logo-tagline {
    letter-spacing: 4px;
  }
}
