/* Reset và font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header - ĐÃ SỬA LOGO */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6572 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 80px;
    overflow: visible !important;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 2.5rem;
    color: #ffd166;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.logo-text {
    flex: 1;
    min-width: 0;
}

.logo-text h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.logo-text span {
    color: #ffd166;
}

.logo-text p {
    font-size: 0.9rem;
    color: #b0bec5;
    margin-top: 5px;
}

.nav-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Gallery grid - ĐÃ SỬA */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.gallery-item {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 10px;
    display: block;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.03);
}

.gallery-info {
    padding: 20px;
    background-color: white;
    border-top: 1px solid #eee;
}

.gallery-date, .gallery-price {
    font-size: 0.95rem;
    color: #666;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-date i {
    color: #2a9d8f;
}

.gallery-price i {
    color: #d62828;
}

.gallery-price span {
    font-weight: 600;
    color: #d62828;
}

/* Price badge */
.price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #d62828;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(214, 40, 40, 0.3);
    z-index: 2;
}

/* Nút xem ảnh lớn */
.view-image-btn {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background-color: #4fc3f7;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.view-image-btn:hover {
    background-color: #29b6f6;
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.page-numbers {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.page-link {
    padding: 12px 20px;
    background-color: #2a9d8f;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-link:hover {
    background-color: #21867a;
    transform: translateY(-2px);
}

.page-number, .current-page {
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
}

.page-number {
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-number:hover {
    background-color: #ddd;
}

.current-page {
    background-color: #d62828;
    color: white;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    color: #d62828;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 12px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #d62828, #ff9a00);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 3rem;
    color: #d62828;
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-price {
    background-color: #f0f7ff;
    color: #2a9d8f;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-block;
    border: 2px dashed #2a9d8f;
}

/* Footer */
footer {
    margin-top: 50px;
    padding: 50px 0 20px;
    background: linear-gradient(to right, #2c3e50, #4a6572);
    color: white;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffd166;
}

.footer-logo p {
    color: #b0bec5;
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4:after, .footer-contact h4:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #ffd166;
    bottom: 0;
    left: 0;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0bec5;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #ffd166;
    padding-left: 5px;
}

.footer-contact p {
    color: #b0bec5;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: #ffd166;
    width: 20px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0bec5;
    font-size: 0.95rem;
}

/* Gallery controls */
.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.image-count {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    font-weight: 600;
    color: #444;
}

.sort-options select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background-color: white;
    font-size: 1rem;
    cursor: pointer;
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Responsive */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        justify-content: center;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .section-title h2 {
        font-size: 2.3rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        min-height: auto;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
        white-space: normal;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
    
    .gallery-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .services {
        grid-template-columns: 1fr;
    }
    
    .nav-links a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .page-numbers {
        justify-content: center;
    }
    
    .page-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}
/* Phân trang - đảm bảo hiển thị rõ */
.pagination {
    z-index: 100 !important;
    position: relative !important;
}

.page-numbers {
    z-index: 100 !important;
    position: relative !important;
}

.page-link, .page-number, .current-page {
    z-index: 100 !important;
    position: relative !important;
}

/* Đảm bảo nội dung không bị che */
.gallery-section {
    position: relative;
    z-index: 10;
}

.services-section {
    position: relative;
    z-index: 10;
}

.contact-banner {
    position: relative;
    z-index: 10;
}

/* Fix cho mobile */
@media (max-width: 768px) {
    .pagination {
        background: white;
        border: 1px solid #eee;
    }
    
    .page-numbers {
        justify-content: center;
        width: 100%;
    }
}