/* =====================================================
   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: 0 24px;
}

@media (max-width: 768px) {
    .page-container {
        padding: 0 16px;
    }
}

/* ===== HERO SECTIONS ===== */

/* Hero Wrapper - adds top margin to separate from header */
.hero-wrapper {
    margin: 30px 0 0 0;
}

@media (max-width: 768px) {
    .hero-wrapper {
        margin: 20px 0 0 0;
    }
}

/* 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: 0 auto 80px 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-bottom: 80px;
}

.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: 80px 0;
    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;
    }

    .cta-section-modern h2 {
        font-size: 2.2em;
    }
}

/* ===== RELATED LINKS SECTION ===== */

.related-section {
    margin: 80px 0;
    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: 80px;
    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: 60px;
        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;
}

/* 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;
    }
}
