/*
Theme Name: Twenty Eleven Child
Theme URI: https://creatingfutures.online
Description: Child theme for Twenty Eleven
Author: Mark Griffin
Template: twentyeleven
Version: 1.0.0
*/

/*
Theme Name: Twenty Eleven Child
Template: twentyeleven
*/


/* Hero container */
.hero-container {
    position: relative;
    width: 100%;       /* fill parent column */
    max-width: none;   /* ignore inherited max-width */
    margin: 0;         /* flush with top */
    overflow: hidden;
}

/* Hero image */
.hero-image {
    width: 100%;
    height: 180px;       /* adjust height as needed */
    object-fit: cover;
    display: block;
}

/* Hero text overlay */
.hero-text {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0,0,0,1);
    color: #ffffff;
}

/* Site title */
.hero-text h1 {
    font-size: 36px !important;
    font-weight: 700 !important;
    margin: 0;
}

/* Tagline */
.hero-text h2 {
    font-size: 22px !important;
    font-weight: 500 !important;
    margin: 0.3em 0 0 0;
    color: #ffffff !important; /* readable tagline */
}


/* Optional: tighten spacing under header */
.home #main {
    padding-top: 0;
}



#branding {
    text-align: center; /* centers everything inside */
}

#branding h1#site-title {
    margin: 0 auto;      /* ensure no extra spacing */
    display: inline-block; /* keeps it sized to the text */
}

#branding h2#site-description {
    margin: 0 auto;
    display: inline-block;
}




/* HERO BLOCK */
/* HERO BLOCK WRAPPER */
/* HERO BLOCK */
.hero-home-block {
    position: relative;
    background-image: url('https://creatingfutures.online/wp-content/uploads/background-09b.webp');
    background-size: cover;
    background-position: center;
    min-height: 220px;
    width: calc(100% + 152px); /* 100% + total left+right padding of entry-content (example: 76px each side) */
    margin-left: -76px;        /* negative margin to cancel left padding */
    margin-top: -160px;        /* pull block up toward header */
    padding: 40px 20px;        /* padding */
    box-sizing: border-box;
    color: white;
    text-align: left;
}

/* GREY OVERLAY */
.hero-home-block .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1;
}

/* TEXT CONTAINER */
.hero-home-block .hero-inner {
    position: relative;
    z-index: 2;
}

/* Heading & paragraph */
.hero-home-block h1 {
    font-family: serif;
    font-size: 1.8em;
    line-height: 1.4; 
    margin: 0 60px 10px 60px;
    color: #ffffff;
}

.hero-home-block p {
    font-family: serif;
    font-size: 1.2em;
    line-height: 1.4; 
    margin: 0 60px 10px 60px;
    color: #ffffff;
}


/* Desktop */
h2 {
  font-size: 28px;
  line-height: 1.2;
}

/* Mobile (screens <= 767px) */
@media only screen and (max-width: 767px) {
  h2 {
    font-size: 22px;
    line-height: 1.2;
  }
}

@media (max-width: 768px) {

    #branding .hero-container {
        width: 100% !important;
        height: 120px !important;       /* keep header tall enough for title/tagline */
        position: relative !important;
        overflow: hidden !important;
    }

    #branding .hero-container .hero-image {
        width: auto !important;
        height: 100% !important;        /* fill container height */
        min-width: 100% !important;     /* cover width */
        display: block !important;
        position: absolute !important;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    #branding .hero-container .hero-text {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        text-align: center !important;
        width: 90% !important;
        color: #fff !important;
    }

    #branding .hero-container .hero-text h1,
    #branding .hero-container .hero-text h3 {
        margin: 0 !important;
        padding: 0.2rem 0 !important;
        line-height: 1.2 !important;
        font-size: 1.4rem !important;
    }
}


/* Mobile-specific hero fix */
@media only screen and (max-width: 767px) {
.hero-home-block {
  margin-top: -130px !important;
  margin-left: -10px !important;
  margin-right: -10px !important;
}

.hero-home-block .hero-inner {
  top: 40px !important;
  max-width: 100% !important;
}