/* Cinematic Full Width Headline Styling for Homepage Hero */

/* Target the specific container holding the text to ensure it spans full width */
.home .elementor-top-section:first-of-type .elementor-container,
.home .elementor-section-wrap > .elementor-section:first-child .elementor-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 2vw !important;
    padding-right: 2vw !important;
}

/* Target the subtitle/exploration text specifically to stretch across the screen */
/* Assumes this text is an h2 or h3 in the hero, or the second heading widget */
.home .elementor-widget-heading:nth-child(2) .elementor-heading-title,
.home h2.elementor-heading-title,
.home h3.elementor-heading-title {
    /* Responsive sizing based on viewport width for true edge-to-edge scaling */
    font-size: clamp(20px, 4.5vw, 90px) !important;
    font-family: 'Cinzel', serif !important;
    text-transform: uppercase !important;
    
    /* Elegant spreading */
    text-align: justify !important;
    text-align-last: justify !important; /* Force justify the last (or only) line */
    letter-spacing: 0.1vw !important; /* Use relative spacing */
    
    /* Overrides */
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    white-space: nowrap !important; /* Prevent wrapping so it forces full width */
    
    /* Cinematic effects */
    font-weight: 300 !important;
    color: #ffffff !important;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.15) !important;
    line-height: 1.2 !important;
}

/* Fallback for text-align-last in some browsers */
.home h2.elementor-heading-title::after,
.home h3.elementor-heading-title::after {
    content: "";
    display: inline-block;
    width: 100%;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    /* On tablets and smaller, if the text is too long, we must allow wrapping but keep it cinematic */
    .home .elementor-widget-heading:nth-child(2) .elementor-heading-title,
    .home h2.elementor-heading-title,
    .home h3.elementor-heading-title {
        white-space: normal !important; /* Allow wrap on smaller screens */
        text-align: center !important;
        text-align-last: center !important;
        font-size: clamp(24px, 6vw, 48px) !important;
        letter-spacing: 3px !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 767px) {
    .home .elementor-widget-heading:nth-child(2) .elementor-heading-title,
    .home h2.elementor-heading-title,
    .home h3.elementor-heading-title {
        font-size: clamp(18px, 5.5vw, 28px) !important;
        letter-spacing: 2px !important;
        padding: 0 10px;
    }
}
