/*
Theme Name: Anh Phat Mini
Theme URI: https://vlxdanhphat.com
Author: Antigravity AI
Description: A minimalist, custom-built, ultra-fast theme for Sắt Thép Anh Phát. Removes all bloat.
Version: 1.3
License: GNU General Public License v2 or later
Text Domain: anhphat-mini
*/
:root {
    --primary: #0047cc;
    --primary-light: #e6f0ff;
    --secondary: #ff6b00;
    --text-main: #1a1a1a;
    --text-light: #4a5568;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --danger: #ef4444;
    --success: #10b981;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --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);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --header-h: 90px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-h);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links { display: flex; align-items: center; }
.nav-links .ap-menu-list { display: flex !important; flex-direction: row !important; gap: 30px !important; margin: 0 !important; padding: 0 !important; list-style: none !important; align-items: center !important; }
.nav-links .ap-menu-list > li { margin: 0 !important; padding: 0 !important; display: inline-block !important; position: relative; }
.nav-links .ap-menu-list > li > a { font-weight: 500; color: var(--text-main); transition: var(--transition); display: block; white-space: nowrap; text-decoration: none; }
.nav-links .ap-menu-list > li > a:hover { color: var(--primary); }

/* Sub-menu dropdown */
.nav-links .ap-menu-list > li > .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 220px;
    padding: 6px 0;
    margin: 0;
    list-style: none;
    z-index: 999;
}
.nav-links .ap-menu-list > li:hover > .sub-menu { display: block; }
.nav-links .ap-menu-list > li > .sub-menu li { margin: 0; padding: 0; display: block; }
.nav-links .ap-menu-list > li > .sub-menu li a {
    display: block;
    padding: 10px 18px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    transition: var(--transition);
}
.nav-links .ap-menu-list > li > .sub-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #003399);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 71, 204, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 71, 204, 0.4);
}
.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover { background: var(--primary-light); }

/* Standard WP Content Layout */
.page-header {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    text-align: center;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 50px;
}
.page-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}
.post-meta {
    color: var(--text-light);
    font-size: 15px;
}

.main-content {
    padding: 60px 0;
}
.content-area {
    max-width: 800px;
    margin: 0 auto;
}
.content-area h2 { margin: 40px 0 20px; font-size: 28px; }
.content-area h3 { margin: 30px 0 15px; font-size: 22px; }
.content-area p { margin-bottom: 20px; font-size: 17px; line-height: 1.8; color: #334155; }
.content-area img { max-width: 100%; border-radius: 12px; margin: 20px 0; }

/* Posts Loop (Grid) */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.post-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--bg-light);
}
.post-content-inner {
    padding: 25px;
}
.post-content-inner h3 {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}
.post-content-inner p {
    color: var(--text-light);
    margin-bottom: 20px;
}
.read-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Footer (Shared) */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 30px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-about h3 {
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-links h4 { color: var(--white); margin-bottom: 24px; }
.footer-links ul li { margin-bottom: 12px; }
.footer-contact li { display: flex; gap: 15px; margin-bottom: 15px; }

/* 4K / UHD (≥2560px CSS px — 4K at 150% or native QHD/4K) */
@media (min-width: 2560px) {
    :root { --header-h: 130px; }
    header { padding: 30px 0; }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    /* Header: logo left, hamburger right — no wrap */
    .header-content { flex-wrap: nowrap; }
    /* Hide phone CTA button in header on mobile (floating buttons handle this) */
    .header-content > .btn { display: none; }
    .nav-toggle { display: flex; flex-shrink: 0; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        padding: 8px 0 12px;
        z-index: 999;
    }
    .nav-links.open { display: block; }
    .nav-links .ap-menu-list { flex-direction: column !important; gap: 0 !important; padding: 0 20px !important; }
    .nav-links .ap-menu-list > li > a { padding: 11px 0; border-bottom: 1px solid #f1f5f9; display: block; }
    /* Mobile sub-menu: hidden by default, expand below parent link */
    .nav-links .ap-menu-list > li > .sub-menu {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #f8fafc;
        padding: 4px 0 4px 14px;
        min-width: unset;
    }
    .nav-links .ap-menu-list > li.open > .sub-menu { display: block; }
    .nav-links .ap-menu-list > li > .sub-menu li a {
        padding: 8px 0;
        border-bottom: 1px solid #f1f5f9;
        font-size: 13px;
    }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
}

/* Pricing Page Specific Enhancements */
.page-template-default .entry-content, .page-template-page-bang-bao-gia .entry-content {
    max-width: 1000px;
    margin: 0 auto;
}

.price-table-container {
    margin-bottom: 50px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid #edf2f7;
}

.price-table-header {
    background: var(--primary);
    color: var(--white);
    padding: 20px 30px;
}

.price-table-header h3 {
    margin: 0;
    color: var(--white);
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

table.baogia {
    width: 100% !important;
    border-collapse: collapse !important;
}

table.baogia tr:first-child td {
    background: var(--bg-light) !important;
    color: var(--text-main) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 15px 25px !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

table.baogia td {
    padding: 15px 25px !important;
    border-bottom: 1px solid #edf2f7 !important;
    font-size: 15px;
    color: var(--text-main);
}

table.baogia tr:nth-child(even) {
    background-color: #fcfdfe;
}

table.baogia tr:hover {
    background-color: #f1f9ff;
}

table.baogia td strong {
    color: var(--primary);
}

/* Fix for the user's specific table content */
.entry-content table {
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    border: 1px solid #e2e8f0;
}
.entry-content th,
.entry-content td {
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    text-align: left;
}
.entry-content tr:nth-child(even) { background-color: #f8fafc; }
.entry-content th { background-color: #f1f5f9; font-weight: 700; }
.entry-content td[style*="color: #fff"] {
    background-color: var(--primary) !important;
    color: #fff !important;
    font-weight: bold;
}

/* Grid Horizontal (used in page content) */
.grid-horizontal { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; margin-top: 20px; }
.grid-horizontal > div { flex: 1; min-width: 250px; text-align: center; background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.grid-horizontal i { font-size: 48px !important; color: #0047cc; margin-bottom: 20px; display: block; }
.grid-horizontal h3 { margin-bottom: 10px; font-size: 18px; }

/* Pricing Page */
.pricing-page { background: #fcfdfe; }

.pricing-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #0047cc 0%, #00266e 100%);
    color: white;
    text-align: center;
    margin-bottom: 60px;
}

.main-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 50px;
    letter-spacing: 0.5px;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 35px 20px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.feature-icon { font-size: 40px; color: #ffcc00; margin-bottom: 20px; display: block; }
.feature-info h3 { font-size: 18px; color: white; margin-bottom: 12px; font-weight: 800; }
.feature-info p { font-size: 14px; opacity: 0.95; line-height: 1.6; margin: 0; }

.pricing-tabs { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 20px; }

.tab-btn {
    background: white;
    color: #0047cc;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid white;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tab-btn:hover { background: #ffcc00; color: #1a1a1a; border-color: #ffcc00; transform: scale(1.05); }

.pricing-page .content-area {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    margin-top: -60px;
    z-index: 10;
    position: relative;
    max-width: 1100px;
}

.pricing-cta { background: #f8fafc; padding: 80px 0; text-align: center; border-top: 1px solid #edf2f7; }
.pricing-cta h2 { color: #0047cc; font-size: 32px; font-weight: 800; margin-bottom: 20px; }
.pricing-cta p { font-size: 18px; color: var(--text-light); margin-bottom: 40px; }
.cta-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.cta-btn-call { background: #0047cc; color: white; padding: 18px 45px; border-radius: 50px; font-weight: 800; text-decoration: none; font-size: 20px; box-shadow: 0 10px 20px rgba(0, 71, 204, 0.2); }
.cta-btn-zalo { background: #22c55e; color: white; padding: 18px 45px; border-radius: 50px; font-weight: 800; text-decoration: none; font-size: 20px; box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2); }

/* Mobile Navigation Toggle — hidden on desktop, shown via media query below */
@media (min-width: 769px) {
    .nav-toggle { display: none; }
}
.nav-toggle {
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 1200px) {
    .features-grid { gap: 15px; }
}

@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); padding: 0 20px; }
    .pricing-page .content-area { padding: 30px; margin-top: -40px; }
}

@media (max-width: 576px) {
    .features-grid { grid-template-columns: 1fr; }
    .main-title { font-size: 24px; padding: 0 15px; }
    .cta-actions { flex-direction: column; }
    .tab-btn { width: 100%; text-align: center; padding: 12px; }
}
