/* CSS Reset for Case Study pages to prevent main.css global styles from overriding Bootstrap default / Custom styles */

body {
    overflow-x: hidden !important;
}

.case-study-main {
    font-family: 'Inter', sans-serif !important;
    color: #1e293b !important;
    overflow-x: hidden !important;
}

.case-study-main h1, 
.case-study-main h2, 
.case-study-main h3, 
.case-study-main h4, 
.case-study-main h5, 
.case-study-main h6 {
    font-family: inherit !important;
    color: inherit !important;
    margin-top: 0 !important;
}

.case-study-main h1.hero-title { 
    font-size: clamp(2rem, 4vw, 3rem) !important; 
    line-height: 1.2 !important; 
    color: #fff !important; 
    font-weight: 800 !important; 
    margin-bottom: 24px !important;
}

.case-study-main h2 { 
    font-size: 2rem !important; 
    line-height: 1.2 !important; 
    font-weight: 700 !important; 
}

.case-study-main h3 { font-size: 1.75rem !important; font-weight: 700 !important; }
.case-study-main h4 { font-size: 1.5rem !important; font-weight: 700 !important; }
.case-study-main h5 { font-size: 1.25rem !important; font-weight: 700 !important; }
.case-study-main h6 { font-size: 1rem !important; font-weight: 700 !important; margin-bottom: 4px !important; }

.case-study-main p {
    font-family: inherit !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin-bottom: 1rem !important;
    /* color: #64748b !important; */
}

.case-study-main p.lead {
    font-size: 1.25rem !important;
    font-weight: 300 !important;
    color: white !important;
}

.case-study-main p.fs-5, .case-study-main .fs-5 {
    font-size: 1.25rem !important;
}

.case-study-main ul, .case-study-main ol {
    margin-bottom: 1rem !important;
    padding-left: 2rem !important;
}

.case-study-main li {
    list-style: inherit !important;
}

.case-study-main .feature-list {
    padding-left: 0 !important;
    list-style: none !important;
}

.case-study-main .feature-list li {
    list-style: none !important;
    padding-left: 28px !important;
    margin-bottom: 12px !important;
    color: #64748b !important;
}

.case-study-main .list-unstyled {
    padding-left: 0 !important;
    list-style: none !important;
}

.case-study-main .list-unstyled li {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 16px !important;
}

.case-study-main a {
    text-decoration: none !important;
}

.case-study-main hr {
    margin: 1rem 0 !important;
}

/* =========================================
   CASE STUDY SPECIFIC STYLES 
   ========================================= */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #003d99;
    --dark-bg: #0f172a;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --light-gray: #f1f5f9;
    --text-main: #1e293b;
    --text-muted: #64748b;
}

.section-pill-wrapper {
    position: relative;
    margin-top: -25px;
    margin-bottom: 40px;
    z-index: 5;
}

.section-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 25px;
    color: #0d6efd;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.section-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    color: #0d6efd;
}

/* Hero Section with Banner */
.hero-banner {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    color: white;
    padding: 80px 0;
    overflow: hidden;
}

.hero-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    opacity: 0.8;

    /* background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgb(35 46 62 / 10%) 100%); */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.client-tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    margin-bottom: 24px;
}

.hero-title {
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

/* General Layout */
.section-spacing {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 50px;
}

/* Modern Cards */
.card-modern {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 35px;
    height: 100%;
    transition: all 0.3s ease;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(13, 110, 253, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-color);
}

/* Specific Lists */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

/* Screenshot Placeholders */
.screenshot-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
    margin: 20px 0;
}

/* Stats Section */
.stats-grid {
    background: var(--dark-bg);
    border-radius: 30px;
    padding: 60px 40px;
    color: white;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Tech Tags */
.tech-pill {
    display: inline-block;
    padding: 8px 20px;
    background: var(--light-gray);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 10px 15px 0;
    color: var(--secondary-color);
}

/* CTA */
.cta-box {
    background: var(--accent-gradient);
    background: linear-gradient(135deg, #0d6efd 0%, #003d99 100%);
    border-radius: 30px;
    padding: 70px 40px;
    color: white;
    text-align: center;
}

.btn-white {
    background: #fff;
    color: var(--primary-color);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-white:hover {
    transform: scale(1.05);
    background: #f1f5f9;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .hero-banner { min-height: 450px; padding: 60px 0; }
    .section-spacing { padding: 60px 0; }
}

.feature-pills,
.tech-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feature-pill {
    background: #f1f3f5;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.feature-pill:hover {
    background: #0d6efd;
    color: #fff;
    transform: translateY(-2px);
}

.tech-pill {
    background: #e9ecef;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-pill:hover {
    background: #212529;
    color: #fff;
}
