/* --- Global Theme Colors --- */
:root {
    --adimech-blue: #0e2b5c;
    --adimech-orange: #ff5e14;
}

/* --- Modern Page Header --- */
.modern-page-banner {
    /* position: relative;
    background-color: var(--adimech-blue);
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png'); 
    padding: 120px 0 80px;
    text-align: center;
    color: #ffffff; */
    position: relative;
    background-color: #0e2b5c; /* Adimech Blue */
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png'); /* Subtle industrial texture */
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}
.banner-overlay {
    /* position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(14, 43, 92, 1) 0%, rgba(14, 43, 92, 0.8) 100%);
    z-index: 1; */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(14, 43, 92, 0.9) 0%, rgba(255, 94, 20, 0.1) 100%);
    z-index: 1;
}
    /* .banner-content { position: relative; z-index: 2; }
    .page-title { font-size: 52px; font-weight: 800; text-transform: uppercase; margin: 0; }
    .breadcrumb-nav .separator { color: var(--adimech-orange); margin: 0 10px; }
    .breadcrumb-nav .current-page { color: var(--adimech-orange); font-weight: 700; } */

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.text-center { text-align: center; }

/* --- About Typography --- */
.section-subtitle { color: var(--adimech-orange); text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.section-title { color: var(--adimech-blue); font-size: 38px; margin-bottom: 25px; }
.about-description { line-height: 1.8; color: #555; font-size: 17px; }

/* --- Stats --- */
.stats-grid { display: flex; gap: 40px; margin-top: 30px; }
.stat-item { border-left: 4px solid var(--adimech-orange); padding-left: 20px; }
.stat-number { display: block; font-size: 36px; font-weight: 800; color: var(--adimech-blue); }
.stat-label { color: #888; text-transform: uppercase; font-size: 12px; font-weight: 600; }

/* --- Square Hover Boxes --- */
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.elementskit-infobox .box-body {
    background: #fff; border: 1px solid #eee; padding: 40px; height: 220px;
    display: flex; flex-direction: column; justify-content: center; transition: 0.4s;
    overflow: hidden;
}
.elementskit-infobox .box-body p {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.elementskit-infobox:hover .box-body {
    border-color: var(--adimech-orange); transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); height: auto; min-height: 220px;
}
.elementskit-infobox:hover .box-body p { -webkit-line-clamp: unset; overflow: visible; }

/* --- Footer --- */
.main-footer { background-color: var(--adimech-blue); color: #fff; padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-title { color: #fff; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--adimech-orange); }
.footer-bottom { background: #0a2147; padding: 20px 0; font-size: 14px; color: rgba(255,255,255,0.5); }

/* --- Mobile Responsive --- */
@media (max-width: 991px) {
    .grid-2, .offers-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 32px; }
    .elementskit-infobox .box-body { height: auto; }
}

/* --- Legacy Section Styles --- */
.legacy-section {
    position: relative;
    overflow: hidden;
}

.legacy-content .section-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.legacy-list li span {
    color: #444;
    font-size: 16px;
    line-height: 1.5;
}

/* Responsive adjustment for the badge */
@media (max-width: 991px) {
    .legacy-section .grid-2 {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .legacy-list li {
        justify-content: center;
    }
    .legacy-badge-container {
        margin-top: 40px;
    }
}

/* Animation for the badge */
.legacy-badge {
    transition: transform 0.5s ease;
}

.legacy-badge:hover {
    transform: scale(1.05) rotate(5deg);
}

/* --- Optimized Technical Capabilities Design --- */
.capabilities-section {
    padding: 100px 0;
    background-color: #fcfcfc; /* Light Gray - Fixes the footer overlap issue */
    border-bottom: 1px solid #eee;
}

.capabilities-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-desc {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Modern Breadcrumb */
.breadcrumb-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
}

.breadcrumb-nav a {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
    opacity: 0.8;
}

.breadcrumb-nav a:hover {
    color: #ff5e14; /* Adimech Orange */
    opacity: 1;
}

.breadcrumb-nav .separator {
    margin: 0 15px;
    font-size: 12px;
    color: #ff5e14;
}

.breadcrumb-nav .current-page {
    color: #ff5e14;
    font-weight: 700;
}


/* --- Capability Grid (2x2) --- */
.capabilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.capability-card {
    background: #ffffff;
    padding: 40px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid #efefef;
    transition: all 0.3s ease;
    border-left: 5px solid #0e2b5c; /* Adimech Blue Accent */
}

.capability-card:hover {
    border-left-color: #ff5e14; /* Swaps to Orange on hover */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.cap-icon {
    background: #f4f7fa;
    color: #ff5e14;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 4px;
    flex-shrink: 0;
}

.cap-info h3 {
    color: #0e2b5c;
    font-size: 20px;
    margin: 0 0 10px 0;
}

.cap-info p {
    color: #777;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    .capability-card {
        padding: 25px;
    }
}

/* --- Visibility & Alignment Fix --- */

.modern-page-banner {
    position: relative;
    background-color: #0e2b5c; /* Dark Theme Blue */
    /* Increased padding to 150px to ensure title is below the menu */
    padding: 80px 0px; 
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

/* Spacer to account for a fixed header menu (approx 90px) */
.header-safe-spacer {
    height: 90px; 
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker gradient at the top to make white menu text visible */
    background: linear-gradient(180deg, rgba(14, 43, 92, 1) 0%, rgba(14, 43, 92, 0.7) 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2; /* Ensures text is ABOVE the overlay */
}

.page-title {
    font-size: 56px; 
    font-weight: 900;
    /* color: #ffffff !important;  */
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.3); 
}

/* --- Mobile Fix --- */
@media (max-width: 768px) {
    .modern-page-banner {
        padding: 120px 0 60px 0;
    }
    .header-safe-spacer {
        height: 60px;
    }
    .page-title {
        font-size: 32px;
    }
}