/* Hero Slider Module */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: var(--hero-height, 500px);
    min-height: 420px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    border-radius: var(--gt-main-radius, 0.5rem);
}
.hero-slider-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}
.hero-slider-swiper {
    width: 100%;
    height: 100%;
}
.hero-slide {
    position: relative;
    overflow: hidden;
}
.hero-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}
.hero-content {
    position: absolute;
    bottom: 14%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    max-width: 600px;
    width: 88%;
    text-align: center;
}
.hero-content .hero-title,
.hero-content .hero-desc {
    text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: 1.3;
}
.hero-desc {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0 0 1rem;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.hero-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--gt-main-color, #007fff);
    color: #fff;
    border-radius: var(--gt-main-radius, 0.5rem);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s;
}
.hero-btn:hover {
    opacity: 0.85;
    color: #fff;
}

/* Swiper customizations */
.hero-slider-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
    width: 10px;
    height: 10px;
}
.hero-slider-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--gt-main-color, #007fff);
}
.hero-slider-swiper .swiper-button-prev,
.hero-slider-swiper .swiper-button-next {
    color: #fff;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    transition: background 0.2s;
}
.hero-slider-swiper .swiper-button-prev:hover,
.hero-slider-swiper .swiper-button-next:hover {
    background: rgba(0,0,0,0.5);
}
.hero-slider-swiper .swiper-button-prev::after,
.hero-slider-swiper .swiper-button-next::after {
    font-size: 16px;
    font-weight: bold;
}

/* Search overlay - inside hero, only used as fallback */
.hero-search-overlay {
    display: none;
}

/* Search external - placed below hero */
.hero-search-external {
    position: relative;
    z-index: 5;
    width: calc(100% - 2rem);
    max-width: 680px;
    margin: -1.6rem auto 0.6rem;
}
.hero-search-form {
    width: 100%;
    margin: 0;
}
.hero-search-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.95);
    border-radius: 50px;
    padding: 0.3rem 0.3rem 0.3rem 1.2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
}
.hero-search-input-wrap i {
    font-size: 1.2rem;
    color: #888;
    flex-shrink: 0;
}
.hero-search-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 0.75rem 0.8rem;
    font-size: 1rem;
    color: #333;
    min-width: 0;
    width: 100%;
}
.hero-search-input-wrap button {
    padding: 0.65rem 1.6rem;
    background: var(--gt-main-color, #007fff);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s, transform 0.15s;
}
.hero-search-input-wrap button:hover {
    opacity: 0.88;
    transform: scale(1.03);
}

/* Icon cards - moved to a separate row below the hero (via margin/spacing handled by parent) */
.hero-icon-cards {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    background: var(--gt-card-bg, #fff);
    border-radius: var(--gt-main-radius, 0.5rem);
    box-shadow: var(--gt-box-shadow, 0 3px 8px 6px rgba(7,17,27,0.05));
    padding: 0.6rem 1rem;
    max-width: 680px;
    width: calc(100% - 2rem);
    margin: 0.4rem auto 0;
    box-sizing: border-box;
}
.hero-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    text-decoration: none;
    color: var(--gt-font-color, #34495e);
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s;
    min-width: 60px;
    flex: 1;
}
.hero-icon-card:hover {
    color: var(--gt-main-color, #007fff);
}
.hero-icon-card i {
    font-size: 1.5rem;
    color: var(--gt-main-color, #007fff);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider-section {
        height: 360px;
        min-height: 360px;
        border-radius: var(--gt-main-radius, 0.5rem);
    }
    .hero-title {
        font-size: 1.25rem;
    }
    .hero-desc {
        font-size: 0.82rem;
    }
    .hero-content {
        bottom: 28%;
        width: 92%;
    }
    .hero-content .hero-btn {
        padding: 0.4rem 1.1rem;
        font-size: 0.8rem;
    }
    .hero-search-overlay {
        display: none;
    }
    .hero-search-external {
        width: calc(100% - 1.5rem);
        margin: -1.2rem 0.75rem 0.5rem;
    }
    .hero-search-input-wrap {
        padding: 0.2rem 0.2rem 0.2rem 0.9rem;
    }
    .hero-search-input-wrap input {
        padding: 0.55rem 0.5rem;
        font-size: 0.9rem;
    }
    .hero-search-input-wrap button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    .hero-slider-swiper .swiper-button-prev,
    .hero-slider-swiper .swiper-button-next {
        display: none;
    }
    .hero-icon-cards {
        gap: 0.4rem;
        padding: 0.5rem 0.6rem;
        margin: -1.25rem 0.75rem 0;
        width: auto;
        max-width: none;
    }
    .hero-icon-card {
        padding: 0.35rem 0.4rem;
        font-size: 0.72rem;
        min-width: 50px;
    }
    .hero-icon-card i {
        font-size: 1.15rem;
    }
}
