/* CSS Variables */
:root {
    --primary-color: #003366;
    --secondary-color: #ff4500;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark-grey: #222;
    --border-color: #ddd;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-transform: capitalize;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-spacing: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

p {
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    word-spacing: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.bg-light {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

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

.top-contact a {
    margin-right: 20px;
    color: var(--white);
}

.top-contact a:hover {
    color: var(--secondary-color);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px 20px 0;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.iso-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
}

.footer-logo img {
    height: 60px;
    width: auto;
    display: block;
}

.logo-placeholder {
    width: 70px;
    height: 70px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-color);
    background: var(--light-bg);
}

.logo-placeholder.small {
    width: 60px;
    height: 60px;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark-grey);
    text-transform: uppercase;
    font-size: 16px;
    font-family: 'Space Grotesk', sans-serif;
}

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

.mobile-menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--primary-color);
    margin-left: 15px;
}

/* Hero Section */
/* Hero Section */
.hero {
    min-height: 600px;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Added to center content horizontally */
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    /* Ensure max-width is respected */
    margin: 0 auto;
    /* Ensure it centers itself */
    padding: 0 20px;
    /* Maintain padding */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.3s;
}

.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero h1,
.hero h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: center;
    /* Ensure heading is centered */
}

.hero h1 span,
.hero h2 span {
    color: var(--secondary-color);
}

.hero p {
    font-size: 18px;
    margin: 0 auto 30px;
    max-width: 650px;
    text-align: center;
    /* Force center alignment */
    text-align-last: center;
    /* Force center alignment for last line */
}

.hero .lead {
    font-size: 20px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 12px;
    text-align: center;
    /* Ensure eyebrow is centered */
    display: block;
    /* Ensure it takes full width to center properly */
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.nav-dot:hover {
    background: var(--white);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.nav-arrow.prev {
    left: 30px;
}

.nav-arrow.next {
    right: 30px;
}

@media (max-width: 768px) {
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .nav-arrow.prev {
        left: 10px;
    }

    .nav-arrow.next {
        right: 10px;
    }
}

/* Section Titles */
.section-title {
    margin-bottom: 50px;
}

.section-title span {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.line {
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.center-line {
    margin: 0 auto;
}

/* About Section */
.about-content p {
    margin-bottom: 20px;
    color: #555;
    text-align: justify;
    text-align-last: left;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    align-items: start;
}

.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.05);
}

.highlight-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.highlight-card ul {
    list-style: disc;
    padding-left: 20px;
    color: #555;
    text-align: justify;
}

.feature-list {
    list-style: disc;
    padding-left: 20px;
    color: #555;
    margin: 20px 0;
    line-height: 1.8;
    text-align: justify;
}

.stats {
    background: #031b34;
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card h3 {
    font-size: 40px;
    margin-bottom: 10px;
}

.stat-card p {
    text-align: justify;
    text-align-last: left;
}

.industries-grid,
.ecosystem-grid,
.process-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.industry-card,
.ecosystem-card,
.blog-card,
.process-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.industry-card h3,
.ecosystem-card h3,
.process-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.industry-card p,
.ecosystem-card p,
.process-card p,
.blog-card p {
    text-align: justify;
    text-align-last: left;
}

.cta {
    background: url('../images/steel texture.jpg') center/cover fixed;
    color: var(--white);
    padding: 80px 0;
    position: relative;
}

.cta::before {
    content: "";
    background: rgba(0, 0, 0, 0.65);
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta .container {
    position: relative;
    z-index: 1;
}

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

.cta .btn {
    flex-shrink: 0;
}

.cta p {
    text-align: justify;
    text-align-last: left;
}

.page-hero {
    background: var(--primary-color);
    color: var(--white);
    padding: 120px 0 60px;
}

.page-hero.small {
    padding: 100px 0 50px;
}

.page-hero-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    align-items: center;
}

.page-hero-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.timeline-card {
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    background: var(--white);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.timeline-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-card p {
    text-align: justify;
    text-align-last: left;
}

.spec-table {
    margin-top: 30px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.spec-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row span:first-child {
    font-weight: 600;
    color: var(--primary-color);
}

.data-card ul {
    list-style: none;
}

.data-card ul li {
    margin-bottom: 10px;
    text-align: justify;
}

.blog-card .category {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: inline-block;
}

.blog-card h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.text-link {
    color: var(--secondary-color);
    font-weight: 600;
}

.contact-grid {
    align-items: start;
}

.contact-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.05);
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
}

.info-block {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    background: var(--white);
}

.map-embed iframe {
    width: 100%;
    min-height: 350px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.08);
}

/* Products Section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-info p {
    text-align: justify;
    text-align-last: left;
}

.product-info a {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 14px;
}

.product-info a:hover {
    text-decoration: underline;
}

.product-info a:hover {
    text-decoration: underline;
}

/* Material Categories */
.material-categories {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.material-categories h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.material-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.material-tag {
    background: var(--light-bg);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.material-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Sidebar Styles */
.products-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 60px 20px;
}

.products-container.no-sidebar {
    grid-template-columns: 1fr;
}

.products-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
}

.sidebar-menu li {
    margin-bottom: 12px;
}

.sidebar-menu a {
    display: block;
    color: #555;
    font-weight: 500;
    padding: 8px 0;
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Main menu item arrows */
.menu-item-has-children>a {
    position: relative;
    padding-right: 20px;
}

.menu-item-has-children>a:after {
    content: '▶';
    position: absolute;
    right: 0;
    font-size: 10px;
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}

.menu-item-has-children.open>a:after {
    transform: rotate(90deg);
}

.sub-menu {
    margin-left: 15px;
    margin-top: 10px;
    border-left: 2px solid var(--border-color);
    padding-left: 15px;
    display: none;
    transition: all 0.3s ease;
}

.menu-item-has-children.open>.sub-menu {
    display: block;
}

.sub-menu li {
    margin-bottom: 8px;
}

.sub-menu a {
    font-size: 14px;
    font-weight: 400;
    padding: 5px 0;
}

/* Nested sub-menu styles */
.sub-menu .menu-item-has-children>a {
    position: relative;
    font-weight: 500;
}

.sub-menu .menu-item-has-children>a:after {
    content: '▶';
    position: absolute;
    right: 0;
    font-size: 10px;
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}

.sub-menu .menu-item-has-children.open>a:after {
    transform: rotate(90deg);
}

.sub-menu .sub-menu {
    margin-left: 10px;
    border-left: 1px solid #e0e0e0;
    padding-left: 10px;
}

.sub-menu .sub-menu a {
    font-size: 13px;
    color: #666;
}

.sidebar-contact {
    display: block;
    margin-bottom: 15px;
    color: #555;
    font-weight: 500;
}

.sidebar-contact i {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 20px;
}

@media (max-width: 992px) {
    .products-container {
        grid-template-columns: 1fr;
    }

    .products-sidebar {
        position: static;
        margin-bottom: 40px;
    }
}

/* Footer */
footer {
    background-color: var(--dark-grey);
    color: #aaa;
    font-size: 14px;
}

.footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

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

.footer-col a {
    color: #aaa;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-list i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    text-align: center;
    text-align-last: center;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        padding: 15px 0;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 15px;
    }

    .mobile-menu-icon {
        display: block;
        margin-right: 20px;
    }

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

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

/* Quality Workflow Layout */
.process-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.process-card {
    flex: 0 1 calc(33.333% - 30px);
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.process-card span {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 15px;
}

.process-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .process-card {
        flex: 0 1 calc(50% - 30px);
    }
}

@media (max-width: 600px) {
    .process-card {
        flex: 0 1 100%;
    }
}

/* Blog Post Detail Page */
.blog-post {
    padding: 60px 0;
}

.blog-post-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.blog-post-header .category {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

.blog-post-header h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.blog-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #666;
    font-size: 14px;
}

.blog-meta i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
}

.blog-post-content .lead {
    font-size: 22px;
    font-weight: 400;
    color: #333;
    margin-bottom: 30px;
}

.blog-post-content h2 {
    font-size: 32px;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.blog-post-content h3 {
    font-size: 24px;
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.blog-post-content ol.numbered-list {
    list-style: none;
    counter-reset: item;
    padding-left: 0;
}

.blog-post-content ol.numbered-list li {
    counter-increment: item;
    margin-bottom: 30px;
    padding-left: 50px;
    position: relative;
}

.blog-post-content ol.numbered-list li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.blog-post-content ol.numbered-list li strong {
    display: block;
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.blog-post-content ol.numbered-list li p {
    margin-bottom: 0;
}

.highlight-box {
    background: var(--light-bg);
    border-left: 4px solid var(--secondary-color);
    padding: 30px;
    margin: 40px 0;
    border-radius: 8px;
}

.highlight-box h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.blog-post-footer {
    max-width: 800px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .blog-post-header h1 {
        font-size: 32px;
    }

    .blog-post-content {
        font-size: 16px;
    }

    .blog-post-content .lead {
        font-size: 18px;
    }

    .blog-post-content h2 {
        font-size: 26px;
    }

    .blog-post-content h3 {
        font-size: 20px;
    }

    .blog-post-footer {
        flex-direction: column;
    }
}

/* Catalog Section Styles */
.catalog-section-home {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.catalog-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.catalog-qr {
    text-align: center;
    flex: 0 0 auto;
}

.qr-code-large {
    width: 250px;
    height: 250px;
    border: 3px solid var(--primary-color);
    border-radius: 15px;
    padding: 15px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.qr-label-large {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.catalog-divider {
    position: relative;
    flex: 0 0 auto;
}

.catalog-divider span {
    display: inline-block;
    background: white;
    padding: 10px 20px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.catalog-download {
    text-align: center;
    max-width: 400px;
    flex: 1 1 auto;
}

.catalog-download h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.catalog-download p {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.6;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
}

.btn-large i {
    margin-right: 10px;
}

.catalog-note {
    margin-top: 20px;
    font-size: 14px;
    color: #888;
    font-style: italic;
}

/* Contact Page Catalog Section */
.catalog-section {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 2px solid var(--primary-color);
}

.catalog-section h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 22px;
}

.catalog-options {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.qr-code-container {
    text-align: center;
}

.qr-code {
    width: 180px;
    height: 180px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qr-label {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.download-button-container {
    text-align: center;
}

.catalog-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .catalog-content {
        flex-direction: column;
        gap: 40px;
    }

    .catalog-divider {
        transform: rotate(90deg);
    }

    .qr-code-large {
        width: 200px;
        height: 200px;
    }

    .catalog-download {
        max-width: 100%;
    }

    .btn-large {
        padding: 15px 30px;
        font-size: 16px;
    }

    .catalog-options {
        flex-direction: column;
        gap: 25px;
    }

    .qr-code {
        width: 150px;
        height: 150px;
    }
}

/* Contact Page Catalog Section at Top */
/* Refined Catalog Section Styles - Centered Layout */
.catalog-feature {
    background: transparent;
    padding-bottom: 0;
}

.catalog-wrapper.centered-layout {
    background: var(--white);
    border-radius: 12px;
    padding: 50px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 100%;
}

.catalog-header h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    line-height: 1.2;
}

.catalog-actions-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.qr-block {
    text-align: center;
}

.qr-img-simple {
    width: 160px;
    height: 160px;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 8px;
    background: white;
    margin-bottom: 10px;
}

.qr-caption {
    display: block;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.divider-block {
    position: relative;
}

.or-text {
    background: var(--light-bg);
    padding: 10px 15px;
    border-radius: 50%;
    font-weight: 700;
    color: #888;
    font-size: 0.9rem;
}

.download-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 160px;
    height: 160px;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 15px;
    margin-bottom: 10px;
    /* Align with QR block margin */
}

.download-box:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 69, 0, 0.2);
}

.box-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.box-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: center;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.download-box:hover .box-icon,
.download-box:hover .box-text {
    color: white;
}

.note {
    font-size: 0.85rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    /* Ensure it's centered by default if used here */
}

.catalog-footer-text {
    max-width: 700px;
    margin: 0 auto;
}

.catalog-footer-text .lead-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}

.catalog-footer-text .note {
    justify-content: center;
}

@media (max-width: 768px) {
    .catalog-wrapper.centered-layout {
        padding: 30px 20px;
    }

    .catalog-header h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .catalog-actions-row {
        flex-direction: column;
        gap: 30px;
    }

    .divider-block {
        transform: rotate(90deg);
        /* Optional: rotate divider for vertical stack */
        display: none;
        /* Or hide it to save space */
    }
}

/* Scroll to Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollTopBtn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {

    /* Mobile Optimizations */
    .section-padding {
        padding: 40px 0;
    }

    .page-hero {
        padding: 80px 0 40px;
    }

    .page-hero.small {
        padding: 80px 0 30px;
    }

    p,
    .about-content p,
    .highlight-card ul,
    .feature-list,
    .stat-card p,
    .industry-card p,
    .ecosystem-card p,
    .process-card p,
    .blog-card p,
    .cta p,
    .timeline-card p,
    .data-card ul li,
    .product-info p,
    .footer-col p {
        text-align: left;
        text-align-last: left;
    }

    .hero h1,
    .hero h2 {
        font-size: 32px;
    }

    /* Force single column for grids on mobile */
    .timeline-grid,
    .two-col,
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .hero h1,
    .hero h2 {
        font-size: 28px;
    }

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