/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container Styling */
.container {
    width: 80%;
    margin: 0 auto;
}

/* Header Section Styling */
header {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
}

header .logo h1 {
    margin: 0;
    font-size: 1.8em;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
}

header nav ul li {
    margin: 0;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
}

header nav ul li a:hover {
    text-decoration: underline;
}

/* Hero Section Styling */
#home {
    background: #007BFF;
    color: #fff;
    text-align: center;
    padding: 50px 0;
}

#home h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

#home p {
    font-size: 1.2em;
}

/* Services Section Styling */
#services {
    background-color: #f4f4f4;
    padding: 50px 0;
}

#services h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #333;
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.service-item {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    width: 48%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    cursor: pointer;
}

.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #007BFF;
}

.service-item p {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
}

/* Footer Section Styling */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 0;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto; /* Enable vertical scrolling */
    max-height: 80vh; /* Set a maximum height for the modal content */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    margin-top: 0;
    font-size: 1.8em;
    color: #007BFF; /* Match the color of service item headings */
    border-bottom: 2px solid #007BFF;
    padding-bottom: 10px;
}

.modal ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.modal ul li {
    padding: 10px 0;
    font-size: 1.2em;
    border-bottom: 1px solid #ddd;
}

.modal ul li:last-child {
    border-bottom: none; /* Remove bottom border from last item */
}

.modal ul li:hover {
    background-color: #f4f4f4; /* Light grey background on hover */
}

/* Modal Section Styles */
.modal-section {
    margin-bottom: 20px;
}

.modal-section h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #007BFF; /* Color for section headings */
    display: flex;
    align-items: center;
}

.modal-section h3 i {
    margin-right: 10px; /* Space between icon and section heading */
}

.modal-section ul {
    list-style-type: none;
    padding-left: 20px;
    margin: 0;
}

.modal-section ul li {
    padding: 10px 0;
    font-size: 1.2em;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
}

.modal-section ul li:last-child {
    border-bottom: none; /* Remove bottom border from last item */
}

.modal-section ul li i {
    margin-right: 10px; /* Space between icon and text */
    color: #007BFF; /* Color of icons */
}

.modal-section ul li:hover {
    background-color: #f4f4f4; /* Light grey background on hover */
}

/* Collapsible Content */
.collapsible-content {
    display: none;
    padding-left: 20px;
}

.collapsible {
    cursor: pointer;
}

/* Collapsible Icon */
.collapsible i {
    margin-right: 10px; /* Space between icon and text */
    transition: transform 0.3s ease; /* Smooth transition for rotation */
}

/* Rotated State */
.collapsible.active i {
    transform: rotate(90deg); /* Rotate the icon when active */
}

/* Modal Table Styles */
.modal table {
    width: 80%; /* Adjust width as needed */
    max-width: 600px; /* Set a maximum width for larger screens */
    border-collapse: collapse;
    margin-top: 10px;
    margin-left: auto; /* Center align the table */
    margin-right: auto; /* Center align the table */
}

.modal th, .modal td {
    border: 1px solid #ddd;
    padding: 4px 8px; /* Reduced padding for thinner rows */
    text-align: center; /* Center align text */
    font-size: 0.9em; /* Smaller font size for compact appearance */
}

.modal th {
    background-color: #f4f4f4;
    color: #333;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-item {
        width: 100%;
    }
}

    #whatsapp-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
        border-radius: 50%;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        background-color: #25d366;
        padding: 10px;
    }

    #whatsapp-button img {
        display: block;
        width: 50px;
        height: 50px;
    }

    #whatsapp-button:hover {
        transform: scale(1.1);
        transition: transform 0.2s ease-in-out;
    }