* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #111111;
}

/* Navbar */
.navbar {
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.logo h2 {
    color: #8B0000;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}
/*desktop*/
.hamburger{
    display: none;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: #111111;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: #8B0000;
}

.login-btn,
.signup-btn,
.btn-primary,
.btn-secondary {
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s ease;
    font-weight: 600;
}

.login-btn {
    border: 1px solid #8B0000;
    color: #8B0000;
}

.signup-btn,
.btn-primary {
    background: #8B0000;
    color: white;
}

.signup-btn:hover,
.btn-primary:hover {
    background: #6f0000;
}

.btn-secondary {
    border: 1px solid #D4AF37;
    color: #D4AF37;
}

.btn-secondary:hover {
    background: #D4AF37;
    color: white;
}

/* Hero */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
                url('/static/images/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 0 8%;
}

.hero-content {
    max-width: 700px;
    color: white;
}

.hero-content h1 {
    font-size: 60px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #f5f5f5;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Categories */
.categories {
    padding: 80px 8%;
    background: #f8f8f8;
    text-align: center;
}

.categories h2 {
    font-size: 38px;
    margin-bottom: 40px;
    color: #111111;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.category-card {
    background: white;
    padding: 35px 20px;
    border-radius: 18px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    background: #8B0000;
    color: white;
}

/* Offers */
.offers-section {
    padding: 80px 8%;
}

.offers-section h2 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 40px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.offer-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-10px);
}

.offer-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.offer-content {
    padding: 20px;
}

.offer-content h3 {
    margin-bottom: 10px;
    color: #111111;
}

.offer-content p {
    color: #666;
    margin-bottom: 15px;
}

.offer-content span {
    color: #8B0000;
    font-weight: 700;
}

/* Footer */
.footer {
    background: #111111;
    color: white;
    padding: 60px 8%;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.footer-box h3 {
    margin-bottom: 20px;
    color: #D4AF37;
}

.footer-box a {
    display: block;
    color: #ddd;
    text-decoration: none;
    margin-bottom: 10px;
}

.footer-box a:hover {
    color: #D4AF37;
}

/* Responsive */
@media(max-width: 768px) {

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

.alert-message {
    background: #8B0000;
    color: white;
    padding: 12px 20px;
    margin: 20px;
    border-radius: 10px;
}

.offer-detail-page {
    padding: 80px 8%;
    background: #f8f8f8;
}

.offer-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.offer-image img {
    width: 100%;
    border-radius: 20px;
    height: 500px;
    object-fit: cover;
}

.offer-info h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.offer-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.offer-meta p {
    margin-bottom: 12px;
    color: #444;
}

.offer-badge {
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 10px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-size: 14px;
}

@media(max-width: 768px) {
    .offer-detail-container {
        grid-template-columns: 1fr;
    }

    .offer-info h1 {
        font-size: 30px;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #111;
    border-radius: 5px;
    transition: 0.3s ease;
}

@media (max-width: 992px) {
    .navbar {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    padding: 12px 20px;
    position: relative;
}

    .logo {
        width: auto !important;
        margin: 0 !important;
        text-align: left !important;
        flex: 0 0 auto !important;
    }

    .logo h2 {
        margin: 0 !important;
        text-align: left !important;
        font-size: 28px;
        line-height: 1.2;
    }

    .hamburger {
        display: flex !important;
        flex-direction: column;
        flex: 0 0 auto !important;
        gap: 5px;
        cursor: pointer;
        margin-left: auto !important;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 8%;
        background: white;
        width: 260px;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        display: none;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        width: 100%;
    }
}
@media(max-width: 768px) {
    .hero-content h1 {
        font-size: 40px;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

.offer-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.signup-btn, .login-btn {
    transition: all 0.3s ease;
}

.signup-btn:hover {
    background: black;
    color: white;
    transform: scale(1.05);
}

.claim-form-box {
    margin-top: 25px;
    padding: 25px;
    background: #f8f8f8;
    border-radius: 15px;
}

.claim-form-box h3 {
    margin-bottom: 15px;
}

.claim-form-box form p {
    margin-bottom: 15px;
}

.claim-form-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

/* ===== MOBILE IMPROVEMENTS ===== */
html, body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero {
    min-height: 90vh;
}

.offer-card a {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 70px 5%;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 42px;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .categories,
    .offers-section,
    .offer-detail-page,
    .footer {
        padding-left: 5%;
        padding-right: 5%;
    }

    .offer-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
    }

    .offer-image img {
        height: 320px;
    }

    .offers-grid,
    .category-grid,
    .footer-container {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px !important;
    }

    .logo h2 {
        font-size: 22px !important;
    }

    .nav-links {
        right: 16px;
        width: 220px;
        padding: 16px;
    }

    .hero {
        padding: 60px 5%;
    }

    .hero-content h1 {
        font-size: 30px;
        line-height: 1.25;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary,
    .signup-btn,
    .login-btn {
        width: 100%;
        text-align: center;
    }

    .categories h2,
    .offers-section h2,
    .offer-info h1 {
        font-size: 26px;
    }

    .category-grid,
    .offers-grid,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .category-card {
        padding: 24px 16px;
    }

    .offer-card img {
        height: 220px;
    }

    .offer-content {
        padding: 16px;
    }

    .offer-info h1 {
        font-size: 28px;
    }

    .offer-description {
        font-size: 14px;
        line-height: 1.6;
    }

    .offer-badge {
        font-size: 13px;
        padding: 8px 14px;
    }

    .claim-form-box {
        padding: 18px;
    }

    .claim-form-box input {
        padding: 10px;
        font-size: 14px;
    }

    .footer {
        padding-top: 40px;
        padding-bottom: 30px;
    }

    .footer-box h3 {
        font-size: 18px;
    }

    .alert-message {
        top: 12px;
        right: 12px;
        left: 12px;
        margin: 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .logo h2 {
        font-size: 20px !important;
    }

    .offer-image img {
        height: 240px;
    }

    .offer-info h1,
    .categories h2,
    .offers-section h2 {
        font-size: 22px;
    }

    .nav-links {
        width: 200px;
    }
}
