/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   BODY
========================= */
body {
    font-family: 'Inter', sans-serif;
    background:
    url('../images/bg_drone1.png') repeat;
    background-size: 200px auto; /* optional control */
    color: #1a1a1a;
    display: flex;
    flex-direction: column;

}

/* =========================
   HEADER
========================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;


}

.logo {

max-height: 80px;
    width: auto;
}

/* =========================
   MAIN CONTENT
========================= */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    text-align: center;

}

/* =========================
   CARD
========================= */
.card {
    background: #FAFAFA;
    padding: 10px;
    border-radius: 15px;
    width: 100%;
    max-width: 750px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.4s ease-in-out;
    border: 1px solid #D1DDFF
}

/* =========================
   HEADINGS
========================= */
h4 {
    font-style: italic;
    font-size: 0.8em;
    font-weight: 500;
    color: #707070;
    margin-top: 20px;
    margin-bottom: 2px;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

h2 {
letter-spacing: 0.5px;
    font-size: 2em;
    margin: 10px 0;
    line-height: normal;
    font-weight: 400;
}

/* =========================
   TRANSLATION TEXT
========================= */
.translation {
    font-size: 0.5em;
    opacity: 0.7;
    display: block;
    margin-top: 2px;
}

/* =========================
   CATEGORY IMAGE
========================= */
.category-img {
    margin: 10px 0;
    height: 110px;
    transition: transform 0.3s ease;
}

.category-img:hover {
    transform: scale(1.05);
}

/* =========================
   STATUS BADGE
========================= */
.status-badge {
    display: inline-block;
    padding: 6px 55px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
    letter-spacing: 1px;
}

/* VALID */
.status-badge.valid {
    background-color: #28a745;
    color: #ffffff;
}

/* EXPIRED */
.status-badge.expired {
    background-color: #dc3545;
    color: #ffffff;
}

/* =========================
   WELCOME / ERROR CARD
=========================
.card h2 {
    font-size: 36px;
    font-weight: 300;
}
 */
/* =========================
   ANIMATION
========================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.ad-section {
    margin: 40px auto;   /* This centers the whole section */
    text-align: center;
}

.ad-banner {
    width: 90%;

    transition: 0.3s ease;
}

.ad-banner:hover {
    transform: scale(1.02);
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 768px) {

    header {
        padding: 15px;
    }
        .logo {
	width: 45%;
        height: auto;

    }

    .card {
        padding: 25px;
    }

    h2 {
        font-size: 22px;
    }

    .category-img {
        height: 90px;
    }
}

@media (max-width: 480px) {

    .card {
        padding: 20px;
    }

    h2 {
        font-size: 22px;
    }

    .status-badge {
        font-size: 12px;
        padding: 5px 12px;
    }
}