/* Custom Styles & Dropdown Stability Bridge for Hope School Electronics */

/* Hover Dropdown Bridge & Anti-Flicker Rules */
.main_menu ul:first-child > li {
    position: relative;
}

.main_menu ul:first-child > li:hover > .sub-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.main_menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

/* Hero Slider Banner Styling */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 470px;
    overflow: hidden;
    background: #111;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: center;
}
.hero-slide.active {
    opacity: 1;
    z-index: 2;
}
.hero-caption-wrapper {
    position: absolute;
    left: 60px;
    top: 120px;
}
.hero-title-box {
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 38px;
    line-height: 50px;
    padding: 10px 20px;
    font-weight: 300;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: -0.6px 0.5px 1px rgba(0,0,0,0.8);
}
.hero-subtitle-box {
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 16px;
    line-height: 30px;
    padding: 5px 15px;
    display: inline-block;
    font-weight: 200;
}
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.4);
    color: #fff;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    border-radius: 50%;
    font-size: 20px;
    user-select: none;
}
.hero-nav-btn:hover { background: rgba(0,0,0,0.8); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}
.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}
.hero-dot.active { background: #ffffff; }

.slide-image-container {
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 12px;
    display: block;
}
.slide-image-container img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.slide-image-container:hover img {
    transform: scale(1.05);
}

/* FontAwesome Social Icons Header Styling */
.social_bookmarks li a i {
    color: #888888;
    font-style: normal;
    transition: color 0.2s ease;
    display: inline-block;
    vertical-align: middle;
}
.social_bookmarks li a[data-av_icon]:before {
    content: "" !important;
}
.social_bookmarks_facebook:hover a i {
    color: #3b5998 !important;
}
.social_bookmarks_gplus:hover a i {
    color: #dd4b39 !important;
}
