/* Custom Styles for UniSipz Website */

/* Carousel Styles */
.wrapper {
    max-width: fit-content;
    width: 100%;
    position: relative;
}

.wrapper i {
    height: 50px;
    width: 50px;
    border: #09d32e;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    font-size: 1.25rem;
    transform: translateY(-50%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23);
    transition: all 0.3s ease;
}

.wrapper i:focus {
    outline: 2px solid #09d32e;
    outline-offset: 2px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23), 0 0 0 3px rgba(9, 211, 46, 0.3);
}

.wrapper i:first-child {
    left: -22px;
}

.wrapper i:last-child {
    right: -22px;
}

.wrapper .carousel {
    display: grid;
    background-color: transparent;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 3) - 10px);
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
    scrollbar-width: 0;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel :where(.card, .img) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.carousel.dragging .card {
    cursor: grab;
    user-select: none;
}

.carousel .card {
    scroll-snap-align: start;
    height: 380px;
    list-style: none;
    background: transparent;
    border-radius: 8px;
    display: flex;
    cursor: pointer;
    width: 98%;
    padding-bottom: 15px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.card .img {
    background: #002c08;
    width: 145px;
    height: 145px;
    border-radius: 50%;
}

.card .img img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: transparent;
}

.card h2 {
    font-weight: 450;
    text-align: center;
    font-size: 1.56rem;
    margin: 30px 0 5px;
}

.card p {
    margin: 10px 0;
    text-align: center;
}

/* Product Section Styles */
.product-div>h2 {
    width: fit-content;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    cursor: pointer;
    transition: transform 0.5s ease-in-out;
}

.product-div {
    width: fit-content;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    background-color: #22543d;
    color: #fff;
    border-radius: 35px;
    margin-top: 35px;
    cursor: pointer;
    transition: transform 0.5s ease-in-out;
}

.product-div:focus {
    outline: 2px solid #22543d;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(34, 84, 61, 0.3);
}

.product-div:hover h2::after {
    content: "   →";
    color: #fff;
    opacity: 1;
  font-weight: 800;
  font-style: normal;
    font-size: medium;
    transition: opacity 0.3s ease;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4px;
    padding-bottom: 4px;
    background: white;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin: 0;
}

section {
    scroll-margin-top: 56px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 160px;
    height: auto;
    margin-left: 15px;
}

/* Navigation Styles */
nav {
    display: contents;
    unicode-bidi: isolate;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    padding: 5px 10px;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.nav-link {
    font-weight: bolder;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    color: #044627;
    padding: 20px 0px;
    margin: 0px 10px;
    display: inline-block;
    position: relative;
    opacity: 0.75;
    transition: all 0.3s ease;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.nav-link:focus {
    outline: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 1;
}

.nav-link::before {
    transition: 300ms;
    height: 2px;
    content: "";
    position: absolute;
    background-color: #044627;
}

.nav-link-ltr::before {
    width: 0%;
    bottom: 10px;
}

.nav-link-ltr:hover::before {
    width: 100%;
}

.nav-link:hover {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.nav-link:active {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.nav-link:visited {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.nav-link:target {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Universal reset for all navigation links */
nav a, nav a:link, nav a:visited, nav a:hover, nav a:active, nav a:focus, nav a:target {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
}

.nav-toggle {
    display: none;
}

/* Product Container Styles */
.product-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
    background: transparent;
}

#home {
    padding: 25px;
    margin-top: 25px;
    display: flex !important;
    justify-content: center;
}

#homeDiv {
    background-color: #e8f5e8;
    background-image: url('dist/images/home image 1.jpeg');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* Responsive Styles */
@media screen and (max-width: 900px) {
    .wrapper .carousel {
        grid-auto-columns: calc((100% / 2) - 9px);
    }
}

@media screen and (max-width: 600px) {
    .wrapper .carousel {
        grid-auto-columns: 100%;
    }
}

@media screen and (max-width: 768px) {
    .nav-dropdown {
        display: block;
        position: absolute;
        width: 100%;
        height: 100vh;
        background: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        top: 100%;
        left: 0;
        z-index: 1001;
        visibility: hidden;
        opacity: 0;
        transition: visibility 0s, opacity 0.3s;
    }

    .nav-dropdown.active {
        visibility: visible;
        opacity: 1;
    }

    .nav-dropdown ul {
        width: 100%;
    }

    .nav-dropdown li {
        padding-bottom: 25px;
        padding-top: 25px;
        padding-left: 25px;
    }

    .nav-dropdown a {
        padding: 10px;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        appearance: none;
        padding: 10px;
        z-index: 1002;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        background: green;
        margin: 5px auto;
        border-radius: 2px;
    }
}

@media screen and (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        padding: 10px;
    }

    .nav-toggle {
        display: block;
    }
}