header {
    background: #8b3e2f;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 10px 20px;
    column-gap: 40px;
    color: white;
}

h1 { color: #fff8f0; margin: 0 0 0 20px; }

.nav-links {
    display: flex;
    gap: 50px;
}

.nav-links a {
    color: #fff8f0;
    text-decoration: none;
    font-weight: bold;
}

.nav-links a:hover { text-decoration: underline; color: #ffd6a5; }

.login-btn {
    background: #e8491d;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.login-btn:hover { background: rgb(50,179,199); }

footer {
    background: #35424a;
    color: #fff;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    z-index: 1;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-left { flex: 1; min-width: 220px; }

.footer-left h3 { margin-top: 0; }

.footer-left p, .footer-left a {
    color: #fff;
    text-decoration: none;
    margin: 4px 0;
}

.social-icons { margin-top: 10px; }

.social-icons a { display: inline-block; margin-right: 10px; }

.social-icons img {
    width: 24px;
    height: 24px;
    filter: invert(1);
    vertical-align: middle;
}

.footer-right {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    max-width: 320px;
}

.contact-form label { align-self: flex-start; margin-top: 8px; }

.contact-form textarea,
.contact-form input[type="email"] {
    width: 100%;
    padding: 6px;
    margin-top: 4px;
    border-radius: 4px;
    border: none;
    resize: vertical;
}

.contact-form button {
    margin-top: 10px;
    padding: 8px 18px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


.flip-cards-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0 80px 0;
    position: relative;
    z-index: 2;
}

.flip-card {
    background: transparent;
    width: 260px;
    height: 340px;
    perspective: 1000px;
    position: relative;
    z-index: 3;
    margin: 0;
    padding: 0;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4,0.2,0.2,1);
    transform-style: preserve-3d;
    z-index: 4;
}

.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    overflow: hidden;
    background: #fff8f0;
}

.flip-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #fff8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-title {
    color: #8b3e2f;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-align: center;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: #ffd6a5;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.flip-card-back h3 { margin: 0 0 12px 0; }

.flip-card-back ul {
    list-style: disc inside;
    padding: 0;
    margin: 0;
}

.flip-card-back li {
    margin-bottom: 8px;
    font-size: 1.1rem;
}


.flip-card,
.flip-card-inner,
.flip-card-front,
.card-img {
    margin: 0;
    padding: 0;
}

.card-img-container {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.card-overlay-text {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 1.7rem;
    font-weight: bold;
    background: rgba(0,0,0,0.45);
    padding: 12px 0;
    letter-spacing: 1px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    pointer-events: none;
}