/* =============================================
   INTERIOR PAGES - SHARED STYLES
   ============================================= */

/* ===== PAGE HERO ===== */
.page-hero {
    position: relative;
    height: 280px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 20, 50, 0.85) 0%,
        rgba(0, 88, 143, 0.65) 100%
    );
}

.page-hero-content {
    position: relative;
    z-index: 1;
    padding: 0 0 36px 0;
    width: 100%;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.page-breadcrumb a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.page-breadcrumb a:hover {
    color: #e8b84b;
}

.page-breadcrumb .sep {
    font-size: 0.7rem;
    opacity: 0.5;
}

.page-breadcrumb .current {
    color: #e8b84b;
    font-weight: 600;
}

.page-hero-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.page-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(232, 184, 75, 0.2);
    border: 1px solid rgba(232, 184, 75, 0.5);
    border-radius: 12px;
    color: #e8b84b;
    font-size: 1.1rem;
    margin-right: 14px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ===== SIDEBAR NAV ===== */
.sidebar-nav {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 90px;
}

.sidebar-nav-header {
    background: linear-gradient(135deg, #00588f, #0078c2);
    padding: 20px;
    text-align: center;
}

.sidebar-nav-logo {
    height: 50px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.sidebar-nav-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 0;
}

.sidebar-nav-list {
    list-style: none;
    padding: 10px 10px;
    margin: 0;
}

.sidebar-nav-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    font-size: 0.87rem;
    font-weight: 500;
    color: #374151;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-nav-list li a i {
    width: 18px;
    text-align: center;
    color: #00588f;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sidebar-nav-list li a:hover,
.sidebar-nav-list li.active a {
    background: rgba(0, 88, 143, 0.08);
    color: #00588f;
    padding-left: 18px;
}

.sidebar-nav-list li.active a {
    background: rgba(0, 88, 143, 0.12);
    font-weight: 700;
    border-left: 3px solid #00588f;
}

.sidebar-cta {
    margin: 10px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc, #e8f4fd);
    border-radius: 10px;
    border: 1px solid #bee3f8;
    text-align: center;
}

.sidebar-cta p {
    font-size: 0.82rem;
    color: #4b5563;
    margin-bottom: 10px;
}

.sidebar-cta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #00588f;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-cta a:hover {
    background: #003d66;
    color: #fff;
    transform: translateY(-1px);
}

/* ===== PRODUCT CARDS (Interior) ===== */
.product-grid .prod-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.product-grid .prod-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 88, 143, 0.14);
    border-color: #00588f;
}

.product-grid .prod-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8fafc;
}

.product-grid .prod-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-grid .prod-card:hover .prod-card-img img {
    transform: scale(1.06);
}

.product-grid .prod-card-img .prod-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #00588f;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-grid .prod-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-grid .prod-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f1923;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.product-grid .prod-card-text {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}

.product-grid .prod-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.product-grid .prod-card-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #00588f;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-grid .prod-card:hover .prod-card-link {
    gap: 8px;
}

/* ===== FEATURE LIST ===== */
.feature-section {
    padding: 60px 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.6;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li .fi {
    width: 32px;
    height: 32px;
    background: rgba(0, 88, 143, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00588f;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== SPECS TABLE ===== */
.specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.specs-table thead tr {
    background: linear-gradient(135deg, #00588f, #0078c2);
    color: #fff;
}

.specs-table thead th {
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.specs-table tbody tr {
    background: #fff;
    transition: background 0.2s;
}

.specs-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.specs-table tbody tr:hover {
    background: rgba(0, 88, 143, 0.05);
}

.specs-table tbody td {
    padding: 13px 20px;
    font-size: 0.9rem;
    color: #374151;
    border-bottom: 1px solid #e2e8f0;
}

.specs-table tbody td:first-child {
    font-weight: 600;
    color: #1e2d3d;
}

/* ===== SECTION HEADING ===== */
.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #00588f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 24px;
}

.section-heading-icon {
    width: 36px;
    height: 36px;
    background: rgba(0, 88, 143, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00588f;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ===== CONTACT BOX ===== */
.contact-info-box {
    background: linear-gradient(135deg, #00588f, #003d66);
    border-radius: 16px;
    padding: 32px;
    color: #fff;
}

.contact-info-box h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #e8b84b;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
}

.contact-info-item i {
    color: #e8b84b;
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-info-item a {
    color: rgba(255,255,255,0.85);
    transition: color 0.2s;
}

.contact-info-item a:hover {
    color: #e8b84b;
}

/* ===== CONTACT FORM ===== */
.contact-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.contact-form-card .form-label {
    font-size: 0.87rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.92rem;
    color: #374151;
    transition: all 0.2s ease;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: #00588f;
    box-shadow: 0 0 0 3px rgba(0, 88, 143, 0.12);
    outline: none;
}

.contact-form-title {
    font-weight: 800;
    color: #0f1923;
    margin-bottom: 8px;
}

.contact-form-sub {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 24px;
}

.contact-form-card .req { color: #dc2626; }

.form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 20px;
}

.form-hotline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 0.9rem;
    color: #6b7280;
}

.form-hotline a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #00588f;
    text-decoration: none;
}

.form-hotline a:hover { color: #003d66; }

.form-alert-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-weight: 600;
    font-size: 0.92rem;
}

.contact-form-card textarea {
    resize: vertical;
    min-height: 130px;
}

.btn-submit {
    background: linear-gradient(135deg, #00588f, #0078c2);
    color: #fff;
    padding: 13px 36px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #003d66, #00588f);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 88, 143, 0.35);
    color: #fff;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00588f, #0078c2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 88, 143, 0.14);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(0, 88, 143, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #00588f;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-card-icon {
    background: #00588f;
    color: #fff;
    transform: scale(1.1);
}

.service-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f1923;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #00588f;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: gap 0.2s;
}

.service-card-link:hover {
    gap: 10px;
    color: #00588f;
}

/* ===== MAP SECTION ===== */
.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.map-wrapper iframe {
    display: block;
}

/* AOS fade-left/right dịch phần tử ra ngoài khung trước khi chạy → chặn cuộn ngang */
section { overflow-x: clip; }

/* ===== HERO SUBTITLE ===== */
.page-hero:has(.page-hero-sub) { height: 340px; }

.page-hero-sub {
    max-width: 680px;
    margin: 14px 0 0;
    font-size: 1.02rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.85);
}

/* ===== LEAD PARAGRAPH ===== */
.page-lead {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 24px;
}

/* ===== HIGHLIGHT CHIPS ===== */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 40px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #e8b84b;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.highlight-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 88, 143, 0.1);
    color: #00588f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.highlight-title {
    font-weight: 800;
    color: #0f1923;
    font-size: 0.95rem;
    line-height: 1.3;
}

.highlight-text {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 2px;
}

/* ===== MEDIA FRAME ===== */
.media-frame {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 40, 80, 0.18);
}

.media-frame img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.media-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 50px;
    background: rgba(0, 30, 60, 0.82);
    backdrop-filter: blur(6px);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
}

.media-badge i { color: #e8b84b; }

/* ===== BENEFIT CARDS ===== */
.benefit-card {
    height: 100%;
    padding: 26px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-color: #00588f;
    box-shadow: 0 10px 30px rgba(0, 88, 143, 0.12);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00588f, #0078c2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.benefit-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f1923;
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

/* ===== SERVICE CARD EXTRAS ===== */
.service-card-link-wrap { text-decoration: none; display: block; height: 100%; }

.service-card-num {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 2rem;
    font-weight: 800;
    color: rgba(0, 88, 143, 0.08);
    line-height: 1;
}

/* ===== PROCESS STEPS ===== */
.process-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
}

.process-row::before {
    content: '';
    position: absolute;
    top: 34px;
    left: 10%;
    right: 10%;
    border-top: 2px dashed #bcd3e6;
}

.process-step {
    position: relative;
    text-align: center;
}

.process-icon {
    position: relative;
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #00588f;
    color: #00588f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 6px 18px rgba(0, 88, 143, 0.15);
}

.process-icon span {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e8b84b;
    color: #0f1923;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f1923;
    margin-bottom: 6px;
}

.process-step p {
    font-size: 0.84rem;
    color: #6b7280;
    margin: 0;
}

/* ===== DETAIL PAGES ===== */
.detail-body .section-heading { margin-top: 44px; }
.detail-body > .section-heading:first-child { margin-top: 0; }

.detail-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 32px;
    align-items: center;
    margin-bottom: 32px;
}

.detail-intro:not(:has(.media-frame)) { grid-template-columns: 1fr; }

.detail-intro .media-frame img { height: 340px; }

.detail-title {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 800;
    color: #0f1923;
    margin: 6px 0 16px;
    line-height: 1.25;
}

.detail-intro-text .page-lead { margin-bottom: 14px; }
.detail-intro-text .page-lead:last-child { margin-bottom: 0; }

/* Ảnh sản phẩm tách nền: hiển thị trọn, nền sáng */
.media-frame.contain {
    background: radial-gradient(circle at 50% 40%, #ffffff 0%, #eef4f9 70%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 40, 80, 0.10);
}

.media-frame.contain img { object-fit: contain; padding: 20px; }
.media-frame.small img { height: 240px; }

.feature-list.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
}

.feature-list.two-col li:nth-last-child(2):nth-child(odd) { border-bottom: none; }

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px dashed #bcd3e6;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #374151;
}

.option-item i { color: #e8b84b; flex-shrink: 0; }

.specs-wrap { overflow-x: auto; }

/* ===== CTA BAND ===== */
.cta-band { padding: 0 0 72px; }

.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    padding: 40px 44px;
    border-radius: 20px;
    background: linear-gradient(120deg, #003d66 0%, #00588f 55%, #0078c2 100%);
    color: #fff;
    box-shadow: 0 18px 48px rgba(0, 61, 102, 0.28);
}

.cta-band-inner h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.cta-band-inner p {
    margin: 0;
    color: rgba(255,255,255,0.8);
    max-width: 560px;
}

.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.cta-band-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 50px;
    background: #e8b84b;
    color: #0f1923;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.cta-band-btn:hover { background: #f3c860; color: #0f1923; transform: translateY(-2px); }

.cta-band-btn-ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.6);
}

.cta-band-btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .page-hero { height: 220px; }
    .page-hero:has(.page-hero-sub) { height: 300px; }
    .sidebar-nav { position: static; margin-bottom: 28px; }
    .process-row { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
    .process-row::before { display: none; }
    .media-frame img { height: 320px; }
    .detail-intro { grid-template-columns: 1fr; }
    .detail-intro .media-frame img { height: 300px; }
}

@media (max-width: 767px) {
    .feature-list.two-col { grid-template-columns: 1fr; }
    .feature-list.two-col li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid #f1f5f9; }
}

@media (max-width: 767px) {
    .page-hero { height: 190px; }
    .page-hero:has(.page-hero-sub) { height: 280px; }
    .page-hero-title { font-size: 1.4rem; }
    .page-hero-sub { font-size: 0.92rem; }
    .contact-form-card { padding: 24px 20px; }
    .contact-info-box { padding: 24px 20px; }
    .cta-band-inner { padding: 28px 22px; }
    .process-row { grid-template-columns: 1fr; }
}
