:root {
 --primary-color: #0056b3; /* Darker blue for primary actions */
 --secondary-color: #007bff; /* Bright blue for accents */
 --accent-color: #28a745; /* Green for success/highlights */
 --text-color: #333;
 --light-text-color: #f8f9fa;
 --heading-color: #212529;
 --background-color: #e9ecef;
 --light-background: #ffffff;
 --border-color: #dee2e6;
 --shadow-color: rgba(0, 0, 0, 0.1);
 --hover-shadow: rgba(0, 0, 0, 0.2);
 --font-family-sans: 'Roboto', sans-serif;
 --font-family-serif: 'Merriweather', serif;
 --border-radius-base: 8px;
 --transition-speed: 0.3s ease-in-out;
}

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

html {
 scroll-behavior: smooth;
}

body {
 font-family: var(--font-family-sans);
 line-height: 1.6;
 color: var(--text-color);
 background-color: var(--light-background);
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
 overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

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

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

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

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.5em; }

p {
 margin-bottom: 1em;
}

ul {
 list-style: none;
}

img {
 max-width: 100%;
 height: auto;
 display: block;
 border-radius: var(--border-radius-base);
}

.content-container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 20px;
}

.section {
 padding: 80px 0;
 text-align: center;
 position: relative;
 overflow: hidden;
}

.section-title {
 margin-bottom: 15px;
 font-size: 2.5em;
 color: var(--heading-color);
}

.section-subtitle {
 font-size: 1.2em;
 color: #6c757d;
 margin-bottom: 40px;
 max-width: 800px;
 margin-left: auto;
 margin-right: auto;
}

.section-paragraph {
 max-width: 700px;
 margin: 0 auto 1.5em auto;
 text-align: left;
}

.text-center { text-align: center; }
.text-light { color: var(--light-text-color) !important; }
.bg-light { background-color: var(--background-color); }
.mt-xl { margin-top: 3rem; }

/* Buttons */
.cta-button {
 display: inline-block;
 padding: 12px 25px;
 border-radius: 50px;
 font-weight: bold;
 text-transform: uppercase;
 letter-spacing: 0.05em;
 transition: all var(--transition-speed);
 cursor: pointer;
 border: 2px solid transparent;
 font-size: 1em;
}

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

.primary-cta:hover {
 background-color: #004494;
 border-color: #004494;
 transform: translateY(-3px);
 box-shadow: 0 5px 15px var(--shadow-color);
}

.secondary-cta {
 background-color: var(--secondary-color);
 color: var(--light-text-color);
 border-color: var(--secondary-color);
}

.secondary-cta:hover {
 background-color: #0069d9;
 border-color: #0069d9;
 transform: translateY(-3px);
 box-shadow: 0 5px 15px var(--shadow-color);
}

.outline-cta {
 background-color: transparent;
 color: var(--light-text-color);
 border-color: var(--light-text-color);
}

.outline-cta:hover {
 background-color: var(--light-text-color);
 color: var(--primary-color);
 transform: translateY(-3px);
 box-shadow: 0 5px 15px var(--hover-shadow);
}

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

.main-header.scrolled {
 background-color: rgba(255, 255, 255, 0.95);
 box-shadow: 0 4px 15px var(--hover-shadow);
}

.navbar {
 display: flex;
 justify-content: space-between;
 align-items: center;
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 20px;
}

.logo {
 font-family: var(--font-family-serif);
 font-size: 1.8em;
 font-weight: bold;
 color: var(--primary-color);
 text-transform: uppercase;
 letter-spacing: 1px;
 position: relative;
 transition: transform var(--transition-speed);
}

.logo:hover {
 color: var(--secondary-color);
 transform: scale(1.05) rotate(-2deg);
}

.nav-links {
 display: flex;
 gap: 30px;
}

.nav-links a {
 color: var(--heading-color);
 font-weight: 500;
 font-size: 1.05em;
 padding: 5px 0;
 position: relative;
 transition: color var(--transition-speed);
 overflow: hidden; /* For sliding text effect */
}

.nav-links a::after {
 content: '';
 position: absolute;
 left: 0;
 bottom: 0;
 width: 100%;
 height: 2px;
 background-color: var(--secondary-color);
 transform: scaleX(0);
 transition: transform var(--transition-speed) ease-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
 transform: scaleX(1);
}

.nav-links a span { /* For sliding text effect */
 display: inline-block;
 transition: transform var(--transition-speed);
}

.nav-links a:hover span {
 transform: translateY(-100%);
}

.nav-links a::before { /* For sliding text effect */
 content: attr(data-text);
 position: absolute;
 top: 100%;
 left: 0;
 color: var(--secondary-color);
 transition: transform var(--transition-speed);
}

.nav-links a:hover::before {
 transform: translateY(-100%);
}

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

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

.nav-toggle.active span:nth-child(1) {
 transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
 opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
 transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
 position: relative;
 display: flex;
 align-items: center;
 justify-content: center;
 min-height: 70vh;
 padding: 100px 0;
 color: var(--light-text-color);
 text-align: center;
 background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
 overflow: hidden;
}

.pattern-bg::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="p" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M-1 1l2-2M0 10l10-10M9 11l2-2" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23p)"/></svg>');
 background-size: 20px 20px;
 opacity: 0.6;
 z-index: 0;
}

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

.hero-title {
 font-size: 3.8em;
 color: var(--light-text-color);
 margin-bottom: 20px;
 letter-spacing: -1px;
}

.hero-subtitle {
 font-size: 1.5em;
 margin-bottom: 40px;
 color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
 display: flex;
 gap: 20px;
 justify-content: center;
}

.hero-image-container {
 position: absolute;
 bottom: 0;
 right: 5%; /* Adjusted for better visibility */
 max-width: 40%;
 transform: translateY(20px) scale(0.95);
 opacity: 0.8;
 z-index: 0;
 transition: transform 1s ease-out, opacity 1s ease-out;
}

.hero-image-container img {
 border-radius: var(--border-radius-base);
 box-shadow: 0 10px 30px var(--shadow-color);
}

/* Feature Grid */
.features-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 30px;
 text-align: left;
 margin-top: 40px;
}

.feature-card {
 background-color: var(--light-background);
 border-radius: var(--border-radius-base);
 box-shadow: 0 4px 15px var(--shadow-color);
 padding: 30px;
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
 position: relative; /* For interactive effects */
 overflow: hidden;
}

.feature-card:hover {
 transform: translateY(-8px) scale(1.02);
 box-shadow: 0 8px 25px var(--hover-shadow);
}

.feature-card .card-title {
 color: var(--primary-color);
 font-size: 1.3em;
 margin-bottom: 15px;
}

.feature-card .card-description {
 color: var(--text-color);
 font-size: 0.95em;
 margin-bottom: 20px;
}

.feature-card .read-more {
 display: inline-block;
 color: var(--secondary-color);
 font-weight: bold;
 position: relative;
 padding-bottom: 2px;
}

.feature-card .read-more::after {
 content: '';
 position: absolute;
 left: 0;
 bottom: 0;
 width: 100%;
 height: 1px;
 background-color: var(--secondary-color);
 transform: scaleX(0);
 transition: transform var(--transition-speed);
}

.feature-card .read-more:hover::after {
 transform: scaleX(1);
}

/* About Preview */
.two-column-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 50px;
 align-items: center;
 text-align: left;
}

.column-image img {
 border-radius: var(--border-radius-base);
 box-shadow: 0 8px 25px var(--shadow-color);
}

/* Testimonials Carousel */
.testimonials-section {
 background-color: var(--background-color);
}

.testimonial-carousel {
 position: relative;
 max-width: 900px;
 margin: 0 auto;
 overflow: hidden;
 padding-bottom: 50px; /* For dots */
}

.carousel-track {
 display: flex;
 transition: transform 0.5s ease-in-out;
}

.carousel-slide {
 flex: 0 0 100%;
 background-color: var(--light-background);
 border-radius: var(--border-radius-base);
 box-shadow: 0 4px 15px var(--shadow-color);
 padding: 40px;
 margin: 0 10px; /* Space between cards */
 text-align: center;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
}

.testimonial-avatar {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 object-fit: cover;
 margin-bottom: 20px;
 border: 3px solid var(--secondary-color);
 box-shadow: 0 2px 10px var(--shadow-color);
}

.testimonial-text {
 font-style: italic;
 font-size: 1.1em;
 color: var(--text-color);
 margin-bottom: 20px;
 max-width: 600px;
}

.testimonial-author {
 font-weight: bold;
 color: var(--primary-color);
 font-size: 1em;
}

.carousel-button {
 position: absolute;
 top: 50%;
 transform: translateY(-50%);
 background-color: rgba(0, 0, 0, 0.5);
 color: var(--light-text-color);
 border: none;
 padding: 10px 15px;
 cursor: pointer;
 font-size: 1.5em;
 border-radius: 50%;
 transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.carousel-button.prev { left: 10px; }
.carousel-button.next { right: 10px; }

.carousel-button:hover {
 background-color: var(--secondary-color);
 transform: translateY(-50%) scale(1.1);
}

.carousel-dots {
 display: flex;
 justify-content: center;
 gap: 10px;
 position: absolute;
 bottom: 20px;
 left: 0;
 right: 0;
}

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

.carousel-dot.active {
 background-color: var(--secondary-color);
 transform: scale(1.2);
}

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

.blog-card {
 background-color: var(--light-background);
 border-radius: var(--border-radius-base);
 box-shadow: 0 4px 15px var(--shadow-color);
 overflow: hidden;
 text-align: left;
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.blog-card:hover {
 transform: translateY(-8px);
 box-shadow: 0 8px 25px var(--hover-shadow);
}

.blog-thumbnail {
 width: 100%;
 height: 200px;
 object-fit: cover;
 border-top-left-radius: var(--border-radius-base);
 border-top-right-radius: var(--border-radius-base);
}

.blog-card .card-title {
 font-size: 1.3em;
 margin: 20px 20px 10px 20px;
 color: var(--primary-color);
}

.blog-card .card-title a {
 color: inherit;
}

.blog-card .card-title a:hover {
 color: var(--secondary-color);
}

.blog-card .card-description {
 font-size: 0.95em;
 color: var(--text-color);
 margin: 0 20px 20px 20px;
}

.blog-card .read-more {
 display: block;
 margin: 0 20px 20px 20px;
 font-weight: bold;
 color: var(--secondary-color);
 position: relative;
 padding-bottom: 2px;
}

.blog-card .read-more::after {
 content: '';
 position: absolute;
 left: 0;
 bottom: 0;
 width: 100%;
 height: 1px;
 background-color: var(--secondary-color);
 transform: scaleX(0);
 transition: transform var(--transition-speed);
}

.blog-card .read-more:hover::after {
 transform: scaleX(1);
}

/* FAQ Accordion */
.faq-accordion {
 max-width: 800px;
 margin: 40px auto 0 auto;
 text-align: left;
}

.accordion-item {
 background-color: var(--light-background);
 border: 1px solid var(--border-color);
 border-radius: var(--border-radius-base);
 margin-bottom: 15px;
 overflow: hidden;
 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
 transition: all var(--transition-speed);
}

.accordion-item:hover {
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.accordion-header {
 width: 100%;
 padding: 20px 25px;
 background-color: var(--light-background);
 color: var(--heading-color);
 font-size: 1.1em;
 font-weight: bold;
 border: none;
 text-align: left;
 cursor: pointer;
 display: flex;
 justify-content: space-between;
 align-items: center;
 transition: background-color var(--transition-speed);
}

.accordion-header::after {
 content: '+';
 font-size: 1.5em;
 font-weight: bold;
 transition: transform var(--transition-speed);
 color: var(--primary-color);
}

.accordion-header[aria-expanded="true"] {
 background-color: var(--background-color);
 color: var(--secondary-color);
}

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

.accordion-content {
 background-color: #fcfdff;
 padding: 0 25px;
 max-height: 0;
 overflow: hidden;
 transition: max-height var(--transition-speed) ease-in-out, padding var(--transition-speed) ease-in-out;
}

.accordion-content p {
 padding: 15px 0;
 margin-bottom: 0;
 border-top: 1px solid var(--border-color);
 color: var(--text-color);
}

/* Call to action section */
.cta-section {
 background: linear-gradient(135deg, var(--primary-color) 0%, #004d99 100%);
 padding: 80px 20px;
}

.cta-section .section-title {
 color: var(--light-text-color);
 margin-bottom: 15px;
}

.cta-section .section-subtitle {
 color: rgba(255, 255, 255, 0.9);
 margin-bottom: 40px;
}

/* Footer Styles */
.main-footer {
 background-color: var(--heading-color);
 color: rgba(255, 255, 255, 0.8);
 padding: 60px 0 20px 0;
 font-size: 0.9em;
}

.footer-container {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
 gap: 30px;
 text-align: left;
}

.footer-logo {
 font-family: var(--font-family-serif);
 font-size: 1.8em;
 font-weight: bold;
 color: var(--light-text-color);
 text-transform: uppercase;
 letter-spacing: 1px;
 margin-bottom: 15px;
 display: block;
 transition: color var(--transition-speed), transform var(--transition-speed);
}

.footer-logo:hover {
 color: var(--secondary-color);
 transform: translateX(5px) scale(1.02);
}

.brand-description {
 margin-top: 15px;
 line-height: 1.8;
}

.footer-column h3 {
 color: var(--light-text-color);
 font-size: 1.2em;
 margin-bottom: 20px;
 position: relative;
 padding-bottom: 5px;
 display: inline-block;
}

.footer-column h3::after {
 content: '';
 position: absolute;
 left: 0;
 bottom: 0;
 width: 50px;
 height: 2px;
 background-color: var(--secondary-color);
 transition: width var(--transition-speed);
}

.footer-column h3:hover::after {
 width: 70px;
}

.footer-column ul {
 margin-top: 10px;
}

.footer-column ul li {
 margin-bottom: 10px;
}

.footer-column ul li a {
 color: rgba(255, 255, 255, 0.7);
 transition: color var(--transition-speed), transform var(--transition-speed);
}

.footer-column ul li a:hover {
 color: var(--secondary-color);
 transform: translateX(5px);
}

.footer-column.contact-info p {
 display: flex;
 align-items: center;
 margin-bottom: 10px;
 color: rgba(255, 255, 255, 0.7);
}
.footer-column.contact-info p .icon {
 margin-right: 10px;
 color: var(--secondary-color);
 font-size: 1.1em;
}
.footer-column.contact-info a {
 color: rgba(255, 255, 255, 0.7);
}
.footer-column.contact-info a:hover {
 color: var(--secondary-color);
}

.social-links {
 margin-top: 20px;
 display: flex;
 gap: 15px;
}

.social-icon {
 color: var(--light-text-color);
 font-size: 1.2em;
 width: 35px;
 height: 35px;
 line-height: 35px;
 border: 1px solid rgba(255, 255, 255, 0.5);
 border-radius: 50%;
 text-align: center;
 transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
 display: inline-flex;
 justify-content: center;
 align-items: center;
}

.social-icon:hover {
 background-color: var(--secondary-color);
 color: var(--light-text-color);
 border-color: var(--secondary-color);
 transform: translateY(-3px) scale(1.1);
}

.footer-bottom {
 text-align: center;
 margin-top: 40px;
 padding-top: 20px;
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 color: rgba(255, 255, 255, 0.6);
}

/* Generic Card Styles for other pages */
.card {
 background-color: var(--light-background);
 border-radius: var(--border-radius-base);
 box-shadow: 0 4px 15px var(--shadow-color);
 padding: 30px;
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
 transform: translateY(-5px);
 box-shadow: 0 8px 25px var(--hover-shadow);
}

/* Forms */
.contact-form {
 max-width: 700px;
 margin: 40px auto;
 background-color: var(--light-background);
 padding: 40px;
 border-radius: var(--border-radius-base);
 box-shadow: 0 4px 15px var(--shadow-color);
 text-align: left;
}

.form-group {
 margin-bottom: 20px;
}

.form-group label {
 display: block;
 margin-bottom: 8px;
 font-weight: bold;
 color: var(--heading-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
 width: 100%;
 padding: 12px 15px;
 border: 1px solid var(--border-color);
 border-radius: var(--border-radius-base);
 font-family: var(--font-family-sans);
 font-size: 1em;
 color: var(--text-color);
 transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
 border-color: var(--secondary-color);
 box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
 outline: none;
}

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

button[type="submit"] {
 width: auto;
 border: none;
}

/* Lightbox styles */
.lightbox {
 display: none;
 position: fixed;
 z-index: 2000;
 left: 0;
 top: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(0, 0, 0, 0.8);
 justify-content: center;
 align-items: center;
 opacity: 0;
 transition: opacity 0.3s ease-in-out;
}

.lightbox.active {
 display: flex;
 opacity: 1;
}

.lightbox-content {
 max-width: 90%;
 max-height: 90%;
 object-fit: contain;
 border-radius: var(--border-radius-base);
 box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
 transform: scale(0.8);
 transition: transform 0.3s ease-in-out;
}
.lightbox.active .lightbox-content {
 transform: scale(1);
}

.lightbox-close {
 position: absolute;
 top: 20px;
 right: 30px;
 color: var(--light-text-color);
 font-size: 40px;
 font-weight: bold;
 cursor: pointer;
 transition: color 0.2s;
}

.lightbox-close:hover {
 color: var(--secondary-color);
}

/* Animations */
@keyframes fadeIn {
 from { opacity: 0; transform: translateY(20px); }
 to { opacity: 1; transform: translateY(0); }
}

.fade-in {
 opacity: 0; /* Default state for elements that fade in */
 transform: translateY(20px);
 transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.reveal-on-scroll {
 opacity: 0;
 transform: translateY(50px);
 transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.animated {
 opacity: 1;
 transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
 .nav-links {
 gap: 20px;
 }

 .hero-title {
 font-size: 3em;
 }

 .hero-subtitle {
 font-size: 1.3em;
 }

 .section-title {
 font-size: 2em;
 }

 .two-column-grid {
 grid-template-columns: 1fr;
 gap: 30px;
 }

 .column-image {
 order: -1; /* Image above text on smaller screens */
 }

 .hero-image-container {
 display: none; /* Hide hero image on tablets and smaller to save space */
 }
}

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

 .main-header {
 padding: 10px 0;
 }

 .navbar {
 padding: 0 15px;
 }

 .nav-toggle {
 display: block;
 }

 .nav-links {
 display: none;
 flex-direction: column;
 position: absolute;
 top: 60px; /* Adjust based on header height */
 left: 0;
 width: 100%;
 background-color: var(--light-background);
 box-shadow: 0 8px 15px var(--shadow-color);
 padding: 20px 0;
 border-top: 1px solid var(--border-color);
 z-index: 999;
 }

 .nav-links.active {
 display: flex;
 }

 .nav-links li {
 width: 100%;
 text-align: center;
 padding: 10px 0;
 }

 .nav-links a {
 padding: 10px 0;
 display: block;
 color: var(--heading-color);
 }

 .nav-links a:hover {
 background-color: var(--background-color);
 }

 .hero-section {
 min-height: 60vh;
 padding: 80px 0;
 }

 .hero-title {
 font-size: 2.5em;
 }

 .hero-subtitle {
 font-size: 1.1em;
 }

 .hero-actions {
 flex-direction: column;
 gap: 15px;
 }
 .cta-button {
 padding: 10px 20px;
 width: 80%;
 margin: 0 auto;
 }

 .section {
 padding: 60px 0;
 }

 .section-title {
 font-size: 1.8em;
 }

 .section-subtitle {
 font-size: 1em;
 margin-bottom: 30px;
 }

 .features-grid,
 .blog-grid {
 grid-template-columns: 1fr;
 }

 .testimonial-carousel {
 padding-bottom: 80px; /* More space for dots */
 }

 .carousel-button {
 top: auto;
 bottom: 0;
 transform: none;
 padding: 8px 12px;
 font-size: 1.2em;
 border-radius: var(--border-radius-base);
 }
 .carousel-button.prev { left: 20%; }
 .carousel-button.next { right: 20%; }
 .carousel-dots {
 bottom: 40px;
 }

 .footer-container {
 grid-template-columns: 1fr;
 text-align: center;
 }

 .footer-column.brand-info,
 .footer-column.quick-links,
 .footer-column.legal-links,
 .footer-column.contact-info {
 max-width: 350px;
 margin-left: auto;
 margin-right: auto;
 }

 .footer-column h3 {
 margin-bottom: 15px;
 }
 .footer-column h3::after {
 left: 50%;
 transform: translateX(-50%);
 }

 .social-links {
 justify-content: center;
 }

 .footer-column.contact-info p {
 justify-content: center;
 }
}

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

 .hero-section {
 min-height: 50vh;
 padding: 60px 0;
 }

 .hero-title {
 font-size: 2em;
 }

 .hero-subtitle {
 font-size: 0.9em;
 }

 .cta-button {
 padding: 10px 15px;
 width: 90%;
 }

 .section {
 padding: 40px 0;
 }

 .section-subtitle {
 margin-bottom: 25px;
 }

 .feature-card, .blog-card, .accordion-item {
 padding: 20px;
 }

 .accordion-header {
 padding: 15px 20px;
 font-size: 1em;
 }

 .accordion-content p {
 padding: 10px 0;
 }
 .carousel-button.prev { left: 5%; }
 .carousel-button.next { right: 5%; }
}
/* General content padding correction */
.content-container {
 padding-left: 20px;
 padding-right: 20px;
}

@media (max-width: 768px) {
 .content-container {
 padding-left: 15px;
 padding-right: 15px;
 }
}
@media (max-width: 480px) {
 .content-container {
 padding-left: 10px;
 padding-right: 10px;
 }
}
/* Style for active navigation link */
.nav-links a.active {
 color: var(--secondary-color);
 font-weight: bold;
}

.nav-links a.active::after {
 transform: scaleX(1);
 background-color: var(--secondary-color);
}
.nav-links li:nth-child(1) a[data-text="Главная"]::before { content: "Main"; }
.nav-links li:nth-child(2) a[data-text="О нас"]::before { content: "About Us"; }
.nav-links li:nth-child(3) a[data-text="Услуги"]::before { content: "Services"; }
.nav-links li:nth-child(4) a[data-text="Блог"]::before { content: "Blog"; }
.nav-links li:nth-child(5) a[data-text="Контакты"]::before { content: "Contact"; }

/* Styling for other pages: */
/* Sub-hero Banners */
.page-hero {
 background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
 color: var(--light-text-color);
 padding: 80px 20px;
 text-align: center;
 position: relative;
 overflow: hidden;
 margin-bottom: 50px;
}

.page-hero::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="p" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M-1 1l2-2M0 10l10-10M9 11l2-2" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23p)"/></svg>');
 background-size: 20px 20px;
 opacity: 0.6;
 z-index: 0;
}

.page-hero-content {
 position: relative;
 z-index: 1;
 max-width: 800px;
 margin: 0 auto;
}

.page-hero-title {
 font-size: 3em;
 margin-bottom: 10px;
 color: var(--light-text-color);
}

.page-hero-subtitle {
 font-size: 1.2em;
 color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
 .page-hero {
 padding: 60px 15px;
 margin-bottom: 30px;
 }
 .page-hero-title {
 font-size: 2.2em;
 }
 .page-hero-subtitle {
 font-size: 1em;
 }
}

/* Service Cards */
.service-cards-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 30px;
 margin-top: 40px;
}

.service-card {
 background-color: var(--light-background);
 border-radius: var(--border-radius-base);
 box-shadow: 0 4px 15px var(--shadow-color);
 padding: 30px;
 text-align: left;
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-card:hover {
 transform: translateY(-8px);
 box-shadow: 0 8px 25px var(--hover-shadow);
}

.service-card .card-icon {
 font-size: 3em;
 color: var(--secondary-color);
 margin-bottom: 20px;
 display: block;
 text-align: center;
}

.service-card .card-title {
 font-size: 1.4em;
 color: var(--primary-color);
 margin-bottom: 15px;
 text-align: center;
}

.service-card .card-description {
 line-height: 1.7;
 font-size: 0.95em;
 color: var(--text-color);
}

/* Process Section */
.process-steps {
 display: flex;
 justify-content: space-between;
 align-items: flex-start;
 gap: 30px;
 margin-top: 50px;
 flex-wrap: wrap;
}

.process-step {
 flex: 1;
 min-width: 250px;
 text-align: center;
 position: relative;
 padding-bottom: 60px; /* space for connector line */
}

.process-step-icon {
 width: 70px;
 height: 70px;
 background-color: var(--secondary-color);
 color: var(--light-text-color);
 border-radius: 50%;
 display: flex;
 justify-content: center;
 align-items: center;
 font-size: 2em;
 font-weight: bold;
 margin: 0 auto 20px auto;
 box-shadow: 0 4px 10px rgba(0,0,0,0.2);
 transition: transform var(--transition-speed), background-color var(--transition-speed);
}

.process-step:hover .process-step-icon {
 background-color: var(--primary-color);
 transform: translateY(-5px) scale(1.05);
}

.process-step h4 {
 font-size: 1.3em;
 color: var(--primary-color);
 margin-bottom: 10px;
}

.process-step p {
 font-size: 0.95em;
 color: var(--text-color);
}

.process-step:not(:last-child)::after {
 content: '';
 position: absolute;
 bottom: 35px;
 left: calc(50% + 35px); /* Start from right of icon */
 width: calc(100% - 70px - 60px); /* Adjust width */
 height: 2px;
 background-color: var(--border-color);
 z-index: -1;
}
@media (max-width: 768px) {
 .process-steps {
 flex-direction: column;
 align-items: center;
 }
 .process-step {
 width: 100%;
 max-width: 400px;
 padding-bottom: 0;
 }
 .process-step:not(:last-child)::after {
 content: '';
 position: absolute;
 bottom: -30px;
 left: 50%;
 transform: translateX(-50%);
 width: 2px;
 height: 60px;
 background-color: var(--border-color);
 }
}

/* Team Section for About page */
.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 30px;
 margin-top: 50px;
}

.team-member-card {
 background-color: var(--light-background);
 border-radius: var(--border-radius-base);
 box-shadow: 0 4px 15px var(--shadow-color);
 padding: 25px;
 text-align: center;
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.team-member-card:hover {
 transform: translateY(-8px);
 box-shadow: 0 8px 25px var(--hover-shadow);
}

.team-member-card img {
 width: 150px;
 height: 150px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 20px auto;
 border: 4px solid var(--secondary-color);
 transition: border-color var(--transition-speed);
}

.team-member-card:hover img {
 border-color: var(--primary-color);
}

.team-member-card h4 {
 font-size: 1.3em;
 color: var(--primary-color);
 margin-bottom: 5px;
}

.team-member-card p.title {
 font-size: 0.95em;
 color: var(--secondary-color);
 margin-bottom: 15px;
}

.team-member-card p.description {
 font-size: 0.9em;
 color: var(--text-color);
}

/* Gallery styles */
.gallery-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 20px;
 margin-top: 40px;
}

.gallery-item {
 cursor: pointer;
 border-radius: var(--border-radius-base);
 overflow: hidden;
 position: relative;
 box-shadow: 0 4px 10px var(--shadow-color);
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.gallery-item:hover {
 transform: scale(1.03);
 box-shadow: 0 8px 20px var(--hover-shadow);
}

.gallery-item img {
 width: 100%;
 height: 250px;
 object-fit: cover;
 transition: opacity var(--transition-speed);
}

.gallery-item:hover img {
 opacity: 0.8;
}

.gallery-item-overlay {
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background-color: rgba(0, 86, 179, 0.7); /* Primary color with transparency */
 color: var(--light-text-color);
 display: flex;
 justify-content: center;
 align-items: center;
 opacity: 0;
 transition: opacity var(--transition-speed);
 border-radius: var(--border-radius-base);
}

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

.gallery-item-overlay span {
 font-size: 1.5em;
 font-weight: bold;
}

/* Blog Post Styles */
.blog-post-content {
 max-width: 800px;
 margin: 50px auto;
 padding: 30px;
 background-color: var(--light-background);
 border-radius: var(--border-radius-base);
 box-shadow: 0 4px 15px var(--shadow-color);
 text-align: left;
}

.blog-post-header {
 margin-bottom: 30px;
}

.blog-post-title {
 font-size: 2.5em;
 color: var(--primary-color);
 margin-bottom: 10px;
}

.blog-post-meta {
 display: flex;
 align-items: center;
 color: #6c757d;
 font-size: 0.9em;
 margin-bottom: 20px;
}

.blog-post-meta .author-avatar {
 width: 40px;
 height: 40px;
 border-radius: 50%;
 object-fit: cover;
 margin-right: 10px;
}

.blog-post-meta span {
 margin-right: 15px;
}

.blog-post-image {
 width: 100%;
 height: 350px;
 object-fit: cover;
 margin-bottom: 30px;
 border-radius: var(--border-radius-base);
 box-shadow: 0 4px 10px var(--shadow-color);
}

.blog-post-body h2 {
 font-size: 1.8em;
 color: var(--secondary-color);
 margin-top: 30px;
 margin-bottom: 15px;
}

.blog-post-body h3 {
 font-size: 1.4em;
 color: var(--primary-color);
 margin-top: 25px;
 margin-bottom: 10px;
}

.blog-post-body p {
 margin-bottom: 1.5em;
 line-height: 1.8;
}

.blog-post-body ul {
 list-style: disc;
 margin-left: 25px;
 margin-bottom: 1.5em;
}

.blog-post-body ul li {
 margin-bottom: 0.8em;
}

.blog-post-footer {
 border-top: 1px solid var(--border-color);
 padding-top: 30px;
 margin-top: 40px;
 text-align: center;
}

.blog-post-footer .tags {
 margin-bottom: 20px;
}

.blog-post-footer .tag {
 display: inline-block;
 background-color: var(--background-color);
 color: var(--primary-color);
 padding: 5px 12px;
 border-radius: 20px;
 font-size: 0.85em;
 margin-right: 10px;
 margin-bottom: 10px;
 transition: background-color var(--transition-speed), color var(--transition-speed);
}

.blog-post-footer .tag:hover {
 background-color: var(--secondary-color);
 color: var(--light-text-color);
}

.related-posts {
 margin-top: 50px;
}

.related-posts h3 {
 font-size: 1.6em;
 margin-bottom: 30px;
 color: var(--heading-color);
 text-align: center;
}

.related-posts-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 30px;
}

@media (max-width: 768px) {
 .blog-post-title {
 font-size: 2em;
 }
 .blog-post-content {
 margin: 30px auto;
 padding: 20px;
 }
 .blog-post-image {
 height: 250px;
 }
 .related-posts-grid {
 grid-template-columns: 1fr;
 }
}

/* Thanks page specific styles */
.thanks-container {
 padding: 100px 20px;
 text-align: center;
 background-color: var(--background-color);
 min-height: 70vh;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
}

.thanks-container h1 {
 color: var(--primary-color);
 font-size: 3em;
 margin-bottom: 20px;
}

.thanks-container p {
 font-size: 1.2em;
 color: var(--text-color);
 margin-bottom: 30px;
 max-width: 600px;
}

.thanks-container .cta-button {
 margin-top: 20px;
}

/* 404 page specific styles */
.error-container {
 padding: 100px 20px;
 text-align: center;
 background-color: var(--light-background);
 min-height: 70vh;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
}

.error-code {
 font-size: 8em;
 color: var(--primary-color);
 font-weight: bold;
 line-height: 1;
 margin-bottom: 20px;
 text-shadow: 2px 2px 5px var(--shadow-color);
}

.error-message {
 font-size: 2em;
 color: var(--heading-color);
 margin-bottom: 20px;
}

.error-description {
 font-size: 1.1em;
 color: var(--text-color);
 margin-bottom: 40px;
 max-width: 700px;
}

.error-container .cta-button {
 margin-top: 20px;
}