/* ============================================================
   ITHOS AWS Migration — Standalone CSS (no ajna.css dependency)
   ============================================================ */

:root {
    --brand-primary: #0260a8;
    --brand-dark: #1a1a1a;
    --text-main: #2d3436;
    --text-light: #636e72;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --font-stack: 'Inter', sans-serif;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(2, 96, 168, 0.15);
    --radius-md: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background: var(--white);
    overflow-x: hidden;
}

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

.section {
    padding: 80px 0;
}

.bg-light {
    background: var(--bg-light);
}

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

/* ── Section Tag ── */
.section-tag {
    display: inline-block;
    background: rgb(9 230 181 / 14%);
    color: var(--brand-primary);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* ── Section Title (no underline) ── */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    margin-top: 0;
    color: var(--brand-dark);
    display: block;
    width: 100%;
}

.section-title::after {
    display: none;
}

.section-desc {
    max-width: 885px;
    margin: 0 auto;
    text-align: start;
}

.section-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
    margin: 60px auto;
    border-radius: 2px;
}

/* ── Reveal Animation ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── Hero ── */
.hero {
    color: var(--white);
    padding: 180px 0 120px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin: 0 auto;
    opacity: 0.95;
    font-weight: 300;
    color: var(--white);
}

.meta-info {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

/* ── Executive Summary Overlap ── */
.overlap-section {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding-bottom: 40px;
}

.summary-box {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 50px;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    border-top: 6px solid var(--brand-primary);
    position: relative;
    overflow: hidden;
}

.summary-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(2, 96, 168, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* ── Results Grid ── */
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.result-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px 25px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(2, 96, 168, 0.1);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), #09e6b5);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.result-card:hover::before {
    transform: scaleX(1);
}

.result-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(2, 96, 168, 0.2);
    border-color: var(--brand-primary);
}

.result-card h2 {
    color: var(--brand-primary);
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.result-card h4 {
    color: var(--brand-dark);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.result-card p {
    color: var(--text-light);
    font-size: 16px;
}

/* ── Governance Grid ── */
.governance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.governance-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.governance-card:hover {
    transform: translateY(-5px);
}

.governance-card p {
    font-size: 16px;
}

.governance-card h4 {
    color: var(--brand-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* ── Tech Grid ── */
.tech-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--brand-primary);
}

.tech-item span {
    font-weight: 600;
    font-size: 1rem;
    color: #555;
    margin-top: 8px;
}

/* ── Quote Box (Testimonial) ── */
.quote-box {
    background: var(--white);
    padding: 70px 50px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: rgba(255, 193, 7, 0.2);
    position: absolute;
    top: 30px;
    left: 30px;
}

.quote-text {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 30px;
    color: #333;
    position: relative;
    z-index: 2;
}

.feedback-desc {
    max-width: 920px;
    margin: 20px auto 40px !important;
    text-align: start;
}

/* ── Flow Diagram / Architecture ── */
.flow-diagram-grid .img-box {
    text-align: center;
}

/* ── Shortcoming Cards ── */
.shortcoming-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.shortcoming-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition);
    border: 1px solid rgba(2, 96, 168, 0.08);
    position: relative;
    overflow: hidden;
}

.shortcoming-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--brand-primary), #09e6b5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shortcoming-card:hover::after {
    opacity: 1;
}

.shortcoming-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(2, 96, 168, 0.12);
    border-color: var(--brand-primary);
}

.shortcoming-card i {
    color: var(--brand-primary);
    font-size: 2rem;
    background: rgba(2, 96, 168, 0.08);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.shortcoming-card:hover i {
    transform: scale(1.1);
    background: rgba(2, 96, 168, 0.15);
}

.shortcoming-card h4 {
    color: var(--brand-dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

.shortcoming-card p {
    color: var(--text-light);
    font-size: 16px;
    margin: 0;
}

/* ── Service Step Cards ── */
.service-step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-step-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(2, 96, 168, 0.08);
    transition: var(--transition);
    position: relative;
}

.service-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), #09e6b5);
    border-radius: 20px 20px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-step-card:hover::before {
    transform: scaleX(1);
}

.service-step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(2, 96, 168, 0.15);
    border-color: var(--brand-primary);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--brand-primary);
    color: white;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(2, 96, 168, 0.35);
}

.service-step-card h3 {
    color: var(--brand-dark);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-step-card p {
    color: var(--text-light);
    font-size: 16px;
}

/* ── Project Meta Cards ── */
.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-meta-card {
    background: white;
    padding: 32px 28px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(2, 96, 168, 0.08);
    transition: var(--transition);
}

.project-meta-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(2, 96, 168, 0.12);
}

.project-meta-card .meta-icon {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 14px;
}

.project-meta-card h5 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
}

.project-meta-card p {
    font-size: 16px;
    color: var(--brand-dark);
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

/* ── Result & Benefits Stats ── */
.result-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.result-benefit-item h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 8px;
    line-height: 1;
}

.result-benefit-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.result-benefit-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .summary-box {
        padding: 25px;
    }

    .summary-grid {
        grid-template-columns: 1fr !important;
    }

    .section-title {
        font-size: 2rem;
    }

    .result-benefits-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .shortcoming-grid {
        grid-template-columns: 1fr;
    }

    .service-step-grid {
        grid-template-columns: 1fr;
    }

    .project-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quote-box {
        padding: 40px 25px;
    }
}

@media (max-width: 480px) {
    .project-meta-grid {
        grid-template-columns: 1fr;
    }
}
/* --- HERO DOWNLOAD BUTTON --- */
.cs-hero-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding: 14px 32px;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 20px rgba(2, 96, 168, 0.35);
}

.cs-hero-download-btn:hover {
    background: #014f8a;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(2, 96, 168, 0.45);
}

.cs-hero-download-btn i {
    font-size: 0.9rem;
}
/* --- CTA BANNER --- */
.acg-cta-banner {
    background: #d6f6f1a6;
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}

.acg-cta-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
}

.acg-cta-text {
    flex: 1;
    font-size: 1.25rem;
    font-weight: 600;
}

/* ── FAQ Theme ── */
.ithos-aws-faq-theme { --faq-accent: #0260a8; }
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
}

.acg-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.acg-cta-btn:hover {
    background: #014f8a;
    transform: translateY(-1px);
}

.acg-cta-logo {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.08;
    pointer-events: none;
}

.acg-cta-logo img {
    width: 220px;
    height: 220px;
    object-fit: contain;
}

/* ===== RESPONSIVE PATCH — prevent horizontal overflow on small viewports ===== */
html {
    overflow-x: hidden;
}

@media (max-width: 576px) {
    .results-grid {
        grid-template-columns: 1fr;
    }

    .governance-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .meta-info {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .summary-box {
        padding: 24px 16px;
    }

    .overlap-section {
        margin-top: -40px;
        padding-bottom: 30px;
    }

    .cs-hero-download-btn,
    .acg-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .acg-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .acg-cta-logo {
        display: none;
    }
}