/**
 * Flexible Content Layouts - 13 Responsive Layouts
 * PC: 1024px+, Mobile: <768px
 */

/* ========================================
   COMMON STYLES
======================================== */
.flexible-content-wrapper {
    margin: 40px 0;
}

.flexible-content-wrapper > div {
    margin-bottom: 60px;
}

.flexible-content-wrapper > div:last-child {
    margin-bottom: 0;
}

/* Video Wrapper - Responsive 16:9 */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.editor-desc ul li{
	list-style: disc !important;
    margin-left: 20px !important;
}
.editor-desc ol li{
margin-left: 15px !important;
}

/* ========================================
   LAYOUT 1: SINGLE VIDEO
======================================== */
#page .layout-video-single {
    max-width: 900px;
    margin: 0 auto 40px;
    width: 100%;
    border-radius: 10px;
    border: 2px solid #305ec2;
    box-sizing: border-box;
    padding: 0px 0px 30px;
    overflow: hidden;
}

#page .layout-video-single .video-title {
    font-size: 24px;
    line-height: 1.4;
    padding: 8px 3%;
    text-align: center;
    border: none;
    background: #305ec2;
    color: #fff;
    margin-bottom: 38px;
    font-weight: 700;
}
#page .layout-video-single .video-wrapper{
    width: 74%;
    height: 395px;
    margin: 0px auto;
    padding: 0px;
}
#page .layout-video-single .video-wrapper iframe{
    width: 100%;
    height: 100%;
    position: relative;
}

#page .layout-video-single .video-description{
    font-size: 18px;
    margin: 24px auto 0px;
    line-height: 1.6;
    color: #000;
    width: 74%;
    text-align: center;
}
#page .layout-video-single .video-description p{
    line-height: 1.6;
    font-size: 18px;
    padding: 0px;
}
#page .layout-video-single ul,#page .layout-video-single ol{
      margin: 20px 0px 0px 8%;
      text-align: left;
      max-width: 90%;
}
#page .layout-video-single ul li{
	list-style: disc;
     margin: 0px;
}
@media screen and (max-width: 767px) {
    #page .layout-video-single .video-title {
        font-size: 20px;
    }
    #page .layout-video-single .video-wrapper, #page .layout-video-single .video-description{
        width: 90%;
    }
}

/* ========================================
   LAYOUT 2: DUAL VIDEOS
======================================== */
.layout-video-dual {
    max-width: 900px;
    margin: 0 auto;
}

.layout-video-dual .video-dual-grid{
    display: flex;
    justify-content: space-between;
    row-gap:30px;
    flex-wrap: wrap;
}
.layout-video-dual .video-dual-grid .video-dual-item{
    width: 48.9%;
    display: flex;
    flex-direction: column;
}
.layout-video-dual .video-dual-title{
    font-size: 16px;
    font-weight: 400;
    color: #000;
    margin: 0px auto 12px;
    line-height: 1.6;
    text-align: center;
}
.layout-video-dual .video-wrapper{
    width: 100%;
    padding-bottom: 0;
    height: 260px;
        margin-top: auto;
}
.layout-video-dual .video-wrapper iframe{
    position: relative;
    width: 100%;
    height: 100%;
}

.layout-video-dual ol li{
  margin-left: 15px !important;
}
@media screen and (max-width: 767px){
   .layout-video-dual .video-dual-grid{
    display: block;
   }
    .layout-video-dual .video-dual-grid .video-dual-item{
    width: 100%;
    margin-bottom: 40px;
   }
   .layout-video-dual .video-wrapper{
    height: 330px;
   }
}

/* ========================================
   LAYOUT 3: BEFORE/AFTER SIMPLE
======================================== */
.layout-before-after-simple {
    max-width: 900px;
    margin: 0 auto;
}

.ba-simple-grid, .ba-detailed-grid, .multi-media-grid{
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.ba-simple-grid .ba-simple-item, .ba-detailed-grid .ba-detailed-item{
    flex: 1;
    position: relative;
}
.ba-arrow{
    width: 40px;
    height: 50px;
    background: #838383;
    clip-path: polygon(0 0, 0% 100%, 100% 50%);
    align-self: center;
}
.ba-arrow svg{
    display: none;
}
.ba-simple-grid .ba-simple-item img,  .ba-detailed-grid .ba-image img,.multi-media-item .item-media img, .multi-media-item .item-media iframe{
    min-height: 274px;
    object-fit: cover;
    width: 100% !important;
    height: 100% !important;
}

.ba-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 3px;
}
.ba-simple-grid .ba-arrow svg{
    display: none;
}

@media screen and (max-width: 767px) {
   .ba-simple-grid,  .ba-detailed-grid,.multi-media-grid{
        flex-direction: column;
    }
     .ba-arrow{
        clip-path: polygon(0 0, 50% 100%, 100% 0);
		        width: 50px;
        height: 35px;
    }
}
/* ========================================
   LAYOUT 4: BEFORE/AFTER DETAILED
======================================== */
.layout-before-after-detailed {
    max-width: 900px;
    margin: 0 auto;
}


.ba-detailed-item .ba-title, .multi-media-item .item-title{
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
    line-height: 1.6;
}
.ba-detailed-item .ba-description,.multi-media-item .item-description{
    font-size: 16px;
    line-height: 1.6;
    margin-top: 16px;
    color: #000;
}

.ba-detailed-item .ba-image img, .multi-media-item .item-media img, .multi-media-item .item-media iframe{
    height: 274px !important;
     position: relative;
}

@media (max-width: 767px) {
   .ba-detailed-grid .ba-image img{
        height: auto !important;
    }
}

/* ========================================
   LAYOUT 5: MULTI-MEDIA
======================================== */
.layout-multi-media {
    max-width: 900px;
    margin: 0 auto;
}

.layout-multi-media ol li{
  margin-left: 15px !important;
}
.multi-media-grid {
    gap: 2%;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.layout-multi-media .video-wrapper{
	 padding-bottom: 0;
     height: auto;
}
.multi-media-grid.cols-1 .multi-media-item{ width: 100%; }
.multi-media-grid.cols-2 .multi-media-item{ width: 48%; }
.multi-media-grid.cols-3 .multi-media-item{ width: 32%; }
.multi-media-grid.cols-4 .multi-media-item{ width: 23.5%; }
.multi-media-grid.cols-1 .item-media img, .multi-media-grid.cols-1 .item-media iframe{
	height: auto !important;
    min-height: 274px;
}


@media (max-width: 768px) {
.multi-media-grid{
	gap: 30px;
}
    .multi-media-grid.cols-2 .multi-media-item,
    .multi-media-grid.cols-3 .multi-media-item,
    .multi-media-grid.cols-4 .multi-media-item{
        width: 100%;
    }
}

/* ========================================
   LAYOUT 6: MULTI-TEXT BORDERED
======================================== */
.layout-multi-text-bordered {
    max-width: 900px;
    margin: 0 auto;
}

.layout-multi-text-bordered ol li{
  margin-left: 15px !important;
}
.multi-text-grid.bordered {
    display: grid;
    gap: 0;
    border: 1px solid #9e9e9e;
}

.multi-text-grid.bordered.cols-1 { grid-template-columns: 1fr; }
.multi-text-grid.bordered.cols-2 { grid-template-columns: repeat(2, 1fr); }
.multi-text-grid.bordered.cols-3 { grid-template-columns: repeat(3, 1fr); }
.multi-text-grid.bordered.cols-4 { grid-template-columns: repeat(4, 1fr); }

.multi-text-grid.bordered .multi-text-item {
    border-right: 1px solid #9e9e9e;
    border-bottom: 1px solid #9e9e9e;
}

.multi-text-grid.bordered .multi-text-item:last-child {
    border-right: none;
}

.multi-text-grid.bordered .item-title-bg {
    background: #e3e3e3;
    padding: 15px 20px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #9e9e9e;
  
}

.multi-text-grid.bordered .item-description {
    padding: 20px;
    font-size: 16px;
    line-height: 1.7;
    color: #666;
}

@media (max-width: 768px) {
    .multi-text-grid.bordered.cols-2,
    .multi-text-grid.bordered.cols-3,
    .multi-text-grid.bordered.cols-4 {
        grid-template-columns: 1fr;
    }
    
    .multi-text-grid.bordered .multi-text-item {
        border-right: none;
    }
}

/* ========================================
   LAYOUT 7: MULTI-TEXT CLEAN
======================================== */
.layout-multi-text-clean {
    max-width: 900px;
    margin: 0 auto;
}

.multi-text-grid.clean {
    display: grid;
    gap: 30px;
}

.multi-text-grid.clean.cols-1 { grid-template-columns: 1fr; }
.multi-text-grid.clean.cols-2 { grid-template-columns: repeat(2, 1fr); }
.multi-text-grid.clean.cols-3 { grid-template-columns: repeat(3, 1fr); }
.multi-text-grid.clean.cols-4 { grid-template-columns: repeat(4, 1fr); }

.multi-text-grid.clean .item-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #000;
    background: #e3e3e3;
    padding: 10px 4%;
}

.multi-text-grid.clean .item-description {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #000;
    padding: 10px 4% !important;
}

@media (max-width: 768px) {
    .multi-text-grid.clean.cols-2,
    .multi-text-grid.clean.cols-3,
    .multi-text-grid.clean.cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   LAYOUT 8 & 9: TEXT-IMAGE COMBINATIONS
======================================== */
.layout-text-image-left,
.layout-text-image-right {
    max-width: 900px;
    margin: 0 auto;
}

.text-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.text-content {
    font-size: 16px;
    line-height: 1.8;
    color: #000;
}

.image-content img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .text-image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .layout-text-image-left .text-image-grid{
    	display: flex;
    flex-direction: column-reverse;
    }
    .layout-text-image-right .text-image-grid {
        direction: ltr;
    }
    
    .layout-text-image-right .image-content {
        order: 1;
    }
    
    .layout-text-image-right .text-content {
        order: 2;
    }
}

/* ========================================
   LAYOUT 10: BEFORE/AFTER TRIPLE
======================================== */
.layout-before-after-triple {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.ba-triple-before {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.ba-triple-item {
    position: relative;
}

.ba-triple-item img {
    width: 100%;
    height: 100% !important;
    display: block;
     object-fit: cover;
}

.ba-arrow-down {
    width: 50px;
    height: 40px;
    background: #838383;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    align-self: center;
    margin: 18px auto 12px;
}
.ba-arrow-down svg{
display:none
}
.ba-triple-after {
    width: 100&;
    margin: 20px auto 0;
    position: relative;
}

.ba-triple-after img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .ba-triple-before {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ========================================
   LAYOUT 11: FAQ
======================================== */
.layout-faq {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 0px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.layout-faq::before{
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    z-index: -1;
    height: 100%;
    background: #e7f2fd;
    transform: translateX(-50%);
}
#page .faq-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #000;
    text-align: left;
    padding: 0px;
    border: none;
}

.faq-item {
    margin-bottom: 20px;
    background: #fff;
    padding: 24px 30px 30px;
    
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.faq-q-label, .faq-a-label{
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
    background: #305ec2;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
}
.faq-a-label{
    background: #c3d3f4;
    color: #305ec2;
}

.faq-q-text {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    width: calc(100% - 68px);
     display: block;
}

.faq-answer {
    display: flex;
    gap: 10px;
    align-items: center;
    
}


.faq-a-text {
    font-size: 6;
    line-height: 1.8;
    color: #000;
     width: calc(100% - 68px);
      display: block;
}
@media screen and (max-width: 767px) {
    .faq-q-label, .faq-a-label{
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    .faq-q-text,.faq-a-text{
        display: block;
    	width: calc(100% - 66px);
    }
}

/* ========================================
   LAYOUT 12: INFO BLOCKS
======================================== */
.layout-info-blocks{
    padding: 60px 0px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    max-width: 900px;
    margin: 0px auto;
}
.layout-info-blocks::before{
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 100%;
    background: #e7f2fd;
    z-index: -1;
    transform: translateX(-50%);
}

#page .info-main-title{
    text-align: left;
    font-size: 24px;
    font-weight: 700;
    border: none;
    padding: 0px;
    color: #000;
}
#page .info-block-item {
    margin-bottom: 20px;
    padding: 25px 5%;
    background: #fff;
}

#page .info-block-title {
    font-size: 20px;
    font-weight: bold;
    color: #000;

}
#page .info-block-subtitle {
	 font-size: 18px;
    font-weight: 400;
    display: block;
    margin-top: 6px;
    color: #000;
}

.info-block-description {
	margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #560b0b;
    font-size: 16px;
    line-height: 1.8;
    color: #000;
}

/* ========================================
   LAYOUT 13: BUTTONS
======================================== */
.layout-buttons {
    padding: 40px 20px;
    margin: 40px 0;
    border-radius: 20px;
}

.layout-buttons.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.layout-buttons.bg-light-gray {
    background: #f5f5f5;
}

.layout-buttons.bg-light-blue {
    background: #e8f4f8;
}

.buttons-grid {
    display: grid;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.buttons-grid.btn-cols-1 { grid-template-columns: 1fr; max-width: 400px; }
.buttons-grid.btn-cols-2 { grid-template-columns: repeat(2, 1fr); }
.buttons-grid.btn-cols-3 { grid-template-columns: repeat(3, 1fr); }
.buttons-grid.btn-cols-4 { grid-template-columns: repeat(4, 1fr); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 40px;
    transition: all 0.3s ease;
    text-align: center;
     position: relative;
}

.btn-blue {
    background: #305DC2;
    color: #fff;
}

.btn-blue:hover {
    background: #2548a0;
}

.btn-orange {
    background: #FF8C00;
    color: #fff;
}

.btn-orange:hover {
    background: #e67e00;
}

.btn-green {
    background: #28a745;
    color: #fff;
}

.btn-green:hover {
    background: #218838;
}

.btn-red {
    background: #dc3545;
    color: #fff;
}

.btn-red:hover {
    background: #c82333;
}

.btn-icon .btn-icon-img {
    width: 22px;
    height: 8px;
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    display:block;
    margin: 0px;
    padding:0px;
}

.btn-icon-img {
   
}

@media (max-width: 768px) {
    .buttons-grid.btn-cols-2,
    .buttons-grid.btn-cols-3,
    .buttons-grid.btn-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}