/* ====== CUSTOM SLIDER STYLES ====== */

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Ensure hero slider remains visible at all times (do not hide on idle/header changes) */
.hero-slider {
    z-index: 500;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    pointer-events: auto !important;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.slider-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-item.active {
    opacity: 1;
    animation: slideInFade 0.8s ease-in-out;
}

.slider-item.prev {
    animation: slideOutFade 0.8s ease-in-out;
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutFade {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* Per-slide gradient backgrounds */
.slider-item.slide-stock {
    background: linear-gradient(135deg, #2E7D87 0%, #667eea 50%, #764ba2 100%);
}

.slider-item.slide-mutual {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 50%, #5a67d8 100%);
}

.slider-item.slide-insurance {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
}

.slider-item.slide-wealth {
    background: linear-gradient(135deg, #1e40af 0%, #667eea 50%, #d4af37 100%);
}

.slider-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 60px 40px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.slider-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 
                 3px 3px 8px rgba(0, 0, 0, 0.6),
                 -2px -2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 0.8s ease-out 0.2s backwards;
    letter-spacing: 0.5px;
}

.slider-content p {
    font-size: 18px;
    font-weight: 400;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.55);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    margin: 0;
}

.slider-content .btn_theme {
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Per-slide text alignment */
.slider-item.left .slider-content {
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding-left: 8%;
}

.slider-item.right .slider-content {
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    padding-right: 8%;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background-color: white;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

/* ====== RESPONSIVE SLIDER ====== */

@media (max-width: 768px) {
    .slider-wrapper {
        height: 400px;
    }

    .slider-content h2 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .slider-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-arrow.prev {
        left: 15px;
    }

    .slider-arrow.next {
        right: 15px;
    }

    .slider-controls {
        bottom: 20px;
        gap: 10px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .slider-wrapper {
        height: 300px;
    }

    .slider-content {
        padding: 30px 20px;
    }

    .slider-content h2 {
        font-size: 24px;
    }

    .slider-content p {
        font-size: 12px;
    }

    .slider-arrow {
        display: none;
    }
}

/* ====== ABOUT SECTION ====== */

.about-section {
    padding: 80px 0;
}

.about-content {
    margin-bottom: 50px;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.highlight-card {
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.highlight-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.highlight-card p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ====== SERVICES SECTION ====== */

.services-section {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    padding: 35px;
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    border-color: #667eea;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
    transform: translateY(-10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px 10px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #222;
}

.service-card p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* ====== FEATURES LIST ====== */

.features-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    color: #666;
    font-size: 15px;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li:before {
    content: '✓';
    color: #667eea;
    font-size: 20px;
    font-weight: bold;
    margin-right: 12px;
}

/* ====== SECTION HEADING ====== */

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.section-heading h1 {
    font-size: 40px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
}

.section-heading p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-heading h1 {
        font-size: 28px;
    }

    .about-highlights,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 25px;
    }

    .service-card h3 {
        font-size: 18px;
    }
}
