/* Main content styles */
.main-content {
    padding-top: 60px;
}

/* Service section title */
.services-title {
    position: relative;
    top: 70px;
    text-align: center;
    color: #c2a76b;
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.services-subtitle {
    position: relative;
    top: 70px;
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-bottom: 80px;
    font-style: italic;
}

.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding: 20px 5%;
    box-sizing: border-box;
    transform: translateY(5%);
}

/* Flip Card Container */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    flex: 1 1 calc(33.333% - 30px); /* 3 cards per row */
    height: 450px;
    margin-bottom: 20px;
    box-sizing: border-box;
    position: relative;
}

/* Flip Card Inner Container */
.flip-card-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* Front and Back positioning */
.flip-card-front, .flip-card-back {
    position: absolute;
    top: 0;
    inset: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Flip on hover or click */
.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}


/* Front of card */
.flip-card-front {
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.flip-card-front img {
    width: 100%;
    height: 315px;
    object-fit: cover;
    flex-shrink: 0;
}

.front-content {
    padding: 20px;
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
}

.front-content h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 12px;
}

/* Back of card */
.flip-card-back {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    transform: rotateY(180deg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    box-sizing: border-box;
}

.flip-card-back h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.back-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.back-details {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.back-details li {
    padding: 8px 0;
    font-size: 0.85rem;
    color: #666;
    border-bottom: 1px solid #ddd;
}

.back-details li:last-child {
    border-bottom: none;
}

.back-details strong {
    color: #333;
}

/* Price tag */
.price-tag {
    display: inline-block;
    background-color: #c2a76b;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.flip-card-back .price-tag {
    align-self: center;
}

/* 2-card layout for medium screens */
@media screen and (max-width: 1000px) {
    .flip-card {
        flex: 1 1 calc(50% - 30px); /* 2 cards per row */
    }
}

@media screen and (max-width: 600px) {
    .services {
        flex-direction: column;
        align-items: center;
        padding: 20px 5%;
        gap: 25px;
        margin-bottom: 100px;
    }

    .services-title {
        margin-bottom: 10px;
        font-size: 1.8rem;
        top: 50px;
    }

    .services-subtitle {
        margin-bottom: 50px;
        font-size: 0.9rem;
        top: 50px;
    }

    .flip-card {
        flex: 1 1 100%; /* 1 card per row */
        max-width: 100%;
        width: 100%;
        height: 420px;
        min-height: 420px;
        margin-bottom: 0;
    }

    .flip-card-front img {
        height: 250px;
        object-fit: cover;
    }

    .front-content {
        padding: 20px 15px;
        height: auto;
        min-height: 120px;
    }

    .front-content h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .flip-card-back {
        padding: 20px;
        overflow-y: auto;
    }

    .flip-card-back h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .back-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .back-details {
        margin-bottom: 15px;
    }

    .back-details li {
        font-size: 0.8rem;
        padding: 6px 0;
        line-height: 1.3;
    }

    .price-tag {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* FAQ Section Styling */
.faq-section {
    margin: 1px auto;
    max-width: 1400px;
    padding: 30px 50px;
    text-align: center;
}

.faq-section h2 {
    font-size: 2.2rem;
    color: #c2a76b;
    margin-bottom: 55px;
}

.faq-category {
    margin-bottom: 25px;
}

/* FAQ Toggle Button */
.faq-toggle {
    position: relative;
    width: 100%;
    background-color: #c2a76b;
    color: white;
    padding: 18px;
    font-size: 1.3rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 5px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Arrow Icon */
.faq-toggle::after {
    content: '\25B6'; /* Right arrow */
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Rotate Arrow When Open */
.faq-toggle.active::after {
    transform: rotate(90deg);
}

/* FAQ Content */
.faq-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    padding: 0 25px;
    text-align: left;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 15px;
}

.faq-toggle.active + .faq-content {
    max-height: 500px;
    opacity: 1;
    padding: 25px;
}

@media screen and (max-width: 768px) {
    .faq-section {
        max-width: 95%;
        padding: 25px;
    }

    .faq-section h2 {
        margin-bottom: 85px;
    }

    .faq-toggle {
        font-size: 1.1rem;
        padding: 12px;
    }
    .faq-content {
        padding: 18px;
    }
}

/* Navbar styles for information page */
@media screen and (min-width: 769px) and (max-width: 1300px) {
    .navbar-menu a {
        font-size: 1.5rem;
        text-decoration: none;
    }

    .navbar .icon {
        display: block;
        font-size: 2rem;
        color: white;
        cursor: pointer;
        text-decoration: none;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #404040;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 10;
        padding: 1rem 0;
        border-radius: 8px;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .navbar-menu.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .navbar-menu a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.5rem;
        color: white;
        text-align: center;
        text-decoration: none;
        transition: background-color 0.3s;
    }

    .navbar-menu a:hover {
        background-color: #575757;
    }
}

@media screen and (max-width: 768px) {
    .navbar-menu a {
        font-size: 1.5rem;
        text-decoration: none;
    }

    .navbar .icon {
        display: block;
        font-size: 2rem;
        color: white;
        cursor: pointer;
        text-decoration: none;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #404040;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 10;
        padding: 1rem 0;
        border-radius: 8px;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .navbar-menu.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .navbar-menu a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.5rem;
        color: white;
        text-align: center;
        text-decoration: none;
        transition: background-color 0.3s;
    }

    .navbar-menu a:hover {
        background-color: #575757;
    }
}
