:root {
    --primary-dark: #002b2d;
    --dark-green: #00302e;
    --accent-orange: #ff7d50;
    --border-light: #e0e0e0;
}

body {
    background-color: #fcfcfc;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Banner Section */

.banner-section {
    /* Change contain to cover */
    background-image: url("./assets/images/main-banner.png");
    background-size: 100%;
    background-repeat: no-repeat;
    /* background-position: center center; */
     /* Center it so the important parts stay visible */
    padding-bottom: 3rem;
    margin-bottom: 3rem;
    /* min-height: 450px; */
}
.first-margin {
    margin-top: -1rem;
}
.main-heading {
    font-size: 2rem;
}
.main-heading-para {
    font-size: 1rem;
}

.main-logo {
    max-height: 60px;
}

.mattress-card {
    max-width: 1050px;
    border-radius: 15px;
    background-color: #fff;
    margin-top: 40px;
    position: relative;
    overflow: visible;
    transition:
        box-shadow 0.1s ease-in-out,
        transform 0.1s ease-in-out;
    cursor: pointer;
}

/* Hover State */
.mattress-card:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.175) !important;
    transform: translateY(-2px);
}
.top-rated-card {
    border: 2px solid #ff7a4a;
}
.brand-overlap {
    position: absolute;
    top: -30px;
    left: 38%;
    transform: translateX(-50%);
    background: white;
    padding: 0 15px;
    z-index: 5;
}

.brand-img {
    height: 35px;
    width: auto;
}

.overlap-flag {
    width: 45px;
    height: auto;
}

.olympic-logo {
    width: 55px;
}

.rank-label {
    position: absolute;
    top: 0px;
    left: 0px;
    background: rgba(235, 235, 235, 0.9);
    padding: 2px 8px;
    font-weight: bold;
    border-top-left-radius: 14px;
    border-bottom-right-radius: 14px;
    font-size: 0.8rem;
    z-index: 10;
}

.main-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.score-display {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--dark-green);
    line-height: 1;
}

.text-orange {
    color: var(--accent-orange);
}

/* Buttons */
.btn-dark-green {
    background-color: var(--dark-green);
    color: white;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    width: 100%;
}

.btn-dark-green:hover {
    background-color: #004d4a;
    color: white;
}

/* Features List */
.promo-text {
    color: var(--dark-green);
}

.feature-list li {
    font-size: 0.85rem;
    margin-bottom: 7px;
    color: #444;
    padding-left: 15px;
    position: relative;
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #333;
}

.read-review-btn {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

@media (min-width: 992px) {
    .border-end-divider {
        border-right: 1px solid var(--border-light);
    }
}

@media (max-width: 991px) {
    .banner-section {
        background-size: cover;
        padding-bottom: 80px;
    }
    .brand-overlap {
        left: 50%;
    }
    .main-product-img {
        border-radius: 12px 12px 0 0;
    }
    .score-display {
        font-size: 2.8rem;
    }
    .mattress-card {
        margin-top: 20px;
    }
}

/* Footer */
.custom-footer {
    background-color: #0F3739;
    padding: 1.5rem 0;
    color: white;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

/* Styling the links to match the bold, clean look */
.nav-link {
    color: var(--text-white) !important;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1.2rem !important;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Mobile Adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 1rem;
        text-align: center;
    }
    .custom-toggler.navbar-toggler {
        border-color: rgba(255, 255, 255, 0.5);
    }
    .custom-toggler .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3 Blackboard3Cpath stroke='rgba(255,255,255, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
    }
}
