/* =========================================
HENAB TECH HUB
Premium Technology Blog
Emerald Green | White | Gold
========================================= */

/* 1. COLOUR SYSTEM */

:root {
--green-dark: #062d24;
--green-deep: #073b2f;
--green-main: #0b4a39;
--green-light: #e8f2ed;

--gold: #d4af37;
--gold-light: #f3df91;

--white: #ffffff;
--background: #f7f8f6;
--text-dark: #202923;
--text-muted: #68736c;
--border: #e3e8e4;

--shadow: 0 12px 35px rgba(6, 45, 36, 0.08);

}

/* 2. GENERAL RESET */

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

html {
scroll-behavior: smooth;
scroll-padding-top: 100px;
}

body {
font-family: Arial, Helvetica, sans-serif;
background: var(--white);
color: var(--text-dark);
line-height: 1.7;
overflow-x: hidden;
}

a {
color: inherit;
text-decoration: none;
}

button,
input,
select,
textarea {
font: inherit;
}

button,
a {
-webkit-tap-highlight-color: transparent;
}

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

.container {
width: 90%;
max-width: 1180px;
margin: 0 auto;
}

.section-padding {
padding: 85px 0;
}

/* 3. HEADER AND BRAND */

.site-header {
background: var(--green-dark);
border-bottom: 1px solid rgba(212, 175, 55, 0.25);
position: sticky;
top: 0;
z-index: 1000;
width: 100%;
}

/* Support both header container names used by the pages. */

.header-content,
.header-container {
min-height: 82px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 25px;
position: relative;
}

/* Brand */

.brand {
display: inline-flex;
align-items: center;
gap: 12px;
flex-shrink: 0;
min-width: 0;
}

/* Temporary HTH monogram */

.brand-logo {
width: 51px;
height: 51px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;

font-size: 17px;
font-weight: 900;
letter-spacing: -1px;

color: var(--gold-light);
border: 2px solid var(--gold);
border-radius: 12px 3px 12px 3px;

background: linear-gradient(
    145deg,
    #154b3b,
    #06251e
);

box-shadow: 0 0 16px rgba(212, 175, 55, 0.12);
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);

}

/* Support both brand text class names. */

.brand-text,
.brand-name {
display: flex;
flex-direction: column;
color: var(--white);
line-height: 1.25;
white-space: nowrap;
}

.brand-text strong,
.brand-name strong {
color: var(--white);
font-size: 19px;
letter-spacing: 1.4px;
}

.brand-text small,
.brand-name small {
color: var(--gold);
font-size: 11px;
letter-spacing: 4px;
font-weight: 700;
}

/* If the brand name contains only the title, keep it aligned. */

.brand-name {
display: inline-block;
}

/* 4. NAVIGATION */

.main-nav,
.nav-links {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 25px;
}

.main-nav a,
.nav-links a {
color: #e4ebe6;
font-size: 13px;
font-weight: 600;
transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active,
.nav-links a:hover,
.nav-links a.active {
color: var(--gold);
}

/* Mobile menu button */

.menu-toggle {
display: none;
flex-shrink: 0;
align-items: center;
justify-content: center;

border: 1px solid rgba(212, 175, 55, 0.5);
background: transparent;
color: var(--gold-light);

font-size: 25px;
width: 43px;
height: 43px;
border-radius: 7px;
cursor: pointer;

}

/* 5. HERO SECTION */

.hero {
position: relative;
overflow: hidden;

background:
    radial-gradient(
        circle at 80% 40%,
        rgba(21, 93, 68, 0.6),
        transparent 35%
    ),
    linear-gradient(
        125deg,
        #06251e,
        #073b2f 60%,
        #0b4a39
    );

color: var(--white);
padding: 85px 0 95px;

}

.hero::before {
content: "";
position: absolute;
width: 360px;
height: 360px;
border: 1px solid rgba(212, 175, 55, 0.12);
border-radius: 50%;
top: -190px;
right: -80px;
pointer-events: none;
}

.hero::after {
content: "";
position: absolute;
width: 260px;
height: 260px;
border: 1px solid rgba(212, 175, 55, 0.1);
border-radius: 50%;
bottom: -180px;
left: -80px;
pointer-events: none;
}

.hero-content {
position: relative;
z-index: 1;

display: grid;
grid-template-columns: 1.2fr 0.8fr;
align-items: center;
gap: 70px;

}

.hero-text {
max-width: 650px;
}

.eyebrow,
.section-label {
color: #b58f20;
font-size: 11px;
font-weight: 800;
letter-spacing: 2.5px;
text-transform: uppercase;
}

.hero .eyebrow {
color: var(--gold-light);
}

.hero h1 {
margin: 22px 0;
font-size: clamp(42px, 5.5vw, 68px);
line-height: 1.1;
letter-spacing: -2px;
}

.hero h1 span {
display: block;
color: var(--gold);
}

.hero-text > p {
color: #d3e0d8;
font-size: 16px;
max-width: 560px;
margin-bottom: 32px;
}

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

/* 6. BUTTONS */

.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 13px 23px;
border-radius: 5px;
font-size: 13px;
font-weight: 700;
transition: 0.3s ease;
}

.btn-primary {
background: var(--gold);
color: var(--green-dark);
}

.btn-primary:hover {
background: var(--gold-light);
transform: translateY(-2px);
}

.btn-outline {
border: 1px solid rgba(255, 255, 255, 0.4);
color: var(--white);
}

.btn-outline:hover {
border-color: var(--gold);
color: var(--gold);
}

.btn-light {
background: var(--white);
color: var(--green-dark);
white-space: nowrap;
}

.btn-light:hover {
background: var(--gold-light);
}

/* 7. HERO BRAND CARD */

.hero-visual {
display: flex;
align-items: center;
justify-content: center;
}

.hero-card {
width: 100%;
max-width: 350px;
min-height: 330px;

display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;

border: 1px solid rgba(212, 175, 55, 0.55);
border-radius: 8px;

background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.015)
);

box-shadow: 0 25px 65px rgba(0, 0, 0, 0.2);
position: relative;

}

.hero-card::before,
.hero-card::after {
content: "";
position: absolute;
width: 35px;
height: 35px;
border-color: var(--gold);
border-style: solid;
pointer-events: none;
}

.hero-card::before {
top: 14px;
left: 14px;
border-width: 1px 0 0 1px;
}

.hero-card::after {
right: 14px;
bottom: 14px;
border-width: 0 1px 1px 0;
}

.hero-icon {
font-size: 32px;
color: var(--gold);
margin-bottom: 14px;
}

.hero-card-label {
color: #d8e4dc;
font-size: 11px;
letter-spacing: 4px;
}

.hero-card h2 {
color: var(--gold-light);
font-size: 39px;
line-height: 1.15;
letter-spacing: 3px;
margin: 14px 0;
}

.hero-line {
width: 65px;
height: 2px;
background: var(--gold);
margin: 10px 0 16px;
}

.hero-card-footer {
color: #e0e9e3;
font-size: 12px;
letter-spacing: 1px;
}

/* 8. SECTION HEADINGS */

.section-heading {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 20px;
margin-bottom: 30px;
}

.section-heading h2 {
color: var(--green-dark);
font-size: clamp(27px, 4vw, 37px);
line-height: 1.25;
margin-top: 8px;
letter-spacing: -0.8px;
}

.heading-decoration {
color: var(--gold);
font-size: 31px;
}

.section-description {
color: var(--text-muted);
margin-top: -12px;
margin-bottom: 30px;
max-width: 650px;
}

/* 9. FEATURED ARTICLE */

.featured-section {
background: var(--white);
}

.featured-card {
display: grid;
grid-template-columns: 1fr 1fr;
overflow: hidden;

background: var(--background);
border: 1px solid var(--border);
border-radius: 10px;

box-shadow: var(--shadow);

}

.featured-image {
min-height: 360px;
display: flex;
align-items: center;
justify-content: center;
padding: 30px;
}

.featured-art {
background:
radial-gradient(
circle at center,
rgba(212, 175, 55, 0.2),
transparent 45%
),
linear-gradient(140deg, #06251e, #0b4a39);
}

.featured-art span {
text-align: center;
font-size: clamp(30px, 4vw, 48px);
line-height: 1.2;
letter-spacing: 3px;
font-weight: 900;
color: var(--gold-light);
text-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.featured-content {
padding: 45px;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
}

.article-category {
color: #9a791a;
font-size: 10px;
font-weight: 800;
letter-spacing: 1.6px;
}

.featured-content h3 {
color: var(--green-dark);
font-size: clamp(24px, 3vw, 33px);
line-height: 1.35;
margin: 14px 0;
}

.featured-content > p {
color: var(--text-muted);
font-size: 14px;
margin-bottom: 22px;
}

.article-meta {
display: flex;
flex-wrap: wrap;
gap: 18px;
color: #758078;
font-size: 11px;
margin-bottom: 25px;
}

.read-more {
color: var(--green-main);
font-size: 13px;
font-weight: 800;
display: inline-flex;
align-items: center;
gap: 9px;
}

.read-more span {
color: #b58f20;
font-size: 18px;
transition: transform 0.3s ease;
}

.read-more:hover {
color: #8a6a0d;
}

.read-more:hover span {
transform: translateX(5px);
}

/* 10. CATEGORIES */

.categories-section {
background: var(--background);
}

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

.category-card {
min-width: 0;
background: var(--white);
padding: 28px 25px;
border: 1px solid var(--border);
border-radius: 8px;

position: relative;
overflow: hidden;

transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;

}

.category-card::before {
content: "";
height: 3px;
width: 0;
background: var(--gold);
position: absolute;
top: 0;
left: 0;
transition: width 0.3s ease;
}

.category-card:hover {
transform: translateY(-5px);
border-color: rgba(212, 175, 55, 0.5);
box-shadow: var(--shadow);
}

.category-card:hover::before {
width: 100%;
}

.category-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 55px;
height: 55px;
background: var(--green-light);
border-radius: 8px;
font-size: 26px;
margin-bottom: 18px;
}

.category-card h3 {
color: var(--green-dark);
font-size: 18px;
margin-bottom: 8px;
}

.category-card p {
color: var(--text-muted);
font-size: 13px;
margin-bottom: 18px;
}

.category-arrow {
color: #9a791a;
font-size: 12px;
font-weight: 800;
}

/* 11. LATEST ARTICLES AND SEARCH */

.latest-section {
background: var(--white);
}

.search-box {
max-width: 470px;
display: flex;
align-items: center;
gap: 12px;

background: var(--background);
border: 1px solid var(--border);
border-radius: 6px;

padding: 0 17px;
margin-bottom: 32px;

}

.search-box:focus-within {
border-color: var(--gold);
box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-box > span {
color: #a18225;
font-size: 28px;
}

.search-box input {
width: 100%;
min-width: 0;
height: 52px;
background: transparent;
border: none;
outline: none;
color: var(--text-dark);
font-size: 13px;
}

.article-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 25px;
}

.article-card {
min-width: 0;
overflow: hidden;
background: var(--white);
border: 1px solid var(--border);
border-radius: 8px;

transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

}

.article-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow);
}

.article-card-image {
min-height: 190px;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}

.article-card-image span {
color: var(--gold-light);
font-size: 20px;
font-weight: 900;
letter-spacing: 2px;
text-align: center;
}

.battery-art {
background: linear-gradient(135deg, #133c35, #246c50);
}

.repair-art {
background: linear-gradient(135deg, #202b30, #435b60);
}

.coding-art {
background: linear-gradient(135deg, #172a46, #275b76);
}

.business-art {
background: linear-gradient(135deg, #40341c, #806326);
}

.safety-art {
background: linear-gradient(135deg, #152d3a, #23615c);
}

.tech-art {
background: linear-gradient(135deg, #30234a, #67518d);
}

.article-card-content {
padding: 24px;
}

.article-card-content h3 {
color: var(--green-dark);
font-size: 18px;
line-height: 1.5;
margin: 11px 0;
}

.article-card-content p {
color: var(--text-muted);
font-size: 13px;
margin-bottom: 20px;
}

.no-results {
margin-top: 25px;
padding: 20px;
color: var(--text-muted);
background: var(--background);
border-radius: 6px;
}

/* 12. ABOUT STRIP */

.about-strip {
background: var(--green-light);
border-top: 1px solid #d9e8df;
border-bottom: 1px solid #d9e8df;
padding: 65px 0;
}

.about-strip-content {
display: flex;
align-items: center;
justify-content: space-between;
gap: 40px;
}

.about-strip-content > div {
max-width: 700px;
}

.about-strip h2 {
color: var(--green-dark);
font-size: clamp(25px, 3.5vw, 36px);
line-height: 1.3;
margin: 12px 0;
}

.about-strip p {
color: var(--text-muted);
font-size: 14px;
}

/* =========================================
   13. PREMIUM FOOTER
   HENAB TECH HUB
   Emerald Green | White | Gold
========================================= */

.site-footer {
    position: relative;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(11, 74, 57, 0.65),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #041f19,
            #062d24 55%,
            #073b2f
        );

    color: var(--white);
    padding: 65px 0 0;
    border-top: 3px solid var(--gold);
}

/* Main footer layout */

.footer-content {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr 1.2fr 1fr;
    gap: 45px;
    align-items: start;
    text-align: left;
    padding-bottom: 45px;
}

/* Brand column */

.footer-brand-column {
    min-width: 0;
}

.site-footer .footer-brand {
    display: inline-flex;
    align-items: center;
    flex-direction: row;
    gap: 12px;

    color: var(--white);
    text-decoration: none;

    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1.4;

    margin-bottom: 10px;
}

.site-footer .footer-brand .brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.site-footer .footer-brand .brand-text strong {
    color: var(--white);
    display: block;
}

.site-footer .footer-brand .brand-text small {
    display: block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-top: 4px;
}

.footer-tagline {
    color: var(--gold-light);
    font-size: 15px;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.footer-description {
    color: #c8d8ce;
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 22px;
}

/* Footer column headings */

.footer-column h3 {
    color: var(--white);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 13px;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

/* Footer navigation lists */

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 14px;
}

.footer-column li a {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;

    color: #d6e2da;
    font-size: 13px;
    line-height: 1.7;
    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.footer-column li a::before {
    content: "›";
    flex-shrink: 0;
    color: var(--gold);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.1;
}

.footer-column li a:hover {
    color: var(--gold-light);
    transform: translateX(3px);
}

/* Social and contact column */

.footer-social-intro {
    color: #c8d8ce;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;

    color: var(--white);
    text-decoration: none;

    transition: transform 0.25s ease;
}

.footer-social-link:hover {
    transform: translateX(3px);
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 42px;
    height: 42px;

    color: var(--green-dark);
    background: var(--gold);
    border-radius: 50%;

    font-size: 17px;
    font-weight: 900;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.footer-social-link:hover .footer-social-icon {
    background: var(--gold-light);
    transform: scale(1.05);
}

.footer-social-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.footer-social-text strong {
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
}

.footer-social-text span {
    color: #c8d8ce;
    font-size: 12px;
    overflow-wrap: anywhere;
}

/* Optional brand highlights */

.footer-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.footer-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 48px;

    color: var(--gold-light);
    font-size: 11px;
    text-align: center;
}

.footer-highlight span {
    font-size: 20px;
}

/* Copyright bar */

.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(212, 175, 55, 0.65);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p,
.site-footer .copyright {
    color: #c8d8ce;
    font-size: 12px;
    line-height: 1.8;
    margin: 0;
}

.footer-bottom strong,
.site-footer .copyright strong {
    color: var(--gold);
}

/* Compatibility with existing article-page footer */

.site-footer .footer-content > p {
    color: #c8d8ce;
}

/* =========================================
   FOOTER RESPONSIVE DESIGN
========================================= */

/* Tablet */

@media (max-width: 1000px) {

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 35px;
    }

    .footer-brand-column {
        max-width: 420px;
    }

}

/* Mobile */

@media (max-width: 600px) {

    .site-footer {
        padding-top: 45px;
    }

    .footer-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        padding-bottom: 35px;
    }

    .footer-brand-column {
        max-width: 100%;
    }

    .site-footer .footer-brand {
        font-size: 22px;
    }

    .footer-column h3 {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .footer-column li {
        margin-bottom: 12px;
    }

    .footer-column li a {
        font-size: 13px;
    }

    .footer-social-links {
        gap: 16px;
    }

    .footer-bottom {
        padding: 18px 0;
    }

    .footer-bottom p,
    .site-footer .copyright {
        font-size: 11px;
    }

}

/* 14. ABOUT PAGE */

.about-page-content {
max-width: 900px;
}

.about-page-content p {
color: var(--text-muted);
font-size: 15px;
line-height: 1.9;
margin-bottom: 22px;
}

.about-page-content strong {
color: var(--green-dark);
}

/* 15. CONTACT PAGE */

.contact-layout {
display: grid;
grid-template-columns: 0.8fr 1.2fr;
gap: 55px;
align-items: start;
}

.contact-intro h2 {
color: var(--green-dark);
font-size: clamp(29px, 4vw, 40px);
line-height: 1.25;
margin: 12px 0 18px;
}

.contact-intro > p {
color: var(--text-muted);
font-size: 14px;
}

.contact-note {
display: flex;
gap: 13px;
padding: 20px;
margin-top: 28px;
background: var(--white);
border-left: 3px solid var(--gold);
box-shadow: var(--shadow);
}

.contact-note > span {
color: #b58f20;
font-size: 22px;
}

.contact-note p {
color: var(--text-muted);
font-size: 13px;
}

.contact-form {
background: var(--white);
border: 1px solid var(--border);
border-radius: 9px;
padding: 30px;
box-shadow: var(--shadow);
}

.form-group {
margin-bottom: 20px;
}

.form-group label {
display: block;
color: var(--green-dark);
font-size: 13px;
font-weight: 700;
margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
width: 100%;
padding: 13px 14px;
border: 1px solid var(--border);
border-radius: 5px;
background: var(--background);
color: var(--text-dark);
outline: none;
font-size: 13px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
border-color: var(--gold);
box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
resize: vertical;
min-height: 140px;
}

.form-submit {
border: none;
cursor: pointer;
}

.form-disclaimer {
color: var(--text-muted);
font-size: 11px;
margin-top: 15px;
}

/* 16. ARTICLE HERO */

.article-hero {
background: linear-gradient(135deg, #062d24, #0b4a39);
color: var(--white);
padding: 65px 0 70px;
border-bottom: 4px solid var(--gold);
}

.article-hero .container {
max-width: 1000px;
}

.article-back {
display: inline-block;
color: var(--gold-light);
font-size: 13px;
margin-bottom: 35px;
}

.article-back:hover {
color: var(--white);
}

.article-category-label {
display: block;
color: var(--gold-light);
font-size: 11px;
font-weight: 800;
letter-spacing: 2px;
margin-bottom: 17px;
}

.article-hero h1 {
max-width: 850px;
font-size: clamp(32px, 5vw, 54px);
line-height: 1.2;
margin-bottom: 22px;
letter-spacing: -1px;
}

.article-intro {
max-width: 760px;
color: #e0e9e3;
font-size: 16px;
line-height: 1.9;
margin-bottom: 25px;
}

.article-hero .article-meta {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
color: var(--gold-light);
font-size: 12px;
margin-bottom: 0;
}

/* 17. ARTICLE LAYOUT AND CONTENT */

.article-page-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 290px;
gap: 45px;
align-items: start;
padding-top: 65px;
padding-bottom: 80px;
}

.article-content {
min-width: 0;
color: #303a33;
font-size: 15px;
line-height: 1.95;
overflow-wrap: anywhere;
}

.article-content h2 {
color: var(--green-deep);
font-size: 25px;
line-height: 1.4;
margin-top: 38px;
margin-bottom: 14px;
}

.article-content h3 {
color: var(--green-main);
font-size: 19px;
line-height: 1.5;
margin-top: 25px;
margin-bottom: 12px;
}

.article-content p {
margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
padding-left: 25px;
margin-bottom: 22px;
}

.article-content li {
padding-left: 4px;
margin-bottom: 10px;
}

.article-highlight {
background: var(--green-light);
border-left: 4px solid var(--gold);
border-radius: 5px;
padding: 20px 22px;
margin-bottom: 35px;
color: #35483c;
font-size: 14px;
line-height: 1.9;
}

.article-highlight strong {
color: var(--green-deep);
}

.article-summary {
background: var(--background);
border: 1px solid var(--border);
border-radius: 8px;
padding: 25px;
margin-top: 45px;
}

.article-summary h2 {
margin-top: 0;
}

.article-summary p:last-child {
margin-bottom: 0;
}

/* 18. ARTICLE CODE EXAMPLES */

.article-code {
display: block;
max-width: 100%;
overflow-x: auto;
background: var(--green-dark);
color: var(--gold-light);
border: 1px solid #155642;
border-left: 4px solid var(--gold);
border-radius: 6px;
padding: 22px;
margin: 22px 0 28px;
font-family: monospace;
font-size: 13px;
line-height: 1.8;
white-space: pre;
-webkit-overflow-scrolling: touch;
}

/* 19. ARTICLE SHARING */

.article-share {
display: block;
width: 100%;
margin-top: 40px;
padding: 25px;
background: var(--white);
border: 1px solid var(--border);
border-radius: 8px;
box-shadow: 0 12px 35px rgba(6, 45, 36, 0.06);
}

.article-share h3 {
color: var(--green-dark);
font-size: 21px;
margin-top: 0;
margin-bottom: 7px;
}

.article-share p {
color: var(--text-muted);
font-size: 13px;
margin-bottom: 18px;
}

.share-buttons {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
}

.share-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 44px;
padding: 12px 20px;

background: var(--green-dark);
color: var(--white) !important;
border: 1px solid var(--green-dark);
border-radius: 5px;

text-align: center;
text-decoration: none !important;
font-size: 13px;
font-weight: 700;

visibility: visible;
opacity: 1;
cursor: pointer;
transition: 0.25s ease;

}

.share-button:hover {
background: var(--gold);
border-color: var(--gold);
color: var(--green-dark) !important;
}

.facebook-share {
background: #1877f2;
border-color: #1877f2;
color: var(--white) !important;
}

.facebook-share:hover {
background: #0d5fc7;
border-color: #0d5fc7;
color: var(--white) !important;
}

.whatsapp-share {
background: #168c53;
border-color: #168c53;
color: var(--white) !important;
}

.whatsapp-share:hover {
background: #0b6e3c;
border-color: #0b6e3c;
color: var(--white) !important;
}

/* 20. RELATED ARTICLES */

.related-articles {
margin-top: 55px;
}

.related-articles > h2 {
font-size: 27px;
margin-top: 0;
margin-bottom: 22px;
}

.related-article-card {
display: block;
padding: 23px;
margin-bottom: 18px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--white);
transition: 0.25s ease;
}

.related-article-card:hover {
border-color: var(--gold);
transform: translateY(-3px);
box-shadow: 0 12px 25px rgba(6, 45, 36, 0.07);
}

.related-article-card > span {
color: #a78319;
font-size: 10px;
font-weight: 800;
letter-spacing: 1.5px;
}

.related-article-card h3 {
color: var(--green-deep);
font-size: 18px;
line-height: 1.5;
margin: 10px 0;
}

.related-article-card p {
color: var(--text-muted);
font-size: 13px;
line-height: 1.8;
margin-bottom: 12px;
}

.related-article-card > strong {
color: var(--green-main);
font-size: 12px;
}

/* 21. ARTICLE SIDEBAR */

.article-sidebar {
position: sticky;
top: 105px;
min-width: 0;
}

.sidebar-card {
background: var(--white);
border: 1px solid var(--border);
border-radius: 8px;
padding: 25px;
margin-bottom: 22px;
box-shadow: 0 12px 35px rgba(6, 45, 36, 0.06);
}

.sidebar-label {
color: #a78319;
font-size: 10px;
font-weight: 800;
letter-spacing: 2px;
}

.sidebar-card h3 {
color: var(--green-deep);
font-size: 20px;
line-height: 1.4;
margin: 12px 0;
}

.sidebar-card p {
color: var(--text-muted);
font-size: 13px;
line-height: 1.9;
margin-bottom: 20px;
}

.sidebar-card .btn {
display: inline-flex;
text-decoration: none;
}

.sidebar-gold {
background: var(--green-deep);
border-color: var(--green-deep);
}

.sidebar-gold h3 {
color: var(--white);
}

.sidebar-gold p {
color: #dce7df;
}

.sidebar-gold > a {
color: var(--gold-light);
font-size: 13px;
font-weight: 700;
text-decoration: none;
}

.sidebar-gold > a:hover {
color: var(--white);
}

/* 22. TABLET RESPONSIVE RULES */

@media (max-width: 900px) {

.container {
    width: 92%;
}

.main-nav,
.nav-links {
    gap: 14px;
}

.main-nav a,
.nav-links a {
    font-size: 12px;
}

.brand-text strong,
.brand-name strong {
    font-size: 16px;
    letter-spacing: 1px;
}

.hero-content {
    gap: 35px;
}

.hero h1 {
    font-size: 49px;
}

.hero-card {
    min-height: 290px;
}

.featured-content {
    padding: 30px;
}

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

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

.article-page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
}

.article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.sidebar-card {
    margin-bottom: 0;
}

.contact-layout {
    gap: 35px;
}

}

/* 23. MOBILE NAVIGATION AND LAYOUT */

@media (max-width: 680px) {

.header-content,
.header-container {
    min-height: 72px;
    gap: 10px;
}

.brand {
    gap: 9px;
    min-width: 0;
}

.brand-logo {
    width: 44px;
    height: 44px;
    font-size: 15px;
}

.brand-text strong,
.brand-name strong {
    font-size: 15px;
    letter-spacing: 0.8px;
}

.brand-text small,
.brand-name small {
    font-size: 9px;
    letter-spacing: 2.5px;
}

.menu-toggle {
    display: flex;
}

/*
   Support both nav class names.
   The menu is positioned relative to the header container.
*/

.main-nav,
.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: -4.35%;
    width: 108.7%;
    max-height: calc(100vh - 72px);
    overflow-y: auto;

    padding: 12px 5% 20px;
    background: var(--green-dark);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);

    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
}

/*
   JavaScript may use either .show or .active
   to open the mobile navigation.
*/

.main-nav.show,
.nav-links.show,
.main-nav.active,
.nav-links.active {
    display: flex;
}

.main-nav a,
.nav-links a {
    display: block;
    padding: 13px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hero {
    padding: 65px 0;
}

.hero-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 45px;
}

.hero h1 {
    font-size: 46px;
    letter-spacing: -1.5px;
}

.hero-text > p {
    font-size: 14px;
}

.hero-visual {
    width: 100%;
}

.hero-card {
    max-width: 100%;
    min-height: 260px;
}

.hero-card h2 {
    font-size: 34px;
}

.section-padding {
    padding: 60px 0;
}

.section-heading h2 {
    font-size: 28px;
}

.featured-card {
    grid-template-columns: minmax(0, 1fr);
}

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

.featured-content {
    padding: 25px;
}

.featured-content h3 {
    font-size: 25px;
}

.category-grid,
.article-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.category-card {
    padding: 24px;
}

.article-card-image {
    min-height: 210px;
}

.about-strip {
    padding: 50px 0;
}

.about-strip-content {
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
}

.about-strip h2 {
    font-size: 27px;
}

.footer-links {
    gap: 17px;
}

.contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
}

.contact-form {
    padding: 22px;
}

.article-hero {
    padding: 42px 0 45px;
}

.article-back {
    margin-bottom: 28px;
}

.article-hero h1 {
    font-size: 32px;
    letter-spacing: -0.5px;
}

.article-intro {
    font-size: 14px;
    line-height: 1.85;
}

.article-page-layout {
    padding-top: 35px;
    padding-bottom: 50px;
}

.article-content {
    font-size: 14px;
}

.article-content h2 {
    font-size: 22px;
    margin-top: 30px;
}

.article-highlight {
    padding: 17px;
}

.article-summary {
    padding: 19px;
}

.article-share {
    padding: 20px;
}

.share-buttons {
    flex-direction: column;
    align-items: stretch;
}

.share-button {
    width: 100%;
}

.article-sidebar {
    grid-template-columns: minmax(0, 1fr);
}

.related-article-card {
    padding: 18px;
}

}

/* 24. SMALL PHONES */

@media (max-width: 380px) {

.container {
    width: 91%;
}

.brand {
    gap: 7px;
}

.brand-logo {
    width: 38px;
    height: 38px;
    font-size: 12px;
}

.brand-text strong,
.brand-name strong {
    font-size: 13px;
    letter-spacing: 0.4px;
}

.brand-text small,
.brand-name small {
    font-size: 8px;
    letter-spacing: 2px;
}

.menu-toggle {
    width: 39px;
    height: 39px;
    font-size: 23px;
}

.hero h1 {
    font-size: 39px;
}

.hero-buttons {
    flex-direction: column;
    align-items: stretch;
}

.btn {
    width: 100%;
}

.section-heading h2 {
    font-size: 25px;
}

.featured-content {
    padding: 21px;
}

.featured-content h3 {
    font-size: 22px;
}

.article-card-content {
    padding: 20px;
}

.article-share {
    padding: 17px;
}

.article-hero h1 {
    font-size: 29px;
}

}

/* =========================================
   HENAB TECH HUB - ADDITIVE ADVANCED FEATURES
   Original theme and layout preserved above.
========================================= */
.hth-search-all-link { margin: 12px 0 24px; text-align: right; }
.hth-search-all-link a { color: var(--green-main); font-weight: 700; }
.hth-search-intro { margin: 0 0 22px; color: var(--text-muted); }
.hth-search-count { margin: 18px 0; color: var(--text-muted); }
.hth-search-results { display: grid; gap: 18px; margin: 20px 0 40px; }
.hth-search-result { padding: 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--background); }
.hth-search-result h2 { font-size: 21px; margin-bottom: 8px; color: var(--green-dark); }
.hth-search-result p { color: var(--text-muted); margin-bottom: 12px; }
.hth-theme-toggle { position: fixed; left: 18px; bottom: 18px; z-index: 1200; width: 46px; height: 46px; border: 1px solid var(--gold); border-radius: 50%; background: var(--green-dark); color: var(--gold-light); font-size: 22px; cursor: pointer; box-shadow: 0 5px 18px rgba(0,0,0,.18); }
.hth-ad-wrap { padding-top: 18px; padding-bottom: 18px; }
.hth-ad-slot { min-height: 105px; border: 1px dashed var(--border); border-radius: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; color: var(--text-muted); background: var(--background); text-align: center; }
.hth-ad-slot span { font-size: 10px; letter-spacing: 2px; opacity: .7; }
.hth-ad-slot p { font-size: 14px; }
html.hth-dark-theme body { background: #101a16; color: #e7eee9; }
html.hth-dark-theme .site-header { background: #041c16; }
html.hth-dark-theme .featured-section, html.hth-dark-theme .categories-section, html.hth-dark-theme .articles-section, html.hth-dark-theme .section-padding { background-color: #101a16; }
html.hth-dark-theme .featured-card, html.hth-dark-theme .article-card, html.hth-dark-theme .category-card, html.hth-dark-theme .hth-search-result, html.hth-dark-theme .hth-ad-slot { background: #182720; border-color: #31463a; color: #e7eee9; }
html.hth-dark-theme h1, html.hth-dark-theme h2, html.hth-dark-theme h3, html.hth-dark-theme .hth-search-result h2 { color: #f1f5f2; }
html.hth-dark-theme p, html.hth-dark-theme li, html.hth-dark-theme .article-meta { color: #c1cec5; }
html.hth-dark-theme .search-box { background: #182720; border-color: #405348; }
html.hth-dark-theme .search-box input { background: transparent; color: #f1f5f2; }
html.hth-dark-theme .site-footer { background: #041c16; }
@media (max-width: 600px) { .hth-search-all-link { text-align: left; } .hth-theme-toggle { width: 42px; height: 42px; left: 12px; bottom: 12px; } }


/* =========================================
   HENAB TECH HUB — ARTICLE AUTHOR PROFILE
   Scoped styles; preserves the existing layout
========================================= */
.hth-author-profile {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 30px 0 28px;
    padding: 20px;
    border: 1px solid var(--border, rgba(212, 175, 55, 0.35));
    border-left: 4px solid var(--gold, #D4AF37);
    border-radius: 12px;
    background: var(--card-background, var(--background, #f7f8f6));
}
.hth-author-photo {
    display: block;
    flex: 0 0 104px;
    width: 104px;
    height: 104px;
    object-fit: cover;
    object-position: center 24%;
    border-radius: 50%;
    border: 3px solid var(--gold, #D4AF37);
}
.hth-author-details {
    min-width: 0;
}
.hth-author-label {
    display: inline-block;
    margin-bottom: 5px;
    color: var(--gold-dark, #9b7920);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}
.hth-author-details h3 {
    margin: 0 0 3px;
    color: var(--green-dark, #062D24);
    font-size: 19px;
}
.hth-author-role {
    margin: 0 0 8px;
    color: var(--text-muted, #66736c);
    font-size: 13px;
    font-weight: 700;
}
.hth-author-bio {
    margin: 0;
    color: var(--text-muted, #66736c);
    font-size: 13px;
    line-height: 1.65;
}
html.hth-dark-theme .hth-author-profile {
    background: #182720;
    border-color: #405348;
    border-left-color: var(--gold, #D4AF37);
}
html.hth-dark-theme .hth-author-details h3 {
    color: #f1f5f2;
}
html.hth-dark-theme .hth-author-role,
html.hth-dark-theme .hth-author-bio {
    color: #c1cec5;
}
@media (max-width: 520px) {
    .hth-author-profile {
        align-items: flex-start;
        gap: 13px;
        padding: 15px;
    }
    .hth-author-photo {
        flex-basis: 78px;
        width: 78px;
        height: 78px;
    }
    .hth-author-details h3 {
        font-size: 17px;
    }
    .hth-author-bio {
        font-size: 12px;
    }
}

/* HENAB TECH HUB reader Q&A */
.hth-qa{margin:34px 0;padding:26px;border:1px solid rgba(212,175,55,.35);border-radius:14px;background:var(--card-bg,#f8faf8);color:inherit}.hth-qa h2{color:var(--gold,#b58a16);margin:0 0 10px}.hth-qa-form{display:grid;gap:14px;margin-top:20px}.hth-qa-form label{display:grid;gap:7px;font-weight:600}.hth-qa-form input,.hth-qa-form textarea{width:100%;padding:12px;border:1px solid #b8c5bd;border-radius:8px;font:inherit;background:transparent;color:inherit}.hth-qa-form button{justify-self:start;padding:12px 20px;border:0;border-radius:8px;background:#0b4a39;color:#fff;font-weight:700;cursor:pointer}.hth-qa-status{min-height:1.3em;margin:0}.hth-qa-item{padding:15px 0;border-bottom:1px solid rgba(128,128,128,.25)}.hth-qa-item h3{margin:0 0 7px;font-size:1rem}.hth-qa-answer{margin:10px 0 0;padding:12px;border-left:3px solid #d4af37;background:rgba(212,175,55,.08)}.hth-qa-honeypot{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}

/* Additional article directory — uses the existing emerald and gold palette */
#hth-new-articles{margin:35px auto 55px;background:var(--green-light);border:1px solid var(--border);border-radius:16px}
#hth-new-articles h2{color:var(--green-dark);margin-bottom:8px}
#hth-new-articles>p{color:var(--text-muted)}
.hth-new-article-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;list-style:none;padding:0;margin:22px 0 0}
.hth-new-article-links li{margin:0}
.hth-new-article-links a{display:block;height:100%;padding:13px 15px;border:1px solid rgba(6,45,36,.12);border-left:3px solid var(--gold);border-radius:9px;background:var(--white);color:var(--green-dark);font-weight:600;text-decoration:none;transition:transform .2s,box-shadow .2s}
.hth-new-article-links a:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.hth-added-category-articles{margin:25px auto;background:var(--green-light);border-radius:14px;color:var(--text-dark)}
.hth-added-category-articles h2{color:var(--green-dark)}
.hth-added-category-articles ul{columns:2;column-gap:28px;padding-left:20px}
.hth-added-category-articles li{break-inside:avoid;margin:8px 0}
.hth-added-category-articles a{color:var(--green-main)}
@media(max-width:600px){.hth-added-category-articles ul{columns:1}#hth-new-articles{border-radius:10px}}


/* Web Development article-card artwork */
.web-art {
    background: linear-gradient(135deg, #172a46, #275b76);
}
