/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background: #f6f8fb;
    color: #333;
    line-height: 1.6;
}

/* ================= HEADER ================= */
.header {
    background: #ffffff;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.header .container {
    margin-left: auto;
    margin-right: auto;
}

.logo img {
    height: 55px;
    margin-right: 20px;
}

/* NAV */
.nav {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav>li {
    position: relative;
}

.nav>li>a {
    color: #000;
    padding: 12px 18px;
    text-decoration: none;
    font-weight: 500;
}

.nav>li>a:hover {
    color: #e53935;
}

/* DROPDOWN */
.nav li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    z-index: 2000;
    list-style: none;
    /* Added from About.html consistency */
}

.nav li:hover>ul {
    display: block;
}

.nav li ul li {
    position: relative;
}

.nav li ul li a {
    background: #fff;
    color: #000;
    padding: 12px 16px;
    display: block;
    border-bottom: 1px solid #eee;
    text-decoration: none;
}

.nav li ul li a:hover {
    background: #000;
    color: #fff;
}

/* SUB-CATEGORY DROPDOWN */
.nav li ul li ul {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 260px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    border-left: 1px solid #ddd;
}

.nav li ul li:hover>ul {
    display: block;
}

/* HEADER BUTTONS */
.enquire-btn a {
    background: #012d48;
    color: #ffffff !important;
    padding: 12px 26px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

.enquire-btn a:hover,
.enquire-btn a:active,
.enquire-btn a:focus {
    color: #ffffff !important;
    outline: none;
}

/* ================= MOBILE HEADER ================= */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #000;
    margin-left: auto;
    /* Push to right if needed, or just standard padding */
    padding-right: 15px;
    /* Ensure it's not sticking to the edge */
}

/* Tablet & Mobile */
@media (max-width: 992px) {
    .header-flex {
        flex-wrap: nowrap;
        /* Keep logo and hamburger on same line */
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        display: none;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

    .nav.active {
        display: flex;
    }

    .nav>li {
        width: 100%;
    }

    .nav>li>a {
        width: 100%;
        padding: 14px 20px;
        border-bottom: 1px solid #eee;
    }

    .nav li ul {
        position: static;
        width: 100%;
        box-shadow: none;
        display: none;
    }

    .nav li.open>ul {
        display: block;
    }

    .nav li ul li a {
        padding-left: 35px;
    }

    .nav li ul li ul {
        position: static;
        width: 100%;
        border-left: none;
        display: none;
    }

    .nav li ul li.open>ul {
        display: block;
    }

    .nav li ul li ul a {
        padding-left: 55px;
    }

    .enquire-btn {
        width: 100%;
        padding: 15px;
    }

    .enquire-btn a {
        display: block;
        text-align: center;
        width: 100%;
    }
}

/* ================= QUICK CONTACT TRUST BAR ================= */
.quick-contact-bar {
    background: #0f2a44;
    color: #ffffff;
    padding: 8px 15px;
    /* Reduced vertical padding */
    font-family: Arial, sans-serif;
    font-size: 14px;
    /* Default readable size */
}

.quick-contact-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Consolidated Mobile Media Query for Header/Contact */
@media (max-width: 768px) {

    /* Quick Contact Bar Compact */
    .quick-contact-bar {
        padding: 5px 10px;
        font-size: 12px;
    }

    .quick-contact-container {
        justify-content: center;
        gap: 5px;
        flex-direction: row;
    }

    /* Hide full address on mobile */
    .quick-contact-bar .contact-info span:nth-child(3) {
        display: none;
    }

    .quick-contact-bar .contact-info {
        flex-direction: row;
        gap: 8px;
        justify-content: center;
        margin-bottom: 0;
    }

    /* General Contact Info Alignment */
    .contact-info {
        justify-content: center;
    }
}

/* ================= STICKY CTA ================= */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0f2a44;
    display: flex;
    justify-content: space-around;
    padding: 12px;
    z-index: 999;
}

.sticky-cta a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.sticky-cta i {
    color: #ff5252;
    margin-right: 6px
}

/* ================= FOOTER ================= */
.footer {
    background: #020228;
    color: #bbb;
    padding: 50px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.footer strong {
    color: #fff;
}

.copyright {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
}

/* Aligned footer from Index.html */
.footer .container {
    margin-left: auto;
    margin-right: auto;
}

/* ================= COMMON SECTIONS ================= */
.section {
    padding: 90px 0;
}

h2 {
    text-align: center;
    font-size: 34px;
    margin-bottom: 50px;
    color: #111;
}

/* Scroll Animation */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= HERO ================= */
/* HERO IMAGE SUPPORT */
.hero-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* IMAGE SIZING */
    z-index: 0;
}

/* Overlay gradient stays above image */
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            rgba(0, 19, 41, 0.75),
            rgba(1, 13, 24, 0.75));
    z-index: 1;
}

/* Ensure content stays above image */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Quick contact block for product pages */
.product-quick-contact {
    background: #fff;
    padding: 28px;
    border-radius: 10px;
    margin: 36px 0;
    box-shadow: 0 6px 18px rgba(3, 22, 39, 0.06);
}
.product-quick-contact h3 {
    margin-bottom: 12px;
}
.product-quick-contact .form-group { margin-bottom: 10px; }
.product-quick-contact input,
.product-quick-contact textarea { width: 100%; padding: 10px; border: 1px solid #e6e6e6; border-radius: 6px; }
.product-quick-contact button.btn-submit { background: #ff4d4d; color: #fff; padding: 10px 16px; border: none; border-radius: 6px; cursor: pointer; }
.product-quick-contact .form-response { margin-top: 10px; font-weight: 600; }

/* small responsive tweak */
@media (max-width: 768px) {
    .product-quick-contact { padding: 18px; }
}

.hero-carousel {
    position: relative;
    height: 520px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-1 {
    background-image:
        linear-gradient(120deg, rgba(13, 71, 161, .85), rgba(66, 165, 245, .85));
    /* Image handled by HTML img tag now */
}

.hero-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 20px;
    max-width: 850px;
    margin-bottom: 30px;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.hero-dot {
    height: 12px;
    width: 12px;
    background: #ddd;
    border-radius: 50%;
    display: inline-block;
    margin: 0 6px;
    cursor: pointer;
}

.hero-dot.active {
    background: #e53935;
}

/* ABOUT */
.about {
    background: #f0f3f8;
}

.about p {
    max-width: 900px;
    margin: auto;
    text-align: center;
    font-size: 18px;
}

/* CONTACT */
.contact {
    background: #f6f8fb;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

input,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* =========================
   COMPANY HIGHLIGHTS
========================= */
.highlights {
    background: #f6f8fb;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.highlight-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 5px solid #2563eb;
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
}

.highlight-card h3 {
    color: #2563eb;
    margin-bottom: 10px;
    font-size: 22px;
}

/* =========================
   WHY CHOOSE US – EXPERT CSS
========================= */
.why-choose {
    background: linear-gradient(135deg, #e3eaf3, #f8fafc);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.why-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 34px 26px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    opacity: 0;
    transition: opacity 0.35s;
}

.why-card:hover::before {
    opacity: 0.05;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.why-card span {
    font-size: 42px;
    color: #2563eb;
    display: inline-block;
    margin-bottom: 14px;
}

.why-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #0f172a;
}

.why-card p {
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
}


/* =========================
   PRODUCT CATEGORIES
========================= */
.product-categories {
    background: #fff;
    padding: 30px 0 80px;
    /* Reduced top, kept bottom spacing */
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
    margin-top: 45px;
}

.category-card {
    background: #f6f8fb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    text-align: center;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-6px);
}

.category-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.category-card h3 {
    padding: 18px;
    color: #2563eb;
    font-size: 20px;
}

.category-card a {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: #2563eb;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.category-card a:hover {
    background-color: #1d4ed8;
    color: #fff;
}

/* =========================
   INDUSTRIES WE SERVE
========================= */
.industries {
    background: #f6f8fb;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.industry-card {
    background: #fff;
    padding: 22px;
    text-align: center;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* =========================
   STATS
========================= */
.stats {
    background: #e3eaf3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: auto;
}

.stat-card {
    background: #fff;
    padding: 35px 15px;
    text-align: center;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.stat-number {
    font-size: 40px;
    color: #2563eb;
    font-weight: 700;
}

.stat-label {
    margin-top: 8px;
    font-size: 16px;
}

/* =========================
   CTA
========================= */
.cta {
    background: linear-gradient(90deg, #0f172a 60%, #1e293b 100%);
    color: #fff;
}

.cta-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.cta-btn {
    background: #fff;
    color: #0e1420;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.cta-btn:hover {
    background: #2563eb;
    color: #fff;
    border: 2px solid #fff;
}

/* =========================
   TOP ACTION BAR (Mobile)
========================= */
.top-action-bar-mobile {
    display: none;
    margin-top: 5px;
}

.top-action-bar-mobile a {
    color: #fff;
    margin: 0 10px;
    font-size: 20px;
}

@media (max-width: 768px) {
    .top-action-bar-mobile {
        display: block;
    }
}

/* Additional utility from About.html possibly needed */
.section p.subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #475569;
    font-size: 17px;
}

/* ================= DESKTOP GRID REFINEMENTS ================= */
@media (min-width: 1024px) {

    /* 6 Items -> 3 Columns */
    /* 6 Items -> 3 Columns (Home Page) */
    .highlights-grid,
    .why-grid,
    .product-categories .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 8 Items -> 4 Columns (Product Page) */
    body.product-page .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* 8 Items -> 4 Columns */
    .industries-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Stats -> 4 Columns */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ================= PRODUCT & SUBPAGE STYLES ================= */

/* Hero Section for Subpages */
.hero {
    position: relative;
    height: 400px;
    /* Shorter than home hero */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: #0f172a;
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6;
    /* Darken for text readability */
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-inner h1 {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-inner p {
    font-size: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Content Boxes */
.info-box {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.info-box img {
    width: 50%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.info-box div {
    width: 50%;
}

.info-box p {
    margin-bottom: 15px;
    font-size: 17px;
    color: #444;
}

@media(max-width: 768px) {
    .info-box {
        flex-direction: column;
    }

    .info-box img,
    .info-box div {
        width: 100%;
    }
}

/* Product Video */
.product-video {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: auto;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
}

.product-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Sub Grid (Variants) */
.sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.sub-grid .card {
    text-align: center;
    transition: transform 0.3s;
}

.sub-grid .card:hover {
    transform: translateY(-5px);
}

.sub-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.sub-grid h3 {
    color: #2563eb;
    margin-bottom: 10px;
}

.sub-grid a {
    display: inline-block;
    padding: 10px 20px;
    background: #0f172a;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
}

.sub-grid a:hover {
    background: #2563eb;
}

/* Sub Pages (Hidden Details) */
.sub-page {
    display: none;
    background: #f8fafc;
}

.sub-page.active {
    display: block;
    animation: fadeIn 0.5s;
}

.sub-box {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.sub-box img {
    width: 45%;
    border-radius: 12px;
}

.sub-box div {
    width: 55%;
}

@media(max-width: 768px) {
    .sub-box {
        flex-direction: column;
    }

    .sub-box img,
    .sub-box div {
        width: 100%;
    }
}

/* Back Button */
.back {
    display: inline-block;
    margin-top: 20px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
}

.back:hover {
    color: #2563eb;
}

/* Contact Form Styles */
.contact-section {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.contact-form {
    flex: 2;
}

.contact-info {
    flex: 1;
    background: #f1f5f9;
    padding: 30px;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
}

.btn-submit {
    background: #2563eb;
    color: #fff;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
}

.btn-submit:hover {
    background: #1d4ed8;
}

@media(max-width: 768px) {
    .contact-section {
        flex-direction: column;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= FIXED HEADER & CONTACT BAR ================= */
.quick-contact-bar {
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 8px 0 !important;
    min-height: auto !important;
    font-family: 'Segoe UI', sans-serif !important;
    font-size: 13px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-contact-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.contact-info {
    display: flex;
    gap: 25px !important;
    flex-wrap: nowrap !important;
}

/* Ensure header is clean */
.header {
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    .quick-contact-container {
        flex-direction: column !important;
    }

    .contact-info {
        flex-wrap: wrap !important;
        justify-content: center;
    }
}

/* Fix conflict with footer contact form styles */
.quick-contact-bar .contact-info {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: auto !important;
    width: auto !important;
}

/* ================= ABOUT PAGE HERO REDESIGN ================= */
.about-hero-section {
    background-color: #011e32;
    padding: 80px 0 40px 0;
    /* Reduced bottom padding */
    color: #fff;
}

.about-hero-grid {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-hero-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 4px solid #fff;
    /* Optional subtle border */
}

.about-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-hero-content {
    flex: 1;
    text-align: left;
}

.about-hero-content .tag {
    color: #ff4d4d;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.about-hero-content h1.hero-title {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 24px;
    color: #fff;
}

.about-hero-content .highlight-red {
    color: #ff4d4d;
}

.about-hero-content .highlight-white {
    color: #fff;
}

.about-hero-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #d1d5db;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .about-hero-grid {
        flex-direction: column;
        text-align: center;
    }

    .about-hero-content {
        text-align: center;
    }

    .about-hero-content h1.hero-title {
        font-size: 36px;
    }
}

/* ================= ABOUT PAGE DARK THEME (GLOBAL) ================= */
body.about-page {
    background-color: #011e32;
    color: #e2e8f0;
}

/* Sections Reset */
body.about-page .section,
body.about-page .about {
    background-color: transparent !important;
}

/* Typography */
body.about-page h2,
body.about-page h3 {
    color: #ffffff;
}

body.about-page p {
    color: #cbd5e1;
}

/* Cards Dark Mode */
body.about-page .card,
body.about-page .product-card,
body.about-page .mv-box,
body.about-page .sasti {
    background-color: #0f2e46 !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    color: #fff;
}

body.about-page .product-card {
    color: #fff !important;
    background-color: #0f2e46 !important;
}

body.about-page .mv-box p,
body.about-page .sasti p,
body.about-page .sasti li {
    color: #cbd5e1;
}

/* SASTI List Icons */
body.about-page .sasti li::before {
    color: #ff4d4d;
    /* Red bullets */
}

/* Mission/Vision Borders */
body.about-page .mv-box {
    border-top: 4px solid #ff4d4d;
    /* Red accent top */
}

/* Alternating Backgrounds (Optional subtle distinction) */
body.about-page .section:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

/* Footer adjustment for about page if needed */
body.about-page .footer {
    background-color: #000c14;
}

/* ================= ABOUT PAGE REFINEMENTS ================= */
/* Zig-Zag Layout */
.image-text {
    display: flex;
    align-items: center;
    gap: 60px;
    justify-content: space-between;
}

.image-text.reverse-layout {
    flex-direction: row-reverse;
}

.image-text img {
    width: 48%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.image-text:hover img {
    transform: scale(1.02);
}

.image-text>div {
    width: 48%;
}

/* Card Enhancements (Hover & Glow) */
body.about-page .card,
body.about-page .product-card,
body.about-page .mv-box,
body.about-page .sasti {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

body.about-page .card:hover,
body.about-page .product-card:hover,
body.about-page .mv-box:hover,
body.about-page .sasti:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Vertical Spacing & Alignment */
.section {
    padding: 80px 0;
}

/* Reduce spacing specifically for Contact Page between Hero and Form */
body.about-page .section {
    padding-top: 40px;
}

/* New Utility for Centered Hero Content */
.about-hero-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero-centered .tag {
    justify-content: center;
    display: flex;
}

/* ================= CONTACT PAGE ================= */
.contact-section {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 400px);
    /* 320px min width for info, max 400px */
    gap: 40px;
    margin-bottom: 50px;
    align-items: start;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Contact Form Dark Mode Overrides (Moved from inline) */
body.about-page .contact-form {
    background-color: #0f2e46;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-section .contact-info {
    background: #0f2e46;
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* Ensure children take full width */
}

.contact-section .contact-info h3 {
    margin-bottom: 25px;
    font-size: 24px;
    color: #ff4d4d;
}

.contact-section .contact-info p {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 24px 1fr;
    /* Fixed width for icon, rest for text */
    gap: 15px;
    font-size: 16px;
    line-height: 1.6;
    color: #cbd5e1;
    align-items: start;
}

.contact-info i {
    color: #ff4d4d;
    margin-top: 5px;
    /* Visual alignment with text top */
    text-align: center;
}

/* Mobile responsive for contact section */
@media (max-width: 900px) {
    .contact-section {
        grid-template-columns: 1fr;
    }
}

h2 {
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

/* Underline for H2s */
body.about-page h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #ff4d4d;
    margin-top: 12px;
    border-radius: 2px;
}

@media (max-width: 992px) {

    .image-text,
    .image-text.reverse-layout {
        flex-direction: column;
        text-align: center;
    }

    .image-text img,
    .image-text>div {
        width: 100%;
    }

    .image-text img {
        margin-bottom: 30px;
    }

    body.about-page h2::after {
        margin: 12px auto 0;
        /* Center underline on mobile */
    }
}

/* ================= MISSION & SASTI REDESIGN ================= */

/* Mission Grid */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Service Page Override for mv-grid (4 items) */
body.about-page .container.card .mv-grid {
    /* If service page has a specific class on body or container, we can target it. 
       Note: Service page uses 'body.about-page' same as About page? 
       Let's check service.html body class. 
       Service page has <body class="about-page"> and the grid is inside <div class="container card">.
       About page has <body class="about-page"> but grid is inside <section class="section reveal"><div class="container"> (no .card wrapper?).
       
       Let's use a more robust way: 
       I will target the 4th child existence or just assume specific page context if possible. 
       
       Actually, looking at service.html content from previous turn:
       <body class="about-page">
       <section class="section">
         <div class="container card">
           <h2>What “Sasti” Stands For</h2>
           <div class="mv-grid">... 4 items ...
       
       About.html content:
       <section class="section reveal">
         <div class="container">
           <h2>Mission, Vision & Promise</h2>
           <div class="mv-grid">... 3 items ...
       
       Different wrapper: .container.card vs .container.
    */
    /* grid-template-columns will be handled by specific selector below */
}

/* Specific Override using :has() or just a different selector if possible. 
   Or simpler: .container.card .mv-grid -> 4 cols (Service page)
   .container .mv-grid (default) -> 3 cols (About page)
*/

.container.card .mv-grid {
    grid-template-columns: repeat(4, 1fr);
}

.mv-box {
    background: #0f2e46;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Top border removed or made subtle since we have hover effects now */
    border-top: 4px solid #ff4d4d;
}

.mv-box .icon-large {
    font-size: 40px;
    color: #ff4d4d;
    margin-bottom: 20px;
    display: inline-block;
}

.mv-box h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

/* SASTI Grid */
.sasti.sasti-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    text-align: left;
    /* Reset center align from global */
    background: linear-gradient(135deg, #0f2e46 0%, #0b1f30 100%) !important;
    padding: 50px;
    border-radius: 16px;
}

.sasti-content .subtitle {
    font-size: 20px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 15px;
}

.sasti-features ul {
    list-style: none;
    padding: 0;
}

.sasti-features li {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sasti-features li i {
    color: #ff4d4d;
    /* Red checkmarks */
    font-size: 20px;
}

@media (max-width: 992px) {

    .mv-grid,
    .sasti.sasti-grid,
    .container.card .mv-grid {
        /* Added specific selector to ensure override works */
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sasti.sasti-grid {
        padding: 30px;
    }

    .sasti-features li {
        justify-content: center;
    }
}


/* ================= PRODUCT PAGES REDESIGN ================= */

/* Global Dark Theme for Products */
body.product-page {
    background-color: #011e32;
    color: #e2e8f0;
}

/* Reuse about-hero styling is automatic, but adjustment for left-align hero */
.about-hero-content[style*='text-align: left'] {
    align-items: flex-start;
}

/* Product Grid Cards - Dark Mode */
body.product-page .category-card {
    background-color: #0f2e46;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s, box-shadow 0.3s;
}

body.product-page .category-card a {
    background-color: #ff4d4d;
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 77, 77, 0.3);
}

body.product-page .category-card a:hover {
    background-color: #cc0000;
    box-shadow: 0 6px 15px rgba(255, 77, 77, 0.5);
}

body.product-page .category-card h3 {
    color: #fff;
}

body.product-page .category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Variant Cards (Shearing Page) */
body.product-page .sub-grid .card {
    background-color: #0f2e46;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.product-page .sub-grid .card h3 {
    color: #fff;
}

body.product-page .sub-grid .card a {
    background-color: #ff4d4d;
    color: #fff;
}

body.product-page .sub-grid .card a:hover {
    background-color: #cc0000;
}

/* Sub Page Sections (Hidden Details) */
body.product-page .sub-page {
    background-color: #011e32;
    /* Match body */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

body.product-page .sub-box h2 {
    color: #fff;
}

body.product-page .sub-box p {
    color: #cbd5e1;
}

body.product-page .back {
    color: #ff4d4d;
}

/* Flip Layout Helper */
.image-text.flip-layout {
    flex-direction: row-reverse;
}

@media (max-width: 992px) {
    .image-text.flip-layout {
        flex-direction: column;
    }
}

/* ================= TYPOGRAPHY FIXES FOR PRODUCT PAGES ================= */
body.product-page h2,
body.product-page h3 {
    color: #ffffff;
}

body.product-page p {
    color: #cbd5e1;
}

/* Add consistent red underline to H2s */
body.product-page h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #ff4d4d;
    margin-top: 12px;
    border-radius: 2px;
}

@media (max-width: 992px) {
    body.product-page h2::after {
        margin: 12px auto 0;
        /* Center on mobile */
    }
}

/* ================= SERVICE PAGE REFINEMENTS ================= */
.machine-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.machine-tag {
    background-color: #0f172a;
    /* Darker bg */
    color: #e2e8f0;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.machine-tag:hover {
    background-color: #2563eb;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.3);
    border-color: #2563eb;
}

/* CTA Refinements */
.cta-flex {
    align-items: center;
    /* Ensure vertical center */
}

/* Make CTA text and buttons align better on wide screens */
.cta-content {
    flex: 1;
    text-align: left;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.cta-btn {
    padding: 14px 30px;
    font-size: 16px;
}

.cta-buttons {
    justify-content: center;
    width: 100%;
}

/* Specific Button Colors */
.cta-btn[href*="wa.me"] {
    background-color: #25D366;
    /* WhatsApp Green */
    color: #fff;
    border: 2px solid #25D366;
}

.cta-btn[href*="wa.me"]:hover {
    background-color: #1ebc57;
    border-color: #1ebc57;
    color: #fff;
}

.cta-btn[href^="tel:"] {
    background-color: #e53935;
    /* Landmark Red */
    color: #fff;
    border: 2px solid #e53935;
}

.cta-btn[href^="tel:"]:hover {
    background-color: #d32f2f;
    border-color: #d32f2f;
    color: #fff;
}

/* ================= MOBILE OPTIMIZATIONS (GLOBAL) ================= */
@media (max-width: 768px) {

    /* 1. Typography Scaling */
    h1,
    .hero-content h1,
    .about-hero-content h1.hero-title {
        font-size: 32px !important;
        /* Scale down from 48px */
        line-height: 1.3;
    }

    h2 {
        font-size: 26px !important;
        /* Scale down from 34px */
        margin-bottom: 30px;
    }

    h3 {
        font-size: 20px !important;
    }

    p {
        font-size: 16px !important;
    }

    /* 2. Layout & Spacing */
    .section {
        padding: 40px 0 !important;
        /* Reduce huge 80px/90px padding */
    }

    .container {
        padding: 0 15px !important;
    }

    /* 3. Hero Adjustments */
    .about-hero-grid,
    .about-hero-content {
        text-align: center !important;
        align-items: center !important;
    }

    .about-hero-content {
        margin-bottom: 30px;
    }

    .about-hero-image img {
        height: auto;
        max-height: 300px;
    }

    /* 4. Footer & Sticky CTA Fix */
    .footer {
        padding-bottom: 80px !important;
        /* Add space for Sticky CTA */
    }

    /* 5. Navigation & Header */
    .logo img {
        height: 45px;
        /* Slightly smaller logo */
    }
}

/* Ensure Images are always responsive */
img {
    max-width: 100%;
    height: auto;
}