html {
    scroll-behavior: smooth;
}

/* Kashinath Enterprises Redesign - Components Stylesheet */

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: var(--transition);
}

/* Premium Top Bar */
.header-top-bar {
    background-color: var(--primary);
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    overflow: hidden;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.9;
}

.badge-mini {
    background-color: var(--accent);
    color: var(--primary);
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-header.scrolled {
    background-color: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(226, 232, 240, 0.1);
}

.site-header.scrolled .header-top-bar {
    height: 0;
    padding: 0;
    opacity: 0;
    border-bottom: none;
}

.site-header.scrolled .nav-link {
    color: var(--text-light);
}

.site-header.scrolled .site-title a {
    color: var(--text-light);
}

.site-header.scrolled .site-description {
    color: var(--accent);
}

.site-header.scrolled .hamburger-line {
    background-color: var(--text-light);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    padding: 0 4rem; /* Generous left/right breathing space from browser edges */
    transition: var(--transition);
}

.site-header.scrolled .nav-container {
    height: 75px;
}

/* Brand Identity (LEFT Column) - Visual alignment spacing */
.brand {
    flex: 1.25 0 0; /* Extra weight to balance physical logo width */
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    justify-content: flex-start;
}

.logo-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.site-header.scrolled .logo-container {
    width: 48px;
    height: 48px;
}

.logo-svg, .logo-png {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.15;
    text-transform: none;
}

.site-title a {
    color: var(--primary);
    transition: var(--transition);
}

.site-description {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2px;
    white-space: nowrap;
}

/* Desktop Navigation Menu (CENTER Column) - perfectly centered menu */
.nav-menu {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem; /* Spacious, elegant spacing between menu items */
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    width: 100%;
}

/* Right Column (Get Quote CTA & Hamburger) */
.header-right {
    flex: 0.75 0 0; /* Reduced weight matching the left column shift */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

/* Get Quote Button (reduced size slightly) */
.header-cta {
    padding: 0.45rem 1.1rem !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    border-radius: var(--radius-sm) !important;
    transition: var(--transition) !important;
    white-space: nowrap;
}

/* Hamburger & Mobile Menu Drawer */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    background: transparent;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: var(--primary);
    z-index: 999;
    padding: 6rem 2.5rem 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: var(--shadow-lg);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
}

.mobile-nav-link:hover {
    color: var(--accent);
    padding-left: 0.5rem;
}

.mobile-nav-link.active {
    color: var(--accent);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 160px; /* Clear sticky header */
    padding-bottom: 80px;
    background: radial-gradient(circle at 10% 20%, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 1) 90.2%);
    color: var(--text-light);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 50%, rgba(197, 168, 128, 0.15), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--border);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    position: relative;
    padding-bottom: 2rem;
}

.hero-gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 3px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    aspect-ratio: 4 / 5;
}

.hero-gallery-item:nth-child(even) {
    transform: translateY(2rem);
}

.hero-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.hero-gallery-item:hover img {
    transform: scale(1.08);
}

.hero-gallery-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.hero-gallery-label {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background-color: rgba(15, 23, 42, 0.85);
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

/* Trust Badges / Hero Badges */
.trust-badges-container {
    margin-top: 3.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    width: 100%;
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.trust-badge-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.trust-badge-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.trust-badge-icon-wrapper {
    width: 44px;
    height: 44px;
    background: rgba(197, 168, 128, 0.1);
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: var(--transition);
}

.trust-badge-card:hover .trust-badge-icon-wrapper {
    background: var(--accent);
    color: var(--primary);
}

.trust-badge-info h4 {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    font-family: var(--font-heading);
}

.trust-badge-info p {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.3;
}

/* Tablet & Mobile responsive overrides for Trust Badges & Hero Gallery */
@media (max-width: 992px) {
    .trust-badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 576px) {
    .trust-badges-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .hero-gallery {
        gap: 0.8rem;
    }
    .hero-gallery-item:nth-child(even) {
        transform: translateY(1rem);
    }
}

/* Feature Badges / USP Grid */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.usp-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.usp-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.usp-icon {
    font-size: 2.25rem;
    color: var(--accent);
}

.usp-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Section Headings */
.section-header {
    margin-bottom: 3.5rem;
}

.section-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--primary);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: var(--radius-full);
}

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

/* Product Catalogue Cards */
.products-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
    box-shadow: var(--shadow);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: var(--bg-card);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* Stools (KE S series), KE 5, KE 6, KE B7 & KE B13 Display Adjustment */
.product-image.stool-image,
.product-image.ke-5-image,
.product-image.ke-6-image,
.product-image[alt*="KE - S"],
.product-image[alt*="KE-S"],
.product-image[alt*="KE S"],
.product-image[alt="KE - 5"],
.product-image[alt="KE 5"],
.product-image[alt="KE - 6"],
.product-image[alt="KE 6"],
.product-image[alt="KE B7"],
.product-image[alt*="KE B7"],
.product-image.ke-b7-image,
.product-image[alt="KE B13"],
.product-image[alt*="KE B13"],
.product-image.ke-b13-image {
    object-fit: contain !important;
    object-position: center center !important;
    padding: 6px;
    background-color: var(--bg-card, #fafafa);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    z-index: 1;
}

.product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.product-card-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* Footer Section */
.site-footer {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 5rem 0 2rem 0;
    border-top: 5px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-brand-title {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 800;
}

.footer-brand-text {
    font-size: 0.9rem;
    color: var(--border);
    max-width: 320px;
}

.footer-links-title {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--border);
}

.footer-link:hover {
    color: var(--accent);
    padding-left: 0.25rem;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--border);
}

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
}

.footer-contact-icon {
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(226, 232, 240, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--border);
}

/* Contact Page Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--accent);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.25);
}

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

/* Infrastructure Showcase */
.infra-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.infra-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.infra-img-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    border: 2px solid rgba(255,255,255,0.8);
}

.infra-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.infra-img-wrapper:hover img {
    transform: scale(1.05);
}

/* Certifications Showcase badges */
.cert-row {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.cert-badge {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow);
}

.cert-badge-img {
    height: 50px;
    object-fit: contain;
}

/* Map responsive container */
.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.blog-image {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

.blog-card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Responsive Overrides */
/* TV & 4K Displays (1920px and above) */
@media (min-width: 1920px) {
    .nav-container {
        max-width: 1600px;
        margin: 0 auto;
        padding: 0 6rem;
    }
    .nav-menu {
        gap: 3rem;
    }
}

/* Responsive Overrides & Header Alignment Breakpoints */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 2rem;
        height: 80px;
    }
    .brand {
        flex: 1.1 0 0;
        gap: 0.75rem;
    }
    .site-title {
        font-size: 1.25rem;
    }
    .site-description {
        font-size: 0.68rem;
    }
    .logo-container {
        width: 50px;
        height: 50px;
    }
    .nav-menu {
        gap: 1.5rem; /* Reduce gap proportionally on tablet landscape */
    }
    .nav-link {
        font-size: 0.88rem; /* Reduce font size slightly to prevent overflow */
    }
    .header-right {
        flex: 0.9 0 0;
        gap: 1rem;
    }
}

@media (max-width: 850px) {
    .nav-menu {
        display: none !important;
    }
    .hamburger {
        display: flex !important;
        padding: 10px; /* Increase tap target size for mobile accessibility */
        margin-right: -10px;
        box-sizing: content-box;
    }
    .site-header {
        background-color: rgba(250, 250, 249, 0.98);
    }
    .header-top-bar {
        display: none; /* Hide top bar on mobile/tablet to save vertical space */
    }
    .nav-container {
        height: 70px;
        padding: 0 1.5rem;
    }
    .logo-container {
        width: 44px;
        height: 44px;
    }
    .site-title {
        font-size: 1.2rem;
    }
    .site-description {
        display: none; /* Hide tagline on mobile and small tablet to prevent overcrowding */
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.05rem;
    }
    .header-cta {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.75rem !important;
    }
    .header-right {
        gap: 0.75rem;
    }
}

@media (max-width: 1024px) {
    .hero-grid, .footer-grid, .contact-grid, .infra-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero {
        padding-top: 130px;
        padding-bottom: 60px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .filter-btn {
        flex-shrink: 0;
    }
}

/* Page Top Section Spacing for Root Pages */
.page-top-section {
    padding-top: 155px !important;
    padding-bottom: 4rem;
}

@media (max-width: 850px) {
    .page-top-section {
        padding-top: 95px !important;
        padding-bottom: 3rem;
    }
}

/* Global Anchor Scroll Margin to Prevent Header Overlap */
[id] {
    scroll-margin-top: 135px;
}

@media (max-width: 850px) {
    [id] {
        scroll-margin-top: 80px;
    }
}

/* --- BLOG PORTAL IMPROVEMENTS --- */

/* Blog Hero Section */
.blog-hero {
    background: radial-gradient(circle at 10% 20%, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 1) 90.2%);
    padding: 155px 0 55px 0;
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(226, 232, 240, 0.08);
}

@media (max-width: 850px) {
    .blog-hero {
        padding: 100px 0 40px 0;
    }
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 50%, rgba(197, 168, 128, 0.08), transparent 80%);
    pointer-events: none;
}

.blog-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.blog-hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--accent);
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}

/* Blog Search & Filters Bar */
.blog-controls-wrapper {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 85px;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.site-header.scrolled + .blog-controls-wrapper {
    top: 70px;
}

.blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.blog-search-container {
    position: relative;
    max-width: 350px;
    width: 100%;
}

.blog-search-input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: var(--transition);
    height: 40px;
}

.blog-search-input:focus {
    border-color: var(--accent);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

.blog-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 1rem;
}

.blog-filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-filter-btn {
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.blog-filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
}

.blog-filter-btn.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

/* Blog Layout Grid */
.blog-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.blog-sidebar {
    position: sticky;
    top: 180px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Sidebar Widget */
.sidebar-widget {
    background: #ffffff;
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.sidebar-widget-title {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.4rem;
    position: relative;
}

.sidebar-post-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-post-item {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.sidebar-post-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background-color: var(--bg-alternate);
}

.sidebar-post-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-post-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-title:hover {
    color: var(--accent-hover);
}

.sidebar-post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-category-link {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-main);
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border);
    transition: var(--transition);
}

.sidebar-category-link:hover {
    color: var(--accent-hover);
    padding-left: 0.25rem;
}

.sidebar-category-count {
    background-color: var(--accent-light);
    color: var(--accent-hover);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-sm);
}

.resource-download-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.resource-download-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.2), transparent 70%);
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3.5rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
}

.pagination-btn.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

.pagination-nav-btn {
    padding: 0 1rem;
    width: auto;
}

/* Newsletter Section */
.newsletter-section {
    background: radial-gradient(circle at 10% 20%, rgba(15, 23, 42, 0.97) 0%, rgba(15, 23, 42, 1) 90.2%);
    padding: 4.5rem 0;
    color: var(--text-light);
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(226, 232, 240, 0.08);
}

.newsletter-card {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.newsletter-subtitle {
    font-size: 0.98rem;
    color: var(--border);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: var(--transition);
}

.newsletter-input:focus {
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.08);
}

/* Equal Height Blog Grid & Zoom hover cards */
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

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

.blog-image-wrap {
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10;
    background-color: var(--bg-alternate);
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.blog-card-body {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-meta-tag {
    color: var(--accent-hover);
}

.blog-card-title {
    font-size: 1.2rem;
    color: var(--primary);
    line-height: 1.35;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.24rem; /* Constant height for B2B title balancing */
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.32rem; /* Balanced excerpt height */
}

.blog-card-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    transition: var(--transition);
}

.blog-card:hover .blog-card-cta {
    color: var(--accent-hover);
}

/* Animations CSS */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* B2B Sourcing Callout Cards inside Article pages */
.sourcing-callout-card {
    background-color: var(--accent-light);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    text-align: center;
    margin-top: 3.5rem;
}

.sourcing-callout-title {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.sourcing-callout-desc {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 1.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Table of Contents for articles */
.toc-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.toc-title {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding-left: 1.25rem;
    list-style-type: decimal;
}

.toc-link {
    color: var(--text-main);
}

.toc-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .blog-sidebar {
        position: static;
    }
    .blog-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .blog-search-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .blog-controls-wrapper {
        top: 70px;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-input {
        width: 100%;
    }
}

/* --- FAQ ACCORDION SYSTEM --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    outline: none;
    padding: 1.25rem 3.5rem 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.faq-question:focus-visible {
    background-color: var(--bg-alternate);
    outline: 2px solid var(--accent);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-hover);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
    background-color: var(--bg-main);
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    max-height: 400px; /* Safe upper bound for text answers */
    opacity: 1;
    border-top: 1px solid var(--border);
}

.faq-answer-content {
    padding: 1.5rem;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-main);
}


/* Responsive Top Bar alignment and stacking */
@media (max-width: 992px) {
    .top-bar-container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .top-bar-left, .top-bar-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem 1.25rem;
        width: 100%;
    }
}
