/*--------------------------------------------------------------
02.20 CUSTOM FIXES
--------------------------------------------------------------*/
/* Fix for same box size and button placement */
.tab-content .row,
.ed-courses-wrapper .row {
    display: flex !important;
    flex-wrap: wrap !important;
}

.tab-content .row>div[class*="col-"],
.ed-courses-wrapper .row>div[class*="col-"] {
    display: flex !important;
    align-items: stretch !important;
    margin-bottom: 30px !important;
}

.ed-courses-box-items {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
}

.ed-courses-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.ed-courses-content p {
    flex-grow: 1 !important;
    margin-bottom: 25px !important;
}

.ed-courses-box-items .ed-courses-content .theme-btn {
    margin-top: auto !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 15px 10px !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
}

/* Responsive spacing for course boxes */
@media (max-width: 991px) {

    .tab-content .row>div[class*="col-"],
    .ed-courses-wrapper .row>div[class*="col-"] {
        margin-bottom: 25px !important;
    }
}

@media (max-width: 767px) {

    .tab-content .row>div[class*="col-"],
    .ed-courses-wrapper .row>div[class*="col-"] {
        margin-bottom: 20px !important;
    }

    /* Hero section responsive fixes */
    .ed-hero-content span {
        font-size: 11px !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
        display: block !important;
    }

    .ed-hero-content h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    .ed-hero-content p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
}

/* Additional responsive fix for very small screens */
@media (max-width: 480px) {
    .ed-hero-content span {
        font-size: 10px !important;
    }

    .ed-hero-content h1 {
        font-size: 20px !important;
        line-height: 1.2 !important;
    }

    .ed-hero-content p {
        font-size: 12px !important;
    }
}

/* Newsletter CTA Section Responsive Fixes */
@media (max-width: 767px) {
    .ed-cta-new-wrapper {
        padding: 30px 20px !important;
    }

    .ed-cta-new-wrapper h2 {
        font-size: 20px !important;
        line-height: 1.4 !important;
        margin-bottom: 25px !important;
        padding: 0 10px !important;
        word-wrap: break-word !important;
        white-space: normal !important;
    }

    .ed-cta-new-wrapper form {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
    }

    .ed-cta-new-wrapper form input[type="email"] {
        width: 100% !important;
        margin-bottom: 0 !important;
        padding: 15px !important;
        font-size: 14px !important;
        order: 1 !important;
    }

    .ed-cta-new-wrapper form button,
    .ed-cta-new-wrapper form .theme-btn {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 15px 20px !important;
        font-size: 14px !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        order: 2 !important;
    }
}

@media (max-width: 480px) {
    .ed-cta-new-wrapper {
        padding: 25px 15px !important;
    }

    .ed-cta-new-wrapper h2 {
        font-size: 16px !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
        padding: 0 5px !important;
    }

    .ed-cta-new-wrapper form {
        gap: 12px !important;
        padding: 0 5px !important;
    }

    .ed-cta-new-wrapper form input[type="email"] {
        padding: 12px !important;
        font-size: 13px !important;
    }

    .ed-cta-new-wrapper form button,
    .ed-cta-new-wrapper form .theme-btn {
        padding: 12px 15px !important;
        font-size: 13px !important;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 90px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    animation: fadeInWhatsApp 0.5s ease-in-out 1s forwards;
}

@keyframes fadeInWhatsApp {
    to {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
    line-height: 55px;
    color: #FFF;
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {

    /* Adjust back-to-top button position for mobile */
    .back-to-top {
        right: 20px !important;
        bottom: 20px !important;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 85px;
        right: 20px;
        font-size: 26px;
    }

    .whatsapp-float i {
        line-height: 50px;
    }
}

@media (max-width: 480px) {

    /* Adjust back-to-top button position for small mobile */
    .back-to-top {
        right: 15px !important;
        bottom: 15px !important;
        width: 45px !important;
        height: 45px !important;
        line-height: 45px !important;
        font-size: 16px !important;
    }

    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 75px;
        right: 15px;
        font-size: 25px;
    }

    .whatsapp-float i {
        line-height: 48px;
    }
}

/* Contact Form Subject Dropdown Styling */
.form-clt select {
    width: 100%;
    outline: none;
    border-radius: 10px;
    background-color: var(--white, #fff);
    font-size: 15px;
    padding: 24px 20px;
    line-height: 1;
    color: var(--header, #333);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 45px;
}

.form-clt select:focus {
    border-color: var(--theme, #1a73e8);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-clt select option {
    padding: 10px;
    background-color: #fff;
    color: #333;
}

.form-clt select option:disabled {
    color: #999;
}

/* Responsive adjustments for select */
@media (max-width: 767px) {
    .form-clt select {
        font-size: 14px;
        padding: 20px 18px;
        padding-right: 40px;
    }
}

@media (max-width: 480px) {
    .form-clt select {
        font-size: 13px;
        padding: 18px 15px;
        padding-right: 38px;
    }
}