/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

h2 {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
}

/* Section Container */
.services {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* Grid Layout */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px;
    margin-top: 50px;
    justify-content: center;
}

/* Service Card */
.service-card1 {
    transition: transform 0.3s ease-in-out, background-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
    justify-content: center;
}

.service-card1:hover {
    transform: translateY(-5px);
}

/* Logo */
.card-header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-logo {
    max-width: 150px;
    max-height: 150px;
}

/* Card Content */

.card-content {
  background: #ffffff9d;
  padding: 20px;
  text-align: center;
  border-radius: 16px;
  margin: -40px 16px 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0);

}
.card-content h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: end;
}

.card-content h3 .green {
    color: #32a852;
}

.card-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    padding: 0 10px;
    background-color: #ffffff00;
    height: 200px;
    overflow: scroll;
    scrollbar-width: none;
    align-content: center;
}

.know-more {
    display: inline-block;
    margin-top: 12px;
    color: #4CAF50;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.know-more:hover {
    color: #388E3C;
}

/* Responsive Design */
@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .services {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 2px;
}
}

@media (max-width: 600px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card1 {
        width: 95%;
        margin: 0 auto;
        padding: 2px;
    }
}

/* Animations and Feedback Styles */
.error-message {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
    animation: fadeIn 0.3s ease;
}

input.error {
    border: 1px solid #f44336;
}

.success-message {
    color: #32a852;
    font-size: 14px;
    margin-top: 10px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
    transition: opacity 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.service-item-hover {
    transform: translateY(-15px) !important;
}

.header-scrolled {
    padding: 10px 0 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
}

body.menu-open {
    overflow: hidden;
}
