/* GENERAL PAGE STYLE */
body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 0 25px; /* left/right margin */
    color: #333;
}

/* Softer color for italic text */
em {
    color: #777;   /* dark grey instead of black */
}

h1 {
    text-align: center;
    margin-top: 25px;
    font-size: 32px;
}

/* INDEX GRID — FULL WIDTH, SQUARE TILES */
.index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 22px;
    width: 100%;
    padding: 25px 0;
    box-sizing: border-box;
}

/* TILE — PERFECT SQUARE (now the <a> itself) */
.index-tile {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;   /* ? behaves like a link */
    color: #333;             /* ? same color as other links */
}

.index-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    text-decoration: underline;  /* ? same hover effect as links */
}

/* LOGO NORMALIZATION — slightly larger */
.index-tile img {
    width: 100%;
    height: auto;
    max-height: 65%;      /* ?? increased from 55% */
    max-width: 85%;       /* ?? increased from 80% */
    object-fit: contain;
    margin: 0 auto 10px;
    display: block;
}

/* TILE TITLE (replaces old .index-tile a) */
.tile-title {
    margin-top: auto;
    font-size: 15px;
    font-weight: bold;
    color: #333;
}

/* COUPON PAGE LAYOUT */
.coupon-card {
    display: flex;
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.coupon-left img {
    width: 260px;
    border-radius: 10px;
}

.coupon-right {
    flex: 1;
}

.promo-link {
    font-size: 18px;
    font-weight: bold;
    color: #0077cc;
    text-decoration: none;
}

.promo-link:hover {
    text-decoration: underline;
}

/* COPY BUTTON */
.copy-btn {
    padding: 6px 12px;
    background: #0077cc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.copy-btn:hover {
    background: #005fa3;
}

.copy-btn.copied {
    background: #28a745;
}

/* BACK LINK */
.back-link {
    display: inline-block;
    margin: 20px 0;
    text-decoration: none;
    color: #0077cc;
    font-size: 16px;
}

.back-link:hover {
    text-decoration: underline;
}

/* RESPONSIVE FIXES */
@media (max-width: 800px) {
    .coupon-card {
        flex-direction: column;
        text-align: center;
    }

    .coupon-left img {
        width: 200px;
        margin: 0 auto;
    }
}
