/* =========================
   BLOGS CAROUSEL
   ========================= */

.blogs-carousel {
    background-color: var(--background-color);
    padding: 80px 0;
}

.blogs-carousel .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.blogs-carousel .section-badge {
    display: inline-block;
    background: rgba(29, 78, 216, 0.1);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.blogs-carousel h2 {
    color: var(--heading-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.blogs-carousel .lead {
    color: var(--default-color);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
}

/* =========================
   SWIPER CONTAINER
   ========================= */

.blogs-carousel-container {
    width: 100%;
    position: relative;
}

.blogs-swiper {
    padding-bottom: 24px;
}

/* =========================
   SLIDES (CRITICAL FIX)
   ========================= */

.swiper-slide {
    display: flex;
    align-items: stretch; /* ⬅ forces equal height */
}

/* =========================
   BLOG CARD
   ========================= */

.blog-card-link {
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%; /* ⬅ KEY FIX */
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* =========================
   CARD CONTENT
   ========================= */

.blog-card-title {
    color: var(--heading-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-card-excerpt {
    color: var(--default-color);
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 16px;
    flex-grow: 1; /* ⬅ balances content height */
}

/* =========================
   IMAGE
   ========================= */

.blog-card-image-container {
    height: clamp(140px, 18vw, 180px);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
    background: #f1f5f9;
}

.blog-card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card-link:hover img {
    transform: scale(1.06);
}

/* =========================
   FOOTER CTA (PINNED)
   ========================= */

.blog-card-footer {
    margin-top: auto; /* ⬅ pins footer to bottom */
    padding-top: 14px;
    border-top: 1px solid rgba(229, 231, 235, 0.8);
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    gap: 6px;
}

.read-more::after {
    content: "→";
    transition: transform 0.2s ease;
}

.blog-card-link:hover .read-more::after {
    transform: translateX(4px);
}

/* =========================
   PAGINATION (REMOVED)
   ========================= */

.swiper-pagination {
    display: none !important;
}

/* =========================
   NAVIGATION ARROWS
   ========================= */

.swiper-button-next,
.swiper-button-prev {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border: 1px solid rgba(229, 231, 235, 0.9);
    color: var(--accent-color);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    display: none;
}

.swiper-button-prev {
    left: 12px;
}

.swiper-button-next {
    right: 12px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .blogs-carousel {
        padding: 60px 0;
    }

    .blogs-carousel-container {
        padding: 0 20px;
    }

    .blogs-swiper {
        padding-bottom: 16px;
    }
}

/* Practice Management Guide Specific Styling */
.practice-guide-section {
    background-color: var(--background-color);
    padding: 60px 0;
}

.practice-guide-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.practice-guide-main {
    width: 100%;
}

/* Back Button with Image Above */
.practice-guide-back-section {
    margin-bottom: 15px;
}

.practice-guide-back-image {
    width: 100%;
    height: 370px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    margin-top: 40px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
}

.practice-guide-back-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.practice-guide-back {
    margin-bottom: 13px;
    margin-top: 15px;
}

.practice-guide-back-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: transparent;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.practice-guide-back-link:before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.practice-guide-back-link:hover {
    color: var(--heading-color);
    gap: 15px;
}

.practice-guide-back-link:hover:before {
    width: 100%;
}

.practice-guide-back-link i {
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.practice-guide-back-link:hover i {
    transform: translateX(-5px);
}

/* Header */
.practice-guide-header {
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.practice-guide-title {
    color: var(--heading-color);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
}

.practice-guide-intro {
    color: var(--default-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Content Sections */
.practice-guide-section-block {
    margin-bottom: 35px;
}

.practice-guide-section-title {
    color: var(--heading-color);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(29, 78, 216, 0.1);
}

.practice-guide-content {
    color: var(--default-color);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* Lists Styling */
.practice-guide-list-block {
    background-color: rgba(249, 250, 251, 0.5);
    border-radius: 8px;
    padding: 20px 25px;
    margin: 20px 0;
    border-left: 4px solid var(--accent-color);
}

.practice-guide-list-title {
    color: var(--heading-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.practice-guide-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.practice-guide-list-items li {
    color: var(--default-color);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.practice-guide-list-items li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
}

/* Highlight Box */
.practice-guide-highlight {
    background-color: rgba(29, 78, 216, 0.05);
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid rgba(29, 78, 216, 0.1);
}

.practice-guide-highlight .practice-guide-content {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--heading-color);
    margin-bottom: 0;
    line-height: 1.6;
}

/* CTA Section */
.practice-guide-cta {
    background-color: var(--surface-color);
    border-radius: 10px;
    padding: 35px;
    margin: 50px 0 35px;
    text-align: center;
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.practice-guide-cta-title {
    color: var(--heading-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.practice-guide-cta-text {
    color: var(--default-color);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 25px;
}

.practice-guide-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.practice-guide-button:hover {
    background-color: white;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.15);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .practice-guide-container {
        max-width: 900px;
    }
    
    .practice-guide-title {
        font-size: 2rem;
    }
    
    .practice-guide-section-title {
        font-size: 1.5rem;
    }
    
    .practice-guide-section-block {
        margin-bottom: 30px;
    }
    
    .practice-guide-back-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .practice-guide-section {
        padding: 50px 0;
    }
    
    .practice-guide-title {
        font-size: 1.8rem;
    }
    
    .practice-guide-section-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .practice-guide-list-block {
        padding: 18px 22px;
        margin: 18px 0;
    }
    
    .practice-guide-cta {
        padding: 25px 20px;
        margin: 35px 0 25px;
    }
    
    .practice-guide-cta-title {
        font-size: 1.5rem;
    }
    
    .practice-guide-content {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .practice-guide-back-image {
        height: 240px;
    }
    
    .practice-guide-highlight {
        padding: 20px 18px;
        margin: 25px 0;
    }
}

@media (max-width: 576px) {
    .practice-guide-container {
        padding: 0 15px;
    }
    
    .practice-guide-title {
        font-size: 1.6rem;
    }
    
    .practice-guide-intro {
        font-size: 1.05rem;
    }
    
    .practice-guide-section-title {
        font-size: 1.3rem;
    }
    
    .practice-guide-list-items li {
        padding-left: 22px;
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .practice-guide-button {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .practice-guide-back-link {
        font-size: 0.95rem;
        gap: 10px;
    }
    
    .practice-guide-back-image {
        height: 180px;
        margin-bottom: 15px;
        margin-top: 30px;
    }
    
    .practice-guide-highlight {
        padding: 20px;
    }
}