/* ========================================
   INCAS - Custom Styles
   Based on Doulton design
   ======================================== */

:root {
    --primary-color: #0a6bc1;
    --secondary-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #34495e;
    --border-color: #bdc3c7;
}

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

body {
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
}

/* ========== HEADER STYLES ========== */
.ff_sitecontent {
    width: 100%;
    overflow: hidden;
}

/* ========== SLIDER STYLES ========== */
/* Hủy legacy .ff_indexPage .module { padding-bottom:100px } áp lên #topSlider */
#topSlider.module {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Hủy doulton.css .content_list { margin-bottom:40px } áp lên #topSlider */
#topSlider .content_list {
    margin-bottom: 0 !important;
}

.ff_topSlider {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    background: #000;
}

.ff_topSlider .content_wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Override legacy style.15375.css visibility:hidden — Owl Carousel sets .owl-loaded
   but we also need a fallback in case Owl init is delayed */
.ff_topSlider .content_list {
    width: 100%;
    height: 100%;
    visibility: visible !important;
}

/* Owl Carousel slide items — .item_block is each slide */
.ff_topSlider .content_list .item_block {
    width: 100%;
    height: 100%;
    position: relative;
}

.ff_topSlider .content_list .item_block .item_bg.image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
}

.ff_topSlider .sliderArrow {
    position: absolute;
    z-index: 20;
    width: 100%;
    bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.ff_topSlider .sliderArrow button {
    width: 50px;
    height: 50px;
    border: 2px solid white;
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.ff_topSlider .sliderArrow button:hover {
    background: rgba(0,0,0,0.7);
    transform: scale(1.1);
}

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

/* ========== MODULE CONTAINER ========== */
.bgmask {
    position: absolute;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, #f39c12, #e74c3c);
    opacity: 0.8;
}

.module_container {
    position: relative;
    padding: 60px 0;
    background: white;
}

.module_container:nth-child(odd) {
    background: #f8f9fa;
}

.container_header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.6s ease;
}

.container_header .title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.container_header .sub-title {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 20px;
}

.container_header .more {
    display: inline-block;
    padding: 10px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.container_header .more:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ========== PRODUCT GRID ========== */
.featured-products .content_wrapper {
    padding: 0 20px;
}

.content_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.content_list .item {
    animation: fadeInUp 0.6s ease;
}

.item_box {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
    background: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.item_box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.item_box img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item_box:hover img {
    transform: scale(1.1);
}

.item_mask {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 30px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.item_box:hover .item_mask {
    transform: translateY(0);
}

.item_mask h3 {
    font-size: 20px;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.item_mask p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

/* ========== FEATURE GRID ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
}

.feature-item h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: bold;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
}

/* ========== CONTACT SECTION ========== */
.mcontact {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 60px 20px;
    margin-top: 40px;
}

.mcontact .content_wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.mcontact .content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.mcontact .left {
    color: white;
}

.mcontact .left h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
}

.mcontact .left p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info p {
    font-size: 16px;
    margin: 0;
}

.contact-info i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.mcontact .btn-lg {
    font-size: 18px;
    padding: 15px 40px;
}

/* ========== ANIMATION ========== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.wow {
    visibility: hidden;
}

.wow.animated {
    visibility: visible;
    animation: fadeInUp 0.6s ease;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .ff_topSlider {
        height: 400px;
    }

    .ff_topSlider .content_list,
    .ff_topSlider .item_block,
    .ff_topSlider .item_bg.image {
        height: 400px !important;
    }

    .container_header .title {
        font-size: 24px;
    }

    .content_list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mcontact .content {
        grid-template-columns: 1fr;
    }

    .mcontact .left {
        text-align: center;
    }

    .mcontact .right {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ff_topSlider {
        height: 280px;
    }

    .ff_topSlider .content_list,
    .ff_topSlider .item_block,
    .ff_topSlider .item_bg.image {
        height: 280px !important;
    }

    .ff_topSlider .slide-content h2 {
        font-size: 20px;
    }

    .container_header .title {
        font-size: 20px;
    }

    .content_list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}
