/*
Theme Name: hbict
Theme URI: https://hbict.cn
Author: Gemini Agent
Author URI: https://hbict.cn
Description: A professional, modern, and grand corporate blue theme designed for hbict.
Version: 3.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hbict
*/

/* ==========================================================================
   Design System Variables
   ========================================================================== */
:root {
    /* Color Palette - Modern & Rich */
    --primary-blue: #004DDA;
    /* Vibrant Tech Blue */
    --primary-blue-hover: #0036A8;
    --dark-blue: #0A192F;
    /* Deep Space Navy */
    --dark-blue-light: #112240;
    --accent-gold: #D4AF37;
    /* Trust & Authority */

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(10, 25, 47, 0.92) 0%, rgba(0, 77, 218, 0.75) 100%);
    --gradient-card: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    --gradient-text: linear-gradient(90deg, var(--dark-blue) 0%, var(--primary-blue) 100%);

    /* Backgrounds */
    --bg-main: #F4F7FA;
    --bg-white: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.85);

    /* Text Colors */
    --text-primary: #1E293B;
    /* Slate 800 */
    --text-secondary: #64748B;
    /* Slate 500 */
    --text-light: #F8FAFC;

    /* Spacing & Layout */
    --container-width: 1440px;
    /* Wider, grander feel */
    --header-height: 90px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;

    /* Shadows - Premium & Soft */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 40px -5px rgba(0, 50, 150, 0.12);
    /* Branded shadow */
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

/* ==========================================================================
   Header & Glassmorphism Navigation
   ========================================================================== */
header {
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-base);
}

header.is-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

header .logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.site-logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    gap: 12px;
}

header .logo img,
.main-logo-img,
.custom-logo-link img {
    height: 90px;
    width: auto;
    max-height: 90px;
    object-fit: contain;
    transition: transform var(--transition-base);
    display: block;
}

header .logo:hover img,
header .logo:hover .custom-logo-link img {
    transform: scale(1.02);
}

header nav ul {
    display: flex;
    gap: 48px;
    margin: 0;
    padding: 0;
}

header nav ul li {
    position: relative;
}

header nav ul li a {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 10px 0;
    display: inline-block;
    position: relative;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-blue);
    transition: width var(--transition-base);
    border-radius: 2px;
}

header nav ul li a:hover::after,
header nav ul li.current_page_item>a::after,
header nav ul li.current-menu-item>a::after {
    width: 100%;
}

header nav ul li a:hover,
header nav ul li.current_page_item>a,
header nav ul li.current-menu-item>a {
    color: var(--primary-blue);
}

/* ==========================================================================
   Hero Section - Immersive & Grand
   ========================================================================== */
.hero {
    height: 85vh;
    min-height: 700px;
    background: var(--gradient-hero), url('hero-home.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg-main);
    transform: skewY(-2deg);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 22px;
    opacity: 0.9;
    font-weight: 300;
    max-width: 800px;
    margin-bottom: 50px;
    border-left: 4px solid var(--accent-gold);
    padding-left: 24px;
    line-height: 1.6;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 48px;
    background-color: var(--primary-blue);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-base);
    box-shadow: 0 10px 20px rgba(0, 77, 218, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-base);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 77, 218, 0.4);
    color: #fff;
}

.btn-primary:hover::before {
    left: 100%;
    transition: 0.6s;
}

/* ==========================================================================
   Section Globals
   ========================================================================== */
.section-padding {
    padding: 120px 0;
}

.bg-light {
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.section-title h2 {
    font-size: 44px;
    color: var(--text-primary);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-title h2 span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title p {
    font-size: 16px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

/* ==========================================================================
   Services Grid 
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--gradient-card);
    padding: 50px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 77, 218, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-base);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 77, 218, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 88px;
    height: 88px;
    margin: 0 auto 32px;
    background: #fff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    color: var(--primary-blue);
}

.service-card:hover .icon-box {
    background: var(--primary-blue);
    color: #fff;
    transform: scale(1.1);
}

.service-card:hover .icon-box svg {
    stroke: #fff;
}

.service-card h3 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 700;
}

.service-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   News / Archive 
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.news-card {
    background: #fff;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    border: 1px solid #E2E8F0;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.news-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-image-wrapper {
    overflow: hidden;
    position: relative;
}

.news-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-date {
    color: var(--primary-blue);
}

.news-category {
    background: var(--bg-main);
    padding: 4px 12px;
    border-radius: 20px;
}

.news-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.news-title a {
    color: var(--text-primary);
    background-image: linear-gradient(transparent calc(100% - 2px), var(--primary-blue) 2px);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    transition: background-size 0.3s ease;
}

.news-title a:hover {
    background-size: 100% 100%;
    color: var(--primary-blue);
}

.news-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    flex-grow: 1;
}

.read-more {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.read-more svg {
    transition: transform var(--transition-fast);
}

.read-more:hover {
    color: var(--primary-blue-hover);
}

.read-more:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   Archive Specific Overrides
   ========================================================================== */
.archive-wrapper {
    background-color: var(--bg-main);
    padding: 80px 0;
}

.archive-carousel {
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
    color: #fff;
    text-align: center;
    margin-top: calc(-1 * var(--header-height));
    padding-top: calc(140px + var(--header-height));
    min-height: 400px;
}

.archive-carousel.pure-image-mode {
    padding: 0 !important;
    margin-top: 0 !important;
    padding-top: var(--header-height) !important;
    /* Visual offset for header */
    height: 550px !important;
    min-height: 550px !important;
    overflow: hidden;
    display: block;
    position: relative;
    background: #fff;
    /* Match header transition */
}

.archive-carousel.pure-image-mode .carousel-slides {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    z-index: 0;
}

.archive-carousel.pure-image-mode .carousel-slide {
    height: 100% !important;
    background-position: center top !important;
    background-size: cover;
}

.carousel-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 15, 45, 0.7) 0%, rgba(0, 30, 80, 0.9) 100%);
    z-index: 1;
}

.archive-banner-content {
    position: relative;
    z-index: 2;
}

.archive-carousel .page-title {
    font-size: 46px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.carousel-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-base);
}

.carousel-dots .dot.active {
    background: #fff;
    transform: scale(1.3);
}

.archive-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

.subcategory-nav {
    margin-top: -10px;
    margin-bottom: 50px;
    text-align: center;
}

.category-nav-pills {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.category-pill {
    display: inline-block;
    padding: 10px 24px;
    background: #fff;
    color: var(--text-secondary);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #E2E8F0;
    transition: var(--transition-base);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.category-pill:hover {
    color: var(--primary-blue);
    border-color: rgba(0, 77, 218, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 77, 218, 0.08);
}

.category-pill.active {
    background: var(--gradient-text);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(0, 77, 218, 0.25);
    font-weight: 600;
}

/* Pagination Styling */
.pagination {
    margin-top: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: inline-flex;
    background: #fff;
    padding: 12px 24px;
    border-radius: 60px;
    box-shadow: 0 10px 30px rgba(0, 77, 218, 0.15);
    gap: 12px;
    border: 1px solid rgba(0, 77, 218, 0.1);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    background: #F4F7FA;
}

.pagination .page-numbers:hover {
    background: rgba(0, 77, 218, 0.1);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background: var(--gradient-text);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 77, 218, 0.3);
    transform: translateY(-2px);
}

/* Post Navigation */
.post-navigation {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #E2E8F0;
    margin-bottom: 60px;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1 1 300px;
    max-width: 500px;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: block;
    height: 100%;
    padding: 30px;
    background: var(--bg-white) !important;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #E2E8F0;
    transition: var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 77, 218, 0.2);
    transform: translateY(-5px);
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 14px;
    color: var(--text-secondary) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 600;
}

.post-navigation .nav-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary) !important;
    line-height: 1.5;
    transition: var(--transition-fast);
}

.post-navigation a:hover .nav-title {
    color: var(--primary-blue) !important;
}

/* Footer */
.site-footer {
    background: var(--dark-blue);
    color: var(--text-light);
    padding: 100px 0 30px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.site-footer::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 77, 218, 0.1) 0%, transparent 70%);
    top: -300px;
    right: -200px;
    border-radius: 50%;
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 60px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.footer-col h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.footer-col p {
    color: #94A3B8;
    line-height: 1.8;
    font-size: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 16px;
    color: #94A3B8;
}

.footer-col ul li a {
    color: #94A3B8;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    color: #64748B;
    font-size: 14px;
    z-index: 2;
    position: relative;
}

/* SVG & Utility */
svg {
    transition: var(--transition-fast);
}

svg path,
svg rect,
svg polyline,
svg line,
svg circle {
    stroke: currentColor;
    stroke-width: 1.5;
}

/* Responsive Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 10px;
    transition: var(--transition-base);
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
}

.mobile-nav-overlay.active {
    transform: translateX(0);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav-links li {
    margin: 30px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.mobile-nav-overlay.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-links a {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    padding: 10px 0;
}

.mobile-nav-links .current_page_item>a {
    color: var(--primary-blue);
}

.no-scroll {
    overflow: hidden;
}

/* Media Queries */
@media (max-width: 1024px) {
    :root {
        --container-width: 95%;
    }

    .container {
        padding: 0 30px;
    }

    header nav ul {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .hero {
        height: auto;
        min-height: 500px;
        padding: 120px 0 100px;
    }

    .hero h1 {
        font-size: 38px;
        line-height: 1.25;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .btn-primary {
        padding: 14px 32px;
        font-size: 16px;
        width: 100%;
    }

    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .archive-carousel {
        padding: 100px 0 60px;
        padding-top: calc(100px + var(--header-height));
    }

    .archive-carousel .page-title {
        font-size: 32px;
    }

    .category-nav-pills {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .category-pill {
        padding: 8px 16px;
        font-size: 14px;
        white-space: nowrap;
    }

    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .site-footer {
        padding: 60px 0 30px;
    }
}

/* Logo Tuning */
.custom-logo-link img,
header .logo img,
.main-logo-img {
    max-width: 500px;
    height: 80px !important;
    object-fit: contain;
}

@media (max-width: 768px) {

    .custom-logo-link img,
    header .logo img,
    .main-logo-img {
        max-width: 280px;
        height: 50px !important;
    }
}