/**
 * Master Code Widgets - Public Stylesheet
 * Version: 3.0.0
 * Author: Engineer Heydari
 */

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 General Slider Styles
2.0 Content Slider (Hero Slider)
3.0 Post Slider (All 5 Layouts)
4.0 Team Slider
5.0 Animated Headline
--------------------------------------------------------------*/

/* 1.0 General Slider Styles
--------------------------------------------------------------*/
.mcw-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.mcw-slider-container .swiper-wrapper {
    align-items: stretch; /* Makes all slides equal height for carousel modes */
}
.mcw-slider-container .swiper-button-next,
.mcw-slider-container .swiper-button-prev {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}
.mcw-slider-container .swiper-button-next:hover,
.mcw-slider-container .swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.5);
}
.mcw-slider-container .swiper-button-next::after,
.mcw-slider-container .swiper-button-prev::after {
    font-size: 20px;
}
.mcw-slider-container .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7);
    width: 10px;
    height: 10px;
    opacity: 1;
}
.mcw-slider-container .swiper-pagination-bullet-active {
    background: #fff;
}


/* 2.0 Content Slider (Hero Slider)
--------------------------------------------------------------*/
.mcw-content-slider {
    height: 70vh; /* Default height, controlled by Elementor */
}
.mcw-content-slider .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.mcw-slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 6s ease-out;
}
.swiper-slide-active .mcw-slide-background {
    transform: scale(1.1);
}
.mcw-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.mcw-slide-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 800px;
    color: #fff;
}
.mcw-slide-title { font-size: 3em; font-weight: bold; margin: 0 0 15px; line-height: 1.2; }
.mcw-slide-description { font-size: 1.2em; margin: 0 0 30px; }
.mcw-slide-button { display: inline-block; padding: 12px 24px; text-decoration: none; transition: background-color 0.3s ease; }


/* 3.0 Post Slider (All 5 Layouts)
--------------------------------------------------------------*/
.post-slider .post-slide { height: auto; }
/* Style 1: Default Card */
.layout-style-1 .post-slide-inner { background-color: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.08); display: flex; flex-direction: column; height: 100%; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.layout-style-1 .post-slide-inner:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.layout-style-1 .post-slide-thumbnail img { width: 100%; height: 200px; object-fit: cover; }
.layout-style-1 .post-slide-content { padding: 25px; text-align: right; flex-grow: 1; display: flex; flex-direction: column; }
.layout-style-1 .post-slide-title { font-size: 1.25em; margin: 0 0 10px; }
.layout-style-1 .post-slide-title a { color: #2c3e50; text-decoration: none; }
.layout-style-1 .post-slide-excerpt { color: #7f8c8d; line-height: 1.7; flex-grow: 1; }
.layout-style-1 .post-slide-readmore { color: #3498db; text-decoration: none; font-weight: bold; margin-top: 15px; align-self: flex-start; }
/* Style 2: Overlay */
.layout-style-2 .post-slide-inner { position: relative; display: flex; align-items: flex-end; min-height: 400px; color: #fff; }
.layout-style-2 .post-slide-thumbnail { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.layout-style-2 .post-slide-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.layout-style-2 .post-slide-content { position: relative; z-index: 2; padding: 30px; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); width: 100%; text-align: right; }
.layout-style-2 .post-slide-title a { color: #fff; }
.layout-style-2 .post-slide-excerpt { color: rgba(255,255,255,0.85); max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.layout-style-2 .post-slide-inner:hover .post-slide-excerpt { max-height: 100px; }
.layout-style-2 .post-slide-readmore { display: none; }
/* Style 3: Minimal */
.layout-style-3 .post-slide-inner { background-color: transparent; text-align: right; }
.layout-style-3 .post-slide-thumbnail img { width: 100%; height: auto; margin-bottom: 20px; }
.layout-style-3 .post-slide-content { padding: 0; }
.layout-style-3 .post-slide-title a { color: #2c3e50; }
.layout-style-3 .post-slide-readmore { display: none; }
.layout-style-3 .post-slide-excerpt { border-bottom: 2px solid #ecf0f1; padding-bottom: 15px; }
/* Style 4: Image Left */
.layout-style-4 .post-slide-inner { display: flex; align-items: center; background-color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); height: 100%; }
.layout-style-4 .post-slide-thumbnail { flex-shrink: 0; width: 150px; height: 100%; }
.layout-style-4 .post-slide-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.layout-style-4 .post-slide-content { padding: 20px; text-align: right; }
.layout-style-4 .post-slide-title { font-size: 1.1em; }
.layout-style-4 .post-slide-excerpt p { margin: 0; }
/* Style 5: Modern */
.layout-style-5 .post-slide-inner { background: #f8f9fa; padding: 30px; height: 100%; }
.layout-style-5 .post-slide-thumbnail { display: none; }
.layout-style-5 .post-slide-title { font-size: 1.5em; }
.layout-style-5 .post-slide-title a { color: #34495e; }
.layout-style-5 .post-slide-excerpt { font-size: 1em; }
.layout-style-5 .post-slide-readmore { background: #3498db; color: #fff; padding: 10px 15px; border-radius: 5px; display: inline-block; }


/* 4.0 Team Slider
--------------------------------------------------------------*/
.mcw-team-slider .mcw-team-slide { height: auto; }
.mcw-team-slider .mcw-team-card-inner { background-color: #fff; text-align: center; padding: 30px 20px; border: 1px solid #e9ecef; border-radius: 8px; height: 100%; display: flex; flex-direction: column; justify-content: center; transition: box-shadow 0.3s ease-in-out; }
.mcw-team-slider .mcw-team-card-inner:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.mcw-team-slider .mcw-team-card-thumbnail { margin: 0 auto 20px auto; }
.mcw-team-slider .mcw-team-card-thumbnail img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.07); }
.mcw-team-slider .mcw-team-card-name { font-size: 1.3em; font-weight: bold; color: #343a40; margin: 0 0 5px; }
.mcw-team-slider .mcw-team-card-specialty { font-size: 0.95em; color: #007bff; margin: 0 0 20px; font-weight: 500; }
.mcw-team-slider .mcw-team-card-button { display: inline-block; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: background-color 0.3s ease; }


/* 5.0 Animated Headline
--------------------------------------------------------------*/
.mcw-animated-headline { font-size: 2.5em; font-weight: bold; line-height: 1.2; }
.mcw-animated-text-wrapper { display: inline-block; position: relative; text-align: left; vertical-align: top; }
.mcw-animated-text { display: inline-block; }
.mcw-animated-headline .is-hidden { display: none; }