/* --- Glassy Home Banner & Index Content --- */

/* 1. The Banner Container */
#banner-container-home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 2rem 0;
    width: 100%;
}

/* 2. Glassy Pane for the Main Title Block */
/* Using a stronger selector to override Tabi's defaults */
#banner-container-home #home-banner-text {
    flex: 1;
    padding: 3rem;
    border-radius: 24px;
    margin-block-end: 0; /* Remove Tabi's default bottom margin */
    
    /* The Bright Glass Effect */
    background: rgba(250, 250, 250, var(--glassy-base-opacity)); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

#banner-container-home #home-banner-text #home-banner-header {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* 3. Glassy Pane for the Image */
#banner-container-home #image-container-home {
    padding-inline-start: 0; /* Overrides Tabi's default padding */
    max-width: none;
    flex-shrink: 0;
}

#banner-container-home #image-container-home #banner-home-img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 24px;
    
    /* The Bright Glass Effect */
    background: rgba(250, 250, 250, var(--glassy-base-opacity)); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 0; 
}

/* 4. Glassy Pane for the Index Page Text (Section Content) */
#banner-home-subtitle {
    position: relative;
    z-index: 1; 
    
    /* Spacing OUTSIDE the ribbon (separates it from the hero banner and footer) */
    margin-bottom: 3rem;
    
    /* Spacing INSIDE the ribbon (The top/bottom padding you requested) */
    /* 4rem on top and bottom, 2.5rem on the left and right */
    padding: 2rem 0 !important; 
    
    /* Strip the original box background */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    
    /* Restore Tabi's typography */
    color: var(--text-color);
    font-weight: 350;
    line-height: 1.75rem;
    font-size: 1.05rem;
}

/* The Full-Width Glassy Ribbon Background */
#banner-home-subtitle::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); /* Centers the 100vw element perfectly */
    width: 100vw; /* Forces the glass to span the full screen width */
    
    /* Safely tucks behind the text, but stays above the body background */
    z-index: -1; 
    
    /* The Bright Glass Effect */
    background: rgba(250, 250, 250, var(--glassy-base-opacity)); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Ribbon styling: Only top and bottom borders */
    border-top: 1px solid var(--bcg-grad-violette-soft);
    border-bottom: 1px solid var(--bcg-grad-violette-soft);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Make links inside the text block pop */
#banner-home-subtitle a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

#banner-home-subtitle a:hover {
    opacity: 0.8;
    color: white;
}

/* --- Mobile Responsiveness --- */
@media only screen and (max-width: 800px) {
    #banner-container-home {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Make the invisible wrapper full-width and perfectly center the image */
    #banner-container-home #image-container-home {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    /* Center the image and let it scale on small screens */
    #banner-container-home #image-container-home #banner-home-img {
        width: 100%;
        max-width: 300px; /* Stops the image from getting too huge */
        height: auto;
        aspect-ratio: 1 / 1; /* Keeps it perfectly square while it scales */
    }
}



/* Title for training contents */
#featured-projects h1 {
    text-align: center;
    border: none !important;
    display: block !important;
    text-shadow: 0 0 25px #00000066;
}