/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* ==========================================================================
   1. CORE LAYOUT (Xử lý khung sườn & Fix lỗi hiển thị)
   ========================================================================== */

/* Container chính của Widget */
.alphaway-project-slider {
    display: block;
    position: relative;
    padding: 30px 0; 
    overflow: visible !important; 
    z-index: 1;
}
body {
    overflow-x: hidden;
}

/* Cấu hình thẻ Slide của Swiper */
.swiper-slide {
    display: flex;
    justify-content: center;
    transition: all 0.4s ease;
}

/* Chỉ hiện rõ 2 slide đang active (Chính giữa) */
.swiper-slide-active,
.swiper-slide-active + .swiper-slide {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

/* ==========================================================================
   2. CARD STYLE (Giao diện thẻ Dự án)
   ========================================================================== */

.project-card {
    width: 550px;
    height: 310px; 
    position: relative;
    border-radius: 12px; /* Bo góc */
    overflow: hidden;
    background-color: #f0f0f0; /* Màu nền chờ */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Đổ bóng nhẹ */
    
    /* Đảm bảo hiển thị */
    opacity: 1 !important;
    visibility: visible !important;
}

/* --- Các lớp bên trong --- */

/* 1. Ảnh nền */
.card-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease; /* Hiệu ứng zoom chậm */
    z-index: 1;
}

/* 3. Nội dung chữ */
.card-content {
    position: absolute;
    bottom: 0px;
    left: 12px;
    right: 12px;
    z-index: 10;
    color: #fff;
    transition: 0.4s ease; 
    padding: 12px;
    border-radius: 8px;
}

/* ==========================================================================
   3. TYPOGRAPHY & ELEMENTS (Chi tiết nội dung)
   ========================================================================== */

/* Tiêu đề dự án */
.card-title {
    margin: 0 0 5px 0;
}
.card-title a {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    line-height: 26px;
    display: block;
}

/* Meta (Năm / Danh mục) */
.card-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.card-line {
    width: 70%; /* Ẩn line mặc định */
    height: 1px;
    background: #fff;
    margin-left: 10px;
    transition: width 0.3s ease;
}

/* Mô tả (Cắt 3 dòng & Ẩn hiện) */
.card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0;
    width: 80%;
    /* Logic cắt dòng ... */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Giới hạn 3 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* Hiệu ứng ẩn hiện */
    opacity: 0;
    max-height: 0;
    transition: all 0.5s ease;
}

/* Mũi tên (Read more) */
.card-arrow {
    position: absolute;
    bottom: 12px;
    right: 0;
    font-size: 24px;
    color: #fff;
    z-index: 11;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

/* ==========================================================================
   4. HOVER EFFECTS (Hiệu ứng khi di chuột)
   ========================================================================== */
.project-card:hover{
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.project-card:hover .card-content {
    transform: translateY(-10px); /* Đẩy nội dung lên */
}


.project-card:hover .card-desc {
    opacity: 1;
    max-height: 5em; /* Đủ chỗ cho 3 dòng */
    margin-top: 10px;
}
.project-card:hover .card-content{
    background-color: #00000040;
}



/* ==========================================================================
   5. RESPONSIVE (Mobile & Tablet)
   ========================================================================== */

@media (max-width: 1024px) {
    /* Tablet: Tắt overflow visible để gọn gàng */
    .alphaway-project-slider {
        overflow: hidden !important; 
        padding: 0 0 40px 0;
    }
    
    /* Reset trạng thái slide để hiện rõ hết */
    .swiper-slide {
        opacity: 1 !important;
        transform: scale(1) !important;
    }
    
    .project-card {
        height: 380px;
    }
}

/* Container của Breadcrumb */
.alphaway-breadcrumb {
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    /* --- SỬA ĐỔI QUAN TRỌNG Ở ĐÂY --- */
    display: block; /* Đổi từ flex sang block để text chạy dòng */
    line-height: 1.6; /* Tăng chiều cao dòng để khi xuống dòng trông thoáng hơn */
}

/* Các đường dẫn (Link) và Span, Tiêu đề */
.alphaway-breadcrumb a.breadcrumb-item,
.alphaway-breadcrumb .breadcrumb-current,
.alphaway-breadcrumb .sep {
    display: inline; /* Bắt buộc hiển thị dạng dòng (nối đuôi nhau) */
}

.alphaway-breadcrumb a.breadcrumb-item {
    color: rgba(0, 0, 0, 1);
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap; /* Giữ tên danh mục (ngắn) không bị gãy đôi */
	font-size: 14px;
	line-height: 22px;
	font-weight: 500;
	text-transform: uppercase;
}

.alphaway-breadcrumb a.breadcrumb-item:hover {
    color: #004085;
}

/* Dấu mũi tên ngăn cách */
.alphaway-breadcrumb .sep {
    margin: 0 8px; /* Khoảng cách giữa các phần */
    color: #999;
}

/* Xử lý căn giữa icon SVG khi không dùng Flexbox */
.alphaway-breadcrumb .sep svg {
    width: 5px; /* Kích thước cố định cho icon */
    height: auto;
    display: inline-block; 
    vertical-align: middle; /* Căn giữa icon so với dòng chữ */
    margin-bottom: 2px; /* Tinh chỉnh nhỏ để icon thẳng hàng mắt nhìn */
}

/* Bài viết hiện tại */
.alphaway-breadcrumb .breadcrumb-current {
    color: rgba(29, 30, 37, 1);
    font-weight: 400;
	font-size: 14px;
	line-height: 22px;
	text-transform: none;
    /* Không set white-space để nó tự xuống dòng tự nhiên */
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .alphaway-breadcrumb {
        font-size: 12px;
        line-height: 1.5;
    }
}