/* ================================
   Blog Detail Page Styles
================================ */

/* Blog Detail Hero - Just the title area */
.blog-detail-hero {
    background: linear-gradient(135deg, #e8f0fe 0%, #f0f7ff 100%);
    padding: 40px 0 60px;
    position: relative;
    overflow: hidden;
}

.blog-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(21, 93, 252, 0.03) 1px, transparent 1px),
        linear-gradient(180deg, rgba(21, 93, 252, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    opacity: 0.5;
}

.blog-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
    position: relative;
}

/* Main Content Area */
.blog-detail-content {
    flex: 1;
    max-width: calc(100% - 440px);
    min-width: 0;
}

/* Article Header - stays in hero */
.article-header {
    padding: 0;
    margin: 0;
}

.article-title {
    font-size: 40px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    margin: 0 0 16px 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 15px;
    color: #333;
}

.meta-date {
    font-weight: 600;
    color: #1a1a2e;
}

.meta-separator {
    color: #999;
}

.meta-author,
.meta-category {
    color: #155dfc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.meta-author:hover,
.meta-category:hover {
    color: #1249d6;
    text-decoration: underline;
}

/* Article Content Section */
.article-content-section {
    background: #ffffff;
    padding-top: 0;
    position: relative;
    z-index: 1;
}

/* Article Body - white background section */
.article-body {
    background: #ffffff;
    padding: 60px;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.article-intro {
    font-size: 19px;
    line-height: 1.8;
    color: #1a1a2e;
    font-weight: 500;
    margin-bottom: 40px;
    text-align: justify;
}

.article-body h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 50px 0 20px;
    line-height: 1.3;
}

.article-body h3 {
    font-size: 24px;
    font-weight: 700;
    color: #155dfc;
    margin: 40px 0 15px;
    line-height: 1.4;
}

.article-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.article-body strong {
    font-weight: 700;
    color: #1a1a2e;
}

.article-image {
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Author Bio */
.author-bio {
    background: #ffffff;
    margin: 0;
    padding: 40px 60px;
    border-top: 2px solid #e5e5e5;
    display: flex;
    gap: 24px;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8fafc;
    padding: 10px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.author-description {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Related Articles */
.related-articles {
    background: #ffffff;
    margin: 0;
    padding: 40px 60px 60px;
    border-top: 2px solid #e5e5e5;
}

.related-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-card:hover {
    background: #fff;
    border-color: #155dfc;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(21, 93, 252, 0.15);
}

.related-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
    margin: 0 0 8px 0;
    transition: color 0.3s ease;
}

.related-card:hover h3 {
    color: #155dfc;
}

.related-meta {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Sidebar */
.blog-sidebar {
    position: relative;
    width: 380px;
    flex-shrink: 0;
    margin-top: -140px;
}

.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    z-index: 10;
}

.sidebar-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e5e5;
}

.sidebar-image {
    width: 100%;
    height: auto;
    position: relative;
}

.sidebar-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sidebar Form */
.sidebar-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-input:focus {
    outline: none;
    border-color: #155dfc;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(21, 93, 252, 0.1);
}

.form-input::placeholder {
    color: #999;
}

/* Phone Input */
.phone-group {
    margin-bottom: 16px;
}

.phone-input-wrapper {
    display: flex;
    gap: 12px;
}

.country-code {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.country-code img {
    flex-shrink: 0;
}

.phone-input {
    flex: 1;
}

/* Checkbox Group */
.checkbox-group {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #155dfc;
}

.checkbox-text {
    flex: 1;
}

.checkbox-text a {
    color: #155dfc;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Submit Button */
.form-submit {
    width: 100%;
    padding: 16px;
    background: #155dfc;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-submit:hover {
    background: #1249d6;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(21, 93, 252, 0.4);
}

.form-submit:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-detail-container {
        gap: 40px;
    }

    .blog-detail-content {
        max-width: calc(100% - 380px);
    }

    .blog-sidebar {
        width: 340px;
        margin-top: -120px;
    }

    .article-body {
        padding: 50px 40px;
    }

    .author-bio,
    .related-articles {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 1024px) {
    .blog-detail-hero {
        padding: 30px 0 60px;
    }

    .blog-detail-container {
        flex-direction: column;
        gap: 30px;
    }

    .blog-detail-content {
        max-width: 100%;
    }

    .blog-sidebar {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        position: relative;
        z-index: 10;
        order: -1;
    }

    .sidebar-sticky {
        position: static;
    }

    .article-content-section {
        padding-top: 30px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-detail-hero {
        padding: 30px 0 40px;
    }

    .blog-detail-container {
        padding: 0 20px;
        gap: 30px;
    }

    .article-header {
        padding: 0;
    }

    .article-title {
        font-size: 28px;
    }

    .article-meta {
        font-size: 14px;
    }

    .article-body {
        padding: 0 30px 40px;
        font-size: 16px;
    }

    .article-intro {
        font-size: 17px;
    }

    .article-body h2 {
        font-size: 26px;
        margin: 40px 0 16px;
    }

    .article-body h3 {
        font-size: 20px;
        margin: 30px 0 12px;
    }

    .author-bio {
        margin: 40px 30px 0;
        padding: 24px;
        flex-direction: column;
        text-align: center;
    }

    .related-articles {
        margin: 40px 30px 30px;
    }

    .related-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

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

    .sidebar-card {
        max-width: 100%;
    }

    .sidebar-form {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .blog-detail-hero {
        padding: 20px 0 40px;
    }

    .article-header {
        padding: 0;
    }

    .article-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .article-meta {
        font-size: 13px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .meta-separator {
        display: none;
    }

    .article-body {
        padding: 0 20px 30px;
        font-size: 15px;
    }

    .article-intro {
        font-size: 16px;
    }

    .article-body h2 {
        font-size: 22px;
    }

    .article-body h3 {
        font-size: 18px;
    }

    .author-bio,
    .related-articles {
        margin-left: 20px;
        margin-right: 20px;
    }

    .author-bio {
        padding: 20px;
    }

    .author-avatar {
        width: 60px;
        height: 60px;
    }

    .author-name {
        font-size: 18px;
    }

    .author-description {
        font-size: 14px;
    }

    .related-title {
        font-size: 20px;
    }

    .phone-input-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .country-code {
        width: 100%;
        justify-content: center;
    }

    .sidebar-form {
        padding: 20px;
    }

    .form-input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .form-submit {
        padding: 14px;
        font-size: 15px;
    }
}
