/* ================================
   HERO SLIDESHOW
   ================================ */

.hero-slideshow {
    position: relative;
    width: 100%;
    height: var(--hero-height);
    overflow: hidden;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.slide-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide,
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.slide.active,
.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* CSS chung cho tất cả hero slides */
.slide img,
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
    transform: scale(1.02);
    filter: brightness(1.05) contrast(1.02) saturate(1.05);
    transition: transform 0.3s ease;
}

/* CSS chung cho caption của hero slides */
.hero-slide .slide-caption {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive cho tất cả hero slides */
@media (max-width: 768px) {
    .hero-slide img {
        object-position: center center;
        transform: scale(1.05);
    }
    
    .hero-slide .slide-caption {
        padding: 1rem 1.5rem;
        max-width: 90%;
        font-size: 0.9rem;
    }

    /* On mobile: fit iframe exactly to 16:9 container, no cover crop */
    .hero-slide .video-wrapper iframe {
        width: 100%;
        height: 100%;
        min-width: unset;
        min-height: unset;
        top: 0;
        left: 0;
        transform: none;
    }
}

/* CSS riêng cho từng slide nếu cần điều chỉnh đặc biệt */
/* .hero-slide.slide-1 img { } */
/* .hero-slide.slide-2 img { } */  
/* .hero-slide.slide-3 img { } */

/* Video slide wrapper */
.hero-slide .video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
}

.hero-slide .video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Cover trick: 177.78vh × 56.25vw ensures 16:9 fills container on all screens */
    width: 177.78vh;
    height: 56.25vw;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    border: none;
    display: block;
    pointer-events: none;
}

.slide-caption {
    position: absolute;
    bottom: var(--spacing-2xl);
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-primary);
    padding: var(--spacing-lg) var(--spacing-xl);
    max-width: var(--slide-caption-max-width);
    text-align: center;
    transition: var(--btn-transition);
    opacity: 0.85;
}

.slide-caption h2 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-weight: 600;
}

.slide-caption p {
    font-size: var(--font-size-base);
    margin: 0;
    color: var(--text-light);
    line-height: 1.5;
}

/* ================================
   MAIN CONTENT LAYOUT
   ================================ */

.content-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0.25rem;
    width: 100%;
}

/* Homepage specific styling to match tour image margins */
.content-container.glass-card {
    padding: 1rem;
}

.content-wrapper {
    display: flex;
    gap: var(--content-gap);
    max-width: var(--container-max-width);
    margin: var(--spacing-lg) auto;
    padding: var(--spacing-2xl);
}

.main-content {
    flex: 3;
}

/* Full width layout for pages without sidebar */
.main-content.full-width {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ================================
   SIDEBAR
   ================================ */

.sidebar {
    flex: 1;
    min-width: 280px;
    padding: var(--spacing-xl);
}

.sidebar h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: var(--btn-border-width) solid var(--border-light);
}

.sidebar li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar a {
    color: var(--brand-primary);
    text-decoration: none;
    display: inline-block;
    font-size: var(--font-size-caption);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-xs);
    background: none;
    border: none;
    margin: 2px 0;
    transition: var(--transition-base);
}

.sidebar a:hover {
    text-decoration: none;
    color: var(--brand-secondary);
}

.sidebar strong {
    color: var(--text-primary);
}

.sidebar i {
    color: var(--brand-primary);
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.sidebar .section div {
    margin-top: 1rem;
}

.sidebar .section a {
    margin-right: 0.5rem;
}

/* Sidebar formatting for dates and meta info */
.sidebar ul li small {
    margin-left: 10px;
    color: #666;
    display: block;
    margin-top: 3px;
}

/* ================================
   SIDEBAR WIDGET
   ================================ */

.sidebar-widget {
    background: var(--glass-bg-sidebar);
    border: var(--btn-border-width) solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    backdrop-filter: var(--glass-blur-light);
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.sidebar-widget p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    line-height: 1.5;
}

.sidebar-widget .contact-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.sidebar-widget .contact-buttons .btn {
    text-align: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-widget .contact-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ================================
   SERVICES CONTAINER
   ================================ */

.services-slider-container {
    position: relative;
    width: 100%;
}

/* ================================
   CONTACT SYSTEM
   ================================ */

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.contact-buttons a {
    margin: 0;
}