/*
Theme Name: Asian Technology Hub Tech Blog
Theme URI: https://asiantechnologyhub.com
Author: Asian Technology Hub
Author URI: https://asiantechnologyhub.com
Description: Dedicated high-performance, 100% mobile and touch-responsive tech career blog and learning portal for Asian Technology Hub.
Version: 2.1.0
Text Domain: ath-blogs-theme
*/

:root {
    --ath-primary: #2563eb;
    --ath-primary-dark: #1d4ed8;
    --ath-primary-light: #60a5fa;
    --ath-secondary: #0f172a;
    --ath-dark-bg: #0b1329;
    --ath-cyan: #0284c7;
    --ath-cyan-light: #38bdf8;
    --ath-green: #22c55e;
    --ath-green-hover: #16a34a;
    --ath-amber: #f59e0b;
    --ath-text-main: #1e293b;
    --ath-text-muted: #64748b;
    --ath-border: #e2e8f0;
    --ath-border-subtle: #f1f5f9;
    --ath-card-bg: #ffffff;
    --ath-bg: #f8fafc;
    --ath-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ath-font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ath-touch-target: 44px;
}

/* =========================================================================
   BASE & RESET
   ========================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--ath-font-body);
    background-color: var(--ath-bg);
    color: var(--ath-text-main);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

img, picture, svg, video {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    color: var(--ath-primary);
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

a:hover {
    color: var(--ath-primary-dark);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.ath-container {
    width: 100%;
    max-width: min(98%, 1840px);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(12px, 1.8vw, 28px);
    padding-right: clamp(12px, 1.8vw, 28px);
}

/* =========================================================================
   TOPBAR
   ========================================================================= */
.ath-topbar {
    background: #090e1f;
    color: #e2e8f0;
    font-size: 12.5px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ath-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.ath-topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ath-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

.ath-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: athPulse 2s infinite;
}

@keyframes athPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.ath-topbar-msg {
    color: #cbd5e1;
    font-size: 12px;
}

.ath-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ath-topbar-contact {
    color: #94a3b8;
    font-weight: 600;
}

.ath-topbar-contact:hover {
    color: #ffffff;
}

.ath-topbar-wa {
    color: #4ade80;
    font-weight: 700;
}

.ath-topbar-wa:hover {
    color: #86efac;
}

.ath-topbar-link {
    color: #38bdf8;
    font-weight: 700;
}

.ath-topbar-link:hover {
    color: #7dd3fc;
}

@media (max-width: 768px) {
    .ath-topbar {
        font-size: 11.5px;
        padding: 6px 0;
    }
    .ath-topbar-contact {
        display: none;
    }
    .ath-topbar-inner {
        justify-content: center;
        text-align: center;
    }
}

/* =========================================================================
   MAIN HEADER
   ========================================================================= */
.ath-main-header {
    background: #ffffff;
    border-bottom: 1px solid var(--ath-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: top 0.2s ease;
}

body.admin-bar .ath-main-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .ath-main-header {
        top: 46px;
    }
}

.ath-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 84px;
}

.ath-brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 4px 0;
    flex-shrink: 0;
}

.ath-brand-logo {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .ath-header-container {
        height: 70px;
    }
    .ath-brand-logo {
        height: 48px;
        max-width: 190px;
    }
}

@media (max-width: 420px) {
    .ath-brand-logo {
        height: 42px;
        max-width: 160px;
    }
}

.ath-desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 24px);
}

.ath-nav-item {
    font-size: 14.5px;
    font-weight: 600;
    color: #475569;
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
}

.ath-nav-item:hover, .ath-nav-active {
    color: var(--ath-primary);
}

.ath-nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--ath-primary);
    border-radius: 2px;
}

.ath-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ath-header-search-wrap {
    position: relative;
}

.ath-header-search-wrap input {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 9px 34px 9px 14px;
    font-size: 13px;
    font-family: inherit;
    width: 160px;
    transition: all 0.2s ease;
    min-height: 40px;
}

.ath-header-search-wrap input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--ath-primary);
    width: 210px;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ath-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    pointer-events: none;
    opacity: 0.6;
}

.ath-btn-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
    min-height: 42px;
    white-space: nowrap;
}

.ath-btn-header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* Hamburger Toggle Button (Hidden on Desktop, Visible on Mobile/Tablet) */
.ath-mobile-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 8px;
    transition: all 0.2s ease;
}

.ath-mobile-toggle-btn:hover, .ath-mobile-toggle-btn:active {
    background: #e2e8f0;
}

.ath-hamburger-bar {
    width: 22px;
    height: 2.5px;
    background-color: #0f172a;
    border-radius: 2px;
    transition: all 0.25s ease;
}

@media (max-width: 992px) {
    .ath-desktop-nav {
        display: none;
    }
    .ath-header-search-wrap {
        display: none;
    }
    .ath-mobile-toggle-btn {
        display: flex;
    }
}

@media (max-width: 600px) {
    .ath-btn-header-cta {
        display: none;
    }
}

/* =========================================================================
   MOBILE TOUCH DRAWER & OVERLAY
   ========================================================================= */
.ath-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ath-drawer-overlay.ath-drawer-open {
    opacity: 1;
    visibility: visible;
}

.ath-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 360px);
    height: 100vh;
    background: #ffffff;
    z-index: 10001;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ath-mobile-drawer.ath-drawer-open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto;
}

.ath-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--ath-border);
}

.ath-drawer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.ath-drawer-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    transition: background 0.15s ease;
}

.ath-drawer-close:hover {
    background: #e2e8f0;
}

.ath-drawer-search {
    padding: 16px 20px 8px 20px;
    position: relative;
}

.ath-drawer-search input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 38px 12px 14px;
    font-size: 14px;
    font-family: inherit;
    min-height: 46px;
}

.ath-drawer-search input:focus {
    outline: none;
    border-color: var(--ath-primary);
    background: #ffffff;
}

.ath-drawer-search-icon {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
    opacity: 0.6;
}

.ath-drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    flex-grow: 1;
}

.ath-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 10px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    min-height: var(--ath-touch-target);
    transition: background 0.15s ease;
}

.ath-drawer-link:hover, .ath-drawer-link:active {
    background: #f1f5f9;
    color: var(--ath-primary);
}

.ath-dlink-active {
    background: #eff6ff;
    color: var(--ath-primary);
    font-weight: 700;
}

.ath-dlink-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.ath-dlink-text {
    flex-grow: 1;
}

.ath-dlink-arrow {
    color: #94a3b8;
    font-size: 13px;
}

.ath-drawer-badge {
    background: #fef3c7;
    color: #d97706;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
}

.ath-drawer-footer {
    padding: 18px 20px 24px 20px;
    border-top: 1px solid var(--ath-border);
    background: #f8fafc;
}

.ath-drawer-cta-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    font-size: 14.5px;
    font-weight: 800;
    padding: 14px 18px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    margin-bottom: 12px;
    min-height: 48px;
}

.ath-drawer-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.ath-drawer-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-size: 13px;
    font-weight: 700;
    padding: 10px;
    border-radius: 8px;
    min-height: 42px;
}

.ath-drawer-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ath-green);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 10px;
    border-radius: 8px;
    min-height: 42px;
}

.ath-drawer-address {
    font-size: 11.5px;
    color: #64748b;
    text-align: center;
    margin: 0;
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.ath-hero-section {
    background: linear-gradient(145deg, #090e1f 0%, #0f172a 50%, #172554 100%);
    color: #ffffff;
    padding: clamp(40px, 6vw, 75px) 0 clamp(35px, 5vw, 60px) 0;
    position: relative;
    overflow: hidden;
}

.ath-hero-badge-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: clamp(14px, 2vw, 20px);
    flex-wrap: wrap;
}

.ath-hero-pill {
    background: rgba(37, 99, 235, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.ath-hero-accreditation {
    color: #38bdf8;
    font-size: 12.5px;
    font-weight: 700;
}

.ath-hero-headline {
    font-family: var(--ath-font-heading);
    font-size: clamp(26px, 5vw, 44px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.6px;
    max-width: 900px;
    margin-bottom: clamp(12px, 2vw, 18px);
}

.ath-gradient-text {
    background: linear-gradient(90deg, #38bdf8 0%, #60a5fa 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ath-hero-subhead {
    font-size: clamp(15px, 2vw, 18px);
    color: #94a3b8;
    max-width: 780px;
    line-height: 1.65;
    margin-bottom: clamp(25px, 4vw, 40px);
}

.ath-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(10px, 2vw, 16px);
    max-width: 960px;
}

@media (max-width: 900px) {
    .ath-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ath-trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

.ath-trust-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: clamp(12px, 2vw, 16px) clamp(12px, 2vw, 18px);
}

.ath-trust-num {
    display: block;
    font-family: var(--ath-font-heading);
    font-size: clamp(20px, 3.5vw, 26px);
    font-weight: 800;
    color: #38bdf8;
    line-height: 1;
}

.ath-trust-desc {
    font-size: clamp(11px, 1.8vw, 12.5px);
    color: #cbd5e1;
    margin-top: 5px;
    display: block;
    line-height: 1.35;
}

/* =========================================================================
   TOUCH-SCROLLABLE CATEGORY FILTER STRIP
   ========================================================================= */
.ath-filter-bar {
    margin: clamp(24px, 4vw, 35px) 0 clamp(18px, 3vw, 25px) 0;
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.ath-filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 6px;
    padding-top: 2px;
    width: 100%;
    min-width: 0;
}

.ath-filter-chips::-webkit-scrollbar {
    display: none;
}

.ath-filter-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    scroll-snap-align: start;
    min-height: 38px;
    flex-shrink: 0;
}

.ath-filter-chip:hover, .ath-filter-chip:active {
    border-color: var(--ath-primary);
    color: var(--ath-primary);
    background: #eff6ff;
}

.ath-chip-active {
    background: var(--ath-primary) !important;
    border-color: var(--ath-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* =========================================================================
   FEATURED STORY CARD
   ========================================================================= */
.ath-featured-story-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    background: #ffffff;
    border: 1px solid var(--ath-border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: clamp(30px, 5vw, 50px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
    min-width: 0;
}

@media (max-width: 900px) {
    .ath-featured-story-card {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ath-featured-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: unset;
    height: auto;
    background: #0f172a;
    overflow: hidden;
}

.ath-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.ath-featured-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fbbf24;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.ath-featured-info {
    padding: clamp(20px, 4vw, 36px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ath-featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--ath-text-muted);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ath-cat-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
}

.ath-featured-title {
    font-family: var(--ath-font-heading);
    font-size: clamp(20px, 3.5vw, 25px);
    font-weight: 800;
    line-height: 1.32;
    margin-bottom: 12px;
}

.ath-featured-title a {
    color: var(--ath-secondary);
}

.ath-featured-title a:hover {
    color: var(--ath-primary);
}

.ath-featured-excerpt {
    font-size: clamp(14px, 1.8vw, 15px);
    color: #475569;
    line-height: 1.65;
    margin-bottom: 20px;
}

.ath-featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid var(--ath-border);
    padding-top: 16px;
}

.ath-author-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
}

.ath-author-avatar {
    width: 26px;
    height: 26px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
}

.ath-btn-read-featured {
    display: inline-flex;
    align-items: center;
    background: var(--ath-primary);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
    min-height: 40px;
}

.ath-btn-read-featured:hover {
    background: var(--ath-primary-dark);
}

/* =========================================================================
   CONTENT & SIDEBAR GRID
   ========================================================================= */
.ath-content-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(18px, 2.5vw, 32px);
    margin-bottom: 60px;
    align-items: start;
    width: 100%;
    min-width: 0;
}

@media (max-width: 1024px) {
    .ath-content-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ath-articles-col {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.ath-sidebar-col {
    position: sticky;
    top: 105px;
    height: fit-content;
    align-self: start;
    transition: top 0.2s ease;
    min-width: 0;
}

body.admin-bar .ath-sidebar-col {
    top: 137px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .ath-sidebar-col {
        top: 150px;
    }
}

.ath-section-heading {
    font-family: var(--ath-font-heading);
    font-size: clamp(18px, 3vw, 21px);
    font-weight: 800;
    color: var(--ath-secondary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ath-border);
}

.ath-magazine-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.8vw, 22px);
    width: 100%;
    min-width: 0;
}

@media (min-width: 1600px) {
    .ath-magazine-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .ath-magazine-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ath-magazine-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

.ath-card-item {
    background: #ffffff;
    border: 1px solid var(--ath-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (hover: hover) {
    .ath-card-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
        border-color: #cbd5e1;
    }
}

.ath-card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1200 / 630;
    height: auto;
    background: #0f172a;
    overflow: hidden;
}

.ath-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.ath-card-item:hover .ath-card-thumb {
    transform: scale(1.04);
}

.ath-card-body {
    padding: clamp(14px, 3vw, 22px);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.ath-card-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.ath-card-cat {
    display: inline-flex;
    align-items: center;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    padding: 3.5px 10px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #dbeafe;
    transition: all 0.2s ease;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
    line-height: 1.35;
    flex-shrink: 0;
}

.ath-card-cat:hover {
    background: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

.ath-card-meta {
    font-size: 12px;
    color: var(--ath-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .ath-card-meta-header {
        gap: 6px;
    }
    .ath-card-cat {
        max-width: 145px;
    }
    .ath-card-meta {
        font-size: 11.5px;
    }
}

.ath-card-title {
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.ath-card-title a {
    color: var(--ath-secondary);
}

.ath-card-title a:hover {
    color: var(--ath-primary);
}

.ath-card-excerpt {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 14px;
    flex-grow: 1;
    word-break: break-word;
    overflow-wrap: break-word;
}

.ath-card-footer {
    border-top: 1px solid var(--ath-border-subtle);
    padding-top: 12px;
}

.ath-card-read-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--ath-primary);
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}

.ath-pagination-wrap {
    margin-top: 35px;
    text-align: center;
}

.ath-pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-weight: 600;
    font-size: 13.5px;
    margin: 0 3px;
}

.ath-pagination-wrap .page-numbers.current {
    background: var(--ath-primary);
    color: #ffffff;
    border-color: var(--ath-primary);
}

/* =========================================================================
   SIDEBAR
   ========================================================================= */
.ath-side-card {
    background: #ffffff;
    border: 1px solid var(--ath-border);
    border-radius: 16px;
    padding: clamp(18px, 3vw, 24px);
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.ath-sticky-side-card {
    position: sticky;
    top: 104px;
    transition: top 0.2s ease;
}

body.admin-bar .ath-sticky-side-card {
    top: 136px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .ath-sticky-side-card {
        top: 150px;
    }
}

.ath-side-counseling {
    background: linear-gradient(145deg, #0b1329 0%, #172554 100%);
    color: #ffffff;
    border: 1px solid #1e3a8a;
}

.ath-side-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 3px 9px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.ath-side-counseling h4 {
    color: #ffffff;
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 8px;
}

.ath-side-counseling p {
    color: #93c5fd;
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.ath-side-features {
    font-size: 12.5px;
    color: #e2e8f0;
    line-height: 1.7;
    margin-bottom: 18px;
}

.ath-btn-side-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    min-height: 44px;
    text-align: center;
}

.ath-btn-side-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ath-green);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    min-height: 42px;
    text-align: center;
}

.ath-side-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15.5px;
    font-weight: 800;
    color: var(--ath-secondary);
    margin-bottom: 14px;
    border-bottom: 1px solid var(--ath-border);
    padding-bottom: 8px;
}

.ath-title-icon {
    flex-shrink: 0;
    display: block;
}

.ath-tracks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ath-track-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    background: #f8fafc;
    transition: background 0.15s ease, transform 0.15s ease;
    min-height: 46px;
}

.ath-track-item:hover, .ath-track-item:active {
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: translateX(3px);
}

.ath-track-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ath-track-icon svg {
    display: block;
}

.ath-track-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ath-track-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.ath-track-sub {
    font-size: 11px;
    color: #64748b;
}

.ath-track-arrow {
    color: var(--ath-primary);
    font-weight: 800;
    font-size: 13px;
}

/* =========================================================================
   BOTTOM BANNER
   ========================================================================= */
.ath-bottom-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: clamp(30px, 5vw, 45px) 0;
    margin-top: 30px;
}

.ath-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.ath-banner-text h2 {
    font-family: var(--ath-font-heading);
    font-size: clamp(20px, 3.5vw, 24px);
    font-weight: 800;
    margin-bottom: 6px;
}

.ath-banner-text p {
    color: #94a3b8;
    font-size: clamp(13.5px, 2vw, 15px);
    margin: 0;
}

.ath-btn-banner {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    font-size: 14.5px;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    min-height: 48px;
    white-space: nowrap;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.ath-site-footer {
    background: #090e1f;
    color: #94a3b8;
    padding: clamp(40px, 6vw, 60px) 0 25px 0;
    border-top: 1px solid #1e293b;
}

.ath-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: clamp(24px, 4vw, 40px);
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .ath-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

.ath-footer-logo {
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    margin-bottom: 14px;
    display: block;
}

.ath-footer-bio {
    font-size: 13px;
    line-height: 1.65;
    color: #94a3b8;
    margin-bottom: 14px;
}

.ath-trust-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.ath-footer-col-title {
    font-family: var(--ath-font-heading);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
}

.ath-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ath-footer-menu li {
    margin-bottom: 8px;
}

.ath-footer-menu a {
    color: #cbd5e1;
    font-size: 13px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
}

.ath-footer-menu a:hover {
    color: #38bdf8;
    padding-left: 2px;
}

.ath-footer-contact p {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 10px;
}

.ath-footer-contacts a {
    color: #38bdf8;
}

.ath-footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #64748b;
}

.ath-footer-bottom-links a {
    color: #94a3b8;
}

.ath-footer-bottom-links a:hover {
    color: #ffffff;
}

.ath-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 28px;
}

.ath-filter-chip { display: inline-flex; align-items: center; gap: 6px; }
.ath-filter-chip svg { flex-shrink: 0; display: block; }
