/*
Theme Name: GetUSB 2026
Theme URI: https://www.getusb.info
Author: GetUSB
Description: Editorial-first USB Technology Field Journal theme
Version: 1.0
*/

/* ======================================
   RESET + TYPOGRAPHY
====================================== */

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #1f2937;
  background-color: #f3f4f6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 0;
}

p {
  margin: 0 0 1.2em 0;
}

/* ======================================
   GLOBAL LINK STYLING
====================================== */

a {
  color: #2a6a96;
  text-decoration: none;
  transition: color .2s ease;
}

a:visited {
  color: #2a6a96;
}

a:hover,
a:focus {
  color: #1f4f72;
  text-decoration: none;
}

/* ======================================
   LAYOUT CONTAINER
====================================== */

.site-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 28px 0;
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-branding {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-branding img {
  max-height: 48px;
  width: auto;
}

.site-tagline {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 500;
}

.primary-nav .menu {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  font-size: 16px;
  font-weight: 500;
  color: #1f2937;
  text-decoration: none;
  transition: color .2s ease;
}

.primary-nav a:hover {
  color: #2a6a96;
}

/* ======================================
   MAIN AREA
====================================== */

.site-main {
  padding: 0;
  background: #f3f4f6;
}

/* ======================================
   PILLAR + HERO GRADIENT BAND
====================================== */

.pillar-hero,
.section-block.hero-gradient {
  width: 100%;
  margin: 0 0 12px 0;
  background:
    linear-gradient(
      90deg,
      #d6dee7 0%,
      #eef2f6 25%,
      #ffffff 50%,
      #eef2f6 75%,
      #d6dee7 100%
    );
  border-bottom: 1px solid #d8dde3;
}

.pillar-hero-inner,
.section-block.hero-gradient {
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 20px;
  background: transparent;
  border: none;
}

.pillar-hero h1,
.section-block.hero-gradient h1 {
  margin: 0 0 10px 0;
  font-size: 2.2rem;
}

.pillar-description,
.section-block.hero-gradient p {
  max-width: 700px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #4a5560;
}

/* ======================================
   FEATURED ANALYSIS (area on home page)
====================================== */

.featured-analysis-block .section-intro {
  max-width: 860px;
  margin-bottom: 1.5rem;
  font-size: 1.35rem;
  line-height: 1.75;
  color: #2f3a45;
}

.featured-analysis-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.featured-analysis-thumb {
  display: block;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 18px;
  background: #e9eef3;
}

.featured-analysis-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-analysis-content {
  max-width: 860px;
}

.featured-analysis-content h3 {
  margin: 0 0 1rem;
  font-size: 2.15rem;
  line-height: 1.2;
}

.featured-analysis-content h3 a {
  text-decoration: none;
}

.featured-analysis-content h3 a:hover {
  text-decoration: underline;
}

.featured-analysis-content p {
  margin: 0 0 1.25rem;
  font-size: 1.45rem;
  line-height: 1.75;
  color: #2f3a45;
}

.featured-analysis-content .read-more-link {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
}

.featured-analysis-content .read-more-link:hover {
  text-decoration: underline;
}

/* ======================================
   PILLAR FEATURED ARTICLE
====================================== */

.section-block.pillar-featured-article {
  padding: 0;
  overflow: hidden;
}

.pillar-featured-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pillar-featured-thumb {
  display: block;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #e9eef3;
}

.pillar-featured-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pillar-featured-content {
  padding: 0 32px 32px 32px;
  max-width: 920px;
}

.pillar-featured-content h2 {
  margin: 0 0 1rem 0;
  font-size: 2.15rem;
  line-height: 1.2;
}

.pillar-featured-content h2 a {
  text-decoration: none;
}

.pillar-featured-content h2 a:hover {
  text-decoration: underline;
}

.pillar-featured-content p {
  margin: 0 0 1.25rem 0;
  font-size: 1.3rem;
  line-height: 1.75;
  color: #2f3a45;
}

.pillar-featured-content .read-more-link {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.pillar-featured-content .read-more-link:hover {
  text-decoration: underline;
}

/* ======================================
   TABLET
====================================== */

@media (max-width: 1024px) {
  .pillar-featured-thumb {
    height: 280px;
  }

  .pillar-featured-content h2 {
    font-size: 1.9rem;
  }

  .pillar-featured-content p {
    font-size: 1.16rem;
    line-height: 1.7;
  }
}

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

@media (max-width: 768px) {
  .pillar-featured-thumb {
    height: 220px;
  }

  .pillar-featured-content {
    padding: 0 24px 24px 24px;
  }

  .pillar-featured-content h2 {
    font-size: 1.55rem;
  }

  .pillar-featured-content p {
    font-size: 1.02rem;
    line-height: 1.65;
  }
}

/* ======================================
   TABLET
====================================== */

@media (max-width: 1024px) {
  .featured-analysis-block .section-intro {
    font-size: 1.22rem;
    line-height: 1.7;
  }

  .featured-analysis-thumb {
    height: 320px;
  }

  .featured-analysis-content h3 {
    font-size: 1.9rem;
  }

  .featured-analysis-content p {
    font-size: 1.25rem;
  }
}

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

@media (max-width: 768px) {
  .featured-analysis-block .section-intro {
    font-size: 1.06rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
  }

  .featured-analysis-thumb {
    height: 240px;
    border-radius: 14px;
  }

  .featured-analysis-content h3 {
    font-size: 1.55rem;
  }

  .featured-analysis-content p {
    font-size: 1.08rem;
    line-height: 1.65;
  }
}

/* ======================================
   SEARCH BLOCK (Editorial Style)
====================================== */

.search-block {
  padding: 50px;
  margin-bottom: 60px;
}

.search-block form {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Button on LEFT — styled like pagination */
.search-block button,
.search-block input[type="submit"] {
  background: rgba(42,106,150,0.08);
  color: #2a6a96;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
}

.search-block button:hover,
.search-block input[type="submit"]:hover {
  background: rgba(42,106,150,0.18);
}

/* Input takes remaining width */
.search-block input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 16px;
  background: #ffffff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-block input[type="search"]:focus {
  outline: none;
  border-color: #2a6a96;
  box-shadow: 0 0 0 3px rgba(42,106,150,0.08);
}

/* ======================================
   SECTION BLOCKS (WHITE CARDS)
====================================== */

.section-block {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 60px 50px;
  margin-bottom: 60px;
}



/* ======================================
   LATEST ARTICLES SPACING
====================================== */

.section-block.latest-articles {
  padding: 100px 50px 90px 50px;
}

.section-block.latest-articles h2 {
  margin-bottom: 50px;
}

.section-block.latest-articles h2 {
  margin-bottom: 40px;
}

/* ======================================
   TOPIC GRID
====================================== */

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

.topic-card {
  display: block;
  padding: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.topic-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  color: #1f2937;
}

.topic-card p {
  color: #4b5563;
  line-height: 1.6;
}

.topic-card:hover {
  border-color: #9ca3af;
  transform: translateY(-3px);
}

.card-thumb {
  margin-bottom: 18px;
}

.card-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* ======================================
   CATEGORY BACKGROUND VARIATIONS
====================================== */

/* Base card stays neutral but clean */
.topic-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 36px;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Slightly stronger category backgrounds */

.topic-card.flash-storage {
  background: #e7f0f8;
  border-color: #c8dced;
}

.topic-card.usb-security {
  background: #e9f3ee;
  border-color: #cde3d7;
}

.topic-card.data-integrity {
  background: #eeeaf7;
  border-color: #d8d1ec;
}

.topic-card.usb-hardware {
  background: #e8eef5;
  border-color: #ccd8e8;
}

.topic-card.duplication-systems {
  background: #f0ece6;
  border-color: #ddd2c2;
}

.topic-card.industry-analysis {
  background: #e6f0f3;
  border-color: #c7dde5;
}

/* Slight lift on hover */
.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.04);
}

/* ======================================
   HERO ARTICLE (FEATURED)
====================================== */

.section-block.hero-article {
  padding: 0;
}

.hero-card {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform .25s ease, box-shadow .25s ease;
}

.hero-card h2 {
  margin: 0;
  padding: 24px 28px;
  font-size: 22px;
}

.hero-card img {
  filter: blur(3px) brightness(0.85);
  transition: filter 0.4s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.hero-card:hover img {
  filter: blur(0px) brightness(1);
}

.hero-card::after {
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.12);
  pointer-events:none;
  transition:opacity .4s ease;
}

.hero-card:hover::after {
  opacity:0;
}

/* ======================================
   ARTICLE GRID
====================================== */

.section-block .article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 28px;
  row-gap: 40px;        /* ← THIS controls spacing between rows */
  align-items: stretch;      /* force equal height per row */
}

/* Hide excerpt text on pillar grids */
.section-block .article-card p {
  display: none;
}

.section-block .article-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  padding: 32px;   /* ← THIS is what moves text inward */
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}

.section-block .article-card-content {
  padding: 20px 20px 14px;
}

.section-block .article-card h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
}

.section-block .article-card p {
  font-size: 15px;
  line-height: 1.6;
}

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

.section-block .article-card:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* ======================================
   PILLAR COLOR SYSTEM
====================================== */

.section-block .article-card.flash-storage {
  background: linear-gradient(
    180deg,
    rgba(126,157,183,0.25),
    rgba(126,157,183,0.10)
  );
  border-color: rgba(126,157,183,0.35);
}

.section-block .article-card.usb-security {
  background: linear-gradient(
    180deg,
    rgba(144,167,156,0.25),
    rgba(144,167,156,0.10)
  );
  border-color: rgba(144,167,156,0.35);
}

.section-block .article-card.data-integrity {
  background: linear-gradient(
    180deg,
    rgba(158,148,178,0.25),
    rgba(158,148,178,0.10)
  );
  border-color: rgba(158,148,178,0.35);
}

.section-block .article-card.controller-architecture {
  background: linear-gradient(
    180deg,
    rgba(130,150,170,0.25),
    rgba(130,150,170,0.10)
  );
  border-color: rgba(130,150,170,0.35);
}

.section-block .article-card.duplication-systems {
  background: linear-gradient(
    180deg,
    rgba(181,170,152,0.25),
    rgba(181,170,152,0.10)
  );
  border-color: rgba(181,170,152,0.35);
}

.section-block .article-card.industry-analysis {
  background: linear-gradient(
    180deg,
    rgba(142,166,171,0.25),
    rgba(142,166,171,0.10)
  );
  border-color: rgba(142,166,171,0.35);
}

/* ======================================
   PILLAR PAGINATION
====================================== */

.pillar-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 60px 0;
}

.pillar-pagination .page-numbers {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s ease;
  color: #2a6a96;
  background: rgba(42,106,150,0.08);
}

.pillar-pagination .page-numbers:hover {
  background: rgba(42,106,150,0.18);
}

.pillar-pagination .current {
  background: #2a6a96;
  color: #ffffff;
}

.pillar-pagination .next {
  font-weight: 600;
}
/* ======================================
   PILLAR CONTENT
====================================== */

.pillar-content {
  max-width: 800px;
  margin: 60px auto;
  font-size: 18px;
  line-height: 1.75;
  color: #374151;
}

/* ======================================
   INTERIOR PAGE HERO (MATCH PILLAR)
====================================== */

.interior-hero {
  background: linear-gradient(
    180deg,
    rgba(42,106,150,0.10),
    rgba(42,106,150,0.03)
  );
  padding: 80px 0 60px 0;
  border-bottom: 1px solid rgba(42,106,150,0.15);
}

.interior-hero h1 {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* ======================================
   STANDARD PAGE LAYOUT (DEFAULT PAGES)
====================================== */

.page .page-content {
  padding-top: 60px;
  padding-bottom: 80px;
}

.page .container.page-layout {
  max-width: 1100px;
  margin: 0 auto;
}

.page .page-main {
  background: #ffffff;
  padding: 60px 60px;
  border-radius: 14px;
}

/* H1 */
.page .page-main > section > h1,
.page .page-main h1 {
  font-size: 40px;
  margin-bottom: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* H2 */
.page .page-main h2 {
  margin-top: 50px;
  margin-bottom: 16px;
  font-size: 24px;
}

/* Paragraph rhythm */
.page .page-main p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 20px;
  color: #1f2937;
}

/* ======================================
   SINGLE POST LAYOUT
====================================== */

.post-body {
  padding: 60px 0;
}

.post-content-narrow {
  max-width: 760px;   /* editorial reading width */
  margin: 0 auto;
}

.post-content-narrow p {
  font-size: 18px;
  line-height: 1.75;
  color: #1f2937;
}

/* ======================================
   EDITORIAL BLOCKQUOTE
====================================== */

.post-content-narrow blockquote {
  margin: 30px 0px 30px 15px;
  padding: 22px 28px;
  border-left: 4px solid #2a6a96;
  background: rgba(42,106,150,0.05);
  font-size: 19px;
  line-height: 1.7;
  color: #1f2937;
}

.post-content-narrow blockquote p {
  margin: 0 0 0 5px;
}

/* ======================================
   GETUSB POST SIDEBAR (REFINED)
====================================== */

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

/* Sidebar Column */
.post-sidebar {
  position: sticky;
  top: 140px;

  background: var(--sidebar-bg);
  padding: 36px;
  border-radius: 14px;
  margin-top: 8px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

/* Interior spacing */
.sidebar-block {
  margin-bottom: 42px;
}

.sidebar-block:last-child {
  margin-bottom: 0;
}

/* Titles */
.sidebar-title {
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* Lists */
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  margin-bottom: 12px;
}

.sidebar-list li:last-child {
  margin-bottom: 0;
}

.sidebar-list a {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.sidebar-list a:hover {
  opacity: 0.7;
}

/* Advertising */
.advertising {
  font-size: 14px;
  opacity: 0.85;
}

/* Mobile */
@media (max-width: 1024px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: relative;
    top: auto;
    margin-top: 40px;
  }
}

/* ======================================
   CATEGORY SIDEBAR COLOR
====================================== */

.single.category-flash-storage .post-sidebar {
  background: #e9f0f7;
}

.single.category-usb-security .post-sidebar {
  background: #e6efe9;
}

.single.category-data-integrity .post-sidebar {
  background: #eeeaf6;
}

.single.category-duplication-systems .post-sidebar {
  background: #f5edf9;
}

.single.category-industry-analysis .post-sidebar {
  background: #f7f2e8;
}

/* ======================================
   VIDEO MODAL
====================================== */

.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.video-modal.active {
  display: flex;
}

.video-modal-inner {
  background: #000;
  max-width: 900px;
  width: 90%;
  position: relative;
}

.video-modal video {
  width: 100%;
  height: auto;
  display: block;
}

/* ======================================
   FOOTER  EQUAL HEIGHT TILES (FORCE EXPAND)
====================================== */

footer {
  margin-top: 80px;
  padding: 70px 0 30px;
  color: #e5e7eb;
  background-image:
    linear-gradient(
      rgba(17, 24, 39, 0.82),
      rgba(17, 24, 39, 0.82)
    ),
    url("https://www.getusb.info/wp-content/themes/getusb-2026/assets/home-hero-bg.webp");
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 50px;
  align-items: stretch; /* Forces grid tracks to be equal height */
}

.footer-column {
  min-width: 0;
  display: flex;         /* Makes the column a flex container */
  flex-direction: column; 
}

/* We target the widget AND any potential WordPress wrapper */
.footer-column > div,
.footer-widget {
  background: rgba(255, 255, 255, 0.07);
  padding: 40px 35px;
  border-radius: 18px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s ease;
  box-sizing: border-box;
  
  display: flex;         /* Internal flex */
  flex-direction: column;
  flex-grow: 1;          /* FORCES the box to grow to the bottom of the column */
  height: 100%;          /* Double-down on height */
}

.footer-widget:hover {
  background: rgba(255, 255, 255, 0.11);
}

.footer-widget h6,
.footer-widget h3 {
  margin: 0 0 20px 0;
  font-size: 20px;
  line-height: 1.35;
  color: #ffffff;
  font-weight: 600;
}

.footer-widget p,
.footer-widget li,
.footer-widget div {
  font-size: 14px;
  line-height: 1.6;
  color: #d1d5db;
}

.footer-widget p {
  margin: 0 0 12px 0;
}

.footer-widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-widget li {
  margin: 0 0 8px 0;
}

footer a {
  color: #e5e7eb;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.25s ease;
}

footer a:hover {
  color: #ffffff;
}

footer a:visited {
  color: #e5e7eb;
}

.footer-widget img {
  width: 115%;
  height: auto;
  display: block;
}

footer img {
  filter: brightness(0) invert(1);
}

.copy {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.25);
  color: #9ca3af;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-widget {
    padding: 30px 25px;
  }
}

.nav-toggle {
  display: none;
}

/* Hide mobile nav toggle on desktop */
.nav-toggle {
  display: none;
}