/* ==========================================================================
   Blog Article System - Reusable Components
   ========================================================================== */

/* Base Variables */
:root {
    --blog-primary: #667eea;
    --blog-secondary: #764ba2;
    --blog-text: #1a1a1a;
    --blog-text-secondary: #2d2d2d;
    --blog-text-muted: rgba(26, 26, 26, 0.6);
    --blog-background: #f9f9f9;
    --blog-border-radius: 12px;
    --blog-border-radius-lg: 16px;
    --blog-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    --blog-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --blog-gradient: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.05) 100%);
}

/* Base Styles */
body {
    background: var(--blog-background) !important;
}

.blog-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 60px;
    color: var(--blog-text);
}

/* Navigation */
.blog-nav {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 10px;
}

.blog-nav a {
    color: var(--blog-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-nav a:hover {
    color: var(--blog-secondary);
}

.blog-nav .separator {
    color: rgba(26, 26, 26, 0.4);
    margin: 0 5px;
}

.blog-nav span {
    color: var(--blog-text-muted);
}

/* Article Header */
.article-header {
    margin-bottom: 40px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--blog-text);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: rgba(26, 26, 26, 0.7);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Content Styles */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--blog-text-secondary);
}

/* Hero Image */
.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--blog-border-radius-lg);
    margin-bottom: 40px;
}

.hero-image.shadow {
    box-shadow: var(--blog-shadow-lg);
}

/* Video Component */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 30px 0;
    border-radius: var(--blog-border-radius);
}

.video-wrapper.shadow {
    box-shadow: var(--blog-shadow);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--blog-border-radius);
}

/* Typography */
.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem 0;
    color: var(--blog-primary);
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: var(--blog-secondary);
}

/* ==========================================================================
   Quote Block Component
   ========================================================================== */
.quote-block {
    background: var(--blog-gradient);
    border-left: 4px solid var(--blog-primary);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 var(--blog-border-radius) var(--blog-border-radius) 0;
    font-style: italic;
    font-size: 1.15rem;
    position: relative;
    color: var(--blog-text-secondary);
}

.quote-block::before {
    content: '"';
    font-size: 4rem;
    color: rgba(102, 126, 234, 0.2);
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: Georgia, serif;
}

.quote-block.no-quote::before {
    display: none;
}

.quote-block.simple {
    background: rgba(102, 126, 234, 0.03);
    border-left: 3px solid var(--blog-primary);
    padding: 20px 25px;
    font-style: normal;
}

.quote-attribution {
    text-align: right;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--blog-text-muted);
    font-style: normal;
}

/* ==========================================================================
   Image System - Unified & Flexible
   ========================================================================== */
.image-container {
    display: inline-block;
    margin: 15px;
}

/* Positioning Classes */
.image-container.left {
    float: left;
    margin-left: 0;
}

.image-container.right {
    float: right;
    margin-right: 0;
}

.image-container.center {
    float: none;
    margin: 30px auto;
    text-align: center;
    display: block;
}

.image-container.full-width {
    display: block;
    width: 100%;
    margin: 30px 0;
    float: none;
    clear: both;
}

/* Image Styles */
.image-container img {
    border-radius: var(--blog-border-radius);
    display: block;
    max-width: 100%;
    height: auto;
}

/* Shadow Options */
.image-container img.shadow {
    box-shadow: var(--blog-shadow);
}

.image-container img.shadow-lg {
    box-shadow: var(--blog-shadow-lg);
}

.image-container img.no-shadow {
    box-shadow: none;
}

/* Size Classes */
.image-container.small img {
    max-width: 200px;
    width: 200px;
}

.image-container.medium img {
    max-width: 300px;
    width: 300px;
}

.image-container.large img {
    max-width: 400px;
    width: 400px;
}

.image-container.custom-scale img {
    /* Override with inline styles or custom CSS classes */
}

/* Special Image Types */
.image-container img.alpha {
    opacity: 0.9;
    box-shadow: none;
}

.image-container.full-width img {
    width: 100%;
    margin: 0;
}

/* Image Captions */
.image-caption {
    font-size: 0.85rem;
    color: rgba(26, 26, 26, 0.5);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}
/* ==========================================================================
   Media Coverage Component - Reusable
   ========================================================================== */
.media-coverage {
    margin: 25px 0 40px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: var(--blog-border-radius-lg);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.media-coverage-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blog-text);
    margin: 0 0 6px 0;
    text-align: center;
}

.media-coverage-subtitle {
    color: var(--blog-text-muted);
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 1rem;
}

.media-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

/* Grid Layout Options */
.media-links-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.media-links-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.media-links-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Media Link Cards */
.media-link {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: white;
    border-radius: var(--blog-border-radius);
    text-decoration: none;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    height: fit-content;
}

.media-link.shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.media-link:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.3);
}

.media-link.shadow:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

/* Logo Containers */
.media-logo-main {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 4px 0;
}

.outlet-logo-main {
    height: 40px;
    max-width: 160px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.media-link:hover .outlet-logo-main {
    transform: scale(1.05);
}

/* Logo Size Variants */
.outlet-logo-main.small {
    height: 32px;
    max-width: 120px;
}

.outlet-logo-main.large {
    height: 48px;
    max-width: 200px;
}

/* Fallback Logo Styling */
.outlet-logo {
    height: 32px;
    max-width: 120px;
    border-radius: 4px;
    margin-right: 8px;
    object-fit: contain;
    background: rgba(102, 126, 234, 0.02);
    padding: 4px 8px;
}

.outlet-logo.fallback-logo {
    width: 24px;
    height: 24px;
    padding: 2px;
}

/* Text Content */
.media-outlet {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--blog-primary);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.media-link:hover .media-outlet {
    color: var(--blog-secondary);
}

.media-description {
    font-size: 0.9rem;
    color: var(--blog-text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   References & Citations
   ========================================================================== */
.article-references {
    margin: 40px 0;
    padding: 30px;
    background: rgba(102, 126, 234, 0.03);
    border-radius: var(--blog-border-radius);
    border-left: 4px solid var(--blog-primary);
}

.article-references h3 {
    color: var(--blog-primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.article-references ol {
    margin: 0;
    padding-left: 20px;
}

.article-references li {
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--blog-text-secondary);
    scroll-margin-top: 120px;
}

.article-references em {
    font-style: italic;
}

/* Citation Links */
sup {
    font-size: 0.75em;
    vertical-align: super;
    color: var(--blog-primary);
    font-weight: 600;
}

sup a {
    color: var(--blog-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

sup a:hover {
    color: var(--blog-secondary);
    text-decoration: underline;
}
/* ==========================================================================
   Tags & Footer Components
   ========================================================================== */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px 0 20px 0;
    padding-top: 30px;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.tag {
    background: rgba(102, 126, 234, 0.1);
    color: var(--blog-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* Article Footer */
.article-footer {
    margin-top: 50px;
    padding: 40px 30px;
    background: var(--blog-gradient);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.3) 50%, transparent 100%);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-message {
    color: rgba(26, 26, 26, 0.7);
    font-size: 1rem;
    margin-bottom: 10px;
    font-style: italic;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-secondary) 100%);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.back-to-blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.back-to-blog:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.back-to-blog:hover::before {
    left: 100%;
}

.back-to-blog .arrow {
    transition: transform 0.3s ease;
}

.back-to-blog:hover .arrow {
    transform: translateX(-3px);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .blog-article {
        padding: 100px 15px 40px;
    }

    .article-title {
        font-size: 2rem;
    }

    .hero-image {
        height: 250px;
        border-radius: var(--blog-border-radius);
    }

    .article-content {
        font-size: 1rem;
    }

    /* Mobile Image Adjustments */
    .image-container.left,
    .image-container.right {
        float: none;
        display: block;
        margin: 20px auto;
        text-align: center;
    }

    .image-container.small img,
    .image-container.medium img {
        max-width: 100%;
        width: auto;
    }

    /* Quote Blocks */
    .quote-block {
        padding: 20px;
        margin: 20px 0;
        font-size: 1rem;
    }

    /* Article Meta */
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    /* Media Coverage */
    .media-coverage {
        padding: 20px;
        margin: 30px 0;
    }
    
    .media-links-grid,
    .media-links-grid.cols-2,
    .media-links-grid.cols-3,
    .media-links-grid.cols-4 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .media-link {
        padding: 16px;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.no-margin {
    margin: 0;
}

.no-padding {
    padding: 0;
}

.shadow-override {
    box-shadow: var(--blog-shadow) !important;
}

.no-shadow-override {
    box-shadow: none !important;
}

/* ==========================================================================
   Blog Index/Listing Page Styles
   ========================================================================== */
.blog-body {
    background: var(--blog-background) !important;
}

.blog-page {
    padding-top: 120px;
    min-height: 100vh;
}

.blog-header {
    text-align: center;
    padding: 4rem 5%;
    margin-bottom: 2rem;
}

.blog-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--blog-text);
    text-shadow: none;
}

.blog-header p {
    font-size: 1.2rem;
    color: var(--blog-text-muted);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 0 5% 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Blog Card Components */
.feature-card {
    background: white;
    border-radius: var(--blog-border-radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(102, 126, 234, 0.08);
}

.feature-card.shadow {
    box-shadow: var(--blog-shadow);
}

.feature-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.feature-card .card-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(102, 126, 234, 0.2);
}

.feature-card.shadow:hover {
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.feature-card:hover img {
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin: 0.8rem 0 1rem 0;
    color: var(--blog-text);
    font-weight: 600;
    line-height: 1.3;
}

.feature-card p {
    color: var(--blog-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.85rem;
    color: rgba(136, 136, 136, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-more {
    margin-top: auto;
    color: var(--blog-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: var(--blog-secondary);
}

/* Responsive Blog Grid */
@media (max-width: 768px) {
    .blog-header {
        padding: 2rem 5%;
    }
    
    .blog-header h1 {
        font-size: 2.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 5% 4rem;
    }
    
    .feature-card .card-content {
        padding: 1.5rem;
    }

    /* Alpha image scaling limits for mobile */
    .image-container img.alpha.fixed-scale {
        max-width: 200px;
        width: 200px;
    }
}

/* ==========================================================================
   Legacy Support (Deprecated - Use new classes above)
   ========================================================================== */
.wrap-image {
    border-radius: var(--blog-border-radius);
    margin: 15px;
    box-shadow: var(--blog-shadow);
    max-width: 300px;
}

.wrap-image.left {
    float: left;
    margin-left: 0;
}

.wrap-image.right {
    float: right;
    margin-right: 0;
}

.wrap-image.center {
    display: block;
    margin: 30px auto;
    float: none;
}

.full-width-image {
    width: 100%;
    height: auto;
    border-radius: var(--blog-border-radius);
    box-shadow: var(--blog-shadow);
    margin: 0;
}

.image-wrapper {
    display: inline-block;
    margin: 15px;
}

.image-wrapper.right {
    float: right;
    margin-right: 0;
}

.image-wrapper.left {
    float: left;
    margin-left: 0;
}

.image-wrapper.center {
    float: none;
    margin: 30px auto;
    text-align: center;
}

.image-wrapper.full-width {
    display: block;
    width: 100%;
    margin: 30px 0;
    float: none;
    clear: both;
}

.image-wrapper .wrap-image {
    margin: 0;
    display: block;
}

.image-wrapper .image-caption {
    margin-top: 8px;
}

.alpha-image {
    box-shadow: none;
    opacity: 0.9;
    width: 250px;
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.image-wrapper.right .alpha-image {
    margin: 0 auto 15px auto;
}

@media (max-width: 768px) {
    .alpha-image {
        width: 200px;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .image-wrapper.right {
        float: none;
        display: block;
        margin: 20px auto;
        text-align: center;
    }
}
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.back-to-blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.back-to-blog:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.back-to-blog:hover::before {
    left: 100%;
}

.back-to-blog .arrow {
    transition: transform 0.3s ease;
}

.back-to-blog:hover .arrow {
    transform: translateX(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-article {
        padding: 100px 15px 40px;
    }

    .article-title {
        font-size: 2rem;
    }

    .hero-image {
        height: 250px;
        border-radius: 12px;
    }

    .article-content {
        font-size: 1rem;
    }

    .wrap-image {
        float: none !important;
        display: block;
        margin: 20px auto;
        max-width: 100%;
    }

    .quote-block {
        padding: 20px;
        margin: 20px 0;
        font-size: 1rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* Clear floats */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}