:root{
    --guide-green:#123c2c;
    --guide-green-light:#1f6b42;
    --guide-orange:#e87500;
    --guide-gold:#d6a13d;
    --guide-paper:#fffaf0;
    --guide-border:#d8c7a0;
    --guide-text:#252525;
    --guide-muted:#66706a;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    color:var(--guide-text);
    background:
        linear-gradient(rgba(248,240,214,.94), rgba(240,228,196,.94)),
        url('/assets/images/old-paper-bg.jpg');
    background-size:cover;
    background-position:center;
    background-attachment:fixed;
    font-family:Arial, Helvetica, sans-serif;
}

.guides-container{
    max-width:1180px;
    margin:0 auto;
    padding:0 18px;
}

.guides-hero,
.guide-hero{
    min-height:430px;
    padding:130px 18px 70px;
    display:flex;
    align-items:center;
    color:#fff;
    background:
        linear-gradient(90deg, rgba(18,60,44,.85), rgba(18,60,44,.45)),
        url('/guides/assets/images/serengeti-national-park.webp');
    background-size:cover;
    background-position:center;
}

.guides-hero-content,
.guide-hero-inner{
    max-width:1180px;
    width:100%;
    margin:0 auto;
}

.eyebrow{
    display:inline-block;
    background:rgba(232,117,0,.95);
    color:#fff;
    padding:8px 14px;
    border-radius:30px;
    font-size:13px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.8px;
    margin-bottom:18px;
}

.guides-hero h1,
.guide-hero h1{
    font-family:Georgia, serif;
    font-size:52px;
    line-height:1.05;
    margin:0 0 16px;
    text-shadow:0 4px 18px rgba(0,0,0,.45);
}

.guides-hero p,
.guide-hero p{
    max-width:760px;
    font-size:20px;
    line-height:1.5;
    font-weight:600;
    margin:0;
    text-shadow:0 3px 12px rgba(0,0,0,.45);
}

.guides-intro{
    padding:52px 0 20px;
}

.intro-grid{
    display:grid;
    grid-template-columns:1fr 340px;
    gap:28px;
    align-items:stretch;
}

.intro-grid h2,
.section-heading h2,
.guide-section h2,
.related-guides h2,
.guide-cta-box h2{
    font-family:Georgia, serif;
    color:#1d1d1d;
    font-size:34px;
    margin:0 0 14px;
    line-height:1.15;
}

.intro-grid p,
.section-heading p{
    font-size:18px;
    line-height:1.7;
    color:#444;
    margin:0;
}

.intro-card{
    background:var(--guide-green);
    color:#fff;
    border-radius:14px;
    padding:26px;
    box-shadow:0 8px 22px rgba(0,0,0,.16);
}

.intro-card strong{
    display:block;
    font-size:22px;
    margin-bottom:10px;
}

.intro-card p{
    color:#eef7f0;
    font-size:16px;
}

.guides-list-section{
    padding:38px 0 60px;
}

.section-heading{
    text-align:center;
    max-width:820px;
    margin:0 auto 34px;
}

.guides-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:24px;
}

.guide-card{
    background:rgba(255,250,240,.98);
    border:1px solid var(--guide-border);
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(0,0,0,.12);
    transition:.25s ease;
}

.guide-card:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 28px rgba(0,0,0,.18);
}

.guide-image{
    height:230px;
    display:block;
    background-size:cover;
    background-position:center;
    position:relative;
}

.guide-image:after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(transparent, rgba(0,0,0,.75));
}

.guide-image span{
    position:absolute;
    left:18px;
    bottom:18px;
    z-index:2;
    background:var(--guide-orange);
    color:#fff;
    padding:7px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
}

.guide-card-body{
    padding:24px;
}

.guide-card-body h3{
    font-family:Georgia, serif;
    font-size:24px;
    line-height:1.18;
    margin:0 0 12px;
}

.guide-card-body h3 a{
    color:#222;
    text-decoration:none;
}

.guide-card-body h3 a:hover{
    color:var(--guide-green);
}

.guide-card-body p{
    color:#555;
    line-height:1.6;
    font-size:16px;
    margin:0 0 16px;
}

.read-guide{
    color:var(--guide-orange);
    font-weight:900;
    text-decoration:none;
}

.guides-cta{
    padding:0 0 70px;
}

.cta-box,
.guide-cta-box{
    background:
        linear-gradient(135deg, rgba(18,60,44,.96), rgba(31,107,66,.92));
    color:#fff;
    border-radius:18px;
    padding:44px;
    text-align:center;
    box-shadow:0 12px 32px rgba(0,0,0,.20);
}

.cta-box h2,
.guide-cta-box h2{
    color:#fff;
}

.cta-box p,
.guide-cta-box p{
    max-width:760px;
    margin:0 auto 22px;
    font-size:18px;
    line-height:1.6;
    color:#eff9f2;
}

.cta-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:var(--guide-orange);
    color:#fff;
    text-decoration:none;
    padding:14px 24px;
    border-radius:8px;
    font-weight:900;
    box-shadow:inset 0 -3px 0 rgba(0,0,0,.18);
}

.cta-button:hover{
    background:#c76300;
}

/* Guide detail page */

.guide-main{
    padding:42px 0 70px;
}

.guide-layout{
    display:grid;
    grid-template-columns:280px minmax(0,1fr);
    gap:34px;
    align-items:start;
}

.guide-sidebar{
    position:sticky;
    top:100px;
}

.sidebar-box{
    background:rgba(255,250,240,.98);
    border:1px solid var(--guide-border);
    border-radius:14px;
    padding:20px;
    box-shadow:0 5px 18px rgba(0,0,0,.10);
}

.sidebar-box strong{
    display:block;
    color:#222;
    font-size:18px;
    margin-bottom:14px;
}

.sidebar-box nav{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.sidebar-box nav a{
    color:#345246;
    text-decoration:none;
    font-weight:800;
    font-size:14px;
    line-height:1.35;
    padding:9px 10px;
    border-radius:8px;
}

.sidebar-box nav a:hover,
.sidebar-box nav a.active{
    background:#f0e4c8;
    color:var(--guide-orange);
}

.guide-content{
    background:rgba(255,250,240,.98);
    border:1px solid var(--guide-border);
    border-radius:16px;
    padding:34px;
    box-shadow:0 6px 22px rgba(0,0,0,.12);
}

.breadcrumb{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
    font-size:14px;
    color:#666;
    margin-bottom:22px;
}

.breadcrumb a{
    color:var(--guide-green-light);
    text-decoration:none;
    font-weight:800;
}

.quick-facts{
    display:grid;
    grid-template-columns:repeat(4, minmax(0,1fr));
    gap:12px;
    margin:0 0 30px;
}

.quick-facts div{
    background:#f5ecd7;
    border:1px solid #dec895;
    border-radius:12px;
    padding:16px;
}

.quick-facts span{
    display:block;
    color:#776a52;
    font-size:12px;
    text-transform:uppercase;
    font-weight:900;
    letter-spacing:.5px;
    margin-bottom:5px;
}

.quick-facts strong{
    color:#222;
    font-size:16px;
}

.guide-section{
    padding:18px 0;
    border-top:1px solid rgba(120,92,48,.22);
    scroll-margin-top:110px;
}

.guide-section:first-of-type{
    border-top:0;
}

.guide-section h2{
    margin-top:0;
}

.guide-section h3{
    font-family:Georgia, serif;
    font-size:26px;
    margin:28px 0 10px;
    color:#222;
}

.guide-section p{
    font-size:18px;
    line-height:1.82;
    color:#383838;
    margin:0 0 18px;
}

.guide-section ul,
.guide-section ol{
    margin:0 0 22px 22px;
    padding:0;
}

.guide-section li{
    font-size:17px;
    line-height:1.72;
    margin-bottom:8px;
}

.guide-section a{
    color:var(--guide-orange);
    font-weight:900;
}

.guide-tip{
    background:#f3ead4;
    border-left:5px solid var(--guide-orange);
    padding:18px 20px;
    border-radius:10px;
    margin:22px 0;
    color:#3f3522;
    line-height:1.7;
}

.guide-table{
    width:100%;
    border-collapse:collapse;
    margin:22px 0;
    overflow:hidden;
    border-radius:12px;
    font-size:15px;
}

.guide-table th,
.guide-table td{
    border:1px solid #dccda8;
    padding:13px;
    text-align:left;
    vertical-align:top;
}

.guide-table th{
    background:var(--guide-green);
    color:#fff;
}

.guide-table td{
    background:#fffaf0;
}

.faq-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.faq-item{
    border:1px solid #dec895;
    border-radius:12px;
    overflow:hidden;
    background:#fff;
}

.faq-item button{
    width:100%;
    border:0;
    background:#f5ecd7;
    padding:18px 20px;
    text-align:left;
    color:#222;
    font-size:17px;
    font-weight:900;
    display:flex;
    justify-content:space-between;
    gap:18px;
    cursor:pointer;
}

.faq-item button span{
    color:var(--guide-orange);
    font-size:22px;
}

.faq-answer{
    display:none;
    padding:18px 20px;
}

.faq-answer p{
    margin:0;
}

.faq-item.open .faq-answer{
    display:block;
}

.faq-item.open button span{
    transform:rotate(45deg);
}

.related-guides{
    padding:24px 0 0;
}

.related-guide-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:14px;
}

.related-guide-grid a{
    background:#f5ecd7;
    border:1px solid #dec895;
    color:#222;
    text-decoration:none;
    font-weight:900;
    padding:16px;
    border-radius:10px;
}

.related-guide-grid a:hover{
    background:var(--guide-green);
    color:#fff;
}

.guide-not-found{
    padding:150px 0 80px;
}

@media(max-width:1020px){
    .guides-grid{
        grid-template-columns:repeat(2, minmax(0,1fr));
    }

    .guide-layout{
        grid-template-columns:1fr;
    }

    .guide-sidebar{
        position:relative;
        top:auto;
    }

    .sidebar-box nav{
        display:grid;
        grid-template-columns:repeat(2, minmax(0,1fr));
    }

    .quick-facts{
        grid-template-columns:repeat(2, minmax(0,1fr));
    }
}

@media(max-width:720px){
    .guides-hero,
    .guide-hero{
        min-height:360px;
        padding:100px 16px 48px;
    }

    .guides-hero h1,
    .guide-hero h1{
        font-size:36px;
    }

    .guides-hero p,
    .guide-hero p{
        font-size:16px;
    }

    .intro-grid{
        grid-template-columns:1fr;
    }

    .guides-grid{
        grid-template-columns:1fr;
    }

    .guide-content{
        padding:22px 16px;
    }

    .quick-facts{
        grid-template-columns:1fr;
    }

    .sidebar-box nav{
        grid-template-columns:1fr;
    }

    .related-guide-grid{
        grid-template-columns:1fr;
    }

    .cta-box,
    .guide-cta-box{
        padding:30px 18px;
    }

    .intro-grid h2,
    .section-heading h2,
    .guide-section h2,
    .related-guides h2,
    .guide-cta-box h2{
        font-size:28px;
    }

    .guide-section p{
        font-size:16px;
        line-height:1.75;
    }
}