@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Reset */
*, *::before, *::after {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}

/* Custom Properties */
:root {
 --primary-color: #0284c7; /* Blue */
 --accent-color: #7dd3fc; /* Light Blue */
 --text-color-dark: #333;
 --text-color-light: #f8fafc;
 --bg-color-light: #f8fafc; /* Very light neutral */
 --bg-color-white: #ffffff;
 --bg-color-dark-footer: rgb(5, 47, 72); /* Darker shade of primary for footer */
 --border-color: #e2e8f0;
 --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08); /* Subtle shadow */
 --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
 --transition-speed: 0.3s ease;
 --max-width: 1200px;
}

body {
 font-family: 'Poppins', sans-serif;
 line-height: 1.6;
 color: var(--text-color-dark);
 background-color: var(--bg-color-white);
 -webkit-font-smoothing: antialiased;
 scroll-behavior: smooth;
}

/* General Styles */
.container {
 max-width: var(--max-width);
 margin: 0 auto;
 padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
 font-weight: 700;
 line-height: 1.2;
 margin-bottom: 1rem;
}

h1 {
 font-size: 2.5rem; /* 40px */
}

h2 {
 font-size: 2rem; /* 32px */
 text-align: center;
 margin-bottom: 2rem;
}

h3 {
 font-size: 1.5rem; /* 24px */
}

p {
 margin-bottom: 1rem;
}

a {
 color: var(--primary-color);
 text-decoration: none;
 transition: color var(--transition-speed);
}

a:hover {
 color: var(--accent-color);
}

ul {
 list-style: none;
}

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

.section {
 padding: 4rem 0;
 position: relative;
 overflow: hidden;
}

.section-subtitle {
 text-align: center;
 font-size: 1.1rem;
 color: #666;
 margin-bottom: 3rem;
 max-width: 700px;
 margin-left: auto;
 margin-right: auto;
}

.bg-light-primary {
 background-color: var(--bg-color-light);
}

.text-center {
 text-align: center;
}

.mt-4 {
 margin-top: 2rem !important;
}

/* Buttons */
.btn {
 display: inline-block;
 padding: 0.8rem 1.8rem;
 border-radius: 0.375rem; /* 6px */
 font-weight: 600;
 text-align: center;
 cursor: pointer;
 transition: background-color var(--transition-speed), color var(--transition-speed), border-color var(--transition-speed), transform 0.1s ease-out;
 border: 2px solid transparent;
 font-size: 0.95rem;
}

.btn-primary {
 background-color: var(--primary-color);
 color: var(--text-color-light);
 border-color: var(--primary-color);
}

.btn-primary:hover {
 background-color: #0c4d70; /* slightly darker primary */
 transform: translateY(-2px);
}

.btn-secondary {
 background-color: transparent;
 color: var(--primary-color);
 border-color: var(--primary-color);
}

.btn-secondary:hover {
 background-color: var(--primary-color);
 color: var(--text-color-light);
 transform: translateY(-2px);
}

.btn-large {
 padding: 1rem 2.5rem;
 font-size: 1.1rem;
}

/* Header */
.header {
 background-color: var(--bg-color-white);
 padding: 1rem 0;
 box-shadow: var(--shadow-light);
 position: sticky;
 top: 0;
 z-index: 1000;
}

.header .container {
 display: flex;
 justify-content: space-between;
 align-items: center;
}

.header .logo {
 font-size: 1.8rem;
 font-weight: 700;
 color: var(--primary-color);
}

.nav-links {
 display: flex;
 gap: 2rem;
}

.nav-links li a {
 font-weight: 500;
 color: var(--text-color-dark);
 position: relative;
 padding: 0.25rem 0;
}

.nav-links li a::after {
 content: '';
 position: absolute;
 left: 0;
 bottom: 0;
 width: 0;
 height: 2px;
 background-color: var(--primary-color);
 transition: width var(--transition-speed);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
 width: 100%;
}

.nav-toggle {
 display: none;
 flex-direction: column;
 justify-content: space-between;
 width: 30px;
 height: 20px;
 background: transparent;
 border: none;
 cursor: pointer;
 padding: 0;
}

.nav-toggle span {
 display: block;
 width: 100%;
 height: 3px;
 background-color: var(--primary-color);
 border-radius: 2px;
 transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
 position: relative;
 color: var(--text-color-light);
 text-align: center;
 padding: 10rem 0;
 background-image: url('https://images.pexels.com/photos/1036641/pexels-photo-1036641.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940');
 background-size: cover;
 background-position: center;
 display: flex;
 align-items: center;
 justify-content: center;
 min-height: 70vh;
}

.hero-overlay {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: rgba(0, 0, 0, 0.4);
 z-index: 1;
}

.hero-content {
 position: relative;
 z-index: 2;
 max-width: 800px;
}

.hero h1 {
 font-size: 3.5rem;
 margin-bottom: 1.5rem;
 text-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.hero p {
 font-size: 1.25rem;
 margin-bottom: 2.5rem;
 text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hero-buttons {
 display: flex;
 justify-content: center;
 gap: 1.5rem;
}

.hero .btn {
 font-size: 1.1rem;
 padding: 1rem 2.5rem;
}

.hero .btn-secondary {
 color: var(--text-color-light);
 border-color: var(--text-color-light);
}
.hero .btn-secondary:hover {
 background-color: var(--text-color-light);
 color: var(--primary-color);
}

/* Features Section */
.features .feature-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 2rem;
}

.feature-item {
 background-color: var(--bg-color-white);
 padding: 2rem;
 border-radius: 0.5rem;
 box-shadow: var(--shadow-light);
 text-align: center;
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.feature-item:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow-hover);
}

.feature-icon {
 width: 60px;
 height: 60px;
 margin: 0 auto 1.5rem;
 background-color: var(--accent-color);
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--primary-color);
 font-size: 1.8rem;
 border: 2px solid var(--primary-color);
}
.feature-icon svg {
 width: 30px;
 height: 30px;
 stroke-width: 2.5px;
}

.feature-item h3 {
 font-size: 1.3rem;
 margin-bottom: 0.8rem;
}

/* Services Preview */
.service-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 2rem;
}

.service-card {
 background-color: var(--bg-color-white);
 border-radius: 0.5rem;
 box-shadow: var(--shadow-light);
 overflow: hidden;
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
 display: flex;
 flex-direction: column;
}
.service-card:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow-hover);
}

.service-card img {
 height: 200px;
 object-fit: cover;
 width: 100%;
}

.service-card h3 {
 font-size: 1.4rem;
 margin: 1.5rem 1.5rem 0.5rem;
}

.service-card p {
 padding: 0 1.5rem 1rem;
 color: #555;
 flex-grow: 1;
}

.service-card .read-more {
 display: inline-block;
 padding: 0 1.5rem 1.5rem;
 font-weight: 600;
}

/* About Preview */
.about-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 3rem;
 align-items: center;
}

.about-grid .about-image {
 order: 2; /* Image on right */
}
.about-grid .about-content {
 order: 1; /* Text on left */
}
.about-grid .about-image img {
 border-radius: 0.5rem;
 box-shadow: var(--shadow-light);
}

.about-preview h2 {
 text-align: left;
 margin-bottom: 1.5rem;
}
.about-preview p {
 margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
 background-color: var(--bg-color-white);
}
.testimonials-slider {
 position: relative;
 overflow: hidden;
 margin-bottom: 2rem;
}

.testimonial-item {
 display: flex;
 flex-direction: column;
 align-items: center;
 text-align: center;
 padding: 2rem;
 background-color: var(--bg-color-light);
 border-radius: 0.5rem;
 box-shadow: var(--shadow-light);
 margin: 0 1rem; /* Space between cards */
 min-height: 320px; /* Ensure consistent height for cards */
}

.testimonial-avatar {
 width: 90px;
 height: 90px;
 border-radius: 50%;
 object-fit: cover;
 margin-bottom: 1.5rem;
 border: 3px solid var(--primary-color);
}

.testimonial-text {
 font-size: 1.15rem;
 font-style: italic;
 color: #444;
 margin-bottom: 1.2rem;
 flex-grow: 1;
}

.testimonial-author {
 font-weight: 600;
 color: var(--primary-color);
}

.slider-nav {
 display: flex;
 justify-content: center;
 align-items: center;
 margin-top: 1.5rem;
}

.slider-nav button {
 background-color: var(--primary-color);
 color: var(--text-color-light);
 border: none;
 padding: 0.5rem 1rem;
 border-radius: 0.375rem;
 cursor: pointer;
 font-size: 1.5rem;
 transition: background-color var(--transition-speed);
}
.slider-nav button:hover {
 background-color: var(--accent-color);
}

.dots-container {
 display: flex;
 gap: 0.5rem;
 margin: 0 1rem;
}

.dot {
 width: 10px;
 height: 10px;
 border-radius: 50%;
 background-color: #ccc;
 cursor: pointer;
 transition: background-color var(--transition-speed);
}
.dot.active {
 background-color: var(--primary-color);
}

/* Blog Preview */
.blog-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 2rem;
}

.blog-card {
 background-color: var(--bg-color-white);
 border-radius: 0.5rem;
 box-shadow: var(--shadow-light);
 overflow: hidden;
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
 display: flex;
 flex-direction: column;
}
.blog-card:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow-hover);
}

.blog-card img {
 height: 200px;
 object-fit: cover;
 width: 100%;
}

.blog-card h3 {
 font-size: 1.4rem;
 margin: 1.5rem 1.5rem 0.5rem;
}
.blog-card h3 a {
 color: var(--text-color-dark);
}
.blog-card h3 a:hover {
 color: var(--primary-color);
}

.blog-card p {
 padding: 0 1.5rem 1rem;
 color: #555;
 flex-grow: 1;
}

.blog-card .read-more {
 display: inline-block;
 padding: 0 1.5rem 1.5rem;
 font-weight: 600;
}

/* FAQ Preview (Accordion) */
.accordion {
 max-width: 800px;
 margin: 0 auto;
}

.accordion-item {
 background-color: var(--bg-color-white);
 border: 1px solid var(--border-color);
 border-radius: 0.5rem;
 margin-bottom: 1rem;
 overflow: hidden;
 box-shadow: var(--shadow-light);
}

.accordion-header {
 width: 100%;
 background-color: var(--bg-color-light);
 padding: 1.2rem 1.5rem;
 text-align: left;
 font-size: 1.15rem;
 font-weight: 600;
 color: var(--text-color-dark);
 border: none;
 cursor: pointer;
 display: flex;
 justify-content: space-between;
 align-items: center;
 transition: background-color var(--transition-speed);
}
.accordion-header:hover {
 background-color: #f0f4f8;
 color: var(--primary-color);
}

.accordion-icon {
 display: block;
 width: 20px;
 height: 20px;
 position: relative;
}
.accordion-icon::before,
.accordion-icon::after {
 content: '';
 position: absolute;
 background-color: var(--primary-color);
 transition: transform var(--transition-speed);
}
.accordion-icon::before {
 width: 2px;
 height: 100%;
 left: 9px;
 top: 0;
}
.accordion-icon::after {
 width: 100%;
 height: 2px;
 left: 0;
 top: 9px;
}

.accordion-header[aria-expanded="true"] .accordion-icon::before {
 transform: rotate(90deg);
}
.accordion-header[aria-expanded="true"] .accordion-icon::after {
 transform: rotate(180deg);
}

.accordion-content {
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.4s ease-out, padding 0.4s ease-out;
 padding: 0 1.5rem;
}
.accordion-content p {
 padding-top: 1rem;
 padding-bottom: 1rem;
 margin-bottom: 0;
}

/* Call to Action Banner */
.cta-banner {
 background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
 color: var(--text-color-light);
 padding: 5rem 0;
}

.cta-banner h2 {
 color: var(--text-color-light);
 font-size: 2.2rem;
 margin-bottom: 1rem;
}

.cta-banner p {
 font-size: 1.1rem;
 max-width: 700px;
 margin: 0 auto 2rem;
}

.cta-banner .btn-primary {
 background-color: var(--text-color-light);
 color: var(--primary-color);
 border-color: var(--text-color-light);
}

.cta-banner .btn-primary:hover {
 background-color: var(--accent-color);
 color: var(--text-color-light);
 border-color: var(--accent-color);
}

/* All Pages - Main Content Padding Adjust */
main {
 padding-top: 0; /* Header is sticky, no need for main to push down */
}

/* Footer */
.footer {
 background-color: var(--bg-color-dark-footer);
 color: var(--text-color-light);
 padding: 3rem 0 1rem;
 font-size: 0.9rem;
}

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

.footer-col h3 {
 color: var(--text-color-light);
 font-size: 1.1rem;
 margin-bottom: 1rem;
 font-weight: 600;
}

.footer-col a {
 color: var(--text-color-light);
 display: block;
 margin-bottom: 0.6rem;
 transition: color var(--transition-speed);
}

.footer-col a:hover {
 color: var(--accent-color);
}

.footer-col p, .footer-col address {
 margin-bottom: 0.6rem;
 color: #ccc;
}

.footer-bottom {
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 padding-top: 1rem;
 text-align: center;
 color: #aaa;
}

/* Specific to Contact page */
.contact-grid {
 display: grid;
 grid-template-columns: 2fr 1fr;
 gap: 3rem;
}

.contact-form label {
 display: block;
 margin-bottom: 0.5rem;
 font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
 width: 100%;
 padding: 0.8rem;
 margin-bottom: 1.5rem;
 border: 1px solid var(--border-color);
 border-radius: 0.375rem;
 font-family: 'Poppins', sans-serif;
 font-size: 1rem;
 transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
 outline: none;
}

.contact-form textarea {
 min-height: 120px;
 resize: vertical;
}

.contact-info ul {
 list-style: none;
 padding: 0;
}

.contact-info li {
 display: flex;
 align-items: flex-start;
 margin-bottom: 1.5rem;
}

.contact-info li svg {
 margin-right: 1rem;
 color: var(--primary-color);
 min-width: 24px;
}

.contact-info li p, .contact-info li a {
 margin: 0;
 font-size: 1.05rem;
 color: var(--text-color-dark);
}

.contact-map {
 margin-top: 2rem;
 border-radius: 0.5rem;
 overflow: hidden;
 box-shadow: var(--shadow-light);
}
.contact-map iframe {
 width: 100%;
 height: 400px;
 border: 0;
}

/* Services Page specific */
.service-detail-section {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 3rem;
 align-items: center;
 margin-bottom: 4rem;
}
.service-detail-section:nth-of-type(odd) .service-detail-image {
 order: 2;
}
.service-detail-section:nth-of-type(odd) .service-detail-content {
 order: 1;
}

.service-detail-image img {
 border-radius: 0.5rem;
 box-shadow: var(--shadow-light);
}

.service-detail-content h3 {
 font-size: 2rem;
 margin-bottom: 1rem;
 text-align: left;
}
.service-detail-content ul {
 list-style-type: disc;
 margin-left: 1.2rem;
 margin-bottom: 1.5rem;
}
.service-detail-content ul li {
 margin-bottom: 0.5rem;
 color: #444;
}

/* About Page specific */
.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 2rem;
 margin-top: 3rem;
}

.team-member-card {
 background-color: var(--bg-color-white);
 border-radius: 0.5rem;
 box-shadow: var(--shadow-light);
 overflow: hidden;
 text-align: center;
 padding: 2rem;
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.team-member-card:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow-hover);
}

.team-member-card img {
 width: 150px;
 height: 150px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 1.5rem;
 border: 3px solid var(--primary-color);
}

.team-member-card h4 {
 font-size: 1.3rem;
 margin-bottom: 0.5rem;
}

.team-member-card p {
 color: #666;
 font-size: 0.95rem;
 margin-bottom: 0.5rem;
}

/* Blog List and Post */
.blog-list {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 2rem;
}

.blog-post-header {
 text-align: center;
 margin-bottom: 3rem;
}
.blog-post-header h1 {
 font-size: 2.5rem;
}
.blog-post-meta {
 font-size: 0.95rem;
 color: #777;
 margin-bottom: 1.5rem;
}
.blog-post-meta span {
 margin-right: 1.5rem;
}
.blog-post-content img {
 border-radius: 0.5rem;
 margin-bottom: 2rem;
 box-shadow: var(--shadow-light);
}
.blog-post-content h2,
.blog-post-content h3 {
 margin-top: 2rem;
 margin-bottom: 1rem;
}
.blog-post-content p {
 margin-bottom: 1.5rem;
}
.blog-post-content ul,
.blog-post-content ol {
 margin-left: 1.5rem;
 margin-bottom: 1.5rem;
 list-style-position: inside;
}
.blog-post-content ul li,
.blog-post-content ol li {
 margin-bottom: 0.5rem;
}

.author-box {
 display: flex;
 align-items: center;
 gap: 1.5rem;
 margin-top: 3rem;
 padding: 1.5rem;
 background-color: var(--bg-color-light);
 border-radius: 0.5rem;
 box-shadow: var(--shadow-light);
}
.author-box img {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0;
 border: 2px solid var(--primary-color)
}
.author-info h4 {
 margin: 0 0 0.5rem;
 font-size: 1.2rem;
}
.author-info p {
 margin: 0;
 font-size: 0.9rem;
 color: #666;
}

.related-posts {
 margin-top: 4rem;
 border-top: 1px solid var(--border-color);
 padding-top: 3rem;
}
.related-posts h3 {
 text-align: center;
 margin-bottom: 2rem;
}

/* Gallery page */
.gallery-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 1rem;
}
.gallery-item {
 cursor: pointer;
 overflow: hidden;
 border-radius: 0.5rem;
 box-shadow: var(--shadow-light);
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.gallery-item:hover {
 transform: scale(1.03);
 box-shadow: var(--shadow-hover);
}
.gallery-item img {
 width: 100%;
 height: 250px;
 object-fit: cover;
 display: block;
}

.lightbox {
 display: none;
 position: fixed;
 z-index: 2000;
 left: 0;
 top: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(0, 0, 0, 0.9);
 align-items: center;
 justify-content: center;
 padding: 2rem;
}

.lightbox-content {
 max-width: 90%;
 max-height: 90%;
 object-fit: contain;
 border-radius: 0.5rem;
 box-shadow: var(--shadow-hover);
}

.lightbox-close {
 position: absolute;
 top: 20px;
 right: 30px;
 color: #fff;
 font-size: 3rem;
 font-weight: bold;
 cursor: pointer;
}
.lightbox-close:hover {
 color: var(--primary-color);
}

/* Legal pages */
.legal-content h1 {
 font-size: 2.2rem;
 margin-bottom: 1.5rem;
}
.legal-content h2 {
 font-size: 1.8rem;
 text-align: left;
 margin-top: 2.5rem;
 margin-bottom: 1rem;
}
.legal-content h3 {
 font-size: 1.4rem;
 margin-top: 1.8rem;
 margin-bottom: 0.8rem;
}
.legal-content p {
 margin-bottom: 1rem;
}
.legal-content ul, .legal-content ol {
 margin-bottom: 1rem;
 margin-left: 1.5rem;
}
.legal-content ol {
 list-style-type: decimal;
}
.legal-content ul {
 list-style-type: disc;
}
.legal-content li {
 margin-bottom: 0.5rem;
}

/* Thanks page and 404 */
.status-page {
 min-height: 60vh;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 text-align: center;
 padding: 3rem 0;
}
.status-page h1 {
 font-size: 3rem;
 color: var(--primary-color);
 margin-bottom: 1rem;
}
.status-page p {
 font-size: 1.2rem;
 margin-bottom: 2rem;
 max-width: 600px;
}
.status-page .btn-primary {
 margin-top: 1rem;
}

/* Media Queries */
@media (max-width: 768px) {
 .nav-links {
 position: fixed;
 right: -100%;
 top: 0; /* Changed from 0 to var(--header-height) to account for sticky header */
 width: 70%;
 height: 100vh;
 background-color: var(--bg-color-dark-footer);
 flex-direction: column;
 justify-content: flex-start;
 padding-top: 6rem; /* Add padding for visual spacing from top */
 box-shadow: -2px 0 10px rgba(0,0,0,0.2);
 transition: right var(--transition-speed);
 z-index: 999;
 }

 .nav-links.active {
 right: 0;
 }

 .nav-links li {
 width: 100%;
 text-align: center;
 margin-bottom: 1.5rem;
 }
 .nav-links li:last-child {
 margin-bottom: 0;
 }

 .nav-links li a {
 color: var(--text-color-light);
 font-size: 1.2rem;
 padding: 0.5rem 0;
 display: block;
 }
 .nav-links li a::after {
 background-color: var(--accent-color);
 }

 .nav-toggle {
 display: flex;
 }

 .hero {
 padding: 8rem 0;
 min-height: 60vh;
 }
 .hero h1 {
 font-size: 2.8rem;
 }
 .hero p {
 font-size: 1rem;
 }
 .hero-buttons {
 flex-direction: column;
 gap: 1rem;
 }
 .hero .btn {
 width: 80%;
 margin: 0 auto;
 }

 h1 {
 font-size: 2rem;
 }
 h2 {
 font-size: 1.7rem;
 }
 h3 {
 font-size: 1.3rem;
 }

 .about-grid, .service-detail-section, .contact-grid {
 grid-template-columns: 1fr;
 }
 .about-grid .about-image, .service-detail-section .service-detail-image {
 order: initial; /* Reset order for mobile */
 }
 .about-preview h2, .service-detail-content h3 {
 text-align: center;
 }

 .footer-grid {
 grid-template-columns: repeat(2, 1fr);
 }
 .footer-col:first-child {
 grid-column: span 2;
 text-align: center;
 }
 .footer-col:last-child {
 grid-column: span 2;
 text-align: center;
 }
 .footer-col:last-child p, .footer-col:last-child address {
 display: inline-block;
 }
 .footer-col:last-child li {
 justify-content: center;
 }

 .contact-info li {
 justify-content: center;
 }
 .contact-info li svg {
 margin-right: 0.5rem;
 }

 /* Testimonial slider for smaller screens */
 .testimonial-item {
 margin: 0 0.5rem;
 }
}

@media (max-width: 480px) {
 .container {
 padding: 0 1rem;
 }
 .header .logo {
 font-size: 1.5rem;
 }
 .hero h1 {
 font-size: 2.2rem;
 }
 .hero p {
 font-size: 0.95rem;
 }
 .hero .btn {
 width: 100%;
 padding: 0.8rem 1.5rem;
 font-size: 1rem;
 }
 h2 {
 font-size: 1.5rem;
 }
 .section {
 padding: 3rem 0;
 }
 .footer-grid {
 grid-template-columns: 1fr;
 }
 .footer-col {
 text-align: center;
 }
 .footer-col ul {
 padding: 0;
 }
 .footer-col li {
 display: inline-block;
 margin: 0 0.5rem 0.5rem;
 }
 .footer-col:first-child, .footer-col:last-child {
 grid-column: span 1;
 }
 .footer-col:first-child p, .footer-col:last-child p, .footer-col:last-child address {
 text-align: center;
 }
 .footer-col a {
 display: inline;
 }

 .accordion-header {
 font-size: 1rem;
 padding: 1rem;
 }
 .testimonial-text {
 font-size: 1rem;
 }
 .testimonial-item {
 min-height: 300px;
 }
}
/* For mobile menu animation */
.nav-toggle.open span:nth-child(1) {
 transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
 opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
 transform: translateY(-8px) rotate(-45deg);
}

/* Scroll reveal animations */
.hidden {
 opacity: 0;
 transform: translateY(20px);
}

.visible {
 opacity: 1;
 transform: translateY(0);
 transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
/* Styles for blog-post pages */
.blog-post-container {
 max-width: 800px;
 margin: 2rem auto;
 background-color: var(--bg-color-white);
 padding: 2rem;
 border-radius: 0.5rem;
 box-shadow: var(--shadow-light);
}

/* Styles for legal pages */
.legal-container {
 max-width: 900px;
 margin: 2rem auto;
 background-color: var(--bg-color-white);
 padding: 2rem;
 border-radius: 0.5rem;
 box-shadow: var(--shadow-light);
}
/* Ensure header height is defined for accurate mobile menu positioning */
header {
 --header-height: 70px; /* Approximate header height */
 height: var(--header-height);
 display: flex;
 align-items: center;
}
@media (max-width: 768px) {
 .nav-links {
 top: var(--header-height); /* Align mobile menu right below header */
 height: calc(100vh - var(--header-height));
 }
}
/* Style current active page link */
.nav-links li a.current-page::after {
 width: 100%;
}