/* ===============================
   BLOG 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;
}

.hero p,
.hero .lead {
    font-size: 1.2rem;
    color: #ffffff;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* ===============================
   SECTION SPACING
================================ */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #0b4393;
    margin-bottom: 3rem;
    text-align: center;
}

.bg-light {
    background-color: #f9f9f9;
}

/* ===============================
   POST CARDS
================================ */
.post-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

/* ===============================
   POST IMAGE
================================ */
.post-image {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

/* ===============================
   POST CONTENT
================================ */
.post-content {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-category {
    display: inline-block;
    background: #f0f0f0;
    color: #0b4393;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    width: fit-content;
}

.post-title {
    color: #0b4393;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-card:hover .post-title {
    color: #f7941d;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-meta i {
    color: #f7941d;
    font-size: 0.8rem;
}

.post-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* ===============================
   POST TAGS
================================ */
.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    min-height: 20px;
}

.tag {
    display: inline-block;
    background: #f9f9f9;
    color: #0b4393;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #eee;
}

/* ===============================
   READ MORE LINK
================================ */
.read-more {
    color: #f7941d;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    color: #e67e0d;
    gap: 0.75rem;
}

/* ===============================
   SIDEBAR
================================ */
.sidebar-card {
    background: #ffffff;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.sidebar-card h5 {
    color: #0b4393;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

/* Newsletter card */
.newsletter-card {
    background: linear-gradient(135deg, #0b4393 0%, #1565c0 100%);
    color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.newsletter-card h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.newsletter-card p {
    color: #ffffff;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.newsletter-card input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.newsletter-card input::placeholder {
    color: #999;
}

/* Categories */
.sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-card li {
    margin-bottom: 0.75rem;
}

.sidebar-card li:last-child {
    margin-bottom: 0;
}

.sidebar-card a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sidebar-card a:hover {
    color: #f7941d;
}

/* CTA Card */
.cta-sidebar-card {
    background: #f0f8ff;
    padding: 1.75rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.cta-sidebar-card h6 {
    color: #0b4393;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.cta-sidebar-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

/* ===============================
   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;
}

/* ===============================
   EMPTY STATE
================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #f9f9f9;
    border-radius: 12px;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
    display: block;
}

.empty-state h4 {
    color: #999;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.empty-state p {
    color: #999;
    font-size: 0.95rem;
}

/* ===============================
   RESPONSIVE - TABLET
================================ */
@media (max-width: 992px) {
    .hero {
        padding: 3.5rem 1rem;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p,
    .hero .lead {
        font-size: 1.05rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .post-card {
        margin-bottom: 1rem;
    }

    .post-image {
        height: 220px;
    }

    .post-content {
        padding: 1.5rem;
    }

    .post-title {
        font-size: 1.2rem;
    }

    .newsletter-card {
        padding: 1.5rem;
    }

    .sidebar-card {
        padding: 1.5rem;
    }
}

/* ===============================
   RESPONSIVE - MOBILE
================================ */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p,
    .hero .lead {
        font-size: 1rem;
    }

    .section {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .post-card {
        margin-bottom: 1rem;
    }

    .post-image {
        height: 200px;
    }

    .post-content {
        padding: 1.25rem;
    }

    .post-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .post-meta {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .post-excerpt {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.55rem;
    }

    .newsletter-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .sidebar-card {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .sidebar-card h5 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .cta-sidebar-card {
        padding: 1.25rem;
    }

    .cta-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p,
    .hero .lead {
        font-size: 0.95rem;
    }

    .section {
        padding: 1.5rem 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
    }

    .post-image {
        height: 180px;
    }

    .post-content {
        padding: 1rem;
    }

    .post-title {
        font-size: 1rem;
    }

    .post-excerpt {
        font-size: 0.85rem;
    }

    .tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .newsletter-card {
        padding: 1.25rem;
    }

    .newsletter-card input {
        padding: 0.65rem 0.875rem;
        font-size: 0.9rem;
    }

    .sidebar-card {
        padding: 1rem;
    }

    .cta-btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
    }
}