/* =====================================================
   MAPCON Webpage.css - AI Agent CMS Styling System
   
   This file contains pre-built component classes for the
   AI Agent to use when restyling CMS pages.
   
   DO NOT use inline styles in pages - reference these classes.
   ===================================================== */

/* ===== PAGE STRUCTURE ===== */

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 40px;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .page-container {
        padding: 0 16px;
    }
}

/* ===== HERO SECTIONS ===== */
/* =====================================================
   MAPCON Webpage.css - AI Agent CMS Styling System
   
   This file contains pre-built component classes for the
   AI Agent to use when restyling CMS pages.
   
   DO NOT use inline styles in pages - reference these classes.
   ===================================================== */

/* ===== PAGE STRUCTURE ===== */

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 40px;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .page-container {
        padding: 0 16px;
    }
}

/* ===== HERO SECTIONS ===== */

/* Hero Wrapper - adds top margin to separate from header */
.hero-wrapper {
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 40px;
    margin-left: 0;
}

@media (max-width: 768px) {
    .hero-wrapper {
        margin-bottom: 30px;
    }
}

/* Hero Section - Dark gradient with overlay */
.hero2-section {
    background: linear-gradient(135deg, #1a2847 0%, #0d1628 100%);
    border-radius: 20px;
    padding: 80px 50px;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

    .hero2-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(65, 91, 169, 0.15) 0%, rgba(35, 53, 101, 0.3) 100%);
        pointer-events: none;
    }

.hero2-overlay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero2-content-left {
    flex: 1;
}

.hero2-content-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Hero Typography */
.hero2-title {
    font-size: 3.5em;
    font-weight: 700;
    color: #FFFFFF !important;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7) !important;
    line-height: 1.15;
    margin-bottom: 28px;
}

.hero2-title-highlight {
    color: #FFD700 !important;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7) !important;
    display: block;
    margin-top: 12px;
}

.hero2-subtitle {
    font-size: 1.5em;
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
    line-height: 1.7;
    margin-bottom: 45px;
}

/* Hero CTA Group */
.hero2-cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Stat Cards (floating on hero right side) */
.hero-stat-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    padding: 32px;
    transition: all 0.3s ease;
}

    .hero-stat-card:hover {
        background: rgba(255, 255, 255, 0.28);
        border-color: rgba(255, 255, 255, 0.5);
        transform: translateX(-8px);
    }

.stat-number {
    font-size: 3.2em;
    font-weight: 700;
    color: #FFD700 !important;
    margin-bottom: 12px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.stat-label {
    font-size: 1.2em;
    color: #FFFFFF !important;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hero Feature Grid (compact 2x2 grid) */
.hero-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.feature-mini-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: all 0.3s ease;
}

    .feature-mini-card:hover {
        background: rgba(255, 255, 255, 0.22);
        transform: translateY(-3px);
    }

.feature-mini-icon {
    color: #FFD700 !important;
    font-size: 2em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.feature-mini-text {
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 0.95em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hero Stats Row (compact stats) */
.hero-stats-row {
    display: flex;
    gap: 16px;
    justify-content: space-around;
    margin-bottom: 24px;
}

.hero-stat-compact {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 16px 24px;
    text-align: center;
    flex: 1;
}

.stat-compact-number {
    font-size: 1.8em;
    font-weight: 700;
    color: #FFD700 !important;
    line-height: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.stat-compact-label {
    font-size: 0.85em;
    color: #FFFFFF !important;
    font-weight: 500;
    margin-top: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hero Feature Badge (heritage badge) */
.hero-feature-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.badge-label {
    color: #FFFFFF !important;
    font-size: 0.9em;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.badge-value {
    font-size: 2.5em;
    font-weight: 800;
    color: #FFD700 !important;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Hero Floating Dashboard Pattern */
.hero-floating-container {
    position: relative;
    min-height: 400px;
}

.dashboard-mockup {
    position: relative;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    z-index: 1;
}

.dashboard-icon {
    font-size: 3em;
    color: #FFD700 !important;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.dashboard-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #FFFFFF !important;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.dashboard-subtitle {
    font-size: 1em;
    color: #FFFFFF !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

/* Floating Metric Cards */
.floating-metric {
    position: absolute;
    background: white;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 2;
    animation: floatMetric 3s ease-in-out infinite;
}

@keyframes floatMetric {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

.floating-metric-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.floating-metric-2 {
    top: 45%;
    left: -12%;
    animation-delay: 1s;
}

.floating-metric-3 {
    bottom: 12%;
    right: -8%;
    animation-delay: 2s;
}

.metric-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.metric-icon-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.metric-icon-red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.metric-icon {
    color: white;
    font-size: 1.5em;
}

.metric-content {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.85em;
    color: #6b7280;
    font-weight: 500;
}

.metric-value {
    font-size: 1.5em;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

/* Hero Module Stack Pattern */
.module-stack-container {
    position: relative;
    height: 450px;
}

.module-stack-card {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    background: white;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

    .module-stack-card:nth-child(1) {
        bottom: 0;
        z-index: 5;
        transform: translateX(-50%) rotate(-2deg);
    }

    .module-stack-card:nth-child(2) {
        bottom: 20px;
        z-index: 4;
        transform: translateX(-50%) rotate(1deg);
        opacity: 0.95;
    }

    .module-stack-card:nth-child(3) {
        bottom: 40px;
        z-index: 3;
        transform: translateX(-50%) rotate(-1.5deg);
        opacity: 0.9;
    }

    .module-stack-card:nth-child(4) {
        bottom: 60px;
        z-index: 2;
        transform: translateX(-50%) rotate(0.5deg);
        opacity: 0.85;
    }

    .module-stack-card:nth-child(5) {
        bottom: 80px;
        z-index: 1;
        transform: translateX(-50%) rotate(-1deg);
        opacity: 0.8;
    }

    .module-stack-card:hover {
        z-index: 10 !important;
        transform: translateX(-50%) translateY(-20px) rotate(0deg) scale(1.05) !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
        opacity: 1 !important;
    }

.module-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #415BA9, #233565);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.module-icon {
    color: white;
    font-size: 2em;
}

.module-card-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #233565;
    text-align: center;
    margin-bottom: 12px;
}

.module-card-description {
    font-size: 0.95em;
    color: #4E4C4C;
    text-align: center;
    line-height: 1.6;
}

/* Responsive - Hero Sections */
@media (max-width: 768px) {
    .hero2-section {
        padding: 50px 32px;
        margin-bottom: 60px;
    }

    .hero2-overlay {
        flex-direction: column;
        gap: 45px;
    }

    .hero2-title {
        font-size: 2.5em;
    }

    .hero2-subtitle {
        font-size: 1.2em;
    }

    .hero2-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats-row {
        flex-direction: column;
    }
}

/* ===== BUTTONS ===== */

.cta-button-elevated {
    display: inline-block;
    background: #DC143C;
    color: #FFFFFF !important;
    padding: 20px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2em;
    box-shadow: 0 6px 25px rgba(220, 20, 60, 0.5);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

    .cta-button-elevated:hover {
        background: #FF1744;
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(220, 20, 60, 0.6);
        color: #FFFFFF !important;
        text-decoration: none;
    }

.video-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #FFFFFF !important;
    padding: 20px 50px;
    border: 2px solid #FFFFFF;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2em;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .video-button:hover {
        background: rgba(255, 255, 255, 0.25);
        color: #FFFFFF !important;
        transform: translateY(-3px);
        text-decoration: none;
    }

@media (max-width: 768px) {
    .cta-button-elevated,
    .video-button {
        padding: 18px 40px;
        font-size: 1.1em;
        width: 100%;
        text-align: center;
    }
}

/* ===== SECTION HEADERS ===== */

.section-header-center {
    text-align: center;
    max-width: 900px;
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 40px;
    margin-left: auto;
}

.section-overline-2 {
    font-size: 0.95em;
    font-weight: 700;
    color: #DC143C;
    letter-spacing: 3px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.section-title-2 {
    font-size: 3em;
    font-weight: 700;
    color: #233565;
    margin-bottom: 28px;
    line-height: 1.2;
}

.title-accent {
    color: #415BA9;
}

.section-description-2 {
    font-size: 1.3em;
    line-height: 1.8;
    color: #4E4C4C;
    font-weight: 400;
}

@media (max-width: 768px) {
    .section-title-2 {
        font-size: 2.2em;
    }
}

.section-media-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .section-media-center {
        margin-bottom: 30px;
    }
}

/* ===== FEATURE CARDS ===== */

.modern-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 0;
    margin-bottom: 40px;
}

.modern-card {
    background: white;
    border-radius: 18px;
    padding: 50px;
    box-shadow: 0 8px 30px rgba(35, 53, 101, 0.12);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

    .modern-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 45px rgba(35, 53, 101, 0.2);
    }

.card-icon-wrapper {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, #415BA9 0%, #233565 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    box-shadow: 0 6px 20px rgba(65, 91, 169, 0.3);
    transition: all 0.3s ease;
}

.modern-card:hover .card-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.card-icon {
    color: white;
    font-size: 2.2em;
}

.card-title {
    font-size: 1.7em;
    font-weight: 600;
    color: #233565;
    margin-bottom: 20px;
    line-height: 1.3;
}

.card-description {
    font-size: 1.15em;
    line-height: 1.8;
    color: #4E4C4C;
    margin-bottom: 28px;
}

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

    .card-features li {
        padding: 12px 0;
        color: #4E4C4C;
        display: flex;
        align-items: flex-start;
        font-size: 1.08em;
        line-height: 1.6;
    }

        .card-features li::before {
            content: "\2713";
            color: #415BA9;
            font-weight: 700;
            margin-right: 16px;
            font-size: 1.4em;
            line-height: 1;
            flex-shrink: 0;
        }

@media (max-width: 768px) {
    .modern-card-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modern-card {
        padding: 35px;
    }
}

.modern-card .section-media-center {
    margin-bottom: 28px;
}

/* ===== CTA SECTIONS ===== */

.cta-section-modern {
    background: linear-gradient(135deg, #1a2847 0%, #0d1628 100%);
    border-radius: 25px;
    padding: 80px 50px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
    .cta-section-modern::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(65, 91, 169, 0.15) 0%, rgba(35, 53, 101, 0.3) 100%);
        pointer-events: none;
    }

    .cta-section-modern h2 {
        font-size: 3em;
        font-weight: 700;
        color: #FFFFFF !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        margin-bottom: 28px;
        position: relative;
        z-index: 1;
    }

    .cta-section-modern p {
        font-size: 1.3em;
        color: #FFFFFF !important;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
        margin-bottom: 45px;
        position: relative;
        z-index: 1;
    }

    .cta-section-modern .cta-button-elevated {
        position: relative;
        z-index: 1;
    }

@media (max-width: 768px) {
    .cta-section-modern {
        padding: 60px 32px;
        margin-bottom: 30px;
    }

        .cta-section-modern h2 {
            font-size: 2.2em;
        }
}

/* ===== RELATED LINKS SECTION ===== */

.related-section {
    margin-top: 0;
    margin-bottom: 40px;
    padding: 50px;
    background: #f8f9fa;
    border-radius: 20px;
}

    .related-section h3 {
        font-size: 2em;
        font-weight: 700;
        color: #233565;
        margin-bottom: 40px;
        text-align: center;
    }

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.related-column h4 {
    font-size: 1.3em;
    font-weight: 600;
    color: #415BA9;
    margin-bottom: 20px;
}

.related-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .related-column ul li {
        margin-bottom: 12px;
    }

        .related-column ul li a {
            color: #4E4C4C;
            text-decoration: none;
            font-size: 1.05em;
            transition: all 0.2s ease;
            display: inline-block;
        }

            .related-column ul li a:hover {
                color: #DC143C;
                transform: translateX(5px);
            }

@media (max-width: 768px) {
    .related-section {
        padding: 40px 24px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===== MODERN FOOTER STYLES ===== */

.modern-footer {
    background: linear-gradient(180deg, #233565 0%, #1a2845 100%);
    color: white;
    margin-top: 40px;
    padding: 60px 0 0 0;
}

.footer-main {
    padding-bottom: 40px;
}

.footer-section {
    height: 100%;
}

.footer-logo {
    color: white !important;
    font-weight: 800 !important;
    font-size: 1.75rem !important;
    letter-spacing: 1px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.6 !important;
    font-size: 0.9rem !important;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social-icon {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}

    .footer-social-icon:hover {
        background-color: rgba(255, 255, 255, 0.2) !important;
        transform: translateY(-3px);
        color: #FFA500 !important;
    }

.footer-section-title {
    color: white !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 10px;
    }

.footer-link {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: inline-block;
}

    .footer-link:hover {
        color: #FFA500 !important;
        transform: translateX(4px);
    }

.footer-contact-bar {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 24px 0;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact-icon {
    color: #FFA500 !important;
    font-size: 24px !important;
    margin-top: 2px;
}

.footer-contact-label {
    color: white !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
}

.footer-contact-text {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem !important;
}

    .footer-contact-text strong {
        color: white;
        font-weight: 600;
    }

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.875rem !important;
}

.footer-link-inline {
    color: white !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    font-weight: 500;
}

    .footer-link-inline:hover {
        color: #FFA500 !important;
        text-decoration: underline !important;
    }

/* Responsive adjustments for footer */
@media (max-width: 960px) {
    .modern-footer {
        margin-top: 40px;
        padding: 40px 0 0 0;
    }

    .footer-main {
        padding-bottom: 30px;
    }

    .footer-section {
        margin-bottom: 30px;
    }

    .footer-contact-bar {
        padding: 20px 0;
    }

    .footer-bottom {
        padding: 16px 0;
    }

    .text-md-left,
    .text-md-right {
        text-align: center !important;
    }
}

@media (max-width: 600px) {
    .modern-footer {
        margin-top: 40px;
    }

    .footer-logo {
        font-size: 1.5rem !important;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ===== BLOG CONTENT STYLES ===== */

/* Blog Content Container - Markdown Articles */
.blog-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1a1a1a;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Blog Content - Full Width HTML Articles */
.blog-content-html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1a1a1a;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 3rem;
}

    /* Floating Images */
    .blog-content .floatRt,
    .blog-content-html .floatRt,
    .floatRt {
        float: right;
        margin-left: 20px !important;
        margin-bottom: 20px;
        max-width: 400px;
    }

    .blog-content .floatLt,
    .blog-content-html .floatLt,
    .floatLt {
        float: left;
        margin-right: 20px !important;
        margin-bottom: 20px;
        max-width: 400px;
    }

    /* Scalable Rounded Images */
    .blog-content .scalable-rounded,
    .blog-content-html .scalable-rounded,
    .scalable-rounded {
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        height: auto;
        max-width: 100%;
    }

        .blog-content .scalable-rounded:hover,
        .blog-content-html .scalable-rounded:hover,
        .scalable-rounded:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        }

    /* Clearfix for floats */
    .blog-content::after,
    .blog-content-html::after {
        content: "";
        display: table;
        clear: both;
    }

    /* Headings - Modern, Bold, with Smart Spacing */
    .blog-content h1,
    .blog-content-html h1,
    .blog-content h2,
    .blog-content-html h2,
    .blog-content h3,
    .blog-content-html h3,
    .blog-content h4,
    .blog-content-html h4,
    .blog-content h5,
    .blog-content-html h5,
    .blog-content h6,
    .blog-content-html h6 {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
        font-weight: 700;
        line-height: 1.3;
        margin-top: 2.5rem;
        margin-bottom: 1.25rem;
        color: #0a0a0a;
        letter-spacing: -0.02em;
        clear: both;
    }

    .blog-content h1,
    .blog-content-html h1 {
        font-size: 2.75rem;
        margin-top: 0;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
        border-bottom: 3px solid #f0f0f0;
    }

    .blog-content h2,
    .blog-content-html h2 {
        font-size: 2.25rem;
        margin-top: 3rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #f5f5f5;
    }

    .blog-content h3,
    .blog-content-html h3 {
        font-size: 1.875rem;
        margin-top: 2.5rem;
        color: #2d2d2d;
    }

    .blog-content h4,
    .blog-content-html h4 {
        font-size: 1.5rem;
        margin-top: 2rem;
        color: #3a3a3a;
    }

    .blog-content h5,
    .blog-content-html h5 {
        font-size: 1.25rem;
        color: #4a4a4a;
    }

    .blog-content h6,
    .blog-content-html h6 {
        font-size: 1.125rem;
        color: #5a5a5a;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* Paragraphs - Comfortable Reading */
    .blog-content p,
    .blog-content-html p {
        margin-bottom: 1.5rem;
        color: #2d2d2d;
        font-size: 1.125rem;
        line-height: 1.8;
        clear: none;
    }

        .blog-content p:last-child,
        .blog-content-html p:last-child {
            margin-bottom: 0;
        }

    /* Lead Paragraph - Make First Paragraph Stand Out */
    .blog-content > p:first-of-type,
    .blog-content-html > p:first-of-type {
        font-size: 1.3rem;
        line-height: 1.7;
        color: #1a1a1a;
        font-weight: 400;
        margin-bottom: 2rem;
    }

    /* Links - Modern and Accessible */
    .blog-content a,
    .blog-content-html a {
        color: #0066cc;
        text-decoration: none;
        border-bottom: 1px solid rgba(0, 102, 204, 0.3);
        transition: all 0.2s ease;
        font-weight: 500;
    }

        .blog-content a:hover,
        .blog-content-html a:hover {
            color: #0052a3;
            border-bottom-color: #0052a3;
            background-color: rgba(0, 102, 204, 0.05);
        }

    /* Images - Elegant and Responsive */
    .blog-content img,
    .blog-content-html img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        margin: 1.5rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .blog-content img:hover,
        .blog-content-html img:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        }

    /* Lists - Well Structured and Readable */
    .blog-content ul,
    .blog-content-html ul,
    .blog-content ol,
    .blog-content-html ol {
        margin: 1.5rem 0;
        padding-left: 2rem;
        color: #2d2d2d;
    }

    .blog-content li,
    .blog-content-html li {
        margin-bottom: 0.75rem;
        line-height: 1.7;
        padding-left: 0.5rem;
    }

    .blog-content ul li::marker,
    .blog-content-html ul li::marker {
        color: #0066cc;
        font-size: 1.2em;
    }

    .blog-content ol li::marker,
    .blog-content-html ol li::marker {
        color: #0066cc;
        font-weight: 600;
    }

    /* Nested Lists */
    .blog-content li > ul,
    .blog-content-html li > ul,
    .blog-content li > ol,
    .blog-content-html li > ol {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    /* Blockquotes - Beautiful and Distinctive */
    .blog-content blockquote,
    .blog-content-html blockquote {
        position: relative;
        margin: 2.5rem 0;
        padding: 1.5rem 2rem 1.5rem 3rem;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-left: 5px solid #0066cc;
        border-radius: 8px;
        font-size: 1.2rem;
        font-style: italic;
        color: #2d2d2d;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

        .blog-content blockquote::before,
        .blog-content-html blockquote::before {
            content: '"';
            position: absolute;
            left: 0.75rem;
            top: 0.5rem;
            font-size: 3rem;
            color: #0066cc;
            opacity: 0.3;
            font-family: Georgia, serif;
            line-height: 1;
        }

        .blog-content blockquote p,
        .blog-content-html blockquote p {
            margin-bottom: 0.75rem;
        }

            .blog-content blockquote p:last-child,
            .blog-content-html blockquote p:last-child {
                margin-bottom: 0;
            }

    /* Code - Syntax Highlighted and Professional */
    .blog-content code,
    .blog-content-html code {
        font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
        font-size: 0.9em;
        background: linear-gradient(135deg, #f6f8fa 0%, #eef1f4 100%);
        color: #d73a49;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        border: 1px solid #e1e4e8;
        font-weight: 500;
    }

    /* Code Blocks - Immersive Coding Experience */
    .blog-content pre,
    .blog-content-html pre {
        background: linear-gradient(135deg, #1e1e1e 0%, #2d2d30 100%);
        padding: 1.75rem;
        border-radius: 12px;
        overflow-x: auto;
        margin: 2rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        border: 1px solid #3e3e42;
        position: relative;
    }

        .blog-content pre::before,
        .blog-content-html pre::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 35px;
            background: #323232;
            border-radius: 12px 12px 0 0;
            border-bottom: 1px solid #3e3e42;
        }

        .blog-content pre code,
        .blog-content-html pre code {
            background: transparent;
            color: #e6e6e6;
            padding: 0;
            border: none;
            font-size: 0.95rem;
            line-height: 1.6;
            display: block;
            margin-top: 25px;
        }

        /* Scrollbar for Code Blocks */
        .blog-content pre::-webkit-scrollbar,
        .blog-content-html pre::-webkit-scrollbar {
            height: 8px;
        }

        .blog-content pre::-webkit-scrollbar-track,
        .blog-content-html pre::-webkit-scrollbar-track {
            background: #2d2d30;
            border-radius: 4px;
        }

        .blog-content pre::-webkit-scrollbar-thumb,
        .blog-content-html pre::-webkit-scrollbar-thumb {
            background: #555;
            border-radius: 4px;
        }

            .blog-content pre::-webkit-scrollbar-thumb:hover,
            .blog-content-html pre::-webkit-scrollbar-thumb:hover {
                background: #666;
            }

    /* Tables - Modern Data Presentation */
    .blog-content table,
    .blog-content-html table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        margin: 2rem 0;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

        .blog-content table thead,
        .blog-content-html table thead {
            background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
        }

        .blog-content table th,
        .blog-content-html table th {
            padding: 1rem 1.25rem;
            text-align: left;
            font-weight: 600;
            color: white;
            font-size: 0.95rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border: none;
        }

        .blog-content table td,
        .blog-content-html table td {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid #e9ecef;
            color: #2d2d2d;
        }

        .blog-content table tbody tr,
        .blog-content-html table tbody tr {
            background: white;
            transition: background-color 0.2s ease;
        }

            .blog-content table tbody tr:nth-child(even),
            .blog-content-html table tbody tr:nth-child(even) {
                background: #f8f9fa;
            }

            .blog-content table tbody tr:hover,
            .blog-content-html table tbody tr:hover {
                background: #e7f3ff;
            }

            .blog-content table tbody tr:last-child td,
            .blog-content-html table tbody tr:last-child td {
                border-bottom: none;
            }

    /* Horizontal Rules - Elegant Dividers */
    .blog-content hr,
    .blog-content-html hr {
        border: none;
        height: 3px;
        background: linear-gradient(90deg, transparent 0%, #0066cc 50%, transparent 100%);
        margin: 3rem 0;
        clear: both;
    }

    /* Strong and Emphasis */
    .blog-content strong,
    .blog-content-html strong {
        font-weight: 700;
        color: #0a0a0a;
    }

    .blog-content em,
    .blog-content-html em {
        font-style: italic;
        color: #2d2d2d;
    }

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-content-html {
        padding: 2rem 2rem;
    }
}

@media (max-width: 768px) {
    .blog-content {
        font-size: 1rem;
        padding: 0 1.5rem;
    }

    .blog-content-html {
        font-size: 1rem;
        padding: 1.5rem 1.5rem;
    }

        .blog-content h1,
        .blog-content-html h1 {
            font-size: 2rem;
        }

        .blog-content h2,
        .blog-content-html h2 {
            font-size: 1.75rem;
        }

        .blog-content h3,
        .blog-content-html h3 {
            font-size: 1.5rem;
        }

        .blog-content h4,
        .blog-content-html h4 {
            font-size: 1.25rem;
        }

        .blog-content blockquote,
        .blog-content-html blockquote {
            padding: 1rem 1.5rem 1rem 2rem;
            font-size: 1.1rem;
        }

        .blog-content pre,
        .blog-content-html pre {
            padding: 1.25rem;
            font-size: 0.85rem;
        }

        .blog-content table,
        .blog-content-html table {
            font-size: 0.9rem;
        }

            .blog-content table th,
            .blog-content-html table th,
            .blog-content table td,
            .blog-content-html table td {
                padding: 0.75rem;
            }
}

@media (max-width: 480px) {
    .blog-content {
        padding: 0 1rem;
    }

    .blog-content-html {
        padding: 1rem 1rem;
    }
}

/** STANDARD LINK COLORS (GLOBAL CONSISTENCY) **/
/* Applies accessible, WCAG-safe hyperlink styling across all pages */

a:link {
    color: #0000EE ; /* Unvisited link (blue) */
}

a:visited {
    color: #551A8B ; /* Visited link (purple) */
}

a:hover {
    color: #0000EE ;
    text-decoration: underline ;
}

/* Keyboard focus visibility (WCAG compliant) */
a:focus-visible {
    outline: 3px solid #FFB700 ; /* High-contrast focus ring */
    outline-offset: 3px ;
    text-decoration: underline ;
}

/* Active state (mouse click or keyboard activation) */
a:active,
a:visited:active {
    color: #FF0000 ; /* Active link (red) */
}

/* Set default href color for mobile buttons */
 a.mobile-cta-button {
color: white;
}

/* Hero Wrapper - adds top margin to separate from header */
.hero-wrapper {
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 40px;
    margin-left: 0;
}

@media (max-width: 768px) {
    .hero-wrapper {
        margin-bottom: 30px;
    }
}

/* Hero Section - Dark gradient with overlay */
.hero2-section {
    background: linear-gradient(135deg, #1a2847 0%, #0d1628 100%);
    border-radius: 20px;
    padding: 80px 50px;
    margin-top: 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero2-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(65, 91, 169, 0.15) 0%, rgba(35, 53, 101, 0.3) 100%);
    pointer-events: none;
}

.hero2-overlay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero2-content-left {
    flex: 1;
}

.hero2-content-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Hero Typography */
.hero2-title {
    font-size: 3.5em;
    font-weight: 700;
    color: #FFFFFF !important;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7) !important;
    line-height: 1.15;
    margin-bottom: 28px;
}

.hero2-title-highlight {
    color: #FFD700 !important;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7) !important;
    display: block;
    margin-top: 12px;
}

.hero2-subtitle {
    font-size: 1.5em;
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
    line-height: 1.7;
    margin-bottom: 45px;
}

/* Hero CTA Group */
.hero2-cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Stat Cards (floating on hero right side) */
.hero-stat-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    padding: 32px;
    transition: all 0.3s ease;
}

.hero-stat-card:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-8px);
}

.stat-number {
    font-size: 3.2em;
    font-weight: 700;
    color: #FFD700 !important;
    margin-bottom: 12px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.stat-label {
    font-size: 1.2em;
    color: #FFFFFF !important;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hero Feature Grid (compact 2x2 grid) */
.hero-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.feature-mini-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.feature-mini-card:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
}

.feature-mini-icon {
    color: #FFD700 !important;
    font-size: 2em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.feature-mini-text {
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 0.95em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hero Stats Row (compact stats) */
.hero-stats-row {
    display: flex;
    gap: 16px;
    justify-content: space-around;
    margin-bottom: 24px;
}

.hero-stat-compact {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 16px 24px;
    text-align: center;
    flex: 1;
}

.stat-compact-number {
    font-size: 1.8em;
    font-weight: 700;
    color: #FFD700 !important;
    line-height: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.stat-compact-label {
    font-size: 0.85em;
    color: #FFFFFF !important;
    font-weight: 500;
    margin-top: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hero Feature Badge (heritage badge) */
.hero-feature-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.badge-label {
    color: #FFFFFF !important;
    font-size: 0.9em;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.badge-value {
    font-size: 2.5em;
    font-weight: 800;
    color: #FFD700 !important;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Hero Floating Dashboard Pattern */
.hero-floating-container {
    position: relative;
    min-height: 400px;
}

.dashboard-mockup {
    position: relative;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    z-index: 1;
}

.dashboard-icon {
    font-size: 3em;
    color: #FFD700 !important;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.dashboard-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #FFFFFF !important;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.dashboard-subtitle {
    font-size: 1em;
    color: #FFFFFF !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

/* Floating Metric Cards */
.floating-metric {
    position: absolute;
    background: white;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 2;
    animation: floatMetric 3s ease-in-out infinite;
}

@keyframes floatMetric {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.floating-metric-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.floating-metric-2 {
    top: 45%;
    left: -12%;
    animation-delay: 1s;
}

.floating-metric-3 {
    bottom: 12%;
    right: -8%;
    animation-delay: 2s;
}

.metric-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.metric-icon-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.metric-icon-red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.metric-icon {
    color: white;
    font-size: 1.5em;
}

.metric-content {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.85em;
    color: #6b7280;
    font-weight: 500;
}

.metric-value {
    font-size: 1.5em;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

/* Hero Module Stack Pattern */
.module-stack-container {
    position: relative;
    height: 450px;
}

.module-stack-card {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    background: white;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.module-stack-card:nth-child(1) {
    bottom: 0;
    z-index: 5;
    transform: translateX(-50%) rotate(-2deg);
}

.module-stack-card:nth-child(2) {
    bottom: 20px;
    z-index: 4;
    transform: translateX(-50%) rotate(1deg);
    opacity: 0.95;
}

.module-stack-card:nth-child(3) {
    bottom: 40px;
    z-index: 3;
    transform: translateX(-50%) rotate(-1.5deg);
    opacity: 0.9;
}

.module-stack-card:nth-child(4) {
    bottom: 60px;
    z-index: 2;
    transform: translateX(-50%) rotate(0.5deg);
    opacity: 0.85;
}

.module-stack-card:nth-child(5) {
    bottom: 80px;
    z-index: 1;
    transform: translateX(-50%) rotate(-1deg);
    opacity: 0.8;
}

.module-stack-card:hover {
    z-index: 10 !important;
    transform: translateX(-50%) translateY(-20px) rotate(0deg) scale(1.05) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    opacity: 1 !important;
}

.module-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #415BA9, #233565);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.module-icon {
    color: white;
    font-size: 2em;
}

.module-card-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #233565;
    text-align: center;
    margin-bottom: 12px;
}

.module-card-description {
    font-size: 0.95em;
    color: #4E4C4C;
    text-align: center;
    line-height: 1.6;
}

/* Responsive - Hero Sections */
@media (max-width: 768px) {
    .hero2-section {
        padding: 50px 32px;
        margin-bottom: 30px;
    }

    .hero2-overlay {
        flex-direction: column;
        gap: 45px;
    }

    .hero2-title {
        font-size: 2.5em;
    }

    .hero2-subtitle {
        font-size: 1.2em;
    }

    .hero2-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats-row {
        flex-direction: column;
    }
}

/* ===== BUTTONS ===== */

.cta-button-elevated {
    display: inline-block;
    background: #DC143C;
    color: #FFFFFF !important;
    padding: 20px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2em;
    box-shadow: 0 6px 25px rgba(220, 20, 60, 0.5);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button-elevated:hover {
    background: #FF1744;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(220, 20, 60, 0.6);
    color: #FFFFFF !important;
    text-decoration: none;
}

.video-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #FFFFFF !important;
    padding: 20px 50px;
    border: 2px solid #FFFFFF;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-button:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF !important;
    transform: translateY(-3px);
    text-decoration: none;
}

@media (max-width: 768px) {
    .cta-button-elevated,
    .video-button {
        padding: 18px 40px;
        font-size: 1.1em;
        width: 100%;
        text-align: center;
    }
}

/* ===== SECTION HEADERS ===== */

.section-header-center {
    text-align: center;
    max-width: 900px;
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 40px;
    margin-left: auto;
}

.section-overline-2 {
    font-size: 0.95em;
    font-weight: 700;
    color: #DC143C;
    letter-spacing: 3px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.section-title-2 {
    font-size: 3em;
    font-weight: 700;
    color: #233565;
    margin-bottom: 28px;
    line-height: 1.2;
}

.title-accent {
    color: #415BA9;
}

.section-description-2 {
    font-size: 1.3em;
    line-height: 1.8;
    color: #4E4C4C;
    font-weight: 400;
}

@media (max-width: 768px) {
    .section-title-2 {
        font-size: 2.2em;
    }
}

/* ===== FEATURE CARDS ===== */

.modern-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 0;
    margin-bottom: 40px;
}

.modern-card {
    background: white;
    border-radius: 18px;
    padding: 50px;
    box-shadow: 0 8px 30px rgba(35, 53, 101, 0.12);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(35, 53, 101, 0.2);
}

.card-icon-wrapper {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, #415BA9 0%, #233565 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    box-shadow: 0 6px 20px rgba(65, 91, 169, 0.3);
    transition: all 0.3s ease;
}

.modern-card:hover .card-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.card-icon {
    color: white;
    font-size: 2.2em;
}

.card-title {
    font-size: 1.7em;
    font-weight: 600;
    color: #233565;
    margin-bottom: 20px;
    line-height: 1.3;
}

.card-description {
    font-size: 1.15em;
    line-height: 1.8;
    color: #4E4C4C;
    margin-bottom: 28px;
}

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

.card-features li {
    padding: 12px 0;
    color: #4E4C4C;
    display: flex;
    align-items: flex-start;
    font-size: 1.08em;
    line-height: 1.6;
}

.card-features li::before {
    content: "\2713";
    color: #415BA9;
    font-weight: 700;
    margin-right: 16px;
    font-size: 1.4em;
    line-height: 1;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .modern-card-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modern-card {
        padding: 35px;
    }
}

/* ===== CTA SECTIONS ===== */

.cta-section-modern {
    background: linear-gradient(135deg, #1a2847 0%, #0d1628 100%);
    border-radius: 25px;
    padding: 80px 50px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.cta-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(65, 91, 169, 0.15) 0%, rgba(35, 53, 101, 0.3) 100%);
    pointer-events: none;
}

.cta-section-modern h2 {
    font-size: 3em;
    font-weight: 700;
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.cta-section-modern p {
    font-size: 1.3em;
    color: #FFFFFF !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 45px;
    position: relative;
    z-index: 1;
}

.cta-section-modern .cta-button-elevated {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .cta-section-modern {
        padding: 60px 32px;
        margin-bottom: 30px;
    }

    .cta-section-modern h2 {
        font-size: 2.2em;
    }
}

/* ===== RELATED LINKS SECTION ===== */

.related-section {
    margin-top: 0;
    margin-bottom: 40px;
    padding: 50px;
    background: #f8f9fa;
    border-radius: 20px;
}

.related-section h3 {
    font-size: 2em;
    font-weight: 700;
    color: #233565;
    margin-bottom: 40px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.related-column h4 {
    font-size: 1.3em;
    font-weight: 600;
    color: #415BA9;
    margin-bottom: 20px;
}

.related-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-column ul li {
    margin-bottom: 12px;
}

.related-column ul li a {
    color: #4E4C4C;
    text-decoration: none;
    font-size: 1.05em;
    transition: all 0.2s ease;
    display: inline-block;
}

.related-column ul li a:hover {
    color: #DC143C;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .related-section {
        padding: 40px 24px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===== MODERN FOOTER STYLES ===== */

.modern-footer {
    background: linear-gradient(180deg, #233565 0%, #1a2845 100%);
    color: white;
    margin-top: 40px;
    padding: 60px 0 0 0;
}

.footer-main {
    padding-bottom: 40px;
}

.footer-section {
    height: 100%;
}

.footer-logo {
    color: white !important;
    font-weight: 800 !important;
    font-size: 1.75rem !important;
    letter-spacing: 1px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.6 !important;
    font-size: 0.9rem !important;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social-icon {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}

.footer-social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-3px);
    color: #FFA500 !important;
}

.footer-section-title {
    color: white !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: inline-block;
}

.footer-link:hover {
    color: #FFA500 !important;
    transform: translateX(4px);
}

.footer-contact-bar {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 24px 0;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact-icon {
    color: #FFA500 !important;
    font-size: 24px !important;
    margin-top: 2px;
}

.footer-contact-label {
    color: white !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
}

.footer-contact-text {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem !important;
}

.footer-contact-text strong {
    color: white;
    font-weight: 600;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.875rem !important;
}

.footer-link-inline {
    color: white !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer-link-inline:hover {
    color: #FFA500 !important;
    text-decoration: underline !important;
}

/* Responsive adjustments for footer */
@media (max-width: 960px) {
    .modern-footer {
        margin-top: 40px;
        padding: 40px 0 0 0;
    }
    
    .footer-main {
        padding-bottom: 30px;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
    
    .footer-contact-bar {
        padding: 20px 0;
    }
    
    .footer-bottom {
        padding: 16px 0;
    }
    
    .text-md-left,
    .text-md-right {
        text-align: center !important;
    }
}

@media (max-width: 600px) {
    .modern-footer {
        margin-top: 40px;
    }
    
    .footer-logo {
        font-size: 1.5rem !important;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ===== BLOG CONTENT STYLES ===== */

/* Blog Content Container - Markdown Articles */
.blog-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1a1a1a;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Blog Content - Full Width HTML Articles */
.blog-content-html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1a1a1a;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 3rem;
}

/* Floating Images */
.blog-content .floatRt,
.blog-content-html .floatRt,
.floatRt {
    float: right;
    margin-left: 20px !important;
    margin-bottom: 20px;
    max-width: 400px;
}

.blog-content .floatLt,
.blog-content-html .floatLt,
.floatLt {
    float: left;
    margin-right: 20px !important;
    margin-bottom: 20px;
    max-width: 400px;
}

/* Scalable Rounded Images */
.blog-content .scalable-rounded,
.blog-content-html .scalable-rounded,
.scalable-rounded {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    max-width: 100%;
}

.blog-content .scalable-rounded:hover,
.blog-content-html .scalable-rounded:hover,
.scalable-rounded:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Clearfix for floats */
.blog-content::after,
.blog-content-html::after {
    content: "";
    display: table;
    clear: both;
}

/* Headings - Modern, Bold, with Smart Spacing */
.blog-content h1,
.blog-content-html h1,
.blog-content h2,
.blog-content-html h2,
.blog-content h3,
.blog-content-html h3,
.blog-content h4,
.blog-content-html h4,
.blog-content h5,
.blog-content-html h5,
.blog-content h6,
.blog-content-html h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #0a0a0a;
    letter-spacing: -0.02em;
    clear: both;
}

.blog-content h1,
.blog-content-html h1 {
    font-size: 2.75rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #f0f0f0;
}

.blog-content h2,
.blog-content-html h2 {
    font-size: 2.25rem;
    margin-top: 3rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f5f5f5;
}

.blog-content h3,
.blog-content-html h3 {
    font-size: 1.875rem;
    margin-top: 2.5rem;
    color: #2d2d2d;
}

.blog-content h4,
.blog-content-html h4 {
    font-size: 1.5rem;
    margin-top: 2rem;
    color: #3a3a3a;
}

.blog-content h5,
.blog-content-html h5 {
    font-size: 1.25rem;
    color: #4a4a4a;
}

.blog-content h6,
.blog-content-html h6 {
    font-size: 1.125rem;
    color: #5a5a5a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Paragraphs - Comfortable Reading */
.blog-content p,
.blog-content-html p {
    margin-bottom: 1.5rem;
    color: #2d2d2d;
    font-size: 1.125rem;
    line-height: 1.8;
    clear: none;
}

.blog-content p:last-child,
.blog-content-html p:last-child {
    margin-bottom: 0;
}

/* Lead Paragraph - Make First Paragraph Stand Out */
.blog-content > p:first-of-type,
.blog-content-html > p:first-of-type {
    font-size: 1.3rem;
    line-height: 1.7;
    color: #1a1a1a;
    font-weight: 400;
    margin-bottom: 2rem;
}

/* Links - Modern and Accessible */
.blog-content a,
.blog-content-html a {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 102, 204, 0.3);
    transition: all 0.2s ease;
    font-weight: 500;
}

.blog-content a:hover,
.blog-content-html a:hover {
    color: #0052a3;
    border-bottom-color: #0052a3;
    background-color: rgba(0, 102, 204, 0.05);
}

/* Images - Elegant and Responsive */
.blog-content img,
.blog-content-html img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-content img:hover,
.blog-content-html img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Lists - Well Structured and Readable */
.blog-content ul,
.blog-content-html ul,
.blog-content ol,
.blog-content-html ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: #2d2d2d;
}

.blog-content li,
.blog-content-html li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    padding-left: 0.5rem;
}

.blog-content ul li::marker,
.blog-content-html ul li::marker {
    color: #0066cc;
    font-size: 1.2em;
}

.blog-content ol li::marker,
.blog-content-html ol li::marker {
    color: #0066cc;
    font-weight: 600;
}

/* Nested Lists */
.blog-content li > ul,
.blog-content-html li > ul,
.blog-content li > ol,
.blog-content-html li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Blockquotes - Beautiful and Distinctive */
.blog-content blockquote,
.blog-content-html blockquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 1.5rem 2rem 1.5rem 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid #0066cc;
    border-radius: 8px;
    font-size: 1.2rem;
    font-style: italic;
    color: #2d2d2d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.blog-content blockquote::before,
.blog-content-html blockquote::before {
    content: '"';
    position: absolute;
    left: 0.75rem;
    top: 0.5rem;
    font-size: 3rem;
    color: #0066cc;
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.blog-content blockquote p,
.blog-content-html blockquote p {
    margin-bottom: 0.75rem;
}

.blog-content blockquote p:last-child,
.blog-content-html blockquote p:last-child {
    margin-bottom: 0;
}

/* Code - Syntax Highlighted and Professional */
.blog-content code,
.blog-content-html code {
    font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    background: linear-gradient(135deg, #f6f8fa 0%, #eef1f4 100%);
    color: #d73a49;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e1e4e8;
    font-weight: 500;
}

/* Code Blocks - Immersive Coding Experience */
.blog-content pre,
.blog-content-html pre {
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d30 100%);
    padding: 1.75rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #3e3e42;
    position: relative;
}

.blog-content pre::before,
.blog-content-html pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 35px;
    background: #323232;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #3e3e42;
}

.blog-content pre code,
.blog-content-html pre code {
    background: transparent;
    color: #e6e6e6;
    padding: 0;
    border: none;
    font-size: 0.95rem;
    line-height: 1.6;
    display: block;
    margin-top: 25px;
}

/* Scrollbar for Code Blocks */
.blog-content pre::-webkit-scrollbar,
.blog-content-html pre::-webkit-scrollbar {
    height: 8px;
}

.blog-content pre::-webkit-scrollbar-track,
.blog-content-html pre::-webkit-scrollbar-track {
    background: #2d2d30;
    border-radius: 4px;
}

.blog-content pre::-webkit-scrollbar-thumb,
.blog-content-html pre::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.blog-content pre::-webkit-scrollbar-thumb:hover,
.blog-content-html pre::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Tables - Modern Data Presentation */
.blog-content table,
.blog-content-html table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.blog-content table thead,
.blog-content-html table thead {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
}

.blog-content table th,
.blog-content-html table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
}

.blog-content table td,
.blog-content-html table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    color: #2d2d2d;
}

.blog-content table tbody tr,
.blog-content-html table tbody tr {
    background: white;
    transition: background-color 0.2s ease;
}

.blog-content table tbody tr:nth-child(even),
.blog-content-html table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.blog-content table tbody tr:hover,
.blog-content-html table tbody tr:hover {
    background: #e7f3ff;
}

.blog-content table tbody tr:last-child td,
.blog-content-html table tbody tr:last-child td {
    border-bottom: none;
}

/* Horizontal Rules - Elegant Dividers */
.blog-content hr,
.blog-content-html hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #0066cc 50%, transparent 100%);
    margin: 3rem 0;
    clear: both;
}

/* Strong and Emphasis */
.blog-content strong,
.blog-content-html strong {
    font-weight: 700;
    color: #0a0a0a;
}

.blog-content em,
.blog-content-html em {
    font-style: italic;
    color: #2d2d2d;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-content-html {
        padding: 2rem 2rem;
    }
}

@media (max-width: 768px) {
    .blog-content {
        font-size: 1rem;
        padding: 0 1.5rem;
    }

    .blog-content-html {
        font-size: 1rem;
        padding: 1.5rem 1.5rem;
    }

    .blog-content h1,
    .blog-content-html h1 {
        font-size: 2rem;
    }

    .blog-content h2,
    .blog-content-html h2 {
        font-size: 1.75rem;
    }

    .blog-content h3,
    .blog-content-html h3 {
        font-size: 1.5rem;
    }

    .blog-content h4,
    .blog-content-html h4 {
        font-size: 1.25rem;
    }

    .blog-content blockquote,
    .blog-content-html blockquote {
        padding: 1rem 1.5rem 1rem 2rem;
        font-size: 1.1rem;
    }

    .blog-content pre,
    .blog-content-html pre {
        padding: 1.25rem;
        font-size: 0.85rem;
    }

    .blog-content table,
    .blog-content-html table {
        font-size: 0.9rem;
    }

    .blog-content table th,
    .blog-content-html table th,
    .blog-content table td,
    .blog-content-html table td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .blog-content {
        padding: 0 1rem;
    }

    .blog-content-html {
        padding: 1rem 1rem;
    }
}


/* Crossfade CSS for Pattern 8 Hero Banner */
/* Crossfade frame */
.hero-crossfade{
  position: relative;
  width: 100%;
  height: 320px;
  margin-left: auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
}

/* Both images fill the frame */
.hero-crossfade-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
}

/* IMPORTANT: apply animations to the SAME class names used in your HTML */
.hero-crossfade-img-primary{
  animation: crossfadePrimary 10s ease-in-out infinite;
}
.hero-crossfade-img-secondary{
  animation: crossfadeSecondary 10s ease-in-out infinite;
}

/* Primary: visible first, then fades/slides out */
@keyframes crossfadePrimary{
  0%   { opacity: 1; transform: translateX(0) scale(1.03); }
  40%  { opacity: 1; transform: translateX(0) scale(1.03); }
  55%  { opacity: 0; transform: translateX(-18px) scale(1.03); }
  95%  { opacity: 0; transform: translateX(-18px) scale(1.03); }
  100% { opacity: 1; transform: translateX(0) scale(1.03); }
}

/* Secondary: hidden first, then fades/slides in on top */
@keyframes crossfadeSecondary{
  0%   { opacity: 0; transform: translateX(18px) scale(1.03); }
  45%  { opacity: 0; transform: translateX(18px) scale(1.03); }
  60%  { opacity: 1; transform: translateX(0) scale(1.03); }
  90%  { opacity: 1; transform: translateX(0) scale(1.03); }
  100% { opacity: 0; transform: translateX(-18px) scale(1.03); }
}


/* Reusable Client Rotator CSS */
.client-rotator {
  width: 100%;
  overflow: hidden;
}

.client-rotator__viewport {
  overflow: hidden;
  width: 100%;
  padding: 8px 0;
}

.client-rotator__track {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: client-scroll 28s linear infinite;
  will-change: transform;
}

/* Stable logo sizing */
.client-rotator__track img {
  width: 140px;
  max-width: 140px;
  max-height: 64px;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  .client-rotator__track img {
    width: 200px;
    max-width: 200px;
    max-height: 72px;
  }
}

@media (max-width: 767px) {
  .client-rotator {
    display: none;
  }
}


/* Cinematic Hero Background Medium */
.cinematic-hero {
  background-image: linear-gradient(
      rgba(20, 45, 110, 0.60),
      rgba(20, 45, 110, 0.60)
    );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Cinematic Hero Background Dark */
.cinematic-hero-dark {
  background-image: linear-gradient(
      rgba(20, 45, 110, 0.80),
      rgba(20, 45, 110, 0.80)
    );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* Seamless loop: we duplicated the set, so move exactly half the track */
@keyframes client-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Optional: pause on hover */
.client-rotator__viewport:hover .client-rotator__track {
  animation-play-state: paused;
}

/* Optional: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .client-rotator__track {
    animation: none;
    justify-content: center;
    flex-wrap: wrap;
  }
  .client-rotator__track img {
    width: auto;
    max-width: 180px;
  }
}

/* HERO CTA BUTTON WRAPPING FIX */
/* Keep hero buttons in one line on desktop */
.hero2-section .hero2-cta-group {
  flex-wrap: nowrap;
  gap: 12px;               /* reduce horizontal spacing */
}

.hero2-section .hero2-cta-group .cta-button-elevated,
.hero2-section .hero2-cta-group .video-button {
  padding: 12px 18px;      /* slightly smaller padding */
  font-size: 0.95rem;      /* slight font reduction */
  white-space: nowrap;     /* prevent label wrap */
}

/* Allow wrapping on smaller screens */
@media (max-width: 992px) {
  .hero2-section .hero2-cta-group {
    flex-wrap: wrap;
  }
}

/* ================================
   PANEL / FULL WIDTH PANEL STYLE
================================== */

/* Base full-width panel */
.panel-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
}

/* Inner container */
.panel-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 85px 40px;
}

/* Panel container: remove top/bottom padding from page container when wrapped */
.panel-container .page-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Panel Hero Definitions */
.panel-hero {
  text-align: center;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.15);
}

/* Hero spacing override */
.panel-hero .panel-inner {
  padding: 120px 40px 100px;
}

/* Panel color variants */
.panel-white { background: #FFFFFF; }
.panel-pale-blue { background: #D4DDF4; }
.panel-light-blue { background: #8396CC; }
.panel-medium-blue { background: #415BA9; }
.panel-dark-blue { background: #233565; }
.panel-darker-blue { background: #0f1d3a; }
.panel-pale-grey { background: #f5f7fb; }
.panel-light-grey { background: #9D9D9D; }
.panel-dark-grey { background: #4E4C4C; }
.panel-red { background: #A11E23; }

/* Default text color handling */
.panel-medium-blue,
.panel-dark-blue,
.panel-darker-blue,
.panel-dark-grey,
.panel-red {
  color: #FFFFFF;
}

/* Optional panel overlay */
.panel-overlay {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Column grids */
.panel-grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.panel-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 50px;
}
.panel-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 45px;
}
.panel-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

/* Media alignment helpers */
.panel-media-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
}
.panel-media-wrap iframe,
.panel-media-wrap video,
.panel-media-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Media Panel Enhancements */
.panel-media .panel-media-wrap img,
.panel-media .section-media-center img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
  border-radius: 10px;
}
.panel-media .panel-media-title {
  text-align: left;
}
.panel-media .panel-media-wrap,
.panel-media .section-media-center {
  max-width: 100%;
}
.panel-media .panel-inner {
  max-width: 1280px;
  width: 100%;
}

/* Inline Media CSS */
.inline-media-left {
  max-width: 240px;
  width: 100%;
  height: auto;
  float: left;
  margin: 8px 22px 14px 0;
}

.inline-media-right {
  max-width: 240px;
  width: 100%;
  height: auto;
  float: right;
  margin: 8px 0 14px 22px;
}

/* Typography standardization */
.panel-hero h1 {
  font-size: 3.4em;
  margin-bottom: 20px;
}
.panel-hero h2,
.panel-text h2,
.panel-text h3 {
  font-size: 2.2em;
  margin-bottom: 20px;
}
.panel-bullets h3,
.panel-media h3 {
  font-size: 2em;
  margin-bottom: 20px;
}
.panel-text p,
.panel-bullets p {
  font-size: 1.2em;
  line-height: 1.8;
}
.panel-bullets ul,
.panel-bullets ol {
  font-size: 1.1em;
  line-height: 1.8;
}
.panel-text ul,
.panel-text li {
  font-size: 1.1em;
  line-height: 1.8;
  color: #4E4C4C;
}

.panel-text ul {
  padding-left: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.panel-text li {
  margin-bottom: 8px;
}

.panel-media-title {
  text-align: center;
  margin-bottom: 20px;
}

/* CTA strip */
.panel-cta-strip .panel-inner {
  padding: 85px 40px;
  text-align: center;
}
.panel-cta-strip p {
  font-size: 1.3em;
  line-height: 1.8;
  margin: 0;
}

/* ================================ */


/* ================================
   EDITORIAL LAYOUT
   Reusable two-column layout:
   text panels left, sticky
   "On This Page" nav right.
   Active state: class-based via JS.
   Apply via .panel-editorial-content
   on any panel-full band.
================================== */

/* Content zone: overrides panel-inner into two-col grid */
.panel-editorial-content .panel-inner {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 0;
  align-items: start;
  padding: 0;
}

/* Left column */
.editorial-panels-col {
  padding: 52px 52px 64px 40px;
  border-right: 1px solid rgba(0,0,0,0.08);
  min-width: 0;
}

/* Section blocks */
.editorial-section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  scroll-margin-top: 90px;
}
.editorial-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Eyebrow label above each h2 */
.editorial-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #A11E23;
  margin-bottom: 8px;
  display: block;
}

/* Section typography */
.editorial-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #233565;
  line-height: 1.28;
  margin-bottom: 16px;
}
.editorial-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #233565;
  line-height: 1.35;
  margin-top: 28px;
  margin-bottom: 10px;
}
.editorial-section p {
  font-size: 1rem;
  line-height: 1.82;
  color: #4E4C4C;
  margin-bottom: 18px;
}
.editorial-section p:last-child {
  margin-bottom: 0;
}

/* Bullet lines (built as <p> per CMS list rules) */
.editorial-bullet {
  font-size: 1rem;
  line-height: 1.72;
  color: #4E4C4C;
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
}
.editorial-bullet-glyph {
  position: absolute;
  left: 0;
  color: #A11E23;
  font-weight: 700;
}

/* CTA buttons inside editorial sections —
   constrain width so they don't stretch full column */
.editorial-section .cta-button-elevated,
.editorial-section .video-button,
.editorial-section .cta-button,
.editorial-section a[class*="cta-button"],
.editorial-section a[class*="btn"] {
  display: inline-block;
  width: auto;
}

/* Inline callout / highlight block */
.editorial-highlight {
  background: #D4DDF4;
  border-left: 4px solid #415BA9;
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.editorial-highlight p {
  font-size: 1.05em !important;
  color: #233565 !important;
  line-height: 1.65;
  margin: 0 !important;
  font-style: italic;
}

/* Expandable detail block — p70mm content integration */
.editorial-details {
  margin-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.07);
  padding-top: 16px;
}

.editorial-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #415BA9;
  cursor: pointer;
  list-style: none;
  user-select: none;
  padding: 4px 0;
  transition: color 0.15s;
}

.editorial-details summary::-webkit-details-marker {
  display: none;
}

.editorial-details summary::before {
  content: '▶';
  font-size: 9px;
  color: #415BA9;
  transition: transform 0.2s ease;
  display: inline-block;
  margin-top: 1px;
}

.editorial-details[open] summary::before {
  transform: rotate(90deg);
}

.editorial-details summary:hover {
  color: #233565;
}

.editorial-details summary:hover::before {
  color: #233565;
}

.editorial-details-body {
  padding: 16px 0 4px 18px;
  border-left: 2px solid rgba(65,91,169,0.2);
  margin-top: 12px;
}

.editorial-details-body p {
  font-size: 0.95rem;
  line-height: 1.78;
  color: #4E4C4C;
  margin-bottom: 14px;
}

.editorial-details-body p:last-child {
  margin-bottom: 0;
}

.editorial-details-body .editorial-bullet {
  font-size: 0.95rem;
}

/* Optional 2-col feature mini-grid within a section */
.editorial-feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.editorial-feat-card {
  background: #f5f7fb;
  border: 1px solid #D4DDF4;
  border-radius: 10px;
  padding: 20px 18px;
}
.editorial-feat-card .feat-num {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #415BA9;
  margin-bottom: 6px;
  display: block;
}
.editorial-feat-card .feat-title {
  font-size: 0.95em;
  font-weight: 700;
  color: #233565;
  margin-bottom: 5px;
  line-height: 1.3;
}
.editorial-feat-card .feat-body {
  font-size: 0.88em;
  color: #4E4C4C;
  line-height: 1.58;
}

/* Right column: sticky On This Page */
.editorial-otp-col {
  padding: 52px 28px 52px 32px;
  position: sticky;
  top: 90px;
  align-self: start;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}
.editorial-otp-widget {
  background: #f5f7fb;
  border: 1px solid #D4DDF4;
  border-radius: 12px;
  overflow: hidden;
}
.editorial-otp-header {
  background: #1a2847;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.editorial-otp-header-dot {
  width: 6px;
  height: 6px;
  background: #FFD700;
  border-radius: 50%;
  flex-shrink: 0;
}
.editorial-otp-header span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}
.editorial-otp-links {
  padding: 10px 0 12px;
}

/* Nav link default state */
.editorial-otp-link {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 7px 18px;
  font-size: 12.5px;
  color: #555555;
  text-decoration: none;
  line-height: 1.4;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}
.editorial-otp-link-num {
  font-size: 10px;
  font-weight: 700;
  color: #D4DDF4;
  flex-shrink: 0;
  min-width: 14px;
  transition: color 0.15s;
}
.editorial-otp-link:hover {
  color: #233565;
  background: rgba(0,0,0,0.03);
}
.editorial-otp-link:hover .editorial-otp-link-num {
  color: #415BA9;
}

/* Active state — set by JavaScript on click */
.editorial-otp-link.active {
  border-left-color: #A11E23;
  color: #233565;
  font-weight: 600;
  background: rgba(161,30,35,0.05);
}
.editorial-otp-link.active .editorial-otp-link-num {
  color: #A11E23;
}

.editorial-otp-sep {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 8px 18px;
}
.editorial-otp-ctas {
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.editorial-otp-btn-primary {
  display: block;
  background: #A11E23;
  color: #ffffff !important;
  text-align: center;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.15s;
}
.editorial-otp-btn-primary:hover { background: #871519; }
.editorial-otp-btn-outline {
  display: block;
  border: 1.5px solid #233565;
  color: #233565 !important;
  text-align: center;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.editorial-otp-btn-outline:hover {
  background: #233565;
  color: #ffffff !important;
}

/* Responsive: collapse sidebar on narrow screens */
@media (max-width: 860px) {
  .panel-editorial-content .panel-inner {
    grid-template-columns: 1fr;
  }
  .editorial-otp-col { display: none; }
  .editorial-panels-col {
    padding: 40px 24px 52px;
    border-right: none;
  }
  .editorial-feat-grid { grid-template-columns: 1fr; }
}

/* ================================ */


@media (max-width: 768px) {
  .panel-full {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .panel-full.panel-grid-2,
  .panel-full.panel-grid-3,
  .panel-full.panel-grid-4,
  .panel-inner.panel-grid-2,
  .panel-inner.panel-grid-3,
  .panel-inner.panel-grid-4 {
    grid-template-columns: 1fr !important;
  }

  .panel-inner.panel-grid-2 > *,
  .panel-inner.panel-grid-3 > *,
  .panel-inner.panel-grid-4 > * {
    min-width: 0 !important;
  }

  .panel-inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .page-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

