/* Strength Cards - Background Image Design */
.strength-card {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    border-radius: 10px;
}

.strength-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.3s ease;
}

.strength-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
    transition: background 0.3s ease;
}

.strength-card .it-choose-2-content {
    position: relative;
    z-index: 3;
    color: #fff;
    padding: 40px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.strength-card .it-choose-2-title {
    color: #fff !important;
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.strength-card .it-choose-2-content p {
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Upload button - positioned at top-right corner (used site-wide for all editable images) */
.strength-upload-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(3, 89, 78, 0.9);
    border-radius: 8px;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.strength-upload-btn:hover {
    background: rgba(3, 89, 78, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Show upload button only in edit mode (applies to all editable images site-wide) */
body.edit-mode-active .strength-upload-btn {
    display: flex;
}

/* Hero background upload bar - shown after the hero section in edit mode (mobile only) */
body.edit-mode-active .hero-bg-upload-bar {
    display: flex !important;
}

.image-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    pointer-events: none;
}

/* Wrapper for editable img tags (allows absolute positioning of upload button) */
.editable-img-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.editable-img-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* Hover effect */
.strength-card:hover .strength-bg-image {
    transform: scale(1.1);
}

.strength-card:hover .strength-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .strength-card {
        min-height: 350px;
    }
}

@media (max-width: 767px) {
    .strength-card {
        min-height: 300px;
    }
    
    .strength-card .it-choose-2-content {
        padding: 30px 20px;
    }
    
    .strength-card .it-choose-2-title {
        font-size: 20px;
    }
}

/* Edit mode only elements - Hidden by default, visible only in edit mode */
.edit-mode-only {
    display: none !important;
}

body.edit-mode-active .edit-mode-only {
    display: block !important;
}

/* Fix: theme CSS applies position:absolute to ALL button spans, but our editable-text
   wrapper spans must stay in normal flow so tab button text renders correctly */
.it-course-tab-btn ul li button .editable-text {
    position: static;
    opacity: 1;
    bottom: auto;
    left: auto;
    right: auto;
}
