/*
Plugin Name: Album Dự Án Bàn Giao
CSS for Front-end Slider
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* Main Wrapper for Shortcode Output to ensure scoping */
.ap-album-wrapper {
    max-width: 760px;
    margin: 0 auto;
    font-family: 'Outfit', sans-serif;
    color: #0f172a;
}

.ap-album-wrapper * {
    box-sizing: border-box;
}

.ap-album-wrapper .project-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.ap-album-wrapper .project-header {
    padding: 24px 24px 20px;
}

div#content {
    background: #f5f5f5;
}

.ap-album-wrapper .header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    background: none !important;
}

.ap-album-wrapper .project-info h2,
.ap-album-wrapper .project-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: capitalize;
    margin: 0;
    color: #0f172a;
}

.ap-album-wrapper .project-date {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.ap-album-wrapper .project-meta {
    font-size: 0.95rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ap-album-wrapper .project-meta span i {
    margin-right: 8px;
    color: #94a3b8;
    width: 16px;
    text-align: center;
}

.ap-album-wrapper .slider-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #f1f5f9;
    overflow: hidden;
}

.ap-album-wrapper .slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.ap-album-wrapper .slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.ap-album-wrapper .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ap-album-wrapper .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border: none;
    color: #1e293b;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    opacity: 0;
    z-index: 2;
}

.ap-album-wrapper .slider-wrapper:hover .slider-btn {
    opacity: 1;
}

.ap-album-wrapper .slider-btn:hover {
    background: #fff;
    color: #3b82f6;
    transform: translateY(-50%) scale(1.05);
}

.ap-album-wrapper .slider-btn.prev {
    left: 16px;
}

.ap-album-wrapper .slider-btn.next {
    right: 16px;
}

.ap-album-wrapper .slider-pagination {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.ap-album-wrapper .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ap-album-wrapper .dot.active {
    background: #fff;
    transform: scale(1.3);
}

.ap-album-wrapper .project-footer {
    padding: 24px;
}

/* Kiểu dáng cho nội dung từ Editor trong từng dự án */
.ap-album-wrapper .project-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 24px;
}

.ap-album-wrapper .project-desc p {
    margin-bottom: 12px;
    margin-top: 0;
}

.ap-album-wrapper .project-desc p:first-child {
    margin-top: 0;
}

.ap-album-wrapper .project-desc p:last-child {
    margin-bottom: 0;
}

/* Ẩn thẻ p rỗng do WordPress wpautop tạo ra */
.ap-album-wrapper .project-desc p:empty,
.ap-album-wrapper .project-desc p br:only-child {
    display: none;
}

.ap-album-wrapper .project-desc ul,
.ap-album-wrapper .project-desc ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.ap-album-wrapper .project-desc li {
    margin-bottom: 6px;
}

.ap-album-wrapper .project-desc strong,
.ap-album-wrapper .project-desc b {
    font-weight: 600;
    color: #0f172a;
}

.ap-album-wrapper .project-desc i,
.ap-album-wrapper .project-desc em {
    font-style: italic;
}

.ap-album-wrapper .project-desc a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.ap-album-wrapper .project-desc a:hover {
    text-decoration: underline;
    color: #2563eb;
}

.ap-album-wrapper .project-desc img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
}

.ap-album-wrapper .action-buttons {
    display: flex;
    gap: 24px;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

.ap-album-wrapper .action-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.ap-album-wrapper .action-btn:hover {
    color: #0f172a;
}

.ap-album-wrapper .action-btn.liked {
    color: #ef4444;
}

@media (max-width: 600px) {
    .ap-album-wrapper .slider-btn {
        opacity: 1;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .ap-album-wrapper .header-top {
        flex-direction: column;
        gap: 12px;
    }

    .ap-album-wrapper .project-date {
        align-self: flex-start;
    }
}

/* Kiểu dáng cho nội dung mô tả đầu trang (Page Intro) - Phong cách Editorial / Magazine */
.ap-intro-editorial {
    max-width: 760px;
    margin: 0 auto 60px auto;
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.85;
    position: relative;
}

.ap-intro-editorial p {
    margin-bottom: 20px;
}

.ap-intro-editorial p:first-of-type {
    color: #1e293b;
    font-weight: 400;
    line-height: 1.7;
}

.ap-intro-editorial h3 {
    color: #0f172a;
    font-size: 1.8rem;
    margin: 0 0 24px 0;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 16px;
}

.ap-intro-editorial h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3b82f6;
    border-radius: 3px;
}

.ap-intro-editorial ul {
    list-style: none;
    padding: 0;
    margin: 32px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
}

/* Xử lý lỗi WordPress tự sinh thẻ p rỗng bên trong ul do wpautop */
.ap-intro-editorial ul p,
.ap-intro-editorial ul br {
    display: none !important;
}

.ap-intro-editorial li {
    position: relative;
    padding-left: 36px;
    color: #334155;
}

.ap-intro-editorial li::before {
    content: '\f058';
    /* FontAwesome check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #3b82f6;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.25rem;
}

.ap-intro-editorial strong,
.ap-intro-editorial b {
    color: #0f172a;
    font-weight: 600;
}

.ap-intro-editorial a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.ap-intro-editorial a:hover {
    border-bottom-color: #3b82f6;
}

@media (max-width: 768px) {
    .ap-intro-editorial {
        padding: 0 20px;
        font-size: 1.05rem;
    }
}
.ap-album-load-more{text-align:center;margin:32px 0 8px}.ap-album-load-more__button{padding:13px 24px;border:1px solid #103a5c;background:#fff;color:#103a5c;font-weight:800;letter-spacing:.06em;cursor:pointer}.ap-album-load-more__button:hover{background:#f5a524;border-color:#f5a524}.ap-album-load-more__button:disabled{opacity:.65;cursor:wait}

