/**
 * Common Sections Components
 * Reusable section designs used across multiple page templates
 * 
 * Sections Included:
 * - What We Do Section
 * - How We Do It Section
 * - Why It Matters Section
 * - Articles Section (with pagination)
 * 
 * Mobile Responsive: 100% responsive across all breakpoints
 * Standards: See MOBILE-RESPONSIVE-STANDARDS.md
 * 
 * Breakpoints:
 * - Mobile: ≤576px (1 column)
 * - Tablet: 577-991px (2 columns)
 * - Desktop: ≥992px (full layout)
 */

/* ============================================================================
   WHAT WE DO SECTION
   ============================================================================ */

.what-we-do-section {
    padding: 100px 0;
    background: #F9FAFB;
}

.what-we-do-section .container {
    max-width: 1320px;
}

@media (min-width: 992px) {
    .what-we-do-section .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.section-header-centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-heading-large {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 56px;
    line-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.96px;
    color: #39302A;
    margin: 0;
}

.section-subtitle-text {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 160%;
    text-align: center;
    color: #4B4B4B;
    opacity: 0.7;
    margin: 0;
}

.what-we-do-grid {
    row-gap: 24px;
    column-gap: 16px;
    margin-left: -8px;
    margin-right: -8px;
}

.what-we-do-grid > [class*='col-'] {
    padding-left: 8px;
    padding-right: 8px;
}

@media (min-width: 1200px) {
    .what-we-do-section .row {
        flex-wrap: nowrap;
    }
}

.what-we-do-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: left;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 200px;
}

.what-we-do-card.card-green {
    background: linear-gradient(135deg, #7DC242 0%, #6AB839 100%);
    color: #fff;
    border: none;
}

.what-we-do-card.card-green .card-heading {
    color: #fff;
}

.what-we-do-card.card-green .card-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.what-we-do-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #F0F9FF;
    color: #7DC242;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 22px;
    flex-shrink: 0;
}

.card-text-wrapper {
    flex: 1;
}

.card-heading {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0;
}

/* ============================================================================
   HOW WE DO IT SECTION
   ============================================================================ */

.how-we-do-it-section {
    padding: 100px 0;
    background: #FFFFFF;
}

.how-we-do-it-section .container {
    max-width: 1320px;
}

.section-heading-large-left {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 56px;
    line-height: 64px;
    display: flex;
    align-items: center;
    letter-spacing: -0.48px;
    color: #071A34;
    margin-bottom: 72px;
}

.how-content-row {
    gap: 78px;
    align-items: flex-start;
}

.video-wrapper-box {
    position: relative;
    width: 100%;
    max-width: 628px;
    height: 408px;
    border-radius: 9px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.video-placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.video-play-button i {
    font-size: 32px;
    color: #000000;
    margin-left: 4px;
}

.video-play-disabled {
    opacity: 0.7;
    cursor: default;
}

.how-steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 20px;
}

.how-step-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 32px;
}

.how-step-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: #F5F7FE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0px 0px 20.05px rgba(255, 255, 255, 0.05), inset 0px 1.34px 1.34px rgba(255, 255, 255, 0.15);
}

.how-step-icon .step-number {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    color: #071A34;
}

.how-step-text {
    flex: 1;
    padding-top: 2px;
}

.how-step-title {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 22px;
    line-height: 30px;
    letter-spacing: -0.08px;
    color: #071A34;
    margin: 0 0 12px 0;
}

.how-step-description {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.08px;
    color: #1A2D47;
    margin: 0;
}

.how-step-divider {
    width: 100%;
    height: 1px;
    background: rgba(32, 32, 28, 0.1);
    margin: 34px 0;
}

/* ============================================================================
   WHY IT MATTERS SECTION
   ============================================================================ */

.why-it-matters-section {
    padding: 80px 0;
    background: #FFFFFF;
}

.why-it-matters-section .container {
    max-width: 1240px;
}

.why-it-matters-section .section-header-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 16px;
    max-width: 632px;
    margin: 0 auto 56px;
}

.matters-card-row {
    gap: 32px;
    justify-content: center;
}

.matters-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px;
    gap: 28px;
    background: #FFFFFF;
    box-shadow: 12px 16px 50px rgba(154, 154, 154, 0.12);
    border-radius: 12px;
    height: 244px;
    width: 100%;
    max-width: 392px;
}

.matters-icon-circle {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 16px;
    gap: 10px;
    width: 80px;
    height: 80px;
    background: rgba(227, 227, 227, 0.45);
    border-radius: 99px;
    flex-shrink: 0;
}

.matters-icon-circle i {
    font-size: 48px;
    color: #000000;
}

.matters-card-title {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 22px;
    line-height: 145%;
    text-align: center;
    color: #39302A;
    margin: 0;
    max-width: 353px;
}

/* ============================================================================
   ARTICLES SECTION
   ============================================================================ */

.articles-blog-section {
    padding: 30px 0 64px;
    background: #FFFFFF;
}

.articles-blog-section .container {
    max-width: 1280px;
}

.articles-section-heading {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    color: #1A1A1A;
    margin-bottom: 32px;
}

.articles-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.blog-post-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 32px;
    background: #FFFFFF;
    transition: all 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-4px);
}

.blog-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 8px;
}

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

.blog-post-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 24px;
    width: 100%;
}

.blog-card-heading-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 12px;
    width: 100%;
}

.blog-meta-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-author-text {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #6941C6;
}

.meta-dot,
.meta-separator {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #667085;
    line-height: 1;
}

.blog-date-text {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #667085;
}

.blog-heading-icon-wrap {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 16px;
    width: 100%;
}

.blog-card-heading {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    color: #1A1A1A;
    margin: 0;
}

.blog-card-heading a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-heading a:hover {
    color: #6941C6;
}

.blog-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 4px 0 0;
    width: 24px;
    height: 28px;
}

.blog-icon-wrapper i {
    font-size: 24px;
    color: #1A1A1A;
    transition: all 0.3s ease;
}

.blog-post-card:hover .blog-icon-wrapper i {
    transform: translateX(4px);
    color: #6941C6;
}

.blog-supporting-text {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #667085;
    margin: 0;
}

.blog-categories-badges {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 2px 10px;
    background: #F9F5FF;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    color: #6941C6;
    mix-blend-mode: multiply;
}

.badge-item:nth-child(2) {
    background: #F8F9FC;
    color: #363F72;
}

.badge-item:nth-child(3) {
    background: #F0F9FF;
    color: #026AA2;
}

/* Pagination */
.blog-pagination-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 0;
    gap: 20px;
    border-top: 1px solid #EAECF0;
}

.pagination-button-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #667085;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pagination-button-nav:hover {
    color: #1A1A1A;
}

.pagination-button-nav i {
    font-size: 20px;
}

.pagination-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-numbers-wrap {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 2px;
}

.pagination-number-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    color: #667085;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-number-btn:hover {
    background: #F9FAFC;
    color: #1A1A1A;
}

.pagination-active {
    background: #F9F5FF;
    color: #7F56D9;
}

.pagination-ellipsis {
    padding: 12px 8px;
    color: #667085;
    font-family: 'Inter', sans-serif;
}

.no-articles-message {
    text-align: center;
    padding: 80px 20px;
    background: #F9FAFC;
    border-radius: 12px;
    margin: 40px 0;
}

.no-articles-message p {
    font-family: 'Inter', sans-serif;
    color: #667085;
    margin-bottom: 16px;
}

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

@media (max-width: 1199px) {
    .what-we-do-card {
        min-height: 180px;
    }
    
    .articles-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .section-heading-large,
    .section-heading-large-left {
        font-size: 42px;
    }
    
    .how-steps-wrapper {
        padding-left: 0;
        margin-top: 40px;
    }
    
    .video-wrapper-box {
        margin-bottom: 40px;
    }
    
    .what-we-do-grid {
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .what-we-do-section,
    .how-we-do-it-section,
    .why-it-matters-section,
    .articles-blog-section {
        padding: 60px 0;
    }
    
    .section-heading-large,
    .section-heading-large-left {
        font-size: 32px;
        line-height: 40px;
    }
    
    .matters-card-title {
        font-size: 18px;
        line-height: 28px;
    }
    
    .what-we-do-card {
        min-height: auto;
        padding: 24px 20px;
    }
    
    .card-heading {
        font-size: 16px;
    }
    
    .articles-blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-pagination-wrapper {
        flex-direction: column;
        gap: 16px;
    }
    
    .pagination-numbers-wrap {
        order: -1;
    }
}

@media (max-width: 576px) {
    .section-heading-large,
    .section-heading-large-left {
        font-size: 28px;
        line-height: 36px;
    }
    
    .video-play-button {
        width: 60px;
        height: 60px;
    }
    
    .video-play-button i {
        font-size: 24px;
    }
}

