body, html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #060E17;
    color: #fff;
    padding-top: 220px; /* Increased padding for desktop */
}

header {
    background-color: #060E17;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 0;
}

#logo {
    width: 180px;
    height: auto;
}

.navbar {
    padding: 0;
}

.navbar-nav {
    margin-left: -0.5rem;
}

.navbar-nav .nav-link {
    color: #fff;
    background-color: #060E17;
    border: 1px solid #fff;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: #fff;
    color: #007bff !important;
}

.adsense {
    background-color: #ccc;
    width: 728px;
    height: 90px;
    text-align: center;
    line-height: 90px;
}

.navbar-toggler {
    display: none;
    border-color: rgba(255,255,255,.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
    body {
        padding-top: 180px; /* Adjusted padding for mobile */
    }

    .navbar-toggler {
        display: block;
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        left: -75%;
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 15px;
        width: 75%;
        height: 100%;
        background-color: #060E17;
        z-index: 1000;
        transition: left 300ms ease-in-out;
        overflow-y: auto;
    }

    .navbar-collapse.show {
        left: 0;
    }

    .navbar-toggler {
        position: relative;
        z-index: 1001;
    }

    .navbar-nav {
        margin-top: 20px;
    }

    .navbar-nav .nav-item {
        margin-bottom: 10px;
    }
}

@media (min-width: 992px) {
    .navbar-collapse {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .adsense {
        display: none;
    }
    
    .navbar-toggler {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    #logo {
        width: 150px;
    }
}

@media (max-width: 576px) {
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        width: 100%;
        margin: 0;
        border: none;
        border-bottom: 1px solid #fff;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

.flex-grow-1 {
    flex-grow: 1;
}

main.container {
    padding-top: 30px; /* Additional spacing between header and main content */
}

footer {
    background-color: #060E17;
    padding: 1rem 0;
    margin-top: auto;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: #fff;
    margin: 0 0.5rem;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    margin: 0;
}

@media (max-width: 576px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        margin-bottom: 1rem;
    }
}

h1 {
    color: #fff;
}

.card {
    background-color: #333;
    border: none;
}

.card-body {
    color: #fff;
}

.card-title {
    font-weight: bold;
}

.card-text {
    color: #ccc;
}

.btn-primary {
    background-color: #007bff;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-outline-light {
    border-color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: #060E17;
}

#offers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.product-card {
    flex-basis: calc(33.333% - 1rem);
    margin-bottom: 1rem;
}

@media (max-width: 992px) {
    .product-card {
        flex-basis: calc(50% - 1rem);
    }
}

@media (max-width: 576px) {
    .product-card {
        flex-basis: 100%;
    }
}

.placeholder-image {
    width: 100%;
    height: 200px;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: bold;
    position: relative;
    overflow: hidden;
} 

#offers-grid .product-card:nth-child(1) .placeholder-image {
    background-image: url(../images/LENOVO-Yoga.png);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: white;
}

.placeholder-image::before {
    content: attr(data-title);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    word-wrap: break-word;
}

@media (max-width: 576px) {
    .placeholder-image {
        height: 250px;
    }
    .placeholder-image::before {
        font-size: 0.9rem;
    }
}

#offers-grid.list-view .product-card {
    flex-basis: 100%;
}

#offers-grid.list-view .product-card .card {
    display: flex;
    flex-direction: row;
}

#offers-grid.list-view .product-card .placeholder-image {
    width: 200px;
    height: 200px;
}

#offers-grid.list-view .product-card .card-body {
    flex: 1;
    padding-left: 1rem;
}

.form-group label {
    font-weight: bold;
}

button[type="submit"] {
    background-color: #ffcc00;
    border-color: #ffcc00;
    color: #060E17;
    font-weight: bold;
}

button[type="submit"]:hover {
    background-color: #e6b800;
    border-color: #e6b800;
}

.form-control {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.5rem;
    font-size: 1rem;
}

textarea.form-control {
    resize: vertical;
}

.sticky-footer {
    flex-shrink: 0;
}

.btn-group .btn {
    background-color: #060E17;
    color: #fff;
    border: 1px solid #fff;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
}

.btn-group .btn i {
    font-size: 1.2rem;
}

.btn-group .btn.active {
    background-color: #fff;
    color: #007bff;
}
