/* 
 * Web Specialist Services Blog Styles
 * Custom CSS for the web specialist services blog page
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* Base Styles */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --text-color: #374151;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

/* Hero Section - Fixed Button Clickability */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../images/web-specialist-hero.jpg') center/cover no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 76px;
    z-index: 1; /* Ensure hero section creates stacking context */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    z-index: -1; /* Send overlay behind content */
}

.hero-section .container {
    position: relative;
    z-index: 2; /* Ensure content is above overlay */
}

.hero-title {
    font-size: 3.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badge .badge {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.bg-primary-gradient {
    background: var(--gradient-primary);
}

/* Hero Section Button Fixes */
.hero-section .btn {
    position: relative;
    z-index: 3;
    cursor: pointer !important;
}

/* Additional button styling for better visibility */
.hero-section .btn-light {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    color: var(--dark-color) !important;
}

.hero-section .btn-light:hover {
    background: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    color: var(--dark-color) !important;
}

.hero-section .btn-outline-light {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease !important;
    color: white !important;
}

.hero-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    color: white !important;
}

/* Section Styling */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    color: var(--dark-color);
    position: relative;
}

.section-subtitle {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-separator {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin-top: 1rem;
}

/* Introduction Card */
.intro-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.stats-grid .stat-item {
    transition: transform 0.3s ease;
}

.stats-grid .stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-weight: 700;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.75rem;
}

.bg-purple {
    background: var(--gradient-purple);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.service-features li:last-child {
    border-bottom: none;
}

/* Benefits Tabs */
.benefits-card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.benefits-nav .nav-link {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin: 0 0.5rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.benefits-nav .nav-link.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
}

.benefits-nav .nav-link:hover:not(.active) {
    background: #f8fafc;
    border-color: var(--primary-light);
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 0.75rem 0;
    font-weight: 500;
}

.benefit-visual {
    opacity: 0.8;
}

/* Audience Cards - Fixed List Alignment */
.audience-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.audience-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.audience-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.audience-content h3,
.audience-content p {
    text-align: center;
}

.audience-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    text-align: left; /* Fixed: Ensure list content aligns left */
    margin-top: auto; /* Push list to bottom of card */
}

.audience-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem; /* Fixed: Add proper padding for bullets */
    line-height: 1.4;
}

.audience-features li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Process Timeline */
.process-timeline {
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30px;
    width: 2px;
    background: var(--gradient-primary);
    z-index: 0;
}

.process-step {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 2rem;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.step-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex: 1;
    border: 1px solid var(--border-color);
}

.step-content h3 {
    color: var(--primary-color);
}

.step-content ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
    text-align: left; /* Fixed: Ensure list content aligns left */
}

.step-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* ROI Cards */
.roi-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.roi-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.roi-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.75rem;
}

.roi-stat {
    font-size: 2rem;
    margin-top: 1rem;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.cta-section > .row {
    position: relative;
    z-index: 1;
}

.cta-visual {
    opacity: 0.7;
}

/* FAQ Accordion */
.faq-accordion .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.faq-accordion .accordion-button {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    background: white;
    color: var(--dark-color);
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

.faq-accordion .accordion-body {
    padding: 1.5rem;
    background: #f8fafc;
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .process-timeline::before {
        left: 25px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-right: 1.5rem;
    }
    
    .service-card, .audience-card, .roi-card {
        padding: 1.5rem;
    }
    
    .benefits-nav .nav-link {
        margin: 0.25rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Mobile fixes for audience cards */
    .audience-card {
        padding: 1.5rem 1rem;
    }
    
    .audience-features {
        font-size: 0.85rem;
    }
    
    .audience-features li {
        padding-left: 1.25rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .process-step {
        flex-direction: column;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    /* Mobile fixes for audience cards */
    .audience-card {
        margin-bottom: 1.5rem;
    }
    
    .audience-features li {
        padding: 0.4rem 0;
        padding-left: 1.25rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.8s ease;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Utility Classes for Text Alignment */
.text-start {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.text-end {
    text-align: right !important;
}