/* Page Hero */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/catalogues/banner.png') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 180px 20px 100px;
    margin-top: 80px;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Catalogues Section */
.catalogues-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* 
 * 5-Item Layout (Preserved for reference)
 * 
.catalogues-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.catalogue-card {
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: #fff;
    border: none;
    padding: 0;
    margin: 0;
}

.catalogue-card:nth-child(1) { grid-column: 1; grid-row: 1; height: 300px; }
.catalogue-card:nth-child(2) { grid-column: 2; grid-row: 1; height: 300px; }
.catalogue-card:nth-child(3) { grid-column: 1; grid-row: 2; height: 250px; }
.catalogue-card:nth-child(4) { grid-column: 1; grid-row: 3; height: 250px; }
.catalogue-card:nth-child(5) { grid-column: 2; grid-row: 2 / span 2; height: 500px; }
*/

/* 6-Item Layout */
.catalogues-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.catalogue-card {
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: #fff;
    border: none;
    padding: 0;
    margin: 0;
    height: 350px;
}

/* First row - 3 items */
.catalogue-card:nth-child(1),
.catalogue-card:nth-child(2),
.catalogue-card:nth-child(3) {
    height: 350px;
}

/* Second row - 3 items */
.catalogue-card:nth-child(4),
.catalogue-card:nth-child(5),
.catalogue-card:nth-child(6) {
    height: 350px;
}

.catalogue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.catalogue-card:hover .card-inner,
.catalogue-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
    display: flex;
    flex-direction: column;
}

.card-front {
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    height: 100%;
}

.card-image {
    width: 100%;
    height: 70%;
    min-height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: 12px 12px 0 0;
    background: #f5f5f5;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.catalogue-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 0;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-front h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 0;
    padding: 0;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    width: 100%;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.card-back {
    background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
    color: white;
    transform: rotateY(180deg);
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgdmlld0JveD0iMCAwIDYwIDYwIj48cmVjdCB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4wNSIvPjwvc3ZnPg==');
    opacity: 0.1;
}

.card-back-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.card-back h3 {
    font-size: 1.5rem;
    margin: 0 0 15px;
    padding: 0;
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
    width: 100%;
}

.card-back p {
    margin: 0 0 25px;
    line-height: 1.6;
    color: #e0e0e0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    padding: 10px 25px;
    background-color: #fff;
    color: #2c3e50;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Modern CTA Button */
.banner-content .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 25px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
    position: relative;
    overflow: hidden;
}

.banner-content .cta-button span {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.banner-content .cta-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* Hover Effect */
.banner-content .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
}

.banner-content .cta-button:hover span {
    transform: translateX(3px);
}

.banner-content .cta-button:hover svg {
    transform: translateX(5px);
}

/* Active State */
.banner-content .cta-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(44, 62, 80, 0.3);
}

/* Ripple Effect */
.banner-content .cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.banner-content .cta-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(40, 40);
        opacity: 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .banner-content .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .banner-content .cta-button svg {
        width: 18px;
        height: 18px;
    }
}

/* Banner Section */
.banner-section {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), url('../assets/images/catalogues/banner-bg.jpg') no-repeat center center/cover;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.banner-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .catalogues-grid {
        max-width: 100%;
        padding: 0 20px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .catalogue-card {
        height: 300px;
    }
    
    /* Reset heights for 2-column layout */
    .catalogue-card:nth-child(1),
    .catalogue-card:nth-child(2),
    .catalogue-card:nth-child(3),
    .catalogue-card:nth-child(4),
    .catalogue-card:nth-child(5),
    .catalogue-card:nth-child(6) {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 130px 20px 40px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .catalogues-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 2px;
        padding: 0 10px;
    }
    
    .catalogue-card {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        height: 300px !important;
    }
    
    /* Reset all card heights on mobile */
    .catalogue-card:nth-child(1),
    .catalogue-card:nth-child(2),
    .catalogue-card:nth-child(3),
    .catalogue-card:nth-child(4),
    .catalogue-card:nth-child(5),
    .catalogue-card:nth-child(6) {
        height: 300px !important;
    }
    
    .banner-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .banner-content h2 {
        font-size: 1.8rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
}
