/* ================================
   Fade-Up Animation Styles
   ================================ */

/* Base animation state - hidden initially */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Animated state - visible */
.fade-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for sequential animations */
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }
.fade-up-delay-6 { transition-delay: 0.6s; }
.fade-up-delay-7 { transition-delay: 0.7s; }
.fade-up-delay-8 { transition-delay: 0.8s; }

/* ================================
   BLOG PAGE - Hero Animation
   (CSS-only, triggers on page load)
   ================================ */

/* Hide blog hero elements initially */
.blog_hero_section .hero_section_badge_secondary,
.blog_hero_section .blog_hero_section_grid h1,
.blog_hero_section .blog_hero_section_grid .hero_title_secondary,
.blog_hero_section .blog_hero_section_grid p,
.blog_hero_section .blog_hero_section_grid .hero_description_secondary {
    opacity: 0;
    transform: translateY(30px);
}

/* Animate blog hero elements on page load */
.blog_hero_section .hero_section_badge_secondary {
    animation: heroFadeUp 0.7s ease-out 0.1s forwards;
}

.blog_hero_section .blog_hero_section_grid h1,
.blog_hero_section .blog_hero_section_grid .hero_title_secondary {
    animation: heroFadeUp 0.7s ease-out 0.25s forwards;
}

.blog_hero_section .blog_hero_section_grid p,
.blog_hero_section .blog_hero_section_grid .hero_description_secondary {
    animation: heroFadeUp 0.7s ease-out 0.4s forwards;
}

/* ================================
   BEST BLOG SECTION - On Load Animation
   (CSS-only, triggers on page load)
   ================================ */

/* Hide best blog section elements initially */
.best_blog_section .best_blog_card {
    opacity: 0;
    transform: translateY(30px);
}

/* Animate best blog section elements on page load */
.best_blog_section .best_blog_card {
    animation: heroFadeUp 0.7s ease-out 0.55s forwards;
}

/* ================================
   BLOG TABS SECTION - On Load Animation
   (CSS-only, triggers on page load)
   ================================ */

/* Hide blog tabs section elements initially */
.blog_tabs_section .blog_tabs,
.blog_tabs_section .blog_cards_grid,
.blog_tabs_section .blog_pagination {
    opacity: 0;
    transform: translateY(30px);
}

/* Animate blog tabs section elements on page load */
.blog_tabs_section .blog_tabs {
    animation: heroFadeUp 0.7s ease-out 0.7s forwards;
}

.blog_tabs_section .blog_cards_grid {
    animation: heroFadeUp 0.7s ease-out 0.85s forwards;
}

.blog_tabs_section .blog_pagination {
    animation: heroFadeUp 0.7s ease-out 1s forwards;
}

/* Hero fade up keyframe animation */
@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   Hero Section Base Styles
   ================================ */
.blog_hero_section {
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    width: 100%;
    padding: 250px 0px;
}

.blog_hero_section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #ffffff);
    pointer-events: none;
}

.blog_hero_section_grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.hero_section_badge_secondary {
    display: flex;
    height: 32px;
    padding: 6px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
}

.hero_section_badge_text_secondary {
    color: #0D1A3A;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 20px;
}

.hero_title_secondary {
    color: #000;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: 57.6px; 
}

.hero_description_secondary {
    color: #474E56;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 30.4px;
}

/* ================================
   Best Blog Base Styles
   ================================ */
.best_blog_section {
    padding: 0px 80px 60px 80px;
    margin-top: -7%;
}

.best_blog_card_link {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.best_blog_card_link:hover .best_blog_card {
    transform: scale(1.01);
}

.best_blog_card {
    display: flex;
    width: 100%;
    padding: 12px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 32px;
    border: 1px solid #EEE;
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 16px 32px 0 rgba(13, 26, 58, 0.12);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease;
}

.best_blog_image {
    display: flex;
    width: 100%;
    height: 550px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 20px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.best_blog_image_grid {
    display: flex;
    padding: 32px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1 0 0;
    align-self: stretch;
    background-color: #00000085;
    border-radius: 20px;
}

.best_blog_tag_section {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.best_blog_tag {
    display: flex;
    padding: 4px 12px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.best_blog_tag_text {
    color: #FFF;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 20px;
}

.best_blog_details_section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    align-self: stretch;
}

.best_blog_details_author {
    display: flex;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.best_blog_details_author_image {
    display: flex;
    width: 24px;
    height: 24px;
    justify-content: center;
    align-items: center;
    border-radius: 200px;
}

.best_blog_details_author_name {
    color: #FFF;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 24px;
}

.best_blog_details_texts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    align-self: stretch;
}

.best_blog_details_title {
    color: #FFF;
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: 46.44px;
}

.best_blog_details_description {
    color: rgba(255, 255, 255, 0.70);
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 30.4px;
}

.best_blog_details_response {
    display: flex;
    align-items: center;
    gap: 16px;
}

.best_blog_details_response_text {
    color: #FFF;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 28.9px;
}

/* ================================
   Blog Tabs Section
   ================================ */
.blog_tabs_section {
    padding: 60px 80px 0px 80px;
    background: #fff;
}

.blog_tabs_container {
    max-width: 1440px;
    margin: 0 auto;
}

/* ================================
   Category Tabs
   ================================ */
.blog_tabs {
    display: flex;
    align-items: center;
    gap: 48px;
    padding-bottom: 48px;
    margin-bottom: 48px;
    border-bottom: 1px solid #E5E7EB;

    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
}


.blog_tab {
    display: inline-flex;
    padding: 8px 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: #6B7280;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
    transition: all 0.5s ease;

    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 30.4px;
}

.blog_tab::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 100px;
    background: #008BCB;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.blog_tab:hover::after {
    transform: scaleX(1);
}

.blog_tab:hover {
    color: #008BCB;
}

.blog_tab.active {
    color: #008BCB;
    font-weight: 500;
}

.blog_tab.active::after {
    height: 4px;
    border-radius: 100px;
    background: #008BCB;
    transform: scaleX(1);
}

/* ================================
   Blog Cards Grid
   ================================ */
.blog_cards_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* ================================
   Blog Card
   ================================ */
.blog_card {
    display: flex;
    width: 100%;
    padding: 12px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    border-radius: 16px;
    border: 1px solid #EEE;
    background: #FFF;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.blog_card:hover {
    border: 1px solid #CDD1D7;
    box-shadow: 0 4px 12px 0 rgba(13, 26, 58, 0.08);
}

.blog_card.hidden {
    display: none;
}

.blog_card.visible {
    display: flex;
}

.blog_card.filtering {
    opacity: 0.5;
}

.blog_card_link {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card Image */
.blog_card_image {
    position: relative;
    width: 100%;
    height: 262px;
    overflow: hidden;
}

.blog_card_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.blog_card_category {
    display: flex;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: absolute;
    right: 20px;
    top: 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
}

.blog_card_category span {
    color: #FFF;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    text-transform: capitalize;
}

/* Card Content */
.blog_card_content {
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 12px;
    flex: 1;
}

.blog_card_title {
    color: #0D1A3A;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 28.8px;
}

.blog_card_excerpt {
    color: #5D667B;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 30.4px;
}

/* Card Meta */
.blog_card_meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding-top: 10px;
    margin-top: auto;
}

.blog_vertical_divider {
    width: 0.5px;
    height: 12px;
    background: #DDE0E3;
}

.blog_card_author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog_card_author_avatar {
    width: 18px;
    height: 18px;
    border-radius: 100px;
    object-fit: cover;
}

.blog_card_author_name {
    color: #9096A4;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

.blog_card_reading_time {
    display: flex;
    align-items: center;
    gap: 6px;
    
    color: #9096A4;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

.blog_card_reading_time svg {
    flex-shrink: 0;
}

/* ================================
   Empty States
   ================================ */
.blog_no_posts,
.blog_empty_state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6B7280;
    font-size: 16px;
}

/* ================================
   Blog Pagination Styles
   ================================ */
.blog_pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
    padding: 24px 0;
}

.blog_pagination_btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog_pagination_btn:hover:not(:disabled) {
    background: #F9FAFB;
    border-color: #008BCB;
    color: #008BCB;
}

.blog_pagination_btn:disabled,
.blog_pagination_btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.blog_pagination_btn svg {
    width: 16px;
    height: 16px;
}

.blog_pagination_numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog_pagination_number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog_pagination_number:hover {
    background: #F3F4F6;
    color: #374151;
}

.blog_pagination_number.active {
    background: #008BCB;
    border-color: #008BCB;
    color: #FFFFFF;
}

.blog_pagination_ellipsis {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    font-size: 14px;
}

/* ================================
   Blog Stay Updated
   ================================ */
.blog_stay_updated_section {
    padding: 100px 80px;
}

.blog_stay_updated_card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 60px 80px;
    gap: 32px;
    border-radius: 24px;
    background: #E6F3FA;
}

.blog_stay_updated_img_card {
    display: flex;
    padding: 6px 65.821px 16px 34px;
    flex-direction: column;
    align-items: center;
    border-radius: 24px;
    background: #E6F3FA;
}

.blog_stay_updated_img {
    width: 266.179px;
    height: 403.996px;
    flex-shrink: 0;
}

.blog_stay_updated_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-shrink: 0;
    align-self: stretch;
}

.blog_stay_updated_text_content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    align-self: stretch;
}

.blog_stay_updated_card_text_grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
}

.blog_stay_updated_card_title {
    color: #0D1A3A;
    text-align: center;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: 57.6px;
    margin-bottom: 0px;
}

.blog_stay_updated_card_description {
    color: #5D667B;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 30.4px;
}

.blog_stay_updated_card_badge_grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    gap: 34px;
    flex-wrap: wrap;
}

.blog_stay_updated_card_badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog_stay_updated_card_badge_text {
    color: #3D4861;
    text-align: center;
    font-variant-numeric: slashed-zero;
    font-feature-settings: 'cv01' on, 'cv02' on, 'cv03' on, 'cv04' on, 'cv07' on, 'cv10' on, 'cv11' on;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
}

.blog_stay_updated_card_input_grid {
    display: flex;
    align-items: center;
    gap: 16px;
    align-self: stretch;
    width: 100%;
}

.blog_stay_updated_card_input {
    display: flex;
    width: 70%;
    height: 100%;
    padding: 10px 16px;
    align-items: center;
    border-radius: 12px;
    border: 1px solid #F9F9FB;
    background: #FFF;
    outline: none;
}

.blog_subscribe_button {
    width: 30%;
}

.newsletter-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.newsletter-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-message-error {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.blog_subscribe_button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}