:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --text-dark: #333;
    --text-light: #555;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --container-width: 1280px;
    --gap-standard: 20px;
    --border-radius: 12px;
}

/* =========================================
   Base & Utilities
   ========================================= */
.custom-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.custom-section.bg-light {
    background-color: var(--bg-light);
}

.custom-container, 
.custom-hero-overlay,
.custom-challenges-container,
.custom-framework-container,
.custom-hardware-container,
.custom-roi-container,
.custom-cases-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.custom-section-title {
    text-align: left;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 50px;
}

.custom-section-title.center {
    text-align: center;
}

/* Buttons */
.custom-btn,
.custom-btn-primary,
.custom-btn-download {
    display: inline-block;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.custom-btn-primary, 
.custom-btn-download {
    background-color: var(--primary-color);
    color: #ffffff !important;
}

.custom-btn-primary:hover,
.custom-btn-download:hover {
    background-color: var(--primary-hover);
}

/* =========================================
   1. Hero Section
   ========================================= */
.custom-hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 600px;
}

.custom-hero-box {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 50px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.custom-hero-box h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 700;
}

.custom-hero-box p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    color: var(--text-light);
}

.custom-hero-box p:last-of-type {
    margin-bottom: 30px;
}

/* =========================================
   2. Industry Challenges Section
   ========================================= */
.custom-challenges-section {
    background-color: var(--bg-white);
    padding: 80px 0;
}

.custom-challenges-section h2 { /* Specific override if needed, or use utility class style */
    text-align: left;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 50px;
}

.custom-challenges-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--gap-standard);
}

.custom-challenge-card {
    background-color: var(--bg-light);
    padding: 30px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.custom-challenge-card h3 {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #000;
    line-height: 1.4;
}

.custom-challenge-card p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; 
}

.custom-challenge-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px; 
    align-self: flex-start;
    transition: color 0.3s ease;
}

.custom-challenge-link:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* =========================================
   3. Integrated Automation Framework
   ========================================= */
.custom-framework-section {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.custom-framework-header {
    margin-bottom: 50px;
    text-align: left;
}

.custom-framework-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.custom-framework-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 800px;
    line-height: 1.6;
    margin-top: 0;
}

.custom-framework-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
}

.custom-framework-image-col, 
.custom-framework-text-col {
    flex: 1;
    min-width: 300px;
}

.custom-framework-image-col img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: block;
    object-fit: cover;
}

.custom-framework-item {
    margin-bottom: 20px;
}

.custom-framework-item h3 {
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 5px 0;
    color: #000;
}

.custom-framework-item p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.custom-btn-download {
    padding: 14px 30px; /* Slight variation from primary btn */
    border-radius: 5px;
    margin-top: 10px;
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

/* =========================================
   4. Hardware Configuration Section
   ========================================= */
.custom-hardware-section {
    background-color: var(--bg-white);
    padding: 80px 0;
}

.custom-hardware-section h2 {
    text-align: left;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 50px;
}

.custom-hardware-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--gap-standard);
}

.custom-hardware-card {
    display: block; 
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); 
    text-decoration: none; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; 
    height: 100%;
}

.custom-hardware-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.custom-hardware-image {
    width: 100%;
    position: relative;
    padding-bottom: 66.66%; /* 3:2 Aspect Ratio */
    background-color: #f0f0f0;
    overflow: hidden;
}

.custom-hardware-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.custom-hardware-card:hover .custom-hardware-image img {
    transform: scale(1.05); /* Zoom effect */
}

.custom-hardware-title {
    height: 120px; 
    padding: 15px 10px;
    text-align: center;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    background-color: #fff;
    box-sizing: border-box;
}

.custom-hardware-cta {
    text-align: center;
    margin-top: 50px;
}

.custom-hardware-cta .custom-btn-primary {
    padding: 14px 40px;
}

/* =========================================
   5. Project Value & ROI Section
   ========================================= */
.custom-roi-section {
    background-color: var(--bg-white);
    padding: 80px 0;
}

.custom-roi-header {
    text-align: left;
    margin-bottom: 50px;
}

.custom-roi-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.custom-roi-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center; 
    gap: 60px;
}

.custom-roi-image-col {
    flex: 0 0 500px;
    max-width: 100%;
}

.custom-roi-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 66.66%; /* 3:2 */
    height: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.custom-roi-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.custom-roi-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 300px;
}

.custom-roi-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.custom-roi-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: rgba(220, 252, 231, 1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-roi-icon svg,
.custom-roi-icon i {
    width: 24px;
    height: 24px;
    color: rgba(22, 163, 74, 1);
    fill: none;
    /* stroke: currentColor; FontAwesome uses color, not stroke specifically for filled icons, but FA output is SVG sometimes or font. If font, stroke doesn't apply. */
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    font-size: 24px; /* Ensure font icons are sized correctly */
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-roi-info { flex-grow: 1; }

.custom-roi-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-dark);
}

.custom-roi-info p {
    font-size: 16px;
    margin: 0;
    color: var(--text-light);
    line-height: 1.5;
}

.custom-roi-cta {
    text-align: center;
    margin-top: 50px;
}

/* =========================================
   6. Typical Scenario Success Cases
   ========================================= */
.custom-cases-section {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.custom-cases-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 50px;
}

.custom-cases-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.custom-cases-tab {
    background-color: rgba(243, 244, 246, 1);
    border: none;
    outline: none;
    cursor: pointer;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-cases-tab:hover {
    background-color: #e5e7eb;
}

.custom-cases-tab.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

.custom-tab-icon { font-size: 20px; }

/* Content Animation */
.custom-cases-content {
    display: none;
    animation: fadeIn 0.5s;
}

.custom-cases-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Case Card */
.custom-case-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Important for grid alignment */
}

.custom-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.custom-case-image {
    width: 100%;
    height: 200px;
    position: relative;
    background-color: #eee;
}

.custom-case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-case-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.custom-case-body h3 {
    font-size: 20px;
    margin: 0 0 15px 0;
    color: #111;
    font-weight: 700;
}

.custom-case-summary {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.custom-case-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
    cursor: pointer;
}

.custom-case-link:hover {
    text-decoration: underline;
}

.custom-cases-cta {
    text-align: center;
    margin-top: 40px;
}

/* =========================================
   Responsive Breakpoints
   ========================================= */

/* Large Desktop Adjustments */
@media (max-width: 1200px) {
    .custom-challenges-grid,
    .custom-hardware-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet / Laptop */
@media (max-width: 992px) {
    .custom-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .custom-challenges-grid,
    .custom-hardware-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .custom-framework-content,
    .custom-roi-content {
        flex-direction: column;
    }
    
    .custom-roi-content { /* ensure image order if needed, but column is standard */
        align-items: stretch;
    }
    
    .custom-roi-image-col {
        flex: auto;
        width: 100%;
        max-width: 100%;
        margin-bottom: 30px; /* Separation when stacked */
    }

    /* Reverse Image/Text Order on Mobile if desired (Optional) */
    /* .custom-roi-content { flex-direction: column-reverse; } */
}

/* Mobile */
@media (max-width: 600px) {
    .custom-cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .custom-cases-tabs {
        flex-direction: column;
    }
    .custom-cases-tab {
        justify-content: center;
    }
    
    .custom-hero-box h1 {
        font-size: 32px;
    }
    
    .custom-section {
        padding: 50px 0; /* Reduce padding on mobile */
    }
}

@media (max-width: 480px) {
    .custom-challenges-grid,
    .custom-hardware-grid {
        grid-template-columns: 1fr;
    }
}
