/**
 * Hero Sections for News Posts ONLY
 * Note: Homepage hero has its own specific styling in home.css
 * These styles apply to news posts and other interior pages with hero sections
 */

/* === HERO SECTION BASE === */
/* Only apply to news heroes, NOT the homepage hero */
body:not(.home) #hero,
.news-hero {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 400px;
    padding: 150px 0 80px;
    display: flex;
    align-items: center;
}

/* Overlay for better text readability */
body:not(.home) #hero::before,
.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Content wrapper */
body:not(.home) #hero .wrap,
.news-hero .wrap {
    position: relative;
    z-index: 2;
    width: 1200px;
    margin: 0 auto;
}

/* Hero Typography */
body:not(.home) #hero h1,
.news-hero h1 {
    color: white !important;
    font-size: 300%;
    margin-bottom: 0.5em;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

body:not(.home) #hero p,
.news-hero p {
    color: white;
    font-size: 130%;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 1em;
}

body:not(.home) #hero small,
.news-hero small,
body:not(.home) #hero time,
.news-hero time {
    color: rgba(255, 255, 255, 0.9);
    font-size: 90%;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Hero Buttons */
body:not(.home) #hero .button,
body:not(.home) #hero .learn-more,
.news-hero .button,
.news-hero .learn-more {
    background: #e87d20;
    color: white !important;
    padding: 0.75em 2em;
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all .3s ease-in-out;
    border: none;
    font-size: 110%;
    text-shadow: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body:not(.home) #hero .button:hover,
body:not(.home) #hero .learn-more:hover,
.news-hero .button:hover,
.news-hero .learn-more:hover {
    background: #0e4e91 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* === RESPONSIVE HERO === */
@media screen and (max-width: 1024px) {
    body:not(.home) #hero h1,
    .news-hero h1 {
        font-size: 240%;
    }
    
    body:not(.home) #hero p,
    .news-hero p {
        font-size: 110%;
    }
}

@media screen and (max-width: 768px) {
    body:not(.home) #hero,
    .news-hero {
        min-height: 300px;
        padding: 80px 0 60px !important;
    }
    
    body:not(.home) #hero h1,
    .news-hero h1 {
        font-size: 180%;
    }
    
    body:not(.home) #hero p,
    .news-hero p {
        font-size: 100%;
    }
    
    body:not(.home) #hero .button,
    body:not(.home) #hero .learn-more,
    .news-hero .button,
    .news-hero .learn-more {
        padding: 0.6em 1.5em;
        font-size: 100%;
    }
}

@media screen and (max-width: 480px) {
    body:not(.home) #hero h1,
    .news-hero h1 {
        font-size: 150%;
    }
    
    body:not(.home) #hero p,
    .news-hero p {
        font-size: 90%;
    }
}

/* === HERO CONTENT POSITIONING === */
.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HIDE FEATURED IMAGE IN CONTENT === */
/* Prevent duplicate image display if WordPress inserts it automatically */
.single-post .entry-content > img:first-child,
.single-post .entry-content > figure:first-child {
    display: none;
}

/* === NEWS HERO SPECIFIC STYLES === */
.news-hero {
    padding: 150px 0 80px;
}

.news-hero .wrap > div {
    max-width: 900px;
}

/* === DARK OVERLAY VARIATIONS === */
.hero-dark::before {
    background: rgba(0, 0, 0, 0.5) !important;
}

.hero-light::before {
    background: rgba(0, 0, 0, 0.2) !important;
}

/* === HERO WITH VIDEO BACKGROUND === */
.hero-video {
    position: relative;
    overflow: hidden;
}

.hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-video::before {
    z-index: 1;
}

.hero-video .wrap {
    z-index: 2;
}
