/* ===== Cấu hình chung ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat' !important;
    font-size: 16px;
    line-height: 1.6;
    color: #1C1D1D;
}

/* xoá thanh ngang kéo trên web  */
html,
body {
    overflow-x: hidden;
}


.ai_solution,
.news-container,
.container,
.faq-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}



/* ===== HEADER & BANNER ======= */
/* Tùy chỉnh dấu chấm indicator */
.carousel-indicators [data-bs-target] {
    width: 7px;
    /* 👈 tăng kích thước */
    height: 7px;
    /* 👈 tăng kích thước */
    border-radius: 50%;
    /* tròn */
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 6px;
    /* khoảng cách giữa các chấm */
    border: none;
}

.carousel-indicators .active {
    background-color: #ff6666;
    /* màu chấm active */
}

.carousel-item.active img {
    cursor: pointer;
}

.banner {
    width: 100%;
}

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease-in-out; /* <= quan trọng */
  object-fit: cover;
}

.hero-image.active {
  opacity: 1;
  z-index: 1;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-text h2 {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 18px;
    margin-top: 8px;
}

/* ====== cấu trúc sản phẩm ===== */

/* Chặn link và .ds-cta không gạch chân, không màu xanh */
a,
.ds-cta {
    color: inherit !important;
    text-decoration: none !important;
    cursor: pointer;
}

a:hover,
a:focus,
a:active,
.ds-cta:hover,
.ds-cta:focus,
.ds-cta:active {
    color: inherit !important;
    text-decoration: none !important;
}

.ds-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.ds-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
    color: #555;
}

.ds-item {
    position: relative;
    display: inline-block;
    overflow: hidden;
    text-decoration: none !important;
    outline: none;
}

.ds-item img {
    width: 300%;
    height: auto;
    display: block;
    border-radius: 10px;
    /* bo góc nếu muốn */
}

.ds-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* ép về hình vuông */
    object-fit: cover;
    /* cắt giữa ảnh, không méo */
    border-radius: 10px;
    /* bo góc nhẹ (nếu muốn) */
}


.ds-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 cột */
    gap: 13px;
    /* khoảng cách giữa các khối */
    max-width: 1200px;
    margin: 0 auto;
}




.btn-discover {
    position: absolute;
    bottom: 15px;
    /* cách đáy ảnh */
    left: 50%;
    transform: translateX(-50%);
    background: #BF8B8B;
    /* nền mờ */
    color: #fff;
    padding: 10px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

/* chặn ra giữa */
.ai-section {
    text-align: center !important;
}

.ai-section .ds-title,
.ai-section .ds-subtitle {
    text-align: center !important;
}

.faq-container .faq-item {
    text-align: left !important;
}

.news-title,
.news-content * {
    text-align: left !important;
}

.rosa-footer .footer-column * {
    text-align: left !important;
}



/* ==== AI Solution ==== */
.ai_solution {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.ai_solution .card {
    flex: 1;
    min-width: 300px;
    text-align: center;
    border: none;
    box-shadow: none;
}

.ai_solution .card img {
    width: 100%;
    max-width: 405px;
    height: auto;
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.ai_solution .card img:hover {
    transform: scale(1.02);
}

/* ===== Banner Python ===== */
.carousel-inner .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    color: white;
    width: 100%;
    padding: 0 20px;
}

.button-style {
    padding: 8px 20px;
    border: 2px solid white;
    border-radius: 20px;
    color: white;
    background-color: transparent;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-style:hover {
    background-color: white;
    color: #333;
}

/* ===== Tin tức ===== */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.news-card {
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.news-content {
    flex-grow: 1;
}

.news-tag {
    font-size: 14px;
    color: #A60606;
    margin-bottom: 5px;
}

.news-title a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.4;
    display: block;
    margin-bottom: 10px;
}

.news-title a:hover {
    color: #007BFF;
}

.news-meta {
    font-size: 0.9em;
    color: #666;
    margin: 0.5em 0;
}

.desc {
    color: #555;
    line-height: 1.6;
}

/* ===== Logo Section ===== */

.logo-section {
  position: relative;
  z-index: 0; /* Cho phần logo nằm dưới các phần khác */
  padding: 40px 0;
  background: #fff;
}

/* Logo hiển thị to hơn nhưng không che lớp khác */
.logo-section img {
  max-width: 200px; /* 👉 tăng kích thước logo tại đây */
  height: auto;
  opacity: 0.95; /* hơi trong suốt nhẹ nếu muốn hài hòa */
  transition: transform 0.3s ease;
  position: relative;
  z-index: 0; /* nằm dưới */
}

/* Hiệu ứng hover */
.logo-section img:hover {
  transform: scale(1.1);
}

/* Nếu phần chat có lớp riêng, cho z-index cao hơn */
.chat-box, .chat-widget, .chat-button, .chat-form {
  position: relative;
  z-index: 10; /* đảm bảo nằm trên logo */
}



/* ===== bài công nghệ ===== */
.tabs {
    max-width: 1300px;
    background-color: #fff;
    display: flex;
    margin-right: 40px;
    gap: 20px;
    margin: 20px 0;
    border-bottom: 2px solid #ddd;
}

.tab-btn {
    max-width: 1300px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
    color: #555;
}

.tab-btn.active {
    color: #007BFF;
    font-weight: 600;
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #007BFF;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 18px;
    margin: 0 0 8px;
}

.news-card p {
    font-size: 14px;
    color: #555;
}

/* ==== Câu hỏi thường gặp ==== */

.faq-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}



.faq-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.faq-button {
    padding: 10px 18px;
    border: none;
    border-radius: 25px;
    background-color: #f0f0f0;
    color: #A60606;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.faq-button.active,
.faq-button:hover {
    background-color: #A60606;
    color: white;
    transform: translateY(-1px);
}

.faq-content {
    margin-top: 20px;
}

.faq-item {
    display: none;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.faq-item.active {
    display: block;
}

.faq-question {
    font-family: 'Montserrat' !important;
    font-weight: 600;
    color: #7F3131;
    margin-bottom: 10px;
    font-size: 18px;
    cursor: pointer;
    padding: 10px 0;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f9f9f9;
    padding-left: 10px;
    font-family: 'Montserrat' !important;
}

.faq-answer {
    color: #000000;
    line-height: 1.6;
    font-size: 16px;
    padding-left: 15px;
    display: none;
    font-family: 'Montserrat' !important;
}

.faq-answer.show {
    display: block;
    animation: fadeIn 0.3s ease;
    font-family: 'Montserrat' !important;
}

/* ==== logo ===== */
.logo-container .owl-carousel .item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background: #fff;   /* đồng bộ nền */
  border-radius: 8px;
  overflow: hidden;   /* cắt phần thừa */
}

.logo-container .owl-carousel .item img {
  max-height: 70px;
  width: auto;
  object-fit: contain; 
  display: block;
  
}

/* Đảm bảo section logo hiển thị đúng */
.logo-section {
    padding: 60px 0;
    background-color: #fff;
    width: 100%;
    clear: both;
}

.logo-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.logo-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.logo-section .section-title h3 {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title-border {
    display: inline-block;
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #A60606, #7F3131);
    border-radius: 2px;
}

/* Owl Carousel Container */
.logo-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

#owl-brands-slider {
    width: 100%;
}

/* Logo Items */
#owl-brands-slider .item {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: transparent;
    /* bỏ nền */
    border-radius: 0;
    /* bỏ bo góc */
    box-shadow: none;
    /* bỏ đổ bóng */
    margin: 10px 5px;
    transition: all 0.3s ease;
    height: 120px;
    width: auto;
}

#owl-brands-slider .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

#owl-brands-slider .item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

#owl-brands-slider .item {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: transparent;
    /* nền trong suốt */
    border-radius: 0;
    /* bỏ bo góc */
    box-shadow: none;
    /* bỏ đổ bóng */
    margin: 10px 5px;
    transition: transform 0.3s ease;
    height: 120px;
    width: auto;
}

#owl-brands-slider .item:hover {
    transform: translateY(-5px);
    box-shadow: none;
    /* hover cũng không có bóng */
    background: transparent;
    /* hover cũng trong suốt */
}


/* Owl Carousel Controls (ẩn vì không cần) */
.owl-carousel .owl-nav,
.owl-carousel .owl-dots {
    display: none !important;
}

/* Force show carousel items */
.owl-carousel .owl-stage-outer {
    overflow: visible;
}

/* Responsive cho logo */
@media (max-width: 768px) {
    .logo-section {
        padding: 40px 0;
    }

    .logo-section .section-title h3 {
        font-size: 24px;
    }

    #owl-brands-slider .item {
        height: 100px;
        margin: 5px 2px;
        padding: 15px;
    }

    #owl-brands-slider .item img {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .logo-section {
        padding: 30px 0;
    }

    .logo-section .section-title h3 {
        font-size: 20px;
    }

    #owl-brands-slider .item {
        height: 80px;
        padding: 10px;
    }

    #owl-brands-slider .item img {
        max-height: 70px;
    }
}

/* Fallback nếu Owl Carousel không load */
.no-js #owl-brands-slider .item {
    display: inline-block !important;
    width: 150px;
    margin: 10px;
    vertical-align: top;
}

/* Product Section styling để tương thích */
.product-section {
    text-align: center;
    padding: 60px 20px;
    background: white;
}

.product-section h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    text-transform: uppercase;
}

.product-section p {
    font-size: 16px;
    color: #666;
    margin-bottom: 0;
}

/* === tin tức công nghệ ==== */




/* ====== css trên giao diện điện thoại ======= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.website-link {
    color: #0066cc;
    text-decoration: none;
}

.website-link:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet - Medium devices */
@media (max-width: 1024px) {

    .ai_solution,
    .news-container,
    .container,
    .faq-container {
        padding: 15px;
    }

    .hero-text h2 {
        font-size: 42px;
    }

    .product-section h2 {
        font-size: 36px;
    }

    .ai_solution .card {
        min-width: 250px;
    }
}

/* Mobile - Small devices */
@media (max-width: 768px) {

    .ai_solution,
    .news-container,
    .container,
    .faq-container {
        padding: 10px;
    }

    /* Hero Section Mobile */
    .hero-section {
        height: 300px;
    }

    .hero-text h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .hero-text p {
        font-size: 14px;
    }

    /* Product Section Mobile */
    .product-section {
        padding: 30px 15px;
    }

    .product-section h2 {
        font-size: 28px;
    }

    .product-section p {
        font-size: 14px;
    }

    /* Grid Mobile */
    .ds-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ds-media img {
        height: auto;
    }

    .ds-cta {
        font-size: 12px;
        padding: 8px 16px;
    }

    /* AI Solution Mobile */
    .ai_solution {
        flex-direction: column;
        gap: 15px;
    }

    .ai_solution .card {
        min-width: 100%;
    }

    /* News Mobile */
    .news-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card img {
        height: 180px;
    }

    .news-title a {
        font-size: 16px;
    }

    /* FAQ Mobile */
    .faq-buttons {
        justify-content: flex-start;
        gap: 8px;
    }

    .faq-button {
        font-size: 12px;
        padding: 8px 14px;
    }

    .faq-question {
        font-size: 16px;
    }

    .faq-answer {
        font-size: 14px;
        padding-left: 10px;
    }

    /* Button Mobile */
    .button-style {
        font-size: 14px;
        padding: 6px 16px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {

    .ai_solution,
    .news-container,
    .container,
    .faq-container {
        padding: 8px;
    }

    .hero-text h2 {
        font-size: 24px;
    }

    .hero-text p {
        font-size: 12px;
    }

    .product-section h2 {
        font-size: 24px;
    }

    .ds-title {
        font-size: 20px;
    }

    .ds-subtitle {
        font-size: 14px;
    }

    .news-card img {
        height: 150px;
    }

    .faq-question {
        font-size: 15px;
    }

    .faq-answer {
        font-size: 13px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        height: 250px;
    }

    .hero-text h2 {
        font-size: 24px;
    }

    .hero-text p {
        font-size: 12px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    .ds-cta,
    .faq-button,
    .button-style {
        min-height: 44px;
        min-width: 44px;
        /*display: flex;*/
        align-items: center;
        justify-content: center;
    }

    .faq-question {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .hero-image,
    .news-card img,
    .ai_solution .card img {
        image-rendering: -webkit-optimize-contrast;
    }
}