/* Custom Hero Section */
.custom-hero-wrapper {
    font-family: 'Titillium Web', sans-serif;
    color: #e8dff6;
    position: relative;
    overflow: hidden;
}

.custom-hero-wrapper .body-overlay {
    font-weight: 300;
}

.custom-hero-wrapper .hero-container {
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    position: relative;
    overflow: hidden;
    background: url('../uploads/nrd-D6Tu_L3chLE-unsplash.jpg') no-repeat center center;
    background-size: cover;
}

.custom-hero-wrapper .leftandin {
    width: 100%;
    z-index: 3;
}

.custom-hero-wrapper .leftandin2 {
    position: absolute;
    top: 0;
    bottom: 0;
    opacity: 0;
    width: 100%;
    z-index: 3;
}

.custom-hero-wrapper .outer-left {
    background: rgba(0,0,0,0.5); /* Semi-transparent black over the image for text readability */
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 120px);
    height: 100%;
    padding: 45px 60px;
    width: 35%; 
}
@media (min-width: 1024px) {
    .custom-hero-wrapper .outer-left {
        width: 35%;
    }
}

.custom-hero-wrapper .outer-left .timeline {
    font-size: 1.1em;
    letter-spacing: 1.5px;
    padding-top: 14%;
    z-index: 1;
    color: #e8dff6;
}

.custom-hero-wrapper .outer-left .headline {
    font-size: 5em;
    font-weight: 700;
    line-height: 1.1;
    padding: 20px 5px;
    z-index: 1;
    color: #fff;
}

.custom-hero-wrapper .outer-left .title {
    font-size: 1.7em;
    font-weight: 300;
    letter-spacing: 1.5px;
    line-height: 1.4;
    padding: 10px 0;
    z-index: 1;
    color: #fff;
}

.custom-hero-wrapper .outer-left .description {
    font-size: 1.2em;
    padding: 10px 0;
    z-index: 1;
    color: #fff;
    max-width: 100%;
}

.custom-hero-wrapper .outer-left .cta {
    background: hsl(142, 45%, 28%); /* Organic Green */
    border: none;
    border-radius: 20em;
    box-shadow: -1px 2px 7px rgba(34, 197, 94, 0.4), 1px -1px 7px rgba(7, 6, 25, 0.4);
    color: #e8dff6;
    font-size: 1.3em;
    letter-spacing: 1px;
    margin-top: 30px;
    display: inline-block;
    padding: .8em 3em;
    text-shadow: 0px 0px 3px rgba(200,200,200,.4);
    transition: transform 0.2s, background-color 0.3s;
    z-index: 1;
    cursor: pointer;
}

.custom-hero-wrapper .outer-left .cta:hover {
    background: hsl(142, 55%, 23%); /* Darker organic green */
    box-shadow: 1px 2px 7px rgba(34, 197, 94, 0.3), 1px 1px 10px rgba(7, 6, 25, 0.3);
    transform: scale(0.98);
}

.custom-hero-wrapper .inner {
    border-top-left-radius: 50vh;
    box-shadow: inset 0 14px 5px rgba(0,0,0,0.2), inset 0 14px 10px rgba(0,0,0,0.5);
    display: inline-block;
    min-height: calc(100vh - 120px);
    vertical-align: top;
    position: absolute;
    right: 0;
    width: 65%;
}

.custom-hero-wrapper #inner1 {
    background: transparent;
}

.custom-hero-wrapper #inner2 {
    background: transparent;
}

.custom-hero-wrapper .inner .toggler {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.custom-hero-wrapper .inner .toggler a {
    font-size: 3em;
    color: #e8dff6;
    opacity: .6;
    text-align: center;
    height: 1.8em;
    border-radius: 10em;
    width: 2em;
    z-index: 2;
    transition: all 0.3s ease-out;
}

.custom-hero-wrapper .inner .toggler a:hover {
    opacity: .9;
    transform: scale(1.03);
}

.custom-hero-wrapper .inner .previous-article {
    position: absolute;
    bottom: 8em;
    right: 2em;
}

.custom-hero-wrapper .inner .next-article {
    position: absolute;
    bottom: 6em;
    right: 4em;
    text-decoration: none;
}

.custom-hero-wrapper .inner .article-position {
    color: #e8dff6;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 5px;
}

/* Animations & State Toggles */
.custom-hero-wrapper .delay-06s { animation-delay: 0.6s; }
.custom-hero-wrapper .displaynone { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; position: absolute !important; }
.custom-hero-wrapper .display { display: flex !important; opacity: 1 !important; visibility: visible !important; position: static !important; }
.custom-hero-wrapper .fadeIn { animation: fadeIn 1s both; }
.custom-hero-wrapper .fadeout { animation: fadeOut 1s both; }
.custom-hero-wrapper .fadeInLeft { animation: fadeInLeft 1s both; }
.custom-hero-wrapper .fadeInDown { animation: fadeInDown 1s both; }
.custom-hero-wrapper .bounceInLeft { animation: bounceInLeft 1s both; }
.custom-hero-wrapper .pulse { animation: pulse 2s infinite; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, -100%, 0); } to { opacity: 1; transform: none; } }
@keyframes bounceInLeft {
  from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); }
  0% { opacity: 0; transform: translate3d(-3000px, 0, 0); }
  60% { opacity: 1; transform: translate3d(25px, 0, 0); }
  75% { transform: translate3d(-10px, 0, 0); }
  90% { transform: translate3d(5px, 0, 0); }
  to { transform: none; opacity: 1; }
}
@keyframes pulse { from { transform: scale3d(1, 1, 1); } 50% { transform: scale3d(1.05, 1.05, 1.05); } to { transform: scale3d(1, 1, 1); } }

/* Media Queries for responsive Custom Hero */
@media only screen and (max-width: 1024px) {
    .custom-hero-wrapper .outer-left { width: 45%; padding: 40px; }
    .custom-hero-wrapper .inner { width: 55%; }
    .custom-hero-wrapper .outer-left .timeline { padding-top: 0; }
    .custom-hero-wrapper .outer-left .headline { font-size: 3.5em; padding: 20px 0 10px; }
    .custom-hero-wrapper .outer-left .title { font-size: 1.5em; padding: 10px 0; }
    .custom-hero-wrapper .outer-left .description { font-size: 1.1em; padding: 10px 0; width: 100%; }
    .custom-hero-wrapper .outer-left .cta { margin-top: 30px; }
}

@media only screen and (max-width: 768px) {
    .custom-hero-wrapper .hero-container { min-height: auto; display: flex; flex-direction: column; }
    .custom-hero-wrapper .leftandin { display: flex; flex-direction: column; width: 100%; min-height: auto; position: relative; }
    .custom-hero-wrapper .leftandin2 { display: flex; flex-direction: column; width: 100%; min-height: auto; position: absolute; top: 0; left: 0; }
    .custom-hero-wrapper .outer-left { display: flex; flex-direction: column; width: 100%; min-height: auto; padding: 40px 30px; border-radius: 0; background: rgba(0,0,0,0.6); }
    .custom-hero-wrapper .outer-left .headline { font-size: 3em; }
    .custom-hero-wrapper .inner { display: block; width: 100%; min-height: 150px; position: relative; border-radius: 0; }
    .custom-hero-wrapper .inner .toggler { position: absolute; bottom: 20px; right: 20px; width: auto; }
    .custom-hero-wrapper .inner .next-article { position: static; display: flex; align-items: center; gap: 8px; }
    .custom-hero-wrapper .inner .article-position { margin-bottom: 0; font-size: 1.2rem; }
}

@media only screen and (max-width: 480px) {
    .custom-hero-wrapper .hero-container { margin: 0; border-radius: 0; }
    .custom-hero-wrapper .outer-left { padding: 30px 20px; }
    .custom-hero-wrapper .outer-left .headline { font-size: 2.5em; }
    .custom-hero-wrapper .outer-left .title { font-size: 1.3em; }
    .custom-hero-wrapper .outer-left .description { font-size: 1em; }
    .custom-hero-wrapper .inner { min-height: 120px; }
}
