/**
 * DataFirefly Page Builder - Front CSS
 *
 * @author    DataFirefly
 * @copyright DataFirefly
 */

/* Row container */
.dfpb-row {
    margin: 20px 0;
}

.dfpb-row-inner {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

/* Responsive columns */
.dfpb-col {
    padding: 0 15px;
    box-sizing: border-box;
}

/* Desktop columns (lg) */
.dfpb-col-lg-1 { width: 8.333333%; }
.dfpb-col-lg-2 { width: 16.666667%; }
.dfpb-col-lg-3 { width: 25%; }
.dfpb-col-lg-4 { width: 33.333333%; }
.dfpb-col-lg-5 { width: 41.666667%; }
.dfpb-col-lg-6 { width: 50%; }
.dfpb-col-lg-7 { width: 58.333333%; }
.dfpb-col-lg-8 { width: 66.666667%; }
.dfpb-col-lg-9 { width: 75%; }
.dfpb-col-lg-10 { width: 83.333333%; }
.dfpb-col-lg-11 { width: 91.666667%; }
.dfpb-col-lg-12 { width: 100%; }

/* Tablet columns (md) - max 991px */
@media (max-width: 991px) {
    .dfpb-col-md-1 { width: 8.333333%; }
    .dfpb-col-md-2 { width: 16.666667%; }
    .dfpb-col-md-3 { width: 25%; }
    .dfpb-col-md-4 { width: 33.333333%; }
    .dfpb-col-md-5 { width: 41.666667%; }
    .dfpb-col-md-6 { width: 50%; }
    .dfpb-col-md-7 { width: 58.333333%; }
    .dfpb-col-md-8 { width: 66.666667%; }
    .dfpb-col-md-9 { width: 75%; }
    .dfpb-col-md-10 { width: 83.333333%; }
    .dfpb-col-md-11 { width: 91.666667%; }
    .dfpb-col-md-12 { width: 100%; }
}

/* Mobile columns (sm) - max 767px */
@media (max-width: 767px) {
    .dfpb-col-sm-1 { width: 8.333333%; }
    .dfpb-col-sm-2 { width: 16.666667%; }
    .dfpb-col-sm-3 { width: 25%; }
    .dfpb-col-sm-4 { width: 33.333333%; }
    .dfpb-col-sm-5 { width: 41.666667%; }
    .dfpb-col-sm-6 { width: 50%; }
    .dfpb-col-sm-7 { width: 58.333333%; }
    .dfpb-col-sm-8 { width: 66.666667%; }
    .dfpb-col-sm-9 { width: 75%; }
    .dfpb-col-sm-10 { width: 83.333333%; }
    .dfpb-col-sm-11 { width: 91.666667%; }
    .dfpb-col-sm-12 { width: 100%; }
}

/* Block base */
.dfpb-block {
    margin-bottom: 20px;
}

/* Title block */
.dfpb-title {
    margin: 0 0 15px 0;
}

.dfpb-text-left { text-align: left; }
.dfpb-text-center { text-align: center; }
.dfpb-text-right { text-align: right; }

/* Text block */
.dfpb-text-content {
    line-height: 1.6;
}

.dfpb-text-content p:last-child {
    margin-bottom: 0;
}

/* Image block */
.dfpb-image-wrapper {
    text-align: center;
}

.dfpb-image {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* Video block */
.dfpb-video-wrapper {
    width: 100%;
}

.dfpb-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

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

/* Button block */
.dfpb-button-wrapper {
    margin: 10px 0;
}

.dfpb-button-wrapper.dfpb-align-left {
    text-align: left;
}

.dfpb-button-wrapper.dfpb-align-center {
    text-align: center;
}

.dfpb-button-wrapper.dfpb-align-right {
    text-align: right;
}

.dfpb-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.dfpb-btn-primary {
    background-color: #25b9d7;
    color: #fff;
    border-color: #25b9d7;
}

.dfpb-btn-primary:hover {
    background-color: #1a9bb5;
    border-color: #1a9bb5;
    color: #fff;
    text-decoration: none;
}

.dfpb-btn-secondary {
    background-color: #fde1d1;
    color: #000000;
    border-color: #fde1d1;
}

.dfpb-btn-secondary:hover {
    background-color: #fde1d1;
    color: #000000;
    border-color: #fde1d1;
    text-decoration: none;
}

.dfpb-btn-outline {
    background-color: transparent;
    color: #25b9d7;
    border-color: #25b9d7;
}

.dfpb-btn-outline:hover {
    background-color: #25b9d7;
    color: #fff;
    text-decoration: none;
}

.dfpb-btn-link {
    background: none;
    border: none;
    color: #25b9d7;
    padding: 12px 0;
    text-decoration: underline;
}

.dfpb-btn-link:hover {
    color: #1a9bb5;
}

/* Spacer block */
.dfpb-spacer {
    display: block;
    width: 100%;
}

/* Divider block */
.dfpb-divider {
    border: none;
    border-top-width: 1px;
    margin: 20px 0;
}

/* Shortcode block */
.dfpb-shortcode-wrapper {
    width: 100%;
}

/* Alert block */
.dfpb-alert {
    padding: 16px 20px;
    border-radius: 6px;
    border-left: 4px solid;
    margin: 10px 0;
}

.dfpb-alert-info {
    background-color: #e8f4fd;
    border-left-color: #2196f3;
    color: #1565c0;
}

.dfpb-alert-success {
    background-color: #e8f5e9;
    border-left-color: #4caf50;
    color: #2e7d32;
}

.dfpb-alert-warning {
    background-color: #fff8e1;
    border-left-color: #ff9800;
    color: #e65100;
}

.dfpb-alert-danger {
    background-color: #fce4ec;
    border-left-color: #f44336;
    color: #c62828;
}

.dfpb-alert-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 6px;
}

.dfpb-alert-content {
    font-size: 14px;
    line-height: 1.5;
}

.dfpb-alert-content p:last-child {
    margin-bottom: 0;
}

/* Icon Box block */
.dfpb-icon-box {
    padding: 20px 15px;
}

.dfpb-icon-box-icon {
    margin-bottom: 15px;
}

.dfpb-icon-box-icon .material-icons {
    font-size: 48px;
}

.dfpb-icon-box-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.dfpb-icon-box-content {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.dfpb-icon-box-content p:last-child {
    margin-bottom: 0;
}

/* Accordion / FAQ block */
.dfpb-accordion {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.dfpb-accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

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

.dfpb-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background: #fafafa;
    transition: background 0.2s ease;
    user-select: none;
}

.dfpb-accordion-header:hover {
    background: #f0f0f0;
}

.dfpb-accordion-title {
    font-weight: 500;
    font-size: 15px;
    color: #333;
}

.dfpb-accordion-icon {
    font-size: 20px;
    font-weight: 300;
    color: #999;
    transition: transform 0.3s ease;
    line-height: 1;
}

.dfpb-accordion-item.active .dfpb-accordion-icon {
    transform: rotate(45deg);
}

.dfpb-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.dfpb-accordion-item.active .dfpb-accordion-body {
    max-height: 2000px;
}

.dfpb-accordion-content {
    padding: 15px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    background: #fff;
}

.dfpb-accordion-content p:last-child {
    margin-bottom: 0;
}

/* Testimonial block */
.dfpb-testimonial {
    background: #f9f9fb;
    border-radius: 8px;
    padding: 25px;
    position: relative;
}

.dfpb-testimonial-quote {
    position: relative;
    margin-bottom: 20px;
}

.dfpb-testimonial-mark {
    font-size: 60px;
    line-height: 1;
    color: #25b9d7;
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: -5px;
    font-family: Georgia, serif;
}

.dfpb-testimonial-text {
    padding-left: 30px;
    font-size: 15px;
    line-height: 1.7;
    font-style: italic;
    color: #444;
}

.dfpb-testimonial-text p:last-child {
    margin-bottom: 0;
}

.dfpb-testimonial-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.dfpb-testimonial-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.dfpb-testimonial-author {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.dfpb-testimonial-rating {
    margin-top: 3px;
}

.dfpb-star {
    color: #ddd;
    font-size: 14px;
}

.dfpb-star-filled {
    color: #ffc107;
}

/* Map block */
.dfpb-map-wrapper {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
}

.dfpb-map-wrapper iframe {
    display: block;
}
