/* ========================================
   BLOG LISTING COMPONENTS
   Professional blog cards for event page
======================================== */

/* ========================================
   HERO SECTION 
======================================== */

.section-hero {
    background: var(--color-bg-base);
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.hero-title {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 158px;
    line-height: 164px;
    letter-spacing: -4.7%;
    color: var(--color-hero);
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* Fix for animation library wrapper divs */
.hero-title > div,
.hero-title div {
    line-height: inherit !important;
}

@media screen and (max-width: 768px) {
    .section-hero {
        padding: var(--spacing-sm) 0;
    }
    
    .hero-title {
        font-size: 128px;
        line-height: 134px;
        min-height: 150px;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 48px;
        line-height: 52px;
        letter-spacing: -2.256px;
        min-height: 100px;
    }
}


/* ========================================
   SHARED BLOG CARD STYLES
======================================== */
.blog-listing-showcase {
    padding: var(--spacing-xxl, 64px) 0;
    background-color: var(--color-bg-base, #ffffff);
}

.blog-listing-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md, 24px);
    margin-bottom: var(--spacing-xxl, 64px);
}

.blog-card {
    background: var(--color-bg-base, #ffffff);
    border-radius: 16px;
    padding: var(--spacing-lg, 32px);
    box-shadow: var(--shadow-low, 0 2px 8px 0 rgba(99, 99, 99, 0.2));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-card:hover {
    box-shadow: var(--shadow-medium, 
        5px 10px 12.6px 0 rgba(158, 158, 158, 0.36),
        2.1px 4.1px 5.2px 0 rgba(158, 158, 158, 0.36),
        0.8px 1.6px 2px 0 rgba(158, 158, 158, 0.36),
        0.3px 0.5px 0.7px 0 rgba(158, 158, 158, 0.36));
    transform: translateY(-4px);
}

/* ========================================
   BLOG CARD META SECTION
======================================== */
.blog-card__meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm, 16px);
    margin-bottom: var(--spacing-md, 24px);
}

.blog-card__date {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    font-size: 15px;
    line-height: 20px;
    letter-spacing: auto;
    text-align: left;
    color: #19191B;
}

/* Category Tag Styles (as provided) */
.event-category-tag {
    width: 148px;
    height: 36px;
    background: rgba(158, 158, 158, 0.34);
    color: transparent;
    font-weight: var(--font-weight-medium);
    padding: 6px 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-primary);
    font-size: 16px;
    line-height: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    position: relative;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.event-category-tag:hover {
    background: rgba(158, 158, 158, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(158, 158, 158, 0.3);
}

.event-category-tag:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(158, 158, 158, 0.2);
}

.event-category-tag:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.event-category-tag::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #8a2387, #e94057, #f27121);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 16px;
    font-family: var(--font-family-primary);
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
    pointer-events: none;
}

/* ========================================
   BLOG CARD TITLE
======================================== */
.blog-card__title {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-medium);
    font-size: 42px;
    line-height: 50px;
    letter-spacing: -0.9996px;
    margin-bottom: var(--spacing-md, 24px);
    font-feature-settings: "kern" 1, "liga" 1;
    color: var(--color-primary);
    text-align: left;
}

/* ========================================
   BLOG CARD IMAGE
======================================== */
.blog-card__image {
    width: 100%;
    max-width: 702px;
    height: 386px;
    margin: 0 auto var(--spacing-md, 24px);
    border-radius: 25px;
    overflow: hidden;
    /*border: 1px solid #ACAEB4;*/
    box-sizing: border-box;
}

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

.blog-card:hover .blog-card__image img {
    transform: scale(1.02);
}

/* ========================================
   BLOG CARD CONTENT
======================================== */
.blog-card__content {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    font-size: 18px;
    line-height: 24px;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md, 24px);
    font-feature-settings: "kern" 1, "liga" 1;
}

/* ========================================
   READ MORE BUTTON
======================================== */
.blog-card__read-more {
    font-weight: var(--font-weight-medium, 500);
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.36px;
    margin-bottom: 8px;
    font-feature-settings: "kern" 1, "liga" 1;
    color: var(--color-primary, #e3001b);
    background: transparent;
    border: 2px solid transparent;
    border-radius: 25px;
    padding: var(--spacing-xs, 8px) var(--spacing-sm, 16px);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family-primary, 'Helvetica Now Text', sans-serif);
    text-decoration: none;
    display: inline-block;
}

.blog-card__read-more:hover {
    /*color: var(--color-primary, #e3001b);*/
    border-color: var(--color-primary, #e3001b);
    background: rgba(227, 0, 27, 0.05);
    transform: translateY(-1px);
}

.blog-card__read-more:active {
    transform: translateY(0);
}

.blog-card__read-more:focus {
    outline: 2px solid var(--color-primary, #e3001b);
    outline-offset: 2px;
}

/* ========================================
   COMPONENT VARIATIONS
======================================== */

/* Component 1: Without Button */
.blog-card--no-button .blog-card__content {
    margin-bottom: 0;
}

/* Component 2: With Button */
.blog-card--with-button {
    /* Default styles apply */
}

/* Component 3: Without Image */
.blog-card--no-image .blog-card__image {
    display: none;
}

.blog-card--no-image .blog-card__title {
    margin-bottom: var(--spacing-lg, 32px);
}

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

/* Tablet Styles */
@media screen and (max-width: 1023px) {
    .blog-listing-container {
        padding: 0 var(--spacing-md, 24px);
    }
    
    .blog-card {
        padding: var(--spacing-md, 24px);
    }
    
    .blog-card__title {
        font-size: 32px;
        line-height: 38px;
        letter-spacing: -0.7616px;
    }
    
    .blog-card__image {
        height: 280px;
    }
    
    .blog-card__content {
        font-size: 18px;
        line-height: 27px;
    }
    
    .event-category-tag {
        width: 130px;
        height: 32px;
        font-size: 14px;
        padding: 4px 12px;
    }
    
    .event-category-tag::before {
        font-size: 14px;
        padding: 4px 12px;
    }
}

/* Mobile Styles */
@media screen and (max-width: 767px) {
    .blog-listing-showcase {
        padding: var(--spacing-lg, 32px) 0;
    }
    
    .blog-listing-container {
        padding: 0 var(--spacing-sm, 16px);
        margin-bottom: var(--spacing-lg, 32px);
    }
    
    .blog-card {
        padding: var(--spacing-sm, 16px);
    }
    
    .blog-card__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs, 8px);
    }
    
    .blog-card__title {
        font-size: 24px;
        line-height: 28px;
        letter-spacing: -0.5712px;
        text-align: left;
    }
    
    .blog-card__image {
        height: 200px;
    }
    
    .blog-card__content {
        font-size: 16px;
        line-height: 24px;
    }
    
    .blog-card__date {
        font-size: 14px;
        line-height: 18px;
    }
    
    .event-category-tag {
        width: 120px;
        height: 28px;
        font-size: 12px;
        padding: 4px 10px;
        margin-bottom: 4px;
    }
    
    .event-category-tag::before {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .blog-card__read-more {
        font-size: 16px;
        line-height: 20px;
        letter-spacing: -0.32px;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
======================================== */
.blog-card:focus-within {
    outline: 2px solid var(--color-primary, #e3001b);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card__image img,
    .blog-card__read-more,
    .event-category-tag {
        transition: none;
    }
    
    .blog-card:hover {
        transform: none;
    }
    
    .blog-card:hover .blog-card__image img {
        transform: none;
    }
    
    .blog-card__read-more:hover {
        transform: none;
    }
    
    .event-category-tag:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .blog-card {
        border: 2px solid var(--color-text-primary, #000000);
    }
    
    .blog-card__image {
        border-color: var(--color-text-primary, #000000);
    }
    
    .event-category-tag {
        border: 1px solid var(--color-text-primary, #000000);
    }
    
    .blog-card__read-more {
        border-color: var(--color-primary, #e3001b);
    }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    .blog-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .blog-card__read-more {
        display: none;
    }
    
    .event-category-tag::before {
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* ========================================
   FIX FOR GSAP SPLITTEXT ANIMATION WRAPPERS
======================================== */

/* Target all wrapper divs created by SplitText */
.hero-title > div {
    line-height: inherit !important;
    overflow: visible !important;
}

.hero-title div[style*="line-height"] {
    line-height: inherit !important;
}

.hero-title .split-line {
    line-height: inherit !important;
}

/* Ensure parent also uses correct line-height */
.hero-title[style] {
    line-height: 164px !important;
}

/* Media query overrides */
@media screen and (max-width: 768px) {
    .hero-title[style],
    .hero-title > div,
    .hero-title div[style*="line-height"] {
        line-height: 134px !important;
    }
}

@media screen and (max-width: 480px) {
    .hero-title[style],
    .hero-title > div,
    .hero-title div[style*="line-height"] {
        line-height: 164px !important;
    }
}