/* ============================================
   Blogs Section Styles
   ============================================ */

.blogs-section {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 90px 50px;
    background: #ffffff;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Headline Section */
.blogs-headline {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
}

.blogs-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #183FBA;
    border-radius: 20px;
    background: #ffffff;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #183FBA;
}

.blogs-badge-icon {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

.blogs-headline-line1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 56px;
    line-height: 1.2;
    text-align: center;
    color: #A7BFE9;
    margin: 0 0 8px 0;
}

.blogs-headline-line2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 64px;
    line-height: 1.2;
    text-align: center;
    background: linear-gradient(180deg, #0256DB 0%, #0256DB 35%, #031450 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 20px 0;
}

.blogs-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #6B7280;
    line-height: 1.6;
    margin: 0;
}

/* Blog Cards Grid - 3 cards in a row */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1400px;
    width: 100%;
    margin-bottom: 50px;
}

/* Blog Card Base */
.blog-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 0.5px solid #E5E7EB;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
}

.blog-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Blog Image Container with expanding animation */
.blog-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Blog Content */
.blog-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Blog Meta */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.blog-category {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #183FBA;
    background: #E6ECFC;
    padding: 6px 14px;
    border-radius: 6px;
}

.blog-date {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #9CA3AF;
}

.blog-date::before {
    content: '•';
    margin-right: 12px;
    color: #183FBA;
    font-size: 18px; /* make separator dot larger */
    line-height: 1;
    display: inline-block;
}

/* Blog Title */
.blog-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1A1F3A;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

/* Blog Excerpt */
.blog-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #6B7280;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
}

/* Blog Link */
.blog-link {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #183FBA;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    position: relative;
    transition: color 0.25s ease;
}

.blog-link-label {
    position: relative;
}

.blog-link-label::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1.5px;
    background-color: #183FBA;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-arrow-wrapper {
    display: inline-flex;
    align-items: center;
    position: relative;
    width: 13px;
    height: 13px;
    overflow: hidden;
}

.blog-arrow {
    font-size: 13px;
    color: #183FBA;
    position: absolute;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-arrow:first-child {
    transform: translateX(0);
}

.blog-arrow:last-child {
    transform: translateX(-20px);
}

.blog-link:hover .blog-arrow:first-child {
    transform: translateX(20px);
}

.blog-link:hover .blog-arrow:last-child {
    transform: translateX(0);
}

.blog-link:hover .blog-link-label::after {
    width: 100%;
}

/* View All Button */
.blogs-cta {
    text-align: center;
    margin-top: 20px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #ffffff;
    border: 1.5px solid #183FBA;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #183FBA;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.view-all-btn:hover {
    background: #183FBA;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24, 63, 186, 0.25);
}

.view-all-arrow-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    /* Match hero arrow rotation behavior */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.view-all-btn:hover .view-all-arrow-icon {
    transform: rotate(45deg);
    filter: brightness(0) invert(1);
}

/* Responsive Design */

/* Large Desktop (1400px and above) - 3 columns */
@media (min-width: 1400px) {
    .blogs-section {
        padding: 80px 90px 80px;
    }
    
    .blogs-grid {
        gap: 40px;
        max-width: 1400px;
    }
}

/* Desktop (1200px - 1399px) - 3 columns */
@media (min-width: 1200px) and (max-width: 1399px) {
    .blogs-grid {
        gap: 28px;
    }
    
    .blog-title {
        font-size: 19px;
    }
}

/* Medium Desktop (1025px - 1199px) - 3 columns */
@media (min-width: 1025px) and (max-width: 1199px) {
    .blogs-section {
        padding: 60px 60px 60px;
    }
    
    .blogs-grid {
        gap: 24px;
    }
    
    .blog-title {
        font-size: 18px;
    }
    
    .blog-image-container {
        height: 200px;
    }
}

/* Tablets and Small Laptops (769px - 1024px) - 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .blogs-section {
        padding: 50px 40px 50px;
    }
    
    .blogs-headline {
        margin-bottom: 50px;
    }
    
    .blogs-headline-line1 {
        font-size: 44px;
    }
    
    .blogs-headline-line2 {
        font-size: 52px;
    }
    
    .blogs-subtitle {
        font-size: 17px;
    }
    
    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        max-width: 900px;
    }
    
    .blog-image-container {
        height: 200px;
    }
    
    .blog-content {
        padding: 24px;
    }
    
    .blog-title {
        font-size: 18px;
    }
    
    .blog-excerpt {
        font-size: 15px;
    }
}

/* Mobile Landscape and Small Tablets (481px - 768px) - 1 column */
@media (min-width: 481px) and (max-width: 768px) {
    .blogs-section {
        padding: 40px 30px 40px;
    }
    
    .blogs-headline {
        margin-bottom: 40px;
    }
    
    .blogs-headline-line1 {
        font-size: 36px;
    }
    
    .blogs-headline-line2 {
        font-size: 42px;
    }
    
    .blogs-subtitle {
        font-size: 16px;
    }
    
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 600px;
    }

    /* Show only first 2 cards on mobile view */
    .blogs-grid .blog-card:nth-child(n + 3) {
        display: none;
    }
    
    .blog-image-container {
        height: 220px;
    }
    
    .blog-content {
        padding: 24px;
    }
    
    .blog-title {
        font-size: 20px;
    }
    
    .blog-excerpt {
        font-size: 15px;
    }
}

/* Small Mobile Phones (320px - 480px) - 1 column */
@media (max-width: 480px) {
    .blogs-section {
        padding: 40px 20px 40px;
    }
    
    .blogs-headline {
        margin-bottom: 32px;
    }
    
    .blogs-badge {
        font-size: 13px;
        padding: 6px 14px;
        margin-bottom: 20px;
    }
    
    .blogs-badge-icon {
        width: 14px;
        height: 14px;
    }
    
    .blogs-headline-line1 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .blogs-headline-line2 {
        font-size: 32px;
        line-height: 1.3;
    }
    
    .blogs-subtitle {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Show only first 2 cards on mobile view */
    .blogs-grid .blog-card:nth-child(n + 3) {
        display: none;
    }
    
    .blog-image-container {
        height: 200px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-meta {
        gap: 10px;
        margin-bottom: 14px;
    }
    
    .blog-category {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .blog-date {
        font-size: 12px;
    }
    
    .blog-title {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 10px;
    }
    
    .blog-excerpt {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 14px;
    }
    
    .blog-link {
        font-size: 14px;
    }
    
    .view-all-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Very Small Mobile Phones (below 320px) */
@media (max-width: 320px) {
    .blogs-section {
        padding: 30px 16px 30px;
    }
    
    .blogs-headline-line1 {
        font-size: 24px;
    }
    
    .blogs-headline-line2 {
        font-size: 28px;
    }
    
    .blogs-subtitle {
        font-size: 14px;
    }
    
    .blog-image-container {
        height: 180px;
    }
    
    .blog-content {
        padding: 16px;
    }
    
    .blog-title {
        font-size: 16px;
    }
    
    .blog-excerpt {
        font-size: 13px;
    }
}
