/* 
 * Saigon Bảo Tín - Home Template Styles
 * Pure CSS Implementation
 */

:root {
    --primary-color: var(--primary);
    --secondary-color: var(--secondary);
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --container-width: 1320px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Base Styles for Home */
.home-main {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

.home-container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 750px;
    background-color: var(--bg-dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 30%, rgba(15, 23, 42, 0.4) 60%, transparent);
    display: flex;
    align-items: center;
    z-index: 5;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--primary);
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.hero-title {
    color: white;
    font-size: var(--fs-hero);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title span {
    color: white;
    font-style: italic;
}

.hero-description {
    color: #e2e8f0;
    font-size: var(--fs-p);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff !important;
    box-shadow: 0 10px 15px -3px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(52, 152, 219, 0.4);
    color: #ffffff !important;
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}

.btn .material-symbols-outlined {
    color: inherit !important;
}

/* About Us Section - Synced with Boutique Layout */
.about-section.h-intro {
    background-color: var(--bg-white);
    padding: var(--section-pad-y) 0;
}

.h-intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 1024px) {
    .h-intro-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.h-intro-text {
    font-size: var(--fs-p);
    line-height: 1.8;
    color: var(--text-light);
    margin: 25px 0;
}

.h-intro-text p {
    margin-bottom: 20px;
}

.h-intro-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.h-intro-stats .stat-item {
    display: flex;
    flex-direction: column;
}

.h-intro-stats .stat-num {
    font-size: var(--fs-h2);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.h-intro-stats .stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Overlapping Images Layout */
.h-intro-images {
    position: relative;
    padding: 20px;
}

.h-intro-images .image-wrapper {
    position: relative;
    width: 100%;
}

.h-intro-images .img-large {
    width: 90%;
    height: 400px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
}

.h-intro-images .img-small {
    position: absolute;
    bottom: -30px;
    right: 0;
    width: 60%;
    height: 300px;
    object-fit: cover;
    border-radius: 24px;
    border: 8px solid #ffffff;
    box-shadow: var(--shadow-xl);
    z-index: 2;
}

@media (max-width: 768px) {
    .h-intro-stats {
        gap: 20px;
    }
    .h-intro-images .img-large {
        width: 100%;
        height: 300px;
    }
    .h-intro-images .img-small {
        width: 70%;
        height: 200px;
        bottom: -20px;
    }
}


/* Sections General */
.section-padding {
    padding: var(--section-pad-y) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: var(--fs-h1);
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-light);
    font-size: var(--fs-p);
    max-width: 700px;
    margin: 0 auto;
}

.network-section {
    background-color: var(--bg-light);
}

/* Services / Network Area */
.network-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2.5rem;
}

.network-route {
    grid-column: span 8;
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    height: 500px;
    box-shadow: var(--shadow-xl);
}

.network-route img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.network-route:hover img {
    transform: scale(1.05);
}

.route-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
}

.route-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: white;
}

.route-node {
    text-align: center;
}

.route-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.route-label.to {
    color: var(--secondary-color);
}

.route-city {
    font-size: 1.5rem;
    font-weight: 900;
}

.route-line {
    flex: 1;
    border-top: 2px dashed rgba(255, 255, 255, 0.3);
    position: relative;
}

.route-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1e293b;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-expert-card {
    grid-column: span 4;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    border-radius: 32px;
    padding: 2.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-xl);
}

.expert-title {
    font-size: 1.875rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.expert-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background-color: var(--secondary-color);
}

.contact-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
}

.contact-value {
    font-weight: 700;
}

.btn-cta {
    margin-top: 2rem;
    background-color: var(--accent);
    color: white;
    width: 100%;
    justify-content: center;
    padding: 1.25rem;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    box-shadow: 0 15px 30px rgba(250, 117, 22, 0.3);
}

.btn-cta:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Hubs and Form Layout */
.info-section {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2.5rem;
}

.hubs-column {
    grid-column: span 5;
}

.hubs-title {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hubs-title span:first-child {
    width: 48px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.hub-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    gap: 1.5rem;
}

.hub-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.hub-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background-color: rgba(52, 152, 219, 0.05);
    border-bottom-left-radius: 100%;
    margin-right: -40px;
    margin-top: -40px;
    transition: var(--transition);
}

.hub-card.nha-trang::after {
    background-color: rgba(44, 62, 80, 0.05);
}

.hub-card:hover::after {
    transform: scale(1.5);
    background-color: rgba(52, 152, 219, 0.1);
}

.hub-icon-box {
    width: 64px;
    height: 64px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(52, 152, 219, 0.2);
    flex-shrink: 0;
}

.hub-card.nha-trang .hub-icon-box {
    background-color: rgba(44, 62, 80, 0.1);
    border-color: rgba(44, 62, 80, 0.2);
}

.hub-icon-box i {
    color: var(--primary-color);
    font-size: 1.75rem;
}

.hub-card.nha-trang .hub-icon-box i {
    color: var(--secondary-color);
}

.hub-name {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.hub-address {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.hub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-decoration: none;
}

.hub-card.nha-trang .hub-link {
    color: var(--secondary-color);
}

.hub-map-placeholder {
    height: 250px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.hub-map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.2) opacity(0.5);
}

.hub-map-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hub-security-badge {
    background-color: rgba(15, 23, 42, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    backdrop-filter: blur(5px);
}

/* Contact Form */
.form-column {
    grid-column: span 7;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.form-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 2rem;
}

.form-icon-bg {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 6rem;
    color: var(--primary-color);
    opacity: 0.05;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    height: 56px;
    padding: 0 1.25rem;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    background-color: #f8fafc;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    background-color: white;
}

textarea.form-control {
    height: 150px;
    padding: 1.25rem;
    resize: none;
}

.form-submit {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.125rem;
    justify-content: center;
    border-radius: 12px;
}

/* Services Display Section */
.services-section {
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-image {
    height: 240px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex: 1;
    font-size: 0.95rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.service-link:hover {
    gap: 0.75rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .network-grid, .info-section {
        grid-template-columns: 1fr;
    }
    
    .network-route, .network-expert-card, .hubs-column, .form-column {
        grid-column: span 1;
    }
    
    .network-route {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        height: 600px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .route-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .route-line {
        display: none;
    }
}

/* Blog Section */
.blog-section {
    background-color: var(--bg-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.blog-card-thumb {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-thumb img {
    transform: scale(1.1);
}

.blog-card-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.4rem 1rem;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.blog-card-meta .material-symbols-outlined {
    font-size: 1rem;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.blog-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.blog-card:hover .blog-card-title a {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-decoration: none;
}

.blog-card-link .material-symbols-outlined {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-link .material-symbols-outlined {
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Highlights Section */
.highlights-section {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.highlight-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: 24px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.highlight-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.highlight-icon.blue { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.highlight-icon.yellow { background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%); }
.highlight-icon.green { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.highlight-icon.red { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }

.highlight-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.highlight-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }
}

.info-section-wrapper {
    background-color: var(--bg-light);
}
