/* --- ANIMATION BASE --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wow.fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    /* Hidden initially */
}

/* --- 1. BANNER (Zoom & Badge) --- */
/* 1. Wrapper: Use Aspect Ratio instead of fixed height */
.prod-banner-wrapper {
    position: relative;
    width: 100%;
    height: auto; /* Remove the fixed 400px */
    aspect-ratio: 16 / 7; /* Wide rectangular shape that scales */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    background-color: #f0f0f0; /* Placeholder color while loading */
}

/* 2. Inner Container: Fill the wrapper */
.banner-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* 3. Image: Cover the area without distortion */
.prod-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers area */
    object-position: center; /* Centers the product */
    transition: transform 0.6s ease;
    display: block;
}

/* 4. Hover Effect */
.prod-banner-wrapper:hover .prod-main-img {
    transform: scale(1.05);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 991px) {
    .prod-banner-wrapper {
        aspect-ratio: 16 / 9; /* Slightly taller on tablets */
    }
}

@media (max-width: 768px) {
    .prod-banner-wrapper {
        aspect-ratio: 4 / 2; /* Taller on mobile to show more product detail */
        border-radius: 12px;
    }
}

/* --- 2. HEADER & BUTTONS --- */
.sub-category {
    color: #0F828C;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.prod-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.title-line {
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #0F828C, #4DD0E1);
    border-radius: 2px;
}

.btn-action {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 10px;
}

.btn-action.primary {
    background: #0F828C;
    color: #fff;
    border-color: #0F828C;
    box-shadow: 0 5px 15px rgba(15, 130, 140, 0.3);
}

.btn-action:hover {
    transform: translateY(-3px);
}

/* --- 3. DESCRIPTION BOX (Glassmorphism) --- */
.prod-description-box {
    display: flex;
    flex-wrap: wrap;
    background: #f8fdfe;
    border: 1px solid #e1f0f2;
    border-radius: 12px;
    padding: 30px;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.prod-description-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: #0F828C;
}

.desc-content {
    flex: 2;
    min-width: 300px;
}

.lead-text {
    font-size: 20px;
    color: #222;
    font-weight: 600;
    margin-bottom: 15px;
}

.highlight {
    color: #0F828C;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(15, 130, 140, 0.15);
    z-index: -1;
}

.desc-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    border-left: 1px solid #e1f0f2;
    padding-left: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 70px;
}

.stat-num {
    font-size: 24px;
    font-weight: 800;
    color: #0F828C;
    width: 60px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

/* --- 4. TECH TABLE (Modern Rows) --- */
.section-heading {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #222;
}

.tech-table-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 10px;
}

.sotco-tech-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.sotco-tech-table tr {
    background: #fff;
    transition: transform 0.2s;
}

.sotco-tech-table tr:hover {
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    z-index: 2;
    position: relative;
}

.sotco-tech-table td {
    padding: 20px;
    vertical-align: middle;
    border-top: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
}

.sotco-tech-table tr td:first-child {
    border-left: 1px solid #f5f5f5;
    border-radius: 8px 0 0 8px;
}

.sotco-tech-table tr td:last-child {
    border-right: 1px solid #f5f5f5;
    border-radius: 0 8px 8px 0;
}

.icon-box {
    width: 45px;
    height: 45px;
    background: rgba(15, 130, 140, 0.1);
    color: #0F828C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.label-col {
    width: 25%;
    font-weight: 700;
    color: #222;
    font-size: 16px;
}

.value-col {
    color: #555;
    font-size: 15px;
}

.tag {
    display: inline-block;
    background: #222;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
}

.tag.outline {
    background: transparent;
    border: 1px solid #222;
    color: #222;
}

/* --- 5. MATERIAL CARDS (Grid) --- */
.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.mat-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.mat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.mat-header {
    padding: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mat-header.cs {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

.mat-header.ss {
    background: linear-gradient(135deg, #0F828C, #095c63);
}

.mat-header.as {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.mat-header.ni {
    background: linear-gradient(135deg, #27ae60, #219150);
}

.mat-icon {
    font-weight: 800;
    font-size: 18px;
    opacity: 0.8;
}

.mat-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.mat-body {
    padding: 20px;
}

.mat-body p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* --- 6. 3D FEATURES --- */
.features-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.feat-card-3d {
    perspective: 1000px;
}

.card-inner {
    background: #fff;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.4s ease;
    cursor: default;
}

.feat-card-3d:hover .card-inner {
    transform: rotateX(5deg) translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 130, 140, 0.15);
    border-color: #0F828C;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f0fbfc, #e0f7fa);
    color: #0F828C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
    transition: transform 0.4s;
}

.feat-card-3d:hover .icon-circle {
    transform: scale(1.1) rotate(10deg);
    background: #0F828C;
    color: #fff;
}

.card-inner h5 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.card-inner p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .prod-title {
        font-size: 32px;
    }

    .desc-stats {
        border-left: none;
        border-top: 1px solid #eee;
        padding-left: 0;
        padding-top: 20px;
        flex-direction: row;
        justify-content: space-between;
    }

    .sotco-tech-table td {
        display: block;
        width: 100%;
        text-align: center;
        border: none;
    }

    .icon-col {
        display: none;
    }

    /* Hide icon on mobile to save space */
    .label-col {
        background: #f9f9f9;
        font-weight: 700;
        padding: 10px;
    }

    .value-col {
        padding: 10px 10px 25px;
    }
}

.mt-3 {
    margin-top: 15px;
}

/* Ensure the description box can handle more text */
.prod-description-box {
    align-items: flex-start;
    /* Aligns text to top if columns have uneven height */
}

/* Enhancements for new table rows */
.sotco-tech-table tr:nth-child(even) {
    background: #fafafa;
    /* Subtle striping for long tables */
}

.sotco-tech-table tr:hover {
    background: #f0fbfc;
    /* Highlight on hover */
    transform: scale(1.005);
    /* Slight pop effect */
}

.mb-40 {
    margin-bottom: 40px;
}

.text-center {
    text-align: center;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Ensure table cells have borders for this data view */
.sotco-tech-table.text-center td,
.sotco-tech-table.text-center th {
    border: 1px solid #eee;
}








/* --- BLUEPRINT TABLE STYLE --- */
.blueprint-table-wrapper {
    overflow-x: auto;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background: #fff;
}

.blueprint-table {
    width: 100%;
    min-width: 800px; /* Forces scroll on mobile */
    border-collapse: collapse;
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
}

/* Header Styling */
.blueprint-table thead tr {
    background-color: #2c3e50; /* Engineering Slate Blue */
    color: #ecf0f1;
}

.blueprint-table th {
    padding: 12px 15px;
    border: 1px solid #34495e;
    text-align: center;
    font-weight: 600;
    vertical-align: middle;
}

.main-th { font-size: 15px; text-transform: uppercase; letter-spacing: 0.5px; }
.sub-th { background-color: #34495e; } /* Slightly lighter for sub-headers */
.group-th { background-color: #e67e22; border-color: #d35400; } /* Highlight for Drilling Group */
.unit-row th { 
    background-color: #ecf0f1; 
    color: #7f8c8d; 
    font-size: 12px; 
    padding: 6px; 
    border-color: #bdc3c7;
    text-transform: uppercase;
}

/* Body Styling */
.blueprint-table tbody tr:nth-child(even) {
    background-color: #f8f9fa; /* Zebra Striping */
}

.blueprint-table tbody tr:hover {
    background-color: #e8f6f3; /* Highlight on Hover */
}

.blueprint-table td {
    padding: 12px 10px;
    border: 1px solid #dfe6e9;
    text-align: center;
    color: #2d3436;
    font-variant-numeric: tabular-nums; /* Aligns numbers perfectly */
}

/* Distinct Row Header (First Column) */
.blueprint-table .row-header {
    background-color: #2c3e50;
    color: #fff;
    font-weight: 700;
    border-color: #34495e;
    width: 100px;
}

/* Footer Note */
.table-footer {
    padding: 10px 15px;
    background: #f1f2f6;
    font-size: 13px;
    color: #636e72;
    border-top: 1px solid #dfe6e9;
    font-style: italic;
}
.table-footer i { margin-right: 5px; color: #2980b9; }















/* --- WIDE CARD LAYOUT --- */
.product-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.prod-card-wide {
    display: flex;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.prod-card-wide:hover {
    transform: translateY(-5px);
    border-color: #0F828C;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* Image Section */
.pc-wide-image {
    width: 30%;
    min-width: 250px;
    position: relative;
    overflow: hidden;
}

.pc-wide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.prod-card-wide:hover .pc-wide-image img {
    transform: scale(1.05);
}

.pc-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #0F828C;
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Content Section */
.pc-wide-content {
    padding: 25px;
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pc-header h4 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

.pc-header p {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Specs Grid */
.pc-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns for specs */
    gap: 15px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.spec-item {
    font-size: 14px;
    color: #444;
}

.spec-item strong {
    color: #0F828C;
    margin-right: 5px;
}

.spec-item.full-width {
    grid-column: span 2; /* Make long items (like Standards) span full width */
}

/* --- COMPACT CARDS (For Cap/Cross) --- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.prod-card-wide.compact {
    flex-direction: row;
}

.pc-wide-image.small {
    width: 120px;
    min-width: 120px;
}

.compact h4 { font-size: 18px; }
.pc-specs-grid.single-col { grid-template-columns: 1fr; gap: 8px; padding: 10px; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .prod-card-wide {
        flex-direction: column; /* Stack vertically on mobile */
    }
    
    .pc-wide-image {
        width: 100%;
        height: 200px;
    }
    
    .pc-wide-content {
        width: 100%;
        padding: 20px;
    }
    
    .pc-specs-grid {
        grid-template-columns: 1fr; /* Stack specs on mobile */
    }
    
    .spec-item.full-width {
        grid-column: span 1;
    }

    .grid-2-col {
        grid-template-columns: 1fr; /* Stack compact cards */
    }
}








/* contact page */
/* --- CENTERED HEADER STYLE --- */
.sotco-header-centered {
    text-align: center;
    /* Center everything */
    padding: 0px 0;
}

/* 1. Top Label Style */
.sb-top-label {
    font-size: 13px;
    font-weight: 800;
    color: #0F828C;
    /* SOTCO Teal */
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Increased spacing for clean look */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centers the text horizontally */
    gap: 10px;
}

/* 2. English Main Title */
.sb-en-title {
    font-family: 'Inter', sans-serif;
    /* Your main site font */
    font-size: 42px;
    /* Large and bold */
    font-weight: 800;
    color: #111;
    text-transform: capitalize;
    margin: 0;
    line-height: 1.2;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .sb-en-title {
        font-size: 32px;
    }
}

/* --- SPLIT LAYOUT WRAPPER --- */
.contact-split-wrapper {
    display: flex;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    min-height: 550px;
}

/* --- LEFT: CONNECT PANEL --- */
.connect-panel {
    flex: 0 0 45%;
    /* Takes 45% width */
    background: #0e1b25;
    /* Dark Engineering Blue */
    padding: 50px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.connect-panel h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.panel-desc {
    color: #aab7c4;
    /* Soft grey text */
    margin-bottom: 40px;
    line-height: 1.6;
    font-size: 15px;
}

/* Action Grid */
.action-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Base Card Style */
.action-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    /* Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover Effects */
.action-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
    /* Slide right */
    border-color: rgba(255, 255, 255, 0.3);
}

/* Specific Card Colors on Hover */
.whatsapp-card:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.phone-card:hover {
    border-color: #3498db;
}

.email-card:hover {
    border-color: #f1c40f;
}

.loc-card:hover {
    border-color: #e74c3c;
}

/* Icons */
.icon-box {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
    color: #fff;
    transition: all 0.3s;
}

.whatsapp-card .icon-box {
    background: #25D366;
    color: #fff;
}

/* WhatsApp Green */

/* Text */
.text-box {
    display: flex;
    flex-direction: column;
}

.text-box .label {
    font-size: 12px;
    text-transform: uppercase;
    color: #8fa1b3;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.text-box .value {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

/* Arrow Icon for WhatsApp */
.arrow-icon {
    margin-left: auto;
    color: #25D366;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.whatsapp-card:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

/* --- RIGHT: MAP PANEL --- */
.map-panel {
    flex: 1;
    /* Takes remaining space */
    position: relative;
}

.map-panel iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- NEW WEBSITE CARD STYLE --- */
.web-card:hover {
    border-color: #00d2ff;
    /* Cyan Blue */
    background: rgba(0, 210, 255, 0.1);
}

.web-card:hover .icon-box {
    background: #00d2ff;
    color: #fff;
}

/* --- TAB SWITCHER STYLES --- */
.panel-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.loc-tabs {
    display: flex;
    gap: 10px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aab7c4;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.tab-btn.active {
    background: #0F828C;
    /* SOTCO Teal */
    color: #fff;
    border-color: #0F828C;
    box-shadow: 0 4px 15px rgba(15, 130, 140, 0.4);
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

/* Animations for content switching */
.loc-content {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .contact-split-wrapper {
        flex-direction: column;
        /* Stack on mobile */
    }

    .connect-panel {
        padding: 40px 25px;
    }

    .map-panel {
        height: 350px;
        /* Fixed height for map on mobile */
    }
}