/* Universal Box-Sizing Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

/* --- General Styles (existing) --- */
:root {
    /* ... your existing CSS variables ... */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden; /* This helps prevent horizontal scroll if issues persist, but ideally, fix the root cause */
}

/* ... rest of your CSS ... */

/* Google Fonts Import - Montserrat for headings, Open Sans for body */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

/* --- CSS Variables for Color Palette --- */
/* Easily change these values to try different brand color schemes */
:root {
    /* Triloka Brand Colors */
    --primary-color: #6A0DAD;   /* Royal Purple: Spirituality, Wisdom, Dignity */
    --secondary-color: #007B8A; /* Teal Blue: Trust, Calm, Modernity */
    --accent-color: #FFA000;    /* Deep Orange/Gold: Action, Energy, Divinity */

    /* Neutral Colors */
    --text-dark: #333333;
    --text-light: #555555;
    --bg-light: #F8F8F8;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-light: rgba(0,0,0,0.08);
    --shadow-medium: rgba(0,0,0,0.15);
}

/* --- General Body and HTML Styling --- */
html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: 'Open Sans', sans-serif; /* Body text font */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white); /* Default body background */
}

/* Container for consistent content width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Headings Styling */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif; /* Headings font */
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

h1 { font-size: 36px; } /* Mobile default */
h2 { font-size: 30px; } /* Mobile default */
h3 { font-size: 24px; } /* Mobile default */
h4 { font-size: 20px; } /* Mobile default */

/* Paragraphs */
p {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Links (General) */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Button Styles */
.btn-primary, .btn-secondary, .btn-call-action {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px; /* Slightly more rounded */
    font-weight: 600; /* Bolder */
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: darken(var(--accent-color), 10%); /* Will be manually darkened or a fixed hex */
    background-color: #e69100; /* Manually darkened accent */
    transform: translateY(-2px); /* Subtle lift */
    box-shadow: 0 4px 8px var(--shadow-light);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-light);
}

.btn-call-action {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-call-action:hover {
    background-color: darken(var(--primary-color), 10%); /* Will be manually darkened or a fixed hex */
    background-color: #530a84; /* Manually darkened primary */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-light);
}


/* --- Header/Navigation Section --- */
header {
    background-color: var(--bg-white);
    padding: 10px 0; /* Vertical padding */
    box-shadow: 0 2px 8px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically centers logo, nav links, and menu icon */
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    padding: 0 20px; /* Horizontal padding for content */
    min-height: 60px; /* Ensures a minimum height for the nav on mobile */
}

/* Logo styling - for the text "Triloka" */
.logo h1 {
    margin: 0;
    font-family: 'Montserrat', sans-serif; /* Use our heading font */
    font-size: 28px; /* Mobile default size for the logo text */
    color: var(--primary-color); /* Our chosen primary brand color */
    font-weight: 700;
    line-height: 1; /* Ensures no extra space above/below the text */
}

/* Important: Ensure any .logo img or .logo svg rules are removed/commented out */
.logo img, .logo svg {
    display: none; /* Make sure any image/svg logos are hidden if they were there */
}


/* Mobile-first: Navigation links (hidden by default on mobile) */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-direction: column; /* Stack vertically for mobile menu */
    width: 100%; /* Full width mobile menu */
    text-align: center;
    background-color: var(--bg-white);
    position: absolute; /* Position menu below header */
    top: 80px; /* Adjust based on header height, to appear below it */
    left: 0;
    right: 0;
    box-shadow: 0 8px 15px var(--shadow-medium); /* Prominent shadow for menu */
    display: none; /* Hidden by default */
    border-top: 1px solid var(--border-color); /* Separator line */
    padding-bottom: 10px; /* Little padding at the bottom of the opened menu */
}

.nav-links.active { /* Class to show the menu when active (toggled by JS) */
    display: flex;
}

.nav-links li {
    margin: 10px 0; /* Vertical spacing for mobile menu items */
}

.nav-links a {
    padding: 10px 0;
    display: block; /* Make links full width for better tapping */
    color: var(--text-dark);
    font-size: 17px;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: var(--bg-light); /* Highlight on hover */
}

/* Contact button in header (hidden on mobile by default) */
.contact-header {
    display: none;
}

/* Hamburger menu icon (shown on mobile) */
.menu-icon {
    display: block; /* Show on mobile */
    cursor: pointer;
    font-size: 30px;
    color: var(--primary-color);
    padding: 5px; /* Easier to tap */
}


/* --- Responsive Design (Desktop/Tablet Styles) --- */
@media (min-width: 768px) {
    /* Header/Navigation on larger screens */
    nav {
        flex-wrap: nowrap; /* Prevent items from wrapping on desktop */
        min-height: auto; /* Remove minimum height constraint */
    }

    .menu-icon {
        display: none; /* Hide hamburger menu on desktop */
    }

    .nav-links {
        display: flex; /* Show navigation links horizontally */
        flex-direction: row;
        position: static; /* Remove absolute positioning */
        width: auto;
        box-shadow: none;
        background-color: transparent;
        border-top: none;
        padding-bottom: 0;
    }

    .nav-links li {
        margin-left: 30px; /* Spacing between desktop menu items */
        margin-top: 0;
        margin-bottom: 0;
    }

    .nav-links a {
        padding: 0;
        font-size: 16px; /* Smaller font for desktop menu items */
    }

    .contact-header {
        display: block; /* Show desktop contact button */
    }

    /* Logo size for desktop */
    .logo h1 {
        font-size: 36px; /* Larger font size for desktop logo text */
    }
}
/* --- Hero Section --- */
#hero {
    position: relative; /* Needed for positioning the overlay */
    background-color: var(--bg-light); /* Fallback background color */
    text-align: center;
    padding: 80px 20px; /* Mobile padding */
    min-height: 450px; /* Minimum height for mobile */
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    overflow: hidden; /* Hide anything that goes beyond hero boundaries */
}

/* Background image and overlay for the Hero section */
.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero_bg.png'); /* REPLACE THIS PATH */
    background-size: cover; /* Cover the entire area */
    background-position: center; /* Center the image */
    background-repeat: no-repeat;
    /* Optional: Add a subtle overlay for text readability */
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay (adjust alpha for darker/lighter) */
    background-blend-mode: multiply; /* Blends background color with image */
    z-index: 0; /* Ensures it's behind the text */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--bg-white); /* White text color for readability over dark background/overlay */
    position: relative; /* Ensures text is above the overlay */
    z-index: 1; /* Ensures text is above the overlay */
}

#hero h2 {
    font-size: 38px; /* Mobile default */
    color: inherit; /* Inherit color from hero-content (so it's white) */
    margin-bottom: 20px;
}

#hero p {
    font-size: 18px; /* Mobile default */
    color: inherit; /* Inherit color from hero-content (so it's white) */
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px; /* Space between buttons */
    max-width: 300px; /* Limit button group width */
    margin: 0 auto; /* Center button group */
}


/* --- Responsive Design (Desktop/Tablet Styles) --- */
@media (min-width: 768px) {
    #hero {
        padding: 150px 20px; /* More vertical padding for desktop */
        min-height: 550px; /* Taller hero on desktop */
    }

    #hero h2 {
        font-size: 58px; /* Larger headline on desktop */
    }

    #hero p {
        font-size: 22px; /* Larger sub-headline on desktop */
    }

    .hero-buttons {
        flex-direction: row; /* Display buttons horizontally on desktop */
        justify-content: center; /* Center buttons horizontally */
        max-width: none; /* Remove width limit */
    }
}

/* --- Larger Desktop Screens (Optional) --- */
@media (min-width: 1024px) {
    #hero h2 {
        font-size: 64px; /* Even larger headline on very large screens */
    }
}


/* --- General Section Styling (Reusable) --- */
/* This ensures consistent padding for all major sections */
.section-padding {
    padding: 60px 20px; /* Default padding for sections on mobile */
}

/* Styling for the common section header (h2 + p) */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px; /* Mobile size */
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}


/* --- Services Section Specific Styling --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 30px; /* Space between cards */
}

.service-card {
    background-color: var(--bg-white); /* Base background, will be overlaid */
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Needed for the ::before overlay */
    overflow: hidden; /* Ensures background/overlay doesn't exceed border-radius */
    z-index: 0; /* Ensures cards stack correctly */
}

.service-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 25px var(--shadow-medium); /* Stronger shadow on hover */
}

/* ::before pseudo-element for subtle background image overlay */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.85); /* White overlay, adjust alpha for transparency */
    z-index: -1; /* Place behind card content */
}

/* Ensure card content is always above the overlay */
.service-card > * {
    position: relative;
    z-index: 1;
}

/* Specific background images for each card */
.service-card:nth-child(1) { /* For Temple Darshan Facilitation */
    background-image: url('service_darshan.png'); /* <<< REPLACE THIS PATH >>> */
    background-size: cover;
    background-position: center;
}

.service-card:nth-child(2) { /* For Puja Bookings in Temples */
    background-image: url('service_pujatemple.png'); /* <<< REPLACE THIS PATH >>> */
    background-size: cover;
    background-position: center;
}

.service-card:nth-child(3) { /* For Customized Personal Pujas */
    background-image: url('service_custompuja.png'); /* <<< REPLACE THIS PATH >>> */
    background-size: cover;
    background-position: center;
}

/* Icon Styling (Font Awesome) */
.service-icon {
    margin-bottom: 20px;
    display: inline-block;
    width: 80px; /* Background circle size */
    height: 80px;
    line-height: 80px; /* Vertically center icon */
    border-radius: 50%;
    background-color: var(--bg-light); /* Light background for icon circle */
    color: var(--primary-color); /* Icon color */
}

.service-icon i { /* Styling for the Font Awesome icon itself */
    font-size: 38px; /* Size of the icon */
    vertical-align: middle; /* Ensures icon is perfectly centered */
}

.service-card h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Outline Button Style (Reusable - for "Learn More" buttons) */
.btn-outline {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* --- Responsive Design (Services Section Media Queries) --- */
@media (min-width: 768px) {
    .section-padding {
        padding: 80px 20px; /* More padding on desktop */
    }

    .section-header h2 {
        font-size: 38px; /* Larger heading on desktop */
    }

    .section-header p {
        font-size: 18px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on tablets */
    }

    .service-card h3 {
        font-size: 24px;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns on larger desktops */
    }
}
/* --- Services Section CTA --- */
.services-cta {
    text-align: center;
    margin-top: 60px; /* Space from the services grid */
    padding: 40px 20px;
    background-color: var(--bg-light); /* Light background for the CTA block */
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.services-cta h3 {
    font-size: 28px; /* Mobile size */
    color: var(--primary-color);
    margin-bottom: 15px;
}

.services-cta p {
    font-size: 17px;
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons on mobile */
    gap: 15px;
    max-width: 350px; /* Limit width to keep buttons stacked well */
    margin: 0 auto; /* Center the button group */
}

/* Responsive adjustments for CTA */
@media (min-width: 768px) {
    .services-cta {
        margin-top: 80px;
        padding: 50px 30px;
    }

    .services-cta h3 {
        font-size: 36px; /* Larger on desktop */
    }

    .services-cta p {
        font-size: 18px;
    }

    .cta-buttons {
        flex-direction: row; /* Display buttons side-by-side on desktop */
        justify-content: center;
        max-width: none; /* Remove width limit */
    }
}
/* --- About Us Section --- */
.about-content {
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    align-items: center; /* Center items when stacked */
    gap: 50px; /* Increased space between text and image */
}

.about-text {
    flex: 1.5; /* Give text slightly more space than image on desktop */
    max-width: 100%; /* Ensure it doesn't overextend */
}

.about-text h3 {
    font-size: 26px; /* Slightly larger heading on mobile for impact */
    color: var(--primary-color); /* Make subheadings stand out with brand color */
    margin-bottom: 18px; /* More space after subheading */
    font-weight: 700; /* Bolder for prominence */
    line-height: 1.3;
}

.about-text p {
    font-size: 17px;
    color: var(--text-dark); /* Slightly darker text for better contrast */
    line-height: 1.8; /* Increased line height for readability */
    margin-bottom: 25px; /* More space between paragraphs */
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image {
    flex: 1; /* Image takes its share of space */
    max-width: 100%; /* Ensure image is responsive */
    text-align: center;
    /* Optional: Add a padding for internal image spacing if needed */
    /* padding: 15px; */
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px; /* Slightly more rounded corners */
    box-shadow: 0 8px 30px var(--shadow-medium); /* More pronounced shadow for depth */
    transition: transform 0.3s ease; /* Smooth hover effect */
}

.about-image img:hover {
    transform: translateY(-5px); /* Gentle lift on hover */
}


/* Responsive adjustments for About Us */
@media (min-width: 768px) {
    .about-content {
        flex-direction: row; /* Side-by-side on desktop */
        text-align: left; /* Align text left */
        gap: 70px; /* More generous gap on desktop */
    }

    .about-text h3 {
        font-size: 34px; /* Larger heading on desktop for impact */
    }

    .about-text p {
        font-size: 18px; /* Slightly larger body text on desktop */
    }

    .about-image {
        max-width: 40%; /* Adjust width for desktop layout, image now takes 40% of the flex container */
        order: 2; /* Puts image on the right by default */
    }

    .about-text {
        order: 1; /* Puts text on the left by default */
    }

    /* If you prefer the image on the left, you can add a class to .about-content like this: */
    /*
    .about-content.image-left .about-image { order: 1; }
    .about-content.image-left .about-text { order: 2; }
    */
}

@media (min-width: 1024px) {
    .about-text h3 {
        font-size: 38px;
    }

    .about-text p {
        font-size: 19px;
    }
}

/* --- Voices of Devotion (Testimonials) Section --- */
#voices-of-devotion {
    background-color: var(--bg-light); /* Overall section background for the "break" */
    /* Note: No box-shadow directly on the section, it's on the container inside */
}

/* Styling for the container INSIDE this section to make it "raised" */
#voices-of-devotion .container {
    background-color: var(--bg-white); /* White background for the raised content area */
    border-radius: 15px; /* Slightly more rounded corners */
    box-shadow: 0 10px 40px var(--shadow-medium); /* More pronounced shadow for raised effect */
    padding: 60px 30px; /* Generous padding inside the raised container */

    /* Optional: These margins can make it slightly overlap adjacent sections visually */
    /* Test these and adjust/remove if they don't fit your overall page flow */
    /* margin-top: -30px; */
    /* margin-bottom: -30px; */

    position: relative; /* Necessary for z-index */
    z-index: 1; /* Ensures it sits above any lower background elements */
}

/* Adjust section-header margin if it's too close to the top of the new container padding */
#voices-of-devotion .section-header {
    margin-bottom: 40px; /* Adjusted margin for separation from the grid */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 30px; /* Space between testimonial cards */
}

.testimonial-card {
    background-color: var(--bg-white); /* Card background, same as container, but cards have their own shadow */
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow-light); /* Subtle shadow for individual cards */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px); /* Gentle lift effect on hover */
    box-shadow: 0 8px 25px var(--shadow-medium); /* Stronger shadow on hover */
}

.testimonial-card .rating {
    color: var(--secondary-color); /* Gold color for stars (assuming you have this variable) */
    margin-bottom: 15px;
    font-size: 18px;
}

.testimonial-card .rating i {
    margin: 0 2px;
}

.testimonial-card .quote {
    font-size: 18px;
    font-style: italic;
    color: var(--text-dark); /* Darker text for better contrast */
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-card .devotee-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color); /* Primary brand color for devotee names */
}

/* --- Responsive adjustments for Testimonials --- */
@media (min-width: 768px) {
    /* Adjust padding for the raised container on larger screens */
    #voices-of-devotion .container {
        padding: 80px 40px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on tablets */
        gap: 40px; /* Increased gap on larger screens */
    }
    .testimonial-card .quote {
        font-size: 19px;
    }
}

@media (min-width: 1024px) {
    #voices-of-devotion .container {
        padding: 90px 60px; /* Even more padding on large desktops */
    }
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns on larger desktops */
    }
}}/* --- Contact Us Section --- */
#contact {
    background-color: var(--bg-white); /* Alternating background for visual break */
    /* Padding for the section is already handled by .section-padding */
}

.contact-content {
    display: flex;
    flex-direction: column; /* Stack vertically on mobile by default */
    gap: 50px; /* Space between form and details blocks */
    align-items: flex-start; /* Align items to start (left) */
}

.contact-form,
.contact-details {
    width: 100%; /* Full width on mobile */
    background-color: var(--bg-light); /* Light background for the form/details cards */
    padding: 35px; /* Refined padding for internal spacing */
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.contact-form h3,
.contact-details h3 {
    font-size: 26px; /* Heading size for mobile */
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

/* Hidden labels for accessibility (screen readers) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px; /* Refined padding: slightly less vertical, same horizontal */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    color: var(--text-dark);
    background-color: var(--bg-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Added box-shadow transition */
    box-sizing: border-box; /* Ensures padding and border are included in the element's total width and height */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none; /* Remove default outline */
    box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.2); /* Light primary color shadow on focus */
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing only */
}

/* Contact Details Styling */
.contact-details p {
    font-size: 17px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-details ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.contact-details ul li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 17px;
    color: var(--text-light);
}

.contact-details ul li i {
    color: var(--primary-color);
    font-size: 20px;
    margin-right: 15px;
    width: 25px; /* Fixed width for icon alignment */
    text-align: center;
}

.contact-details ul li span {
    flex-grow: 1; /* Allows text to take remaining space */
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: var(--text-dark); /* Default social icon color */
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color); /* Hover effect for social icons */
}


/* --- Responsive adjustments for Contact Us --- */
@media (min-width: 768px) {
    .contact-content {
        flex-direction: row; /* Switches to side-by-side on desktop */
        justify-content: space-between;
        gap: 40px; /* Space between the two columns */
    }

    .contact-form,
    .contact-details {
        width: calc(50% - 20px); /* Each takes roughly half width, accounting for gap */
        padding: 45px; /* Increased padding on desktop */
    }

    .contact-form h3,
    .contact-details h3 {
        font-size: 30px; /* Larger headings on desktop */
    }
}

@media (min-width: 1024px) {
    .contact-form,
    .contact-details {
        padding: 50px; /* Even more padding on very large desktops */
    }
}
/* --- Footer Section --- */
#main-footer {
    background-color: var(--text-dark); /* Dark background for the footer */
    color: var(--bg-white); /* Light text on dark background */
    padding: 60px 0 30px; /* Top, bottom, and horizontal padding */
    font-size: 16px;
}

#main-footer .container {
    /* No specific padding here, handled by section-padding/direct padding */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 40px; /* Space between footer columns */
    margin-bottom: 40px; /* Space above copyright info */
    text-align: center; /* Center content on mobile */
}

.footer-col {
    /* Default styles for each column */
}

.footer-logo {
    max-width: 150px; /* Adjust logo size */
    margin-bottom: 20px;
}

.footer-col p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-col h4 {
    font-size: 20px;
    color: var(--secondary-color); /* Highlight headings with secondary color */
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--bg-white); /* Link color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color); /* Link hover effect */
}

.footer-col.contact-info p {
    display: flex; /* Align icon and text */
    align-items: flex-start; /* Align icon to top if text wraps */
    margin-bottom: 12px;
    font-size: 16px;
}

.footer-col.contact-info p i {
    color: var(--secondary-color); /* Icon color */
    font-size: 18px;
    margin-right: 15px;
    width: 20px; /* Fixed width for icon alignment */
    text-align: center;
}

/* Social Links in Footer (reusing styles but adapting colors) */
#main-footer .social-links {
    display: flex;
    justify-content: center; /* Center social icons on mobile */
    gap: 20px;
    margin-top: 25px;
}

#main-footer .social-links a {
    color: var(--bg-white); /* White icons on dark background */
    font-size: 24px;
    transition: color 0.3s ease;
}

#main-footer .social-links a:hover {
    color: var(--primary-color); /* Primary color on hover */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle line above copyright */
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7); /* Slightly muted copyright text */
}


/* Responsive adjustments for Footer */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on tablets */
        text-align: left; /* Left align content */
    }
    #main-footer .social-links {
        justify-content: flex-start; /* Align social icons to left on desktop */
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1.5fr; /* Custom column widths: brand info, quick links, contact info */
        gap: 60px; /* More space between columns on larger screens */
    }
    .footer-logo {
        margin-left: 0; /* Ensure logo aligns left */
    }
}