/*================================================

        GOODTRICKS 2.0
        Main Stylesheet

================================================*/

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

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#050505;
    color:#f5f5f5;
    line-height:1.6;
}

.container{
    width:92%;
    max-width:1200px;
    margin:auto;
}

.site-header{
    background:#050505;
    border-bottom:1px solid #8a5a18;
    padding:10px 0;
}

.nav-wrap{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
}

.logo{
    display:flex;
    align-items:center;
    gap:14px;
}

.logo-icon{
    font-size:2.4rem;
}

.logo h1{
    color:#d62828;
    text-transform:uppercase;
    letter-spacing:2px;
    font-size:2rem;
}

.logo p{
    color:#f7d27b;
    font-size:.95rem;
}

nav{
    display:flex;
    gap:24px;
    flex-wrap:wrap;
}

nav a{
    color:white;
    text-decoration:none;
    text-transform:uppercase;
    font-weight:bold;
    font-size:.9rem;
}

nav a.active,
nav a:hover {
    color: #ffcc66;
}

/*================================================
HERO
================================================*/
.hero-home {
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.85) 0%,
            rgba(0,0,0,.55) 45%,
            rgba(0,0,0,.15) 100%
        ),
        url("../images/hero-clean.webp");

    background-size: cover;
   background-position: center top;
    background-repeat: no-repeat;

    min-height: 720px;
}
.hero-overlay{
    min-height:720px;
    display:flex;
    align-items:center;
}

.hero-content{
    margin-left:5%;
    padding-top:90px;
    position:relative;
    z-index:2;
}
.hero-content h2{
    font-family:Georgia, serif;
    font-size:5.3rem;
    line-height:.92;
    text-transform:uppercase;
    letter-spacing:4px;
    margin-bottom:30px;
}
.hero-content h2::after{
    content:"";
    display:block;
    width:140px;
    height:4px;
    background:#f7c65b;
    margin-top:25px;
}

.hero-content h2 span{
    color:#f7c65b;
}
.hero-content p{
    font-size:1.15rem;
    max-width:520px;
    margin-bottom:30px;
}

.hero-buttons{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
}

.btn{
    display:inline-block;
    padding:18px 34px;
    border-radius:6px;
    text-decoration:none;
    font-weight:bold;
    transition:.3s;
}

.btn:hover{
    transform:translateY(-3px);
}

.primary{
    background:#b00000;
    color:white;
    border:2px solid #f7c65b;
    transition:.3s;
}

.primary:hover{
    background:#d62828;
    transform:translateY(-4px);
    box-shadow:0 0 20px rgba(247,198,91,.35);
}
.secondary:hover{
    background:#f7c65b;
    color:#111;
}

.gold{
    background:#f7c65b;
    color:#111;
}
/*================================================
CATEGORY TITLES
================================================*/
.categories{
    padding:70px 0;
}

.categories h2{
    text-align:center;
    color:#f7c65b;
    font-family:Georgia, serif;
    text-transform:uppercase;
    margin-bottom:35px;
}

.category-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:22px;
}

.category-card,
.panel{
    background:linear-gradient(180deg,#151515,#080808);
    border:1px solid #8a5a18;
    border-radius:10px;
    padding:28px;
    box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.category-card h3{
    margin-bottom:12px;
    font-size:1.3rem;
}
.category-card:hover{

    transform:translateY(-10px);

    border-color:#f7c65b;

    box-shadow:
        0 20px 40px rgba(0,0,0,.45),
        0 0 20px rgba(247,198,91,.15);

}
.category-card p{
    color:#ddd;
    margin-bottom:18px;
}

.category-card a{
    color:#ffcc66;
    text-decoration:none;
    font-weight:bold;
}

.homepage-panels{
    padding:20px 0 70px;
}

.panel-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:35px;
}

.panel h2{
    color:#f7c65b;
    margin-bottom:16px;
}

.panel h3{
    margin-bottom:12px;
}

.panel ul{
    list-style:none;
}

.panel li{
    padding:7px 0;
    border-bottom:1px solid rgba(255,255,255,.08);
}

footer{
    border-top:1px solid #8a5a18;
    padding:30px 0;
    text-align:center;
    color:#aaa;
}

@media(max-width:800px){
    .nav-wrap{
        flex-direction:column;
    }

    nav{
        justify-content:center;
    }

    .hero-content h2{
        font-size:2.6rem;
    }

    .hero-home,
    .hero-overlay{
        min-height:520px;
    }
}
.image-card{
    padding:0;
    overflow:hidden;
}

.image-card img{
    width:100%;
    height:210px;
    object-fit:cover;
    display:block;
}

.card-content{
    padding:24px;
}

.image-card:hover{
    transform:translateY(-8px);
    box-shadow:0 16px 40px rgba(247,198,91,.15);
}.site-header{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(5,5,5,.92);
    backdrop-filter:blur(10px);
}

.category-card{
    transition:.3s;
}.feature-card{
    padding:0;
    overflow:hidden;
}

.feature-card img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
}

.feature-card div{
    padding:28px;
}.lesson-hero{
    background:linear-gradient(135deg,#080808,#1c1c1c);
    padding:90px 0 70px;
    border-bottom:1px solid #8a5a18;
}

.lesson-label{
    color:#f7c65b;
    text-transform:uppercase;
    letter-spacing:2px;
    font-weight:bold;
    margin-bottom:15px;
}

.lesson-hero h2{
    font-family:Georgia, serif;
    font-size:3.5rem;
    color:white;
    margin-bottom:20px;
}

.lesson-hero p{
    max-width:720px;
    color:#ddd;
    font-size:1.15rem;
}

.lesson-info{
    background:#0d0d0d;
    padding:35px 0;
}

.info-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.info-card{
    background:linear-gradient(180deg,#151515,#080808);
    border:1px solid #8a5a18;
    padding:24px;
    border-radius:10px;
    text-align:center;
}

.info-card h3{
    color:#f7c65b;
    margin-bottom:8px;
}
/*================================================
LESSONS
================================================*/
.lesson-content{
    background:#f5f2eb;
    color:#222;
    padding:70px 0;
}

.lesson-section{
    max-width:850px;
    margin:0 auto 60px;
}

.lesson-section h2,
.related-tricks h2{
    font-family:Georgia, serif;
    font-size:2.2rem;
    margin-bottom:18px;
}

.lesson-step{
    display:grid;
    grid-template-columns:420px 1fr;
    gap:40px;
    align-items:center;
    background:white;
    margin:35px 0;
    padding:28px;
    border-radius:14px;
    box-shadow:0 12px 30px rgba(0,0,0,.12);
}

.lesson-step img{
    width:100%;
    border-radius:10px;
}

.step-text span{
    color:#b00000;
    text-transform:uppercase;
    font-weight:bold;
    letter-spacing:1px;
}

.step-text h3{
    font-size:1.7rem;
    margin:8px 0 12px;
}

.related-tricks{
    margin-top:70px;
}

.related-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.related-card{
    background:#111;
    color:#f7c65b;
    text-decoration:none;
    padding:24px;
    border-radius:10px;
    border:1px solid #8a5a18;
    font-weight:bold;
    text-align:center;
}

@media(max-width:850px){
    .lesson-step{
        grid-template-columns:1fr;
    }

    .lesson-hero h2{
        font-size:2.5rem;
    }
}

.section-title{

    text-align:center;

    font-size:2.6rem;

    margin-bottom:50px;

    font-family:Georgia, serif;

}

.tutorial-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:30px;

}

.tutorial-card{

    background:white;

    border-radius:14px;

    overflow:hidden;

    box-shadow:0 15px 35px rgba(0,0,0,.15);

    transition:.3s;

}

.tutorial-card:hover{

    transform:translateY(-8px);

}

.tutorial-card img{

    width:100%;

    height:220px;

    object-fit:cover;

}

.tutorial-card h3{

    padding:20px 20px 10px;

    color:#111;

}

.tutorial-card p{

    padding:0 20px 20px;

    color:#444;

}

.tutorial-card .btn{

    margin:20px;

}.coin-image{
    object-position:center 20%;
}.street-magic-image{
    object-position:center 40%;
}.levitations-image{
    object-position:center 20%;
}.optical-illusions-image{
    object-position:center 25%;
}.card-image{
    object-position:center 35%;
}.category-tile{
    cursor:pointer;
}

.category-tile .card-content{
    text-align:center;
    padding:18px;
}

.category-tile h3{
    margin:0;
    font-size:1.15rem;
}

.category-tile img{
    height:190px;
    transition:.4s;
}

.category-tile:hover img{
    transform:scale(1.06);
}/* ===========================
   FEATURED TUTORIAL
=========================== */

.featured-large{
    display:grid;
    grid-template-columns:420px 1fr;
    overflow:hidden;
    padding:0;
}

.featured-large img{
    width:100%;
    height:100%;
    min-height:340px;
    object-fit:cover;
}

.featured-text{
    padding:40px;
}

.featured-label{
    color:#f7c65b;
    text-transform:uppercase;
    letter-spacing:2px;
    font-weight:bold;
    margin-bottom:15px;
}

.featured-text h2{
    font-family:Georgia, serif;
    font-size:2.5rem;
    margin-bottom:20px;
}

.feature-info{
    display:flex;
    gap:25px;
    flex-wrap:wrap;
    margin:25px 0;
    color:#f7c65b;
}

@media(max-width:900px){

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

}

.gold-heading{
    text-align:center;
    color:#f7c65b;
    font-family:Georgia, serif;
    text-transform:uppercase;
    font-size:2.4rem;
    letter-spacing:2px;
    margin-bottom:45px;
}

.gold-heading::after{
    content:"";
    display:block;
    width:120px;
    height:3px;
    background:#f7c65b;
    margin:16px auto 0;
}/* ===========================
   POPULAR TUTORIALS
=========================== */

.popular-tutorials{
    padding:80px 0;
    background:#050505;
}

.popular-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:25px;
}

.popular-card{
    background:#111;
    border:1px solid #8a5a18;
    border-radius:12px;
    overflow:hidden;
    text-decoration:none;
    transition:.3s;
}

.popular-card img{
    width:100%;
    height:180px;
    object-fit:cover;
    display:block;
}

.popular-card h3{
    color:white;
    text-align:center;
    padding:20px;
    font-size:1.15rem;
}

.popular-card:hover{
    transform:translateY(-8px);
    border-color:#f7c65b;
    box-shadow:0 0 25px rgba(247,198,91,.20);
}/*===============================================
WELCOME
===============================================*/

.welcome{

    padding:70px 0;

    text-align:center;

}

.welcome-text{

    max-width:850px;

    margin:auto;

    font-size:1.15rem;

    color:#ddd;

    line-height:1.9;

}/*===============================================
ABOUT GOODTRICKS
===============================================*/

.about-goodtricks{

    padding:90px 0;

    text-align:center;

    background:#0d0d0d;

}

.about-text{

    max-width:850px;

    margin:20px auto;

    font-size:1.15rem;

    color:#ddd;

    line-height:1.9;

}.hypnotic-fingers-image{
    object-position: center 10%;
}.breadcrumb{
    background:#111;
    padding:14px 0;
    border-bottom:1px solid #8a5a18;
}

.breadcrumb a{
    color:#f7c65b;
    text-decoration:none;
}

.breadcrumb span{
    color:#bbb;
    margin:0 8px;
}.illusion-gallery{
    padding:80px 0;
}

.illusion-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.illusion-card{
    background:#111;
    border:1px solid #8a5a18;
    border-radius:14px;
    overflow:hidden;
    text-decoration:none;
    transition:.3s;
}

.illusion-card img{
    width:100%;
    height:280px;
    object-fit:cover;
    display:block;
}

.illusion-card h3{
    color:#f7c65b;
    text-align:center;
    padding:22px;
}

.illusion-card:hover{
    transform:translateY(-8px);
    border-color:#f7c65b;
}.illusion-gallery{
    padding:80px 0;
}.illusion-card{
    cursor:default;
}/* Optical Illusions */

.illusion-gallery{
    padding:80px 0;
}

.illusion-card{
    cursor:default;
}.lesson-demo-image{
    display:block;
    width:100%;
    max-width:650px;
    height:auto;
    margin:30px auto 0;
    border-radius:12px;
}.video-wrapper{
    position:relative;
    width:100%;
    max-width:800px;
    aspect-ratio:16 / 9;
    margin:30px auto 0;
    overflow:hidden;
    border-radius:12px;
    background:#000;
}

.video-wrapper iframe{
    width:100%;
    height:100%;
    border:0;
    display:block;
}.lesson-content .popular-card h3,
.lesson-content .popular-card p {
    color: #f5f5f5;
}

.lesson-content .popular-card p {
    line-height: 1.6;
    margin: 0 18px 20px;
}.lesson-checklist{
    max-width:700px;
    margin:30px auto;
    padding:0;
    list-style:none;
}

.lesson-checklist li{
    background:#fff;
    margin:12px 0;
    padding:16px 22px;
    border-left:5px solid var(--accent-color);
    border-radius:10px;
    font-size:1.05rem;
    box-shadow:0 4px 10px rgba(0,0,0,.08);
}/* Improve readability inside lesson info and tip cards */
.lesson-content .info-card {
    background: #1f1f1f;
    color: #f5f5f5;
}

.lesson-content .info-card h3 {
    color: #f2c14e;
}

.lesson-content .info-card p {
    color: #f5f5f5;
}.lesson-content #card-palm .info-card {
    border-left: 5px solid #f2c14e;
}.learning-path{
    max-width:900px;
    margin:30px auto;
    padding:0;
    list-style:none;
    counter-reset:step;
}

.learning-path li{
    counter-increment:step;
    display:grid;
    grid-template-columns:60px 1fr;
    gap:20px;
    align-items:center;
    padding:20px 25px;
    margin:18px 0;
    background:#1f1f1f;
    border-radius:12px;
    box-shadow:0 6px 18px rgba(0,0,0,.15);
}

.learning-path li::before{
    content:counter(step);
    width:42px;
    height:42px;
    border-radius:50%;
    background:#f2c14e;
    color:#111;
    font-weight:bold;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1rem;
}

.learning-path strong{
    display:block;
    color:#f2c14e;
    font-size:1.15rem;
    margin-bottom:6px;
}

.learning-path span{
    display:block;
    color:#f5f5f5;
    line-height:1.6;
    font-size:1rem;
}.button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 22px;
    background: #f2c14e;
    color: #222;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: background 0.2s ease;
}/* =========================================================
   GOODTRICKS MODERN PAGE STYLES
   Add this block once to the bottom of css/styles.css
   ========================================================= */

:root {
    --bg: #08111f;
    --panel: #101c2d;
    --text: #f3f7fc;
    --muted: #b9c6d8;
    --gold: #f3c84b;
    --teal: #67d7ca;
    --line: #2b3d55;
    --danger: #ff9a86;
    --radius: 20px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    --max: 1180px;
}


/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(103, 215, 202, 0.08),
            transparent 30rem
        ),
        radial-gradient(
            circle at 90% 0%,
            rgba(243, 200, 75, 0.08),
            transparent 28rem
        ),
        var(--bg);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.65;
}

img,
video,
iframe {
    display: block;
    max-width: 100%;
}

a {
    color: var(--gold);
    text-underline-offset: 0.18em;
}

a:hover,
a:focus {
    color: #ffe687;
}

.container {
    width: min(calc(100% - 2rem), var(--max));
    margin-inline: auto;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: var(--gold);
    color: #111827;
}


/* =========================================================
   HEADER AND NAVIGATION
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 17, 31, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 900;
    text-decoration: none;
}

.brand span {
    color: var(--gold);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.8rem 1rem;
}

.main-nav a {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--text);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    padding: 5.25rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(300px, 0.8fr);
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--teal);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.15;
}

h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    letter-spacing: -0.05em;
}

h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    letter-spacing: -0.03em;
}

h3 {
    margin-bottom: 0.55rem;
    font-size: 1.2rem;
}

.hero-copy {
    max-width: 68ch;
    color: var(--muted);
    font-size: 1.15rem;
}


/* =========================================================
   SHARED CARDS AND PANELS
   ========================================================= */

.hero-card,
.panel,
.info-card,
.step,
.tip,
.faq-item,
.related-card,
.media-card,
.script-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012)
        );
    box-shadow: var(--shadow);
}

.hero-card,
.panel,
.media-card,
.script-card {
    padding: 1.25rem;
}

.hero-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
}

.hero-card p {
    margin: 0.85rem 0 0;
    color: var(--muted);
}


/* =========================================================
   META INFORMATION CARDS
   ========================================================= */

.meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-card {
    padding: 1.15rem;
}

.info-card strong {
    display: block;
    color: var(--gold);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.info-card span {
    display: block;
    margin-top: 0.3rem;
    font-weight: 800;
}


/* =========================================================
   PAGE SECTIONS
   ========================================================= */

.section {
    padding: 3.25rem 0;
}

.section-alt {
    background: rgba(255, 255, 255, 0.018);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-intro {
    color: var(--muted);
}

.two-col {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 0.9fr);
    gap: 1.5rem;
    align-items: start;
}


/* =========================================================
   LISTS
   ========================================================= */

.check-list,
.number-list {
    margin: 0;
    padding-left: 1.25rem;
}

.check-list li,
.number-list li {
    margin: 0.5rem 0;
}


/* =========================================================
   GRIDS
   ========================================================= */

.image-grid,
.steps-grid,
.tips-grid,
.faq-grid,
.related-grid {
    display: grid;
    gap: 1rem;
}

.image-grid,
.steps-grid,
.tips-grid,
.faq-grid {
    grid-template-columns: repeat(2, 1fr);
}

.related-grid {
    grid-template-columns: repeat(3, 1fr);
}


/* =========================================================
   MEDIA CARDS
   ========================================================= */

.media-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
}

.media-card figcaption {
    margin-top: 0.8rem;
    color: var(--muted);
    font-size: 0.92rem;
}


/* =========================================================
   STEP CARDS
   ========================================================= */

.step {
    position: relative;
    padding: 1.35rem 1.35rem 1.35rem 4.5rem;
}

.step-number {
    position: absolute;
    left: 1.25rem;
    top: 1.2rem;
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--gold);
    color: #162033;
    font-weight: 900;
}

.step p,
.tip p,
.faq-item p,
.related-card p {
    color: var(--muted);
}


/* =========================================================
   TIPS, FAQ, RELATED LINKS
   ========================================================= */

.tip,
.faq-item,
.related-card {
    padding: 1.25rem;
}

.related-card a {
    color: var(--text);
    text-decoration: none;
}

.related-card a:hover,
.related-card a:focus {
    color: var(--gold);
}

.related-card p {
    margin: 0;
}


/* =========================================================
   CALLOUTS AND CODE EXAMPLES
   ========================================================= */

.code-example {
    border-left: 5px solid var(--teal);
    background: rgba(103, 215, 202, 0.08);
}

.signal {
    color: var(--gold);
    font-weight: 900;
}

.safety {
    margin-top: 1.25rem;
    border-left: 5px solid var(--danger);
    background: rgba(255, 154, 134, 0.08);
}

.script-card blockquote {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}


/* =========================================================
   VIDEO
   ========================================================= */

.video-wrap {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #000;
    box-shadow: var(--shadow);
}

.video-wrap iframe,
.video-wrap video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: 3rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--line);
    background: #060d17;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

.footer-copy {
    margin: 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--text);
}


/* =========================================================
   TABLET
   ========================================================= */

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

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

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


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {
    .nav-wrap {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem 0;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .hero {
        padding-top: 3.5rem;
    }

    .meta-grid,
    .image-grid,
    .steps-grid,
    .tips-grid,
    .faq-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .step {
        padding: 4.5rem 1.35rem 1.35rem;
    }
}


/* =========================================================
   PRINT
   ========================================================= */

@media print {
    .site-header,
    .related-section,
    .site-footer {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }

    .hero-card,
    .panel,
    .info-card,
    .step,
    .tip,
    .faq-item,
    .related-card,
    .media-card {
        border-color: #bbb;
        box-shadow: none;
    }
}

/* =========================================================
   GOODTRICKS HOMEPAGE COMPONENTS
   Add this block once to the bottom of css/styles.css
   ========================================================= */


/* =========================================================
   BUTTONS
   ========================================================= */

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background-color 160ms ease;
}

.button:hover,
.button:focus {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--gold);
    color: #152033;
}

.button-primary:hover,
.button-primary:focus {
    background: #ffe17a;
    color: #152033;
}

.button-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus {
    border-color: var(--teal);
    color: var(--text);
}


/* =========================================================
   HOMEPAGE HERO
   ========================================================= */

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 5.75rem 0 4.5rem;
}

.home-hero::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            120deg,
            rgba(103, 215, 202, 0.08),
            transparent 42%
        ),
        radial-gradient(
            circle at 82% 30%,
            rgba(243, 200, 75, 0.13),
            transparent 24rem
        );
    content: "";
    pointer-events: none;
}

.home-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(340px, 0.85fr);
    gap: 3rem;
    align-items: center;
}

.home-hero-copy h1 {
    max-width: 11ch;
}

.home-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 2rem;
}

.home-stat-row div {
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
}

.home-stat-row strong,
.home-stat-row span {
    display: block;
}

.home-stat-row strong {
    color: var(--text);
    font-size: 0.95rem;
}

.home-stat-row span {
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.home-hero-art {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 32px;
    background:
        radial-gradient(
            circle at center,
            rgba(103, 215, 202, 0.14),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.015)
        );
    box-shadow: var(--shadow);
}

.magic-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.magic-orbit-one {
    width: 340px;
    height: 340px;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
}

.magic-orbit-two {
    width: 230px;
    height: 230px;
    top: 115px;
    left: 50%;
    transform: translateX(-50%);
}

.magic-prop {
    position: absolute;
    display: grid;
    place-items: center;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.3);
}

.magic-card {
    width: 112px;
    height: 158px;
    top: 68px;
    left: 58px;
    border: 8px solid #fff;
    border-radius: 14px;
    background: #f7f8fb;
    color: #d44a4a;
    font-family: Georgia, serif;
    font-size: 2.2rem;
    font-weight: 900;
    transform: rotate(-12deg);
}

.magic-coin {
    width: 96px;
    height: 96px;
    top: 94px;
    right: 60px;
    border: 8px solid #f7dc78;
    border-radius: 50%;
    background: var(--gold);
    color: #6b5110;
    font-size: 2rem;
}

.magic-wand {
    width: 210px;
    height: 18px;
    right: 22px;
    bottom: 112px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            #f5f5f5 0 16%,
            #111827 16% 84%,
            #f5f5f5 84% 100%
        );
    transform: rotate(-22deg);
}

.magic-hat {
    left: 76px;
    bottom: 66px;
    font-size: 6.5rem;
    filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.3));
}

.hero-art-copy {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 210px;
    padding: 1rem;
    text-align: center;
    transform: translate(-50%, -32%);
}

.hero-art-copy span,
.hero-art-copy strong {
    display: block;
}

.hero-art-copy span {
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-art-copy strong {
    margin: 0.35rem 0;
    color: var(--gold);
    font-size: 1.25rem;
}


/* =========================================================
   HOMEPAGE INTRODUCTION
   ========================================================= */

.home-intro-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.018);
}

.home-intro-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2.5rem;
    align-items: end;
}

.home-intro-grid p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.08rem;
}


/* =========================================================
   CATEGORY CARDS
   ========================================================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.75rem;
}

.category-card {
    min-height: 290px;
    display: flex;
    flex-direction: column;
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.012)
        );
    color: var(--text);
    text-decoration: none;
    transition:
        transform 160ms ease,
        border-color 160ms ease;
}

.category-card:hover,
.category-card:focus {
    border-color: var(--teal);
    color: var(--text);
    transform: translateY(-4px);
}

.category-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: grid;
    place-items: center;
    margin-bottom: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 1.75rem;
}

.category-card p {
    color: var(--muted);
}

.card-link {
    margin-top: auto;
    color: var(--gold);
    font-weight: 900;
}


/* =========================================================
   FEATURED TRICKS
   ========================================================= */

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.75rem;
}

.featured-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.featured-card-top {
    min-height: 148px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.2rem;
    background:
        radial-gradient(
            circle at 22% 20%,
            rgba(243, 200, 75, 0.16),
            transparent 7rem
        ),
        linear-gradient(
            145deg,
            rgba(103, 215, 202, 0.08),
            rgba(255, 255, 255, 0.015)
        );
}

.featured-symbol {
    font-size: 3.6rem;
}

.featured-label {
    padding: 0.4rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.featured-card-body {
    padding: 1.3rem;
}

.featured-card-body h3 a {
    color: var(--text);
    text-decoration: none;
}

.featured-card-body h3 a:hover,
.featured-card-body h3 a:focus {
    color: var(--gold);
}

.featured-card-body p {
    color: var(--muted);
}

.text-link {
    font-weight: 900;
    text-decoration: none;
}


/* =========================================================
   BENEFITS
   ========================================================= */

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.75rem;
}

.benefit-card {
    padding: 1.4rem;
    border-top: 4px solid var(--teal);
    border-radius: 0 0 var(--radius) var(--radius);
    background: rgba(255, 255, 255, 0.025);
}

.benefit-number {
    display: block;
    margin-bottom: 1rem;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.benefit-card p {
    color: var(--muted);
}


/* =========================================================
   LEARNING PATH
   ========================================================= */

.learning-path {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
    align-items: start;
}

.path-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.path-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.path-list li:first-child {
    padding-top: 0;
}

.path-list li > span {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gold);
    color: #152033;
    font-weight: 900;
}

.path-list strong {
    display: block;
    color: var(--text);
}

.path-list p {
    margin: 0.2rem 0 0;
    color: var(--muted);
}


/* =========================================================
   ABOUT AND CALL TO ACTION
   ========================================================= */

.home-about {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2.5rem;
}

.home-about p {
    color: var(--muted);
}

.home-cta-section {
    padding-top: 0;
}

.home-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        linear-gradient(
            120deg,
            rgba(243, 200, 75, 0.11),
            rgba(103, 215, 202, 0.07)
        );
    box-shadow: var(--shadow);
}

.home-cta h2 {
    margin-bottom: 0.6rem;
}

.home-cta p {
    margin-bottom: 0;
    color: var(--muted);
}


/* =========================================================
   HOMEPAGE TABLET
   ========================================================= */

@media (max-width: 980px) {
    .home-hero-grid,
    .learning-path {
        grid-template-columns: 1fr;
    }

    .home-hero-art {
        min-height: 420px;
    }

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


/* =========================================================
   HOMEPAGE MOBILE
   ========================================================= */

@media (max-width: 680px) {
    .home-hero {
        padding-top: 3.75rem;
    }

    .home-stat-row,
    .home-intro-grid,
    .category-grid,
    .featured-grid,
    .benefit-grid,
    .home-about {
        grid-template-columns: 1fr;
    }

    .home-hero-art {
        min-height: 390px;
    }

    .magic-card {
        left: 28px;
    }

    .magic-coin {
        right: 28px;
    }

    .magic-hat {
        left: 35px;
    }

    .home-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   GOODTRICKS CATEGORY PAGE ADDITIONS
   Append this section to the bottom of css/styles.css
   ========================================================= */

/* Header refinements */

.logo {
    align-items: center;
    color: inherit;
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-copy {
    display: flex;
    flex-direction: column;
}

.logo-copy strong {
    font-size: 1.3rem;
    line-height: 1.1;
}

.logo-copy small {
    font-size: 0.76rem;
    opacity: 0.78;
}

.site-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
}

.site-nav a {
    border-bottom: 2px solid transparent;
    color: inherit;
    padding: 0.45rem 0;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
    border-bottom-color: #f3c84b;
    color: #f3c84b;
}

/* Category hero */

.category-hero h1 {
    margin-bottom: 1rem;
}

.category-hero-intro {
    font-size: 1.08rem;
    line-height: 1.75;
    margin-left: auto;
    margin-right: auto;
    max-width: 760px;
}

.category-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 2rem;
}

.category-stats div {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 1rem;
}

.category-stats strong,
.category-stats span {
    display: block;
}

.category-stats strong {
    color: #f3c84b;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.category-stats span {
    font-size: 0.86rem;
    opacity: 0.9;
}

/* Shared category typography */

.section-kicker {
    color: #1fa7a0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.section-intro {
    margin-bottom: 1.5rem;
    max-width: 760px;
}

.narrow-content {
    max-width: 850px;
}

.section-alt {
    background: rgba(8, 17, 31, 0.035);
}

/* Start-here card */

.start-here-card {
    border-left: 5px solid #1fa7a0;
}

.start-here-card .btn {
    margin-top: 0.75rem;
}

/* Category introduction */

.category-intro-section {
    padding: 4.5rem 0;
}

.category-intro-section h2 {
    margin-bottom: 1rem;
}

.category-intro-section p {
    line-height: 1.8;
}

/* FAQ */

.faq-list details {
    background: #111a2d;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    margin-bottom: 12px;
}

.faq-list summary {
    color: #ffffff;
    background: #111a2d;
    padding: 20px;
    font-weight: 700;
}

.faq-list summary:hover {
    background: #162238;
}

.faq-list details p {
    background: #162238;
    color: rgba(255,255,255,.88);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px;
}

.faq-list summary::after {
    color: #18c3bb;
}

.faq-list details p {
    background: #ffffff;
    color: #333;
    border-top: 1px solid #e5e5e5;
    line-height: 1.8;
    margin: 0;
    padding: 20px;
}

/* Related categories */

.related-categories {
    background: #08111f;
    color: #ffffff;
    padding: 4.5rem 0;
}

.related-category-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1.5rem;
}

.related-category-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    color: #ffffff;
    padding: 1.4rem;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease;
}

a.related-category-card:hover,
a.related-category-card:focus-visible {
    border-color: #f3c84b;
    transform: translateY(-4px);
}

.related-category-card > span {
    display: inline-block;
    font-size: 1.7rem;
    margin-bottom: 0.6rem;
}

.related-category-card h3 {
    color: #f3c84b;
    margin-bottom: 0.5rem;
}

.related-category-card p {
    line-height: 1.6;
    margin: 0;
    opacity: 0.88;
}

.coming-soon-card {
    opacity: 0.78;
}

.coming-soon-card small {
    color: #1fd1c7;
    display: inline-block;
    font-weight: 750;
    margin-top: 0.9rem;
    text-transform: uppercase;
}

/* Footer */

.site-footer {
    background: #050b14;
    color: #ffffff;
    padding: 3.5rem 0 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 2fr repeat(3, 1fr);
}

.footer-grid h2,
.footer-grid h3 {
    color: #f3c84b;
    margin-bottom: 0.8rem;
}

.footer-grid p {
    line-height: 1.7;
    margin-bottom: 0.65rem;
    opacity: 0.82;
}

.footer-grid a {
    color: rgba(255, 255, 255, 0.82);
    display: block;
    margin-bottom: 0.55rem;
    text-decoration: none;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
    color: #1fd1c7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 2.5rem;
    padding: 1.2rem 0;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.72;
}

/* Responsive category layout */

@media (max-width: 900px) {
    .category-stats,
    .related-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .nav-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        gap: 0.2rem 0.9rem;
    }

    .category-stats,
    .related-category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-hero-intro {
        font-size: 1rem;
    }
}
/* ---------------------------------------------------------
   Hero statistics
   --------------------------------------------------------- */

.category-stats div {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--gt-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 88px;
}

.category-stats strong {
    color: var(--gt-gold);
}

.category-stats span {
    color: var(--gt-text);
}

/* ---------------------------------------------------------
   Start-here and featured panels
   --------------------------------------------------------- */

.info-card,
.panel,
.featured-large {
    background: var(--gt-card);
    border-color: var(--gt-border);
    box-shadow: var(--gt-shadow);
    color: var(--gt-text);
}

.info-card h2,
.featured-text h2 {
    color: var(--gt-gold);
}

.info-card p,
.featured-text p {
    color: var(--gt-text-muted);
}

.featured-large {
    overflow: hidden;
}

.featured-large > img {
    border-radius: 14px;
    display: block;
    object-fit: cover;
}

.featured-label {
    color: var(--gt-teal);
}

.feature-info span {
    color: var(--gt-gold);
}

/* ---------------------------------------------------------
   Tutorial-card polish
   --------------------------------------------------------- */

.popular-card {
    background: var(--gt-card);
    border: 1px solid var(--gt-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.popular-card:hover,
.popular-card:focus-visible {
    border-color: rgba(243, 200, 75, 0.62);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.popular-card img {
    display: block;
    transition: transform 240ms ease;
}

.popular-card:hover img,
.popular-card:focus-visible img {
    transform: scale(1.035);
}

.popular-card h3 {
    color: #ffffff;
}

/* ---------------------------------------------------------
   Dark FAQ component
   --------------------------------------------------------- */

.faq-list {
    gap: 0.8rem;
}

.faq-list details {
    background: var(--gt-card);
    border: 1px solid var(--gt-border);
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.faq-list details:hover {
    border-color: rgba(24, 195, 187, 0.38);
}

.faq-list details[open] {
    border-color: rgba(243, 200, 75, 0.34);
    box-shadow: 0 15px 32px rgba(0, 0, 0, 0.25);
}

.faq-list summary {
    background: var(--gt-card);
    color: #ffffff;
    cursor: pointer;
    font-weight: 750;
    list-style: none;
    padding: 1.15rem 1.3rem;
    transition: background 180ms ease, color 180ms ease;
}

.faq-list summary:hover,
.faq-list summary:focus-visible {
    background: var(--gt-card-hover);
    color: var(--gt-gold);
    outline: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    color: var(--gt-teal);
    content: "+";
    float: right;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    margin-left: 1rem;
}

.faq-list details[open] summary {
    background: var(--gt-card-hover);
    color: var(--gt-gold);
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details p {
    background: #0d1728;
    border-top: 1px solid var(--gt-border);
    color: var(--gt-text);
    line-height: 1.75;
    margin: 0;
    padding: 1.1rem 1.3rem 1.3rem;
}

/* ---------------------------------------------------------
   Related-category cards
   --------------------------------------------------------- */

.related-categories {
    background: var(--gt-bg);
}

.related-category-card {
    background: var(--gt-card);
    border-color: var(--gt-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.17);
}

a.related-category-card:hover,
a.related-category-card:focus-visible {
    background: var(--gt-card-hover);
    border-color: rgba(243, 200, 75, 0.58);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
}

.related-category-card h3 {
    color: var(--gt-gold);
}

.related-category-card p {
    color: var(--gt-text-muted);
}

.coming-soon-card small {
    color: var(--gt-teal);
}

/* ---------------------------------------------------------
   Footer consistency
   --------------------------------------------------------- */

.site-footer {
    background: var(--gt-bg-deep);
    border-top: 1px solid var(--gt-border);
}

.footer-grid h2,
.footer-grid h3 {
    color: var(--gt-gold);
}

.footer-grid p,
.footer-grid a {
    color: var(--gt-text-muted);
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
    color: var(--gt-teal);
}

/* ---------------------------------------------------------
   Section spacing
   --------------------------------------------------------- */

.lesson-section,
.featured-tutorial,
.popular-tutorials,
.category-intro-section,
.faq-section,
.related-categories {
    padding-bottom: 5rem;
    padding-top: 5rem;
}

/* Avoid excessive space where adjacent sections already provide it */

.lesson-hero + .lesson-section {
    padding-top: 3.5rem;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.btn.primary,
.button {
    background: #b90909;
    border: 1px solid var(--gt-gold);
    color: #ffffff;
    transition:
        background 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.btn.primary:hover,
.btn.primary:focus-visible,
.button:hover,
.button:focus-visible {
    background: #d01212;
    box-shadow: 0 10px 24px rgba(185, 9, 9, 0.32);
    transform: translateY(-2px);
}

/* ---------------------------------------------------------
   Responsive refinements
   --------------------------------------------------------- */

@media (max-width: 900px) {
    .site-header,
    .nav-wrap {
        min-height: auto;
    }

    .nav-wrap {
        padding-bottom: 1rem;
        padding-top: 1rem;
    }
}

@media (max-width: 680px) {
    .lesson-section,
    .featured-tutorial,
    .popular-tutorials,
    .category-intro-section,
    .faq-section,
    .related-categories {
        padding-bottom: 3.5rem;
        padding-top: 3.5rem;
    }

    .category-stats div {
        min-height: 76px;
    }

    .faq-list summary,
    .faq-list details p {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}/* =========================================================
   RELATED TUTORIAL CARDS — ACCESSIBLE CONTRAST
   Append to the bottom of css/styles.css
   ========================================================= */

.related-card {
    background: #111a2d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f4f7fb;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.related-card:visited {
    color: #f4f7fb;
}

.related-card:hover,
.related-card:focus-visible {
    background: #182640;
    border-color: #f3c84b;
    color: #ffffff;
    transform: translateY(-2px);
}

.related-card:focus-visible {
    outline: 3px solid #f3c84b;
    outline-offset: 3px;
}/* =========================================================
   FAQ
   ========================================================= */

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: #182640;
    border: 1px solid rgba(243, 200, 75, 0.25);
    border-radius: 8px;
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    color: #f3c84b;
    font-weight: 600;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    float: right;
    font-size: 1.2rem;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin: 0;
    padding: 0 1.25rem 1.25rem;
    color: #f4f7fb;
    line-height: 1.7;
}

.faq-item summary:hover {
    color: #ffd76a;
}

.faq-item summary:focus-visible {
    outline: 2px solid #f3c84b;
    outline-offset: 2px;
}
/* =========================================================
   GOODTRICKS V2 — SHARED TUTORIAL COMPONENT CONSOLIDATION
   Append this section once at the end of /css/styles.css.
   It intentionally overrides older conflicting component rules.
   ========================================================= */

/* ---------- Shared component colour tokens ---------- */
:root {
    --gt-surface-dark: #111a2d;
    --gt-surface-raised: #182640;
    --gt-surface-hover: #213252;
    --gt-text-light: #f4f7fb;
    --gt-text-muted: #c7d0dc;
    --gt-gold: #f3c84b;
    --gt-gold-hover: #ffd76a;
    --gt-border: rgba(255, 255, 255, 0.13);
    --gt-gold-border: rgba(243, 200, 75, 0.4);
    --gt-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    --gt-radius: 10px;
}

/* ---------- Information panels ---------- */
.info-card {
    background: var(--gt-surface-raised);
    border: 1px solid var(--gt-border);
    border-radius: var(--gt-radius);
    color: var(--gt-text-light);
    box-shadow: var(--gt-shadow);
}

.info-card h2,
.info-card h3 {
    color: var(--gt-gold);
}

.info-card p,
.info-card li {
    color: var(--gt-text-light);
}

/* Protect links placed inside information panels. */
.info-card a:not(.related-card) {
    color: var(--gt-gold-hover);
}

.info-card a:not(.related-card):visited {
    color: var(--gt-gold-hover);
}

.info-card a:not(.related-card):hover {
    color: #ffffff;
}

/* ---------- Related tutorials and learning-path cards ---------- */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.related-card,
a.related-card {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.15rem;
    background: var(--gt-surface-dark);
    border: 1px solid var(--gt-border);
    border-radius: var(--gt-radius);
    color: var(--gt-text-light);
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--gt-shadow);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.related-card:visited,
a.related-card:visited {
    color: var(--gt-text-light);
}

.related-card:hover,
a.related-card:hover {
    background: var(--gt-surface-hover);
    border-color: var(--gt-gold);
    color: #ffffff;
    transform: translateY(-2px);
}

.related-card:focus-visible,
a.related-card:focus-visible {
    background: var(--gt-surface-hover);
    border-color: var(--gt-gold);
    color: #ffffff;
    outline: 3px solid var(--gt-gold);
    outline-offset: 3px;
}

/* ---------- FAQ accordion ---------- */
.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item,
details.faq-item {
    margin: 0;
    overflow: hidden;
    background: var(--gt-surface-raised);
    border: 1px solid var(--gt-gold-border);
    border-radius: var(--gt-radius);
    color: var(--gt-text-light);
    box-shadow: var(--gt-shadow);
}

.faq-item summary,
details.faq-item summary {
    position: relative;
    display: block;
    padding: 1rem 3.25rem 1rem 1.25rem;
    background: var(--gt-surface-raised);
    color: var(--gt-gold);
    font-weight: 700;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.faq-item summary::-webkit-details-marker,
details.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after,
details.faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 1.25rem;
    color: var(--gt-gold);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-50%);
}

.faq-item[open] summary::after,
details.faq-item[open] summary::after {
    content: "−";
}

.faq-item summary:hover,
details.faq-item summary:hover {
    background: var(--gt-surface-hover);
    color: var(--gt-gold-hover);
}

.faq-item summary:focus-visible,
details.faq-item summary:focus-visible {
    outline: 3px solid var(--gt-gold);
    outline-offset: -3px;
}

.faq-item p,
.faq-item li,
details.faq-item p,
details.faq-item li {
    color: var(--gt-text-light);
}

.faq-item > p,
details.faq-item > p {
    margin: 0;
    padding: 0 1.25rem 1.25rem;
    line-height: 1.7;
}

.faq-item > ul,
.faq-item > ol,
details.faq-item > ul,
details.faq-item > ol {
    margin: 0;
    padding: 0 2.5rem 1.25rem;
}

/* Ensure inherited global link colours remain readable in answers. */
.faq-item a,
details.faq-item a {
    color: var(--gt-gold-hover);
}

.faq-item a:visited,
details.faq-item a:visited {
    color: var(--gt-gold-hover);
}

.faq-item a:hover,
details.faq-item a:hover {
    color: #ffffff;
}

/* ---------- Tutorial images ---------- */
.lesson-demo-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border-radius: var(--gt-radius);
    box-shadow: var(--gt-shadow);
}

/* ---------- Embedded tutorial videos ---------- */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 1.5rem auto;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
    border: 1px solid var(--gt-border);
    border-radius: var(--gt-radius);
    box-shadow: var(--gt-shadow);
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Global keyboard visibility for shared components ---------- */
.info-card a:focus-visible,
.lesson-content a:focus-visible {
    outline: 3px solid var(--gt-gold);
    outline-offset: 3px;
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 640px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-card,
    a.related-card {
        min-height: 60px;
        padding: 0.9rem 1rem;
    }

    .faq-item summary,
    details.faq-item summary {
        padding: 0.95rem 3rem 0.95rem 1rem;
    }

    .faq-item summary::after,
    details.faq-item summary::after {
        right: 1rem;
    }

    .faq-item > p,
    details.faq-item > p {
        padding: 0 1rem 1rem;
    }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
    .related-card,
    a.related-card,
    .faq-item summary,
    details.faq-item summary {
        transition: none;
    }

    .related-card:hover,
    a.related-card:hover {
        transform: none;
    }
}

/* =========================================================
   GOODTRICKS V2 — SOFT-LAUNCH AUTHORITATIVE OVERRIDES
   Final shared rules for legacy and rebuilt pages.
   Keep this section at the end of the stylesheet.
   ========================================================= */

:root {
    /* Compatibility aliases used by earlier V2 component blocks. */
    --accent-color: #f3c84b;
    --gt-bg: #08111f;
    --gt-bg-deep: #050b14;
    --gt-card: #111a2d;
    --gt-card-hover: #182640;
    --gt-text: #f4f7fb;
    --gt-text-muted: #c7d0dc;
    --gt-gold: #f3c84b;
    --gt-gold-hover: #ffd76a;
    --gt-teal: #18c3bb;
    --gt-border: rgba(255, 255, 255, 0.13);
    --gt-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    --gt-radius: 10px;
}

/* Stable keyboard focus across site navigation and interactive cards. */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--gt-gold);
    outline-offset: 3px;
}

/* Information cards must remain readable inside both light and dark sections. */
.info-card,
.lesson-content .info-card {
    background: var(--gt-card);
    border: 1px solid var(--gt-border);
    color: var(--gt-text);
}

.info-card h2,
.info-card h3,
.lesson-content .info-card h2,
.lesson-content .info-card h3 {
    color: var(--gt-gold);
}

.info-card p,
.info-card li,
.info-card span,
.lesson-content .info-card p,
.lesson-content .info-card li,
.lesson-content .info-card span {
    color: var(--gt-text);
}

/* Related tutorial cards: supports links carrying the class and links inside cards. */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.related-card,
a.related-card {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.15rem;
    background: var(--gt-card);
    border: 1px solid var(--gt-border);
    border-radius: var(--gt-radius);
    color: var(--gt-text);
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--gt-shadow);
    transition: background-color 180ms ease, border-color 180ms ease,
                color 180ms ease, transform 180ms ease;
}

.related-card a,
.related-card a:visited,
.related-card:visited,
a.related-card:visited {
    color: var(--gt-text);
    text-decoration: none;
}

.related-card:hover,
.related-card:focus-visible,
a.related-card:hover,
a.related-card:focus-visible {
    background: var(--gt-card-hover);
    border-color: var(--gt-gold);
    color: #ffffff;
    transform: translateY(-2px);
}

.related-card:hover a,
.related-card:focus-visible a {
    color: #ffffff;
}

/* FAQ: authoritative selectors cover both markup patterns used across the site. */
.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-list details,
.faq-item,
details.faq-item {
    margin: 0;
    overflow: hidden;
    background: var(--gt-card);
    border: 1px solid rgba(243, 200, 75, 0.4);
    border-radius: var(--gt-radius);
    color: var(--gt-text);
    box-shadow: var(--gt-shadow);
}

.faq-list summary,
.faq-item summary,
details.faq-item summary {
    position: relative;
    display: block;
    padding: 1rem 3.25rem 1rem 1.25rem;
    background: var(--gt-card);
    color: var(--gt-gold);
    font-weight: 700;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
    transition: background-color 180ms ease, color 180ms ease;
}

.faq-list summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker,
details.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after,
.faq-item summary::after,
details.faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 1.25rem;
    float: none;
    margin: 0;
    color: var(--gt-teal);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-50%);
}

.faq-list details[open] summary::after,
.faq-item[open] summary::after,
details.faq-item[open] summary::after {
    content: "−";
}

.faq-list summary:hover,
.faq-list summary:focus-visible,
.faq-item summary:hover,
.faq-item summary:focus-visible,
details.faq-item summary:hover,
details.faq-item summary:focus-visible {
    background: var(--gt-card-hover);
    color: var(--gt-gold-hover);
}

.faq-list details > p,
.faq-list details > ul,
.faq-list details > ol,
.faq-item > p,
.faq-item > ul,
.faq-item > ol,
details.faq-item > p,
details.faq-item > ul,
details.faq-item > ol {
    background: #0d1728;
    border-top: 1px solid var(--gt-border);
    color: var(--gt-text);
    line-height: 1.75;
}

.faq-list details > p,
.faq-item > p,
details.faq-item > p {
    margin: 0;
    padding: 1.1rem 1.25rem 1.25rem;
}

.faq-list details > ul,
.faq-list details > ol,
.faq-item > ul,
.faq-item > ol,
details.faq-item > ul,
details.faq-item > ol {
    margin: 0;
    padding: 1.1rem 2.5rem 1.25rem;
}

.faq-list details p,
.faq-list details li,
.faq-item p,
.faq-item li,
details.faq-item p,
details.faq-item li {
    color: var(--gt-text);
}

.faq-list details a,
.faq-item a,
details.faq-item a {
    color: var(--gt-gold-hover);
}

/* Shared media rules, with one canonical implementation. */
.lesson-demo-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border-radius: var(--gt-radius);
    box-shadow: var(--gt-shadow);
}

.video-wrapper,
.video-wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 1.5rem auto;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
    border: 1px solid var(--gt-border);
    border-radius: var(--gt-radius);
    box-shadow: var(--gt-shadow);
}

.video-wrapper iframe,
.video-wrapper video,
.video-wrap iframe,
.video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 640px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-card,
    a.related-card {
        min-height: 60px;
        padding: 0.9rem 1rem;
    }

    .faq-list summary,
    .faq-item summary,
    details.faq-item summary {
        padding: 0.95rem 3rem 0.95rem 1rem;
    }

    .faq-list summary::after,
    .faq-item summary::after,
    details.faq-item summary::after {
        right: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .related-card:hover,
    a.related-card:hover {
        transform: none;
    }
}

