/**
 * Hero Section Component
 * 
 * Primary content area featuring the main headline story
 * with a secondary sidebar for latest updates.
 * 
 * Styled with the Capital Chronicle brand kit - minimalist with
 * white background, black text, and subtle gold accents.
 */

.hero-section {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    margin-bottom: 40px;
    margin-top: 24px;
}

/* Opinion Hero Section Styling */
#opinion-hero-section {
    margin-top: 24px;
    position: relative;
}

/* Standalone Section Title */
h2.typography-section-h2.grid-col-span-12 {
    margin-top: 40px;
    margin-bottom: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-primary);
    border-left: 3px solid var(--color-accent-secondary);
    padding-left: 12px;
    position: relative;
}

h2.typography-section-h2.grid-col-span-12:before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--color-border-light);
}

/* Primary Hero Area */
.hero-primary {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--color-background-primary);
    border: 1px solid var(--color-border-primary);
    overflow: hidden;
    height: 100%;  /* Match height with secondary container */
}

/* Hero Primary Link */
.hero-primary-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%; /* Make link take full height */
}

.hero-primary-image {
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.hero-primary-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-primary:hover .hero-primary-image img {
    transform: scale(1.02);
}

.hero-primary:hover .typography-hero-h1 {
    color: var(--color-accent-secondary);
}

.hero-primary-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1; /* Take up all available space */
}

.typography-category-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    background-color: var(--color-background-tertiary);
    color: var(--color-text-primary);
    border-left: 2px solid var(--color-accent-secondary);
    margin-bottom: 8px;
}

.typography-hero-h1 {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0;
    color: var(--color-text-primary);
    transition: color 0.2s ease;
}

.typography-article-summary {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-top: 8px;
    margin-bottom: 16px;
}

.hero-meta {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    border: 1px solid var(--color-border-medium);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-meta {
    display: flex;
    flex-direction: column;
}

.typography-byline {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.typography-timestamp {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Secondary Hero Area (Latest Updates) */
.hero-secondary {
    background-color: var(--color-background-secondary);
    border: 1px solid var(--color-border-primary);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure same height as primary hero */
}

.hero-secondary-articles {
    display: flex;
    flex-direction: column;
    flex: 1; /* Take up all available space */
}

.hero-secondary-article:first-child {
    padding-top: 16px;
}

.hero-secondary-article {
    padding: 16px;
    transition: background-color 0.2s ease;
}

.hero-secondary-article:hover {
    background-color: var(--color-background-tertiary);
}

.hero-secondary-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}

.hero-secondary-separator {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--color-border-light);
}

.typography-link-h4 {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
    margin: 0;
    color: var(--color-text-primary);
    transition: color 0.2s ease;
}

.hero-secondary-article:hover .typography-link-h4 {
    color: var(--color-accent-secondary);
}

/* Fix for carousel integration */
.hero-carousel-container {
    height: 100%;
    position: relative;
}

.hero-carousel {
    height: 100%;
}

.hero-slide {
    height: 100%;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
    
    .hero-secondary {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .hero-secondary-header {
        grid-column: 1/-1;
        }
        
    .hero-secondary-separator {
        display: none;
    }
}

@media (max-width: 768px) {
    .typography-hero-h1 {
        font-size: 28px;
        }
        
        .hero-secondary {
        display: block;
    }
}

@media (max-width: 480px) {
    .hero-primary-content {
        padding: 16px;
    }
    
    .typography-hero-h1 {
        font-size: 24px;
    }
    
    .typography-article-summary {
        font-size: 15px;
    }
} 

/* Ensure no underlines on hover for hero section links */
.hero-primary-link:hover,
.hero-secondary-link:hover {
    text-decoration: none;
}

.hero-primary-link:hover h1,
.hero-secondary-link:hover h3 {
    color: var(--color-accent-primary);
    text-decoration: none;
} 