/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    margin-bottom: 15px;
    color: #333;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #e60000;
}

a {
    text-decoration: none;
    color: #e60000;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 60px 0;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e60000;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #e60000;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Page Title */
.page-title {
    background-color: #e60000;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-title h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: white;
}

.page-title p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #fff;
}

.filter-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group, .search-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label, .search-group label {
    font-weight: 600;
    color: #555;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.search-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    width: 250px;
}

.search-group button {
    background-color: #e60000;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-group button:hover {
    background-color: #cc0000;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.testimonial-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.customer-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.customer-info h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.customer-info p {
    color: #666;
    font-size: 0.9rem;
}

.testimonial-date {
    color: #999;
    font-size: 0.9rem;
}

.testimonial-content {
    padding: 20px;
}

.stars {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testimonial-content p {
    color: #555;
    line-height: 1.8;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.page-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    background-color: #e60000;
    color: white;
    border-color: #e60000;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    background-color: #fff;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.page-number:hover, .page-number.active {
    background-color: #e60000;
    color: white;
    border-color: #e60000;
}

/* Leave a Testimonial Section */
.leave-testimonial {
    background-color: #f8f8f8;
}

.leave-testimonial p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #666;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.rating-input {
    display: flex;
    gap: 5px;
    font-size: 1.5rem;
    color: #ffc107;
}

.rating-input i {
    cursor: pointer;
}

.rating-input i.filled {
    color: #ffc107;
}

.form-group label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.submit-btn {
    background-color: #e60000;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    justify-self: start;
}

.submit-btn:hover {
    background-color: #cc0000;
}

/* Success Message */
.success-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.message-content i {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 15px;
}

.message-content h3 {
    margin-bottom: 10px;
}

.message-content p {
    color: #666;
    margin-bottom: 20px;
}

.close-btn {
    background-color: #e60000;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: #cc0000;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: #e60000;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #aaa;
}

.footer-links h4, .footer-contact h4, .footer-social h4 {
    color: #e60000;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after, .footer-contact h4::after, .footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #e60000;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e60000;
}

.footer-contact p {
    color: #aaa;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: #e60000;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #aaa;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #e60000;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background-color: #fff;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.5s ease-in-out;
        z-index: 10;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .burger {
        display: block;
    }

    .page-title h1 {
        font-size: 2rem;
    }

    .filter-options {
        flex-direction: column;
        align-items: stretch;
    }

    .search-group input {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }
}

@media screen and (max-width: 480px) {
    .page-title h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .testimonial-date {
        align-self: flex-end;
    }
}