/* ========================= Custom Styles for InfoData ========================= */

/* Skip Link for Accessibility (WCAG) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #3451d1;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Logo Size Adjustment */
.navbar-brand img {
    max-height: 80px;
    width: auto;
}

/* Header Height Adjustment */
.header-2 .navbar {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Fix Hero Section Overlap with Header */
.hero-section.hero-style-2 {
    padding-top: 180px;
}

/* Stabilize Hero Section Height */
.hero-section-wrapper-2 .hero-style-2 {
    min-height: 750px;
}

@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 60px;
    }

    .hero-section.hero-style-2 {
        padding-top: 140px;
    }
}

/* Hero Slider List Styles */
.hero-list {
    list-style: none;
    padding-left: 0;
}

.hero-list li {
    padding: 8px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.hero-list li i {
    margin-right: 10px;
    color: #4a6cf7;
    font-size: 20px;
}

/* Hero Slider Controls */
.hero-slider-controls {
    position: relative;
}

.hero-slider-controls .slider-control {
    position: absolute;
    top: -300px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-controls .slider-control:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.hero-slider-controls .slider-control.prev {
    left: 20px;
}

.hero-slider-controls .slider-control.next {
    right: 20px;
}

.hero-slider-controls .slider-control i {
    font-size: 24px;
    color: #4a6cf7;
}

/* Slider Navigation Dots */
.hero-slider-controls .slider-dots {
    position: absolute;
    bottom: -350px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-slider-controls .slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.hero-slider-controls .slider-dot.active {
    background: #ffffff;
    width: 30px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider-controls .slider-control {
        width: 40px;
        height: 40px;
        top: -250px;
    }

    .hero-slider-controls .slider-control.prev {
        left: 10px;
    }

    .hero-slider-controls .slider-control.next {
        right: 10px;
    }

    .hero-slider-controls .slider-control i {
        font-size: 20px;
    }

    .hero-slider-controls .slider-dots {
        bottom: -300px;
    }
}

/* Hero Image Styles */
.hero-image img {
    width: 100%;
    height: auto;
}

.hero-section-wrapper-2 .hero-style-2 .hero-image {
    margin-bottom: 200px;
}

/* Content and Image Slider Items */
.hero-content-slider .slide-item,
.hero-image-slider .slide-item {
    display: none;
}

.hero-content-slider .slide-item:first-child,
.hero-image-slider .slide-item:first-child {
    display: block;
}

/* Adjust image size for better display */
@media (min-width: 992px) {
    .hero-image {
        padding-left: 40px;
    }
}

@media (max-width: 991px) {
    .hero-image {
        margin-top: 40px;
    }
}

/* ========================= WCAG 2.1 AA Accessibility Improvements ========================= */

/* Improved contrast for navigation links (WCAG AA 4.5:1) */
.page-scroll {
    color: #3d3d5c !important;
}

.page-scroll.active {
    color: #0d47a1 !important;
}

/* Improved contrast for email links */
#contact-email,
#footer-email {
    color: #0d47a1 !important;
}

/* Larger touch targets for slider dots (min 24px WCAG) */
.hero-slider-controls .slider-dot {
    width: 24px;
    height: 24px;
    padding: 0;
}

.hero-slider-controls .slider-dot.active {
    width: 40px;
    border-radius: 12px;
}

/* Improved contrast for hero h4 headings (WCAG AA 3:1 for large text) */
.hero-section-wrapper-2 .hero-style-2 .hero-content-wrapper h4 {
    color: #0d47a1 !important;
}
