.circle-btn-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px;
    max-width: 100%;
    margin: 0 auto;
}

.circle-btn {
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1E90FF !important;
    text-decoration: none;
    transition: all 0.4s ease;
    white-space: pre-line;
    font-weight: bold;
    flex-direction: column;
    position: relative;
    /* 3D Effect Styles */
    transform-style: preserve-3d;
}

.circle-btn * {
    color: #1E90FF !important;
}

/* 3D Glow effect */
.circle-btn::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.3) 0%, transparent 70%);
    z-index: -1;
    animation: pulse 2s ease-in-out infinite alternate;
}

/* Pulsing glow animation */
@keyframes pulse {
    0% { 
        transform: scale(1);
        opacity: 0.7;
    }
    100% { 
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* Desktop - Large screens */
@media (min-width: 1200px) {
    .circle-btn {
        width: 180px;
        height: 180px;
        font-size: 14px;
        padding: 15px;
        line-height: 1.2;
    }
    .circle-btn i {
        font-size: 40px;
        margin-bottom: 8px;
    }
    .slide-title-1 { 
        font-size: 37px !important; 
        font-weight: 1000 !important;
        line-height: 1.3 !important;
        text-shadow: 1px 1px 3px rgba(249, 249, 249, 0.6) !important;
    }
    .slide-title-2 { 
        font-size: 24px !important; 
        font-weight: 600 !important;
        line-height: 1.4 !important;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.6) !important;
    }
    .slide-description { 
        font-size: 16px !important; 
        max-width: 700px !important; 
        line-height: 1.5 !important;
    }
}

/* Desktop - Medium screens */
@media (max-width: 1199px) and (min-width: 992px) {
    .circle-btn {
        width: 140px;
        height: 140px;
        font-size: 12px;
        padding: 10px;
        line-height: 1.2;
    }
    .circle-btn i {
        font-size: 35px;
        margin-bottom: 6px;
        filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.8));
    }
    .slide-title-1 { 
        font-size: 28px !important; 
        font-weight: bold !important;
        line-height: 1.3 !important;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.7) !important;
    }
    .slide-title-2 { 
        font-size: 20px !important; 
        font-weight: 600 !important;
        line-height: 1.4 !important;
    }
    .slide-description { 
        font-size: 14px !important; 
        max-width: 600px !important; 
        line-height: 1.5 !important;
    }
}

/* Tablet */
@media (max-width: 991px) and (min-width: 768px) {
    .circle-btn {
        width: 100px;
        height: 100px;
        font-size: 10px;
        padding: 8px;
        line-height: 1.1;
    }
    .circle-btn i {
        font-size: 28px;
        margin-bottom: 4px;
    }
    .slide-title-1 { 
        font-size: 22px !important; 
        font-weight: bold !important;
        line-height: 1.3 !important;
        padding: 0 20px !important;
    }
    .slide-title-2 { 
        font-size: 16px !important; 
        font-weight: 600 !important;
        line-height: 1.4 !important;
        padding: 0 20px !important;
    }
    .slide-description { 
        font-size: 12px !important; 
        max-width: 90% !important; 
        line-height: 1.4 !important;
        padding: 0 20px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .circle-btn-group {
        gap: 10px;
        padding: 5px;
    }
    .circle-btn {
        width: 60px;
        height: 60px;
        font-size: 8px;
        padding: 4px;
        border-width: 2px;
    }
    .circle-btn i {
        font-size: 20px;
        margin-bottom: 0px;
    }
    .circle-btn span {
        display: none; /* Hide text on small screens */
    }
    .slide-title-1 { 
        font-size: 16px !important; 
        font-weight: bold !important;
        line-height: 1.2 !important;
        padding: 0 15px !important;
    }
    .slide-title-2 { 
        font-size: 12px !important; 
        font-weight: 600 !important;
        line-height: 1.3 !important;
        padding: 0 15px !important;
    }
    .slide-description { 
        font-size: 10px !important; 
        max-width: 95% !important; 
        line-height: 1.3 !important;
        padding: 0 15px !important;
    }
}

.circle-btn:hover {
    color: #4169E1 !important;
    transform: translateY(-8px) scale(1.2) rotateX(15deg);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

.circle-btn:hover * {
    color: #4169E1 !important;
}

.circle-btn:active {
    transform: translateY(-4px) scale(1.1) rotateX(10deg);
}

/* Text container improvements */
.text-container {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

@media (max-width: 767px) {
    .text-container {
        padding: 10px;
        border-radius: 5px;
    }
}

/* Prevent text overflow and ensure readability */
.tp-caption {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .circle-btn {
        width: 50px;
        height: 50px;
    }
    .circle-btn i {
        font-size: 16px;
    }
    .slide-title-1 { 
        font-size: 14px !important;
    }
    .slide-title-2 { 
        font-size: 11px !important;
    }
    .slide-description { 
        font-size: 9px !important;
    }
}

/* Highlight .slide-title-1 with background and glow effect */
.slide-title-1 {
    background: rgba(30, 144, 255, 0.15); /* Light blue background */
    padding: 5px 10px; /* Slight padding to frame the background */
    border-radius: 5px; /* Rounded corners */
    position: relative; /* For pseudo-element positioning */
    z-index: 1; /* Ensure it’s above other elements */
}

/* Glow effect for .slide-title-1 */
.slide-title-1::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.3) 0%, transparent 70%);
    z-index: -1;
    animation: pulse 2s ease-in-out infinite alternate;
}

/* Responsive adjustments for .slide-title-1 */
@media (max-width: 991px) and (min-width: 768px) {
    .slide-title-1 {
        padding: 3px 8px; /* Smaller padding for tablets */
    }
    .slide-title-1::before {
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px; /* Adjust glow size for tablets */
    }
}

@media (max-width: 767px) {
    .slide-title-1 {
        padding: 2px 6px; /* Smaller padding for mobile */
        border-radius: 3px;
    }
    .slide-title-1::before {
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px; /* Adjust glow size for mobile */
    }
}

@media (max-width: 480px) {
    .slide-title-1 {
        padding: 2px 5px; /* Minimal padding for small mobile */
    }
}