/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Description: Child theme for GeneratePress
Author: Shahjalal
Author URI: https://techzone-r.com/
Template: generatepress
Version: 1.2
*/

/* ================== GLOBAL STYLES ================== */
body {
    background-color: #f5f6fa;
    color: #222;
    font-family: "Inter", "Arial", sans-serif;
    line-height: 1.6;
    margin: 0;
}

a {
    text-decoration: none;
    color: #0073e6;
    transition: color 0.3s ease;
}

a:hover {
    color: #005bb5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #111;
    margin-bottom: 0.6em;
}

/* ================== CONTAINER ================== */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* ============================
   GLOBAL HEADER STYLING
============================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: #0e0b38 !important;
    color: #fafaff !important;
    transition: all 0.3s ease-in-out;
}

.site-header.scrolled {
    background-color: #090722 !important;
    padding: 5px 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.site-header .inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap; 
    padding: 10px 20px;
}

/* Logo Resize on Scroll */
.site-header.scrolled .site-logo img {
    max-height: 38px !important;
    transition: 0.3s ease;
}

/* ============================
   NAVIGATION LINKS
============================ */
.site-header .main-navigation a {
    color: #ffffff !important;
    font-weight: 500;
    padding: 10px 12px;
    transition: color 0.3s ease-in-out;
}

.site-header .main-navigation a:hover {
    color: #fccf05 !important;
}

.main-navigation .current-menu-item > a {
    color: #fccf05 !important;
}

/* ============================
   RESPONSIVE DESIGN
============================ */

/* 📌 Mobile Menu Toggle Button */
.menu-toggle {
    color: #fff;
    border: none;
    padding: 8px 12px;
}

.menu-toggle:hover {
    color: #fccf05;
}

/* 📌 1024px - Tablet */
@media (max-width: 1024px) {
    .site-header .inside-header {
        padding: 10px 15px;
    }

    .site-branding img {
        max-width: 150px !important;
    }
}

/* 📌 768px - Mobile Landscape */
@media (max-width: 768px) {

    .site-header .inside-header {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .main-navigation {
        width: 100%;
        margin-top: 8px;
        background: #0e0b38;
        padding: 10px 0;
    }

    .main-navigation a {
        display: block;
        padding: 12px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-navigation a:hover {
        background: rgba(255,255,255,0.05);
        color: #fccf05 !important;
    }
}

/* 📌 480px - Small Mobile */
@media (max-width: 480px) {

    .site-branding img {
        max-width: 130px !important;
    }

    .site-header .inside-header {
        padding: 8px 12px;
    }

    .main-navigation a {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* ================== LATEST POSTS GRID ================== */
.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .latest-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .latest-posts-grid {
        grid-template-columns: 1fr;
    }
}

.latest-post {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.latest-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.image-wrapper {
    width: 100%;
    height: 220px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.latest-post h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 15px 5px;
}

.latest-post h3 a {
    color: #333;
}

.latest-post h3 a:hover {
    color: #0073e6;
}

.latest-post p {
    font-size: 14px;
    color: #555;
    margin: 0 15px 10px;
}

.read-more {
    display: inline-block;
    background: #0073e6;
    color: #fff;
    padding: 8px 14px;
    margin: 10px auto 15px;
    border-radius: 5px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #005bb5;
}

/* ================== TOP PICKS GRID ================== */
.top-picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 15px;
}

.top-pick-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
}

.top-pick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.top-pick-card .image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.top-pick-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.top-pick-card:hover .image-wrapper img {
    transform: scale(1.05);
}

.top-pick-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0;
    line-height: 1.4;
}

.top-pick-card h3 a {
    color: #222;
    transition: color 0.3s;
}

.top-pick-card h3 a:hover {
    color: #0073e6;
}

.top-pick-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    flex-grow: 1;
    margin-bottom: 15px;
}

.top-pick-card .read-more {
    background: #0073e6;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.top-pick-card .read-more:hover {
    background: #005bb5;
}

/* Lightweight Headphones CTA Styles */
.tz-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg,#ffffff,#f6f9ff);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 8px 30px rgba(15,23,42,0.06);
  max-width: 900px;
  margin: 24px auto;
  transition: all 0.25s ease-in-out;
}
.tz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(15,23,42,0.1);
}
.tz-icon {
  flex: 0 0 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg,#eef5ff,#ffffff);
  border-radius: 12px;
}
.tz-body h3 { margin:0 0 6px 0; font-size:1.1rem; color:#0b0f19; }
.tz-body p { margin:0; color:#444; line-height:1.45; }
.tz-actions { margin-top:10px; display:flex; gap:10px; flex-wrap:wrap; }
.tz-btn {
  display:inline-block; padding:8px 14px; border-radius:10px;
  font-weight:600; text-decoration:none; background:#0b74ff; color:#fff;
  box-shadow:0 6px 18px rgba(11,116,255,0.15); transition:all 0.15s ease-in-out;
}
.tz-btn:hover { transform: translateY(-3px); }
.tz-btn.secondary {
  background:transparent; color:#0b74ff; border:1px solid rgba(11,116,255,0.2); box-shadow:none;
}

@media(max-width:620px){
  .tz-card { flex-direction: column; align-items: flex-start; }
  .tz-icon { width:56px; height:56px; }
}

@media(prefers-color-scheme:dark){
  .tz-card { background: linear-gradient(135deg,#0b1221,#101828); border-color: rgba(255,255,255,0.04); }
  .tz-body h3 { color:#e2eaff; }
  .tz-body p { color:#aab8d8; }
  .tz-btn.secondary { color:#a7d1ff; border-color: rgba(167,209,255,0.1); }
}
/* ================== releted post css ================== */
.tz-related-posts {
    margin: 40px 0;
}
.tz-related-posts .related-title {
    font-size: 20px;
    margin-bottom: 20px;
}
.tz-related-posts .related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.tz-related-posts .related-item {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s;
}
.tz-related-posts .related-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.tz-related-posts .related-thumb {
    height: 140px;
    overflow: hidden;
}
.tz-related-posts .related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tz-related-posts h3 {
    font-size: 15px;
    margin: 8px;
    padding: 0 5px;
}
@media(max-width:768px){
    .tz-related-posts .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
    }
    .tz-related-posts .related-thumb {
        height: 120px;
    }
}

