/* --- Service Page Layout --- */

.service-hero {
    position: relative;
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.service-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.services-container {
    width: min(100%, 1200px);
    margin: 0 auto;
}

.servicesSectionTop {
    margin-top: 0;
    padding-top: 0;
}

/* --- Services Navigation --- */

.services-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 50px auto 20px;
    max-width: 1000px;
}

.service-btn {
    background: none;
    border: 2px solid var(--accentColor);
    color: #111;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.76, 0, 0.07, 0.99);
}

.service-btn:hover,
.service-btn.active {
    background: var(--accentColor);
    color: white;
}

.service-btn.active {
    pointer-events: none;
}

/* --- Typography & General Content --- */

.services-title {
    position: relative;
    text-align: center;
    color: #000;
    padding: 40px;
    backdrop-filter: blur(10px);
    width: fit-content;
    background: #ffffff85;
    margin: 0;
}

.services-intro {
text-align: left;
    margin: 1rem auto 1rem auto;
    color: #333;
    padding: 20px 0;
}
.services-outro {
    text-align: left;
    margin: 20px auto 10px auto;
    color: #333;
    padding: 10px 0;
}

/* --- Video Grid --- */

.video-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
    margin-top: 1rem;
}

.service-vertical-videos {
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
}

.service-video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-vertical-video {
    aspect-ratio: 9 / 16;
}

/* --- Service Package/Feature List --- */

.services-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 20px;
}

.service-entry {
    border-left: 4px solid var(--accentColor);
    background-color: #fafafa;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    transition: background-color 0.8s ease;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.service-entry:hover {
    background-color: #f0f0f0;
}

.service-title-button {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.service-description {
    font-size: 1rem;
    font-weight: 400;
    color: #222;
    margin-bottom: 10px;
}

.service-hover-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.76, 0, 0.07, 0.99), opacity 0.8s cubic-bezier(0.76, 0, 0.07, 0.99);
}

.service-pricing {
    display: none;
    /* Consider if this should be 'flex' or 'block' within the hover state */
    font-weight: bold;
    color: var(--accentColor);
    font-size: 1rem;
}

.select-package-btn {
    padding: 10px 20px;
    background-color: var(--accentColor);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.4s cubic-bezier(0.76, 0, 0.07, 0.99), transform 0.4s cubic-bezier(0.76, 0, 0.07, 0.99);
}

.select-package-btn.selected {
    background-color: #f9d9b7;
    color: black;
}

/* --- Selected Features in Contact Form --- */

.contact-form-selected-package {
    border: 1px solid #ddd;
    padding: 5px;
    margin-top: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.contact-form-selected-package strong {
    display: block;
    margin-bottom: 10px;
}

.selected-package-value ul.selected-features-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    width: 100%;
}

.selected-package-value ul.selected-features-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    line-height: normal;
    padding: 0px 5px;
    background-color: var(--darkBgWide);
    margin: 5px;
}

.remove-package-from-list-btn {
    cursor: pointer;
    color: #dc3545;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 10px;
    user-select: none;
}

.remove-package-from-list-btn:hover {
    background-color: #f8d7da;
    color: #721c24;
}


.service-proccess .inner{
    width: 100%;
    max-width: 1200px;
    padding-top: 10px;
}

.service-testimonial{
    padding: 20px 10px;
}

.service-testimonial .inner{
    width: 100%;
    max-width: 1200px;
}

/* --- Responsive Styles --- */

@media (min-width: 800px) {
    .service-entry:hover .service-hover-content {
        max-height: 200px;
        opacity: 1;
    }
}

@media (max-width: 800px) {
    .services-title {
        font-size: 2rem;
    }

    .service-entry {
        padding: 16px;
    }

    .service-title {
        font-size: 1.15rem;
    }

    .service-hover-content {
        max-height: 500px;
        /* Ensure content is visible on mobile */
        opacity: 1;
    }

    .select-package-btn {
        width: min-content;
        font-size: 1.2rem;
        padding: 12px;
        margin-bottom: 12px;
    }
    .services-list {
        gap: 10px;
    }

    .services-intro,
    .services-outro {
        text-align: left;
        margin: 0;
        padding: 0px;
        color: #333;
    }

    .services-outro {
        margin-top: 20px;
        margin-bottom: 10px;
    }

}