/* ===== Blog Detail Page – Refined Academy Style ===== */

/* Container and background */
body {
    background: #fefcf8;
}

.container.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Main card */
.card {
    border: none;
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 40px -14px rgba(0, 0, 0, 0.12) !important;
}

/* Blog image */
.card-img-top {
    height: 400px;
    object-fit: cover;
    width: 100%;
    border-bottom: 1px solid #f0eae2;
}

/* Card body */
.card-body {
    padding: 2rem 2rem 2rem;
}

/* Blog title */
.card-body h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1f3b2c;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

/* Meta information */
.text-muted {
    color: #7c6b58 !important;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid #f0eae2;
    padding-bottom: 0.8rem;
}

/* Full description */
.card-body p:not(.text-muted) {
    font-size: 1rem;
    line-height: 1.7;
    color: #2d3a2a;
    margin-bottom: 1.5rem;
}

/* Advantages section */
.card-body h5 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ff7a1a;
    margin-top: 1rem;
    margin-bottom: 0.8rem;
}

.card-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-body li {
    font-size: 0.98rem;
    color: #4a5a4a;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Back button – matches your orange gradient theme */
.btn-secondary {
    background: linear-gradient(135deg, #ff9a44, #ff7a1a);
    border: none;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 40px;
    transition: all 0.25s ease;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}
.btn-secondary:hover {
    background: linear-gradient(135deg, #ff882a, #ff6a00);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(255, 106, 0, 0.3);
    color: white;
}
.btn-secondary:active {
    transform: translateY(1px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .card-img-top {
        height: 320px;
    }
    .card-body h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
    .card-img-top {
        height: 260px;
    }
    .card-body h2 {
        font-size: 1.5rem;
    }
    .card-body p:not(.text-muted) {
        font-size: 0.95rem;
    }
    .btn-secondary {
        padding: 8px 22px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .card-img-top {
        height: 200px;
    }
    .card-body {
        padding: 1.2rem;
    }
    .card-body h2 {
        font-size: 1.3rem;
    }
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}
/* Make the blog detail card wider */
.container.py-5 .row .col-md-8 {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
}
@media (min-width: 768px) {
    .container.py-5 .row .col-md-8 {
        width: 90%;
        margin-left: 5%;
    }
}
@media (min-width: 992px) {
    .container.py-5 .row .col-md-8 {
        width: 80%;
        margin-left: 10%;
    }
}
@media (min-width: 1200px) {
    .container.py-5 .row .col-md-8 {
        width: 75%;
        margin-left: 12.5%;
    }
}