:root {
 --primary-color: #0d4f8b; /* Deep Blue */
 --secondary-color: #0891b2; /* Tech Cyan */
 --accent-color: #4a5568; /* Steel Gray */
 --light-bg: #f8fafd;
 --dark-bg: #2d3748;
 --text-color-dark: #333;
 --text-color-light: #fefefe;
 --border-color: #e2e8f0;
 --hover-effect: translateY(-3px);
 --transition-speed: 0.3s ease;
 --max-width: 1200px;
}

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

html {
 scroll-behavior: smooth;
 font-size: 16px;
}

body {
 font-family: 'Roboto', sans-serif;
 line-height: 1.6;
 color: var(--text-color-dark);
 background-color: #fff;
 min-height: 100vh;
 display: flex;
 flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
 font-family: 'Montserrat', sans-serif;
 line-height: 1.2;
 margin-bottom: 0.8em;
 color: var(--primary-color);
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }
h5 { font-size: 1.2em; }
h6 { font-size: 1em; }

p {
 margin-bottom: 1em;
}

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

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

ul {
 list-style: none;
}

img {
 max-width: 100%;
 height: auto;
 display: block;
 border-radius: 8px;
}

.container {
 max-width: var(--max-width);
 margin: 0 auto;
 padding: 1rem 1.5rem;
}

.section-spacing {
 padding: 4rem 0;
}

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

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

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
 color: var(--text-color-light);
}

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

.section-description {
 max-width: 800px;
 margin: 0 auto 2.5rem auto;
 font-size: 1.1em;
 color: var(--accent-color);
}

.underline-title {
 display: block;
 width: 60px;
 height: 4px;
 background-color: var(--secondary-color);
 margin: -0.5em auto 2rem auto;
 border-radius: 2px;
}

/* Buttons */
.btn {
 display: inline-block;
 padding: 0.8rem 1.8rem;
 border-radius: 5px;
 font-weight: 600;
 text-align: center;
 transition: all var(--transition-speed);
 white-space: nowrap;
}

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

.btn-primary:hover {
 background-color: darken(var(--primary-color), 10%);
 border-color: darken(var(--primary-color), 10%);
 transform: var(--hover-effect);
 color: var(--text-color-light);
}

.btn-secondary {
 background-color: var(--secondary-color);
 color: var(--text-color-light);
 border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
 background-color: darken(var(--secondary-color), 10%);
 border-color: darken(var(--secondary-color), 10%);
 transform: var(--hover-effect);
 color: var(--text-color-light);
}

.btn-outline {
 background-color: transparent;
 color: var(--primary-color);
 border: 2px solid var(--primary-color);
}

.btn-outline:hover {
 background-color: var(--primary-color);
 color: var(--text-color-light);
 transform: var(--hover-effect);
}

/* Header */
.main-header {
 background-color: var(--primary-color);
 padding: 1rem 0;
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
 position: sticky;
 top: 0;
 z-index: 1000;
 transition: background-color var(--transition-speed), padding var(--transition-speed);
}

.main-header.scrolled {
 background-color: rgba(13, 79, 139, 0.95);
 padding: 0.7rem 0;
}

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

.main-header .logo {
 font-family: 'Montserrat', sans-serif;
 font-size: 1.8em;
 font-weight: 700;
 color: var(--text-color-light);
 margin-right: auto; /* Push nav to right */
}

.main-header .nav-links {
 display: flex;
 gap: 2.5rem;
}

.main-header .nav-links a {
 color: var(--text-color-light);
 font-weight: 500;
 transition: color var(--transition-speed), transform var(--transition-speed);
 position: relative;
 padding: 0.5rem 0;
}

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

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

.main-header .nav-links a:hover {
 color: var(--secondary-color);
}

.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
 padding: 0.5rem;
 z-index: 1001;
}

.nav-toggle span {
 display: block;
 width: 25px;
 height: 3px;
 background-color: var(--text-color-light);
 margin: 5px 0;
 transition: all var(--transition-speed);
}

/* Hero Section */
.hero-section {
 position: relative;
 overflow: hidden;
 color: var(--text-color-light);
 padding: 6rem 0;
 display: flex;
 align-items: center;
 min-height: 70vh;
}

.hero-section::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: rgba(0, 0, 0, 0.6); /* Overlay */
 z-index: 1;
}

.hero-image {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 object-fit: cover;
 z-index: 0;
}

.hero-content {
 position: relative;
 z-index: 2;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 text-align: center;
}

.hero-content h1 {
 font-size: 3.5em;
 margin-bottom: 0.5em;
 color: var(--text-color-light);
 max-width: 900px;
}

.hero-content p {
 font-size: 1.3em;
 margin-bottom: 2em;
 color: rgba(255, 255, 255, 0.9);
 max-width: 800px;
}

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

/* Grid Layouts */
.grid-2-cols {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 3rem;
 align-items: flex-start;
}

.grid-3-cols {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 2rem;
}

.grid-4-cols {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 2rem;
}

/* Card Styles */
.feature-card, .service-card, .blog-card, .testimonial-card, .team-card {
 background-color: #fff;
 border-radius: 12px;
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
 padding: 1.5rem;
 text-align: center;
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
 display: flex;
 flex-direction: column;
 justify-content: space-between;
}

.feature-card:hover, .service-card:hover, .blog-card:hover, .team-card:hover {
 transform: var(--hover-effect);
 box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.feature-card img, .service-card img, .blog-card img, .team-card img {
 margin: 0 auto 1.5rem auto;
 width: 100%;
 height: 200px; /* Fixed height for consistency */
 object-fit: cover;
 border-radius: 8px;
}

.feature-card h3, .service-card h3, .blog-card h3, .team-card h3 {
 margin-bottom: 0.7em;
 color: var(--primary-color);
}

.feature-card p, .service-card p, .blog-card p {
 font-size: 0.95em;
 color: var(--accent-color);
 flex-grow: 1; /* Allow content to push button down */
}

.blog-card a.read-more {
 font-weight: 500;
 margin-top: 1rem;
 display: inline-block;
}

.blog-content {
 max-width: 800px;
 margin: 0 auto;
 background-color: #fff;
 padding: 2rem;
 border-radius: 12px;
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.blog-content h1 {
 font-size: 2.5em;
 color: var(--primary-color);
}

.post-meta {
 font-size: 0.9em;
 color: var(--accent-color);
 margin-bottom: 2rem;
 display: flex;
 align-items: center;
 gap: 1rem;
}

.author-info {
 display: flex;
 align-items: center;
 gap: 10px;
 margin-top: 2rem;
 padding-top: 1.5rem;
 border-top: 1px solid var(--border-color);
}

.author-info img {
 width: 60px;
 height: 60px;
 border-radius: 50%;
 object-fit: cover;
}

.author-details p {
 margin: 0;
 font-weight: 500;
}

.author-details span {
 font-size: 0.85em;
 color: var(--accent-color);
}

.related-posts {
 margin-top: 3rem;
 padding-top: 2rem;
 border-top: 1px solid var(--border-color);
}

.related-posts h3 {
 margin-bottom: 1.5rem;
}

.related-posts ul {
 list-style: disc;
 padding-left: 20px;
}

.related-posts li {
 margin-bottom: 0.5rem;
}

.related-posts a {
 color: var(--primary-color);
 font-weight: 500;
}

/* Testimonials */
.testimonial-card {
 background-color: var(--primary-color);
 color: var(--text-color-light);
 padding: 2rem;
 border-radius: 12px;
 text-align: center;
 position: relative;
 overflow: hidden;
}

.testimonial-card::before {
 content: "“";
 font-family: serif;
 font-size: 8em;
 color: rgba(255, 255, 255, 0.1);
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 line-height: 1;
 z-index: 0;
}

.testimonial-card img {
 width: 90px;
 height: 90px;
 border-radius: 50%;
 object-fit: cover;
 margin-bottom: 1.5rem;
 border: 4px solid var(--secondary-color);
 z-index: 1;
 position: relative;
}

.testimonial-card p {
 font-style: italic;
 margin-bottom: 1rem;
 font-size: 1.1em;
 z-index: 1;
 position: relative;
 color: rgba(255, 255, 255, 0.9);
}

.testimonial-card h4 {
 margin-bottom: 0.2rem;
 color: var(--secondary-color);
 z-index: 1;
 position: relative;
}

.testimonial-card span {
 display: block;
 font-size: 0.9em;
 color: rgba(255, 255, 255, 0.7);
 z-index: 1;
 position: relative;
}

/* About Page Specific */
.about-intro-grid {
 align-items: center;
 gap: 4rem;
}

.about-intro-grid img {
 border-radius: 8px;
 box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.values-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 2rem;
}

.value-item {
 background-color: #fff;
 padding: 2rem;
 border-radius: 12px;
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
 text-align: center;
 border-top: 4px solid var(--secondary-color);
}

.value-item h3 {
 color: var(--primary-color);
 margin-bottom: 0.5rem;
}

.value-item p {
 font-size: 0.95em;
 color: var(--accent-color);
}

.team-members-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 2.5rem;
}

.team-card {
 padding: 1.5rem;
}

.team-card img {
 border-radius: 50%;
 width: 150px;
 height: 150px;
 object-fit: cover;
 margin-bottom: 1rem;
 border: 3px solid var(--secondary-color);
}

.team-card h3 {
 margin-bottom: 0.2em;
}

.team-card span {
 display: block;
 font-style: italic;
 color: var(--accent-color);
 margin-bottom: 1rem;
}

/* Services Page Specific */
.service-process {
 display: flex;
 flex-wrap: wrap;
 justify-content: space-between;
 margin-top: 3rem;
}

.process-step {
 flex-basis: calc(33% - 2rem);
 padding: 1.5rem;
 background-color: #fff;
 border-radius: 12px;
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
 text-align: center;
 margin-bottom: 2rem;
 min-width: 280px;
}

.process-step .step-number {
 font-size: 2.5em;
 font-weight: 700;
 color: var(--secondary-color);
 margin-bottom: 0.5rem;
}

.process-step h4 {
 color: var(--primary-color);
 margin-bottom: 0.8rem;
}

/* Contact Form */
.contact-form-section {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 3rem;
 align-items: start;
}

.contact-info {
 padding: 1.5rem;
 background-color: var(--light-bg);
 border-radius: 12px;
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
 color: var(--primary-color);
 margin-bottom: 1.5rem;
}

.contact-info p {
 display: flex;
 align-items: center;
 gap: 10px;
 margin-bottom: 1rem;
}

.contact-info p strong {
 color: var(--primary-color);
}

.contact-info iframe {
 width: 100%;
 height: 300px;
 border: 0;
 border-radius: 8px;
 margin-top: 1.5rem;
}

.contact-form {
 background-color: #fff;
 padding: 2rem;
 border-radius: 12px;
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-form label {
 display: block;
 margin-bottom: 0.5rem;
 font-weight: 600;
 color: var(--primary-color);
}

.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: 8px;
 font-family: 'Roboto', sans-serif;
 font-size: 1em;
 transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus {
 border-color: var(--secondary-color);
 box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.2);
 outline: none;
}

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

.contact-form button {
 width: auto;
 border: none;
 cursor: pointer;
 font-size: 1.1em;
}

/* Gallery Specific */
.gallery-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 1.5rem;
}

.gallery-item {
 cursor: pointer;
 overflow: hidden;
 border-radius: 8px;
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
 position: relative;
}

.gallery-item img {
 width: 100%;
 height: 250px;
 object-fit: cover;
 transition: transform 0.4s ease;
}

.gallery-item:hover img {
 transform: scale(1.05);
}

.gallery-item .overlay {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: rgba(0, 77, 128, 0.6);
 display: flex;
 justify-content: center;
 align-items: center;
 opacity: 0;
 transition: opacity 0.4s ease;
 border-radius: 8px;
}

.gallery-item:hover .overlay {
 opacity: 1;
}

.gallery-item .overlay span {
 color: white;
 font-size: 1.5em;
 font-weight: 600;
 text-align: center;
 padding: 10px;
}

/* Lightbox styles (optional, can be implemented with JS) */
.lightbox {
 display: none;
 position: fixed;
 z-index: 10000;
 left: 0;
 top: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(0, 0, 0, 0.8);
 justify-content: center;
 align-items: center;
}

.lightbox-content {
 max-width: 90%;
 max-height: 90%;
 position: relative;
 display: flex;
 justify-content: center;
 align-items: center;
}

.lightbox-content img {
 max-width: 100%;
 max-height: 100%;
 object-fit: contain;
 border-radius: 8px;
}

.lightbox-close {
 position: absolute;
 top: 15px;
 right: 35px;
 color: #fff;
 font-size: 40px;
 font-weight: bold;
 transition: 0.3s;
 cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
 color: var(--secondary-color);
 text-decoration: none;
 cursor: pointer;
}

/* FAQ Accordion */
.accordion {
 max-width: 800px;
 margin: 2rem auto;
}

.accordion-item {
 border: 1px solid var(--border-color);
 border-radius: 8px;
 margin-bottom: 1rem;
 overflow: hidden;
 background-color: #fff;
}

.accordion-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 width: 100%;
 padding: 1rem 1.5rem;
 background-color: #fff;
 color: var(--primary-color);
 font-size: 1.1em;
 font-weight: 600;
 border: none;
 cursor: pointer;
 text-align: left;
 transition: background-color var(--transition-speed);
}

.accordion-header:hover {
 background-color: var(--light-bg);
}

.accordion-icon {
 font-size: 1.5em;
 transition: transform var(--transition-speed);
 color: var(--secondary-color);
}

.accordion-header.active .accordion-icon {
 transform: rotate(45deg);
}

.accordion-content {
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.4s ease-out;
 padding: 0 1.5rem;
}

.accordion-content p {
 padding-bottom: 1.5rem;
 border-top: 1px solid var(--border-color);
 padding-top: 1rem;
 color: var(--accent-color);
}

/* Footer */
.main-footer {
 background-color: var(--primary-color);
 color: var(--text-color-light);
 padding: 3.5rem 0 1.5rem 0;
 margin-top: auto; /* Push footer to bottom */
}

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

.footer-col h4 {
 color: var(--secondary-color);
 margin-bottom: 1.5rem;
 font-size: 1.2em;
}

.footer-col p, .footer-col ul li {
 font-size: 0.95em;
 margin-bottom: 0.75rem;
 color: rgba(255, 255, 255, 0.8);
}

.footer-col a {
 color: rgba(255, 255, 255, 0.8);
}

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

.footer-logo {
 font-family: 'Montserrat', sans-serif;
 font-size: 1.8em;
 font-weight: 700;
 color: var(--text-color-light);
 display: block;
 margin-bottom: 1rem;
}

.footer-col.company-info p {
 max-width: 300px;
}

.social-links {
 margin-top: 1rem;
 display: flex;
 gap: 1rem;
}

.social-links a img {
 transition: transform var(--transition-speed);
}

.social-links a:hover img {
 transform: scale(1.1);
}

.footer-bottom {
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 padding-top: 1.5rem;
 text-align: center;
 font-size: 0.9em;
 color: rgba(255, 255, 255, 0.7);
}

/* Scroll Animations */
.fade-in {
 opacity: 0;
 transform: translateY(20px);
 transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
 opacity: 1;
 transform: translateY(0);
}

/* 404 Page */
.error-page {
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 min-height: 70vh;
 text-align: center;
 padding: 2rem;
}

.error-page h1 {
 font-size: 6em;
 margin-bottom: 0.2em;
 color: var(--primary-color);
}

.error-page h2 {
 font-size: 2.5em;
 color: var(--accent-color);
 margin-bottom: 1em;
}

.error-page p {
 font-size: 1.2em;
 margin-bottom: 2em;
 max-width: 600px;
 color: var(--text-color-dark);
}

.error-page .btn {
 font-size: 1em;
}

/* Thank You Page */
.thank-you-page {
 text-align: center;
 padding: 6rem 1.5rem;
 min-height: 70vh;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
}

.thank-you-page h1 {
 color: var(--primary-color);
 font-size: 3em;
 margin-bottom: 0.5em;
}

.thank-you-page p {
 font-size: 1.2em;
 color: var(--accent-color);
 margin-bottom: 1.5em;
 max-width: 600px;
}

/* Media Queries - Responsive Design */
@media (max-width: 1024px) {
 .main-header .nav-links {
 gap: 1.5rem;
 }
 .hero-content h1 {
 font-size: 3em;
 }
 h1 { font-size: 2.5em; }
 h2 { font-size: 2em; }
 h3 { font-size: 1.6em; }
}

@media (max-width: 768px) {
 .main-header .nav-toggle {
 display: block;
 }
 .main-header .nav-links {
 position: fixed;
 top: 0;
 right: -100%;
 width: 70%;
 height: 100%;
 background-color: var(--primary-color);
 flex-direction: column;
 padding: 4rem 2rem;
 box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
 transition: right var(--transition-speed);
 z-index: 999;
 transform: translateX(0); /* Ensure no translateX conflict */
 }

 .main-header .nav-links.active {
 right: 0;
 visibility: visible;
 }

 .main-header .nav-links li {
 width: 100%;
 margin-bottom: 1rem;
 }

 .main-header .nav-links a {
 display: block;
 width: 100%;
 padding: 0.8rem 0;
 text-align: center;
 font-size: 1.2em;
 border-bottom: 1px solid rgba(255, 255, 255, 0.1);
 }
 .main-header .nav-links a::after {
 display: none; /* Hide underline on mobile */
 }

 .nav-toggle.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
 .nav-toggle.active span:nth-child(2) { opacity: 0; }
 .nav-toggle.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

 .hero-section {
 padding: 4rem 0;
 min-height: 60vh;
 }

 .hero-content h1 {
 font-size: 2.5em;
 }

 .hero-content p {
 font-size: 1em;
 }

 .section-spacing {
 padding: 3rem 0;
 }

 .grid-2-cols, .grid-3-cols, .grid-4-cols {
 grid-template-columns: 1fr;
 }
 
 .about-intro-grid {
 gap: 2rem;
 }

 .service-process {
 flex-direction: column;
 align-items: center;
 }
 
 .process-step {
 flex-basis: 100%;
 }

 .contact-form-section {
 grid-template-columns: 1fr;
 }

 .testimonial-card, .feature-card, .blog-card, .service-card, .value-item, .team-card {
 padding: 1.2rem;
 }

 .footer-grid {
 grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
 text-align: center;
 }

 .footer-col {
 display: flex;
 flex-direction: column;
 align-items: center;
 }
 .footer-col.company-info {
 grid-column: 1 / -1; /* Full width for company info */
 }
 .footer-col.company-info p {
 text-align: center;
 }
 .social-links {
 justify-content: center;
 }

 .footer-logo {
 margin: 0 auto 1rem auto;
 }

 .error-page h1 {
 font-size: 4em;
 }
 .error-page h2 {
 font-size: 1.8em;
 }
}

@media (max-width: 480px) {
 h1 { font-size: 2em; }
 h2 { font-size: 1.8em; }
 h3 { font-size: 1.4em; }

 .hero-content h1 {
 font-size: 2em;
 }
 .hero-content p {
 font-size: 0.9em;
 }
 .hero-content .btn {
 padding: 0.8rem 1.8rem;
 font-size: 0.9em;
 }

 .section-description {
 font-size: 1em;
 }

 .btn {
 padding: 0.7rem 1.5rem;
 }

 .main-header .nav-links {
 width: 85%; /* Wider on smaller mobiles */
 }
}

/* Utility to hide elements visually but keep for screen readers */
.sr-only {
 position: absolute;
 width: 1px;
 height: 1px;
 padding: 0;
 margin: -1px;
 overflow: hidden;
 clip: rect(0, 0, 0, 0);
 white-space: nowrap;
 border: 0;
}
/* Style for active navigation link */
.nav-links li a.active {
 color: var(--secondary-color);
 font-weight: 700;
}

.nav-links li a.active::after {
 width: 100%;
}
/* Global padding for main content */
main {
 flex-grow: 1;
}
/* For blog posts and other long text content */
.article-content h1, .article-content h2, .article-content h3, .article-content h4 {
 margin-top: 1.5em;
 margin-bottom: 0.8em;
}

.article-content p {
 margin-bottom: 1em;
 line-height: 1.7;
 color: #4a5568;
}

.article-content ul, .article-content ol {
 margin-bottom: 1em;
 padding-left: 20px;
 list-style-position: inside;
}

.article-content ul li {
 list-style-type: disc;
 margin-bottom: 0.5em;
}

.article-content ol li {
 list-style-type: decimal;
 margin-bottom: 0.5em;
}

.article-content strong {
 font-weight: 700;
}

.article-content em {
 font-style: italic;
}
/* Ensuring blog card buttons are consistently styled */
.feature-card .btn,
.service-card .btn {
 margin-top: auto; /* Pushes button to the bottom if content height varies */
}

/* Process steps for smaller screens */
@media (max-width: 768px) {
 .process-step {
 width: 100%; /* Full width on small screens */
 margin-right: 0;
 }
}
/* Ensure the social links are visible on the footer */
.footer-col .social-links a {
 background-color: var(--secondary-color); /* A visible background for icons */
 border-radius: 50%;
 width: 38px;
 height: 38px;
 display: flex;
 justify-content: center;
 align-items: center;
}

.footer-col .social-links a img {
 filter: brightness(0) invert(1); /* Makes placeholder icons white */
 width: 20px;
 height: 20px;
 margin: 0;
}
/* Specific tweaks for blog-post pages to center content */
.blog-post-header {
 text-align: center;
 margin-bottom: 3rem;
}

.blog-post-header h1 {
 font-size: 2.8em;
 line-height: 1.2;
 margin-bottom: 0.5em;
}

.blog-post-header p.post-meta {
 justify-content: center;
}
/* Ensure legal pages' main content is well-formatted */
.legal-content h2 {
 margin-top: 2em;
 margin-bottom: 1em;
}

.legal-content h3 {
 margin-top: 1.5em;
 margin-bottom: 0.8em;
}

.legal-content p, .legal-content ul, .legal-content ol {
 margin-bottom: 1em;
 line-height: 1.7;
 color: var(--accent-color);
}

.legal-content ul, .legal-content ol {
 padding-left: 20px;
}
/* Team members image alignment */
.team-card img {
 margin: 0 auto 1rem auto;
}
/* Adjustments for the header's nav-links when active to allow scrolling main content */
.nav-links.active {
 overflow-y: auto; /* Allow scrolling if many menu items */
}
/* Add some top padding to content section when hero is not present */
body main > section:first-of-type:not(.hero-section) {
 padding-top: 6rem;
}
/* General purpose content wrapper for pages without a hero image */
.content-section {
 padding: 4rem 0;
}

.content-section p {
 max-width: 900px;
 margin-left: auto;
 margin-right: auto;
}
/* Ensure the contact form button looks right */
.contact-form button.btn {
 width: auto; /* Reset to auto width for individual button */
 display: inline-block; /* Ensure padding and margins work */
}
/* Adjustments for blog post author image */
.blog-post .author-info img {
 border-radius: 50%;
 width: 50px;
 height: 50px;
 object-fit: cover;
}
/* For thank you page */
.thank-you-page .icon-large {
 font-size: 5em;
 color: var(--secondary-color);
 margin-bottom: 0.5em;
}
/* Remove explicit left/right margins from process steps */
.process-step {
 margin-left: 0;
 margin-right: 0;
}

/* Specific styling for service-process on larger screens to avoid wrapping too soon */
@media (min-width: 769px) {
 .service-process {
 justify-content: center;
 gap: 2rem;
 }

 .process-step {
 flex-basis: calc(33.333% - 2rem); /* Approx 3 per row */
 max-width: 350px;
 }
}

/* Ensure blog posts and similar pages have appropriate meta info */
.post-meta {
 font-size: 0.9em;
 color: var(--accent-color);
 margin-bottom: 2rem;
 display: flex;
 justify-content: center; /* Center meta info */
 gap: 1rem;
 flex-wrap: wrap;
}

.post-meta span {
 display: flex;
 align-items: center;
 gap: 5px;
}

.post-meta span svg {
 width: 16px;
 height: 16px;
 fill: var(--primary-color);
}