/* ====================================================== */
/* --- 5. GIFTS SECTION (COMPLETE CARD STYLING) --- */
/* ====================================================== */

/* --- SECTION PADDING --- */
.gifts {
    padding: clamp(5rem, 12vw, 8rem) 0;
    text-align: center;
    width: 100%;
}

/* --- MAIN HEADER --- */
.gifts-main-heading {
    font-family: 'DM Serif Display', serif;
    color: #426A8D;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.gifts-subheading {
    font-family: 'DM Sans', sans-serif;
    color: #6C8198;
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    max-width: 800px;
    margin: 0 auto clamp(3rem, 5vw, 4rem);
}

/* --- GIFTS CONTAINER (Desktop: Side-by-Side, Mobile: Stacked) --- */
.gifts-container {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem); 
    
    display: flex; 
    justify-content: center;
    gap: clamp(2rem, 5vw, 4rem);
    flex-wrap: wrap; 
}

/* --- INDIVIDUAL GIFT CARD (The Card Styling) --- */
.gift-card {
    flex: 1 1 45%; 
    max-width: 450px; 
    
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f7f9fa 100%
    );
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: 12px;
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    /* FIX 1: Added subtle border for card definition */
    border: 1px solid #E6EBF0; 
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    margin-bottom: 1rem; 
}

.gift-card:hover {
    transform: translateY(-5px);
    /* Enhancing the hover shadow slightly for a better lift effect */
    box-shadow: 0 10px 25px rgba(66, 106, 141, 0.1); 
}

/* --- CARD TITLE (H2) --- */
.gift-title {
    font-family: 'DM Serif Display', serif;
    color: #426A8D;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    
    /* FIX: Increase top margin to add more space between the icon area and the title. 
       Using 2rem for better visual separation. */
    margin: 2rem 0 1.5rem; 
}

/* --- TEXT BOX within Card --- */
.gift-box {
    font-family: 'DM Sans', sans-serif;
    color: #6C8198; 
    line-height: 1.6;
    text-align: center;
    font-size: clamp(1rem, 1.4vw, 1.15rem); 
    font-weight: 500;
}

.gift-box p {
    margin-bottom: 1.5rem;
}

.gift-box p:last-of-type {
    margin-bottom: 2rem;
}

/* --- ICONS --- */
.gift-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    /* **THE CRITICAL FIX:** Fix the height of the icon container to ensure H2 alignment */
    height: 120px; 
    margin-bottom: 0; /* Clear out old margin since height is fixed */
}
.gift-icon img {
    width: clamp(100px, 15vw, 160px); 
    opacity: 0.85;
    filter: saturate(0.9);
    /* Remove margin here to center the image vertically within the fixed height */
    margin-bottom: 0; 
}

.gift-card:hover .gift-icon img {
    opacity: 1;
}

/* --- BUTTON STYLING --- */
.gift-btn {
    margin-top: clamp(1rem, 2vw, 1.5rem);
    background-color: #95B8D6;
    border: none;
    color: white;
    padding: clamp(0.7rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    border-radius: 50px; 
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block; 
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.gift-btn:hover {
    background-color: #7296B3; 
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 4px 12px rgba(149, 184, 214, 0.7);
}

.gift-btn:focus-visible {
    outline: 3px solid rgba(149, 184, 214, 0.6);
    outline-offset: 3px;
}

/* --- SECURE DETAILS STYLING (Hidden by default) --- */
.gift-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.gift-details.is-open {
    max-height: 500px; /* large enough for content */
    opacity: 1;
}

.gift-details p {
    /* FIX 3: Increased font size and line height for better detail readability */
    margin: 0.5rem 0;
    font-size: 1rem; 
    line-height: 1.6;
    font-weight: 400;
}

.details-note {
    font-weight: 700 !important;
    color: #426A8D;
    margin-bottom: 1rem !important;
}

.gift-btn.hidden{
    display: none;
}

/* --- MOBILE OVERRIDE (for stacking below 900px) --- */
@media (max-width: 900px) {
    .gift-card {
        flex: 0 1 90%; 
        padding: 2rem 1.5rem;
        /* FIX 4: Increased bottom margin for better separation when stacked */
        margin-bottom: 2rem; 
    }
}

@media (hover: hover) {
    .gift-card:hover {
        transform: translateY(-5px);
    }
}