/* 
   Page/Index.cshtml - Corporate Modern Design
   Kırmızı & Siyah Tema | Professional Business Style
   Clean, Minimal, Corporate
*/

:root {
    --primary-red: #dc0000;
    --primary-red-dark: #b30000;
    --primary-red-light: #ff1a1a;
    --secondary-black: #1a1a1a;
    --deep-black: #0d0d0d;
    --white: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #95a5a6;
    --bg-light: #f8f9fa;
    --bg-lighter: #ffffff;
    --border-light: #e9ecef;
    --border-medium: #dee2e6;
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/*===========================================
  PAGE HERO - CLEAN & PROFESSIONAL
===========================================*/
.page-hero {
    background: linear-gradient(135deg, var(--secondary-black) 0%, var(--deep-black) 100%);
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
}

    .page-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: radial-gradient(circle at 20% 50%, rgba(220, 0, 0, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(220, 0, 0, 0.06) 0%, transparent 50%);
    }

    .page-hero::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 40%;
        height: 100%;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zm20.97 0l9.315 9.314-1.414 1.414L34.828 0h2.83zM22.344 0L13.03 9.314l1.414 1.414L25.172 0h-2.83zM32 0l12.142 12.142-1.414 1.414L30 .828 17.272 13.556 15.858 12.14 28 0h4z' fill='%23dc0000' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
        opacity: 0.3;
    }

    .page-hero .container {
        position: relative;
        z-index: 1;
    }

.hero-content {
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(220, 0, 0, 0.1);
    border: 1px solid rgba(220, 0, 0, 0.25);
    border-radius: 6px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.6s ease-out;
    transition: var(--transition-smooth);
}

    .hero-badge:hover {
        background: rgba(220, 0, 0, 0.15);
        border-color: rgba(220, 0, 0, 0.4);
    }

    .hero-badge i {
        color: var(--primary-red);
    }

.page-hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.page-hero .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 400;
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.hero-breadcrumb {
    animation: fadeInUp 0.6s ease-out 0.6s backwards;
}

    .hero-breadcrumb .breadcrumb {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        padding: 0.75rem 1.5rem;
        border-radius: 6px;
        display: inline-flex;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        content: "›";
        color: rgba(255, 255, 255, 0.5);
    }

    .hero-breadcrumb .breadcrumb-item a {
        color: rgba(255, 255, 255, 0.75);
        text-decoration: none;
        transition: var(--transition-fast);
        font-weight: 500;
    }

        .hero-breadcrumb .breadcrumb-item a:hover {
            color: var(--white);
        }

    .hero-breadcrumb .breadcrumb-item.active {
        color: var(--white);
        font-weight: 600;
    }

/*===========================================
  PAGE CONTENT - MINIMAL & CLEAN
===========================================*/
.page-content-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

/*===========================================
  CONTENT CARD - CLEAN CORPORATE DESIGN
===========================================*/
.modern-content-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
}

    .modern-content-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--primary-red);
    }

/* Cover Image - Enhanced Professional Design */
.cover-image-wrapper {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--border-light);
}

    .cover-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
        filter: brightness(0.98) contrast(1.02);
    }

    .cover-image-wrapper:hover img {
        transform: scale(1.04);
        filter: brightness(1) contrast(1.05);
    }

/* Enhanced overlay with better gradient */
.cover-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient( to top, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.75) 30%, rgba(26, 26, 26, 0.4) 60%, transparent 100% );
    padding: 2.5rem 3rem 2rem;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(15px);
}

.cover-image-wrapper:hover .cover-image-overlay {
    opacity: 1;
    transform: translateY(0);
}

.cover-image-caption {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
    max-width: 80%;
}

/* Premium lightbox button - Corporate style */
.lightbox-trigger {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 1.375rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

    .lightbox-trigger::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--primary-red);
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 8px;
    }

    .lightbox-trigger i {
        position: relative;
        z-index: 1;
        transition: all 0.3s ease;
    }

    .lightbox-trigger:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 8px 24px rgba(220, 0, 0, 0.35), 0 0 0 2px rgba(220, 0, 0, 0.1);
    }

        .lightbox-trigger:hover::before {
            opacity: 1;
        }

        .lightbox-trigger:hover i {
            color: var(--white);
            transform: rotate(90deg) scale(1.1);
        }

    .lightbox-trigger:active {
        transform: translateY(-1px) scale(1.02);
    }

/* Image loading placeholder */
.cover-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    z-index: -1;
}

/* Optional: Image quality indicator on hover */
.cover-image-wrapper:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient( circle at center, transparent 0%, rgba(0, 0, 0, 0.02) 100% );
    pointer-events: none;
    z-index: 1;
}

/* Content Body - Professional Typography */
.modern-content-body {
    padding: 4rem 4.5rem;
}

/*===========================================
  TABLE OF CONTENTS - CLEAN CORPORATE
===========================================*/
.modern-toc {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-medium);
}

.modern-toc-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-medium);
}

.toc-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
}

.modern-toc-header h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.modern-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .modern-toc-list li {
        margin-bottom: 0.5rem;
    }

        .modern-toc-list li:last-child {
            margin-bottom: 0;
        }

    .modern-toc-list a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: var(--text-secondary);
        text-decoration: none;
        font-weight: 500;
        padding: 0.75rem 1rem;
        border-radius: 6px;
        transition: var(--transition-fast);
        font-size: 0.9375rem;
    }

        .modern-toc-list a::before {
            content: '';
            width: 6px;
            height: 6px;
            background: var(--primary-red);
            border-radius: 50%;
            flex-shrink: 0;
        }

        .modern-toc-list a:hover {
            background: rgba(220, 0, 0, 0.05);
            color: var(--primary-red);
            transform: translateX(4px);
        }

/*===========================================
  CONTENT TYPOGRAPHY - CORPORATE CLEAN
===========================================*/
.rich-content {
    color: var(--text-primary);
    font-size: 1.0625rem;
    line-height: 1.75;
}

    .rich-content h1,
    .rich-content h2,
    .rich-content h3,
    .rich-content h4,
    .rich-content h5,
    .rich-content h6 {
        color: var(--text-primary);
        font-weight: 700;
        margin-top: 3rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
        scroll-margin-top: 100px;
    }

    .rich-content h1 {
        font-size: 2.5rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid var(--border-medium);
        position: relative;
    }

        .rich-content h1::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 80px;
            height: 2px;
            background: var(--primary-red);
        }

    .rich-content h2 {
        font-size: 2rem;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

        .rich-content h2::before {
            content: '';
            width: 4px;
            height: 32px;
            background: var(--primary-red);
            border-radius: 2px;
        }

    .rich-content h3 {
        font-size: 1.625rem;
        color: var(--text-primary);
        padding-left: 1rem;
        border-left: 3px solid var(--primary-red);
    }

    .rich-content h4 {
        font-size: 1.375rem;
        color: var(--text-primary);
    }

    .rich-content h5 {
        font-size: 1.25rem;
        color: var(--text-primary);
        font-weight: 600;
    }

    .rich-content h6 {
        font-size: 1.125rem;
        color: var(--text-secondary);
        font-weight: 600;
    }

    /* Paragraphs - Clean & Professional */
    .rich-content p {
        margin-bottom: 1.5rem;
        color: var(--text-primary);
        line-height: 1.75;
    }

        .rich-content p:last-child {
            margin-bottom: 0;
        }

        /* NO drop cap - Corporate clean style */
        .rich-content p:first-of-type {
            font-size: 1.0625rem;
            line-height: 1.75;
            font-weight: 400;
            color: var(--text-primary);
        }

    /* Professional links */
    .rich-content a {
        color: var(--primary-red);
        text-decoration: none;
        font-weight: 600;
        border-bottom: 1px solid rgba(220, 0, 0, 0.3);
        transition: var(--transition-fast);
    }

        .rich-content a:hover {
            color: var(--primary-red-dark);
            border-bottom-color: var(--primary-red);
        }

    /* Clean lists */
    .rich-content ul,
    .rich-content ol {
        margin: 1.5rem 0;
        padding-left: 2rem;
    }

        .rich-content ul li,
        .rich-content ol li {
            margin-bottom: 0.75rem;
            line-height: 1.75;
        }

        .rich-content ul li {
            list-style: none;
            position: relative;
        }

            .rich-content ul li::before {
                content: '';
                position: absolute;
                left: -1.5rem;
                top: 0.65em;
                width: 6px;
                height: 6px;
                background: var(--primary-red);
                border-radius: 50%;
            }

    /* Professional blockquotes */
    .rich-content blockquote {
        margin: 2.5rem 0;
        padding: 1.5rem 2rem;
        background: var(--bg-light);
        border-left: 4px solid var(--primary-red);
        border-radius: 0 6px 6px 0;
        font-size: 1.125rem;
        color: var(--text-primary);
        line-height: 1.75;
    }

    /* Clean code blocks */
    .rich-content pre {
        background: var(--secondary-black);
        color: #f8f8f2;
        padding: 1.5rem;
        border-radius: 6px;
        overflow-x: auto;
        margin: 2rem 0;
        font-size: 0.9375rem;
    }

    .rich-content code {
        background: rgba(220, 0, 0, 0.08);
        color: var(--primary-red-dark);
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.9em;
        font-family: 'Courier New', monospace;
    }

    .rich-content pre code {
        background: none;
        color: inherit;
        padding: 0;
    }

    /* Professional tables */
    .rich-content table {
        width: 100%;
        margin: 2.5rem 0;
        border-collapse: separate;
        border-spacing: 0;
        background: var(--white);
        border: 1px solid var(--border-light);
        border-radius: 6px;
        overflow: hidden;
    }

        .rich-content table thead {
            background: var(--bg-light);
        }

        .rich-content table th {
            padding: 1rem 1.25rem;
            text-align: left;
            font-weight: 700;
            font-size: 0.9375rem;
            color: var(--text-primary);
            border-bottom: 2px solid var(--border-medium);
        }

        .rich-content table tbody tr {
            transition: var(--transition-fast);
        }

            .rich-content table tbody tr:hover {
                background: rgba(220, 0, 0, 0.02);
            }

        .rich-content table td {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid var(--border-light);
            color: var(--text-primary);
        }

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

    /* Clean images */
    .rich-content img {
        max-width: 100%;
        height: auto;
        border-radius: 6px;
        margin: 2rem 0;
        box-shadow: var(--shadow-sm);
    }

    /* Horizontal rules */
    .rich-content hr {
        border: none;
        height: 1px;
        background: var(--border-medium);
        margin: 3rem 0;
    }

/*===========================================
  CONTENT META - CLEAN TAGS
===========================================*/
.content-meta {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-medium);
}

.meta-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

    .meta-section-title i {
        color: var(--primary-red);
        font-size: 1.25rem;
    }

.modern-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.modern-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(220, 0, 0, 0.05);
    color: var(--primary-red);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid rgba(220, 0, 0, 0.15);
    transition: var(--transition-fast);
}

    .modern-tag:hover {
        background: var(--primary-red);
        color: var(--white);
        border-color: var(--primary-red);
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }

/*===========================================
  MODERN ACTIONS - CLEAN DESIGN
===========================================*/
.modern-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3.5rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.share-section {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.share-label {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
}

.modern-social-buttons {
    display: flex;
    gap: 0.625rem;
}

.modern-social-btn {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    border: 1px solid var(--border-medium);
    background: var(--white);
    color: var(--primary-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

    .modern-social-btn:hover {
        background: var(--primary-red);
        color: var(--white);
        border-color: var(--primary-red);
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }

.modern-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

    .modern-print-btn:hover {
        background: var(--primary-red);
        color: var(--white);
        border-color: var(--primary-red);
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }

    .modern-print-btn i {
        font-size: 1rem;
    }

/*===========================================
  MODERN SIDEBAR - CLEAN PROFESSIONAL
===========================================*/
.modern-sidebar {
    position: sticky;
    top: 100px;
}

.modern-info-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.modern-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-medium);
}

.info-header-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
}

.modern-info-header h4 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.modern-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modern-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition-fast);
}

    .modern-info-item:hover {
        background: rgba(220, 0, 0, 0.05);
        transform: translateX(4px);
    }

.modern-info-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-red);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .modern-info-icon i {
        font-size: 1rem;
        color: var(--white);
    }

.modern-info-content {
    flex: 1;
}

    .modern-info-content strong {
        display: block;
        color: var(--text-primary);
        font-weight: 700;
        margin-bottom: 0.25rem;
        font-size: 0.9375rem;
    }

    .modern-info-content a {
        color: var(--primary-red);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.875rem;
        transition: var(--transition-fast);
    }

        .modern-info-content a:hover {
            color: var(--primary-red-dark);
        }

/* Professional CTA Card */
.sidebar-cta-card {
    background: var(--primary-red);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.cta-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

    .cta-icon i {
        font-size: 1.75rem;
        color: var(--white);
    }

.sidebar-cta-card h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.375rem;
}

.sidebar-cta-card p {
    margin-bottom: 1.75rem;
    opacity: 0.95;
    font-size: 1rem;
    line-height: 1.6;
}

.sidebar-cta-card .btn {
    background: var(--white);
    color: var(--primary-red);
    border: none;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    transition: var(--transition-fast);
    font-size: 1rem;
}

    .sidebar-cta-card .btn:hover {
        background: var(--secondary-black);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/*===========================================
  PAGE NAVIGATION - CLEAN CORPORATE
===========================================*/
.modern-page-nav {
    margin-top: 5rem;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 2.5rem;
    border: 1px solid var(--border-light);
}

.page-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.modern-nav-item {
    padding: 1.75rem;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-medium);
    transition: var(--transition-fast);
    text-decoration: none;
    display: block;
}

    .modern-nav-item:hover {
        border-color: var(--primary-red);
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

.nav-direction-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.modern-nav-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.4;
}

.modern-nav-item:hover .modern-nav-title {
    color: var(--primary-red);
}

/*===========================================
  BACK TO TOP - CLEAN & MINIMAL
===========================================*/
.modern-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 6px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

    .modern-back-to-top.active {
        display: flex;
        animation: fadeIn 0.3s ease-out;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modern-back-to-top:hover {
    background: var(--primary-red-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.modern-back-to-top i {
    font-size: 1.25rem;
}

/*===========================================
  ANIMATIONS
===========================================*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*===========================================
  RESPONSIVE DESIGN
===========================================*/
@media (max-width: 1199.98px) {
    .modern-content-body {
        padding: 3.5rem 3rem;
    }
}

@media (max-width: 991.98px) {
    .page-hero {
        padding: 6rem 0 4rem;
    }

        .page-hero h1 {
            font-size: 2.75rem;
        }

    .page-content-section {
        padding: 4rem 0;
    }

    .modern-content-body {
        padding: 3rem 2.5rem;
    }

    .modern-sidebar {
        position: static;
        margin-top: 3rem;
    }
}

@media (max-width: 767.98px) {
    .page-hero {
        padding: 5rem 0 3rem;
    }

        .page-hero h1 {
            font-size: 2.25rem;
        }

        .page-hero .lead {
            font-size: 1.125rem;
        }

    .page-content-section {
        padding: 3rem 0;
    }

    .modern-content-body {
        padding: 2.5rem 1.75rem;
    }

    .cover-image-wrapper {
        height: 400px;
    }

    .cover-image-overlay {
        padding: 2rem 2.5rem 1.75rem;
    }

    .cover-image-caption {
        font-size: 1.125rem;
        max-width: 90%;
    }

    .lightbox-trigger {
        width: 54px;
        height: 54px;
        font-size: 1.25rem;
    }

    .rich-content {
        font-size: 1rem;
    }

        .rich-content h1 {
            font-size: 2rem;
        }

        .rich-content h2 {
            font-size: 1.625rem;
        }

    .modern-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .share-section {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .modern-social-buttons {
        justify-content: center;
    }

    .modern-print-btn {
        width: 100%;
        justify-content: center;
    }

    .page-nav-grid {
        grid-template-columns: 1fr;
    }

    .modern-back-to-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 575.98px) {
    .cover-image-wrapper {
        height: 320px;
    }

    .cover-image-overlay {
        padding: 1.75rem 2rem 1.5rem;
    }

    .cover-image-caption {
        font-size: 1rem;
        max-width: 100%;
    }

    .lightbox-trigger {
        width: 50px;
        height: 50px;
        font-size: 1.125rem;
        top: 1.25rem;
        right: 1.25rem;
    }

    .modern-content-body {
        padding: 2rem 1.25rem;
    }

    .modern-toc {
        padding: 1.5rem;
    }
}

/*===========================================
  PRINT STYLES
===========================================*/
@media print {
    .page-hero,
    .modern-actions,
    .modern-page-nav,
    .modern-back-to-top,
    .modern-sidebar {
        display: none !important;
    }

    .modern-content-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .rich-content {
        font-size: 12pt;
    }
}

/*===========================================
  ACCESSIBILITY
===========================================*/
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

a:focus,
button:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}
