/* --- Global Styles --- */
:root {
    --primary-blue: #0056b3; /* Darker blue for branding */
    --secondary-blue: #007bff; /* Brighter blue for accents/buttons */
    --accent-green: #28a745; /* Green for success/highlights */
    --text-dark: #333;
    --text-light: #f8f9fa;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --transition-speed: 0.3s ease;
}
/* In your style.css, within a media query for mobile devices */
@media (max-width: 992px) { /* Or whatever breakpoint your design uses */
    .main-nav ul {
        display: none; /* Hide by default on mobile */
        flex-direction: column;
        position: absolute;
        top: var(--header-height); /* Adjust based on your header height */
        left: 0;
        width: 100%;
        background-color: var(--primary-color-dark); /* Or your desired menu background */
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        z-index: 1000;
        padding: 15px 0;
    }

    .main-nav ul.active {
        display: flex; /* Show when active */
    }

    .main-nav ul li {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    .main-nav ul li a {
        display: block;
        padding: 10px 20px;
        color: white; /* Adjust text color */
    }

    .menu-toggle {
        display: block; /* Show hamburger button on mobile */
        background: none;
        border: none;
        color: white; /* Or your preferred icon color */
        font-size: 24px;
        cursor: pointer;
    }
}

@media (min-width: 993px) { /* Desktop styles */
    .main-nav ul {
        display: flex !important; /* Ensure menu is always visible on desktop */
        position: static;
        flex-direction: row;
        background-color: transparent;
        box-shadow: none;
    }
    .menu-toggle {
        display: none; /* Hide hamburger button on desktop */
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
    margin-bottom: 0.8em;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-blue);
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--secondary-blue);
    color: #fff;
    border: 2px solid var(--secondary-blue);
}

.btn-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    color: #fff; /* Ensure text color remains white on hover */
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: #fff;
    transform: translateY(-2px);
}

.large-btn {
    padding: 15px 35px;
    font-size: 1.1em;
}

/* --- Header & Navigation --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff; /* Added to prevent content from showing through during scroll before primary-nav-bar */
}

/* Pre-Header (Top Bar) */
.pre-header {
    background-color: #003d7a; /* A darker blue for distinction */
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 0;
    font-size: 0.9em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pre-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
}

.pre-header-info p {
    margin: 0 20px 0 0; /* Spacing between info items */
    display: inline-block;
}

.pre-header-info p i {
    margin-right: 8px;
    color: var(--accent-green); /* Use accent green for icons */
}

.pre-header-info p a {
    color: rgba(255, 255, 255, 0.9);
}
.pre-header-info p a:hover {
    color: var(--secondary-blue);
}

.social-links a {
    color: rgba(255, 255, 255, 0.9);
    margin-left: 15px;
    font-size: 1.1em;
    transition: color var(--transition-speed);
}

.social-links a:hover {
    color: var(--secondary-blue);
}

/* Primary Navigation Bar */
.primary-nav-bar {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.primary-nav-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.logo img {
    max-width: 120px;
    height: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center; /* Align items vertically including button */
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.0em;
    padding: 5px 0;
    position: relative;
}

.main-nav ul li:nth-child(1) a, /* Home */
.main-nav ul li:nth-child(2) a, /* About Us */
.main-nav ul li:nth-child(3) a, /* Services */
.main-nav ul li:nth-child(4) a  /* Gallery */
{
    font-weight: 700; /* As per your original, but Contact Us is usually done via the .btn class */
}

.main-nav ul li a:hover {
    color: var(--secondary-blue);
}

.main-nav ul li a:not(.btn):after { /* Apply underline effect only to non-button links */
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px; /* Adjust position slightly for better visual */
    width: 0;
    height: 2px;
    background-color: var(--secondary-blue);
    transition: width var(--transition-speed);
}

.main-nav ul li a:not(.btn):hover:after {
    width: 100%;
}

.main-nav ul li a.btn {
    padding: 8px 15px; /* Keep original padding for nav button */
    /* margin-left: 20px; /* This is handled by li margin-left */
    border-radius: 4px; /* Keep original radius */
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 5px;
}

/* --- Hero Section --- */
.hero-section {
    color: #fff;
    text-align: center;
    padding: 100px 0; /* Adjusted padding, can be tweaked */
    display: flex;
    flex-direction: column; /* Stack text container above controls if needed, or keep row for side-by-side */
    align-items: center;
    justify-content: center; /* Center content vertically and horizontally */
    min-height: 600px; /* Or vh unit e.g., 80vh */
    position: relative;
    overflow: hidden; /* Important for absolutely positioned children */
    /* Background properties here are fallback if images don't load or for visual effect behind transparent images */
    /* background-color: #333; */ /* Example fallback background */
}

/* Overlay using ::before pseudo-element */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 1; /* Below text and controls, above images if images are z-index 0 */
}

/* Container for Hero Text - ensure it's above the overlay */
.hero-section .hero-text-container { /* Changed from .container to avoid conflict if global .container has other specific uses */
    position: relative; /* To allow z-index stacking */
    z-index: 2; /* Above the overlay and carousel images */
    max-width: 800px; /* Limit width of text for better readability */
    padding: 20px; /* Padding inside the text container */
}

.hero-section h1 {
    font-size: 3.2em; /* Adjust as needed */
    margin-bottom: 0.5em; /* Reduced margin */
    line-height: 1.2;
    color: #fff; /* Ensure text is white */
    text-shadow: 0 1px 3px rgba(0,0,0,0.3); /* Optional: slight text shadow */
}

.hero-section p {
    font-size: 1.2em; /* Adjust as needed */
    margin-bottom: 1.5em; /* Reduced margin */
    color: rgba(255, 255, 255, 0.9); /* Ensure text is light */
    line-height: 1.7;
}

/* --- Carousel Specific Styles (Fade Implementation) --- */
.carousel-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind the overlay and text content */
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images cover the area without distortion */
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Smooth transition for fading */
}

.carousel-image.active {
    opacity: 1; /* Show the active image */
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4); /* Slightly more subtle */
    color: white;
    border: none;
    padding: 12px 18px; /* Adjusted padding */
    cursor: pointer;
    font-size: 1.8em; /* Adjusted size */
    z-index: 3; /* Above images, overlay, and text container */
    border-radius: 50%; /* Circular buttons */
    width: 50px; /* Explicit width */
    height: 50px; /* Explicit height */
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: background-color var(--transition-speed);
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 25px; /* Adjusted position */
    left: 50%;
    transform: translateX(-50%);
    z-index: 3; /* Above images, overlay, and text container */
    text-align: center;
}

.carousel-indicators .dot {
    height: 12px; /* Slightly larger dots */
    width: 12px;
    margin: 0 6px; /* Adjusted spacing */
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.carousel-indicators .dot.active,
.carousel-indicators .dot:hover {
    background-color: #ffffff;
}

/* Specific styles for smaller hero sections on other pages */
.hero-small {
    padding: 80px 0;
    min-height: auto; /* Override hero-section min-height */
}

.hero-page-title {
    font-size: 3em;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* --- About Us Mini Section (Home Page) --- */
.about-content-with-image {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}
.about-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}
.about-image {
    flex: 1;
    min-width: 300px;
}
.about-image img.img-fluid { /* Assuming img-fluid is a utility class */
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- Services Overview --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.service-icon-img {
    max-width: 60px; /* Control size of service icons if they are images */
    margin-bottom: 20px;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-item i { /* If using Font Awesome icons */
    font-size: 3em;
    color: var(--secondary-blue);
    margin-bottom: 20px;
}

.service-item h3 {
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.service-item p {
    font-size: 0.95em;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.service-item .read-more {
    font-weight: 600;
    color: var(--secondary-blue);
    display: inline-block;
    margin-top: 10px;
}

.service-item .read-more i {
    font-size: 0.8em;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.service-item .read-more:hover i {
    transform: translateX(5px);
}

/* --- Why Choose Us --- */
.why-choose-us .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: var(--bg-light); /* Changed to light background for subtle difference */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    /* border: 1px solid var(--border-color); Removed border for a cleaner look with bg-light */
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); /* Softer shadow */
}

.feature-item i {
    font-size: 2.5em;
    color: var(--accent-green);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.9em;
    color: #666;
}

/* --- Testimonials Section Styles --- */

.testimonials-section {
    padding: 60px 0; /* Consistent section padding */
    background-color: var(--light-bg-color, #f8f8f8); /* Light background for the section */
}

.testimonials-section h2 {
    margin-bottom: 40px;
    font-size: 2.5em; /* Adjust heading size */
    color: var(--heading-color, #333); /* Use your heading color variable */
}

.testimonial-carousel {
    display: flex; /* Enable flexbox for horizontal arrangement */
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    gap: 30px; /* Space between testimonial items (rows and columns) */
    justify-content: center; /* Center items if they don't fill the row */
}

.testimonial-item {
    background-color: #fff; /* White background for each testimonial card */
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); /* Add a subtle, modern shadow */
    text-align: left;
    box-sizing: border-box; /* Ensures padding and border are included in width calculations */

    /* Default for mobile: full width, stacked vertically */
    flex: 1 0 100%; /* Take full width and allow shrinking/growing */
    max-width: 100%; /* Ensure it doesn't exceed 100% on small screens */
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.7;
    font-size: 1.1em; /* Slightly larger text for readability */
}

.testimonial-item h4 {
    font-size: 1.1em;
    color: var(--primary-color, #007bff); /* Use your primary brand color */
    margin-top: 0;
    font-weight: 600; /* Make the name a bit bolder */
}

/* Tablet and larger screens (e.g., min-width 768px): 2 columns */
@media (min-width: 768px) {
    .testimonial-item {
        /* Calculates width for two columns with a 30px gap */
        /* (100% - total_gap_between_items) / number_of_items */
        /* Here, 1 gap in the middle, so (100% - 30px) / 2 = 50% - 15px */
        flex: 1 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

/* Desktop and larger screens (e.g., min-width 1024px): 3 columns */
/* This will only apply if you add more testimonials to your HTML */
@media (min-width: 1024px) {
    .testimonial-item {
        /* Calculates width for three columns with 30px gaps */
        /* (100% - 2 * 30px_gap) / 3 = 33.333% - 20px */
        flex: 1 1 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }
}

/* --- Call to Action --- */
.call-to-action {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.call-to-action h2 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.call-to-action p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Footer --- */
.main-footer {
    background-color: #222; /* Slightly darker footer */
    color: rgba(255, 255, 255, 0.8); /* Lighter base text color */
    padding: 60px 0 20px;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px; /* Increased gap */
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--accent-green);
    margin-bottom: 20px;
    font-size: 1.2em; /* Slightly larger footer heading */
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    padding: 0; /* Remove default padding */
}

.footer-col ul li {
    margin-bottom: 12px; /* Increased spacing */
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7); /* Softer link color */
    transition: color var(--transition-speed);
}

.footer-col ul li a:hover {
    color: var(--secondary-blue);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    line-height: 1.7;
}

.footer-col p i {
    margin-right: 10px;
    color: var(--secondary-blue);
    width: 18px; /* Align icons */
    text-align: center;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px; /* Add margin from grid */
}

.footer-bottom p {
    margin: 0 0 5px 0; /* Small margin bottom */
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 10px;
}

.footer-bottom a:hover {
    color: var(--secondary-blue);
}

/* --- Page Specific Styles (Example: About Page) --- */
/* .about-page-hero { background-image: url('../images/about-hero.jpg'); } */
.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.col-half {
    flex: 1;
    min-width: 300px;
}

.col-half img.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.lead {
    font-size: 1.15em;
    color: #555;
    margin-bottom: 2em;
}

.value-grid, .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-item, .team-member {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.value-item i {
    font-size: 2.8em;
    color: var(--accent-green);
    margin-bottom: 15px;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--secondary-blue);
}

.team-member h3 {
    margin-bottom: 5px;
    font-size: 1.3em;
}

.team-member p {
    color: #666;
    font-size: 0.9em;
}

/* Call to action on about page */
.call-to-action.bg-dark-blue {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 60px 0;
}
.call-to-action.bg-dark-blue h2, .call-to-action.bg-dark-blue p {
    color: #fff;
}
.call-to-action.bg-dark-blue .btn-secondary {
    border-color: #fff;
    color: #fff;
}
.call-to-action.bg-dark-blue .btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-blue);
}

/* --- Services Page Specific Styles --- */
.all-services-grid .service-item ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
    text-align: left; /* Align list items left */
    color: #555;
}

.all-services-grid .service-item ul li {
    margin-bottom: 8px;
    font-size: 0.9em;
    position: relative;
    padding-left: 20px; /* Space for custom bullet */
}
/* --- Services Overview --- */
/* ... (existing service-item styles) ... */

.service-item i.service-icon { /* Target the main service icons specifically */
    font-size: 3em; /* Adjust size as needed */
    color: var(--secondary-blue); /* Use your secondary blue for the icon color */
    margin-bottom: 20px;
    display: block; /* Ensure it's a block element for proper centering/spacing */
}

/* You can remove or adjust your existing .service-icon-img if no longer used */
/* .service-icon-img {
    max-width: 60px;
    margin-bottom: 20px;
} */
.all-services-grid .service-item ul li::before {
    content: "\f00c"; /* Font Awesome checkmark icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--accent-green);
    position: absolute;
    left: 0;
    top: 2px;
}

/* --- Gallery Page Specific Styles --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden; /* Ensures image corners are rounded */
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover; /* Crops image to fit without distortion */
    display: block;
}

.gallery-info {
    padding: 20px;
}

.gallery-info h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.gallery-info p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.gallery-info span {
    font-size: 0.85em;
    color: var(--secondary-blue);
    font-weight: 600;
}

.gallery-info span i {
    margin-right: 5px;
    color: var(--accent-green);
}

/* --- Contact Page Specific Styles --- */
.contact-content .row {
    align-items: flex-start; /* Align columns to the top */
}

.contact-form-wrapper, .contact-info-wrapper {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: 100%; /* Make columns same height if content allows */
}

.contact-form-wrapper {
    flex: 2; /* Form takes more space */
    margin-right: 30px;
}

.contact-info-wrapper {
    flex: 1; /* Info column takes less space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes map to bottom if content is short */
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-blue);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    color: var(--text-dark);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing only */
}

.contact-details p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #444;
}

.contact-details p i {
    color: var(--accent-green);
    margin-right: 12px;
    font-size: 1.1em;
    width: 20px; /* Ensure icon alignment */
    text-align: center;
}

.contact-details p a {
    color: var(--secondary-blue);
}
.contact-details p a:hover {
    color: var(--primary-blue);
}

.emergency-note {
    font-weight: 600;
    color: #dc3545; /* Red color for emergency text */
    margin-top: 20px;
}

.map-container {
    margin-top: 30px;
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
}

.map-container h3 {
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.map-container iframe {
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .pre-header .container {
        flex-direction: column;
        text-align: center;
    }
    .pre-header-info p {
        margin: 5px 0;
    }
    .social-links {
        margin-top: 10px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        background-color: #fff;
        position: absolute;
        top: 100%; /* Position below the primary nav bar */
        left: 0;
        width: 100%;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
        padding: 10px 0; /* Reduced padding */
    }

    .main-nav ul.active {
        display: flex;
    }

    .main-nav ul li {
        margin: 0;
        text-align: center;
        width: 100%; /* Full width list items */
    }

    .main-nav ul li a {
        display: block;
        padding: 12px 20px; /* Adjusted padding */
        border-bottom: 1px solid #eee; /* Lighter separator */
    }
    .main-nav ul li a:not(.btn):after { /* Remove underline hover for mobile nav items */
        display: none;
    }

    .main-nav ul li:last-child a {
        border-bottom: none;
    }

    .main-nav ul li a.btn {
        margin: 10px 20px; /* Margin for button */
        width: auto; /* Auto width for button content */
        display: inline-block; /* Keep it inline-block */
        padding: 10px 20px;
    }

    .hero-section {
        padding: 80px 0;
        min-height: 500px;
    }

    .hero-section h1 {
        font-size: 2.5em; /* Adjusted for 992px */
    }

    .hero-section p {
        font-size: 1.1em; /* Adjusted for 992px */
    }

    h2 {
        font-size: 1.8em;
    }

    .section-padding {
        padding: 60px 0;
    }

    .service-grid, .feature-grid, .footer-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-carousel {
        flex-direction: column; /* Stack testimonials if not using JS slider */
    }
    .testimonial-item {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .about-content-with-image {
        text-align: center; /* Center align text when image stacks */
    }
    .about-text {
        text-align: center; /* Ensure text alignment is consistent */
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .call-to-action h2 {
        font-size: 2em;
    }
    .logo img {
        max-width: 100px; /* Slightly smaller logo */
    }

    /* Responsive Carousel Controls for 768px */
    .carousel-control {
        padding: 10px 15px;
        font-size: 1.5em;
        width: 45px;
        height: 45px;
    }
    .carousel-control.prev {
        left: 15px;
    }
    .carousel-control.next {
        right: 15px;
    }
    .carousel-indicators {
        bottom: 20px;
    }
    .carousel-indicators .dot {
        height: 10px;
        width: 10px;
        margin: 0 5px;
    }
    .row .col-half {
        min-width: unset; /* Allow full width stack on small screens */
        width: 100%;
    }

    .contact-form-wrapper { /* Assuming you have these from original CSS */
        margin-right: 0;
        margin-bottom: 30px;
    }
    .contact-form-wrapper, .contact-info-wrapper {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8em;
    }
    .hero-section p {
        font-size: 0.9em;
    }
    .btn.large-btn { /* Make large buttons a bit smaller on mobile */
        padding: 12px 25px;
        font-size: 1em;
    }
    .pre-header-info {
        font-size: 0.8em;
    }
    .logo img {
        max-width: 80px; /* Even smaller logo */
    }
    .carousel-control {
        padding: 8px 12px;
        font-size: 1.2em;
        width: 40px;
        height: 40px;
    }
    .carousel-control.prev { left: 10px; }
    .carousel-control.next { right: 10px; }
    .carousel-indicators { bottom: 15px; }
    .carousel-indicators .dot { height: 8px; width: 8px; margin: 0 3px;}
}
