/* ==========================================================================
   Homepage blog section (index.html, .home-blog)
   Card design is based on the cards in blog.html, in the site's brand
   colours: orange #f68833, blue #3a4096.
   ========================================================================== */

.home-blog { position: relative; background: linear-gradient(180deg, #ffffff 0%, #f3f8fc 100%); overflow: hidden; }
.home-blog::before, .home-blog::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.home-blog::before { width: 420px; height: 420px; top: -180px; right: -140px; background: radial-gradient(circle, rgba(246, 136, 51, 0.10) 0%, rgba(246, 136, 51, 0) 70%); }
.home-blog::after { width: 520px; height: 520px; bottom: -260px; left: -200px; background: radial-gradient(circle, rgba(58, 64, 150, 0.10) 0%, rgba(58, 64, 150, 0) 70%); }
.home-blog .container-fluid { position: relative; z-index: 1; }
.home-blog-eyebrow { display: inline-block; margin-bottom: 12px; padding: 6px 14px; border-radius: 999px; background: rgba(246, 136, 51, 0.10); color: #f68833; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.home-blog-intro h4 { margin-bottom: 8px; }
.home-blog-intro p { max-width: 560px; margin: 0 auto; color: #6b7280; font-size: 15px; }

.home-blog-slider { padding: 16px 6px 56px; overflow: hidden; }
.home-blog-slider .swiper-slide { height: auto; }
.home-blog-slider .swiper-pagination-bullet { width: 8px; height: 8px; background: #94a3b8; opacity: 0.5; transition: width 0.3s ease, opacity 0.3s ease; }
.home-blog-slider .swiper-pagination-bullet-active { width: 24px; border-radius: 4px; background: #f68833; opacity: 1; }

.blog-card { position: relative; background: #ffffff; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; height: 100%; }
.blog-card::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: linear-gradient(90deg, #f68833, #f9a45f); transition: width 0.4s ease; }
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16); }
.blog-card:hover::after { width: 100%; }
.blog-card-image { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.blog-card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 42, 0) 50%, rgba(15, 23, 42, 0.35) 100%); opacity: 0; transition: opacity 0.4s ease; }
.blog-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.08); }
.blog-card:hover .blog-card-image::after { opacity: 1; }
.blog-date-badge { position: absolute; top: 16px; left: 16px; z-index: 1; display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 6px 10px; border-radius: 10px; background: #ffffff; box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15); line-height: 1.1; }
.blog-date-day { font-family: "Poppins", sans-serif; font-size: 20px; font-weight: 700; }
.blog-date-month { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #f68833; }
.blog-card-body { padding: 20px 20px 12px; flex-grow: 1; }
.blog-card-title { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 17px; color: #111827; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; line-height: 1.4; transition: color 0.25s ease; }
.blog-card-title:hover { color: #f68833; }
.blog-card-excerpt { font-size: 14px; color: #6b7280; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-footer { padding: 12px 20px 18px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(148, 163, 184, 0.25); }
.blog-date { font-size: 12px; color: #9ca3af; }
.blog-read-more { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: #f68833; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.blog-read-more .arrow { transition: transform 0.25s ease; }
.blog-card:hover .blog-read-more .arrow { transform: translateX(4px); }
@media (max-width: 767.98px) {
    .blog-card { border-radius: 10px; }
    .blog-card-body, .blog-card-footer { padding-left: 16px; padding-right: 16px; }
    .blog-card-title { font-size: 16px; }
    .blog-card-excerpt { font-size: 13px; }
    .home-blog::before, .home-blog::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .blog-card, .blog-card::after, .blog-card-image img, .blog-card-image::after, .blog-read-more .arrow { transition: none; }
    .blog-card:hover, .blog-card:hover .blog-card-image img { transform: none; }
}

