/* Custom CSS for SkillGini Bootstrap Clone */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2563eb;
    --teal-accent: #14b8a6;
    --orange-light: #fb923c;
    --orange-dark: #f97316;
    --purple-accent: #7c3aed;
    --dark-bg: #1f2937;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #1f2937;
}

/* Header Styles */
.navbar {
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Hero Section - Background Image Added */
.hero-section {
    height: 95vh;
    padding: 5rem 0;
    background-image: url("../images/hero3.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay for text readability */
    z-index: -1;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 1rem;
    background-position: top;
    background-size: inherit; /* or 'cover' depending on your image */
  }
}

.hero-section h1,
.hero-section p {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Search Bar */
.input-group {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.input-group input {
    border: 2px solid #d1d5db;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.input-group input:focus {
    border-color: var(--primary-blue);
    box-shadow: none;
}

.quiz-slide-card {
    display: flex;
    align-items: center;
    background-image: radial-gradient(
        circle 918px at 13.1% 25.5%,
        #f96b6b 0,
        #f7e7ac 48.9%,
        #adf7ac 90%
    );
    border-radius: 12px;
    padding: 15px;
    color: white;
    transition: transform 0.2s ease;
}
.quiz-slide-card:hover {
    transform: translateY(-5px);
}
.quiz-slide-card img {
    object-fit: contain;
    width: 150px;
    height: 120px;
}

/* Quiz Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.badge {
    background-color: var(--teal-accent) !important;
    font-size: 0.7rem;
    padding: 0.35rem 0.65rem;
}

/* Category Grid - 5 columns */
@media (min-width: 992px) {
    .col-lg-2-5 {
        flex: 0 0 calc(20% - 0.6rem);
        max-width: calc(20% - 0.6rem);
    }
}

/* Buttons */
.btn-outline-primary {
    border-width: 2px;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: white;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

/* WorkAssist Banner */
.rounded-4 {
    border-radius: 1.5rem !important;
}

/* Footer */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--teal-accent) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        background-position: center 30%;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .btn-group {
        gap: 0.5rem;
    }
}
/* 🧭 Default desktop view (arrows at sides) */
.swiper-button-prev-custom,
.swiper-button-next-custom {
    width: 45px;
    height: 45px;
    background: rgba(151, 151, 151, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

/* Hide Swiper's default icons */
.swiper-button-prev-custom::after,
.swiper-button-next-custom::after {
    display: none;
}

/* Hover effect for desktop */
.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
    background: #0d6efd;
    color: #fff;
}

/* ✅ On mobile: move arrows to top center */
@media (max-width: 576px) {
    .swiper-button-prev-custom,
    .swiper-button-next-custom {
        position: absolute !important;
        top: -20px !important; /* position above the swiper */
        transform: none;
        /* width: 32px;
        height: 32px; */
        margin: 0;
        background: rgba(255, 255, 255, 0.95);
        color: #0d6efd;
        display: none;
    }

    /* Position arrows side by side above Swiper */
    .swiper-button-prev-custom {
        left: 20%;
    }
    .swiper-button-next-custom {
        right: 20%;
    }

    /* Optional smaller SVG icons for balance */
    .swiper-button-prev-custom svg,
    .swiper-button-next-custom svg {
        width: 20px;
        height: 20px;
    }
}

.swiper-button-disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}
