/* Google Font Import: Ubuntu */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap');

/* Base Styles & Global Font */
body {
    font-family: 'Ubuntu', sans-serif; /* Apply Ubuntu to all text */
    margin: 0;
    padding-top: 100px; /* Space for the fixed navigation bar */
    background-color: #f4f4f4; /* Light mode background */
    color: #333; /* Light mode text color */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    position: relative; /* Needed for pseudo-elements to position relative to body */

    /* Background SVG - YOU MUST ADJUST THE PATH */
    background-image: url('path/to/your/background.svg'); /* <--- IMPORTANT: UPDATE THIS PATH */
    background-size: cover; /* or 'contain' depending on your SVG */
    background-position: center center;
    background-attachment: fixed; /* Ensures background stays fixed during scroll */
    background-repeat: no-repeat;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #2c2c2c; /* Dark mode body background */
    color: #f0f0f0; /* Dark mode text color */
}

/* Dark Mode Overlay for SVG */
body.dark-mode::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* 30% transparent black overlay */
    z-index: -1; /* Ensures it's above the SVG background but behind content */
}

body.dark-mode .navbar {
    background-color: rgba(30, 30, 30, 0.7); /* Darker transparent nav */
}

body.dark-mode .navbar-logo,
body.dark-mode .navbar-tagline { /* Dark mode for tagline */
    color: #e0e0e0;
}


body.dark-mode .navbar-links a {
    color: #e0e0e0;
}

body.dark-mode .navbar-links a:hover {
    color: #64b5f6; /* Lighter blue hover for dark mode */
}

body.dark-mode .container,
body.dark-mode .wide-container,
body.dark-mode .policy-container { /* Apply to wide container and policy container too */
    background-color: #3a3a3a; /* Darker container background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Stronger shadow */
}

/* FIX: Unreadable title in Dark Mode */
body.dark-mode .title {
    color: #f0f0f0; /* Light color for the title */
}

/* New: Dark mode for help text */
body.dark-mode .input-help-text {
    color: #ccc;
}

body.dark-mode .input-section input[type="text"] {
    background-color: #4a4a4a;
    color: #f0f0f0;
    border: 1px solid #555;
}

body.dark-mode .input-section input[type="text"]:focus {
    border-color: #64b5f6;
}

body.dark-mode .input-section button {
    background-color: #555;
    color: #f0f0f0;
    border: 1px solid #666;
}

body.dark-mode .input-section button:hover {
    background-color: #666;
}

body.dark-mode .weather-display {
    background-color: #444; /* Darker weather display background */
    border: 1px solid #555;
}

body.dark-mode .location-name {
    color: #64b5f6; /* Lighter blue for dark mode location */
}

/* Dark mode colors for the new temp layout */
body.dark-mode .current-prefix-line {
    color: #bbb; /* Dark mode color for "Currently" */
}

body.dark-mode .current-temp-value-line {
    color: #64b5f6; /* Dark mode color for temp and °F */
}

body.dark-mode .current-weather .temp-range {
    color: #bbb;
}

body.dark-mode .daily-forecasts .forecast-item {
    background-color: #4c4c4c; /* Darker forecast item background */
    border: 1px solid #585858;
}

body.dark-mode .daily-forecasts .forecast-item:hover {
    background-color: #555;
}

body.dark-mode .forecast-day {
    color: #64b5f6;
}
body.dark-mode .forecast-temp,
body.dark-mode .forecast-text,
body.dark-mode .forecast-precip {
    color: #bbb;
}

body.dark-mode .additional-info {
    border-top-color: #555;
}
body.dark-mode .additional-info p {
    font-size: 1.1em;
    color: #f0f0f0; /* Default text color in additional info */
}
body.dark-mode .additional-info span {
    font-weight: bold;
    color: #64b5f6; /* Highlight color in additional info */
}

body.dark-mode .warnings {
    border-top-color: #555;
}
body.dark-mode .warnings h3 {
    color: #ff8a80; /* Lighter red for dark mode */
}

body.dark-mode .warnings .warning-item {
    background-color: #5c2727; /* Darker red background for dark mode warnings */
    border: 1px solid #ff8a80;
    color: #fff;
}

body.dark-mode .error-message {
    background-color: #c0392b; /* Slightly darker red for dark mode error */
    color: #fff;
}


/* Navigation Bar Styles */
.navbar {
    width: 100%;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.navbar-left, .navbar-right {
    display: flex;
    align-items: center;
}

.navbar-logo-link {
    text-decoration: none; /* Removes underline from the entire link */
    display: flex;
    flex-direction: column; /* Stacks the logo and tagline */
    align-items: flex-start; /* Aligns text to the left within its container */
    line-height: 1; /* Reduces space between lines */
}

.navbar-logo {
    font-family: 'Ubuntu', sans-serif;
    font-weight: bold;
    font-size: 30pt;
    color: #333;
}

.navbar-tagline {
    font-size: 10pt; /* Specific font size */
    color: #555; /* Default color for light mode */
    margin-top: 5px; /* Small space between logo and tagline */
    white-space: nowrap; /* Prevents tagline from wrapping */
}

.navbar-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar-links li {
    margin-left: 25px;
}

.navbar-links a {
    text-decoration: none;
    font-family: 'Ubuntu', sans-serif;
    color: #555;
    font-size: 1.1em;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    color: #007bff;
}


/* Main Container (default width for index.html, etc.) */
.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 800px; /* Default max-width for main pages */
    box-sizing: border-box;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Title */
.title {
    color: #333;
    margin-bottom: 25px;
    font-size: 2.2em;
    font-weight: 700;
}

/* New: Help text below the title */
.input-help-text {
    font-size: 12pt;
    margin-top: -15px; /* Adjust to position closer to the title */
    margin-bottom: 20px; /* Space before the input section */
    color: #666;
}

/* Input Section */
.input-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.input-section input[type="text"] {
    padding: 12px 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.1em;
    width: 250px; /* Adjusted width */
    transition: border-color 0.3s ease;
}

.input-section input[type="text"]:focus {
    border-color: #007bff;
    outline: none;
}

.input-section button {
    padding: 12px 25px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.input-section button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Weather Display Section */
.weather-display {
    border-top: 1px solid #eee;
    padding-top: 30px;
    text-align: left;
    margin-top: 30px;
    transition: all 0.5s ease-in-out;
}

.weather-display.hidden {
    display: none;
    opacity: 0;
}

.location-name {
    font-size: 2.5em;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 20px;
    text-align: center;
}

/* Current Weather */
.current-weather {
    text-align: center;
    margin-bottom: 30px;
}

.current-prefix-line {
    font-size: 20pt;
    color: #555;
    margin-bottom: 5px;
    margin-top: 0;
}

.current-temp-value-line {
    font-size: 32pt;
    font-weight: bold;
    color: #007bff;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1;
}

.current-weather .temp-range {
    font-size: 1.4em;
    color: #555;
    margin-top: 10px;
}

/* Daily Forecasts */
.daily-forecasts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.forecast-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    flex: 1 1 calc(33% - 40px);
    max-width: calc(33% - 40px);
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.forecast-item:hover {
    transform: translateY(-5px);
    background-color: #f0f0f0;
}

.forecast-item p {
    margin: 5px 0;
    line-height: 1.4;
}

.forecast-day {
    font-weight: bold;
    font-size: 1.2em;
    color: #007bff;
    margin-bottom: 10px;
}

.forecast-temp {
    font-size: 1.1em;
    color: #555;
}


/* Additional Info & Warnings */
.additional-info {
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: left;
    margin-top: 20px;
    line-height: 1.6;
}

.additional-info p {
    font-size: 1.1em;
    margin-bottom: 8px;
}

.additional-info span {
    font-weight: bold;
    color: #007bff;
}

.warnings {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
}

.warnings h3 {
    color: #e74c3c;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.warnings .warning-item {
    background-color: #ffe0e0;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    font-size: 0.95em;
    line-height: 1.5;
    color: #333;
}


/* Error Message */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.error-message.hidden {
    display: none;
}


/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 15px 10px;
    }
    .navbar-right {
        margin-top: 10px;
    }
    .navbar-links li {
        margin-left: 15px;
        margin-right: 15px;
    }
    body {
        padding-top: 120px;
    }
    .container, .wide-container, .policy-container { /* Apply responsive padding to all containers */
        padding: 20px;
    }
    .title {
        font-size: 1.8em;
    }
    /* Adjusted margin for help text on smaller screens if needed */
    .input-help-text {
        margin-top: -10px;
        margin-bottom: 15px;
    }
    .input-section {
        flex-direction: column;
        gap: 10px;
    }
    .input-section input[type="text"],
    .input-section button {
        width: 100%;
        max-width: none; /* Removed max-width for full flexibility */
    }
    /* Adjusted font sizes for smaller screens if needed */
    .current-prefix-line {
        font-size: 18pt;
    }
    .current-temp-value-line {
        font-size: 28pt;
    }

    .forecast-item {
        flex: 1 1 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }

    /* Dollar Ads (formerly Sponsors) page responsive adjustments */
    .sponsors-content {
        flex-direction: column; /* Stacks columns vertically */
    }
    .sponsors-column {
        min-width: unset; /* Remove min-width when stacked */
        width: 100%; /* Take full width when stacked */
    }

    /* Free Coupons page responsive adjustments */
    .coupon-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 2 columns on tablets */
    }
    /* Search section on smaller screens */
    .search-section {
        flex-direction: column;
        gap: 10px;
    }
    .search-section input[type="text"] {
        width: 100%;
        max-width: 95%; /* Adjust width for very small screens */
    }

    /* Policy container responsive adjustments */
    .policy-container {
        padding: 20px; /* Adjust padding for smaller screens */
    }
    .policy-container h2 {
        font-size: 1.8em;
    }
    .policy-container h3 {
        font-size: 1.4em;
    }
    .policy-container p, .policy-container ul li {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .navbar-links li {
        margin-left: 10px;
        margin-right: 10px;
    }
    .forecast-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
    body {
        padding-top: 130px;
    }
    /* Further adjusted font sizes for very small screens */
    .current-prefix-line {
        font-size: 16pt;
    }
    .current-temp-value-line {
        font-size: 24pt;
    }

    /* Free Coupons page responsive adjustments */
    .coupon-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    /* About page two-column layout on mobile */
    .about-content-columns {
        flex-direction: column;
        gap: 20px; /* Adjust gap for stacking */
    }
    .about-column {
        min-width: unset; /* Remove min-width */
        width: 100%; /* Take full width */
    }
}

/* --- STYLES FOR ADVERTISE-YOUR-BUSINESS-FOR-ONE-DOLLAR.HTML --- */
/* Specific styles for the two-column layout on this page */
.sponsors-content {
    display: flex;
    flex-wrap: wrap; /* Allows columns to stack on smaller screens */
    gap: 30px; /* Space between columns */
    margin-top: 30px;
    text-align: left; /* Align text within columns to left */
}

.sponsors-column {
    flex: 1; /* Each column takes equal flexible space */
    min-width: 300px; /* Minimum width before wrapping */
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sponsors-column h3 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.sponsors-column p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

.sponsors-column ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: #555;
}

.sponsors-column ul li {
    margin-bottom: 8px;
}

/* Dark mode adjustments for sponsor columns */
body.dark-mode .sponsors-column {
    background-color: #4c4c4c;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

body.dark-mode .sponsors-column h3 {
    color: #64b5f6;
}

body.dark-mode .sponsors-column p,
body.dark-mode .sponsors-column ul li {
    color: #e0e0e0;
}

.current-sponsors-list {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

.current-sponsors-list li {
    background-color: #e0e0e0;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 5px;
    font-weight: bold;
    color: #333;
}

body.dark-mode .current-sponsors-list li {
    background-color: #555;
    color: #f0f0f0;
}


/* Placeholder for Ecwid store */
.ecwid-placeholder {
    min-height: 400px; /* Give it some vertical space */
    background-color: #ececec;
    border: 2px dashed #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #777;
    font-style: italic;
    border-radius: 8px;
    padding: 20px;
}

body.dark-mode .ecwid-placeholder {
    background-color: #333;
    border-color: #666;
    color: #aaa;
}

/* --- NEW STYLES FOR FREE-COUPONS.HTML (WIDER CONTAINER & GRID) --- */
.wide-container {
    max-width: 1200px; /* Make this container wider for 4 columns */
    width: 100%;
    margin: 20px auto; /* Centering it */
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    box-sizing: border-box;
}

/* Dark mode for the wider container */
body.dark-mode .wide-container {
    background-color: #3a3a3a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 4 columns on large, adjust on smaller */
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Basic styling for all coupon items */
.coupon-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex; /* Make it a flex container */
    flex-direction: column; /* Stack children vertically */
    justify-content: space-between; /* Pushes the button to the bottom */
    height: auto; /* Allow height to adjust based on content */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.coupon-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.coupon-item h4 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.coupon-item p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
    flex-grow: 1; /* Allows description to take available space */
}

.coupon-item .coupon-offer {
    font-weight: bold;
    color: #28a745; /* Original green, will change below */
    margin-bottom: 10px;
    font-size: 1.1em;
}

.coupon-item .coupon-info {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 15px; /* Space before the button */
}

/* Styles for the "Clip Coupon Now!" button within a coupon item */
.coupon-link-button {
    display: block; /* Make the button take full width */
    width: 100%; /* Full width */
    padding: 10px 15px;
    margin-top: 15px; /* Ensure consistent spacing from content above */
    background-color: #007bff; /* Blue color */
    color: white;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
    flex-shrink: 0; /* Prevent button from shrinking */
}

.coupon-link-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Dark mode adjustments for coupon items */
body.dark-mode .coupon-item {
    background-color: #333;
    border-color: #555;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

body.dark-mode .coupon-item h4 {
    color: #64b5f6;
}

body.dark-mode .coupon-item p,
body.dark-mode .coupon-item .coupon-info {
    color: #e0e0e0;
}

body.dark-mode .coupon-item .coupon-offer {
    color: #90ee90; /* A lighter green for dark mode, but the button will be blue */
}

body.dark-mode .coupon-link-button {
    background-color: #64b5f6; /* Lighter blue for dark mode */
    color: #333; /* Dark text for contrast on lighter blue */
}

body.dark-mode .coupon-link-button:hover {
    background-color: #2196f3; /* Even lighter blue on hover in dark mode */
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    text-align: center;
    box-sizing: border-box;
}

body.dark-mode .lightbox-content {
    background-color: #3a3a3a;
    color: #f0f0f0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

.lightbox-content h3 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2em;
}
body.dark-mode .lightbox-content h3 {
    color: #64b5f6;
}


.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8em;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.close-button:hover {
    color: #333;
}
body.dark-mode .close-button {
    color: #ccc;
}
body.dark-mode .close-button:hover {
    color: #eee;
}

/* Styles for search input and button */
.search-section {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}
.search-section input[type="text"] {
    padding: 12px 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.1em;
    width: 300px;
    max-width: 80%;
    transition: border-color 0.3s ease;
}
.search-section input[type="text"]:focus {
    border-color: #007bff;
    outline: none;
}
.search-section button {
    padding: 12px 25px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.search-section button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

body.dark-mode .search-section input[type="text"] {
    background-color: #4a4a4a;
    color: #f0f0f0;
    border: 1px solid #555;
}
body.dark-mode .search-section input[type="text"]:focus {
    border-color: #64b5f6;
}
body.dark-mode .search-section button {
    background-color: #555;
    color: #f0f0f0;
    border: 1px solid #666;
}
body.dark-mode .search-section button:hover {
    background-color: #666;
}

/* Styles for individual coupon lightbox */
#singleCouponLightbox .lightbox-content {
    max-width: 500px; /* Smaller for single coupon */
}
#singleCouponAdvertiserLink { /* Renamed for clarity in JS */
    margin-top: 20px;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-bottom: 15px;
}
#singleCouponAdvertiserLink:hover {
    background-color: #0056b3;
}

#saveCouponBtn {
    background-color: #6c757d; /* Grey for save button */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
#saveCouponBtn:hover {
    background-color: #5a6268;
}

body.dark-mode #singleCouponAdvertiserLink {
    background-color: #64b5f6;
}
body.dark-mode #singleCouponAdvertiserLink:hover {
    background-color: #4da6f5;
}
body.dark-mode #saveCouponBtn {
    background-color: #777;
}
body.dark-mode #saveCouponBtn:hover {
    background-color: #888;
}

/* No search results message */
#noResultsMessage {
    font-size: 1.2em;
    color: #e74c3c;
    margin-top: 20px;
}
body.dark-mode #noResultsMessage {
    color: #ff8a80;
}
/* --- General Button Styles --- */
/* These styles will apply to any element with class="button" */
.button {
    display: inline-block; /* Allows side-by-side placement but respects width/height */
    padding: 12px 25px; /* Standard padding */
    background-color: #007bff; /* Primary blue for light mode */
    color: white; /* White text for light mode */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none; /* Crucial for anchor tags acting as buttons */
    transition: background-color 0.2s ease, color 0.2s ease; /* Smooth transitions */
    text-align: center; /* Ensures text is centered within the button */
    /* Add any other general button styles you want here */
}

.button:hover {
    background-color: #0056b3; /* Darker blue on hover in light mode */
}

/* --- Dark Mode Button Styles (Apply to all .button elements in dark mode) --- */
body.dark-mode .button {
    background-color: #64b5f6; /* Lighter blue for dark mode */
    color: #333; /* Dark text for contrast on lighter background */
}

body.dark-mode .button:hover {
    background-color: #2196f3; /* Even lighter blue on hover in dark mode */
    color: #000; /* Even darker text on hover for contrast */
}

/* --- Specific Styles for the "Clip Coupon Now!" button --- */
/* This ensures the coupon specific button remains full-width and has its own margin-top */
.coupon-link-button {
    display: block; /* Overrides inline-block from .button, making it full width */
    width: 100%; /* Ensures it takes full width */
    padding: 10px 15px; /* Slightly different padding than general button */
    margin-top: 15px; /* Specific margin for spacing within coupon item */
    background-color: #007bff; /* Consistent blue */
    color: white;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
    flex-shrink: 0; /* Prevents button from shrinking in flex container */
}

.coupon-link-button:hover {
    background-color: #0056b3;
}

body.dark-mode .coupon-link-button {
    background-color: #64b5f6; /* Consistent lighter blue for dark mode */
    color: #333;
}

body.dark-mode .coupon-link-button:hover {
    background-color: #2196f3;
}

/* --- STYLES FOR ABOUT.HTML TWO-COLUMN LAYOUT --- */
.about-content-columns {
    display: flex;
    flex-wrap: wrap; /* Allows columns to stack on smaller screens */
    gap: 30px; /* Space between columns */
    margin-top: 30px;
    text-align: left; /* Align text within columns to left */
}

.about-column {
    flex: 1; /* Each column takes equal flexible space */
    min-width: 350px; /* Minimum width for columns before wrapping */
}

.about-column h3 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1.8em;
}

body.dark-mode .about-column h3 {
    color: #64b5f6;
}

.about-column p,
.about-column ul {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

body.dark-mode .about-column p,
body.dark-mode .about-column ul {
    color: #e0e0e0;
}

.about-column ul {
    list-style-type: disc;
    margin-left: 20px;
}

/* Adjustments for the navbar logo and tagline */
.navbar-logo-link {
    text-decoration: none; /* Removes underline from the entire link */
    display: flex;
    flex-direction: column; /* Stacks the logo and tagline */
    align-items: flex-start; /* Aligns text to the left within its container */
    line-height: 1; /* Reduces space between lines */
}

.navbar-tagline {
    font-size: 10pt; /* Specific font size */
    color: #555; /* Default color for light mode */
    margin-top: 5px; /* Small space between logo and tagline */
    white-space: nowrap; /* Prevents tagline from wrapping */
}

body.dark-mode .navbar-tagline {
    color: #ccc; /* Lighter color for dark mode */
}

/* Responsive adjustment for buttons on smaller screens */
@media (max-width: 480px) {
    .button {
        width: 100%; /* Make buttons full width on very small screens */
        box-sizing: border-box;
        margin: 10px 0; /* Stack buttons vertically on small screens */
    }
}

/* --- NEW STYLES FOR ADVERTISING AGREEMENT (.policy-container) --- */
.policy-container {
    width: 100%;
    max-width: 800px; /* Aligns with .container width */
    margin: 40px auto; /* Space above and below, auto for centering */
    padding: 30px;
    background-color: #fff; /* Light mode background */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left; /* Text aligns left */
    box-sizing: border-box;
}

body.dark-mode .policy-container {
    background-color: #3a3a3a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    color: #f0f0f0; /* Dark mode text color */
}

.policy-container h2 {
    color: #007bff;
    font-size: 2.2em;
    margin-bottom: 25px;
    text-align: center; /* Center the main heading */
    font-weight: 700;
}

body.dark-mode .policy-container h2 {
    color: #64b5f6;
}

.policy-container h3 {
    color: #007bff;
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

body.dark-mode .policy-container h3 {
    color: #64b5f6;
}

.policy-container p {
    font-size: 1.05em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333; /* Default text color */
}

body.dark-mode .policy-container p {
    color: #f0f0f0; /* Dark mode text color */
}

.policy-container ul {
    list-style-type: decimal; /* Numbered list for policy sections */
    margin-left: 25px;
    margin-bottom: 15px;
    color: #333; /* Default text color */
}

.policy-container ul li {
    line-height: 1.5;
    margin-bottom: 8px;
    font-size: 1.05em;
}

body.dark-mode .policy-container ul,
body.dark-mode .policy-container ul li {
    color: #f0f0f0; /* Dark mode text color */
}

/* Adjustment for the "I Agree" button at the bottom of the policy */
.policy-container .button {
    margin-top: 30px; /* More space above the button */
    margin-bottom: 0; /* Remove default margin from the generic button style */
}