/* -------------------------------------- */
/* 1. Mega Menu Container Styling */
/* -------------------------------------- */

/* Hide the dropdown by default and position it */
/* Target the specific menu item's dropdown and force hide it by default */
body #top .sf-menu .menu-item-162 > .mega-menu-dropdown {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateX(-50%);
    z-index: 1000;
    width: 1140px;
    max-width: 100vw;
    background-color: transparent;
    box-shadow: none;
    border: none !important;
}
.sf-menu .mega-menu-inner {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 22px 25px;
    list-style: none;
    right: 0;
    border-radius: 40px;
}
/* Show the dropdown on hover of the parent LI */
body #top .sf-menu .menu-item-162:hover > .mega-menu-dropdown {
    display: block !important; /* Overrides theme defaults that might be trying to hide the sub-menu */
        opacity: 1;
}

/* Ensure the inner list item doesn't inherit default styling */
#top .mega-menu-dropdown li.custom-mega-menu-content {
    padding: 0;
    margin: 0;
    list-style: none;
    border: none;
}

/* -------------------------------------- */
/* 2. 70/30 Layout */
/* -------------------------------------- */

.mega-menu-inner,
.mega-menu-main-content {
    display: flex;
    width: 100%;
    gap: 20px; /* Space between the 70% and 30% sections */
}

.mega-menu-featured-70 {
    flex-basis: 70%;
    flex-grow: 1;
}

.sf-menu .mega-menu-latest-30 {
    flex-basis: 30%;
    border-left: 2px solid #BFBFBF; /* Separator line */
    padding-left: 20px;
}

/* -------------------------------------- */
/* 3. 70% Section: Featured Cards */
/* -------------------------------------- */

.mega-menu-card-row {
    display: flex;
    gap: 15px; /* Space between cards */
}

#top .sf-menu .mega-menu-card {
    flex: 1 1 0;
    height: 340px;
    display: flex;
    text-decoration: none;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s;
    border-radius: 10px;
    aspect-ratio: 0.75;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 19px;
}

.mega-menu-card:hover {
    transform: translateY(-3px);
}

#top .sf-menu .mega-menu-card::before { /* Dark overlay for better text readability */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, #015642 0%,#015642 20%, rgba(0, 0, 0, 0) 80%);
}

.card-title {
    z-index: 1; /* Place title above the overlay */
    padding: 15px;
    font-size: 1.1em;
    font-weight: bold;
    margin: 0;
    width: 100%;
}

/* -------------------------------------- */
/* 4. 30% Section: Latest Episodes */
/* -------------------------------------- */

.latest-episodes-heading {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #333;
    text-transform: uppercase;
}

.latest-episode-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    text-decoration: none;
    color: #000;
    align-items: center;
    transition: background-color 0.15s;
    padding: 5px;
    border-radius: 4px;
}

.latest-episode-item:hover {
    background-color: #f7f7f7;
}

.sf-menu .episode-thumbnail {
    width: 100px; /* Smaller thumbnail size */
    height: 100px;
    min-width: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    object-fit: cover;
    aspect-ratio: 1;
}

.episode-details {
    display: flex;
    flex-direction: column;
}

.sf-menu .episode-details .episode-title {
    font-size: 0.95em;
    font-weight: 600;
    line-height: 1.3;
    color: #042215;
    font-family: Mulish;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20.42px;
}

.episode-date {
    font-size: 0.8em;
    color: #777;
    margin-top: 2px;
}
#top .sf-menu .mega-menu-card h4.card-title {
    font-family: "Utopia Std";
    font-size: 30px;
    font-style: normal;
    font-weight: 600;
    line-height: 34px;
    color: #fff;
    margin-bottom: 0;
}
#top .sf-menu .mega-menu-card p.card-subtitle{
    color: var(--White, #FFF);
    font-family: Mulish;
    font-size: 13.091px;
    font-style: normal;
    font-weight: 700;
    line-height: 17.455px;
}
body .sf-menu h5.latest-episodes-heading {
    font-size: 13.448px;
    font-style: normal;
    font-weight: 600;
    line-height: 19.211px;
    letter-spacing: 0.269px;
    text-transform: uppercase;
    color: var(--Dark-green, #015642);
    font-family: 'Mulish';
    margin-bottom: 15px;
}

.sf-menu a.latest-episode-item {
    display: flex;
}
.sf-menu  a.latest-episode-item:hover {
    border-radius: 8px;
}
#header-outer .sf-menu a.view-all-episodes-button {
    display: inline-block;
    color: var(--Dark-green, #015642);
    font-family: Mulish;
    font-size: 13.142px;
    font-style: normal;
    font-weight: 700;
    line-height: 17.523px;
    margin-top: 10px;
}
.sf-menu  a.latest-episode-item:hover .episode-title{
    color:#fff;
}