/*==============================
 🌱 DomainDD Global Style
==============================*/

.bg-line {
    background-color: #00C300 !important;
}

.text-line {
    color: #00C300 !important;
}

.btn-line {
    background-color: #00C300;
    color: white;
    border: none;
}

.btn-line:hover {
    background-color: #04A343;
    color: white;
}

.border-line {
    border-color: #00C300 !important;
}

/*==============================
 🔠 Navbar & Icon
==============================*/

.icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
    margin-left: 8px;
}

.navbar-brand {
    font-size: 24px;
    color: white !important;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
}

.nav-link:hover {
    color: #e0ffe0 !important;
}

.nav-link.active {
    text-decoration: underline;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
}

/*==============================
 🗂️ Card โดเมนแนะนำ
==============================*/

.card-domain {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-domain:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-title {
    font-size: 15px;
    font-weight: bold;
}

.card-text {
    font-size: 12px;
    color: #666;
}

.domain-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*==============================
 🖼️ Logo Container
==============================*/

.logo-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #fff;
    margin-bottom: 10px;
}

.logo-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

/*==============================
 📞 ปุ่มโทร / LINE
==============================*/

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 8px;
    font-size: 13px;
    white-space: nowrap;
    box-sizing: border-box;
    max-width: 100%;
}

@media (max-width: 767px) {
    .btn-icon {
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media (min-width: 768px) {
    .btn-icon {
        flex: 0 0 auto;
        min-width: auto;
    }
}

.btn-icon img {
    width: 16px !important;
    height: 16px !important;
    object-fit: contain;
    flex-shrink: 0;
}

/*==============================
 💰 ราคา
==============================*/

.price-final {
    font-size: 20px;
    font-weight: bold;
    color: #00C300;
}

.price-original {
    font-size: 14px;
    color: #aaa;
    text-decoration: line-through;
}

/*==============================
 📱 Responsive Layout
==============================*/

@media (max-width: 767px) {
    .col-phone-6 {
        width: 50%;
        float: left;
        padding: 10px;
    }

    .navbar-nav {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .icon {
        width: 24px;
        height: 24px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .col-tablet-4 {
        width: 33.3333%;
        float: left;
        padding: 10px;
    }

    .navbar-nav {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

/*==============================
 🦶 Footer
==============================*/

footer {
    font-size: 16px;
    color: white;
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: #00C300;
    line-height: 1.8;
}

footer p {
    margin: 0;
    white-space: normal;
    word-break: break-word;
    font-weight: 500;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

/*==============================
 🔧 Layout Fix
==============================*/

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f1fff1;
}

.main-content {
    flex: 1;
}

/*==============================
 🔥 ป้ายลดราคา
==============================*/

.badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #FF5722;
    color: white;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/*==============================
 📢 ป้ายโฆษณาแนวยาวซ้าย-ขวา (เวอร์ชันสุดท้าย)
==============================*/

.ads-banner-left,
.ads-banner-right {
    position: fixed;
    top: 180px;
    width: 160px;
    z-index: 999;
}

.ads-banner-left {
    left: 10px;
}

.ads-banner-right {
    right: 10px;
}

.ads-banner-left img,
.ads-banner-right img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}