/* ==========================================================================
   Heat Treat 2000 – Custom Theme Stylesheet v2.0
   ========================================================================== */

/* ── CSS Custom Properties ── */
:root {
    --ht-blue:       #006a92;
    --ht-blue-dark:  #005070;
    --ht-red:        #a82300;
    --ht-red-light:  #ff4401;
    --ht-gold:       #ffbe00;
    --ht-gold-dark:  #cd9315;
    --ht-cyan:       #10aae0;
    --ht-grey:       #f3f3f3;
    --ht-border:     #82afc1;
    --ht-text:       #1a1a1a;
    --ht-white:      #ffffff;
    --ht-shadow:     0 4px 16px rgba(0,0,0,0.10);
    --transition:    all 0.25s ease;
    --radius:        4px;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ht-text);
    background: var(--ht-white);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ht-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--ht-red); }

/* ── Utility classes ── */
.text-ht-blue  { color: var(--ht-blue) !important; }
.text-ht-red   { color: var(--ht-red) !important; }
.text-ht-gold  { color: var(--ht-gold) !important; }
.text-ht-cyan  { color: var(--ht-cyan) !important; }
.bg-ht-blue    { background: var(--ht-blue) !important; }
.bg-ht-red     { background: var(--ht-red) !important; }


/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    line-height: 1.3;
}

h1 { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 900; color: var(--ht-blue); margin-bottom: 1rem; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 700; color: var(--ht-blue); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; font-weight: 700; color: var(--ht-white); margin-bottom: 0.5rem; }
h4 { font-size: 1rem; font-weight: 700; color: var(--ht-blue); margin-bottom: 0.5rem; }

.section-title {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    font-weight: 900;
    color: var(--ht-blue);
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--ht-red);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

p { margin-bottom: 1rem; }

.innerPage p { font-size: 16px; }
.innerPage ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.innerPage ul li { position: relative; padding-left: 0.5rem; margin-bottom: 0.4rem; font-size: 16px; }
.innerPage ul li::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.5rem;
    width: 7px;
    height: 7px;
    background: var(--ht-blue);
    border-radius: 50%;
}

.ht-divider {
    border: none;
    border-top: 2px solid var(--ht-border);
    opacity: 1;
    margin: 2rem 0;
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-ht-red {
    background: var(--ht-red);
    color: var(--ht-white);
    border: none;
    border-radius: var(--radius);
    padding: 0.6rem 1.4rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    box-shadow: 0 3px 0 var(--ht-gold-dark);
}

.btn-ht-red:hover, .btn-ht-red:focus {
    background: var(--ht-gold);
    color: #000;
    box-shadow: 0 3px 0 var(--ht-gold-dark);
    transform: translateY(-1px);
}

.btn-ht-outline {
    background: transparent;
    color: var(--ht-blue);
    border: 2px solid var(--ht-blue);
    border-radius: var(--radius);
    padding: 0.4rem 1rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-ht-outline:hover {
    background: var(--ht-blue);
    color: var(--ht-white);
}

.more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--ht-red);
    color: var(--ht-white) !important;
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius);
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 3px 0 var(--ht-gold-dark);
}

.more-btn:hover {
    background: var(--ht-gold);
    color: #000 !important;
    transform: translateY(-1px);
}


/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    background: var(--ht-white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.header-inner { padding: 0; }

.site-logo { max-height: 90px; width: auto; }

.header-tagline {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.4rem);
    font-weight: 700;
    color: var(--ht-blue);
    text-align: center;
    line-height: 1.3;
}

.header-contact { gap: 0.3rem; }

.header-contact-item {
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.header-contact-item a { color: var(--ht-text); font-weight: 500; }
.header-contact-item a:hover { color: var(--ht-red); }
.header-contact-item i { color: var(--ht-blue); font-size: 1rem; }

@media (max-width: 768px) {
    .site-header .header-contact { display: none !important; }
}


/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.ht-navbar {
    background: var(--ht-red) !important;
    border-bottom: 5px solid var(--ht-red-light);
    padding: 0;
    border-radius: 0;
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* When header is sticky, nav sticks below it */
.site-header + .ht-navbar {
    position: relative;
    z-index: auto;
}

.ht-navbar .container { padding: 0; }

.ht-navbar .navbar-brand {
    color: var(--ht-white) !important;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    padding: 0.75rem 1rem;
}

/* Nav links */
.ht-navbar .nav-link {
    color: var(--ht-white) !important;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1rem 1.1rem !important;
    transition: var(--transition);
    text-align: center;
    border-bottom: 3px solid transparent;
    letter-spacing: 0.02em;
}

.ht-navbar .nav-link:hover,
.ht-navbar .nav-link:focus {
    background: var(--ht-gold) !important;
    color: #000 !important;
    box-shadow: 0 4px 0 var(--ht-gold-dark);
}

.ht-navbar .nav-item.active .nav-link,
.ht-navbar .nav-link.active {
    background: var(--ht-red-light) !important;
    color: var(--ht-white) !important;
    box-shadow: 0 4px 0 var(--ht-red);
}

/* Dropdown */
.ht-navbar .dropdown-menu {
    background: var(--ht-red);
    border: none;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-top: 0;
    padding: 0;
    min-width: 180px;
    box-shadow: var(--ht-shadow);
}

.ht-navbar .dropdown-item {
    color: var(--ht-white) !important;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.6rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.ht-navbar .dropdown-item:last-child { border-bottom: none; }

.ht-navbar .dropdown-item:hover,
.ht-navbar .dropdown-item:focus {
    background: var(--ht-gold) !important;
    color: #000 !important;
}

/* Hamburger icon */
.ht-navbar .navbar-toggler {
    border: 2px solid rgba(255,255,255,0.5);
    padding: 0.35rem 0.65rem;
    margin: 0.4rem;
}

.ht-navbar .navbar-toggler:hover { background: var(--ht-red-light); border-color: var(--ht-white); }

.ht-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 1199px) {
    .ht-navbar .nav-link { padding: 0.75rem 1rem !important; }
}

@media (max-width: 991px) {
    .ht-navbar .navbar-collapse {
        background: var(--ht-red);
        padding: 0;
    }
    .ht-navbar .nav-item { width: 100%; }
    .ht-navbar .nav-link { text-align: left; border-bottom: 1px solid rgba(255,255,255,0.15); }
    .ht-navbar .dropdown-menu { position: relative; box-shadow: none; }
    .ht-navbar .dropdown-toggle::after { float: right; margin-top: 0.4rem; }
}


/* ==========================================================================
   HERO / SLIDER
   ========================================================================== */
.hero-section { overflow: hidden; background: #111; }

.carousel-item { position: relative; }

/* Blue-dark overlay on carousel slides via CSS — image stays clean */
.carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 40, 70, 0.35) 0%,
        rgba(0, 40, 70, 0.55) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Carousel caption sits above the overlay */
.carousel-caption { z-index: 2; }
.carousel-control-prev,
.carousel-control-next { z-index: 3; }
.carousel-indicators { z-index: 3; }

.carousel-img {
    height: 520px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) { .carousel-img { height: 280px; } }
@media (max-width: 480px) { .carousel-img { height: 200px; } }

.carousel-caption {
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    bottom: 15%;
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.carousel-caption h2 {
    color: var(--ht-white);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    margin-bottom: 0.5rem;
}

.carousel-caption p {
    color: rgba(255,255,255,0.92);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.carousel-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--ht-red);
    border: 2px solid var(--ht-red-light);
    border-radius: 50%;
    color: var(--ht-white);
    font-size: 1rem;
    transition: var(--transition);
}

.carousel-control-prev:hover .carousel-btn-icon,
.carousel-control-next:hover .carousel-btn-icon {
    background: var(--ht-gold);
    border-color: var(--ht-gold);
    color: #000;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ht-red);
    border: 2px solid var(--ht-gold);
    opacity: 1;
    margin: 0 4px;
    transition: var(--transition);
}

.carousel-indicators .active {
    background: var(--ht-gold);
    border-color: var(--ht-gold);
    transform: scale(1.2);
}

/* Fallback hero */
.hero-fallback { position: relative; overflow: hidden; }
.hero-fallback-img { height: 480px; object-fit: cover; display: block; }

/* Blue overlay via CSS — no need for baked-in darkening on the image */
.hero-fallback::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 50, 80, 0.45) 0%,
        rgba(0, 50, 80, 0.70) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.hero-fallback-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 2;
}
.hero-fallback-overlay h1 {
    color: var(--ht-white);
    font-size: clamp(1.4rem, 4vw, 2.5rem);
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}


/* ==========================================================================
   SERVICES SECTION (Homepage)
   ========================================================================== */
.services-section {
    background: var(--ht-grey);
}

/* Feature Box */
.feature-box {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--ht-shadow);
    transition: var(--transition);
    cursor: pointer;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}

.feature-box-image {
    overflow: hidden;
    background: var(--ht-white);
    transition: var(--transition);
    position: relative;
}

/* Blue overlay on feature box images via CSS */
.feature-box-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 60, 100, 0.20) 0%,
        rgba(0, 60, 100, 0.45) 100%
    );
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
}

.feature-box:hover .feature-box-image::after {
    opacity: 0.7;
}

.feature-box-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.feature-box:hover .feature-box-image img {
    transform: scale(1.04);
}

.feature-box-label {
    background: var(--ht-red);
    color: var(--ht-white);
    padding: 1rem 1.25rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 4px solid var(--ht-red-light);
    transition: var(--transition);
}

.feature-box:hover .feature-box-label {
    background: var(--ht-gold);
    color: #000;
    border-bottom-color: var(--ht-gold-dark);
}

.feature-box .feature-box-label i {
    transition: transform 0.25s ease;
}
.feature-box:hover .feature-box-label i {
    transform: translateX(4px);
}


/* ==========================================================================
   WELCOME SECTION (Homepage)
   ========================================================================== */
.welcome-section {
    background: var(--ht-grey);
}

.welcome-text-body p {
    font-size: 16px;
    color: #333;
}

.history-box .feature-box-image img {
    height: 260px;
}


/* ==========================================================================
   PROCESS PANELS (Homepage)
   ========================================================================== */
.processes-section {
    background: var(--ht-grey);
}

.process-panel {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--ht-shadow);
    height: 100%;
}

.process-panel-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 4px solid var(--ht-cyan);
    background: var(--ht-blue);
}

.process-panel-header.ferrous-bg {
    background-image: url('../images/ferrous-process.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.process-panel-header.non-ferrous-bg {
    background-image: url('../images/non-ferrous-process.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.process-panel-header.ferrous-bg::before,
.process-panel-header.non-ferrous-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,106,146,0.75);
}

.process-panel-header h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.2rem;
}

.process-panel-body {
    background: var(--ht-white);
    padding: 1.5rem;
}

.process-panel-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
}

.process-panel-body ul li {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--ht-grey);
    font-size: 0.95rem;
    color: #333;
}

.process-panel-body ul li i {
    color: var(--ht-blue);
    font-size: 0.5rem;
    vertical-align: middle;
    margin-bottom: 2px;
}

.process-panel-body ul li:last-child { border-bottom: none; }


/* ==========================================================================
   PAGE BANNER
   ========================================================================== */
.page-banner {
    background: var(--ht-blue) center/cover no-repeat;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 50, 80, 0.40) 0%,
        rgba(0, 50, 80, 0.72) 100%
    );
}

.page-banner-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 2rem 0;
}

.page-banner-title {
    color: var(--ht-white) !important;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 900;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.blog-banner { background-color: var(--ht-blue); }
.contact-banner { background-color: var(--ht-blue); }
.error-banner { background-color: var(--ht-blue); }

/* History hero */
.history-hero {
    background: linear-gradient(135deg, var(--ht-blue) 0%, #004e6e 50%, var(--ht-blue-dark) 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.history-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/banner.png') center/cover no-repeat;
    opacity: 0.15;
}

.history-hero-overlay { position: relative; z-index: 1; width: 100%; }

.history-hero-title {
    color: var(--ht-white) !important;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.history-hero-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    font-family: 'Raleway', sans-serif;
    margin: 0;
}


/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.ht-breadcrumb {
    background: var(--ht-blue);
    padding: 0.6rem 0;
    border-bottom: 3px solid var(--ht-cyan);
}

.ht-breadcrumb .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

.ht-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,0.8); }
.ht-breadcrumb .breadcrumb-item a:hover { color: var(--ht-gold); }
.ht-breadcrumb .breadcrumb-item.active { color: var(--ht-white); }
.ht-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
    content: "›";
    font-size: 1rem;
}


/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.site-main { min-height: 400px; }

.page-content-body img { width: 100% !important; height: auto !important; border-radius: var(--radius); }
.page-content-body h2, .page-content-body h3 { color: var(--ht-blue); }

/* Inner page button override */
.innerPage .btn-primary,
.innerPage a.btn {
    background: var(--ht-red);
    border: none;
    border-radius: var(--radius);
    color: var(--ht-white);
    transition: var(--transition);
}
.innerPage .btn-primary:hover { background: var(--ht-gold); color: #000; }

/* Feature Page Panels */
.featurePagePanel .panel {
    margin-bottom: 0;
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--ht-shadow);
}

.featurePagePanel .panel-heading {
    background: var(--ht-grey);
    padding: 0.75rem 1rem;
    font-weight: 700;
    color: var(--ht-blue);
    border-bottom: 1px solid var(--ht-border);
}

.featurePagePanel .panel-body {
    padding: 1.25rem;
    background: var(--ht-grey);
    font-size: 1rem;
}


/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar-widget {
    margin-bottom: 1.75rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--ht-shadow);
}

.sidebar-title {
    background: var(--ht-blue);
    color: var(--ht-white);
    padding: 0.75rem 1.25rem;
    margin: 0;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

.sidebar-nav-list, .recent-posts-list, .categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--ht-white);
}

.sidebar-nav-list li, .recent-posts-list li, .categories-list li {
    border-bottom: 1px solid var(--ht-grey);
    padding: 0;
}

.sidebar-nav-list li:last-child,
.recent-posts-list li:last-child,
.categories-list li:last-child { border-bottom: none; }

.sidebar-nav-list li a, .recent-posts-list li a, .categories-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.25rem;
    color: var(--ht-text);
    font-size: 0.9rem;
    transition: var(--transition);
}

.sidebar-nav-list li a:hover, .recent-posts-list li a:hover, .categories-list li a:hover {
    background: var(--ht-grey);
    color: var(--ht-red);
    padding-left: 1.5rem;
}

.sidebar-nav-list li.current a {
    background: var(--ht-red);
    color: var(--ht-white);
    font-weight: 600;
}

.recent-posts-list li {
    padding: 0.7rem 1.25rem;
    display: flex;
    flex-direction: column;
}
.recent-posts-list li a { padding: 0; color: var(--ht-blue); font-weight: 600; }
.recent-posts-list li a:hover { color: var(--ht-red); padding-left: 0; background: none; }
.recent-post-date { font-size: 0.78rem; color: #888; margin-top: 0.15rem; }

.cat-count { font-size: 0.8rem; color: #888; }

.sidebar-cta-widget { padding: 1.25rem; background: var(--ht-white); }
.sidebar-cta-widget .sidebar-title { margin: -1.25rem -1.25rem 1rem; }
.sidebar-cta-widget p { font-size: 0.9rem; }


/* ==========================================================================
   BLOG
   ========================================================================== */
.blog-card {
    margin-bottom: 2.5rem;
    background: var(--ht-white);
    border: 1px solid #dde5ea;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--ht-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: 0 8px 28px rgba(0,106,146,0.15);
    transform: translateY(-2px);
}

.blog-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-image img { transform: scale(1.03); }

.blog-card-header {
    background: var(--ht-blue);
    padding: 0.85rem 1.25rem;
}

.blog-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ht-white);
}

.blog-card-title a {
    color: var(--ht-white);
    transition: var(--transition);
}

.blog-card-title a:hover { color: var(--ht-gold); }

.blog-card-meta {
    padding: 0.5rem 1.25rem;
    background: var(--ht-grey);
    font-size: 0.82rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.blog-date, .blog-date-left {
    background: var(--ht-red);
    color: var(--ht-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px 20px 20px 0;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-card-body { padding: 1.25rem; font-size: 0.95rem; }
.blog-card-footer { padding: 0 1.25rem 1.25rem; }

/* Single post */
.blog-single-article { background: var(--ht-white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--ht-shadow); }

.blog-single-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}

.blog-featured-image img { border-radius: var(--radius); width: 100%; max-height: 420px; object-fit: cover; }

.blog-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1rem 0; }

.blog-tags { font-size: 0.9rem; }
.blog-tags a { background: var(--ht-grey); padding: 0.2rem 0.6rem; border-radius: 20px; margin: 0 0.2rem; color: var(--ht-blue); }
.blog-tags a:hover { background: var(--ht-blue); color: var(--ht-white); }

.post-navigation { border-top: 1px solid var(--ht-grey); padding-top: 1rem; }
.post-navigation .nav-links { display: flex; justify-content: space-between; }
.post-navigation a { color: var(--ht-blue); font-weight: 600; font-size: 0.9rem; }
.post-navigation a:hover { color: var(--ht-red); }

/* Pagination */
.blog-pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.75rem;
    border: 1px solid var(--ht-border);
    border-radius: var(--radius);
    color: var(--ht-red);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--ht-blue);
    color: var(--ht-white);
    border-color: var(--ht-blue);
}


/* ==========================================================================
   TIMELINE (History Page)
   ========================================================================== */

/* Page background */
.history-page {
    background: linear-gradient(180deg, #f0f7fa 0%, var(--ht-white) 100%);
}

/* Intro text */
.timeline-intro {
    padding: 3rem 0 1rem;
    text-align: center;
}
.timeline-intro h1, .timeline-intro h2 { color: var(--ht-blue); }
.timeline-intro p { font-size: 1.05rem; color: #444; max-width: 680px; margin: 0 auto; }

/* Outer wrapper provides the vertical line */
.timeline-wrapper {
    padding: 3rem 0 2rem;
    position: relative;
}

/* The vertical centre line */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: linear-gradient(to bottom, var(--ht-cyan), var(--ht-blue) 60%, var(--ht-cyan));
    border-radius: 4px;
    z-index: 0;
}

/* ── Each row: 3 equal columns ── */
.timeline-row {
    display: grid;
    grid-template-columns: 1fr 140px 1fr;
    align-items: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.tl-col-left  { display: flex; justify-content: flex-end; padding-right: 2rem; }
.tl-col-right { display: flex; justify-content: flex-start; padding-left: 2rem; }
.tl-col-center {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

/* ── Year badge ── */
.tl-year-badge {
    width: 100px;
    height: 100px;
    background: var(--ht-blue);
    border: 5px solid var(--ht-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0,106,146,0.35), 0 0 0 3px var(--ht-cyan);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.tl-year-badge:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(0,106,146,0.45), 0 0 0 4px var(--ht-cyan);
}

.tl-year-badge span {
    font-family: 'Raleway', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--ht-cyan);
    line-height: 1;
    text-align: center;
    letter-spacing: -0.02em;
}

/* ── Content cards ── */
.tl-card {
    background: var(--ht-white);
    border-radius: 6px;
    box-shadow: 0 3px 16px rgba(0,0,0,0.09);
    overflow: visible;
    position: relative;
    max-width: 420px;
    width: 100%;
    border-top: 4px solid var(--ht-blue);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,106,146,0.16);
}

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

.tl-card-body {
    padding: 1.25rem 1.5rem 1.4rem;
}

.tl-card-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ht-blue);
    margin: 0 0 0.5rem;
}

.tl-card-text {
    font-size: 0.93rem;
    color: #444;
    line-height: 1.6;
}
.tl-card-text p { margin: 0; }

/* ── Arrow connectors ── */
.tl-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
}

/* Right-pointing arrow (left card → centre) */
.tl-arrow-right {
    right: -18px;
    border-width: 12px 0 12px 18px;
    border-color: transparent transparent transparent var(--ht-white);
    filter: drop-shadow(2px 0 2px rgba(0,0,0,0.08));
}

/* Left-pointing arrow (right card ← centre) */
.tl-arrow-left {
    left: -18px;
    border-width: 12px 18px 12px 0;
    border-color: transparent var(--ht-white) transparent transparent;
    filter: drop-shadow(-2px 0 2px rgba(0,0,0,0.08));
}

/* Odd rows: accent colour on card top border to add variety */
.timeline-row:nth-child(odd) .tl-card  { border-top-color: var(--ht-red); }
.timeline-row:nth-child(even) .tl-card { border-top-color: var(--ht-blue); }

/* ── CTA section below timeline ── */
.timeline-cta {
    background: var(--ht-blue);
    padding: 3rem 0;
    margin-top: 1rem;
}

.timeline-cta p {
    color: rgba(255,255,255,0.9);
    font-family: 'Raleway', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ── Scroll-in animation ── */
.tl-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
}

.tl-card.tl-visible {
    opacity: 1;
    transform: translateY(0);
}

.tl-left  .tl-card { transform: translateX(-20px) translateY(10px); }
.tl-right .tl-card { transform: translateX(20px)  translateY(10px); }
.tl-left  .tl-card.tl-visible,
.tl-right .tl-card.tl-visible { transform: translateX(0) translateY(0); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .timeline-row {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto;
        margin-bottom: 2rem;
    }
    .timeline::before { left: 40px; transform: none; }
    .tl-col-left, .tl-col-right {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-start;
        padding-left: 1.5rem;
        padding-right: 0;
    }
    .tl-col-center {
        grid-column: 1;
        grid-row: 1;
        justify-content: center;
    }
    .tl-left  .tl-card,
    .tl-right .tl-card { max-width: 100%; }
    .tl-arrow-right { display: none; }
    .tl-arrow-left {
        left: -14px;
        border-width: 10px 14px 10px 0;
    }
    .tl-year-badge { width: 72px; height: 72px; }
    .tl-year-badge span { font-size: 1rem; }
}

@media (max-width: 500px) {
    .timeline-row { grid-template-columns: 64px 1fr; }
    .timeline::before { left: 32px; }
    .tl-year-badge { width: 56px; height: 56px; border-width: 3px; }
    .tl-year-badge span { font-size: 0.8rem; }
    .tl-col-left, .tl-col-right { padding-left: 1rem; }
    .tl-card-body { padding: 1rem; }
}


/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-detail-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--ht-grey);
    border-radius: var(--radius);
    border-left: 4px solid var(--ht-red);
}

.contact-icon { font-size: 1.4rem; padding-top: 0.1rem; }
.contact-text { flex: 1; }
.contact-text strong { display: block; margin-bottom: 0.2rem; color: var(--ht-blue); font-family: 'Raleway', sans-serif; }
.contact-text a { display: block; color: var(--ht-text); }
.contact-text a:hover { color: var(--ht-red); }
.contact-text address { color: var(--ht-text); font-style: normal; }

.contact-form-wrapper {
    background: var(--ht-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--ht-shadow);
    border-top: 4px solid var(--ht-blue);
}

.google-map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--ht-shadow);
    border: 2px solid var(--ht-border);
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--ht-white);
    margin-top: 3rem;
    border-top: 1px solid var(--ht-grey);
}

.footer-top { padding: 2.5rem 0 1.5rem; }

.footer-logo { max-height: 80px; width: auto; }

.footer-heading {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ht-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ht-cyan);
    display: inline-block;
}

.footer-contact-info p {
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-contact-info a { color: var(--ht-text); }
.footer-contact-info a:hover { color: var(--ht-red); }
.footer-contact-info i { font-size: 0.9rem; }

/* Footer Nav */
.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li { margin-bottom: 0.35rem; }
.footer-nav-list li a {
    color: var(--ht-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}
.footer-nav-list li a::before {
    content: '›';
    color: var(--ht-red);
    font-size: 1.1rem;
    font-weight: bold;
}
.footer-nav-list li a:hover { color: var(--ht-red); padding-left: 0.25rem; }

/* Sub-menu in footer */
.footer-nav-list .sub-menu {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.3rem;
}

.footer-address {
    font-size: 0.9rem;
    color: var(--ht-text);
    font-style: normal;
    line-height: 1.7;
}

.accreditations-img { max-height: 140px; width: auto; }

/* Footer divider – light blue bar */
.footer-accent-bar {
    background: var(--ht-cyan);
    height: 8px;
}

/* Footer bottom */
.footer-bottom {
    background: var(--ht-blue);
    color: var(--ht-white);
    padding: 1rem 0;
}

.footer-bottom p { margin: 0; font-size: 0.85rem; }
.footer-bottom a { color: rgba(255,255,255,0.8); }
.footer-bottom a:hover { color: var(--ht-gold); }

.footer-reg { font-size: 0.82rem; opacity: 0.9; }
.footer-credit { font-size: 0.82rem; opacity: 0.9; }


/* ==========================================================================
   404 PAGE
   ========================================================================== */
.error-content { max-width: 600px; margin: 0 auto; }
.error-code { font-size: 8rem; font-weight: 900; font-family: 'Raleway', sans-serif; line-height: 1; opacity: 0.15; }


/* ==========================================================================
   CONTACT FORM 7 OVERRIDES
   ========================================================================== */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    border: 1px solid var(--ht-border);
    border-radius: var(--radius);
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    font-family: 'Roboto', sans-serif;
    transition: var(--transition);
    background: var(--ht-white);
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    border-color: var(--ht-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,106,146,0.15);
}

.wpcf7-form input[type="submit"] {
    background: var(--ht-red);
    color: var(--ht-white);
    border: none;
    border-radius: var(--radius);
    padding: 0.65rem 2rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 3px 0 var(--ht-gold-dark);
}

.wpcf7-form input[type="submit"]:hover {
    background: var(--ht-gold);
    color: #000;
    transform: translateY(-1px);
}

.wpcf7-not-valid-tip { color: var(--ht-red); font-size: 0.82rem; }
.wpcf7-response-output {
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* ==========================================================================
   RESPONSIVE HELPERS
   ========================================================================== */
@media (max-width: 991px) {
    .footer-top .footer-col { border-bottom: 1px solid var(--ht-grey); padding-bottom: 1.25rem; }
    .footer-top .footer-col:last-child { border-bottom: none; }
    .timeline::before { display: none; }
}

@media (max-width: 767px) {
    body { font-size: 14px; }
    .site-header { position: relative; }
    .ht-navbar { position: relative; }
}

@media print {
    .ht-navbar, .site-header .header-contact, .carousel-control-prev, .carousel-control-next { display: none !important; }
    body { font-size: 12pt; }
}

/* ==========================================================================
   OUR SERVICES PAGE
   ========================================================================== */
.services-banner-fallback {
    background: linear-gradient(135deg, var(--ht-blue) 0%, #004f6e 100%);
    min-height: 220px;
    display: flex;
    align-items: center;
}

.services-intro p {
    font-size: 1.1rem;
    color: var(--ht-dark);
}

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

.service-summary-list li {
    padding: 0.3rem 0;
    font-size: 0.92rem;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
}

.service-summary-list li:last-child {
    border-bottom: none;
}

.services-cta-bar {
    background: var(--ht-blue);
    color: #fff;
    padding: 2rem 2.5rem;
    border-radius: 6px;
}

.services-cta-bar h3 {
    color: #fff;
    font-size: 1.4rem;
}

.services-cta-bar p {
    color: rgba(255,255,255,0.85);
    margin: 0;
}
