﻿/* ═══════════════════════════════════════════════════════════════════════════
   GALLERY PAGE - THƯ VIỆN ẢNH & VIDEO
   Design: HEADER ĐẸP - CHUYÊN NGHIỆP - CÓ ĐIỂM NHẤN
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   1. BASE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */
.gallery-page-content {
    padding: 30px 0 50px;
    background: #f8f9fa;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

.gallery-page-content p,
.gallery-page-content li,
.gallery-page-content span,
.gallery-page-content a {
    font-size: 14px;
    line-height: 1.7;
}

.gallery-page-content h1 { font-size: 26px; font-weight: 700; line-height: 1.3; margin-bottom: 15px; font-family: 'Plus Jakarta Sans', sans-serif; }
.gallery-page-content h2 { font-size: 22px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; font-family: 'Plus Jakarta Sans', sans-serif; }
.gallery-page-content h3 { font-size: 18px; font-weight: 600; line-height: 1.4; margin-bottom: 10px; font-family: 'Plus Jakarta Sans', sans-serif; }
.gallery-page-content h4 { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; font-family: 'Plus Jakarta Sans', sans-serif; }
.gallery-page-content h5 { font-size: 15px; font-weight: 600; line-height: 1.4; font-family: 'Plus Jakarta Sans', sans-serif; }
.gallery-page-content h6 { font-size: 14px; font-weight: 600; line-height: 1.4; font-family: 'Plus Jakarta Sans', sans-serif; }

/* ═══════════════════════════════════════════════════════════════════════════
   2. SECTION HEADER - BEAUTIFUL DESIGN (GIỐNG RECRUITMENT & EVENTS)
   ═══════════════════════════════════════════════════════════════════════════ */
.gallery-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(3, 78, 162, 0.08);
}

/* ⭐ Decorative Background Pattern */
.gallery-section-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(135deg, rgba(3, 78, 162, 0.04) 0%, rgba(236, 32, 40, 0.02) 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    pointer-events: none;
}

/* ⭐ Accent Line */
.gallery-section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--ashico-blue, #034ea2) 0%, var(--ashico-red, #ec2028) 50%, var(--ashico-blue, #034ea2) 100%);
    background-size: 200% 100%;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.gallery-section-header__company {
    text-align: left;
    position: relative;
    z-index: 1;
}

.gallery-section-header__company-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    color: var(--ashico-blue, #034ea2);
    position: relative;
    display: inline-block;
}

.gallery-section-header__company-name .letter-a {
    color: var(--ashico-red, #ec2028);
    position: relative;
}

/* ⭐ Subtle glow effect on A */
.gallery-section-header__company-name .letter-a::after {
    content: 'A';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--ashico-red, #ec2028);
    filter: blur(8px);
    opacity: 0.3;
    z-index: -1;
}

.gallery-section-header__company-dots {
    display: flex;
    gap: 5px;
    margin: 10px 0;
    align-items: center;
}

.gallery-section-header__company-dots span {
    width: 8px;
    height: 8px;
    background: var(--ashico-blue, #034ea2);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.gallery-section-header__company-dots span:nth-child(2) {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--ashico-red, #ec2028), var(--ashico-blue, #034ea2));
}

.gallery-section-header:hover .gallery-section-header__company-dots span {
    transform: scale(1.2);
}

.gallery-section-header:hover .gallery-section-header__company-dots span:nth-child(1) {
    animation: dotPulse 0.5s ease 0s;
}

.gallery-section-header:hover .gallery-section-header__company-dots span:nth-child(2) {
    animation: dotPulse 0.5s ease 0.1s;
}

.gallery-section-header:hover .gallery-section-header__company-dots span:nth-child(3) {
    animation: dotPulse 0.5s ease 0.2s;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

.gallery-section-header__company-fullname {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    color: #555;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    max-width: 240px;
    line-height: 1.5;
    border-left: 2px solid var(--ashico-blue, #034ea2);
    padding-left: 10px;
}

.gallery-section-header__title {
    text-align: right;
    position: relative;
    z-index: 1;
}

.gallery-section-header__title h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ashico-blue, #034ea2);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(3, 78, 162, 0.08) 0%, rgba(236, 32, 40, 0.05) 100%);
    border-radius: 6px;
    border: 1px solid rgba(3, 78, 162, 0.15);
}

.gallery-section-header__title h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--ashico-blue, #034ea2);
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. GALLERY TABS
   ═══════════════════════════════════════════════════════════════════════════ */
.gallery-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.gallery-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.gallery-tab:hover {
    color: var(--ashico-blue, #034ea2);
    border-color: var(--ashico-blue, #034ea2);
    background: rgba(3, 78, 162, 0.05);
}

.gallery-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--ashico-blue, #034ea2), #0256b8);
    border-color: var(--ashico-blue, #034ea2);
    box-shadow: 0 4px 15px rgba(3, 78, 162, 0.3);
}

.gallery-tab i {
    font-size: 16px;
}

.gallery-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--ashico-red, #ec2028);
    border-radius: 12px;
}

.gallery-tab.active .gallery-tab__count {
    background: #fff;
    color: var(--ashico-blue, #034ea2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. GALLERY TAB CONTENT
   ═══════════════════════════════════════════════════════════════════════════ */
.gallery-tab-content {
    display: none;
}

.gallery-tab-content.active {
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. PAGINATION INFO
   ═══════════════════════════════════════════════════════════════════════════ */
.gallery-pagination-info {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. ALBUM GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.album-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 25px;
}

.album-grid--images {
    grid-template-columns: repeat(3, 1fr);
}

.album-grid--videos {
    grid-template-columns: repeat(3, 1fr);
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. ALBUM CARD
   ═══════════════════════════════════════════════════════════════════════════ */
.album-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.album-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.album-card__img {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.album-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.album-card:hover .album-card__img img {
    transform: scale(1.1);
}

.album-card__count {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(3, 78, 162, 0.9);
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.album-card__count.video {
    background: rgba(236, 32, 40, 0.9);
}

.album-card__count i {
    font-size: 10px;
}

.album-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(236, 32, 40, 0.9);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.album-card:hover .album-card__play {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--ashico-red, #ec2028);
}

.album-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(3, 78, 162, 0.7), rgba(236, 32, 40, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-card:hover .album-card__overlay {
    opacity: 1;
}

.album-card__overlay i {
    font-size: 32px;
    color: #fff;
}

.album-card__content {
    padding: 15px;
}

.album-card__title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #888;
}

.album-card__category {
    color: var(--ashico-blue, #034ea2);
    font-weight: 600;
}

.album-card__date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.album-card__date i {
    color: var(--ashico-blue, #034ea2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. GALLERY PAGINATION
   ═══════════════════════════════════════════════════════════════════════════ */
.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.gallery-pagination__btn {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.gallery-pagination__btn:hover:not(.disabled):not(.active) {
    color: var(--ashico-blue, #034ea2);
    border-color: var(--ashico-blue, #034ea2);
    background: rgba(3, 78, 162, 0.05);
}

.gallery-pagination__btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--ashico-blue, #034ea2), #0256b8);
    border-color: var(--ashico-blue, #034ea2);
    box-shadow: 0 4px 12px rgba(3, 78, 162, 0.3);
}

.gallery-pagination__btn.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f8f9fa;
    opacity: 0.5;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   9. GALLERY EMPTY STATE
   ═══════════════════════════════════════════════════════════════════════════ */
.gallery-empty {
    text-align: center;
    padding: 60px 30px;
    background: #fff;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px dashed #ddd;
}

.gallery-empty__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(3, 78, 162, 0.1) 0%, rgba(236, 32, 40, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-empty__icon i {
    font-size: 28px;
    color: var(--ashico-blue, #034ea2);
}

.gallery-empty h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.gallery-empty p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   10. GALLERY CTA SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.gallery-cta {
    background: linear-gradient(135deg, var(--ashico-blue, #034ea2) 0%, #0256b8 50%, var(--ashico-blue, #034ea2) 100%);
    background-size: 200% 100%;
    animation: ctaGradient 5s ease infinite;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-top: 30px;
}

@keyframes ctaGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.gallery-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.gallery-cta h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.gallery-cta p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
    color: #fff;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.gallery-cta__social {
    display: flex;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.gallery-cta__social-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.gallery-cta__social-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.gallery-cta__social-btn.facebook:hover {
    background: #1877f2;
}

.gallery-cta__social-btn.youtube:hover {
    background: #ff0000;
}

.gallery-cta__social-btn.linkedin:hover {
    background: #0a66c2;
}

.gallery-cta__social-btn.tiktok:hover {
    background: #000;
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. GALLERY VIEW ALL (NÚT QUAY LẠI)
   ═══════════════════════════════════════════════════════════════════════════ */
.gallery-view-all {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.gallery-view-all .thm-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--ashico-blue, #034ea2), #0256b8);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.gallery-view-all .thm-btn:hover {
    background: linear-gradient(135deg, var(--ashico-red, #ec2028), #c41e22);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 32, 40, 0.3);
    color: #fff;
}

.gallery-view-all .thm-btn--red {
    background: linear-gradient(135deg, var(--ashico-red, #ec2028), #c41e22);
}

.gallery-view-all .thm-btn--red:hover {
    background: linear-gradient(135deg, var(--ashico-blue, #034ea2), #0256b8);
    box-shadow: 0 6px 20px rgba(3, 78, 162, 0.3);
}

.gallery-view-all .thm-btn i {
    font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

/* Full HD (≥1920px) */
@media (min-width: 1920px) {
    .gallery-section-header {
        padding: 30px 35px;
    }
    
    .gallery-section-header__company-name {
        font-size: 2.1rem;
    }
    
    .gallery-section-header__title h2 {
        font-size: 1.3rem;
    }
    
    .album-card__img { height: 180px; }
}

/* Laptop (992-1365px) */
@media (min-width: 992px) and (max-width: 1365px) {
    .gallery-section-header__company-name {
        font-size: 1.6rem;
    }
    
    .gallery-section-header__title h2 {
        font-size: 1rem;
    }
    
    .album-grid--images,
    .album-grid--videos {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (768-991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .gallery-section-header {
        flex-direction: column;
        gap: 18px;
        padding: 20px;
    }
    
    .gallery-section-header__title {
        text-align: left;
    }
    
    .gallery-section-header__company-name {
        font-size: 1.5rem;
    }
    
    .gallery-section-header__company-fullname {
        max-width: 100%;
    }
    
    .gallery-tabs {
        justify-content: center;
    }
    
    .gallery-tab {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .album-grid--images,
    .album-grid--videos {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
    .gallery-section-header {
        flex-direction: column;
        gap: 15px;
        padding: 18px;
    }
    
    .gallery-section-header::before {
        display: none;
    }
    
    .gallery-section-header__title {
        text-align: left;
    }
    
    .gallery-section-header__company-name {
        font-size: 1.4rem;
    }
    
    .gallery-section-header__company-fullname {
        max-width: 100%;
        font-size: 0.65rem;
    }
    
    .gallery-section-header__title h2 {
        font-size: 0.95rem;
        padding: 6px 12px;
    }
    
    .gallery-tabs {
        flex-direction: column;
    }
    
    .gallery-tab {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .album-grid--images,
    .album-grid--videos {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .album-card__img { height: 120px; }
    .album-card__title { font-size: 12px; }
    .album-card__content { padding: 12px; }
    .album-card__play { width: 40px; height: 40px; font-size: 14px; }
    
    .gallery-pagination__btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .gallery-cta {
        padding: 25px 18px;
    }
    
    .gallery-cta h3 {
        font-size: 18px;
    }
    
    .gallery-cta p {
        font-size: 13px;
    }
    
    .gallery-cta__social-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .gallery-view-all .thm-btn {
        padding: 12px 24px;
        font-size: 13px;
    }
}

/* Extra Small (≤480px) */
@media (max-width: 480px) {
    .gallery-section-header__company-name {
        font-size: 1.25rem;
    }
    
    .gallery-section-header__title h2 {
        font-size: 0.85rem;
    }
    
    .album-grid--images,
    .album-grid--videos {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .album-card__img { height: 160px; }
    .album-card__title { font-size: 13px; }
}