/* ==========================================================================
   Flexible Modal Section - Block Styles
   ========================================================================== */

/* Section Container */
.flexible-modal-section-section {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 60px 10px;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    background-color: rgba(208, 230, 242, 0.40);
}

.flexible-modal-section-section *,
.flexible-modal-section-section *::before,
.flexible-modal-section-section *::after {
    box-sizing: border-box;
}

/* Container */
.flexible-modal-section-section .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1240px;
}

/* Header Section */
.flexible-modal-section-section .flexible-modal-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
    max-width: 1116px;
}

.flexible-modal-section-section .flexible-modal-title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 300;
    text-align: center;
    text-transform: capitalize;
    color: #112446;
    margin: 0;
    line-height: 50px;
}

.flexible-modal-section-section .flexible-modal-description {
    font-family: "Poppins", sans-serif;
    font-size: clamp(18px, 1.25vw, 18px);
    font-weight: 400;
    text-align: center;
    color: #313F58;
    margin: 0;
    line-height: 28px;
}

/* Cards Container */
.flexible-modal-section-section .flexible-modal-cards {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: stretch;
    width: 100%;
    max-width: 1440px;
    justify-content: center;
}

/* Individual Card */
.flexible-modal-section-section .flexible-card {
    width: 100%;
    max-width: 33%;
    min-height: 550px;
    flex: 1;
    background-color: #ffffff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.flexible-modal-section-section .flexible-card-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 26px;
    height: 100%;
}

/* Card Header */
.flexible-modal-section-section .flexible-card-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flexible-modal-section-section .flexible-card-icon {
    width: 70px;
    height: 70px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.flexible-modal-section-section .flexible-card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flexible-modal-section-section .flexible-card-title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(20px, 1.4vw, 20px);
    font-weight: 500;
    text-align: left;
    color: #112446;
    margin: 0;
    line-height: 1.3;
}

.flexible-modal-section-section .flexible-card-text {
    font-family: "Poppins", sans-serif;
    font-size: clamp(16px, 1.1vw, 16px);
    font-weight: 400;
    text-align: left;
    color: #313f58;
    margin: 0;
    line-height: 1.5;
}

/* Card Body */
.flexible-modal-section-section .flexible-card-body {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex-grow: 1;
    justify-content: space-between;
}

/* Features List */
.flexible-modal-section-section .flexible-features-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.flexible-modal-section-section .flexible-feature-item {
    display: flex;
    flex-direction: row;
    gap: 7px;
    align-items: center;
}

.flexible-modal-section-section .flexible-feature-icon {
    width: 18px;
    height: 18px;
    background-size: 18px;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.flexible-modal-section-section .flexible-feature-text {
    font-family: "Poppins", sans-serif;
    font-size: clamp(16px, 1.1vw, 16px);
    font-weight: 500;
    text-align: left;
    color: #112446;
    line-height: 1.4;
}

/* Card Button */
.flexible-modal-section-section .flexible-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    min-width: 116px;
    height: 50px;
    background-color: #13367d;
    border-radius: 4px;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    color: #f4f7fa;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    max-width: 131px;
}

.flexible-modal-section-section .flexible-card-btn:hover {
    background-color: #0f2a5e;
    transform: translateY(-1px);
}

.flexible-modal-section-section .flexible-card-btn:focus {
    outline: 2px solid #13367d;
    outline-offset: 2px;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
    .flexible-modal-section-section {
        padding: 50px 10px;
    }
    
    
    .flexible-modal-section-section .flexible-modal-cards {
        flex-wrap: wrap;
    }
    
    .flexible-modal-section-section .flexible-card {
        max-width: calc(50% - 10px);
        min-height: 500px;
    }
    
}

/* Mobile Landscape - 768px and below */
@media (max-width: 768px) {
	.flexible-modal-section-section .flexible-modal-title{
		line-height: 40px;
	}
    
    .flexible-modal-section-section .flexible-modal-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .flexible-modal-section-section .flexible-card {
        max-width: 100%;
        min-height: auto;
        width: 100%;
    }
    
    .flexible-modal-section-section .flexible-card-inner {
        padding: 48px 26px;
    }
 
    .flexible-modal-section-section .flexible-card-btn {
        width: max-content;
        height: 40px;
    }
}

/* Mobile Portrait - 480px and below */
@media (max-width: 480px) {
    .flexible-modal-section-section {
        padding: 50px 10px;
    }
    
    .flexible-modal-section-section .container {
        padding: 0 10px;
    }
    
    .flexible-modal-section-section .flexible-card-icon {
        width: 60px;
        height: 60px;
    }
    
    
    .flexible-modal-section-section .flexible-card-btn {
        font-size: 15px;
        height: 38px;
    }
}
