/* ===============================
   BLOG SINGLE PAGE STYLES
================================ */

/* ===============================
   HERO SECTION
================================ */
.hero {
    background: linear-gradient(135deg, #0b4393 0%, #1565c0 100%);
    color: #ffffff;
    padding: 5rem 1rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

/* ===============================
   BACK LINK
================================ */
.back-link {
    color: #0b4393;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    margin-bottom: 2rem;
}

.back-link:hover {
    color: #f7941d;
}

/* ===============================
   BLOG METADATA
================================ */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta i {
    color: #f7941d;
    font-size: 0.9rem;
}

/* ===============================
   POST IMAGE
================================ */
.post-featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

/* ===============================
   POST EXCERPT
================================ */
.post-excerpt-box {
    background: #f0f8ff;
    padding: 1.75rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.post-excerpt-box p {
    color: #0b4393;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
}

/* ===============================
   POST CONTENT
================================ */
.post-content {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

.post-content h2 {
    color: #0b4393;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.8rem;
}

.post-content h3 {
    color: #0b4393;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.post-content h4 {
    color: #0b4393;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    margin-left: 1.75rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.post-content blockquote {
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.post-content a {
    color: #0b4393;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: #f7941d;
}

/* ===============================
   POST TAGS
================================ */
.post-tags-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.post-tags-section h5 {
    color: #0b4393;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tag {
    display: inline-block;
    background: #f9f9f9;
    color: #0b4393;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    margin-right: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #0b4393;
    color: #ffffff;
}

/* ===============================
   CTA SECTION
================================ */
.post-cta-section {
    background: linear-gradient(135deg, #0b4393 0%, #1565c0 100%);
    color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 3rem;
    text-align: center;
}

.post-cta-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.post-cta-section p {
    color: #ffffff;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* ===============================
   RELATED POSTS
================================ */
.related-posts-title {
    color: #0b4393;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.related-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.related-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.related-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-content h6 {
    color: #0b4393;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.3;
}

.related-content small {
    color: #999;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.related-content small i {
    color: #f7941d;
    font-size: 0.8rem;
}

/* ===============================
   SIDEBAR
================================ */
.sidebar-section {
    margin-bottom: 2.5rem;
}

.sidebar-card {
    background: #ffffff;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-card h6 {
    color: #0b4393;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.sidebar-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.sidebar-card input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    transition: border-color 0.3s ease;
}

.sidebar-card input:focus {
    outline: none;
    border-color: #0b4393;
}

.sidebar-card input::placeholder {
    color: #999;
}

/* ===============================
   BUTTONS
================================ */
.cta-btn {
    background: #f7941d;
    color: #ffffff;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.cta-btn:hover {
    background: #e67e0d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(247, 148, 29, 0.25);
}

.cta-btn.full-width {
    width: 100%;
    text-align: center;
    display: block;
}

/* ===============================
   RESPONSIVE - TABLET
================================ */
@media (max-width: 992px) {
    .hero {
        padding: 3.5rem 1rem;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .post-featured-image {
        max-height: 350px;
        margin: 1.5rem 0;
    }

    .post-content {
        font-size: 1rem;
    }

    .post-content h2 {
        font-size: 1.6rem;
        margin-top: 2rem;
    }

    .post-content h3 {
        font-size: 1.2rem;
    }

    .post-cta-section {
        padding: 2rem;
        margin-top: 2.5rem;
    }

    .post-cta-section h4 {
        font-size: 1.3rem;
    }

    .sidebar-card {
        padding: 1.5rem;
    }
}

/* ===============================
   RESPONSIVE - MOBILE
================================ */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .blog-meta {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .post-featured-image {
        max-height: 300px;
        margin: 1.25rem 0;
    }

    .post-excerpt-box {
        padding: 1.5rem;
    }

    .post-excerpt-box p {
        font-size: 1rem;
    }

    .post-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .post-content h2 {
        font-size: 1.5rem;
        margin-top: 1.75rem;
        margin-bottom: 1rem;
    }

    .post-content h3 {
        font-size: 1.1rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .post-content p {
        margin-bottom: 1rem;
    }

    .post-tags-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .tag {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
        margin-right: 0.4rem;
        margin-bottom: 0.4rem;
    }

    .post-cta-section {
        padding: 1.75rem;
        margin-top: 2rem;
        border-radius: 10px;
    }

    .post-cta-section h4 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .post-cta-section p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .related-posts-title {
        font-size: 1.1rem;
    }

    .related-image {
        height: 160px;
    }

    .related-content {
        padding: 1rem;
    }

    .sidebar-card {
        padding: 1.25rem;
    }

    .sidebar-card h6 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .back-link {
        font-size: 0.9rem;
    }

    .blog-meta {
        gap: 0.75rem;
        font-size: 0.85rem;
    }

    .post-featured-image {
        max-height: 250px;
        margin: 1rem 0;
    }

    .post-excerpt-box {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .post-content {
        font-size: 0.9rem;
    }

    .post-content h2 {
        font-size: 1.3rem;
        margin-top: 1.5rem;
    }

    .post-content h3 {
        font-size: 1rem;
    }

    .post-content ul,
    .post-content ol {
        margin-left: 1.5rem;
    }

    .post-tags-section {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .tag {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }

    .post-cta-section {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .post-cta-section h4 {
        font-size: 1.15rem;
    }

    .post-cta-section p {
        font-size: 0.9rem;
    }

    .related-posts-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .related-card {
        margin-bottom: 1rem;
    }

    .related-image {
        height: 140px;
    }

    .related-content {
        padding: 0.9rem;
    }

    .sidebar-card {
        padding: 1rem;
    }

    .sidebar-card input {
        padding: 0.65rem 0.875rem;
        font-size: 0.9rem;
    }

    .cta-btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
    }
}