/* ===================================================================================

* Theme Name: Digiqole Child
* Theme URI: https://themeforest.net/user/tripples/portfolio
* Author: Tripples
* Author URI: http://themewinter.com
* Description: Digiqole is a Newspaper & Magazine WordPress Theme.
* Version: 2.0.0
* Template: digiqole
* License: GNU General Public License version 3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
* Tags: one-column, right-sidebar, left-sidebar, custom-menu, featured-images, post-formats, sticky-post, translation-ready

* We encourage you to create Child theme for any modifications you will want to do.

* Why use Child theme?

* Because of future updates we may provide for this theme that will overwrite your
* modifications and all your custom work.

* If you are not familiar with Child Themes, you can read about it here:
* http://codex.wordpress.org/Child_Themes
* http://wp.tutsplus.com/tutorials/theme-development/child-themes-basics-and-creating-child-themes-in-wordpress/

====================================================================================== */
/* =============================================================================
   9to5Windows — Custom Homepage Layout
   ============================================================================= */

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.nftw-hero-section {
  background: #0f1923;
  padding: 20px 0 28px;
  margin-bottom: 32px;
}

.nftw-hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  align-items: start;
}

/* Big post */
.nftw-hero-main {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.nftw-hero-img-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.nftw-hero-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.nftw-hero-img-link:hover img { transform: scale(1.03); }

.nftw-hero-body {
  padding: 16px 0 0;
}

.nftw-hero-title {
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  margin: 6px 0 10px;
  color: #fff;
}

.nftw-hero-title a { color: inherit; text-decoration: none; }
.nftw-hero-title a:hover { color: #0078d4; }

.nftw-hero-meta {
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

/* Side stack */
.nftw-hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nftw-side-card {
  display: flex;
  gap: 12px;
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  overflow: hidden;
  padding: 10px;
  align-items: flex-start;
}

.nftw-side-img {
  display: block;
  flex-shrink: 0;
  width: 100px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
}

.nftw-side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.nftw-side-img:hover img { transform: scale(1.05); }

.nftw-side-body { flex: 1; min-width: 0; }

.nftw-side-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 4px 0 6px;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nftw-side-title a { color: inherit; text-decoration: none; }
.nftw-side-title a:hover { color: #0078d4; }

.nftw-side-meta { font-size: 12px; color: rgba(255,255,255,.45); }

/* Badges */
.nftw-badge {
  display: inline-block;
  padding: 2px 10px;
  background: #0078d4;
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  border-radius: 3px;
  text-decoration: none !important;
}

.nftw-badge:hover { background: #005a9e; }

.nftw-badge-sm {
  font-size: 10px;
  padding: 2px 7px;
}

/* Separator dot */
.nftw-sep { margin: 0 5px; opacity: .5; }

/* ── Main Section ─────────────────────────────────────────────────────────── */
.nftw-main-section { padding: 0 0 40px; }

/* Section heading */
.nftw-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e8e8e8;
  padding-bottom: 10px;
}

.nftw-section-bar {
  display: block;
  width: 4px;
  height: 22px;
  background: #0078d4;
  border-radius: 2px;
}

.nftw-section-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  margin: 0;
  color: inherit;
}

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

/* Card */
.nftw-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--nftw-card-bg, #fff);
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  transition: box-shadow .25s ease, transform .25s ease;
  display: flex;
  flex-direction: column;
}

.nftw-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,.13);
  transform: translateY(-2px);
}

.nftw-card-img {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.nftw-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

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

.nftw-card-body {
  padding: 14px 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nftw-card-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #0078d4 !important;
  text-decoration: none !important;
  margin-bottom: 6px;
}

.nftw-card-cat:hover { color: #005a9e !important; }

.nftw-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: inherit;
}

.nftw-card-title a { color: inherit; text-decoration: none; }
.nftw-card-title a:hover { color: #0078d4; }

.nftw-card-meta { font-size: 12px; color: #888; margin-top: auto; }

/* Sidebar */
.nftw-sidebar { padding-left: 12px; }

/* Pagination */
.nftw-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0 20px;
}

.nftw-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}

.nftw-pagination .page-numbers:hover,
.nftw-pagination .page-numbers.current {
  background: #0078d4;
  border-color: #0078d4;
  color: #fff;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .nftw-hero-inner {
    grid-template-columns: 1fr;
  }
  .nftw-hero-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .nftw-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .nftw-hero-side {
    grid-template-columns: 1fr;
  }
  .nftw-grid {
    grid-template-columns: 1fr;
  }
  .nftw-hero-section {
    padding: 14px 0 20px;
  }
}

/* ── Dark mode ──────────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .nftw-card {
    --nftw-card-bg: #1e2025;
    box-shadow: 0 1px 6px rgba(0,0,0,.3);
  }
  .nftw-section-head { border-bottom-color: #333; }
  .nftw-card-meta { color: #777; }
}
