:root {
    --footer-background-color: #9a9996;
    --footer-text-color: #F9FAFB;
    --footer-link-color: #93C5FD;
    --footer-font-family: Arial, sans-serif;
    --footer-font-size: 16px;
    --footer-padding: 24px 0;
    --footer-border-top: 1px solid #374151;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f9fafb;
    color: #111827;
}

header {
    background: linear-gradient(to right, #007200, #38b000);
    padding: .5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 90%;
    justify-self: center;
    border-radius: 10px;
    margin-top: 10px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}

header h1 {
    color: white;
    font-size: 1.2rem;
}

nav button {
    margin: 0.2rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

nav button.active {
    background: white;
    color: #007200;
    font-weight: bold;
}

main {
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
}

.offers {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.offers.active {
    display: grid;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.card p {
    margin: 0.5rem 0;
    font-size: 14px;
    color: #555;
}

.price {
    font-size: 20px;
    font-weight: bold;
    margin-top: auto;
    color: #111;
}

.buy-btn {
    background: #38b000;
    color: white;
    border: none;
    padding: 0.7rem;
    border-radius: 0 0 8px 8px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 1rem;
}

.buy-btn:hover {
    background: #2a7a00;
}

@media (max-width: 600px) {
    nav {
        width: 100%;
        text-align: center;
    }
}

footer {
    background: #111827;
    /* dark background */
    color: #F9FAFB;
    padding: 2rem 1rem 1rem;
    width: 90%;
    justify-self: center;
}

/* Container for left & right */
.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    gap: 2rem;
}

/* Left */
.footer-left h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-left p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Right */
.footer-right {
    text-align: right;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.footer-link {
    display: flex;
    align-items: center;
    color: #93C5FD;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #fff;
}

.footer-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

/* Bottom */
.footer-bottom {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* On small screens stack in order */
@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        /* stack vertically */
        text-align: center;
        /* center align text */
    }

    .footer-right {
        text-align: center;
        /* override right align */
        order: 2;
        /* right part after left */
    }

    .footer-left {
        order: 1;
        /* left part first */
    }

    .footer-bottom {
        order: 3;
        /* hr + bottom content last */
    }
}
.deal-group {
  margin-bottom: 2rem;
}

.deal-title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #111;
  text-align: left; /* au center kama unataka */
}

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

/* Modal Background */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  padding-top: 80px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  background-color: rgba(0,0,0,0.5);
}

/* Modal Content */
.modal-content {
  background: #fff;
  margin: auto;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
  overflow: hidden;
}

/* Modal Header */
.modal-header {
  background: #28a745; /* green */
  color: white;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Close Button */
.close {
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  margin-left: auto; /* move it left */
}

/* Modal Body */
.modal-body {
  padding: 20px;
}

.modal-body label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

.modal-body input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.submit-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 12px;
  margin-top: 15px;
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.submit-btn:hover {
  background: #218838;
}
