/* ====================================
   DOULTON INDEX PAGE - Complete Styling
   ==================================== */

/* ====================================
   Root & Global Variables
   ==================================== */

:root {
    --primary: #0a6bc1;
    --secondary: #f39c12;
    --success: #27ae60;
    --danger: #e74c3c;
    --purple: #9b59b6;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --gray: #95a5a6;
    --white: #ffffff;
    --black: #000000;
    
    --transition: all 0.36s ease;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: var(--white);
    padding-top: 0;
}

/* ====================================
   Content Wrapper & Layout
   ==================================== */

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.content {
    width: 100%;
}

.clear {
    clear: both;
    display: block;
    height: 0;
    overflow: hidden;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ====================================
   Index Page Container
   ==================================== */

#indexPage.ff_indexPage {
    width: 100%;
    position: relative;
    background: var(--white);
}

#indexPage.ff_indexPage .module {
    padding-top: 85px;
    padding-bottom: 85px;
    position: relative;
}

#indexPage.ff_indexPage .module.ff_topSlider {
    padding-top: 0;
    padding-bottom: 0;
}

/* ====================================
   Background Mask (Section Divider)
   ==================================== */

.bgmask {
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, var(--light) 0%, var(--white) 50%, var(--light) 100%);
    position: relative;
    margin: -1px 0 0 0;
}

.module_container {
    position: relative;
    z-index: 1;
}

/* ====================================
   Slider Module (Top Slider)
   ==================================== */

#topSlider.ff_topSlider.mslider.module {
    padding: 0;
    background: var(--dark);
    height: auto;
    overflow: hidden;
}

#topSlider .content_wrapper {
    position: relative;
    width: 100%;
    margin: 0;
}

#topSlider .content_list {
    width: 100%;
    height: 700px;
    position: relative;
    overflow: hidden;
}

#topSlider .item_block {
    width: 100%;
    height: 700px;
    position: relative;
}

#topSlider .item_bg.image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#topSlider .item_block a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.sliderArrow {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    display: flex;
    gap: 15px;
}

.sliderArrow > div {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.sliderArrow > div:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Owl Carousel */
.owl-carousel,
.owl-carousel .owl-stage-outer,
.owl-carousel .owl-stage {
    width: 100%;
    height: 100%;
}

.owl-carousel .owl-item {
    width: 100%;
    height: 700px;
}

.owl-carousel .owl-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ====================================
   Module Container & Headers
   ==================================== */

.module_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.container_header {
    text-align: center;
    margin-bottom: 60px;
}

.container_header .title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container_header .subtitle {
    font-size: 18px;
    color: var(--gray);
    margin: 0;
}

/* ====================================
   Content Wrapper
   ==================================== */

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

.container_content {
    position: relative;
    width: 100%;
}

/* ====================================
   Item Lists & Grid
   ==================================== */

.content_list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

.item_block {
    position: relative;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.item_block:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.item_index {
    display: none;
}

.item_box {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.item_img {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.item_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.item_block:hover .item_img img {
    transform: scale(1.05);
}

.item_wrapper {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item_wrapper .item_title,
.item_wrapper .item_info .title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    text-decoration: none;
}

.item_wrapper .item_desc,
.item_wrapper .item_info .description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    flex: 1;
}

.details {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 15px;
    text-align: center;
}

.details:hover {
    background: #0856a3;
    text-decoration: none;
}

.details i {
    margin-left: 5px;
}

/* ====================================
   Module Types
   ==================================== */

/* Ad01 Module (Featured Products) */
.mlist.ad01 .container_header {
    display: block;
}

.ad01.mlist .content_list .item_block {
    border: 1px solid #ddd;
}

/* Team Module (All Products) */
.mlist.team.bgShow {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.mlist.team .content_list .item_block {
    margin-bottom: 40px;
}

/* Project Module (Solutions) */
.mlist.project .content_list .item_block {
    margin-bottom: 40px;
}

.mlist.project .content_list .item_block:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* News Module */
.mlist.news.ff_slider {
    background-color: var(--light);
}

/* ====================================
   More Button
   ==================================== */

.more {
    display: inline-block;
    margin: 40px auto 0;
    padding: 12px 40px;
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.more:hover {
    background: #0856a3;
    text-decoration: none;
}

.more i {
    margin-left: 8px;
}

/* ====================================
   Customize Module (Features)
   ==================================== */

.mcustomize.module.bgShow {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.mcustomize .container_content {
    position: relative;
    z-index: 2;
}

.mcustomize .content_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
}

.mcustomize .item_block {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mcustomize .item_block span {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

/* ====================================
   Counter Module (Statistics)
   ==================================== */

.mcounter.module {
    background-color: #f5f5f5;
    padding-top: 100px;
    padding-bottom: 100px;
}

.mcounter .content_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    text-align: center;
}

.mcounter .item_block {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: none;
}

.mcounter .item_block:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.mcounter .counter {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.mcounter .plus {
    display: inline-block;
    font-size: 32px;
    color: var(--secondary);
}

.mcounter .item_block p {
    font-size: 14px;
    color: var(--gray);
    margin: 15px 0 0 0;
}

/* ====================================
   Contact Module
   ==================================== */

#mcontact.mcontact.module {
    background-color: var(--primary);
    color: var(--white);
    padding-top: 100px;
    padding-bottom: 100px;
}

#mcontact .container_header .title {
    color: var(--white);
}

#mcontact .container_header .subtitle {
    color: rgba(255, 255, 255, 0.8);
}

#mcontact .content_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

#mcontact .item_block {
    background: transparent;
    border: none;
    text-align: center;
    box-shadow: none;
    padding: 20px;
}

#mcontact .item_block i {
    display: block;
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--secondary);
}

#mcontact .item_block span {
    display: block;
    font-size: 16px;
    color: var(--white);
}

/* ====================================
   WOW Animations
   ==================================== */

.wow {
    visibility: hidden;
}

.wow.animated {
    visibility: visible;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translate3d(-100px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translate3d(100px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInDown { animation: fadeInDown 0.8s; }
.fadeInUp { animation: fadeInUp 0.8s; }
.slideInLeft { animation: slideInLeft 0.8s; }
.slideInRight { animation: slideInRight 0.8s; }

/* ====================================
   Responsive Design
   ==================================== */

@media (max-width: 768px) {
    .module_container,
    .wrapper {
        padding: 0 10px;
    }

    .module {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

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

    .container_header .subtitle {
        font-size: 14px;
    }

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

    #topSlider .content_list {
        height: 500px;
    }

    #topSlider .item_block {
        height: 500px;
    }

    .mcounter .content_list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .mcounter .counter {
        font-size: 36px;
    }

    #mcontact .content_list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .content_list,
    .mcounter .content_list,
    #mcontact .content_list {
        grid-template-columns: 1fr;
    }

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

    #topSlider .content_list {
        height: 400px;
    }

    #topSlider .item_block {
        height: 400px;
    }
}
