/* ============================================
   Dheeraj Hitech — Design Tokens
   Theme: light, friendly, badge/seal motif from logo
   ============================================ */
:root {
    --teal: #3FB8D4;
    --teal-dark: #2D9DB8;
    --teal-light: #E6F7FB;
    --navy: #1A2B3D;
    --navy-soft: #4A5A6B;
    --coral: #FF6B5C;
    --bg: #FFFFFF;
    --bg-soft: #F7FAFC;
    --border: #E2E8EE;
    --text: #1A2B3D;
    --text-dim: #5A6B7B;
    --text-faint: #92A0AD;

    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius: 12px;
    --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
    color: var(--navy);
}

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

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

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
    color: var(--navy);
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px var(--teal-light);
}

.main-nav {
    display: flex;
    gap: 8px;
    flex: 1;
}

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--navy-soft);
    white-space: nowrap;
    padding: 9px 16px;
    border-radius: 20px;
    transition: color .15s, background .15s;
}

.main-nav a:hover { color: var(--teal-dark); background: var(--teal-light); }

.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.search-form input {
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 9px 6px 9px 16px;
    width: 160px;
    outline: none;
}

.search-form button {
    background: transparent;
    border: none;
    color: var(--navy-soft);
    cursor: pointer;
    padding: 8px 14px;
    font-size: 15px;
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 4px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); display: block; border-radius: 2px; }

/* ============================================
   Hero
   ============================================ */
.hero {
    background: linear-gradient(180deg, var(--teal-light) 0%, var(--bg) 100%);
    padding: 64px 0 56px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--teal-dark);
    font-size: 13px;
    letter-spacing: .02em;
    margin-bottom: 16px;
    background: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(63, 184, 212, 0.15);
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.hero h1 a:hover { color: var(--teal-dark); }

.hero p {
    color: var(--text-dim);
    font-size: 17px;
    max-width: 520px;
    margin-bottom: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--coral);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: transform .12s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(255, 107, 92, 0.3);
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 107, 92, 0.4); background: var(--coral); }

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--border);
    box-shadow: none;
}

.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); background: transparent; box-shadow: none; }

/* ============================================
   Post card (badge-seal inspired accent)
   ============================================ */
.file-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .15s, transform .15s, box-shadow .15s;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 1px 3px rgba(26, 43, 61, 0.04);
}

.file-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 12px 24px rgba(26, 43, 61, 0.08); }

.file-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--teal-light);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12px;
    color: var(--teal-dark);
    text-transform: uppercase;
    letter-spacing: .03em;
}

.file-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: currentColor;
}

.file-card-img {
    aspect-ratio: 16/9;
    background: var(--bg-soft);
    overflow: hidden;
}

.file-card-img img { width: 100%; height: 100%; object-fit: cover; }

.file-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.file-card-body h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.file-card-body h3 a:hover { color: var(--teal-dark); }

.file-card-excerpt {
    color: var(--text-dim);
    font-size: 14px;
    flex: 1;
    margin-bottom: 14px;
}

.file-card-meta {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-faint);
    display: flex;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

/* ============================================
   Sections / grids
   ============================================ */
section { padding: 56px 0; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 28px;
}

.section-head h2 { font-size: 26px; }
.section-head .view-all { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--teal-dark); }

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

.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ============================================
   Category pills (badge/seal motif)
   ============================================ */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.pill {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    padding: 9px 18px;
    border: 1.5px solid var(--border);
    border-radius: 24px;
    color: var(--navy-soft);
    transition: border-color .15s, color .15s, background .15s;
}

.pill:hover, .pill.active { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-light); }

/* ============================================
   Video cards
   ============================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.video-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(26, 43, 61, 0.04);
    transition: transform .15s, box-shadow .15s;
}

.video-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(26, 43, 61, 0.08); }

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-soft);
    overflow: hidden;
}

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

.video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-play span {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--coral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(26, 43, 61, 0.2);
}

.video-card-body { padding: 14px 16px; }
.video-card-body h3 { font-size: 14px; font-weight: 500; font-family: var(--font-body); color: var(--navy); }

/* ============================================
   Ads
   ============================================ */
.ad-slot {
    margin: 24px auto;
    text-align: center;
    overflow: hidden;
}

/* ============================================
   Single post
   ============================================ */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    padding: 48px 0;
}

.post-header { margin-bottom: 28px; }

.post-category-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12px;
    color: var(--teal-dark);
    background: var(--teal-light);
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.post-header h1 {
    font-size: 34px;
    margin: 16px 0 16px;
}

.post-meta {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    color: var(--text-faint);
    display: flex;
    gap: 18px;
}

.post-featured-img {
    border-radius: var(--radius);
    overflow: hidden;
    margin: 24px 0;
    border: 1px solid var(--border);
}

.post-content { font-size: 16px; color: var(--text-dim); }
.post-content h2 { font-size: 24px; margin: 32px 0 14px; color: var(--navy); }
.post-content h3 { font-size: 20px; margin: 24px 0 12px; color: var(--navy); }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { margin: 0 0 16px 22px; }
.post-content li { margin-bottom: 6px; }
.post-content pre {
    background: var(--navy);
    color: #E6F7FB;
    border-radius: var(--radius);
    padding: 18px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    margin-bottom: 16px;
}
.post-content code {
    font-family: var(--font-mono);
    background: var(--teal-light);
    color: var(--teal-dark);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}
.post-content pre code { background: transparent; padding: 0; color: inherit; }
.post-content img { border-radius: var(--radius); margin: 16px 0; }
.post-content a { color: var(--teal-dark); text-decoration: underline; }

.sidebar-widget {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(26, 43, 61, 0.04);
}

.sidebar-widget h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 14px;
}

.related-list a {
    display: block;
    font-size: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    color: var(--navy-soft);
}

.related-list a:last-child { border-bottom: none; }
.related-list a:hover { color: var(--teal-dark); }

/* ============================================
   Pagination
   ============================================ */
.pagination-wrap { display: flex; justify-content: center; margin-top: 32px; }

.pagination-wrap .pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
}

.pagination-wrap .page-item { display: block; }

.pagination-wrap .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--navy-soft);
    background: #fff;
    text-decoration: none;
    line-height: 1;
}

.pagination-wrap .page-link:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-light); }

.pagination-wrap .page-item.active .page-link {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

.pagination-wrap .page-item.disabled .page-link {
    color: var(--text-faint);
    border-color: transparent;
    background: transparent;
    cursor: not-allowed;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--navy);
    padding-top: 48px;
    color: #C7D2DC;
}

.site-footer .brand { color: #fff; }

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 14px;
}

.footer-col a { display: block; font-size: 14px; color: #A8B6C2; padding: 4px 0; }
.footer-col a:hover { color: var(--teal); }
.footer-tagline { color: #8294A1; font-size: 14px; margin-top: 10px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
    font-size: 13px;
    color: #8294A1;
}

/* ============================================
   Page header (category/search/static pages)
   ============================================ */
.page-header { padding: 40px 0 0; border-bottom: 1px solid var(--border); margin-bottom: 40px; padding-bottom: 32px; }
.page-header .eyebrow { font-family: var(--font-body); font-weight: 600; color: var(--teal-dark); font-size: 13px; }
.page-header h1 { font-size: 32px; margin-top: 10px; }
.page-header p { color: var(--text-dim); margin-top: 8px; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
}

.static-content { max-width: 760px; }
.static-content h2 { font-size: 22px; margin: 28px 0 12px; }
.static-content p { color: var(--text-dim); margin-bottom: 14px; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .post-layout { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .main-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 12px 24px;
        display: none;
        box-shadow: 0 8px 16px rgba(26,43,61,0.06);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 16px; }
    .search-form { display: none; }
    .nav-toggle { display: flex; }
    .posts-grid { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
}
