* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

#map {
    height: 500px;
    width: 100%;
    z-index: 0;
}

/* Header */
header {
    background: #ffffff;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px; /* Fixes the height of the logo image */
    width: auto; /* Ensures the aspect ratio is maintained */
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: #424242;
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background: #1a1a1a;
    color: white;
    padding: 120px 2rem 80px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M10 10 L90 10 L90 90 L10 90 Z" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
    background: #f0f0f0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section */
section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #000;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #000;
    border-radius: 2px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #000;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* About Section */
.about {
    background: #f8f9fa;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Testimonials */
.testimonials {
    background: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #000;
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
}

.testimonial-author {
    font-weight: bold;
    color: #000;
}

/* Features */
.features {
    background: #000;
    color: white;
}

.features h2 {
    color: white;
}

.features h2::after {
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature-item {
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    margin-bottom: 0.5rem;
    color: #fff;
}

/* Contact Preview Section */
.contact-preview {
    background: #f8f9fa;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    font-size: 2.5rem;
    color: #000;
}

.contact-item a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.contact-item a:hover {
    color: #333;
}

/* Page Header */
.page-header {
    background: #1a1a1a;
    color: white;
    padding: 120px 2rem 60px;
    text-align: center;
    margin-top: 60px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Services Detailed Page */
.services-detailed {
    padding: 4rem 0;
}

.service-detail {
    background: white;
    margin-bottom: 3rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.service-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-content {
    padding: 3rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.service-icon-large {
    font-size: 4rem;
    background: #000;
    color: white;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.service-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #000;
}

.service-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.service-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.service-features li::before {
    content: '✓';
    background: #000;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    background: #000;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-section h2::after {
    display: none;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Areas Page */
.areas-section {
    padding: 4rem 0;
    margin-top: 100px; /* ensures map sits below fixed header */
}

.map-container {
    margin-bottom: 3rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}


.areas-content h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.areas-intro {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #555;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.area-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.area-card h3 {
    color: #000;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.area-card ul {
    list-style: none;
}

.area-card li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.area-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #000;
    font-weight: bold;
}

.coverage-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #000;
}

.coverage-info h3 {
    color: #000;
    margin-bottom: 1rem;
}

.coverage-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Contact Page */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-methods h2,
.contact-form-container h2 {
    margin-bottom: 1.5rem;
    color: #000;
}

.contact-methods > p {
    margin-bottom: 2rem;
    color: #555;
    font-size: 1.1rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s;
}

.contact-method:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.method-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.method-info h3 {
    color: #000;
    margin-bottom: 0.5rem;
}

.contact-link {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.contact-link:hover {
    text-decoration: underline;
}

.method-info p {
    color: #555;
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #343a40;
}

.form-group textarea {
    resize: vertical;
}

.form-note {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    margin-top: -0.5rem;
}

.why-contact-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.why-contact-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Footer */
footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }

    section h2 {
        font-size: 2rem;
    }

    .service-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-icon-large {
        margin: 0 auto;
    }

    .service-features {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-links a img {
    width: 30px; /* Standard icon size */
    height: 30px;
    filter: invert(100%); /* Makes icons white for dark footer */
    transition: transform 0.2s;
}

.social-links a:hover img {
    transform: scale(1.1);
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
    background: #f8f9fa; /* Light background for contrast */
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-card-content {
    padding: 2rem;
    flex-grow: 1; /* Ensures content area fills space */
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #555;
}

.blog-category {
    font-weight: bold;
    color: #000;
    background: #e9ecef;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date {
    color: #777;
}

.blog-card h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card h2 a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card h2 a:hover {
    color: #000; /* Use a slightly darker color on hover if desired */
    text-decoration: underline;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.read-more:hover {
    text-decoration: underline;
}

/* Individual Blog Post Page (blog_post.html) */
.blog-post-header {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.blog-post-header h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: white; /* Inherited from page-header */
}

.blog-post-meta {
    font-size: 1rem;
    color: #ccc;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.blog-post-meta span:first-child {
    font-weight: 600;
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.blog-post-content h2, 
.blog-post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #000;
    font-weight: 700;
}

.blog-post-content h2 {
    font-size: 2rem;
}

.blog-post-content h3 {
    font-size: 1.5rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

.blog-post-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.back-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}

.back-link:hover {
    color: #333;
}

/* Responsive Adjustments for Blog */
@media (max-width: 992px) {
    .blog-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-post-header h1 {
        font-size: 2.5rem;
    }

    .blog-post-content {
        font-size: 1rem;
        padding: 1.5rem;
    }

    .blog-post-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* --- Admin & Form Styling --- */

.admin-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
    min-height: 80vh;
}

.admin-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #6c757d;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Admin Table */
.posts-table {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.posts-table h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #343a40;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.admin-table th {
    background-color: #e9ecef;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.admin-table tbody tr:hover {
    background-color: #f1f1f1;
}

.admin-table .actions {
    display: flex;
    gap: 0.5rem;
}

.btn-view, .btn-edit, .btn-delete {
    padding: 0.5rem 0.8rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s, opacity 0.2s;
}

.btn-view {
    background-color: #007bff;
    color: white;
}
.btn-view:hover { background-color: #0056b3; }

.btn-edit {
    background-color: #ffc107;
    color: #343a40;
}
.btn-edit:hover { background-color: #e0a800; }

.btn-delete {
    background-color: #dc3545;
    color: white;
}
.btn-delete:hover { background-color: #bd2130; }

/* Alerts and Flash Messages */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Post Forms (new_post.html & edit_post.html) */
.post-form {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}


.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 17px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 17px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 17px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 17px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .admin-actions {
        flex-direction: column;
        gap: 1rem;
    }
    .admin-actions .cta-button,
    .admin-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
    .posts-table {
        padding: 1rem;
    }
    .post-form {
        padding: 1.5rem;
    }
}

/* --- Refinements for Individual Blog Post Content (blog_post.html) --- */

/* Ensures the post header stands out and the post content is contained */
.blog-post-section {
    padding: 3rem 0 5rem;
    background-color: #f8f9fa; /* Light background for the content area */
}

/* Base style for the main article wrapper */
.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem; /* Slightly larger base font for better reading */
    line-height: 1.75; /* Increased line-height for better flow */
    color: #343a40;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); /* Soft shadow for depth */
}

/* Headings within the post content */
.blog-post-content h2, 
.blog-post-content h3 {
    margin-top: 2.5rem; /* More space above headings */
    margin-bottom: 1.2rem;
    color: #000;
    font-weight: 700;
    line-height: 1.2;
    border-bottom: 2px solid #e9ecef; /* Subtle visual break */
    padding-bottom: 0.5rem;
}

.blog-post-content h2 {
    font-size: 2.2rem;
}

.blog-post-content h3 {
    font-size: 1.6rem;
}

/* Paragraph spacing */
.blog-post-content p {
    margin-bottom: 1.5rem;
}

/* Lists and blockquotes */
.blog-post-content ul,
.blog-post-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.blog-post-content li {
    margin-bottom: 0.75rem;
}

/* Blockquote style for highlighting key points/quotes */
.blog-post-content blockquote {
    background-color: #fff3e0;
    border-left: 5px solid #ff9800;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #5d4037;
    border-radius: 4px;
}

/* Code/Preformatted Text (if you use code snippets) */
.blog-post-content pre {
    background: #272822;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.95rem;
    margin: 1.5rem 0;
}

/* Ensure images within the post are responsive */
.blog-post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Post Footer/Navigation */
.blog-post-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 2px dashed #ddd; /* A subtle separation */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-post-content {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .blog-post-content h2 {
        font-size: 1.8rem;
    }

    .blog-post-content h3 {
        font-size: 1.4rem;
    }
}

.trust-marks {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.trust-mark {
    color: #6eb4e6;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.trust-mark:hover {
    color: #8ec5ed;
    text-decoration: underline;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: calc(100vh - 60px);
        background: #000;
        flex-direction: column;
        padding: 2rem 0;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.3);
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        text-decoration: none;
    }
    
    .nav-links a:hover {
        background: rgba(255,255,255,0.1);
        text-decoration: none;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .service-icon-large {
        margin: 0 auto 1.5rem;
    }

    .service-features {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post-content {
        padding: 2rem 1.5rem;
        font-size: 1rem;
    }

    .blog-post-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .blog-post-footer .cta-button {
        text-align: center;
    }
    
    
    .areas-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
    
    .actions {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .btn-view,
    .btn-edit,
    .btn-delete {
        width: 100%;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    .social-links img {
        width: 35px;
        height: 35px;
    }
    
    .trust-marks {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .trust-mark {
        font-size: 0.85rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom on input focus */
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .logo img {
        height: 45px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* --- NEW MOBILE MENU BUTTON STYLING (Hidden by default) --- */
.menu-toggle {
    display: none; /* Hide on desktop */
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 9999;
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
    display: block;
    width: 25px;
    height: 3px;
    background: #000;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger-icon::before {
    transform: translateY(-8px);
}

.hamburger-icon::after {
    transform: translateY(8px);
}

/* Hamburger transition for 'X' */
.menu-toggle[aria-expanded="true"] .hamburger-icon {
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-icon::before {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-icon::after {
    transform: translateY(0) rotate(90deg);
}


/* --- Responsive Media Queries (Mobile View < 992px) --- */
@media (max-width: 992px) {
    /* HEADER: Show Mobile Menu Button and Hide Desktop Menu */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        /* Start off-screen */
        transform: translateX(100%); 
        flex-direction: column;
        background: #ffffff; /* Dark background for mobile menu */
        width: 70%;
        max-width: 300px;
        min-height: 100vh;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: transform 0.3s ease-in-out;
        z-index: 9000;
    }

    .nav-links a {
        color: rgb(32, 32, 32); /* White links on dark background */
        font-size: 1.2rem;
        padding: 0.5rem 0;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links li:last-child a {
        border-bottom: none;
    }

    /* Active Menu State */
    .nav-links[data-visible="true"] {
        transform: translateX(0%);
    }

    /* General Layout Adjustments */
    .container {
        padding: 0 1rem;
    }

    /* Hero Section */
    .hero {
        padding-top: 5rem; /* Account for fixed header */
        height: auto;
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }

    /* Grid Stacking for all main sections */
    .services-grid, 
    .features-grid, 
    .testimonials-grid, 
    .blog-grid {
        grid-template-columns: 1fr; /* Stack all elements */
    }
    
    .service-icon-large {
        margin-bottom: 1rem;
    }
    
    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    
    .method-icon {
        margin-bottom: 0.5rem;
    }

    /* Admin Table Fix (Horizontal Scrolling) */
    .posts-table {
        overflow-x: auto;
    }
    
    .admin-table {
        min-width: 600px; /* Force table to be wider than screen */
        font-size: 0.9rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem 0.3rem;
    }
    
    .actions {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .btn-view, .btn-edit, .btn-delete {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }

    /* Footer Adjustments */
    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .trust-marks {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding-top: 1rem;
    }
}

/* Tablet/Larger Mobile landscape adjustments (Optional two-column view) */
@media (min-width: 600px) and (max-width: 992px) {
    .services-grid, 
    .blog-grid,
    .testimonials-grid {
        /* Allow 2 columns on larger mobile/tablet */
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Mobile Navigation Styles */
@media (max-width: 768px) {
    /* Hide the desktop nav links by default */
    .nav-links {
        display: none;
        /* Default closed state styles */
    }

    /* Show the mobile menu when data-visible is true */
    .nav-links[data-visible="true"] {
        display: flex;
        flex-direction: column;
        position: fixed; /* Fix the menu to the viewport */
        top: 60px; /* Adjust this to be just below your fixed header's height */
        left: 0;
        width: 100%;
        height: calc(100vh - 60px); /* Fill the rest of the viewport */
        background-color: #ffffff; /* Set a background color */
        z-index: 999; /* Ensure it is below the header (z-index: 1000) but above everything else */
        padding: 1rem 0;
        overflow-y: auto; /* Allow scrolling if the menu is long */
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    
    .nav-links li {
        text-align: center;
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }

    /* Also ensure the hamburger toggle button is visible */
    .menu-toggle {
        display: block; 
    }
}