/* ===== ÉDES PILLANATOK STÍLUS ===== */
.references-section { 
    padding: 80px 20px; 
    background: #fffaf5; /* Meleg, krémes háttér */
} 

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

.section-intro p {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #8d6e63;
}

.page-title { 
    font-size: 2.5rem;
    color: #4e342e;
    margin-bottom: 10px;
} 

/* Kártya dizájn */
.reference-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 40px; 
} 

.reference-card { 
    background: #fff; 
    border-radius: 15px; 
    overflow: hidden; 
    text-decoration: none; 
    color: inherit; 
    box-shadow: 0 10px 25px rgba(192, 141, 93, 0.1); 
    transition: all 0.4s ease;
    border: 1px solid #f2e9e1;
    display: flex;
    flex-direction: column;
} 

.reference-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.reference-image { 
    width: 100%; 
    height: 100%;
    background-size: cover; 
    background-position: center; 
    transition: transform 0.6s ease;
} 

.image-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(192, 141, 93, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-btn {
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
}

.reference-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 35px rgba(192, 141, 93, 0.2); 
} 

.reference-card:hover .reference-image { transform: scale(1.1); }
.reference-card:hover .image-overlay { opacity: 1; }

.reference-content { 
    padding: 25px; 
    text-align: center;
} 

.reference-content h2 { 
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: #c08d5d;
    margin-bottom: 15px;
} 

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #c08d5d;
    font-weight: 600;
    text-transform: uppercase;
}

/* Részletes nézet galéria */
.reference-images-gallery { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
} 

.detail-image-card { 
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.detail-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-text-content {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

.description-text {
    line-height: 1.8;
    color: #5d4037;
    font-size: 1.1rem;
}

.dancing-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem !important;
}

@media (max-width: 768px) {
    .reference-grid { grid-template-columns: 1fr; }
    .dancing-title { font-size: 2.5rem !important; }
}
/* Vissza link stílusosítása */
.back-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #c08d5d; /* A cukrászda arany/barna színe */
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    padding: 5px 15px;
    border: 1px solid transparent;
    border-radius: 25px;
}

.back-link:hover {
    color: #8d6e63; /* Sötétebb barna hoverre */
    background-color: rgba(192, 141, 93, 0.1); /* Finom krémes háttér villanás */
    transform: translateX(-5px); /* Egy picit elmozdul balra, jelképezve a visszalépést */
    border-color: rgba(192, 141, 93, 0.2);
}

/* Ha a nyilat külön is akarod animálni */
.back-link::before {
    content: '';
    transition: transform 0.3s ease;
}