/* ================================================================
   FRONTEND PAGE — page-inner-banner + story-section
   No CSS custom properties / root variables.
   Pure direct, creative styles.
================================================================ */


/* ══════════════════════════════════════════════════════════════
   INNER BANNER
══════════════════════════════════════════════════════════════ */
.page-inner-banner { 
    position: relative;
    min-height: 380px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

/* Layered overlay — dark gradient from bottom + subtle tint on top */
.page-inner-banner .overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(10, 18, 6, 0.88) 0%,
            rgba(10, 18, 6, 0.55) 45%,
            rgba(10, 18, 6, 0.20) 100%
        );
    z-index: 1;
}

/* Decorative grain texture overlay */
.page-inner-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    z-index: 2;
    pointer-events: none;
    opacity: 0.5;
}

/* Decorative diagonal stripe accent — bottom-left corner */
.page-inner-banner::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 280px;
    height: 3px;
    background: linear-gradient(90deg, #e8813a 0%, #3d5a2e 60%, transparent 100%);
    z-index: 4;
}

/* Banner content */
.page-banner-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 860px;
    padding: 0 60px 56px;
}

/* Breadcrumb eyebrow */
.page-banner-content__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.60);
    margin-bottom: 18px;
}
.page-banner-content__eyebrow i {
    font-size: 11px;
    opacity: 0.7;
}
.page-banner-content__eyebrow span:last-child {
    color: #e8813a;
}

/* Hero heading */
.page-banner-content h1 {
    
    font-size: clamp(34px, 5vw, 62px);
    font-weight: 500;
    line-height: 1.08;
    color: #ffffff;
    margin: 0 0 14px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.40);
}

/* Hero subtitle */
.page-banner-content p {
    
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    margin: 0 0 22px;
    max-width: 560px;
}

/* Decorative short divider below subtitle */
.page-banner-content__divider {
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #e8813a, #f0976a);
}

/* ══════════════════════════════════════════════════════════════
   STORY SECTION
══════════════════════════════════════════════════════════════ */
.story-section {
    background: #f4f6f0;
    padding: 80px 0 88px;
    position: relative;
}

/* Subtle top-border accent line */
.story-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3d5a2e 0%, #e8813a 50%, transparent 100%);
}

.story-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── story-text — rich content typography ── */
.story-text {
    background: #ffffff;
    border-radius: 18px;
    border: 1.5px solid rgba(61,90,46,0.10);
    box-shadow:
        0 4px 16px rgba(61,90,46,0.07),
        0 1px 3px rgba(0,0,0,0.04);
    padding: 52px 56px;
    position: relative;
    overflow: hidden;
}

/* Left decorative strip */
.story-text::after {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #3d5a2e, #2a8a6e 50%, transparent 100%);
    opacity: 0.5;
}

/* ── Typography for rendered HTML content ── */
.story-text h1,
.story-text h2,
.story-text h3,
.story-text h4,
.story-text h5,
.story-text h6 {
    
    color: #1e2d14;
    line-height: 1.22;
    letter-spacing: -0.3px;
    margin-top: 36px;
    margin-bottom: 14px;
}
.story-text h1 { font-size: 36px; font-weight: 800; margin-top: 0; }
.story-text h2 { font-size: 28px; font-weight: 700; }
.story-text h3 { font-size: 22px; font-weight: 700; }
.story-text h4 { font-size: 18px; font-weight: 700; color: #3d5a2e; }
.story-text h5 { font-size: 16px; font-weight: 700; color: #4a5e3a; }
.story-text h6 { font-size: 14px; font-weight: 700; color: #4a5e3a; text-transform: uppercase; letter-spacing: 1px; }

.story-text p {
    
    font-size: 15.5px;
    font-weight: 400;
    color: #4a5e3a;
    line-height: 1.80;
    margin-bottom: 20px;
}
.story-text p:last-child { margin-bottom: 0; }

.story-text strong,
.story-text b {
    font-weight: 700;
    color: #1e2d14;
}

.story-text em,
.story-text i {
    font-style: italic;
    color: #3d5a2e;
}

/* Links */
.story-text a {
    color: #3d5a2e;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(61,90,46,0.35);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.story-text a:hover {
    color: #e8813a;
    text-decoration-color: rgba(232,129,58,0.50);
}

/* Lists */
.story-text ul,
.story-text ol {
    
    font-size: 15.5px;
    color: #4a5e3a;
    line-height: 1.75;
    padding-left: 20px;
    margin-bottom: 22px;
}
.story-text ul { list-style: none; padding-left: 0; }
.story-text ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
}
.story-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #e8813a;
}
.story-text ol li { margin-bottom: 8px; }
.story-text ol li::marker { color: #3d5a2e; font-weight: 700; }

/* Blockquote */
.story-text blockquote {
    
    font-size: 19px;
    font-style: italic;
    font-weight: 700;
    color: #3d5a2e;
    border-left: 4px solid #e8813a;
    background: #eef4e8;
    padding: 20px 24px;
    border-radius: 0 10px 10px 0;
    margin: 28px 0;
    line-height: 1.55;
}
.story-text blockquote p {
    color: #3d5a2e;
    
    font-style: italic;
    font-size: 19px;
    line-height: 1.55;
    margin: 0;
}

/* Horizontal rule */
.story-text hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, rgba(61,90,46,0.15), rgba(232,129,58,0.20), transparent);
    margin: 36px 0;
    border-radius: 2px;
}

/* Images inside content */
.story-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(61,90,46,0.12);
    border: 1.5px solid rgba(61,90,46,0.10);
    margin: 16px 0;
    display: block;
}

/* Tables inside content */
.story-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    
    font-size: 14px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(61,90,46,0.07);
}
.story-text thead tr { background: #eef4e8; }
.story-text thead th {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #8a9e78;
    text-align: left;
    border-bottom: 1.5px solid rgba(61,90,46,0.12);
}
.story-text tbody td {
    padding: 12px 16px;
    color: #4a5e3a;
    border-bottom: 1px solid rgba(61,90,46,0.08);
    font-weight: 500;
}
.story-text tbody tr:last-child td { border-bottom: none; }
.story-text tbody tr:hover { background: #f9faf7; }

/* Code */
.story-text code {
    font-size: 13px;
    background: #f2f5ee;
    color: #3d5a2e;
    border: 1px solid rgba(61,90,46,0.15);
    border-radius: 5px;
    padding: 2px 7px;
    
}
.story-text pre {
    background: #1e2d14;
    color: #b5c4a3;
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 13.5px;
    line-height: 1.7;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.story-text pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — 992px
══════════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .page-inner-banner { min-height: 350px; }
    .page-banner-content { padding: 0 40px 44px; }
    .story-grid { padding: 0 28px; }
    .story-text { padding: 40px 40px; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — 768px
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .page-inner-banner { min-height: 320px; align-items: flex-end; }
    .page-banner-content { padding: 0 24px 36px; }
    .page-banner-content h1 { font-size: clamp(26px, 7vw, 40px); }
    .page-banner-content p { font-size: 14.5px; }
    .story-section { padding: 52px 0 60px; }
    .story-grid { padding: 0 16px; }
    .story-text { padding: 32px 28px; }
    .story-text h1 { font-size: 28px; }
    .story-text h2 { font-size: 22px; }
    .story-text blockquote { font-size: 16px; padding: 16px 18px; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — 576px
══════════════════════════════════════════════════════════════ */
@media (max-width: 576px) {
    .page-inner-banner { min-height: 280px; }
    .page-banner-content { padding: 0 16px 28px; }
    .page-banner-content__eyebrow { font-size: 10px; gap: 5px; }
    .story-section { padding: 36px 0 44px; }
    .story-grid { padding: 0 12px; }
    .story-text { padding: 24px 20px; border-radius: 13px; }
    .story-text h1 { font-size: 24px; }
    .story-text h2 { font-size: 20px; }
    .story-text p { font-size: 14.5px; }
    .story-text blockquote { font-size: 15px; }
    .story-text pre { padding: 16px; font-size: 12.5px; }
}
