/* Blog Styles */

.blog-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: white;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Override white text for blog cards */
.blog-articles {
    color: initial;
}

.blog-articles * {
    color: initial;
}

/* Specific blog card styling */
.blog-articles .article-card h2 a {
    color: var(--primary-blue) !important;
}

.blog-articles .article-card p {
    color: #666 !important;
}

.blog-articles .article-date {
    color: var(--primary-yellow) !important;
    background: var(--primary-blue) !important;
}

.blog-articles .article-category {
    color: var(--primary-blue) !important;
    background: var(--primary-yellow) !important;
}

.blog-articles .read-time {
    color: #666 !important;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(251, 178, 47, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.blog-header .container {
    position: relative;
    z-index: 2;
}

.blog-header h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-meta {
    text-align: center;
    opacity: 0.9;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-breadcrumbs {
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.blog-breadcrumbs a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
}

.blog-breadcrumbs a:hover {
    opacity: 1;
    text-decoration: underline;
}

.blog-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.blog-content {
    background: white;
    padding: 3rem 5rem;
    line-height: 1.8;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.blog-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-yellow), var(--primary-blue));
    border-radius: 20px 20px 0 0;
}

.blog-content::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(251, 178, 47, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.blog-content > * {
    position: relative;
    z-index: 2;
}

.blog-content h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    font-weight: 700;
    position: relative;
    padding: 1.5rem 2rem 1.5rem 2.5rem;
    background: linear-gradient(135deg, rgba(0, 75, 173, 0.02), rgba(251, 178, 47, 0.02));
    border-radius: 15px;
    border-left: 6px solid var(--primary-yellow);
}

.blog-content h2::before {
    content: '📍';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    opacity: 0.7;
}

.blog-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-yellow), transparent);
    border-radius: 0 0 15px 15px;
}

.blog-content h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    font-weight: 600;
}

.blog-content h4 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(0, 75, 173, 0.05), rgba(251, 178, 47, 0.05));
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-yellow);
}

.blog-content p {
    margin-bottom: 1.8rem;
    color: #444;
    font-size: 1.125rem;
    line-height: 1.8;
    position: relative;
    padding-left: 1rem;
}

.blog-content p:first-of-type {
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 2.5rem;
}

.blog-content ul, .blog-content ol {
    margin: 2rem 0;
    padding-left: 0;
}

.blog-content li {
    margin-bottom: 1rem;
    color: #444;
    font-size: 1.125rem;
    position: relative;
    padding-left: 2rem;
    line-height: 1.7;
}

.blog-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-yellow);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(251, 178, 47, 0.3);
}

.blog-content ol {
    counter-reset: custom-counter;
}

.blog-content ol li {
    counter-increment: custom-counter;
}

.blog-content ol li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content strong {
    color: var(--primary-blue);
    font-weight: 700;
}

.table-of-contents {
    background: linear-gradient(135deg, rgba(0, 75, 173, 0.02), rgba(251, 178, 47, 0.02));
    border: 1px solid rgba(0, 75, 173, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.table-of-contents::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-yellow));
}

.table-of-contents h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-of-contents h3::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--primary-yellow);
    border-radius: 4px;
    display: inline-block;
}

.table-of-contents ol {
    margin: 0;
    padding-left: 1.5rem;
}

.table-of-contents a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 500;
}

.table-of-contents a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.blog-container .blog-sidebar {
    background: linear-gradient(135deg, #ffffff, #fafbfc) !important;
    padding: 2.5rem !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 50px rgba(0, 75, 173, 0.12) !important;
    height: fit-content !important;
    position: sticky !important;
    top: 2rem !important;
    border: 1px solid rgba(0, 75, 173, 0.05) !important;
    overflow: hidden !important;
}

.blog-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-yellow), var(--primary-blue));
    animation: slideGradient 3s ease-in-out infinite;
}

@keyframes slideGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.blog-sidebar::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -30px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(251, 178, 47, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.blog-sidebar > * {
    position: relative;
    z-index: 2;
}

.blog-sidebar h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 75, 173, 0.05), rgba(251, 178, 47, 0.05));
    border-radius: 12px;
    border-left: 4px solid var(--primary-yellow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-sidebar h3::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--primary-yellow);
    border-radius: 4px;
    display: inline-block;
}

.blog-sidebar h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-yellow), transparent);
    border-radius: 0 0 12px 12px;
}

.blog-sidebar .sidebar-nav {
    list-style: none !important;
    padding: 1.5rem !important;
    margin: 0 !important;
    background: linear-gradient(135deg, rgba(0, 75, 173, 0.02), rgba(251, 178, 47, 0.02)) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 75, 173, 0.08) !important;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
    position: relative;
}

.sidebar-nav li::before {
    content: '▶';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-yellow);
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-nav li:hover::before {
    opacity: 1;
}

.blog-sidebar .sidebar-nav a {
    color: var(--dark-blue) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    display: block !important;
    padding: 0.8rem 1.5rem 0.8rem 2rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    border-left: 3px solid transparent !important;
    position: relative !important;
    font-size: 0.95rem !important;
}

.blog-sidebar .sidebar-nav a:hover,
.blog-sidebar .sidebar-nav a.active {
    color: var(--primary-blue) !important;
    background: linear-gradient(135deg, rgba(0, 75, 173, 0.08), rgba(251, 178, 47, 0.08)) !important;
    border-left-color: var(--primary-yellow) !important;
    transform: translateX(3px) !important;
    box-shadow: 0 4px 12px rgba(0, 75, 173, 0.1) !important;
}

.related-articles {
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 75, 173, 0.02), rgba(251, 178, 47, 0.02));
    border-radius: 12px;
    border: 1px solid rgba(0, 75, 173, 0.08);
    position: relative;
}

.related-articles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-yellow));
    border-radius: 12px 12px 0 0;
}

.related-articles h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-articles h4::before {
    content: '';
    width: 16px;
    height: 16px;
    background: var(--primary-blue);
    border-radius: 3px;
    display: inline-block;
}

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

.related-articles li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.related-articles li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 12px;
    height: 12px;
    background: var(--primary-yellow);
    border-radius: 50%;
}

.related-articles a {
    color: var(--dark-blue);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 75, 173, 0.05);
}

.related-articles a:hover {
    background: linear-gradient(135deg, rgba(0, 75, 173, 0.05), rgba(251, 178, 47, 0.05));
    color: var(--primary-blue);
    border-left-color: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 75, 173, 0.1);
}

/* Special Free Resources Styling */
.blog-sidebar .free-resources {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    box-shadow: 0 8px 25px rgba(0, 75, 173, 0.2);
    position: relative;
    overflow: hidden;
}

.blog-sidebar .free-resources::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(251, 178, 47, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-sidebar .free-resources h3 {
    color: white;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.blog-sidebar .free-resources h3::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: inline-block;
}

.blog-sidebar .free-resources h3::after {
    display: none;
}

.free-resource-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.free-resource-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.free-resource-item h4 {
    color: var(--primary-yellow);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.free-resource-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.free-resource-btn {
    display: inline-block;
    background: var(--primary-yellow);
    color: var(--primary-blue);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.free-resource-btn:hover {
    background: #e6a429;
    transform: scale(1.05);
}

.cta-section {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    margin: 3rem 0;
}

.cta-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white !important;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white !important;
}

.cta-section .btn-primary {
    background: var(--primary-yellow);
    color: var(--primary-blue);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-section .btn-primary:hover {
    background: #e6a429;
    transform: translateY(-2px);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--primary-yellow);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-yellow);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Contact Info Section */
.contact-info-section {
    background: linear-gradient(135deg, rgba(0, 75, 173, 0.03), rgba(251, 178, 47, 0.03));
    border: 1px solid rgba(0, 75, 173, 0.1);
    border-radius: 15px;
    padding: 2.5rem;
    margin: 3rem 0;
    text-align: center;
}

.contact-info-section h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-info-section p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 75, 173, 0.1);
    border-left: 4px solid var(--primary-yellow);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 75, 173, 0.15);
}

.contact-item strong {
    color: var(--primary-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-blue);
}

.faq-item {
    margin-bottom: 2rem;
    position: relative;
}

.faq-item h4 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq-item p {
    color: #444;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Special Content Styling */
.highlight-box {
    margin: 3rem 0;
    position: relative;
}

.highlight-box h4 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: none;
    padding: 0;
    border: none;
    position: relative;
}

.highlight-box p {
    margin-bottom: 0;
    color: #444;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Quote Styling */
.blog-content blockquote {
    margin: 3rem 0;
    padding: 0 2rem;
    font-style: italic;
    font-size: 1.2rem;
    color: #333;
}

.blog-content blockquote p {
    margin-bottom: 0;
    padding-left: 0;
}

/* Stats/Number Highlighting */
.stat-highlight {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Article Introduction Styling */
.article-intro {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-yellow);
    margin: 2rem 0 3rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Enhanced Breadcrumbs */
.breadcrumbs {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumbs a:hover {
    color: white;
    text-decoration: underline;
}

/* Article Meta Enhancement */
.article-meta {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 75, 173, 0.1);
    z-index: 1000;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-yellow));
    width: 0%;
    transition: width 0.3s ease;
}

/* Visual Separators */
.section-separator {
    margin: 4rem 0;
    text-align: center;
    position: relative;
}

.section-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 75, 173, 0.2), transparent);
}

.section-separator::after {
    content: '✦';
    background: white;
    color: var(--primary-yellow);
    padding: 0 1rem;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Enhanced List Styling */
.blog-content ul {
    padding: 0 2rem;
    margin: 2.5rem 0;
}

.blog-content ol {
    padding: 0 2rem;
    margin: 2.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header {
        padding: 4rem 0 3rem;
    }

    .blog-header h1 {
        font-size: 2.2rem;
    }

    .blog-content {
        padding: 2rem;
    }

    .cta-section {
        padding: 2rem;
        margin: 2rem 0;
    }

    .article-meta {
        gap: 1rem;
        justify-content: center;
    }

    .article-intro {
        font-size: 1.1rem;
        padding: 1.5rem;
    }

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

    .blog-content h3 {
        font-size: 1.3rem;
        padding: 0.8rem 1.2rem;
    }

    .blog-content p:first-of-type {
        font-size: 1.1rem;
        padding: 1.2rem;
    }

    .contact-options {
        flex-direction: column;
        gap: 1rem;
    }
}

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

@media (max-width: 480px) {
    .blog-header {
        padding: 3rem 0 1.5rem;
    }

    .blog-header h1 {
        font-size: 1.8rem;
    }

    .blog-content,
    .blog-sidebar {
        padding: 1rem;
    }

    .blog-content h2 {
        font-size: 1.5rem;
    }

    .blog-content h3 {
        font-size: 1.3rem;
    }

    .cta-section h3 {
        font-size: 1.5rem;
    }
}