/* =====================================
   Nissan Theme – Footer (Luxury Gray)
   ===================================== */

/* ===== Footer ===== */
.nissan-footer {
    background-color: #cccccc;   /* เทาเข้มหรู */
    color: #000000;
}

/* Titles */
.footer-title {
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 1rem;
    color: #000000;
}

.footer-heading {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #000000;
}

/* Text */
.footer-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: #000000;
}

.footer-open {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1rem;
    color: #000000;
}

/* Divider (Nissan Red Accent) */
.footer-divider {
    border: none;
    border-top: 1px solid #C3002F; /* แดง Nissan */
    margin: 1rem 0;
}

/* Media boxes */
.footer-box {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.footer-img {
    border-radius: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(195,0,47,0.25); /* เงาแดงนิดเดียว */
}

/* ===== Copyright ===== */
.nissan-copyright {
    background-color: #C3002F;   /* เทาเข้ม */
    border-top: 1px solid rgba(255,255,255,0.35);
    padding: 1rem 0;
}

.copyright-text {
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: #ffffff;
}

.policy-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.25s ease;
}

.policy-link:hover {
    color: #ffd7df;
    text-decoration: underline;
}

/* ===== Global ===== */
body {
    padding-top: 70px; /* กัน navbar fixed-top */
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.card small {
    display: block;
    color: #555;
}

/* ===== Mobile Navbar Center ===== */
@media (max-width: 991.98px) {

    .navbar-collapse {
        text-align: center;
    }

    .navbar-nav {
        width: 100%;
        margin: 0 auto;
    }

    .navbar-nav .nav-item {
        margin-left: 0;
    }

    .navbar-nav .nav-link {
        padding: 10px 0;
        display: inline-block;
    }

    .navbar-dark .nav-link::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ===== Mobile Footer ===== */
@media (max-width: 767px) {
    .footer-title { font-size: 1.2rem; }
    .footer-text,
    .copyright-text { font-size: 0.9rem; }
}

/* ลดช่องว่างระหว่าง Navbar กับ Promotion */
.container.my-5 {
    margin-top: 1.5rem !important;
}

h1.my-4 {
    margin-top: 0 !important;
}

/* ===== Premium Promotion Card Hover ===== */

/* ตัวการ์ด */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Hover การ์ด */
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

/* รูปในการ์ด */
.card img {
    transition: transform 0.6s ease;
}

/* Hover ซูมรูปเบา ๆ */
.card:hover img {
    transform: scale(1.06);
}

/* เส้นแดง Nissan ด้านบนการ์ด */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #C3002F; /* แดง Nissan */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

/* Hover แสดงเส้น */
.card:hover::before {
    transform: scaleX(1);
}

/* เนื้อหาในการ์ด */
.card-body {
    background-color: #ffffff;
}

/* หัวข้อการ์ด */
.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

/* รายละเอียด */
.card small {
    color: #666;
    line-height: 1.5;
}

