:root {
    --bg-main: #eef3f8;
    --bg-soft: rgba(255, 255, 255, 0.72);
    --white: #ffffff;

    --nav-dark-1: #031c33;
    --nav-dark-2: #0b3e67;
    --nav-dark-3: #1f6ea3;

    --text-main: #1c2430;
    --text-soft: #5d6a79;
    --text-light: #eaf4ff;

    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --accent: #198754;
    --accent-soft: #e8f6ee;

    --border-soft: rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 8px 30px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 12px 34px rgba(15, 23, 42, 0.10);
    --shadow-hover: 0 18px 42px rgba(15, 23, 42, 0.14);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition: all 0.28s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    background-image:
        linear-gradient(rgba(255,255,255,0.78), rgba(255,255,255,0.78)),
        url("images/texture.jpg");
    background-repeat: repeat;
    background-attachment: fixed;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    padding-top: 76px;
}

h1, h2, h3, h4, h5, h6 {
    color: #0f2740;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: clamp(2rem, 3vw, 2.7rem);
}

h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

p {
    color: var(--text-main);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.container.py-4 {
    padding-top: 2rem !important;
    padding-bottom: 3rem !important;
}

/* Navigation */

.custom-nav {
    background:
        linear-gradient(135deg, var(--nav-dark-1) 0%, var(--nav-dark-2) 55%, var(--nav-dark-3) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

.custom-nav .container {
    min-height: 72px;
}

.custom-nav .navbar-brand {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff !important;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.custom-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    padding: 0.65rem 0.9rem !important;
    border-radius: 999px;
    transition: var(--transition);
}

.custom-nav .nav-link:hover,
.custom-nav .nav-link.active {
    background: rgba(255,255,255,0.12);
    color: #ffffff !important;
    text-decoration: none;
}

.search-input {
    min-width: 240px;
    border-radius: 999px;
    padding-left: 16px;
    padding-right: 16px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    transition: var(--transition);
}

.search-input::placeholder {
    color: rgba(255,255,255,0.76);
}

.search-input:focus {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.55);
    color: #ffffff;
    box-shadow: 0 0 0 0.22rem rgba(255,255,255,0.14);
}

.search-btn {
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-width: 1px;
    transition: var(--transition);
}

.search-btn:hover {
    transform: translateY(-1px);
}

/* Banner */

.banner {
    position: relative;
    background-image:
        linear-gradient(rgba(3, 22, 39, 0.48), rgba(3, 22, 39, 0.48)),
        url("images/banner.png");
    background-size: cover;
    background-position: center;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding-left: 30px;
    color: #ffffff;
    overflow: hidden;
    box-shadow: inset 0 -40px 80px rgba(0,0,0,0.18);
}

.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top center, rgba(255,255,255,0.15), transparent 40%);
    pointer-events: none;
}

.banner .banner-tagline {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin: 0;
    padding: 0 1rem;
    text-shadow: 0 3px 14px rgba(0,0,0,0.35);
}

/* Cards */

hr.my-5 {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.15), transparent);
    margin-top: 3rem !important;
    margin-bottom: 2.5rem !important;
}

.custom-card {
    border: 1px solid var(--border-soft) !important;
    border-left: 6px solid var(--accent) !important;
    border-radius: var(--radius-md) !important;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition);
}

.custom-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card.custom-card .card-body {
    padding: 1.2rem 1.25rem !important;
}

/* Q&A Display */

.question-text {
    font-size: 1.08rem;
    font-weight: 800;
    color: #16202b;
    line-height: 1.55;
    margin-bottom: 0.8rem !important;
}

.answer-box {
    background:
        linear-gradient(135deg, #edf9f1 0%, #dff3e6 100%);
    border: 1px solid rgba(25, 135, 84, 0.14);
    padding: 0.9rem 1rem;
    border-radius: 12px;
    color: #0f5132;
    font-size: 0.98rem;
    line-height: 1.6;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.answer-box strong {
    color: #0c4128;
}

.answer-icon {
    font-weight: 700;
    margin-right: 3px;
}

/* List groups */

.list-group {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.list-group-item {
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 0.95rem 1rem;
    font-weight: 600;
    color: #203040;
    background: rgba(255,255,255,0.95);
    transition: var(--transition);
}

.list-group-item:hover {
    background: #f8fbff;
    transform: translateX(2px);
}

.list-group-item .badge {
    font-size: 0.82rem;
    padding: 0.5em 0.7em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

.alert {
    border-radius: 14px;
    border: none;
    box-shadow: var(--shadow-soft);
}

.top-section {
    border: 1px solid rgba(0, 68, 204, 0.12);
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.84);
    box-shadow: var(--shadow-soft);
    width: min(900px, 90%);
    margin: 24px auto;
    text-align: center;
    backdrop-filter: blur(8px);
}

.top-section h3 {
    color: #0f3b68;
    margin: 0;
    font-size: 1.55em;
    font-weight: 800;
}

/* Footer */

.footer {
    margin-top: 3rem;
    background:
        linear-gradient(135deg, #081827 0%, #0d2f4a 100%);
    color: rgba(255,255,255,0.88);
    text-align: center;
    padding: 26px 15px;
    font-size: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
}

.footer p {
    margin: 0;
    color: inherit;
    letter-spacing: 0.02em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links li {
    display: inline;
}

.footer-links a {
    text-decoration: none;
    color: inherit;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Buttons */

.btn {
    transition: var(--transition);
}

.btn-outline-secondary {
    border-color: rgba(33, 37, 41, 0.18);
    color: #1f2f3f;
    background: rgba(255,255,255,0.88);
}

.btn-outline-secondary:hover {
    background: #1f2f3f;
    border-color: #1f2f3f;
    color: #ffffff;
}

/* Brand grid */

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #222;
    font-weight: 600;
    transition: all 0.35s ease;
}

.brand-item span {
    margin-top: 12px;
    font-size: 1rem;
    text-align: center;
}

.brand-item img {
    width: 155px;
    height: 155px;
    object-fit: contain;
    padding: 22px;
    background: white;
    border-radius: 18px;
    border: 2px solid #eee;
    box-shadow:
        0 4px 10px rgba(0,0,0,0.08),
        0 8px 30px rgba(0,0,0,0.06);
    transition: all 0.35s ease;
}

.brand-item:hover img {
    transform: translateY(-8px) scale(1.04);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.18),
        0 0 20px rgba(0,0,0,0.08);
    border: 2px solid #000;
}

.brand-item:hover span {
    color: #000;
}

/* Titles */

.elegant-title {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    padding: 12px 24px;
    border: 1px solid #cfcfcf;
    border-radius: 14px;
    background: #ffffff;
    color: #3f51b5;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    position: relative;
}

.elegant-title::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    background: linear-gradient(to right, transparent, #c9c9c9, transparent);
}

.latest-facts-wrapper {
    margin-top: 25px;
}

.archive-box {
    padding-left: 14px;
    padding-right: 14px;
}

.archive-title {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #cfcfcf;
    border-radius: 14px;
    background: #ffffff;
    color: #3f51b5;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    position: relative;
    margin-bottom: 20px;
}

.archive-title::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    background: linear-gradient(to right, transparent, #c9c9c9, transparent);
}

.brands-title {
    text-align: left;
    padding-left: 12px;
}

.saved-date {
    margin-left: 8px;
}

/* Terms page */

.terms-box {
    border-radius: 12px;
}

.terms-box .card-body {
    font-size: 0.95rem;
    line-height: 1.55;
}

.terms-box h1 {
    font-weight: 600;
}

.terms-box i.bi {
    font-size: 1rem;
    vertical-align: middle;
}

/* Breadcrumbs */

.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb a {
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Responsive */

@media (max-width: 992px) {
    .search-input {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        width: 100%;
        min-width: 100%;
    }

    .search-btn {
        width: 100%;
    }

    .navbar-nav {
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .banner {
        min-height: 220px;
    }

    .container.py-4 {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 72px;
    }

    .banner .banner-tagline {
        font-size: 1.9rem;
    }

    .question-text {
        font-size: 1rem;
    }

    .answer-box {
        font-size: 0.94rem;
    }
}
