/* =========================================
   AI ACADEMY - Premium Interactive Layout
   =========================================
   Engaging, high-retention design for 
   maximum time-on-page and ad visibility.
   ========================================= */

/* --- BASE OVERRIDES --- */
.academy-page { background: #050505; color: #e4e4e7; }
/* Academy has no fixed header, so remove the global body padding-top */
body.academy-page { padding-top: 0 !important; }

/* --- HERO V2 --- */
.academy-hero-v2 {
    position: relative;
    text-align: center;
    padding: 70px 20px 50px;
    background: radial-gradient(ellipse at top center, rgba(245, 158, 11, 0.10) 0%, transparent 60%);
    border-bottom: 1px solid #1a1a1e;
    overflow: hidden;
}

.academy-hero-v2::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge-v2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 50px;
    margin-bottom: 20px;
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.06);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.academy-hero-v2 h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.academy-hero-v2 h1 span {
    background: linear-gradient(135deg, #F59E0B 0%, #fbbf24 50%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.academy-hero-v2 .hero-subtitle {
    color: #a1a1aa;
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- SEARCH BAR --- */
.academy-search-wrap {
    max-width: 520px;
    margin: 0 auto 36px;
    position: relative;
}

.academy-search-wrap i.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #52525b;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.2s;
}

.academy-search-wrap input {
    width: 100%;
    padding: 14px 18px 14px 46px;
    background: rgba(15, 15, 17, 0.8);
    border: 1px solid #27272a;
    border-radius: 14px;
    color: #e4e4e7;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.academy-search-wrap input:focus {
    border-color: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.academy-search-wrap input:focus ~ i.search-icon {
    color: #F59E0B;
}

.academy-search-wrap input::placeholder {
    color: #52525b;
}

.search-clear-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #52525b;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
    display: none;
    transition: color 0.2s;
}

.search-clear-btn.visible { display: block; }
.search-clear-btn:hover { color: #F59E0B; }

/* --- STATS COUNTER --- */
.academy-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #F59E0B;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.78rem;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* --- NAVIGATION BACK --- */
.academy-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #71717a;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 8px 16px;
    border: 1px solid #27272a;
    border-radius: 50px;
    transition: all 0.2s;
    margin-top: 20px;
}
.academy-nav-back:hover {
    border-color: #F59E0B;
    color: #F59E0B;
}

/* --- MAIN CONTAINER --- */
.academy-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* --- SECTION HEADERS --- */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1a1a1e;
}

.section-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: #F59E0B;
    font-size: 1.1rem;
}

.section-header .section-count {
    background: rgba(245, 158, 11, 0.12);
    color: #F59E0B;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    margin-left: auto;
}

/* --- LEARNING PATHS --- */
.learning-paths-section {
    margin-bottom: 50px;
    padding-top: 50px;
}

.paths-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.path-card {
    background: linear-gradient(145deg, #0f0f11, #09090b);
    border: 1px solid #1f1f23;
    border-radius: 16px;
    padding: 28px 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--path-color, #F59E0B);
    opacity: 0;
    transition: opacity 0.3s;
}

.path-card:hover {
    transform: translateY(-4px);
    border-color: var(--path-color, #F59E0B);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.path-card:hover::before {
    opacity: 1;
}

.path-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
    background: rgba(245, 158, 11, 0.08);
    color: var(--path-color, #F59E0B);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.path-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.path-card p {
    font-size: 0.85rem;
    color: #71717a;
    line-height: 1.5;
    margin: 0 0 16px;
    flex-grow: 1;
}

.path-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #52525b;
}

.path-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.path-progress-bar {
    width: 100%;
    height: 4px;
    background: #1f1f23;
    border-radius: 4px;
    margin-top: 14px;
    overflow: hidden;
}

.path-progress-fill {
    height: 100%;
    background: var(--path-color, #F59E0B);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

/* --- CATEGORY FILTER TABS --- */
.category-filter-section {
    margin-bottom: 40px;
    position: sticky;
    top: 74px;
    z-index: 100;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 0;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    border-bottom: 1px solid #1a1a1e;
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
    flex-shrink: 0;
    padding: 9px 18px;
    border-radius: 50px;
    border: 1px solid #27272a;
    background: transparent;
    color: #71717a;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.cat-tab:hover {
    border-color: #52525b;
    color: #e4e4e7;
    background: rgba(255, 255, 255, 0.03);
}

.cat-tab.active {
    background: #F59E0B;
    color: #000;
    border-color: #F59E0B;
    font-weight: 600;
}

.cat-tab .tab-count {
    display: inline-block;
    margin-left: 6px;
    background: rgba(0, 0, 0, 0.15);
    padding: 1px 7px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
}

.cat-tab.active .tab-count {
    background: rgba(0, 0, 0, 0.2);
}

/* --- FEATURED ARTICLE --- */
.featured-section {
    margin-bottom: 50px;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(145deg, #0f0f11, #09090b);
    border: 1px solid #1f1f23;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
}

.featured-card:hover {
    border-color: #F59E0B;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(245, 158, 11, 0.1);
    transform: translateY(-3px);
}

.featured-image {
    position: relative;
    min-height: 340px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F59E0B;
    color: #000;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 6px 14px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-body {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-category {
    display: inline-block;
    font-size: 0.78rem;
    color: #F59E0B;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.featured-body h3 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.featured-body p {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 24px;
}

.featured-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.82rem;
    color: #71717a;
    margin-bottom: 24px;
}

.featured-meta-row span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #F59E0B;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.2s;
}

.featured-card:hover .featured-cta {
    gap: 12px;
}

/* --- GUIDE CARDS V2 --- */
.guides-section { margin-bottom: 50px; }

.guides-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.guide-card-v2 {
    background: #09090b;
    border: 1px solid #1f1f23;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.guide-card-v2:hover {
    transform: translateY(-5px);
    border-color: #3f3f46;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.guide-card-v2.is-read {
    opacity: 0.7;
}

.guide-card-v2.is-read:hover {
    opacity: 1;
}

/* Card Image */
.card-v2-image {
    position: relative;
    height: 195px;
    overflow: hidden;
}

.card-v2-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-card-v2:hover .card-v2-image img {
    transform: scale(1.06);
}

/* Category Badge */
.card-v2-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 2;
}

.badge-beginner { background: #10b981; color: #000; }
.badge-technique { background: #8b5cf6; color: #fff; }
.badge-business { background: #3b82f6; color: #fff; }
.badge-comparison { background: #ec4899; color: #fff; }
.badge-legal { background: #ef4444; color: #fff; }
.badge-resource { background: #06b6d4; color: #000; }
.badge-analysis { background: #f97316; color: #000; }
.badge-technical { background: #6366f1; color: #fff; }
.badge-default { background: #F59E0B; color: #000; }
.badge-tool-guide { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; }

/* Bookmark Button */
.card-v2-bookmark {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    z-index: 2;
}

.card-v2-bookmark:hover {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
    border-color: rgba(245, 158, 11, 0.3);
    transform: scale(1.1);
}

.card-v2-bookmark.bookmarked {
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
}

/* Read Check */
.card-v2-read-check {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #10b981;
    color: #000;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 2;
}

.guide-card-v2.is-read .card-v2-read-check {
    display: flex;
}

/* Card Body */
.card-v2-body {
    padding: 20px 22px 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-v2-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: #52525b;
    margin-bottom: 10px;
}

.card-v2-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-v2-difficulty {
    display: flex;
    gap: 3px;
}

.diff-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #27272a;
}

.diff-dot.filled { background: #F59E0B; }

.card-v2-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.card-v2-desc {
    color: #71717a;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 18px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-v2-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #1a1a1e;
}

.card-v2-cta {
    color: #F59E0B;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.guide-card-v2:hover .card-v2-cta {
    gap: 10px;
}

.card-v2-share {
    background: none;
    border: none;
    color: #3f3f46;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
    transition: color 0.2s;
}

.card-v2-share:hover {
    color: #F59E0B;
}

/* --- NO RESULTS --- */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-results i {
    font-size: 3rem;
    color: #27272a;
    margin-bottom: 16px;
}

.no-results h3 {
    color: #52525b;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.no-results p {
    color: #3f3f46;
    font-size: 0.9rem;
}

/* --- QUICK TIPS --- */
.tips-section {
    margin-bottom: 60px;
    padding-top: 10px;
}

.tip-carousel {
    position: relative;
    background: linear-gradient(145deg, #0f0f11, #09090b);
    border: 1px solid #1f1f23;
    border-radius: 20px;
    padding: 36px 40px;
    overflow: hidden;
}

.tip-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #F59E0B;
    border-radius: 4px 0 0 4px;
}

.tip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.tip-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #F59E0B;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tip-nav {
    display: flex;
    gap: 6px;
}

.tip-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #27272a;
    background: transparent;
    color: #71717a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.8rem;
}

.tip-nav-btn:hover {
    border-color: #F59E0B;
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.05);
}

.tip-content {
    position: relative;
    min-height: 60px;
}

.tip-text {
    font-size: 1.1rem;
    color: #e4e4e7;
    line-height: 1.7;
    margin: 0;
    animation: tipFadeIn 0.4s ease;
}

.tip-text strong {
    color: #F59E0B;
}

.tip-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.tip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #27272a;
    cursor: pointer;
    transition: all 0.2s;
}

.tip-dot.active {
    background: #F59E0B;
    width: 20px;
    border-radius: 4px;
}

@keyframes tipFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- NEWSLETTER CTA --- */
.newsletter-section {
    margin-bottom: 60px;
}

.newsletter-card {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.06), rgba(245, 158, 11, 0.02));
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06), transparent 70%);
    pointer-events: none;
}

.newsletter-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
}

.newsletter-card p {
    color: #71717a;
    font-size: 0.95rem;
    margin: 0 0 28px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(9, 9, 11, 0.8);
    border: 1px solid #27272a;
    border-radius: 12px;
    color: #e4e4e7;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-form input:focus {
    border-color: #F59E0B;
}

.newsletter-form input::placeholder {
    color: #52525b;
}

.newsletter-form button {
    padding: 14px 24px;
    background: #F59E0B;
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.newsletter-form button:hover {
    background: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
}

.newsletter-success {
    display: none;
    color: #10b981;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 14px;
}

.newsletter-success.show { display: block; }

/* --- SCROLL ANIMATIONS --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children .guide-card-v2 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.stagger-children.visible .guide-card-v2 {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible .guide-card-v2:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible .guide-card-v2:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible .guide-card-v2:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible .guide-card-v2:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible .guide-card-v2:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible .guide-card-v2:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible .guide-card-v2:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible .guide-card-v2:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.visible .guide-card-v2:nth-child(9) { transition-delay: 0.45s; }
.stagger-children.visible .guide-card-v2:nth-child(10) { transition-delay: 0.5s; }

/* Read status on guide cards */
.guide-card-v2.is-read .card-v2-title::after {
    content: ' \2713';
    color: #10b981;
    font-size: 0.85rem;
}

/* --- BOOKMARKS FILTER --- */
.bookmarks-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 7px 14px;
    border-radius: 50px;
    border: 1px solid #27272a;
    background: transparent;
    color: #71717a;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.bookmarks-toggle:hover {
    border-color: #F59E0B;
    color: #F59E0B;
}

.bookmarks-toggle.active {
    background: rgba(245, 158, 11, 0.1);
    border-color: #F59E0B;
    color: #F59E0B;
}

/* --- BACK TO TOP --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #F59E0B;
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 200;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #fbbf24;
    transform: translateY(-2px);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
    .paths-scroll {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 220px;
    }

    .featured-body {
        padding: 28px 24px;
    }

    .featured-body h3 {
        font-size: 1.3rem;
    }

    .guides-grid-v2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .academy-hero-v2 {
        padding: 50px 16px 36px;
    }

    .academy-hero-v2 h1 {
        font-size: 1.8rem;
    }

    .academy-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .category-filter-section {
        top: 60px;
    }

    .tip-carousel {
        padding: 28px 24px;
    }

    .tip-text {
        font-size: 0.95rem;
    }

    .newsletter-card {
        padding: 36px 24px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .section-header {
        flex-wrap: wrap;
    }

    .bookmarks-toggle {
        margin-left: 0;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .paths-scroll {
        grid-template-columns: repeat(2, 1fr);
    }

    .guides-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- MOBILE: Disable scroll animations to prevent invisible content bug --- */
@media (max-width: 768px) {
    .fade-in-up {
        opacity: 1 !important;
        transform: none !important;
    }

    .stagger-children .guide-card-v2 {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Keep a subtle entrance animation that doesn't hide content */
    .guide-card-v2 {
        animation: mobileCardFadeIn 0.3s ease both;
    }

    .guide-card-v2:nth-child(1) { animation-delay: 0.03s; }
    .guide-card-v2:nth-child(2) { animation-delay: 0.06s; }
    .guide-card-v2:nth-child(3) { animation-delay: 0.09s; }
    .guide-card-v2:nth-child(4) { animation-delay: 0.12s; }
    .guide-card-v2:nth-child(5) { animation-delay: 0.15s; }
    .guide-card-v2:nth-child(6) { animation-delay: 0.18s; }

    /* Disable hover transforms on mobile for performance */
    .guide-card-v2:hover {
        transform: none !important;
    }

    .path-card:hover {
        transform: none !important;
    }

    .featured-card:hover {
        transform: none !important;
    }
}

@keyframes mobileCardFadeIn {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* --- LOADING SHIMMER --- */
.shimmer-card {
    background: #09090b;
    border: 1px solid #1f1f23;
    border-radius: 16px;
    overflow: hidden;
}

.shimmer-image {
    height: 195px;
    background: linear-gradient(90deg, #0f0f11 25%, #1a1a1e 50%, #0f0f11 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.shimmer-body { padding: 20px; }

.shimmer-line {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #0f0f11 25%, #1a1a1e 50%, #0f0f11 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 12px;
}

.shimmer-line.short { width: 60%; }
.shimmer-line.medium { width: 80%; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
