/* =====================================================
   UNIFIED INDUSTRIES PAGE STYLING
   Modern, Consistent Design System for All Industry Pages
   ===================================================== */

/* Base Mobile-First Styles */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

.industries-hero-unified *,
.industries-section * {
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Hero Section - Unified Design for Industries */
.industries-hero-unified {
    color: white;
    padding: 140px 0 80px; /* Consistent padding with header clearance */
    position: relative;
    overflow: hidden;
    min-height: 60vh; /* Desktop: 60vh for better content visibility */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Industry-specific gradient backgrounds */
.industries-hero-unified.manufacturing {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fdba74 100%);
}

.industries-hero-unified.healthcare {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #7dd3fc 100%);
}

.industries-hero-unified.bfsi {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.industries-hero-unified.energy {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
}

.industries-hero-unified.retail {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
}

.industries-hero-unified.education {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
}

.industries-hero-unified::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.6;
}

.industries-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    width: 100%;
    overflow: hidden; /* Prevent horizontal overflow */
}

.industries-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.industries-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    letter-spacing: -0.02em;
    word-wrap: break-word;
    hyphens: auto;
}

.industries-hero-subtitle {
    font-size: 1.25rem;
    color: #f1f5f9;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
}

.industries-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Unified Button Styles */
.btn-industries-primary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.btn-industries-primary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    color: #111827;
}

.btn-industries-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-industries-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
}

/* =====================================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ===================================================== */

/* Tablet and smaller desktop (898px and below) */
@media (max-width: 898px) {
    .industries-hero-unified {
        padding: 120px 20px 60px;
        min-height: 55vh;
    }
    
    .industries-hero-content {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .industries-hero-badge {
        font-size: 0.8rem;
        padding: 10px 20px;
        margin-bottom: 1.5rem;
    }
    
    .industries-hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .industries-hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
        line-height: 1.6;
    }
    
    .industries-hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 0 1rem;
    }
    
    .btn-industries-primary,
    .btn-industries-secondary {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        font-size: 0.95rem;
        text-align: center;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    .industries-hero-unified {
        padding: 100px 15px 50px;
        min-height: 50vh;
    }
    
    .industries-hero-content {
        padding: 0 0.5rem;
    }
    
    .industries-hero-badge {
        font-size: 0.75rem;
        padding: 8px 16px;
        margin-bottom: 1.5rem;
    }
    
    .industries-hero-title {
        font-size: 1.875rem;
        line-height: 1.15;
        margin-bottom: 0.75rem;
    }
    
    .industries-hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0 0.25rem;
        line-height: 1.5;
    }
    
    .industries-hero-actions {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }
    
    .btn-industries-primary,
    .btn-industries-secondary {
        padding: 12px 18px;
        font-size: 0.85rem;
        max-width: 100%;
        width: 100%;
    }
}

/* Extra small screens (360px and below) */
@media (max-width: 360px) {
    .industries-hero-unified {
        padding: 90px 10px 40px;
        min-height: 45vh;
    }
    
    .industries-hero-title {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .industries-hero-subtitle {
        font-size: 0.9rem;
        padding: 0 0.1rem;
    }
    
    .btn-industries-primary,
    .btn-industries-secondary {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

/* =====================================================
   CTA SECTION STYLES - INDUSTRY SPECIFIC
   ===================================================== */

.cta-section {
    padding: 80px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Industry-specific CTA backgrounds */
.cta-section.manufacturing {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 50%, #991b1b 100%);
}

.cta-section.healthcare {
    background: linear-gradient(135deg, #0369a1 0%, #1e40af 50%, #1e3a8a 100%);
}

.cta-section.bfsi {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #020617 100%);
}

.cta-section.energy {
    background: linear-gradient(135deg, #047857 0%, #065f46 50%, #064e3b 100%);
}

.cta-section.retail {
    background: linear-gradient(135deg, #7c2d12 0%, #92400e 50%, #451a03 100%);
}

.cta-section.education {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 50%, #7f1d1d 100%);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #f8fafc;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn-primary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    text-shadow: none;
}

.cta-btn-primary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    color: #111827;
}

.cta-btn-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    color: #ffffff;
}

/* CTA Responsive Design */
@media (max-width: 898px) {
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content {
        padding: 0 1rem;
    }
    
    .cta-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .cta-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
        max-width: 300px;
        padding: 14px 24px;
        font-size: 0.95rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-content {
        padding: 0 0.75rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .cta-description {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .cta-btn-primary,
    .cta-btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
        max-width: 100%;
    }
}

/* =====================================================
   SECTION STYLES - CONSISTENT ACROSS ALL INDUSTRIES
   ===================================================== */

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

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

.industries-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark, #1f2937);
    line-height: 1.2;
}

.industries-section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light, #6b7280);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Grid Layouts */
.industries-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.industries-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Responsive Grids */
@media (max-width: 898px) {
    .industries-section {
        padding: 60px 0;
    }
    
    .industries-section-container {
        padding: 0 1rem;
    }
    
    .industries-section-title {
        font-size: 2rem;
    }
    
    .industries-section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .industries-grid-2,
    .industries-grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .industries-section {
        padding: 50px 0;
    }
    
    .industries-section-container {
        padding: 0 0.75rem;
    }
    
    .industries-section-title {
        font-size: 1.875rem;
    }
    
    .industries-section-subtitle {
        font-size: 0.95rem;
    }
}
