body {
    margin: 0;
    padding: 0;
    background-color: #F1F1F1; /* Light background */
    color: #333; /* Darker text for contrast */
}

/* Basic Typography & Links */
h1, h2, h3 {
    color: #0056b3; /* A shade of blue for headings */
    text-align: center;
    margin-bottom: 20px;
}

p {
    line-height: 1.6;
}

a {
    color: #007bff; /* Blue for links */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Section Styling */
section {
    padding: 40px 20px;
    margin: 0 auto;
    max-width: 1200px; /* Max width for content */
}

.section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #007bff;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('{% static "images/mechanical_hero.jpg" %}') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #fff;
}

.hero-content p {
    font-size: 1.2em;
    max-width: 800px;
    margin-bottom: 30px;
}

.hero-cta .cta-primary,
.hero-cta .cta-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    margin: 10px;
    transition: background-color 0.3s ease;
}

.hero-cta .cta-primary {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}

.hero-cta .cta-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.hero-cta .cta-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.hero-cta .cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex: 1 1 calc(50% - 20px); /* Two columns on mobile */
    max-width: 200px;
}

.stat-item i {
    font-size: 2em;
    margin-bottom: 10px;
}

.stat-item .stat-number {
    font-size: 1.5em;
    font-weight: bold;
    display: block;
}

.stat-item .stat-text {
    font-size: 0.9em;
}

/* Services Grid Section */
.services-grid,
.journals-grid,
.testimonials-grid,
.tips-grid,
.contact-grid,
.specializations-grid {
    display: flex;
    flex-direction: column; /* Single column on mobile */
    gap: 25px;
}

.service-card,
.journal-card,
.testimonial-card,
.tip-card,
.contact-card,
.specialization-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.journal-card:hover,
.testimonial-card:hover,
.tip-card:hover,
.contact-card:hover,
.specialization-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.service-card i,
.journal-card i,
.tip-card i,
.contact-card .icon-wrapper {
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 15px;
    display: block;
}

.contact-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e6f2ff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
}

.contact-card .icon-wrapper.whatsapp { background-color: #e6ffe6; }
.contact-card .icon-wrapper.whatsapp i { color: #25D366; }
.contact-card .icon-wrapper.email { background-color: #ffe6e6; }
.contact-card .icon-wrapper.email i { color: #dc3545; }

.service-card h3,
.journal-card h3,
.tip-card h3,
.contact-card h3,
.specialization-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #0056b3;
}

.service-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    font-size: 0.9em;
}

.service-link:hover {
    background-color: #0056b3;
    text-decoration: none;
}

/* Detailed Service Sections */
.service-detail {
    background-color: #fff;
    padding: 40px 20px;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-detail.alt {
    background-color: #e6f2ff; /* Light blue background for alternate sections */
}

.service-detail .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-detail h2 {
    font-size: 2em;
    text-align: right;
    color: #0056b3;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.service-features li {
    margin-bottom: 10px;
    padding-right: 25px; /* Space for icon */
    position: relative;
    color: #555;
}

.service-features li::before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #28a745; /* Green checkmark */
    position: absolute;
    right: 0;
    top: 3px;
}

.action-card {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
}

.action-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #0056b3;
}

.action-card p {
    margin-bottom: 20px;
    color: #666;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.action-button i {
    margin-left: 10px;
    font-size: 1.2em;
}

.action-button.phone {
    background-color: #28a745;
    color: #fff;
}

.action-button.phone:hover {
    background-color: #218838;
}

.action-button.whatsapp {
    background-color: #25D366;
    color: #fff;
}

.action-button.whatsapp:hover {
    background-color: #1DA851;
}

/* Journals Section */
.journal-category ul {
    list-style: none;
    padding: 0;
}

.journal-category li {
    background-color: #e9ecef;
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.journal-category li i {
    font-size: 1em;
    margin-left: 10px;
    color: #007bff;
}

/* FAQ Section */
.faq-item {
    background-color: #fff;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 18px 25px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #0056b3;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 25px;
    background-color: #fefefe;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    border-radius: 0 0 8px 8px;
}

.faq-answer p {
    padding: 15px 0;
    margin: 0;
    color: #444;
}

.faq-item.active .faq-question {
    border-radius: 8px 8px 0 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust as needed */
    padding: 15px 25px;
}

/* Testimonials Section */
.testimonial-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: bold;
    color: #0056b3;
    margin-top: 10px;
}

.testimonial-rating {
    color: #ffc107; /* Gold stars */
    margin-bottom: 10px;
}

/* Tips Section */
.tip-card {
    text-align: right;
}

.tip-card i {
    float: right; /* Align icon to the right */
    margin-right: 15px;
    margin-bottom: 0;
}

/* Specializations Section */
.specialization-card {
    text-align: right;
}

.specialization-card p {
    font-size: 0.95em;
    color: #666;
}

/* Responsive adjustments */

/* Tablet (medium screens) */
@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3em;
    }
    .hero-content p {
        font-size: 1.4em;
    }
    .hero-stats {
        flex-direction: row; /* Horizontal on tablets */
        flex-wrap: nowrap;
        gap: 30px;
    }
    .stat-item {
        flex: 1 1 auto;
    }

    .services-grid,
    .journals-grid,
    .tips-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .service-card,
    .journal-card,
    .tip-card {
        flex: 1 1 calc(50% - 25px); /* Two columns */
        max-width: calc(50% - 25px);
    }
    .service-detail .content-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }
    .service-content {
        flex: 2;
        padding-left: 20px;
    }
    .service-action {
        flex: 1;
    }
    .action-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    .action-button {
        flex: 1;
    }

    .testimonials-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .testimonial-card {
        flex: 1 1 calc(33% - 25px); /* Three columns */
        max-width: calc(33% - 25px);
    }
    .contact-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .contact-card {
        flex: 1 1 calc(50% - 25px); /* Two columns */
        max-width: calc(50% - 25px);
    }
    .specializations-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .specialization-card {
        flex: 1 1 calc(50% - 25px); /* Two columns */
        max-width: calc(50% - 25px);
    }
}

/* Desktop (large screens) */
@media (min-width: 1024px) {
    .section-title {
        font-size: 2.2em;
    }

    .services-grid {
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
    }
    .service-card {
        flex: 1 1 calc(33.333% - 25px); /* Three columns */
        max-width: calc(33.333% - 25px);
    }

    .journals-grid {
        flex-direction: row;
        flex-wrap: nowrap; /* Prevent wrapping for two main categories */
        justify-content: space-around;
    }
    .journal-category {
        flex: 1;
        margin: 0 15px;
    }
    .journal-category:first-child {
        margin-right: 30px; /* Space between categories */
    }

    .testimonials-grid {
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
    }
    .testimonial-card {
        flex: 1 1 calc(33.333% - 25px); /* Three columns */
        max-width: calc(33.333% - 25px);
    }

    .tips-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .tip-card {
        flex: 1 1 calc(33.333% - 25px); /* Three columns */
        max-width: calc(33.333% - 25px);
    }
    .contact-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .contact-card {
        flex: 1 1 calc(25% - 25px); /* Four columns */
        max-width: calc(25% - 25px);
    }
    .specializations-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .specialization-card {
        flex: 1 1 calc(33.333% - 25px); /* Three columns */
        max-width: calc(33.333% - 25px);
    }
} 