body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to right, #ffe5d9, #d8f3dc);
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

/* ✅ FIXED HERO IMAGE */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 85% center; /* 👈 shift crop to the right */
    border-radius: 20px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    font-size: 2.5rem;
    z-index: 2;
}

/* SECTION */
.section {
    padding: 40px 20px;
    text-align: center;
}

/* SOFT CARD */
.card {
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0px 8px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.3);
}

/* HEADINGS */
h2 {
    margin-bottom: 20px;
    font-weight: 600;
}

    h2::after {
        content: "";
        display: block;
        width: 50px;
        height: 2px;
        background: linear-gradient(to right, #ffb4a2, #b7e4c7);
        margin: 10px auto 0;
        border-radius: 5px;
    }

/* STORY */
.story {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: center;
}

/* IMAGES */
.img-card {
    width: 300px;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .img-card:hover {
        transform: translateY(-10px);
        box-shadow: 0px 10px 25px rgba(0,0,0,0.2);
    }

/* GALLERY */
.gallery {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* CEREMONY */
.ceremony-section {
    position: relative;
    background: url('/images/061438c2-df59-40f4-88bf-6a8b5720cbda.jpg') center/cover no-repeat;
    color: white;
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
}

    .ceremony-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
    }

    .ceremony-section * {
        position: relative;
        z-index: 2;
    }

/* RSVP */
.rsvp form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: auto;
}

.rsvp input, .rsvp textarea, .rsvp select {
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: #f5f5f5;
}

.rsvp button {
    background: #ffb4a2;
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

    .rsvp button:hover {
        background: #e5989b;
    }

/* ✅ QR CENTER FIX */
.qr-center {
    display: block;
    margin: 20px auto 0 auto;
}

.top-text,
.bottom-text {
    font-family: 'Brush Script MT', cursive;
    font-size: 1.5rem;
    margin: 0;
}

.main-title {
    font-size: 3rem;
    font-weight: bold;
    margin: 5px 0;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .slide.active {
        opacity: 1;
    }

@media (max-width: 768px) {

    .story {
        flex-direction: column;
        text-align: center;
    }

    .img-card {
        width: 90%;
    }

    .card {
        padding: 20px;
    }

    .hero-text {
        font-size: 1.5rem;
    }

    .main-title {
        font-size: 2rem;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.admin-link {
    color: inherit;
    opacity: 0.6;
    text-decoration: none;
    margin-left: 5px;
}

    .admin-link:hover {
        opacity: 1;
        text-decoration: underline;
    }

.error-msg {
    color: red;
    font-size: 0.8rem;
    display: none;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    .styled-table th, .styled-table td {
        border: 1px solid #ddd;
        padding: 12px;
        text-align: left;
    }

    .styled-table th {
        background-color: #ffb4a2;
        color: white;
    }

    .styled-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

    /* HEADER (FIXED VISIBILITY) */
    .styled-table th {
        background: linear-gradient(to right, #ffb4a2, #b7e4c7);
        color: #333; /* darker text */
        text-align: left;
        padding: 14px;
        font-weight: bold;
    }

    /* BODY CELLS */
    .styled-table td {
        border: 1px solid #eee;
        padding: 12px;
        vertical-align: top;
        color: #333;
    }

    /* ROW STRIPES */
    .styled-table tr:nth-child(even) {
        background-color: #fafafa;
    }

    /* HOVER EFFECT (nice touch) */
    .styled-table tr:hover {
        background-color: #f1f7f5;
    }

    /* LINKS */
    .styled-table a {
        text-decoration: none;
        font-weight: 500;
    }

        .styled-table a:hover {
            text-decoration: underline;
        }

html {
    scroll-behavior: smooth;
}