/* =======================================
BLOG PAGE – GLOBAL WRAPPER
======================================= */
.blog-page {
background-color: var(--light--off-white, #f7f7f7);
}

/* =======================================
BLOG HERO SECTION
======================================= */
.blog-hero-section {
position: relative;
overflow: hidden;

/* Background image + improved dark overlay */
background-image:
linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
url("/assets/images/poster.png");

background-size: cover;
background-position: center;
background-repeat: no-repeat;

color: var(--light--off-white);
padding-top: 5rem;
padding-bottom: 5rem;

border-bottom-left-radius: 60px;
border-bottom-right-radius: 60px;
}
.blog-hero-margin {
margin-top: -64px;
}
.blog-hero-inner {
max-width: 720px;
}

/* Badge */
.blog-hero-badge {
margin-top: 20px;
display: inline-flex;
align-items: center;
padding: 0.25rem 0.9rem;
border-radius: 999px;
background-color: rgba(255, 255, 255, 0.12);
font-size: 0.85rem;
letter-spacing: 0.08em;
text-transform: uppercase;
margin-bottom: 1rem;

/* readability */
color: #ffffff;
text-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

/* Title */
.blog-hero-title {
font-size: 3rem;
font-weight: 700;
line-height: 1.1;
letter-spacing: -0.04em;
margin-bottom: 1rem;

color: var(--light--off-white);
text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

/* Subtitle */
.blog-hero-subtitle {
font-size: 1.125rem;
line-height: 1.5;
max-width: 36rem;
margin-bottom: 1.5rem;

color: #ffffff;
text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

/* Meta text */
.blog-hero-meta {
font-size: 0.95rem;
opacity: 0.95;

color: #ffffff;
text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

/* =======================================
MOBILE ADJUSTMENTS
======================================= */
@media screen and (max-width: 767px) {
.blog-hero-section {
padding-top: 3.5rem;
padding-bottom: 3.5rem;
border-bottom-left-radius: 40px;
border-bottom-right-radius: 40px;
background-position: center top;
}

.blog-hero-title {
font-size: 2.2rem;
}

.blog-hero-subtitle {
font-size: 1rem;
}

.blog-hero-inner {
text-align: left;
}
}

/* =======================================
FEATURED SECTION & SIDEBAR
======================================= */
.blog-featured-section {
padding-top: 3.5rem;
padding-bottom: 2rem;
}

.blog-card {
background-color: #ffffff;
border-radius: var(--radius-mid, 18px);
overflow: hidden;
box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
display: flex;
flex-direction: column;
height: 100%;
border: 1px solid rgba(148, 163, 184, 0.2);

}

.blog-card--featured {
border-radius: var(--radius-big, 24px);
}

.blog-card-image-wrapper {
position: relative;
overflow: hidden;
}

.blog-card-image {
display: block;
width: 100%;
height: auto;
object-fit: cover;
aspect-ratio: 16 / 9;
transition: transform 0.5s ease;
}

.blog-card-image-wrapper:hover .blog-card-image {
transform: scale(1.04);
}

.blog-card-category {
position: absolute;
left: 1rem;
bottom: 1rem;
padding: 0.25rem 0.8rem;
font-size: 0.85rem;
border-radius: 999px;
background-color: rgba(0, 0, 0, 0.75);
color: #ffffff;
backdrop-filter: blur(8px);
}

.blog-card-body {
padding: 1.5rem 1.6rem 1.4rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
}

.blog-card-title {
font-size: 1.25rem;
font-weight: 700;
line-height: 1.3;
margin: 0;
}

.blog-card-title a {
color: var(--color-text, #111827);
text-decoration: none;
}

.blog-card-title a:hover {
color: #5F7384; /* new hover color */
}

.blog-card-excerpt {
font-size: 0.98rem;
color: #4b5563;
margin: 0;
}

.blog-card-meta {
margin-top: 0.3rem;
font-size: 0.85rem;
color: #6b7280;
display: flex;
align-items: center;
gap: 0.3rem;
}

.blog-meta-dot {
opacity: 0.7;
}

/* Sidebar */
.blog-sidebar {
display: flex;
flex-direction: column;
gap: 1.75rem;
}

.blog-sidebar-block {
background-color: var(--light--off-white);
border-radius: var(--radius-mid, 18px);
padding: 1.4rem 1.5rem;
box-shadow: 0 16px 32px rgba(15, 23, 42, 0.04);
border: 1px solid rgba(148, 163, 184, 0.18);
}

.blog-sidebar-title {
font-size: 1rem;
font-weight: 700;
margin-bottom: 0.9rem;
}

/* Search */
.blog-search-input-wrap {
position: relative;
}

.blog-search-input {
width: 100%;
padding: 0.65rem 2.4rem 0.65rem 0.9rem;
border-radius: 999px;
border: 1px solid rgba(148, 163, 184, 0.7);
background-color: var(--light--off-white);
font-size: 0.95rem;
outline: none;
}

.blog-search-input:focus {
border-color: #5F7384;
}

.blog-search-button {
position: absolute;
right: 0.35rem;
top: 50%;
transform: translateY(-50%);
border-radius: 999px;
border: none;
width: 2rem;
height: 2rem;
display: inline-flex;
align-items: center;
justify-content: center;
background-color: rgba(0, 0, 0, 0.75);
color: #ffffff;
cursor: pointer;
font-size: 1rem;
}

/* Sidebar lists */
.blog-sidebar-list {
list-style: none;
padding: 0;
margin: 0;
}

.blog-sidebar-list li + li {
margin-top: 0.4rem;
}

.blog-sidebar-list a {
font-size: 0.95rem;
color: #4b5563;
text-decoration: none;
}

.blog-sidebar-list a:hover {
color: #5F7384;
}

/* Popular posts */
.blog-sidebar-posts {
list-style: none;
padding: 0;
margin: 0;
}

.blog-sidebar-posts li + li {
margin-top: 0.55rem;
}

.blog-sidebar-posts a {
font-size: 0.95rem;
line-height: 1.4;
color: #111827;
text-decoration: none;
}

.blog-sidebar-posts a:hover {
color: #5F7384;
}

/* Mobile sidebar spacing */
@media screen and (max-width: 991px) {
.blog-sidebar {
margin-top: 1rem;
}
}

/* =======================================
BLOG LIST / GRID
======================================= */
.blog-list-section {
padding-top: 1.5rem;
padding-bottom: 4rem;
}

.blog-list-header {
max-width: 640px;
margin-bottom: 2.2rem;
}

.blog-list-title {
margin-bottom: 0.5rem;
}

.blog-list-subtitle {
color: #4b5563;
font-size: 1rem;
margin: 0;
}

.blog-grid-row .blog-card {
height: 100%;
}

/* =======================================
PAGINATION
======================================= */
.blog-pagination {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
margin-top: 2.5rem;
}

.blog-pagination-btn {
border-radius: 999px;
border: 1px solid rgba(148, 163, 184, 0.8);
background-color: #ffffff;
padding: 0.5rem 0.9rem;
font-size: 0.95rem;
cursor: pointer;
min-width: 2.2rem;
}

.blog-pagination-btn.is-active {
border-color: transparent;
background-color: rgba(0, 0, 0, 0.75);
color: #ffffff;
}

/* =======================================
BLOG CTA SECTION
======================================= */
.blog-cta-section {
padding-top: 0;
padding-bottom: 4.5rem;
}

.blog-cta-block {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 1.5rem;
padding: 2.4rem 2.6rem;
border-radius: 20px;

/* Dark clean background you chose */
background-color: #211e1d;

/* Default text color */
color: #ffffff;
}

/* TITLE */
.blog-cta-text h2 {
font-size: 1.8rem;
margin-bottom: 0.5rem;
color: var(--color-surface);
}

/* PARAGRAPH */
.blog-cta-text p {
margin: 0;
font-size: 1rem;
max-width: 32rem;
color: #f2f2f2;
}

/* CTA BUTTONS BASE */
.blog-cta-actions a {
font-weight: 600;
border-radius: 999px;
padding: 0.7rem 1.4rem;
transition: all 0.25s ease;
}

/* ===========================
BUTTON 1 — VIEW COURSES
(Always white)
=========================== */
.blog-cta-actions .btn-primary,
.blog-cta-actions .gls-btn-main {
background-color: #ffffff !important;
color: #211e1d !important;
border: none !important;

}

/* Hover stays white */
.blog-cta-actions .btn-primary:hover,
.blog-cta-actions .gls-btn-main:hover {
background-color: #ffffff !important;
color: #211e1d !important;
opacity: 0.95;
}

/* ===========================
BUTTON 2 — BOOK CONSULTATION
(Transparent + white border)
=========================== */
.blog-cta-actions .btn-outline-light,
.blog-cta-actions .gls-btn-outline {
background-color: transparent !important;
border: 1px solid #ffffff !important;
}

/* Hover — white background + black text */
.blog-cta-actions .btn-outline-light:hover,
.blog-cta-actions .gls-btn-outline:hover {
background-color: #ffffff !important;
color: #211e1d !important;
border-color: #ffffff !important;
}
/* Pagination hover effect */
.blog-pagination-btn:hover {
background-color: rgba(0, 0, 0, 0.75);
color: #ffffff;
border-color: rgba(0, 0, 0, 0.75);
transition: all 0.25s ease;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =======================================
MOBILE CTA
======================================= */
@media screen and (max-width: 767px) {
.blog-cta-block {
padding: 1.9rem 1.6rem;
flex-direction: column;
align-items: flex-start;
border-radius: 20px;
}

.blog-cta-text h2 {
font-size: 1.5rem;
}
.blog-cta-actions .btn-primary,
.blog-cta-actions .gls-btn-main{
margin-bottom: 15px;
}
}

.blog-card-title,
.blog-card-excerpt,
.blog-hero-title,
.blog-hero-subtitle {
text-wrap: balance;
}
.h-section-subtitle {
color: var(--off-black) !important;
}
.blog-list-section {
padding: 0 !important;
}

@media screen and (max-width: 479px) {
  .hero-section.blog-hero-section {
    padding: 4rem 2rem;
  }
}
.blog-featured-section .col-lg-8 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Featured card — same border on all sides, all devices */
.blog-card.blog-card--featured {
  background-color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 24px;
  overflow: hidden; /* keeps clean rounded corners */
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

/* Image wrapper should not visually break the card border */
.blog-card.blog-card--featured .blog-card-image-wrapper {
  border-radius: 0;
  overflow: hidden;
}

/* Keep category badge nicely inside */
.blog-card.blog-card--featured .blog-card-category {
  left: 1rem;
  bottom: 1rem;
}

/* Optional: slightly tighter body padding consistency */
.blog-card.blog-card--featured .blog-card-body {
  padding: 1.5rem 1.6rem 1.4rem;
}