/* --- General Styling & Variables --- */
:root {
    --primary-color: #005A9C; /* Brighter Professional Blue */
    --secondary-color: #F8F9FA; /* Clean Light Gray */
    --accent-color: #F57C00; /* Vibrant Orange */
    --accent-hover-color: #E67E22; /* Darker Orange for hover */
    --text-color: #212529; /* Standard Dark Gray */
    --white-color: #ffffff;
    --border-color: #dee2e6;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

h1,
h2,
h3 {
    font-family: var(--heading-font);
    font-weight: 600;
    margin-bottom: 20px;
}

/* --- Preloader Styles --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

#preloader img {
    width: 80px;
}

/* --- Header & Navigation --- */
#main-header {
    background: var(--white-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease;
}

#main-header.header-hidden {
    transform: translateY(-100%);
}

/* --- Scroll Progress Bar --- */
#progress-bar-container {
    position: fixed;
    top: 81px; /* Positioned right below the header */
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    z-index: 1001;
    transition: top 0.3s ease-in-out;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--accent-color);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
}

#header-logo {
    height: 50px;
    width: auto;
    display: block;
}

#main-header nav ul {
    list-style: none;
    display: flex;
}

#main-header nav ul li {
    margin-left: 20px;
}

#main-header nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

#main-header nav a:hover {
    color: var(--primary-color);
    background-color: #e9ecef;
}

/* Style for the currently active navigation link */
#main-header nav a.active {
    color: var(--accent-color);
}

#main-header.sticky {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* --- Hamburger Menu Icon (Hidden on Desktop) --- */
#menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

#menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* --- Dropdown Menu Styles --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    /* Replaced display:none with opacity for animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    margin-top: 5px;
    min-width: 220px;
    border-radius: 5px;
    z-index: 1001;
}

.dropdown-menu li a {
    color: var(--primary-color);
    padding: 12px 20px;
    display: block;
    text-align: left;
    font-weight: normal;
}

.dropdown-menu li a:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- Hero Section --- */
.hero {
    background-image: url('../images/hero-bg.jpg'); /* Reverted to original image name */
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    color: var(--white-color);
    height: 70vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    margin-top: 82px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
        background: linear-gradient(90deg, rgba(0, 90, 156, 0.8) 0%, rgba(0, 90, 156, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 600px;
}

.hero h1 {
    font-family: var(--heading-font);
    font-weight: 600;
}

.hero h2 {
    font-size: 3rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 50px; /* Modern rounded look */
  font-weight: 500;
  color: var(--white-color);
  background: rgba(245, 124, 0, 0.8); /* Glassy orange from accent */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.hero-features {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.hero-feature-item i {
    color: var(--accent-color);
}

/* --- Content Sections --- */
#about,
#contact {
    background: var(--secondary-color);
}

/* Utility class for centered, max-width text blocks */
.text-block-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.services-scroll-container {
    position: relative;
}

.services-grid {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping to create a single row */
    gap: 20px;
    overflow-x: auto; /* Enable horizontal scrolling */
    padding: 20px 5px; /* Add padding for shadow visibility */
    scroll-behavior: smooth;
    /* Hide the default scrollbar for a cleaner look */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.services-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.service-card {
    background: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Make cards a fixed width and prevent them from shrinking */
    flex: 0 0 280px;
    max-width: 280px;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s, opacity 0.3s;
}

.scroll-btn:hover {
    background-color: #e9ecef;
}

.scroll-btn.left { left: -20px; }
.scroll-btn.right { right: -20px; }
.scroll-btn.hidden { display: none; }

@media (max-width: 1140px) {
    .scroll-btn.left { left: 0; }
    .scroll-btn.right { right: 0; }
}

.service-gif {
    display: block;
    width: 200px;
    margin: 0 auto 15px auto;
    object-fit: contain;
    border-radius: 8px;
}

.service-card h3 {
    text-align: left;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.btn-learn-more {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 16px;
  background: rgba(0, 90, 156, 0.8); /* Glassy blue from primary */
  color: var(--white-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-learn-more:hover {
  transform: translateY(-2px);
  background: rgba(0, 90, 156, 1);
}

/* --- Scroll Animation --- */
/* Note: .service-card hover and base transitions remain, but scroll animation is moved */

/* --- Blog Section --- */

/* --- Testimonials Section --- */
#testimonials {
    background-color: var(--primary-color);
    color: var(--white-color);
}

#testimonials h2 {
    text-align: center;
}

.testimonial-carousel-container {
    position: relative;
    margin-top: 40px;
}

.testimonial-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.testimonial-carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.testimonial-carousel-btn.prev {
    left: -15px;
}
.testimonial-carousel-btn.next {
    right: -15px;
}

.testimonial-carousel-viewport {
    overflow: hidden;
}

.testimonial-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    flex: 0 0 100%; /* Each slide takes full width of the viewport */
    max-width: 100%;
    padding: 30px 40px; /* Adjust padding for single view */
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    padding-top: 50px;
}

.testimonial-carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.testimonial-dot.active {
    background-color: var(--white-color);
}

.testimonial-card::before {
    content: '\f10d'; /* Font Awesome quote-left icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    left: 25px;
    font-size: 2.5rem;
    color: var(--accent-hover-color);
    opacity: 0.5;
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card .author {
    font-weight: bold;
    color: #f8f9fa;
    text-align: right;
}

/* --- Partners Section --- */
#partners {
    background-color: var(--white-color);
}

#partners h2 {
    text-align: center;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.partner-logo {
    flex: 0 1 160px; /* Flex-grow, flex-shrink, flex-basis */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Prepare for animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Staggered animation for partner logos */
.partners-grid.is-visible .partner-logo {
    opacity: 1;
    transform: translateY(0);
}

.partner-logo img {
    max-width: 100%;
    max-height: 60px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}
#blog {
    background-color: var(--secondary-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-content .btn-learn-more {
    margin-top: auto; /* Pushes button to the bottom */
}

/* --- Blog Search Bar --- */
.blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.blog-search-container {
    flex-grow: 1;
}

#blog-search {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: var(--body-font);
}

#blog-search:focus {
    outline: 2px solid var(--primary-color);
}

.blog-sort-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-sort-container label {
    font-weight: 500;
}

#blog-sort {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: var(--body-font);
    font-size: 0.95rem;
}

/* --- Pagination --- */
#pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #e9ecef;
}

.pagination-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-load-more {
    min-width: 150px;
}
/* --- Back Link on Detail Pages --- */
.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}
.back-link:hover { text-decoration: underline; }

/* --- Service Detail & Calculator Pages --- */
#service-details,
#calculator-section,
#contact-page,
#blog-post-details {
    padding-top: 140px;
    padding-bottom: 60px;
}

/* --- Single Blog Post Page --- */
.blog-post-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 30px;
}

.blog-full-content h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.blog-full-content h3 {
    color: var(--primary-color);
    margin-top: 30px;
}

.blog-full-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* --- Table of Contents --- */
.toc-container {
    background-color: var(--secondary-color);
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.toc-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

#toc-list {
    list-style: none;
    padding-left: 0;
}

#toc-list li {
    margin-bottom: 10px;
}

#toc-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

#toc-list a:hover {
    color: var(--accent-color);
}

/* --- Documents Checklist Section --- */
.documents-section {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    margin-top: 50px;
    border: 1px solid var(--border-color);
}

.documents-section h3 {
    margin-top: 0;
    color: var(--primary-color);
    text-align: center;
}

.documents-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    list-style: none;
    padding-left: 0;
    margin-top: 25px;
}

.documents-list li {
    background-color: var(--white-color);
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

#related-posts {
    background-color: var(--secondary-color);
}

/* Prepare related post cards for animation */
#related-posts .blog-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Visible state for animated cards */
#related-posts .blog-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Social Share Buttons --- */
.social-share {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-share-title {
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--white-color);
    font-size: 1rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

#service-details .intro-paragraph {
    font-size: 1.1rem;
    color: #5a6268;
    margin-bottom: 30px;
}

#service-details h3 {
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

#service-details ul {
    list-style-position: inside;
    margin-left: 20px;
}

#service-details li {
    margin-bottom: 10px;
}

/* --- About Page & Team Section --- */
#about-page {
    padding-top: 140px;
    background-color: var(--secondary-color);
}

#about-page .intro-paragraph {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

.team-section {
    background-color: var(--white-color);
}

.team-section h2 {
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    /* text-align: center; */
}

.team-card h3, .team-card .team-title {
    text-align: center;
}

.team-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--secondary-color);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.team-title {
    color: #6c757d;
    font-weight: bold;
    margin-top: -15px;
    font-size: 0.95rem;
}

.team-stat-card {
    background-color: #f1f3f5;
    border: 2px dashed var(--accent-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 8px;
}

.team-stat-number {
    font-size: 4.5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
    position: relative;
    margin-bottom: 10px;
}

/* --- 404 Not Found Page --- */
.not-found-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 82px); /* Full viewport height minus header */
    padding-top: 82px; /* Offset for fixed header */
}

.not-found-content h1 {
    font-size: 8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1;
}

.not-found-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.not-found-content p {
    max-width: 500px;
    margin: 0 auto 30px auto;
}

/* --- Call to Action Section --- */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.cta-section .btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  font-weight: bold;
  border: 1px solid rgba(0, 90, 156, 0.2);
}
.calculator-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background-color: var(--secondary-color);
    box-shadow: none;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit; /* Ensure consistent font */
}

.calculator-container .btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 15px;
}

.result-box {
    margin-top: 25px;
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: 4px;
    text-align: left;
    border: 1px dashed #ccc;
}

.result-box h3 {
    color: var(--primary-color);
    margin: 0;
}

/* --- Contact Page Styles --- */
.contact-form-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 40px;
    background-color: var(--secondary-color);
    box-shadow: none;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-details-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.contact-detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-detail-item p {
    margin-bottom: 0;
}

.btn-copy {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    font-size: 0.9rem;
}

.contact-details-bottom p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.5;
}


/* --- EMI Calculator Result Styles --- */
.emi-summary-details {
    text-align: left;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 10px;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span {
    color: #495057;
}

.summary-item strong {
    color: var(--primary-color);
    font-size: 1.2rem;
}
/* --- Footer --- */
footer {
    background: var(--primary-color);
    color: #adb5bd;
    padding: 40px 0;
    text-align: left;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.footer-info p {
    margin-bottom: 15px;
}

.footer-map iframe {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-media {
    margin-top: 20px;
}

.social-media a {
    color: #adb5bd;
    font-size: 1.5rem; /* 24px */
    margin-right: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-media a:last-child {
    margin-right: 0;
}

.social-media a:hover {
    color: var(--white-color);
}

.footer-grid {
    /* Re-align items to the start for better vertical alignment with new content */
    align-items: start;
}

.footer-links {
    margin: 10px 0;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white-color);
}

/* --- Back to Top Button --- */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: var(--white-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
}
.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

/* --- Cookie Consent Banner --- */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px 20px;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

#cookie-consent-banner.show {
    display: flex;
}

#cookie-consent-banner p {
    margin: 0;
    font-size: 0.9rem;
}

#cookie-consent-banner .btn {
    flex-shrink: 0; /* Prevent button from shrinking */
}

#cookie-consent-banner a {
    color: var(--white-color);
    text-decoration: underline;
    font-weight: bold;
}

/* --- Services Page Specific Styles --- */
/* Styles for the dedicated services page grid */
#services-page .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    overflow-x: hidden; /* Disable horizontal scroll */
    flex-wrap: wrap; /* Allow wrapping */
    justify-content: center;
}
#services-page .service-card {
    flex: 1 1 280px; /* Allow cards to grow and shrink */
}

/*
=================================================================
--- Responsive Design (for tablets and mobile) ---
=================================================================
*/
@media (max-width: 768px) {

    /* --- Responsive Header & Navigation --- */
    #menu-toggle {
        display: block;
        z-index: 1001;
    }

    #main-header #main-nav ul {
        /* Use max-height and opacity for animation instead of display:none */
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 81px;
        right: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #ddd;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, padding 0.4s ease-in-out;
    }

    #main-header #main-nav ul.active {
        max-height: 400px; /* Adjust if menu gets taller */
        opacity: 1;
        padding: 10px 0;
    }

    /* Center-align titles and intro paragraphs on mobile */
    h1, h2,
    .intro-paragraph,
    #contact-page p:first-of-type {
        text-align: center;
    }

    /* Ensure card content is centered */
    .service-card,
    .team-card {
        text-align: center;
    }

    .scroll-btn {
        display: none; /* Hide scroll buttons on mobile, rely on touch scrolling */
    }

    /* Show menu when active */
    #main-nav ul li {
        margin: 10px 20px;
    }

    .dropdown {
        position: static;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: 1px solid #eee;
        margin-top: 10px;
        min-width: 100%;
    }

    /* --- Responsive Layouts --- */
    .hero {
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        text-align: center; /* Center hero text on mobile */
        padding: 0 15px;
    }
    
    .hero-features {
        justify-content: center;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .footer-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        text-align: center;
    }

    .footer-grid {
        align-items: center; /* Center align again for stacked mobile view */
    }

    .footer-info {
        margin-bottom: 30px;
    }

    section {
        padding: 40px 0;
    }

    #service-details,
    #calculator-section,
    #blog-post-details {
        padding-top: 120px;
    }
    .calculator-container {
        padding: 20px;
    }

    #cookie-consent-banner {
        flex-direction: column;
        text-align: center;
    }
}