/* 
 * Styles for TAMNHAT Hero Banner Element
 */

.tamnhat-hero-banner {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Overlay gradient from left */
.tamnhat-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient goes from Primary Color on the left to Transparent on the right */
    background: linear-gradient(
        to right, 
        color-mix(in srgb, var(--tn-hero-overlay-color, #0a3d31) calc(var(--tn-hero-overlay-opacity, 0.85) * 100%), transparent) 0%, 
        color-mix(in srgb, var(--tn-hero-overlay-color, #0a3d31) calc(var(--tn-hero-overlay-opacity, 0.85) * 100%), transparent) 25%,
        transparent 65%
    );
    z-index: 1;
}

.tamnhat-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
    display: flex;
}

.tamnhat-hero-content {
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.tamnhat-hero-title {
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 600;
}

.tamnhat-hero-title .title-line-1,
.tamnhat-hero-title .title-line-2 {
    color: var(--tn-hero-title-color, #ceaa62);
    font-size: 42px;
    letter-spacing: 2px;
}

.tamnhat-hero-desc {
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 90%;
}

.tamnhat-hero-btn {
    display: inline-block;
    background: var(--tn-hero-title-color, #ceaa62);
    color: #000;
    padding: 12px 25px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    border: none;
}

.tamnhat-hero-btn:hover {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.tamnhat-hero-btn i {
    margin-left: 5px;
}

/* Responsive adjustments */
@media (max-width: 850px) {
    .tamnhat-hero-overlay {
        background: linear-gradient(
            to bottom,
            color-mix(in srgb, var(--primary-color) calc(var(--tn-hero-overlay-opacity, 0.85) * 100%), transparent) 0%,
            color-mix(in srgb, var(--primary-color) calc(var(--tn-hero-overlay-opacity, 0.85) * 100%), transparent) 40%,
            color-mix(in srgb, var(--primary-color) 30%, transparent) 70%,
            transparent 100%
        );
    }
    .tamnhat-hero-content {
        max-width: 100%;
        align-items: center;
        text-align: center;
        padding: 30px 15px 0;
    }
    .tamnhat-hero-banner {
        align-items: flex-start;
    }
    .tamnhat-hero-title .title-line-1,
    .tamnhat-hero-title .title-line-2 {
        font-size: 32px;
    }
    .tamnhat-hero-desc {
        max-width: 100%;
    }
}

@media (max-width: 550px) {
    .tamnhat-hero-title .title-line-1,
    .tamnhat-hero-title .title-line-2 {
        font-size: 26px;
    }
    .tamnhat-hero-desc {
        font-size: 14px;
    }
}
