/*
Theme Name: Kim Khí Thăng Long
Theme URI: https://kimkhithanglong.com
Author: Kim Khí Thăng Long
Author URI: https://kimkhithanglong.com
Description: Theme WordPress chuyên biệt cho Công ty Cổ phần Kim Khí Thăng Long
Version: 1.0.0
License: GPL v2 or later
Text Domain: kimkhi
*/

/* Các style từ index.html sẽ được đưa vào đây */

/* --- RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- HEADER --- */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    transition: background 0.3s;
}

.header.sticky {
    position: fixed;
    background: #0a1e3c;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
    white-space: nowrap;
}

.logo img {
    height: 50px;
    margin-right: 15px;
    /* Đã xóa filter: brightness(0) invert(1); để hiển thị màu gốc */
}

.main-menu {
    display: flex;
}

.main-menu li {
    margin-left: 30px;
    position: relative;
}

.main-menu a {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.main-menu a:hover {
    color: #ffcc00;
}

.main-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffcc00;
    transition: width 0.3s;
}

.main-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* --- HERO SLIDER --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 90vh;
    background-color: #000;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Đã thay đổi: Loại bỏ nền gradient đen mờ để hiển thị full màu ảnh gốc */
    background: none;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    padding-left: 50px;
    padding-top: 100px;
    /* CẬP NHẬT MỚI: Đổ bóng nhiều lớp (viền + mờ) giúp chữ nổi bật tuyệt đối trên mọi nền ảnh sáng/tối */
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.9),
        -1px -1px 2px rgba(0, 0, 0, 0.8),
        1px -1px 2px rgba(0, 0, 0, 0.8),
        -1px 1px 2px rgba(0, 0, 0, 0.8),
        0px 0px 20px rgba(0, 0, 0, 0.8);
}

/* Subtitle style with Icon inside */
.hero-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #ffcc00;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s 0.2s forwards;
}

.hero-subtitle i {
    margin-right: 10px;
    font-size: 16px;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s 0.4s forwards;
}

.hero-desc {
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 40px;
    color: #ffffff;
    /* CẬP NHẬT: Chuyển thành màu trắng tinh để tương phản tốt nhất với viền bóng đen */
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s 0.6s forwards;
}

.btn-hero {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid #fff;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s 0.8s forwards;
    text-shadow: none;
    /* Không đổ bóng cho chữ trong nút */
}

.btn-hero:hover {
    background: #ffcc00;
    border-color: #ffcc00;
    color: #000;
}

.slider-nav {
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 20;
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    /* Viền dày và sáng hơn */
    background: rgba(0, 0, 0, 0.4);
    /* Thêm nền đen mờ để nút nổi bật */
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    /* Thêm đổ bóng cho nút */
    border-radius: 4px;
    /* Bo góc nhẹ cho nút thêm mềm mại */
}

.nav-btn:hover {
    background: #ffcc00;
    border-color: #ffcc00;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.5);
    /* Đổ bóng màu vàng khi hover */
}

/* National Badge */
.national-badge {
    position: absolute;
    bottom: 40px;
    left: 65px;
    z-index: 20;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.national-badge img {
    height: 50px;
    width: auto;
}

/* --- PRESS SECTION --- */
.press-section {
    padding: 80px 0;
    background-color: #fff;
}

.section-header {
    text-align: left;
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.header-group {
    display: flex;
    flex-direction: column;
}

.section-subtitle {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    color: #ffcc00;
    font-weight: 700;
}

.section-subtitle i {
    margin-right: 8px;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    color: #0a1e3c;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}

.view-all-btn {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    transition: 0.3s;
}

.view-all-btn:hover {
    color: #0a1e3c;
}

.press-layout {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 30px;
}

/* Featured Press */
.press-featured .press-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.press-featured .card-thumb {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.press-featured .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.press-featured .press-card:hover .card-thumb img {
    transform: scale(1.05);
}

.press-featured .card-content {
    padding: 20px 0;
}

.meta-info {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.meta-info span {
    display: flex;
    align-items: center;
}

.meta-info i {
    margin-right: 5px;
    color: #ffcc00;
}

.press-featured .card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.press-featured .card-title a {
    color: #0a1e3c;
    transition: 0.3s;
}

.press-featured .card-title a:hover {
    color: #ffcc00;
}

.press-featured .card-excerpt {
    color: #555;
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* List Press */
.press-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.press-list .press-item-small {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.press-list .press-item-small:last-child {
    border-bottom: none;
}

.press-list .small-thumb {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.press-list .small-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.press-list .press-item-small:hover .small-thumb img {
    transform: scale(1.1);
}

.press-list .small-content {
    flex-grow: 1;
}

.press-list .small-title {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.press-list .small-title a {
    color: #333;
    transition: 0.3s;
}

.press-list .small-title a:hover {
    color: #0a1e3c;
}

.press-list .small-desc {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- QUALITY SECTION (MỚI) --- */
.quality-section {
    padding: 80px 0;
    background-color: #f5f7fa;
    /* Nền xám nhẹ để tách biệt với Press */
}

.quality-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Chia 2/3 và 1/3 */
    gap: 40px;
}

/* Cột trái: Chứng chỉ & Giải thưởng */
.quality-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.quality-subheading {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    color: #0a1e3c;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-left: 5px solid #ffcc00;
    padding-left: 15px;
    display: flex;
    align-items: center;
}

/* Dòng 1: 6 Chứng chỉ */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.cert-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    /* Chiều cao cố định */
    transition: transform 0.3s, box-shadow 0.3s;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #ffcc00;
}

.cert-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Dòng 2: 3 Giải thưởng */
.award-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.award-item {
    background: #fff;
    padding: 15px;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.award-item img {
    height: 100px;
    margin: 0 auto 10px;
}

.award-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

/* Cột phải: Quote & Video */
.quality-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Quote Box */
.quality-quote {
    background: #0a1e3c;
    color: #fff;
    padding: 30px;
    border-radius: 4px;
    position: relative;
    text-align: center;
}

.quality-quote::after {
    content: '\f10e';
    /* FontAwesome quote icon */
    font-family: 'FontAwesome';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 40px;
    opacity: 0.1;
}

.quality-quote blockquote {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    font-style: italic;
    position: relative;
    z-index: 2;
}

.quality-quote .quote-author {
    display: block;
    margin-top: 15px;
    font-size: 13px;
    color: #ffcc00;
    text-transform: uppercase;
    font-weight: bold;
}

/* Video Block */
.video-block {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-block:hover img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.video-block:hover .play-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.play-btn {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d0021b;
    /* Màu đỏ Youtube */
    font-size: 20px;
    animation: pulse 2s infinite;
}

.play-btn i {
    margin-left: 4px;
}

/* Căn giữa tam giác */

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-container {
    position: relative;
    width: 80%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: #000;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #ffcc00;
}

/* --- FOOTER STYLES --- */
.footer {
    background-color: #0a1e3c;
    color: #cfcfcf;
    font-size: 14px;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    /* 4 Cột */
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
    /* Đã xóa filter: brightness(0) invert(1); để hiển thị màu gốc */
}

.footer-company-name {
    font-family: 'Oswald', sans-serif;
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.footer-contact-item i {
    color: #ffcc00;
    margin-right: 10px;
    margin-top: 5px;
    width: 15px;
}

.footer-heading {
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #ffcc00;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: #ffcc00;
    padding-left: 5px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-btn:hover {
    background: #ffcc00;
    color: #000;
    transform: translateY(-3px);
}

.map-container {
    width: 100%;
    height: 150px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer-bottom {
    background-color: #051021;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: #888;
}

/* Animation */
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {

    .press-layout,
    .quality-layout {
        grid-template-columns: 1fr;
    }

    .press-featured .card-thumb {
        height: 250px;
    }

    .cert-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    /* Mobile: 3 cột 2 dòng */
    .header {
        padding: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    /* MENU MOBILE LOGIC */
    .main-menu {
        display: none;
        /* Mặc định ẩn */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0a1e3c;
        /* Màu nền menu mobile */
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    /* Class active để JS kích hoạt hiển thị */
    .main-menu.active {
        display: flex;
    }

    .main-menu li {
        margin: 10px 0;
        margin-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
    }

    .main-menu li:last-child {
        border-bottom: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-content {
        padding-left: 0;
        text-align: center;
    }

    .national-badge {
        display: none;
    }

    .hero-subtitle {
        justify-content: center;
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .award-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* --- ĐIỀU CHỈNH LOGO TRÊN MOBILE --- */
    .logo {
        font-size: 16px;
    }

    .logo img {
        height: 35px;
        margin-right: 8px;
    }

    .header-inner {
        gap: 10px;
    }

    /* --- ẨN CHỮ "XEM TẤT CẢ" TRÊN MOBILE --- */
    .view-all-btn span.text-label {
        display: none;
    }
}