/* Homepage Template Styles */

.homepage-template {
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* New 3-Title Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    padding: 0 20px;
    display: block;
    text-align: left;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
    padding: 20px;
}

.hero-titles {
    width: 100%;
    text-align: left !important;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title-1,
.hero-title-2,
.hero-title-3 {
    margin: 0 0 10px 0;
    line-height: 1.1 !important;
    font-weight: 900;
    font-size: 75px !important;
    letter-spacing: -0.02em;
}

.hero-title-3 {
    margin-bottom: 0;
}

.hero-title-combined {
    margin: 0;
    padding: 0;
    line-height: 1.1 !important;
    font-weight: 900;
    font-size: 75px !important;
    letter-spacing: -0.02em;
}

.hero-title-combined span {
    display: block;
}

.hero-cta {
    animation: fadeInUp 1s ease-out 0.5s both;
    text-align: left;
    float: left;
    clear: both;
    width: 100%;
}

.hero-cta-button {
    display: inline-block;
    padding: inherit;
    background-color: var(--e-global-color-secondary);
    fill: var(--e-global-color-primary);
    color: var(--e-global-color-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #ffd700;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 200px;
    box-sizing: border-box;
}

.hero-cta-button:hover {
    background-color: transparent;
    color: #ffd700;
    border-color: #ffd700;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title-1,
    .hero-title-2,
    .hero-title-3 {
        font-size: 3.5rem !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 55vh;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .hero-titles {
        margin-bottom: 2rem;
    }
    
    .hero-title-combined {
        font-size: 50px !important;
    }
 
    .hero-cta-button {
        padding: 15px 28px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 60vh;
    }
    
    .hero-title-1,
    .hero-title-2,
    .hero-title-3 {
        font-size: 50px !important;
    }
    
    .hero-title-combined {
        font-size: 50px !important;
    }
    
    .hero-cta-button {
        padding: 12px 24px;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}

/* Dark/Light Mode Support */
body.light-mode .hero-overlay {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .hero-overlay {
    background: rgba(0, 0, 0, 0.6);
}

/* OLD Hero Slider Section (keeping for backward compatibility) */
.hero-slider {
    position: relative;
    min-height: 800px;
    overflow: hidden;
}

.hero-slides-wrapper {
    position: relative;
    min-height: 800px;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 800px;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    width: 100%;
    padding: 60px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 50px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 60px;
    line-height: 1.3;
}

.hero-caption {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    color: #fff;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-1 {
    display: inline-block;
    padding: 8px 16px;
    font-family: "Roboto", Sans-serif;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.25px;
    word-spacing: 1px;
    border-radius: 0;
    transition: all 0.3s ease;
    background-color: #ffb81c !important;
    color: #003594 !important;
}

.btn-2 {
    display: inline-block;
    padding: 8px 16px;
    font-family: "Roboto", Sans-serif;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.25px;
    word-spacing: 1px;
    border-radius: 0;
    transition: all 0.3s ease;
    background-color: #ffb81c !important;
    color: #003594 !important;
}

.btn-2:hover {
    background-color: #DBEEFF !important;
}

.hero-btn-secondary:hover,
.hero-btn-secondary:focus,
.hero-btn-secondary:active,
.hero-btn-secondary:visited:hover {
    background-color: #dbeeff !important;
    color: #003594 !important;
    text-decoration: none !important;
}

.hero-btn-secondary:visited {
    background-color: #ffb81c !important;
    color: #003594 !important;
}

/* Slider Controls */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #333;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background: rgba(255, 255, 255, 1);
    width: 30px;
    border-radius: 6px;
}

/* Mosaic Blocks Section */
.mosaic-section {
    padding: 60px 0;
}

.mosaic-header {
    text-align: left;
    margin-bottom: 50px;
}

/* UNIFIED SECTION TITLES */
.mosaic-section-title,
.search-title,
.cta-section-title,
.events-section-title,
.stories-section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #003594;
    text-align: left;
}

/* UNIFIED SECTION CAPTIONS */
.mosaic-section-caption,
.cta-section-caption,
.events-section-caption,
.stories-section-caption {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin: 10px 0 0 0;
    max-width: 900px;
}

/* Mosaic caption specific layout */
.mosaic-section-caption {
    margin: 10px 0 0 0;
}

.mosaic-section-caption {
    /* max-width already set in unified block */
}

/* Mosaic grid/layout */
.mosaic-section-caption {
    /* kept for clarity; unified styles above */
}

.mosaic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Featured Story (Left Large Block) */
.mosaic-featured {
    background: #003594;
    color: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mosaic-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.mosaic-featured .mosaic-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.mosaic-featured .mosaic-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.mosaic-featured .mosaic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mosaic-featured:hover .mosaic-image img {
    transform: scale(1.05);
}

.mosaic-featured .mosaic-content {
    padding: 30px;
}

.mosaic-featured .mosaic-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.3;
}

.mosaic-button {
    display: inline-block;
    font-family: "Roboto", Sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    background-color: #ffb81c;
    color: #003594;
}

/* Right Sidebar */
.mosaic-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Contact Enrollment (Top Right) */
.mosaic-contact {
    background: #dbeeff;
    padding: 30px;
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mosaic-contact:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Bottom Row (Event + Info) */
.mosaic-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mosaic-event {
    background: #ffb81c;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mosaic-info {
    background: #003594;
    color: #fff;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mosaic-event:hover,
.mosaic-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.mosaic-block .mosaic-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.mosaic-block .mosaic-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    text-decoration: underline;
}

.mosaic-contact .mosaic-title {
    color: #fff !important;
}

.mosaic-event .mosaic-title {
    color: #003594 !important;
}

.mosaic-info .mosaic-title {
    color: #fff !important;
}

.mosaic-block .mosaic-description {
    line-height: 1.6;
    margin-bottom: 15px;
}

.mosaic-contact .mosaic-description {
    color: #003594 !important;
}

.mosaic-event .mosaic-description {
    color: #003594 !important;
}

.mosaic-info .mosaic-description {
    color: #fff !important;
}

.mosaic-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: bold;
}

.mosaic-arrow {
    display: inline-flex;
    align-items: center;
}

.mosaic-arrow-icon-1 {
    width: 24px;
    height: 14px;
    fill: #003594;
    transition: fill 0.3s ease;
}

.mosaic-arrow-icon-2 {
    width: 24px;
    height: 14px;
    fill: #003594;
    transition: fill 0.3s ease;
}

.mosaic-arrow-icon-3 {
    width: 24px;
    height: 14px;
    fill: #ffffff;
    transition: fill 0.3s ease;
}

/* Make the whole mosaic block turn gold on hover */
.mosaic-block:hover,
.mosaic-featured:hover {
    color: #ffb81c !important;
}

.mosaic-block:hover .mosaic-arrow-icon,
.mosaic-featured:hover .mosaic-arrow-icon {
    fill: #ffb81c !important;
}


/* Search Section */
.search-section {
    padding: 60px 0;
    background: #003594;
    position: relative;
}

/* search-title now unified above */

/* Search bar layout */
.search-bar {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    position: relative;
}

.search-input {
   flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #0066cc;
}

.search-button {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #0052a3;
}

/* Search Results Dropdown */
.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    margin-top: 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
}

.search-loading,
.search-no-results,
.search-error {
    padding: 20px;
    text-align: center;
    color: #666;
}

.search-error {
    color: #d63638;
}

.search-results-list {
    padding: 10px 0;
}

.search-result-item {
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item a {
    display: flex;
    gap: 15px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.search-result-item a:hover {
    background: #f9f9f9;
}

.result-image {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-content {
    flex: 1;
}

.result-parent {
    font-size: 12px;
    color: #0066cc;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.result-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

@media (min-width: 769px) {
    .result-title {
        font-size: 24px;
    }
}

.result-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.search-view-all {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    background: #f9f9f9;
}

.search-view-all a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.search-view-all a:hover {
    text-decoration: underline;
}

/* CTA Blocks Section */
.cta-section {
    padding: 60px 0;
}

.cta-header {
    text-align: left;
    margin-bottom: 50px;
}

/* cta-section-title & caption unified above */

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cta-block {
    background: #fff;
    border: 4px solid #003594;
    padding: 30px;
    text-align: left;
    transition: all 0.3s ease;
}

.cta-block:hover {
    background: #003594;
    transform: translateY(-5px);
    border: 4px solid #ffb81c;
}

.cta-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cta-icon {
    margin-bottom: 20px;
}

.cta-icon img {
    max-width: 80px;
    height: auto;
}

.cta-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #003594;
}

.cta-block:hover .cta-title {
    color: #ffb81c !important;
}

.cta-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.cta-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-arrow-icon {
    width: 24px;
    height: 14px;
    fill: #003594;
}

.cta-block:hover .cta-arrow-icon {
    fill: #ffb81c!important;
}

.cta-block:hover .cta-link,
.cta-block:hover .cta-content {
    color: #ffb81c !important;
}

/* Events Section */
.events-section {
    padding: 60px 0;
    background: #dbeeff;
}

.events-header {
    text-align: left;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* events-section-title & caption unified above */

.events-button {
    display: inline-block;
    font-family: "Roboto", Sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.25px;
    background-color: #003594 !important;
    color: #fff !important;
    border-radius: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.events-button:hover {
    background-color: #002570 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.events-widget {
    margin-top: 30px;
    max-width: 100%;
    overflow-x: hidden;
}

.events-widget * {
    max-width: 100%;
    box-sizing: border-box;
}

.events-widget img {
    height: auto;
}

/* Force Localist widget to be responsive */
#localist-widget-26064745,
.localist-widget {
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
}

#localist-widget-26064745 *,
.localist-widget * {
    box-sizing: border-box !important;
}

.localist-widget .event-card,
.localist-widget .lw-card {
    max-width: 100% !important;
}

/* Stories Section */
.stories-section {
    padding: 60px 0;
    background: #fff;
}

.stories-header {
    text-align: left;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* stories-section-title & caption unified above */

.stories-button {
    display: inline-block;
    font-family: "Roboto", Sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.25px;
    background-color: #003594 !important;
    color: #fff !important;
    border-radius: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.stories-button:hover {
    background-color: #002570 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.story-card {
    background: #003594!important;
    color: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius:0!important;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.story-link {
    display: block;
    text-decoration: none;
    height: 100%;
}

.story-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-content {
    padding: 25px;
}

.story-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #fff !important;
    min-height: 50px;
}

.story-button {
    display: inline-block;
    font-family: "Roboto", Sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    background-color: #ffb81c;
    color: #003594;
}

/* Responsive */
@media (max-width: 992px) {
    .mosaic-grid {
        grid-template-columns: 1fr;
    }
    
    .mosaic-bottom-row {
        grid-template-columns: 1fr;
    }
    
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-caption {
        font-size: 16px;
    }
    
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    /* UNIFIED MOBILE SIZE FOR SECTION TITLES */
    .mosaic-section-title,
    .search-title,
    .cta-section-title,
    .events-section-title,
    .stories-section-title {
        font-size: 28px;
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
}

/* MOBILE OVERRIDES FOR SECTION TITLES & CAPTIONS */
@media (max-width: 768px) {

    /* All section titles smaller + left aligned */
    .mosaic-section-title,
    .shrs-search-title,
    .cta-section-title,
    .events-section-title,
    .stories-section-title {
        font-size: 34px !important;
        text-align: left !important;
    }

    /* All section captions left aligned */
    .mosaic-section-caption,
    .cta-section-caption,
    .events-section-caption,
    .stories-section-caption {
        text-align: left !important;
    }
}