/* Modern Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    color: #ea1b25;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #e03e25;
}

/* Header & Navigation */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ea1b25;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover {
    color: #ea1b25;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ea1b25;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #ea1b25;
    color: white;
    border: 2px solid #ea1b25;
}

.btn-primary:hover {
    background-color: #e03e25;
    border-color: #e03e25;
}

.btn-outline {
    background-color: transparent;
    color: #ea1b25;
    border: 2px solid #ea1b25;
}

.btn-outline:hover {
    background-color: #FFECE9;
}

.btn-login {
    padding: 8px 20px;
    border-radius: 6px;
    background-color: #ea1b25;
    color: white;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background-color: #ea1b25;
    text-align: center;
    color: #ffffff;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #ffffff;
}

.hero-section .btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.hero-section .btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Card Grid Layout */
.card-grid, .offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.card, .offer-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-img, .offer-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.card-content, .offer-content {
    padding: 25px;
}

.offer-content h3 {
    color: #ea1b25;
    margin-bottom: 10px;
}

.business-name {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.offer-description {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.offer-category {
    display: inline-block;
    background-color: #FFECE9;
    color: #ea1b25;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.all-offers-section, .offer-detail-section {
    padding: 60px 0;
}

.filters {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Offer Detail Page Styles */
.offer-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.offer-image-gallery img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.offer-information {
    padding: 20px;
}

.offer-detail-header h1 {
    color: #ea1b25;
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.business-name-detail {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.business-name-detail a {
    color: #ea1b25;
    text-decoration: underline;
}

.offer-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.offer-category-detail {
    background-color: #FFECE9;
    color: #ea1b25;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
}

.offer-expiry {
    color: #666;
    font-size: 0.9rem;
}

.offer-information h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.offer-information h3 {
    color: #333;
    margin: 25px 0 15px;
    font-size: 1.2rem;
}

#offer-terms {
    padding-left: 20px;
    margin-bottom: 20px;
}

#offer-terms li {
    margin-bottom: 8px;
    color: #555;
}

.btn-claim-offer {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.share-offer {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.share-offer h4 {
    margin-bottom: 15px;
    color: #555;
}

.social-share-icon {
    margin-right: 10px;
}

.social-share-icon img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social-share-icon img:hover {
    transform: scale(1.1);
}

.related-offers h2 {
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .offer-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .offer-detail-header h1 {
        font-size: 2rem;
    }
}

/* Section Styling */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ea1b25;
}

/* Footer */
.site-footer {
    background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
    color: white;
    padding: 60px 0 30px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
}

.footer-column a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .section {
        padding: 50px 0;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }

/* Footer Grid Layout */
.footer {
    background-color: #2a2a2a;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    padding: 0 15px;
}

.footer-title {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-text {
    color: #bbb;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: #bbb;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #fff;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-input {
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
}

.form-input::placeholder {
    color: #999;
}

.btn-block {
    width: 100%;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.9rem;
}

/* Card Content Enhancements */
.card-content.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-lg {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Auth Form Styles */
.auth-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ea1b25;
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.form-footer a {
    color: #ea1b25;
    font-weight: 500;
}

.error-message {
    color: #e03e25;
    background-color: #FFECE9;
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Business Signup Page Styles */
.business-signup-section {
    padding: 40px 0;
}

.signup-header {
    margin-bottom: 50px;
}

.signup-header h1 {
    color: #ea1b25;
    margin-bottom: 15px;
}

.signup-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.signup-benefits {
    margin-bottom: 60px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.benefit-card {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.benefit-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

.signup-form-container {
    max-width: 600px;
    margin: 0 auto 60px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: #ea1b25;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 2px;
}

.signup-info {
    background-color: #f8f9fa;
    padding: 50px 0;
    border-radius: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.info-section {
    padding: 0 20px;
}

.info-section h3 {
    color: #ea1b25;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.info-section ol,
.info-section ul {
    padding-left: 20px;
}

.info-section li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.5;
}

.info-section ul li {
    list-style: none;
    position: relative;
    padding-left: 0;
}

/* Form Validation Styles */
.form-group input.error,
.form-group textarea.error {
    border-color: #e03e25;
    background-color: #fff5f5;
}

.form-group .error-text {
    color: #e03e25;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.form-group input.success,
.form-group textarea.success {
    border-color: #28a745;
    background-color: #f8fff9;
}

/* Loading State */
.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message Styles */
.success-message {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 auto 25px;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message h3 {
    color: #28a745;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.success-message p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.success-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn {
    min-width: 160px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .signup-form-container {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .signup-header h1 {
        font-size: 2rem;
    }

    .benefit-card {
        padding: 20px 15px;
    }

    .benefit-icon {
        font-size: 2.5rem;
    }
}


select, button{
    padding: 10px;
    border-radius: 6px;
}


input[type="submit"]{


    color: #fff;
    background: #ea1b25;
    padding: 10px;
    border-radius: 6px;
    border: none;

}


