/* ====================================================
   SERVICE DETAIL CONTAINER
   ==================================================== */
.service-detail {
    max-width: 1300px;
    width: 90%;
    margin: 30px auto;
    padding: 25px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    
    display: flex;
    gap: 40px;
    height: auto; /* Height auto ki gayi hai taaki content flex ho sake */
    min-height: 500px;
}

/* ====================================================
   GALLERY SECTION (LEFT SIDE)
   ==================================================== */
.service-gallery {
    width: 50%; /* Desktop par 50% width */
    display: flex;
    flex-direction: column;
}

.main-image {
    border: 1px solid #ddd;
    padding: 10px;
    width: 100%;
    max-width: 500px; /* Limit on desktop */
    margin: 0 auto;
    border-radius: 8px;
    background: #fff;
}

.main-image img {
    width: 100%; /* Flexible width instead of hardcoded 478px */
    height: 320px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.thumbnail-gallery {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap; /* Prevents overflow if thumbnails increase */
    justify-content: flex-start;
}

.thumbnail-gallery img {
    width: 80px; /* Balanced thumbnail size */
    height: 80px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.thumbnail-gallery img:hover {
    border-color: #c00000;
    transform: scale(1.05);
}

/* ====================================================
   INFO SECTION (RIGHT SIDE)
   ==================================================== */
.service-info {
    width: 50%; /* Desktop par 50% width */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-info h1 {
    font-size: 26px;
    color: #003366;
    margin-bottom: 12px;
    font-weight: 700;
}

.description {
    line-height: 1.8;
    color: #555555;
    font-size: 15px;
    margin-bottom: 20px;
}

.know-more {
    color: #003366;
    font-weight: bold;
    text-decoration: none;
}

.title-line {
    width: 100%;
    height: 2px;
    background: #eee;
    margin: 20px 0;
}

/* ====================================================
   ACTION BUTTONS
   ==================================================== */
.action-buttons {
    margin-top: auto; /* Pushes buttons to bottom */
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Prevents text overflow */
}

/* Common standards for both buttons to maintain same line */
.service-info .action-buttons .book-btn,
.call-btn {
    flex: 1;
    min-width: 160px;
    height: 50px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Book Button */
.service-info .action-buttons .book-btn {
    background: #c00000;
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(192, 0, 0, 0.15);
}

.service-info .action-buttons .book-btn:hover {
    background: #a50000;
    transform: translateY(-2px);
}

/* Call Button */
.call-btn {
    background: white;
    color: #c00000;
    border: 1px solid #c00000;
}

.call-btn:hover {
    background: #fff0f0;
    transform: translateY(-2px);
}

.quote-btn {
    padding: 10px 20px;
    border: 1px solid #b40000;
    background: white;
    color: #b40000;
    cursor: pointer;
}

.more-details {
    display: none;
}

/* GALLERY / SECTION HEADINGS */
.gallery-heading h1 {
    color: #003366;
    font-size: 36px;
}

.gallery-heading p {
    color: #428840;
    margin-top: 10px;
}

/* ====================================================
   RESPONSIVE ADJUSTMENTS (For Tablets & Mobile)
   ==================================================== */

@media (max-width: 991px) {
    .service-detail {
        flex-direction: column; /* Stacks gallery on top, info below */
        gap: 30px;
        padding: 20px;
        width: 95%;
    }

    .service-gallery, 
    .service-info {
        width: 100%; /* Takes full width on mobile/tablet */
    }

    .main-image {
        max-width: 100%; /* Let image scale naturally */
    }

    .main-image img {
        height: 280px; /* Slight height reduction for balance */
    }

    .action-buttons {
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    .service-detail {
        padding: 15px;
    }

    .main-image img {
        height: 220px; /* Optimized height for smartphones */
    }

    .thumbnail-gallery img {
        width: 65px; /* Smaller thumbnails to prevent wrapping overlap */
        height: 65px;
    }

    .service-info h1 {
        font-size: 20px;
    }

    .action-buttons {
        flex-direction: column; /* Stack buttons on very small screens */
        gap: 10px;
    }

    .service-info .action-buttons .book-btn,
    .call-btn {
        width: 100%; /* Full width buttons for easy tapping */
        min-width: 100%;
    }
}