/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */


/* LIMIT ALL CUSTOM STYLES TO EVENTS ARCHIVE ONLY */
body.post-type-archive-tribe_events .tao-events-hero-wrap {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Hero height similar to normal page hero */
body.post-type-archive-tribe_events .tao-events-hero {
    position: relative;
    background-size: cover;
    background-position: center center;
    min-height: 320px;              /* start here; adjust 300–360px to taste */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 60px 20px;
}

body.post-type-archive-tribe_events .tao-events-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

body.post-type-archive-tribe_events .tao-events-hero-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

body.post-type-archive-tribe_events .tao-events-hero-title {
    font-size: 42px;
    line-height: 1.2;
    margin: 0;
    font-weight: 700;
}

/* Space between hero and events module ONLY on events archive */
body.post-type-archive-tribe_events .tribe-events .tribe-events-c-top-bar {
    margin-top: 60px;
}

/* Events archive hero height override */
body.post-type-archive-tribe_events .tao-events-hero-inner {
    min-height: 320px !important;   /* tweak: 300–380px until it matches */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Optional: ensure background behaves like other heroes */
body.post-type-archive-tribe_events .tao-events-hero-inner {
    background-size: cover !important;
    background-position: center center !important;
}

/* Center the title vertically */
body.post-type-archive-tribe_events .tao-events-hero-title {
    margin: 0;
    font-size: 42px;
    line-height: 1.2;
}

