/* ============================================
   GUIDES HUB STYLING - ULTRA SPECIFIC
   ============================================ */

.guides-hero {
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.hero-description {
    font-size: 1.15rem;
    color: #e2e8f0;
    margin: 0;
}

.guides-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
}

/* ============================================
   CATEGORY ABOUT SECTION
   ============================================ */

.category-about-section {
    background: #ffffff;
    border-bottom: 2px solid #e2e8f0;
}

.category-about-section .guides-container {
    padding-top: 50px;
    padding-bottom: 50px;
}

.category-about-block {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    background: #f7f8f9;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 35px;
}

.category-about-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-about-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 10px;
}

.category-about-icon-fallback {
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    background: rgba(44, 82, 130, 0.08);
    border-radius: 10px;
}

.category-about-content {
    flex: 1;
}

.category-about-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c5282;
    margin: 0 0 12px 0;
}

.category-about-text {
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.75;
    margin: 0;
}

@media (max-width: 768px) {
    .category-about-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 20px;
        gap: 20px;
    }

    .category-about-title {
        font-size: 1.2rem;
    }

    .category-about-text {
        font-size: 1rem;
    }
}

/* Featured Guides Section */
.featured-section {
    background: #f7f8f9;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

/* Featured Card Styling - ULTRA SPECIFIC */
section.featured-section a.guide-card.featured-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

section.featured-section a.guide-card.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(44, 82, 130, 0.15);
    border-color: #2c5282;
}

/* Make thumbnails taller - FEATURED - ULTRA SPECIFIC */
section.featured-section .featured-card .card-thumbnail {
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    overflow: hidden !important;
    background: #e2e8f0 !important;
    position: relative !important;
    display: block !important;
}

section.featured-section .featured-card .card-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    display: block !important;
}

section.featured-section a.guide-card.featured-card:hover .card-thumbnail img {
    transform: scale(1.05) !important;
}

/* Category overlay - ULTRA SPECIFIC WITH MAXIMUM FORCE */
section.featured-section .featured-card .card-thumbnail span.overlay-category,
section.all-guides-section .guides-grid .guide-card .card-thumbnail span.overlay-category {
    position: absolute !important;
    bottom: 15px !important;
    right: 15px !important;
    left: auto !important;
    top: auto !important;
    background: rgba(107, 182, 255, 0.95) !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    margin: 0 !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    line-height: 1.2 !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    z-index: 999 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
}

.card-content {
    padding: 20px;
    flex: 1;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    line-height: 1.3;
}

.card-arrow {
    padding: 0 20px 20px;
    color: #2c5282;
    transition: transform 0.3s ease;
}

section.featured-section a.guide-card:hover .card-arrow,
section.all-guides-section a.guide-card:hover .card-arrow {
    transform: translateX(5px);
}

/* Categories Section */
.categories-section {
    background: #ffffff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Fixed 2 rows of 4 for main category listings */
.categories-grid-4col {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .categories-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .categories-grid-4col {
        grid-template-columns: 1fr;
    }
}

.category-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(44, 82, 130, 0.12);
    border-color: #2c5282;
}

.category-icon {
    flex-shrink: 0;
    color: #2c5282;
}

.category-content {
    flex: 1;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 5px 0;
}

.category-count {
    font-size: 0.85rem;
    color: #526175;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.category-description {
    font-size: 0.9rem;
    color: #526175;
    margin: 0;
    line-height: 1.4;
}

.category-arrow {
    color: #2c5282;
    transition: transform 0.3s ease;
}

.category-card:hover .category-arrow {
    transform: translateX(5px);
}

/* All Guides Section */
.all-guides-section {
    background: #f7f8f9;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Regular Guide Cards - ULTRA SPECIFIC */
section.all-guides-section a.guide-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    text-decoration: none;
}

section.all-guides-section a.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(44, 82, 130, 0.12);
    border-color: #2c5282;
}

/* Make thumbnails taller - ALL GUIDES - ULTRA SPECIFIC */
section.all-guides-section .guides-grid .guide-card .card-thumbnail {
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    overflow: hidden !important;
    background: #e2e8f0 !important;
    position: relative !important;
    display: block !important;
}

section.all-guides-section .guides-grid .guide-card .card-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    display: block !important;
}

section.all-guides-section a.guide-card:hover .card-thumbnail img {
    transform: scale(1.05) !important;
}

section.all-guides-section .guides-grid .guide-card .card-content {
    padding: 20px;
}

section.all-guides-section .guides-grid .guide-card .card-title {
    font-size: 1.15rem;
}

/* Pagination */
.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination ul {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: block;
    padding: 10px 16px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: #2c5282;
    color: #2c5282;
    transform: translateY(-2px);
}

.pagination .current {
    background: #2c5282;
    color: #ffffff;
    border-color: #2c5282;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .guides-container {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .guides-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        flex-direction: column;
        text-align: center;
    }

    .category-arrow {
        display: none;
    }
    
    section.featured-section .featured-card .card-thumbnail {
        height: 240px !important;
        min-height: 240px !important;
        max-height: 240px !important;
    }
    
    section.all-guides-section .guides-grid .guide-card .card-thumbnail {
        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;
    }
}

@media (max-width: 480px) {
    .guides-hero {
        padding: 40px 15px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .card-title {
        font-size: 1.1rem;
    }
    
    section.featured-section .featured-card .card-thumbnail span.overlay-category,
    section.all-guides-section .guide-card .card-thumbnail span.overlay-category {
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
        bottom: 10px !important;
        right: 10px !important;
    }
}

/* ============================================
   SINGLE GUIDE TEMPLATE
   ============================================ */

/* Guide Header */
.guide-header {
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    color: #ffffff;
    padding: 40px 20px 40px;
}

.guide-header-container {
    max-width: 1000px;
    margin: 0 auto;
}

.guide-breadcrumbs {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.guide-breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.guide-breadcrumbs a:hover {
    opacity: 0.8;
}

.breadcrumb-separator {
    margin: 0 8px;
    opacity: 0.6;
}

.guide-breadcrumbs .current-page {
    opacity: 0.7;
}

.guide-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    line-height: 1.2;
}

/* ---- Top Author Meta Bar ---- */
.guide-author-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.guide-author-meta .guide-author-meta-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    object-fit: cover;
    vertical-align: middle;
}

.guide-author-meta-link {
    color: #a8d4f5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.guide-author-meta-link:hover {
    color: #ffffff;
}

.guide-meta-sep {
    opacity: 0.4;
    font-size: 1rem;
}

/* ---- Skills Bar ---- */
.guide-skills-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.guide-skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f7f8f9;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    padding: 5px 12px;
    color: #2d3748;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.guide-skill-badge:hover {
    border-color: #2c5282;
    color: #2c5282;
}

.guide-skill-badge img {
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
}

/* ---- Bottom Author Bio Card ---- */
.guide-author-bio-section {
    background: #f7f8f9;
    padding: 50px 20px;
    border-top: 2px solid #e2e8f0;
}

.author-bio-card {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
}

.author-bio-avatar-wrap {
    flex-shrink: 0;
}

.author-bio-avatar {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    border: 3px solid #2c5282;
    object-fit: cover;
    display: block;
}

.author-bio-content {
    flex: 1;
}

.author-bio-role {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2c5282;
    margin: 0 0 4px 0;
}

.author-bio-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 12px 0;
}

.author-bio-name a {
    color: inherit;
    text-decoration: none;
}

.author-bio-name a:hover {
    color: #2c5282;
}

.author-bio-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
    margin: 0 0 20px 0;
}

.author-bio-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.author-bio-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid #2c5282;
    border-radius: 6px;
    color: #2c5282;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.author-bio-link:hover {
    background: #2c5282;
    color: #ffffff;
}

.author-bio-link--yt {
    border-color: #cc0000;
    color: #cc0000;
}

.author-bio-link--yt:hover {
    background: #cc0000;
    color: #ffffff;
}

@media (max-width: 600px) {
    .author-bio-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
        gap: 18px;
    }

    .author-bio-links {
        justify-content: center;
    }

    .guide-author-meta {
        font-size: 0.82rem;
        gap: 6px;
    }
}

/* Video Section */
.guide-video-section {
    background: #f7f8f9;
    padding: 40px 20px;
}

.guide-container {
    max-width: 1000px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Featured Image Section */
.guide-featured-image-section {
    background: #f7f8f9;
    padding: 40px 20px;
}

.guide-featured-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.guide-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Guide Content Section */
.guide-content-section {
    background: #ffffff;
    padding: 20px 20px;
}

.guide-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.guide-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

/* Main Content Area */
.guide-main-content p {
    margin-bottom: 25px;
}

.guide-main-content h2,
.guide-main-content h3,
.guide-main-content h4 {
    color: #2c5282;
    margin: 30px 0 15px 0;
}

.guide-main-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.guide-main-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

.guide-main-content ul,
.guide-main-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.guide-main-content li {
    margin-bottom: 10px;
}

.guide-main-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Guide Section Cards (auto-generated from H2s) */

.guide-section {
    background: #f7f8f9;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}

.guide-section--no-header {
    padding: 24px 30px;
}

.guide-section-header {
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    padding: 0;
}

.guide-section-header h2 {
    color: #ffffff !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 14px 24px !important;
    line-height: 1.3 !important;
}

.guide-section > .guide-main-content {
    padding: 24px 30px;
}

.section-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2d3748;
}

.section-content p {
    margin-bottom: 15px;
}

.section-content ul,
.section-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.section-content li {
    margin-bottom: 8px;
}

.section-content h3,
.section-content h4 {
    color: #2d3748;
    margin: 20px 0 10px 0;
}

.section-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

/* FAQ disclosures — a Details block in a guide body; .not-faq opts one out of FAQ schema */
.guide-main-content details {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin: 0 0 12px 0;
}

.guide-main-content details:last-child {
    margin-bottom: 0;
}

.guide-main-content summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    color: #2c5282;
    line-height: 1.4;
    list-style: none;
}

.guide-main-content summary::-webkit-details-marker {
    display: none;
}

.guide-main-content summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1;
    color: #2c5282;
}

.guide-main-content details[open] summary::after {
    content: "\2013";
}

.guide-main-content details[open] summary {
    border-bottom: 1px solid #e2e8f0;
}

.guide-main-content summary:hover {
    color: #1e3a5f;
}

.guide-main-content details > *:not(summary) {
    margin: 0;
    padding: 0 18px;
}

.guide-main-content details > summary + * {
    padding-top: 14px;
}

.guide-main-content details > *:last-child:not(summary) {
    padding-bottom: 16px;
}

/* Related calculators — rendered by osrs_calculator_links() on guides and skill archives */
.related-tools {
    max-width: 1160px;
    margin: 30px auto;
    background: #f7f8f9;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

/* Inside a guide it matches the width of the section cards around it. */
.guide-content .related-tools {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.related-tools-header {
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
}

.related-tools-header h2 {
    margin: 0;
    padding: 14px 24px;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
}

.related-tools-body {
    padding: 20px 24px 24px;
}

.related-tools-intro {
    margin: 0 0 16px;
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
}

.related-tools-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.related-tools-list li {
    margin: 0;
}

.related-tool {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.related-tool:hover,
.related-tool:focus-visible {
    border-color: #2c5282;
    box-shadow: 0 4px 16px rgba(44, 82, 130, 0.12);
    transform: translateY(-2px);
}

.related-tool-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin: 0;
    border-radius: 0;
}

.related-tool-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.related-tool-title {
    font-weight: 700;
    color: #2c5282;
    font-size: 1.05rem;
    line-height: 1.3;
}

.related-tool-desc {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.45;
}

.related-tool-go {
    margin-left: auto;
    flex-shrink: 0;
    color: #2c5282;
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.related-tool:hover .related-tool-go {
    transform: translateX(3px);
}

.related-tools-all {
    margin: 16px 0 0;
    font-size: 0.95rem;
}

.related-tools-all a {
    color: #2c5282;
    font-weight: 600;
}

@media (max-width: 1199px) {
    .related-tools {
        margin-left: 16px;
        margin-right: 16px;
    }
}

@media (max-width: 768px) {
    .related-tools-header h2 {
        font-size: 1.2rem;
        padding: 12px 16px;
    }

    .related-tools-body {
        padding: 16px;
    }

    .related-tool {
        padding: 12px;
        gap: 12px;
    }
}

/* Related Guides Section */
.related-guides-section {
    background: #f7f8f9;
    padding: 60px 20px;
    border-top: 2px solid #e2e8f0;
}

.related-guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Related Guide Card Styling */
.related-guides-section .guide-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    text-decoration: none;
}

.related-guides-section .guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(44, 82, 130, 0.12);
    border-color: #2c5282;
}

/* Related guides thumbnails - 16:9 aspect ratio */
.related-guides-section .guide-card .card-thumbnail {
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    overflow: hidden !important;
    background: #e2e8f0 !important;
    position: relative !important;
    display: block !important;
}

.related-guides-section .guide-card .card-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    display: block !important;
}

.related-guides-section .guide-card:hover .card-thumbnail img {
    transform: scale(1.05) !important;
}

.related-guides-section .guide-card .card-content {
    padding: 20px;
}

.related-guides-section .guide-card .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    line-height: 1.3;
}

/* Responsive */
@media (max-width: 768px) {
    .guide-header {
        padding: 30px 15px 30px;
    }
    
    .guide-title {
        font-size: 2.2rem;
    }
    
    .guide-video-section,
    .guide-featured-image-section {
        padding: 30px 15px;
    }
    
    .guide-content-section {
        padding: 40px 15px;
    }
    
    .guide-content {
        font-size: 1rem;
    }
    
    .guide-section--no-header {
        padding: 18px 20px;
    }

    .guide-section-header h2 {
        font-size: 1.15rem !important;
        padding: 12px 18px !important;
    }

    .guide-section > .guide-main-content {
        padding: 18px 20px;
    }
    
    .related-guides-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .guide-title {
        font-size: 1.8rem;
    }
    
    .guide-breadcrumbs {
        font-size: 0.8rem;
    }
}

/* ============================================
   GUIDE BOTTOM SECTIONS
   ============================================ */

/* Browse Categories Section */
.guide-categories-section {
    background: #ffffff;
    padding: 60px 20px;
    border-top: 2px solid #e2e8f0;
}

.guide-categories-section .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
}

/* View All Button Section */
.view-all-section {
    background: #f7f8f9;
    padding: 40px 20px;
}

.view-all-section .browse-all-cta {
    text-align: center;
}

/* Comments Section */
.guide-comments-section {
    background: #ffffff;
    padding: 60px 20px;
    border-top: 2px solid #e2e8f0;
}

.guide-comments-section .comments-area {
    max-width: 800px;
    margin: 0 auto;
}

.guide-comments-section .comments-title,
.guide-comments-section .comment-reply-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c5282;
    margin-bottom: 30px;
}

.guide-comments-section .comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.guide-comments-section .comment {
    background: #f7f8f9;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}

.guide-comments-section .comment-author {
    font-weight: 700;
    color: #2c5282;
    margin-bottom: 8px;
}

.guide-comments-section .comment-meta {
    font-size: 0.85rem;
    color: #526175;
    margin-bottom: 15px;
}

.guide-comments-section .comment-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.guide-comments-section .reply {
    margin-top: 10px;
}

.guide-comments-section .comment-reply-link {
    color: #2c5282;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.guide-comments-section .comment-reply-link:hover {
    color: #1e3a5f;
}

/* Comment Form */
.guide-comments-section .comment-form {
    background: #f7f8f9;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 30px;
}

.guide-comments-section .comment-form label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.guide-comments-section .comment-form input[type="text"],
.guide-comments-section .comment-form input[type="email"],
.guide-comments-section .comment-form input[type="url"],
.guide-comments-section .comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.guide-comments-section .comment-form input:focus,
.guide-comments-section .comment-form textarea:focus {
    outline: none;
    border-color: #2c5282;
}

.guide-comments-section .comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.guide-comments-section .form-submit {
    margin-bottom: 0;
}

.guide-comments-section .submit {
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    color: #ffffff;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guide-comments-section .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .guide-categories-section,
    .guide-comments-section {
        padding: 40px 15px;
    }
    
    .view-all-section {
        padding: 30px 15px;
    }
    
    .guide-comments-section .comment {
        padding: 20px;
    }
    
    .guide-comments-section .comment-form {
        padding: 20px;
    }
}

/* ============================================
   SINGLE GUIDE PAGE - CATEGORY BADGES FIX
   ============================================ */

/* Featured image badge - force proper positioning */
.guide-featured-image-section .overlay-category,
.guide-video-section .overlay-category {
    position: absolute !important;
    bottom: 15px !important;
    right: 15px !important;
    background: rgba(107, 182, 255, 0.95) !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    z-index: 999 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Related guides section - always show badges */
.related-guides-section .guide-card .card-thumbnail {
    position: relative !important;
}

.related-guides-section .guide-card .card-thumbnail .overlay-category {
    position: absolute !important;
    bottom: 15px !important;
    right: 15px !important;
    background: rgba(107, 182, 255, 0.95) !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    z-index: 999 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Make sure related guide cards don't hide badges */
.related-guides-section .guide-card {
    overflow: visible !important;
}

.related-guides-section .guide-card .card-thumbnail {
    overflow: hidden !important;
}

/* WordPress Image Alignment Classes */
.guide-main-content img.aligncenter,
.section-content img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.guide-main-content img.alignleft,
.section-content img.alignleft {
    float: left;
    margin: 5px 20px 15px 0;
}

.guide-main-content img.alignright,
.section-content img.alignright {
    float: right;
    margin: 5px 0 15px 20px;
}

.guide-main-content img.alignnone,
.section-content img.alignnone {
    margin: 15px 0;
}

/* WordPress Caption Styling (to keep it consistent) */
.guide-main-content .wp-caption,
.section-content .wp-caption {
    max-width: 100%;
}

.guide-main-content .wp-caption.aligncenter,
.section-content .wp-caption.aligncenter {
    margin-left: auto;
    margin-right: auto;
}

.guide-main-content .wp-caption.alignleft,
.section-content .wp-caption.alignleft {
    float: left;
    margin: 5px 20px 15px 0;
}

.guide-main-content .wp-caption.alignright,
.section-content .wp-caption.alignright {
    float: right;
    margin: 5px 0 15px 20px;
}

.guide-main-content .wp-caption-text,
.section-content .wp-caption-text {
    font-size: 0.9rem;
    color: #526175;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.boot-card{display:flex;align-items:stretch;background:#fff;border:1px solid #e2e2e2;border-radius:8px;overflow:hidden;margin-bottom:20px;max-width:520px;transition:box-shadow .2s ease}
.boot-card:hover{box-shadow:0 2px 12px rgba(0,0,0,.08)}
.boot-card-left{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 20px;gap:16px}
.boot-card-icon{width:100px;height:100px;display:flex;align-items:center;justify-content:center;background:#e8e8e8;border-radius:8px}
.boot-card-icon img{width:70px;height:70px;image-rendering:pixelated;image-rendering:crisp-edges}
.boot-card-meta{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:1.05rem;color:#555;text-align:center}
.boot-card-meta span{display:block}
.meta-label{font-weight:600;color:#333}
.boot-card-stats{flex-shrink:0;display:flex;align-items:center;justify-content:center;padding:12px;border-left:1px solid #f0f0f0}
.boot-card-stats img{display:block;width:230px;height:auto;border-radius:4px}
.tier-label{display:inline-block;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;padding:3px 10px;border-radius:4px;margin-bottom:12px;color:#fff}
.tier-early{background:#2e7d32}.tier-mid{background:#b45309}.tier-late{background:#c62828}.tier-niche{background:#7b1fa2}
.tier-group{margin-bottom:32px}
@media(max-width:520px){.boot-card{flex-direction:column;max-width:100%}.boot-card-left{padding:20px 16px}.boot-card-stats{border-left:none;border-top:1px solid #f0f0f0;padding:12px}.boot-card-stats img{width:100%;max-width:275px}}

/* Guides hub explainer — what the guides cover and how they are written */
.guides-explainer {
    background: #ffffff;
    border-top: 2px solid #e2e8f0;
}

.guides-prose {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.75;
    color: #2d3748;
}

.guides-prose p {
    margin: 0 0 18px 0;
}

.guides-prose p:last-child {
    margin-bottom: 0;
}

.guides-prose h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c5282;
    margin: 26px 0 8px 0;
}

.guides-prose .section-title {
    margin-bottom: 20px;
}

.guides-prose .section-title:not(:first-child) {
    margin-top: 40px;
}

.guides-prose strong {
    color: #1a202c;
}

.guides-prose a {
    color: #2c5282;
    font-weight: 600;
}

.guides-prose a:hover {
    color: #1e3a5f;
}

@media (max-width: 768px) {
    .guides-prose {
        font-size: 1rem;
    }

    .guides-prose h3 {
        margin-top: 20px;
    }
}

/* Small item sprites beside guide text, tables and lists */
.guide-main-content img.guide-icon,
.section-content img.guide-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin: 0 6px 0 0;
    border-radius: 0;
    object-fit: contain;
    vertical-align: middle;
}

/* Readable text on tier badges, captions and guide tables. */
.guide-main-content .afk-tier-early { background: #2e7d32; }
.guide-main-content .afk-tier-mid { background: #b45309; }
.guide-main-content .afk-tier-late { background: #c62828; }
.guide-main-content .afk-table-note { color: #526175; }
.guide-main-content .cook-calc .cook-status { color: #526175; }
.guide-main-content .cook-calc .cook-status.loaded { color: #276749; }
/* Outranks a paler green set outside the theme, which fails contrast before the full stylesheet loads. */
.guide-main-content .cook-calc #cook-status:not(.error) { color: #276749; }
.guide-main-content .cook-table .pos { color: #276749; }
.guide-main-content .cook-table .neg { color: #c53030; }
.guide-main-content .cook-table .mem { color: #526175; }
.guide-main-content .cook-table .mem.p2p { color: #9c4415; }
.guide-main-content .wp-caption-text,
.section-content .wp-caption-text { opacity: 1 !important; }
.guide-main-content .wp-caption-text a,
.section-content .wp-caption-text a { color: #2c5282; }

@media (max-width: 768px) {
    /* Comfortable tap height for the links above the guide title. */
    .guide-breadcrumbs a,
    .guide-author-meta-link {
        display: inline-block;
        padding-block: 6px;
    }
}

/* ============================================
   GUIDE READING LAYOUT
   A narrower column keeps lines readable, and blue section headings mark where each part starts.
   ============================================ */
.guide-header-container,
.guide-video-section .guide-container,
.guide-featured-image-section .guide-container,
.guide-content-section .guide-container,
.guide-content-wrapper,
.guide-author-bio-section .guide-container {
    max-width: 800px;
}
.guide-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}
.guide-section-header {
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
}
.guide-section-header h2 {
    color: #ffffff !important;
    font-size: 1.45rem !important;
    padding: 14px 28px !important;
    scroll-margin-top: 16px;
}
.guide-section > .guide-main-content {
    padding: 20px 28px 24px;
}
.related-tools-header {
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
}
.related-tools-header h2 {
    color: #ffffff;
    font-size: 1.45rem;
    padding: 14px 24px;
}

/* Contents list */
.guide-toc {
    margin: 0 0 24px;
    padding: 18px 28px;
    background: #f0f4f8;
    border-radius: 10px;
}
.guide-content .guide-toc .guide-toc-title {
    margin: 0 0 8px;
    color: #1e3a5f;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}
.guide-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 32px;
}
.guide-toc li {
    margin: 0;
    break-inside: avoid;
}
.guide-toc a {
    display: block;
    padding: 5px 0;
    color: #234b7c;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}
.guide-toc a:hover,
.guide-toc a:focus-visible {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .guide-section-header h2 {
        font-size: 1.25rem !important;
        padding: 12px 18px !important;
    }
    .guide-section > .guide-main-content {
        padding: 16px 18px 20px;
    }
    .related-tools-header h2 {
        font-size: 1.25rem;
        padding: 12px 18px;
    }
    .guide-toc {
        padding: 14px 18px;
    }
    .guide-toc ol {
        columns: 1;
    }
    .guide-toc a {
        padding: 7px 0;
    }
}
