/* Services Page Styles */
body {
  background-color: #f0f0f0;
}
/* Card Styling for Services Page */
main {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.card {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card h2  {
    color: var(--mycolor);
    margin-bottom: 20px;
    font-size: 2em;
}

.card p {
    margin-bottom: 15px;
}

.card ul {
    list-style: none;
}

.card ul li {
    padding: 12px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
    font-size: 1.05em;
}

.card ul li:before {
    position: absolute;
    left: 0;
    color: var(--mycolor);
    font-weight: bold;
}

.card img {
    width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

/*
/* ====== Service carousel (matches services.html) ====== */
.service-carousel .subtitle {
    margin-bottom: 18px;
    font-size: 1.05em;
}

/* Reset list and create horizontal track */
.carousel-track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
}

.carousel-track::-webkit-scrollbar {
    height: 8px;
}
.carousel-track::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 999px;
}

.carousel-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: calc(33.333% - 13.333px); /* 3 items per row on desktop */
    scroll-snap-align: center;
}

.image-wrapper {
    width: 100%;
    height: 160px;
    overflow: hidden;
}
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-item .content {
    padding: 18px;
    text-align: left;
}

.carousel-item .content h3 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    color: var(--mycolor);
}
.carousel-item .content p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95em;
}

/* ---- Vertical layout overrides ---- */
.carousel-track.vertical {
    display: block; /* stack items vertically */
    gap: 0;
    overflow: visible;
    scroll-snap-type: none;
}

.carousel-track.vertical .carousel-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 100%;
    margin-bottom: 18px;
}

.carousel-track.vertical .image-wrapper {
    flex: 0 0 260px;
    height: 160px;
}

.carousel-track.vertical .carousel-item .content {
    padding: 18px 20px;
}

@media (max-width: 768px) {
    .carousel-track.vertical .carousel-item {
        flex-direction: column;
        align-items: stretch;
    }
    .carousel-track.vertical .image-wrapper {
        flex: none;
        width: 100%;
        height: 200px;
    }
    .carousel-track.vertical .carousel-item .content {
        padding: 14px;
    }
}

/* Info card / feature list */
.info-card .feature-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
}
.info-card .feature-list li {
    background: transparent;
    padding-left: 0;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
    .carousel-item {
        min-width: calc(50% - 10px); /* 2 items visible */
    }
    .info-card .feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    main {
        margin: 40px auto;
    }

    .card {
        padding: 25px;
    }

    .carousel-item {
        min-width: 100%; /* single item per view on smaller screens */
    }

    .image-wrapper {
        height: 200px;
    }

    .carousel-item .content h3 {
        font-size: 1.05em;
    }

    .info-card .feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .image-wrapper {
        height: 150px;
    }

    .carousel-item .content {
        padding: 14px;
    }

    .carousel-item .content p {
        font-size: 0.9em;
    }

    .service-carousel .subtitle {
        font-size: 0.98em;
    }
}

