/* Hero Section CSS Template */
/* Sử dụng CSS variables từ Section Manager */

.section-hero {
    /* Layout */
    min-height: var(--hero-height, 100vh);
    padding-top: var(--hero-padding-top, 2rem);
    padding-bottom: var(--hero-padding-bottom, 2rem);
    margin-top: var(--hero-margin-top, 0);
    margin-bottom: var(--hero-margin-bottom, 0);
    
    /* Background */
    background: linear-gradient(65deg, #f8fafc 0%, #e53e3e 100%);
/*     background-image: var(--hero-background-image, none); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    
    /* Content */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: var(--hero-content-alignment, left);
}

/* Background Overlay */
.section-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--hero-overlay-color, rgba(0,0,0,0.3));
    z-index: 1;
}

/* Container */
.section-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--hero-content-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--hero-padding-horizontal, 2rem);
}

/* Hero Wrapper - 2 cột */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--hero-grid-gap, 4rem);
    align-items: center;
    min-height: calc(100vh - 4rem);
}

/* Hero Content - Cột trái */
.hero-content {
    max-width: var(--hero-content-max-width, 600px);
    padding: var(--hero-content-padding, 2rem 0);
}

/* Hero Title */
.hero-title {
    font-size: var(--hero-title-font-size, 3.5rem);
    font-weight: 800;
    color: var(--hero-title-color, #ffffff);
    margin: 0 0 var(--hero-title-margin, 1.5rem);
    line-height: 1.1;
    text-shadow: var(--hero-title-shadow, 0 2px 4px rgba(0, 0, 0, 0.7));
}

.hero-title .highlight {
    color: var(--hero-highlight-color, #007cba);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--hero-highlight-color, #007cba), transparent);
    border-radius: 2px;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: var(--hero-subtitle-font-size, 1.25rem);
    color: var(--hero-subtitle-color, #ffffff);
    margin: 0 0 var(--hero-subtitle-margin, 1.5rem);
    line-height: 1.4;
    opacity: var(--hero-subtitle-opacity, 0.95);
    text-shadow: var(--hero-subtitle-shadow, 0 1px 2px rgba(0, 0, 0, 0.7));
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Description */
.hero-description {
    font-size: var(--hero-description-font-size, 1.125rem);
    color: var(--hero-description-color, #f3f4f6);
    margin: 0 0 var(--hero-description-margin, 3rem);
    line-height: 1.7;
    opacity: var(--hero-description-opacity, 0.95);
    text-shadow: var(--hero-description-shadow, 0 1px 2px rgba(0, 0, 0, 0.7));
    max-width: var(--hero-description-max-width, 500px);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: var(--hero-button-gap, 1.5rem);
    justify-content: var(--hero-content-alignment, flex-start);
    flex-wrap: wrap;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--hero-button-padding-vertical, 1rem) var(--hero-button-padding-horizontal, 2rem);
    background-color: var(--hero-button-bg-color, #007cba);
    color: var(--hero-button-text-color, #ffffff);
    text-decoration: none;
    border-radius: var(--hero-button-border-radius, 0.5rem);
    font-weight: 600;
    font-size: var(--hero-button-font-size, 1.1rem);
    transition: all 0.3s ease;
    box-shadow: var(--hero-button-shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
    border: var(--hero-button-border, none);
    cursor: pointer;
    min-width: var(--hero-button-min-width, 180px);
    position: relative;
    overflow: hidden;
}

.hero-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.hero-button:hover::before {
    left: 100%;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--hero-button-hover-shadow, 0 8px 25px -3px rgba(0, 0, 0, 0.3));
    text-decoration: none;
    color: var(--hero-button-hover-text-color, #ffffff);
    background-color: var(--hero-button-hover-bg-color, #005a8b);
}

.hero-button.secondary {
    background-color: var(--hero-secondary-button-bg, transparent);
    color: var(--hero-secondary-button-text,#000000);
    border: var(--hero-secondary-button-border, 2px solid #000000);
}

.hero-button.secondary:hover {
    background-color: var(--hero-secondary-button-hover-bg, #ffffff);
    color: var(--hero-secondary-button-hover-text, #1a1a1a);
    transform: translateY(-3px);
}

/* Hero Visual - Cột phải */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image {
    position: relative;
    max-width: 100%;
    border-radius: var(--hero-image-border-radius, 1.5rem);
    overflow: hidden;
    box-shadow: var(--hero-image-shadow, 0 20px 40px -10px rgba(0, 0, 0, 0.4));
}

.hero-featured-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

/* Hero Video */
.hero-video {
    width: 100%;
    border-radius: var(--hero-image-border-radius, 1.5rem);
    overflow: hidden;
    box-shadow: var(--hero-image-shadow, 0 20px 40px -10px rgba(0, 0, 0, 0.4));
}

.hero-video iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-wrapper {
        gap: var(--hero-tablet-gap, 3rem);
    }
    
    .hero-title {
        font-size: calc(var(--hero-title-font-size, 3.5rem) * 0.9);
    }
    
    .hero-subtitle {
        font-size: calc(var(--hero-subtitle-font-size, 1.25rem) * 0.95);
    }
}

@media (max-width: 768px) {
    .section-hero {
        min-height: auto;
        padding-top: var(--hero-mobile-padding-top, 3rem);
        padding-bottom: var(--hero-mobile-padding-bottom, 3rem);
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: var(--hero-mobile-gap, 2rem);
        text-align: center;
    }
    
    .hero-content {
        order: 1;
        padding: var(--hero-mobile-content-padding, 1rem 0);
    }
    
    .hero-visual {
        order: 2;
    }
    
    .hero-title {
        font-size: calc(var(--hero-title-font-size, 3.5rem) * 0.7);
    }
    
    .hero-subtitle {
        font-size: calc(var(--hero-subtitle-font-size, 1.25rem) * 0.9);
    }
    
    .hero-description {
        font-size: calc(var(--hero-description-font-size, 1.125rem) * 0.9);
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-button {
        width: 100%;
        max-width: var(--hero-mobile-button-max-width, 300px);
    }
}

@media (max-width: 480px) {
    .section-hero {
        padding-top: var(--hero-mobile-small-padding-top, 2rem);
        padding-bottom: var(--hero-mobile-small-padding-bottom, 2rem);
    }
    
    .hero-title {
        font-size: calc(var(--hero-title-font-size, 3.5rem) * 0.6);
    }
    
    .hero-subtitle {
        font-size: calc(var(--hero-subtitle-font-size, 1.25rem) * 0.8);
    }
    
    .hero-description {
        font-size: calc(var(--hero-description-font-size, 1.125rem) * 0.8);
    }
    
    .hero-content {
        padding: var(--hero-mobile-small-content-padding, 0.5rem 0);
    }
    
    .hero-wrapper {
        gap: var(--hero-mobile-small-gap, 1.5rem);
    }
}

/* Light Mode Overrides */
.section-hero.light-mode {
    background-color: var(--hero-light-background-color, #f8fafc);
    color: var(--hero-light-text-color, #1f2937);
}

.section-hero.light-mode::before {
    background-color: var(--hero-light-overlay-color, rgba(255, 255, 255, 0.1));
}

.section-hero.light-mode .hero-title {
    color: var(--hero-light-title-color, #1f2937);
    text-shadow: var(--hero-light-title-shadow, 0 1px 2px rgba(0, 0, 0, 0.1));
}

.section-hero.light-mode .hero-subtitle {
    color: var(--hero-light-subtitle-color, #374151);
    text-shadow: var(--hero-light-subtitle-shadow, none);
}

.section-hero.light-mode .hero-description {
    color: var(--hero-light-description-color, #4b5563);
    text-shadow: var(--hero-light-description-shadow, none);
}

.section-hero.light-mode .hero-button.secondary {
    color: var(--hero-light-secondary-button-text, #1f2937);
    border-color: var(--hero-light-secondary-button-border, #1f2937);
}

.section-hero.light-mode .hero-button.secondary:hover {
    background-color: var(--hero-light-secondary-button-hover-bg, #1f2937);
    color: var(--hero-light-secondary-button-hover-text, #ffffff);
}

/* Animation Support */
.section-hero.animate-fadeIn {
    animation: fadeIn var(--hero-animation-duration, 1000ms) ease-out;
}

.section-hero.animate-slideUp {
    animation: slideUp var(--hero-animation-duration, 1000ms) ease-out;
}

.section-hero.animate-slideLeft {
    animation: slideLeft var(--hero-animation-duration, 1000ms) ease-out;
}

.section-hero.animate-zoomIn {
    animation: zoomIn var(--hero-animation-duration, 1000ms) ease-out;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from { 
        opacity: 0;
        transform: translateX(-30px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .section-hero {
        border: 2px solid currentColor;
    }
    
    .hero-button {
        border-width: 3px;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-description {
        text-shadow: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-button {
        transition: none;
    }
    
    .hero-button::before {
        display: none;
    }
    
    .hero-image:hover .hero-featured-image {
        transform: none;
    }
    
    .section-hero.animate-fadeIn,
    .section-hero.animate-slideUp,
    .section-hero.animate-slideLeft,
    .section-hero.animate-zoomIn {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .section-hero {
        background: white !important;
        color: black !important;
        padding: 1rem 0;
    }
    
    .section-hero::before {
        display: none;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-description {
        color: black !important;
        text-shadow: none;
    }
    
    .hero-buttons {
        display: none;
    }
}
