/* style.css */
:root {
    --primary: #CC0000;
    --secondary: #CC9900;
    --secondary2: rgb(221, 166, 1);
    --dark-bg: #0b0e14;
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Noto Sans Thai", sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    padding-top: 80px;
}

/* ---------------- Navbar ---------------- */
.navbar {
    background-color: var(--primary);
    padding: 10px 0;
}

.navbar-brand {
    background: #ffffff;
    padding: 1px 12px;
    border-radius: 10px;
    max-width: calc(100% - 70px);
    flex-shrink: 0;       /* เพิ่มบรรทัดนี้เข้าไปครับ */
}

.navbar-brand img {
    width: auto;          /* เปลี่ยนจาก 100% เป็น auto */
    max-width: 300px;
 
    object-fit: contain;  /* เพิ่มเพื่อป้องกันภาพผิดสัดส่วน */
}

.nav-link {
    color: #ffffff !important;
    font-weight: 500;
    margin: 0 15px;
}

.nav-link:hover {
    color: var(--secondary) !important;
}

.btn-get-started {
    background-color: var(--secondary);
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 600;
    border: none;
    transition: 0.3s;
}

.btn-get-started:hover {
    background-color: var(--secondary2);
    color: #ffffff;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 6px 10px;
    border-radius: 8px;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 24px;
    height: 18px;
    display: inline-block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2.5px;
    background-color: #ffffff;
    border-radius: 10px;
    transition: 0.3s;
}

.navbar-toggler-icon::before {
    top: 0;
}

.navbar-toggler-icon span {
    top: 7px;
}

.navbar-toggler-icon::after {
    bottom: 0;
}

/* ---------------- Hero Section ---------------- */
.hero-section {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background-image:
        linear-gradient(to right, rgba(11, 14, 20, 0.6) 30%, rgba(11, 14, 20, 0.3) 100%),
        url("images/hero-background.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 80px 0 180px;
    color: #ffffff;
    position: relative;
    overflow: visible;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    color: #ffe600;
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-subtitle {
    color: #ffffff;
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.stat-item h4 {
    font-weight: 800;
    margin-bottom: 0;
}

.stat-item p {
    color: #e5e7eb;
    font-size: 0.85rem;
}

.img-container {
    position: relative;
    padding: 20px;
}

.img-container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 90%;
    border-top: 4px solid var(--primary);
    border-right: 4px solid var(--primary);
    border-radius: 0 40px 0 0;
    z-index: 0;
}

.img-container img {
    width: 100%;
    border-radius: 30px;
    position: relative;
    z-index: 1;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* ---------------- Common ---------------- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2,
.intro-text h2 {
    font-weight: 800;
    color: var(--dark-bg);
}

.section-header h2 {
    font-size: 2.2rem;
}

.intro-text h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.section-header h2 span,
.intro-text h2 span {
    color: var(--primary);
}

.section-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

/* ---------------- Feature Cards ---------------- */
.features-section {
    position: relative;
    z-index: 10;
    margin-top: -100px;
    padding-bottom: 80px;
}

.f-card {
    background-color: #ffffff;
    padding: 40px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    height: 100%;
    transition: transform 0.3s ease;
    border: none;
}

.f-card:hover {
    transform: translateY(-10px);
}

.f-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.f-card h5 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.f-card p {
    color: rgb(109, 109, 109);
    line-height: 1.5;
}

/* ---------------- Intro & Lead Form ---------------- */
.intro-lead-section {
    padding: 60px 0 100px;
    background-color: #fafafa;
}

.intro-text p {
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.btn-outline-primary-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 8px;
    transition: 0.3s;
}

.btn-outline-primary-custom:hover {
    background: var(--primary);
    color: #ffffff;
}

.lead-form-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-top: 6px solid var(--secondary);
}

.lead-form-card h4 {
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.lead-form-card p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.form-control,
.form-select {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.25rem rgba(204, 153, 0, 0.25);
}

.btn-submit {
    background-color: var(--dark-bg);
    color: #ffffff;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-submit:hover {
    background-color: var(--primary);
}

/* ---------------- Why Choose Us ---------------- */
.why-choose-us,
.partners-section,
.news-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.benefit-card {
    background: #fafafa;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #eeeeee;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
    border-color: var(--secondary);
}

.benefit-card i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.benefit-card h4 {
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.benefit-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ---------------- Application Steps ---------------- */
.application-steps,
.campus-life-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.step-item {
    position: relative;
    padding: 20px;
    text-align: center;
}

.step-icon-wrapper {
    width: 100px;
    height: 100px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 3px solid var(--primary);
    font-size: 2.5rem;
    color: var(--primary);
    transition: 0.3s;
}

.step-item:hover .step-icon-wrapper {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary);
    color: #ffffff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    border: 3px solid #ffffff;
}

.step-item h4 {
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.step-item p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ---------------- Partners ---------------- */
.partner-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 120px;
    background-color: #ffffff;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

.partner-logo-box img {
    max-width: 100%;
    max-height: 70px;
    transition: all 0.3s ease;
}

.partner-logo-box:hover {
    box-shadow: var(--card-shadow);
    border-color: transparent;
}

.partner-logo-box:hover img {
    transform: scale(1.1);
}

/* ---------------- Campus Life ---------------- */
.campus-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 320px;
    cursor: pointer;
    box-shadow: var(--card-shadow);
}

.campus-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.campus-card:hover img {
    transform: scale(1.1);
}

.campus-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 25px 25px;
    background: linear-gradient(to top, rgba(11, 14, 20, 0.95), transparent);
    color: #ffffff;
    z-index: 2;
}

.campus-overlay h4 {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.3rem;
    color: #ffffff;
}

.campus-overlay p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #e5e7eb;
    line-height: 1.5;
}

/* ---------------- News ---------------- */
.news-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f3f4f6;
}

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

.news-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.08);
}

.news-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1.1;
    box-shadow: 0 4px 10px rgba(204, 0, 0, 0.3);
}

.news-date-badge span {
    font-size: 0.8rem;
    font-weight: 500;
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content h5 {
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 12px;
    font-size: 1.2rem;
    line-height: 1.4;
    transition: 0.3s;
}

.news-card:hover .news-content h5 {
    color: var(--primary);
}

.news-content p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: 0.3s;
    font-size: 0.95rem;
}

.read-more i {
    margin-left: 8px;
    font-size: 0.85rem;
    transition: 0.3s;
}

.read-more:hover {
    color: var(--primary);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* ---------------- Footer ---------------- */
.footer-section {
    background-color: var(--dark-bg);
    color: #d1d5db;
    padding-top: 80px;
    position: relative;
}

.footer-brand {
    font-family: "Noto Sans Thai", sans-serif;
    font-weight: 800;
    color: #ffffff;
    font-size: 2rem;
    text-decoration: none;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.footer-brand span {
    color: var(--primary);
}

.footer-brand:hover {
    color: #ffffff;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #9ca3af;
}

.contact-info,
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    margin-bottom: 15px;
    font-size: 0.95rem;
    align-items: flex-start;
}

.contact-info i {
    color: var(--primary);
    margin-right: 15px;
    margin-top: 5px;
    font-size: 1.1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    font-size: 1.2rem;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.map-container iframe {
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    filter: grayscale(20%);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    margin-top: 50px;
    font-size: 0.85rem;
}

.policy-link {
    color: #9ca3af;
    text-decoration: none;
    transition: 0.3s;
}

.policy-link:hover {
    color: var(--secondary);
}

/* ---------------- Responsive ---------------- */
@media (min-width: 768px) {
    .step-item:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 60px;
        right: -50%;
        width: 100%;
        height: 3px;
        background-color: #e5e7eb;
        z-index: 1;
    }
}

@media (max-width: 991.98px) {
    .navbar .container {
        align-items: center;
    }

   
    .navbar-nav {
        text-align: center;
        padding: 10px 0;
    }

    .nav-link {
        margin: 8px 0;
    }

    .navbar-action-mobile {
        text-align: center;
        margin-top: 10px;
    }

    .navbar-action-mobile .btn-get-started {
        width: 100%;
        max-width: 280px;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-section {
        padding: 60px 0 150px;
    }

    .features-section {
        margin-top: -70px;
    }


}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .stat-item h4 {
        font-size: 1.2rem;
    }

    .intro-text h2,
    .section-header h2 {
        font-size: 1.8rem;
    }

    .lead-form-card {
        padding: 25px;
    }

    .footer-brand {
        font-size: 1.6rem;
    }
}

@media (max-width: 575.98px) {
    body {
        padding-top: 80px;
    }

    .navbar {
        padding: 10px 0;
        min-height: 80px;
    }

    .navbar .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .navbar-brand img {
        max-width: 100%;
    }

    .hero-section {
        min-height: calc(100vh - 80px);
        padding: 45px 0 150px;
        background-size: cover;
        background-position: center top;
    }

    .hero-section .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .img-container {
        padding: 15px;
    }

    .img-container::after {
        right: 5px;
        width: 90%;
    }

    .d-flex.gap-5 {
        gap: 2rem !important;
        flex-wrap: wrap;
    }
}
@media (min-width: 992px) {
    .navbar-collapse {
        flex-grow: 1;  /* เปลี่ยนจาก 0 เป็น 1 */
    }
}



/* ---------------- Floating Chat Widget ---------------- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: "Noto Sans Thai", sans-serif;
}


/* ปุ่มหลัก */
.chat-btn-main {
    padding: 12px 24px;
    border-radius: 30px;
    background-color: var(--primary);
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(204, 0, 0, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s transform ease;
    position: relative;
}

.chat-btn-main:hover {
    transform: scale(1.1);
}


/* กล่อง Popup */
.chat-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 280px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    display: none; /* ปิดไว้ก่อน */
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.chat-body {
    padding: 10px;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.2s;
}

.chat-item i {
    font-size: 20px;
    margin-right: 12px;
    width: 25px;
    text-align: center;
}

.chat-item:hover {
    background-color: #f8f9fa;
    transform: translateX(-5px);
}

.chat-item.line { color: #00b900; }
.chat-item.facebook { color: #0084ff; }
.chat-item.phone { color: var(--dark-bg); }

/* สั่งให้แสดงผลเมื่อมีคลาส active */
.chat-popup.active {
    display: block;
    
}




        .program-hero-box {
            text-align: center;
        }

    
        

        .program-hero h1 {
            font-weight: 800;
            font-size: 2.7rem;
        }

        .program-hero p {
            margin-bottom: 0;
            color: #f3f4f6;
        }

        .program-section {
            padding: 80px 0;
            background: #fafafa;
        }

        .program-card {
            background: #ffffff;
            border-radius: 20px;
          
            height: 100%;
            box-shadow: 0 15px 35px rgba(0,0,0,0.08);
            border: 1px solid #eeeeee;
        }

        .program-card-header {
            display: flex;
            gap: 15px;
            align-items: center;
            margin-bottom: 20px;
        }

        .program-icon {
            width: 52px;
            height: 52px;
            min-width: 52px;
            border-radius: 16px;
            background: #cc0000;
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.45rem;
        }

        .program-card h3 {
            font-size: 1.25rem;
            font-weight: 800;
            margin: 0;
            color: #0b0e14;
        }

        .program-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

 
        .program-name {
            font-weight: 600;
            color: #222222;
            margin-bottom: 8px;
        }

        .studytype-badge {
            display: inline-block;
            font-size: 0.78rem;
            padding: 5px 10px;
            border-radius: 50px;
            margin: 3px 4px 0 0;
            background: #fff3cd;
            color: #8a6500;
            font-weight: 600;
        }
.program-hero {
    width: 100vw;
    max-width: 100vw;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    padding: 70px 0;
    background: var(--secondary);
    color: #ffffff;
}

.program-hero .container {
    max-width: 100%;
}

.program-hero-box {
    text-align: center;
}



.program-hero h1 {
    font-weight: 800;
    font-size: 2.7rem;
}

.program-hero p {
    margin-bottom: 0;
    color: #f3f4f6;
}

.program-section {
    padding: 80px 0;
    background: #fafafa;
}

.program-card {
    background: #ffffff;
    border-radius: 20px;
    height: 100%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid #eeeeee;
    overflow: hidden;
    transition: 0.3s;
}

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

.program-image {
    height: 175px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.program-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), rgba(0,0,0,0.1));
}

.program-image-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    color: #ffffff;
    z-index: 2;
}

.program-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.program-image-overlay h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
}

.program-card-body {
    padding: 22px 25px 25px;
}

.program-list {
    padding-left: 0;
    margin: 0;
    list-style: none;
    
}

.program-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #333333;
    font-weight: 500;
    line-height: 1.5;
    
}

.program-list li:last-child {
    border-bottom: none;
}

.program-list li i {
    color: var(--primary);
    font-size: 7px;
    margin-top: 9px;
    
}



/* ---------------- Mobile Hamburger Menu Fix ---------------- */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block;
        margin-left: auto;
    }

    .navbar-collapse {
        display: none;
        width: 100%;
        background-color: var(--primary);
        margin-top: 12px;
        padding: 12px 0 18px;
        border-radius: 0 0 14px 14px;
    }

    .navbar-collapse.show {
        display: block;
    }

    .navbar-nav {
        width: 100%;
        text-align: center;
        padding: 8px 0;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link {
        display: block;
        padding: 12px 15px;
        margin: 0;
        color: #ffffff !important;
    }

    .navbar-action-mobile {
        width: 100%;
        text-align: center;
        padding: 8px 15px 0;
    }

    .navbar-action-mobile .btn-get-started {
        width: 100%;
        max-width: 280px;
    }
}

@media (min-width: 992px) {
    .navbar-toggler {
        display: none;
    }

    .navbar-collapse {
        display: flex !important;
    }
}


.modern-news-card {
  
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1),
        box-shadow 0.6s cubic-bezier(0.2, 1, 0.2, 1);
    will-change: transform, box-shadow;
  
}

.modern-news-card:hover {
   
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}


.news-img-wrapper img {
 
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.2, 1);
}


.filter-btn {
 
    transition: all 0.4s cubic-bezier(0.2, 1, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
   
    transition: all 0.4s cubic-bezier(0.2, 1, 0.2, 1);
    transform: translateX(-50%);
}

.filter-btn:hover::after,
.filter-btn.active::after {
    width: 80%;
}

@media (max-width: 768px) {
    .chat-widget {
        position: fixed !important;
        bottom: 30px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 9999 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .chat-popup {
        position: absolute !important;
        bottom: 100% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-bottom: 15px !important;
        border: 3px solid #ff6600 !important;
        border-radius: 15px !important;
        box-shadow: 0 8px 25px rgba(255, 102, 0, 0.25) !important;
        width: 300px !important;
        background-color: #ffffff !important;
    }
    .chat-btn-main {
        border: 2px solid #ff6600 !important;
    }
    
}

.btn-consult-top {
    animation: consultTopBounce 1.5s infinite;
    box-shadow: 0 10px 24px rgba(204, 0, 0, 0.25);
}

.btn-consult-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(204, 0, 0, 0.35);
}

.btn-consult-top {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border: 2px solid var(--primary) !important;
    animation: consultTopBounce 1.5s infinite;
    box-shadow: 0 10px 24px rgba(204, 0, 0, 0.25);
}

.btn-consult-top:hover {
    background-color: #a80000 !important;
    color: #ffffff !important;
    border-color: #a80000 !important;
    box-shadow: 0 14px 30px rgba(204, 0, 0, 0.35);
}
@media (max-width: 991.98px) {
    

    .chat-popup {
        position: absolute !important;
        bottom: 100% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-bottom: 15px !important;
        border: 3px solid #ff6600 !important;
        border-radius: 15px !important;
        box-shadow: 0 8px 25px rgba(255, 102, 0, 0.25) !important;

        
        width: 90vw !important;
        max-width: 300px !important;

        background-color: #ffffff !important;
    }

    
}

