/* Base Layout for Stark */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.layout-container {
    width: 100%;
    margin: 0;
    background-color: #fff;
    padding: 0;
}

/* Header Utilities */
.ewdd-top-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background-color: #ffffff !important;
    padding: 10px 20px !important;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    color: #333 !important;
    border-bottom: 2px solid #193564 !important;
}

.ewdd-top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ewdd-top-bar-left img {
    height: 45px;
    width: auto;
}

.ewdd-top-bar-right a {
    margin-left: 20px;
    color: #193564 !important;
    text-decoration: none !important;
    font-weight: bold !important;
}

/* Branding & Logo */
#block-stark-site-branding {
    margin: 10px 20px;
}

#block-stark-site-branding img {
    display: none !important;
    /* Hide Stark default logo */
}

/* Inject EWDD Logo as background of home link */
#block-stark-site-branding a[rel="home"] {
    display: inline-block;
    background: url('/images/logos/LAEWDD_headerlogo_700x190.png') no-repeat left center;
    background-size: contain;
    width: 800px;
    height: 200px;
}

/* Hide the Skip to main content link */
a[href="#main-content"] {
    display: none !important;
    text-indent: -9999px;
    /* Hide Stark site name text */
}

#block-stark-site-branding a[rel="home"]:last-child {
    display: none !important;
    /* Hide duplicate text link */
}

/* Horizontal Menu */
#block-stark-main-menu>ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    background-color: #ffffff;
}

#block-stark-main-menu>ul>li {
    margin: 0;
    position: relative;
}

#block-stark-main-menu>ul>li>a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: bold;
    color: #193564;
    text-transform: uppercase;
}

#block-stark-main-menu>ul>li>a:hover {
    background-color: #f4f4f4;
    color: #2a5599;
}

/* Dropdown styling */
#block-stark-main-menu>ul>li>ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f4f4f4;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 250px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

#block-stark-main-menu>ul>li:hover>ul {
    display: block;
}

#block-stark-main-menu>ul>li>ul>li {
    position: relative;
}

#block-stark-main-menu>ul>li>ul>li>a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #ddd;
}

#block-stark-main-menu>ul>li>ul>li>a:hover {
    background-color: #193564;
    color: #fff;
}

/* 3rd Level Dropdown styling */
#block-stark-main-menu>ul>li>ul>li>ul {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #f4f4f4;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 250px;
    z-index: 1001;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

#block-stark-main-menu>ul>li>ul>li:hover>ul {
    display: block;
}

#block-stark-main-menu>ul>li>ul>li>ul>li>a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #ddd;
}

#block-stark-main-menu>ul>li>ul>li>ul>li>a:hover {
    background-color: #193564;
    color: #fff;
}

/* Page Titles */
#block-stark-page-title h1 {
    color: #193564;
    margin: 20px 0;
    padding: 0;
}

/* Ensure main content aligns with the 20px left inset of the Home menu item */
.layout-content {
    padding: 0 20px;
    box-sizing: border-box;
}

/* Slider Container */
#block-stark-slider-mimic {
    margin: 0;
    padding: 0;
}

/* Recent Articles List on Frontpage - HIDDEN */
.path-frontpage #block-stark-page-title,
.path-frontpage #block-stark-content,
.path-frontpage .block-system-main-block,
.path-frontpage .views-element-container,
.path-frontpage .feed-icons,
.path-frontpage .view-empty,
.path-frontpage h1.page-title {
    display: none !important;
}

/* Ensure our custom landing page blocks are RE-SHOWN */
[id^="block-stark-lp-"],
#block-stark-slider-mimic,
#block-stark-official-header,
#block-stark-site-branding,
#block-stark-main-menu,
#block-stark-globalfooter {
    display: block !important;
}

/* Specific fix for images in centers block */
.source-centers img {
    width: 280px !important;
    height: auto !important;
}

/* Stats Container (from our custom block) */
.ewdd-stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px 20px;
    background: #fff;
}

.ewdd-stat {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.ewdd-stat h2 {
    font-size: 3rem;
    color: #193564;
    margin-bottom: 10px;
}

/* Programs Container (from our custom block) */
.ewdd-programs-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    padding: 40px 20px;
}

.ewdd-program-btn {
    background-color: #193564;
    color: #fff !important;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.ewdd-program-btn:hover {
    background-color: #2a5599;
}

/* Landing Page Specific Card Styling */
.main-cards .main-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.main-cards .main-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.source-centers a {
    text-decoration: none;
    transition: opacity 0.2s;
}

.source-centers a:hover {
    opacity: 0.8;
}

/* Ensure full width for frontpage sections */
.path-frontpage .layout-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* But still provide the 20px inset for text-heavy widgets if needed, or rely on internal paddings */