@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
 --primary-color: #0c4a6e; /* Azul Oscuro */
 --accent-color: #38bdf8; /* Azul claro para CTAs */
 --light-bg-color: #f8fafc; /* Fondo blanco/gris muy claro */
 --white-color: #ffffff;
 --dark-text-color: #333333;
 --gray-text-color: #6b7280; /* Usado para texto secundario */
 --border-color: #e2e8f0;
 --footer-bg-color: #09344d; /* Un tono más oscuro del primary para el footer */

 --font-primary: 'Montserrat', sans-serif;
 --font-secondary: 'Open Sans', sans-serif;

 --max-width: 1200px;
}

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

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

body {
 font-family: var(--font-secondary);
 color: var(--dark-text-color);
 line-height: 1.6;
 background-color: var(--white-color);
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
 min-width: 320px;
}

a {
 color: var(--primary-color);
 text-decoration: none;
 transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
 color: var(--accent-color);
 transform: translateY(-2px);
}

ul {
 list-style: none;
}

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

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

h1 {
 font-size: clamp(2.5rem, 6vw, 4rem); /* Responsive font size */
 font-weight: 700;
}

h2 {
 font-size: clamp(2rem, 4vw, 3rem);
 font-weight: 700;
 text-align: center;
 margin-bottom: 1.5em;
 color: var(--primary-color);
 position: relative;
 padding-bottom: 0.5em;
}

h2::after {
 content: '';
 position: absolute;
 left: 50%;
 bottom: 0;
 transform: translateX(-50%);
 width: 60px;
 height: 4px;
 background-color: var(--accent-color);
 border-radius: 2px;
}

h3 {
 font-size: clamp(1.5rem, 3vw, 2rem);
 font-weight: 600;
 color: var(--primary-color);
}

p {
 margin-bottom: 1em;
}

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

/* Header */
.navbar {
 background-color: var(--white-color);
 padding: 1rem 1.5rem;
 display: flex;
 justify-content: space-between;
 align-items: center;
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
 position: sticky;
 top: 0;
 z-index: 1000;
 transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
 background-color: rgba(255, 255, 255, 0.95);
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
 font-family: var(--font-primary);
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--primary-color);
 text-transform: uppercase;
 letter-spacing: 0.5px;
}

.nav-links {
 display: flex;
 gap: 1.8rem;
 font-weight: 600;
 font-family: var(--font-primary);
}

.nav-links a {
 color: var(--primary-color);
 font-size: 1.1rem;
 padding: 0.5rem 0;
 position: relative;
}

.nav-links a:hover,
.nav-links a.active {
 color: var(--accent-color);
}

.nav-links a::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 0;
 height: 3px;
 background-color: var(--accent-color);
 transition: width 0.3s ease;
}

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

.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(--primary-color);
 margin: 5px 0;
 transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
 position: relative;
 height: 90vh; /* Full viewport height */
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 color: var(--white-color);
 overflow: hidden;
 padding: 2rem;
}

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

.hero-image-overlay {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: linear-gradient(135deg, rgba(12, 74, 110, 0.8) 0%, rgba(56, 189, 248, 0.6) 100%); /* Adjusted gradient */
 z-index: -1;
}

.hero-content {
 max-width: 800px;
 z-index: 1;
 position: relative; /* Ensure content is above overlay */
}

.hero-content h1 {
 font-size: clamp(2.8rem, 7vw, 5rem);
 color: var(--white-color);
 margin-bottom: 0.5em;
 text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
 letter-spacing: 1px;
}

.hero-content p {
 font-size: clamp(1.1rem, 2.5vw, 1.5rem);
 margin-bottom: 2em;
 font-family: var(--font-secondary);
 line-height: inherit;
 text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.cta-button {
 display: inline-block;
 background-color: var(--accent-color);
 color: var(--white-color);
 padding: 1rem 2.5rem;
 border-radius: 5px;
 font-size: 1.1rem;
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: 0.5px;
 transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
 border: none;
 cursor: pointer;
 box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
 background-color: #279ed8; /* Slightly darker accent */
 transform: translateY(-3px);
 box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Sections General */
section {
 padding: 4rem 0;
 position: relative;
 overflow: hidden;
}

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

.pattern-background {
 background-color: var(--primary-color);
 color: var(--white-color);
 position: relative;
 overflow: hidden;
}

.pattern-background h2, .pattern-background h3, .pattern-background p {
 color: var(--white-color);
}

/* Overview Section */
.overview-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 2rem;
 margin-top: 2rem;
}

.overview-item {
 background-color: var(--white-color);
 padding: 2rem;
 border-radius: 8px;
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 border-top: 5px solid var(--primary-color);
}

.overview-item:hover {
 transform: translateY(-5px);
 box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.overview-item h3 {
 margin-bottom: 0.8em;
 font-size: 1.4rem;
}

.overview-item p {
 color: var(--gray-text-color);
 font-size: 1rem;
}

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

.feature-card {
 background-color: var(--white-color);
 border-radius: 8px;
 overflow: hidden;
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 text-align: center;
}

.feature-card:hover {
 transform: translateY(-5px);
 box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-card img {
 height: 200px;
 width: 100%;
 object-fit: cover;
 margin-bottom: 1rem;
 border-bottom: 3px solid var(--accent-color);
}

.feature-card h3 {
 margin: 1rem 0 0.5rem;
 padding: 0 1.5rem;
 font-size: 1.3rem;
}

.feature-card p {
 color: var(--gray-text-color);
 padding: 0 1.5rem 1.5rem;
 font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials-section {
 padding-bottom: 6rem;
}

.testimonial-carousel {
 display: flex;
 overflow-x: auto;
 scroll-snap-type: x mandatory;
 gap: 2rem;
 padding: 1rem 0;
 -webkit-overflow-scrolling: touch; /* for smoother scrolling on iOS */
}

.testimonial-carousel::-webkit-scrollbar {
 height: 8px;
}

.testimonial-carousel::-webkit-scrollbar-thumb {
 background: var(--accent-color);
 border-radius: 10px;
}

.testimonial-carousel::-webkit-scrollbar-track {
 background: var(--light-bg-color);
 border-radius: 10px;
}

.testimonial-card {
 flex: 0 0 90%; /* Adjust width for mobile */
 max-width: 400px; /* Max width for larger screens */
 scroll-snap-align: start;
 background-color: var(--white-color);
 padding: 2.5rem;
 border-radius: 10px;
 box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
 text-align: center;
 border-bottom: 5px solid var(--accent-color);
 display: flex;
 flex-direction: column;
 align-items: center;
}

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

.testimonial-text {
 font-style: italic;
 font-size: 1.1rem;
 color: var(--dark-text-color);
 margin-bottom: 1.5rem;
}

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

/* CTA Section */
.cta-section {
 padding: 5rem 0;
 text-align: center;
 background-color: var(--primary-color);
}

.cta-section .section-title {
 color: var(--white-color);
 padding-bottom: 0;
 margin-bottom: 1rem;
}

.cta-section .section-title::after {
 display: none;
}

.cta-section p {
 font-size: 1.2rem;
 max-width: 700px;
 margin: 0 auto 2rem;
 color: var(--light-bg-color);
}

.newsletter-form {
 display: flex;
 justify-content: center;
 gap: 1rem;
 max-width: 600px;
 margin: 0 auto;
}

.newsletter-form input[type="email"] {
 flex-grow: 1;
 padding: 0.8rem 1.2rem;
 border: 2px solid var(--accent-color);
 border-radius: 5px;
 font-size: 1rem;
 background-color: rgba(255, 255, 255, 0.8);
 color: var(--dark-text-color);
 transition: all 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3);
}

.newsletter-form .cta-button {
 padding: 0.8rem 2rem;
 font-size: 1rem;
}

/* Footer */
.footer {
 background-color: var(--footer-bg-color);
 color: var(--light-bg-color);
 padding: 3rem 0 1.5rem;
 font-size: 0.9rem;
 border-top: 5px solid var(--primary-color); /* Added border for accent */
}

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

.footer-col h3 {
 color: var(--accent-color);
 margin-bottom: 1rem;
 font-size: 1.1rem;
 text-transform: uppercase;
 letter-spacing: 0.5px;
}

.footer-col p, .footer-col li {
 color: var(--light-bg-color);
 margin-bottom: 0.5rem;
}

.footer-col a {
 color: var(--light-bg-color);
 transition: color 0.3s ease;
}

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

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

/* Utility classes */
.text-center {
 text-align: center;
}

.text-white {
 color: var(--white-color) !important;
}

/* Animations */
@keyframes fadeIn {
 from { opacity: 0; }
 to { opacity: 1; }
}

@keyframes fadeInUp {
 from { opacity: 0; transform: translateY(20px); }
 to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
 from { opacity: 0; transform: translateX(-20px); }
 to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
 from { opacity: 0; transform: translateX(20px); }
 to { opacity: 1; transform: translateX(0); }
}

@keyframes bounceIn {
 0% { transform: scale(0.3); opacity: 0; }
 50% { transform: scale(1.05); opacity: 1; }
 70% { transform: scale(0.9); }
 100% { transform: scale(1); }
}

@keyframes scaleIn {
 from { transform: scale(0); opacity: 0; }
 to { transform: scale(1); opacity: 1; }
}

.fade-in { animation: fadeIn 1s ease-out forwards; }
.fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.fade-in-left { animation: fadeInLeft 0.8s ease-out forwards; }
.fade-in-right { animation: fadeInRight 0.8s ease-out forwards; }
.bounce-in { animation: bounceIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.scale-in { animation: scaleIn 0.6s ease-out forwards; }

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Responsive Adjustments */
@media (max-width: 768px) {
 .nav-links {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-color: var(--primary-color);
 flex-direction: column;
 justify-content: center;
 align-items: center;
 transform: translateX(-100%);
 transition: transform 0.5s ease-in-out;
 z-index: 999;
 }

 .nav-links.active {
 transform: translateX(0);
 }

 .nav-links li {
 margin: 1.5rem 0;
 }

 .nav-links a {
 color: var(--white-color);
 font-size: 1.8rem;
 padding: 0.8rem 0;
 }

 .nav-links a:hover,
 .nav-links a.active {
 color: var(--accent-color);
 }

 .nav-links a::after {
 background-color: var(--accent-color);
 height: 4px;
 }

 .nav-toggle {
 display: block;
 }

 .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-content h1 {
 font-size: 2.8rem;
 }

 .hero-content p {
 font-size: 1.1rem;
 }

 .overview-item {
 padding: 1.5rem;
 }

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

 .testimonial-card {
 padding: 1.5rem;
 flex: 0 0 100%; /* Full width on small screens */
 }

 .newsletter-form {
 flex-direction: column;
 align-items: center;
 }

 .newsletter-form input[type="email"] {
 width: 100%;
 max-width: 300px;
 }

 .newsletter-form .cta-button {
 width: 100%;
 max-width: 300px;
 }

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

 .footer-col ul {
 padding-left: 0;
 }

 .footer-col li {
 margin-bottom: 0.3rem;
 }
}

@media (min-width: 769px) and (max-width: 1024px) {
 .container {
 padding: 1.5rem 2rem;
 }

 .nav-links {
 gap: 1.2rem;
 }

 .hero-content h1 {
 font-size: 3.5rem;
 }

 .hero-content p {
 font-size: 1.3rem;
 }

 .testimonial-card {
 flex: 0 0 45%; /* Two cards per row for tablets */
 }
}

/* Specific Page Styles */

/* About Page */
.about-hero {
 background: linear-gradient(rgba(12, 74, 110, 0.8), rgba(56, 189, 248, 0.6)), url('assets/img-4b31e071.jpg') no-repeat center center/cover;
 height: 40vh;
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--white-color);
 text-align: center;
}

.about-hero h1 {
 font-size: clamp(2.5rem, 5vw, 3.5rem);
 color: var(--white-color);
}

.story-section img {
 max-width: 500px;
 border-radius: 8px;
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
 margin-bottom: 2rem;
 border: 3px solid var(--primary-color);
}

.story-content {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 2rem;
}

@media (min-width: 768px) {
 .story-content {
 flex-direction: row;
 justify-content: center;
 }

 .story-content img {
 margin-bottom: 0;
 margin-right: 2rem;
 }

 .story-text {
 max-width: 60%;
 text-align: left;
 }
}

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

.value-item {
 text-align: center;
 padding: 1.5rem;
 background-color: var(--light-bg-color);
 border-radius: 8px;
 box-shadow: 0 2px 10px rgba(0,0,0,0.05);
 border-bottom: 4px solid var(--accent-color);
}

.value-item h4 {
 font-size: 1.2rem;
 color: var(--primary-color);
 margin-bottom: 0.5rem;
}

.value-item p {
 font-size: 0.95rem;
 color: var(--gray-text-color);
}

.team-member-card {
 text-align: center;
 background-color: var(--white-color);
 border-radius: 8px;
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
 padding: 1.5rem;
 transition: transform 0.3s ease;
}

.team-member-card:hover {
 transform: translateY(-5px);
 box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

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

.team-member-card p {
 font-size: 0.9rem;
 color: var(--gray-text-color);
 margin-bottom: 0.5rem;
}

/* Services Page */
.services-hero {
 background: linear-gradient(rgba(12, 74, 110, 0.8), rgba(56, 189, 248, 0.6)), url('assets/img-2d9451cb.jpg') no-repeat center center/cover;
 height: 40vh;
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--white-color);
 text-align: center;
}
.services-hero h1 {
 font-size: clamp(2.5rem, 5vw, 3.5rem);
 color: var(--white-color);
}

.service-card {
 background-color: var(--white-color);
 border-radius: 8px;
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
 padding: 2rem;
 text-align: center;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 border-bottom: 5px solid var(--primary-color);
 display: flex;
 flex-direction: column;
 justify-content: space-between;
}

.service-card:hover {
 transform: translateY(-5px);
 box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-card img {
 width: 100%;
 height: 200px;
 object-fit: cover;
 border-radius: 4px;
 margin-bottom: 1.5rem;
 border: 1px solid var(--border-color);
}

.service-card h3 {
 font-size: 1.5rem;
 margin-bottom: 1rem;
}

.service-card p {
 color: var(--gray-text-color);
 margin-bottom: 1.5rem;
 flex-grow: 1;
}

.service-card .cta-button {
 margin-top: auto; /* Pushes button to the bottom */
 width: fit-content;
 align-self: center; /* Centers the button */
}

/* Contact Page */
.contact-hero {
 background: linear-gradient(rgba(12, 74, 110, 0.8), rgba(56, 189, 248, 0.6)), url('assets/img-bafc8405.jpg') no-repeat center center/cover;
 height: 40vh;
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--white-color);
 text-align: center;
}
.contact-hero h1 {
 font-size: clamp(2.5rem, 5vw, 3.5rem);
 color: var(--white-color);
}

.contact-grid {
 display: grid;
 grid-template-columns: 1fr;
 gap: 3rem;
}

@media (min-width: 768px) {
 .contact-grid {
 grid-template-columns: 1.5fr 1fr;
 }
}

.contact-form {
 background-color: var(--light-bg-color);
 padding: 2.5rem;
 border-radius: 8px;
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.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 1rem;
 margin-bottom: 1.5rem;
 border: 1px solid var(--border-color);
 border-radius: 5px;
 font-size: 1rem;
 background-color: var(--white-color);
 transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

.contact-info {
 padding: 2.5rem;
 background-color: var(--primary-color);
 color: var(--white-color);
 border-radius: 8px;
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.contact-info p {
 margin-bottom: 1rem;
 display: flex;
 align-items: flex-start;
 gap: 0.8rem;
 font-size: 1rem;
}

.contact-info p strong {
 color: var(--white-color);
 min-width: 80px; /* Aligns content */
}

.contact-info a {
 color: var(--accent-color);
}

.contact-info a:hover {
 color: var(--white-color);
 text-decoration: underline;
}

.map-container {
 margin-top: 3rem;
 border-radius: 8px;
 overflow: hidden;
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
 width: 100%;
 height: 450px;
 border: 0;
}

/* Blog Page */
.blog-hero {
 background: linear-gradient(rgba(12, 74, 110, 0.8), rgba(56, 189, 248, 0.6)), url('assets/img-5cc02599.jpg') no-repeat center center/cover;
 height: 40vh;
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--white-color);
 text-align: center;
}
.blog-hero h1 {
 font-size: clamp(2.5rem, 5vw, 3.5rem);
 color: var(--white-color);
}

.blog-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 2.5rem;
 margin-top: 2rem;
}

.blog-post-card {
 background-color: var(--white-color);
 border-radius: 8px;
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
 overflow: hidden;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 border-bottom: 5px solid var(--accent-color);
}

.blog-post-card:hover {
 transform: translateY(-5px);
 box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.blog-post-content {
 padding: 1.5rem;
}

.blog-post-content h3 {
 font-size: 1.4rem;
 margin-bottom: 0.8rem;
 height: 3.5em; /* Ensure consistent card height for titles */
 overflow: hidden;
}

.blog-meta {
 font-size: 0.85rem;
 color: var(--gray-text-color);
 margin-bottom: 1rem;
 display: flex;
 justify-content: space-between;
}

.blog-post-content p {
 font-size: 0.95rem;
 color: var(--dark-text-color);
 margin-bottom: 1.5rem;
 height: 4.5em; /* Limit paragraph height */
 overflow: hidden;
}

.blog-post-card .read-more {
 display: inline-block;
 color: var(--accent-color);
 font-weight: 600;
 font-size: 0.95rem;
 transition: color 0.3s ease;
}

.blog-post-card .read-more:hover {
 color: var(--primary-color);
 text-decoration: underline;
}

/* Single Blog Post */
.blog-article-section {
 max-width: 800px;
 margin: 0 auto;
 padding: 3rem 1.5rem;
 background-color: var(--white-color);
 box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
 border-radius: 8px;
}

.blog-article-header {
 text-align: center;
 margin-bottom: 2rem;
}

.blog-article-header h1 {
 font-size: clamp(2rem, 4vw, 3rem);
 color: var(--primary-color);
 margin-bottom: 0.5rem;
}

.blog-article-meta {
 font-size: 0.9rem;
 color: var(--gray-text-color);
 margin-bottom: 1.5rem;
}

.blog-article-meta span {
 margin: 0 0.5rem;
}

.blog-article-image {
 width: 100%;
 height: 400px;
 object-fit: cover;
 border-radius: 8px;
 margin-bottom: 2rem;
 border: 1px solid var(--border-color);
}

.blog-article-content p {
 margin-bottom: 1.5rem;
 font-size: 1.1rem;
 line-height: 1.7;
 color: var(--dark-text-color);
}

.blog-article-content h2,
.blog-article-content h3 {
 color: var(--primary-color);
 margin-top: 2rem;
 margin-bottom: 1rem;
 font-size: clamp(1.4rem, 2.5vw, 2.2rem);
 text-align: left;
 padding-bottom: 0.3em;
}

.blog-article-content h2::after,
.blog-article-content h3::after {
 left: 0;
 transform: none;
 width: 40px;
 height: 3px;
}

.author-box {
 display: flex;
 align-items: center;
 gap: 1.5rem;
 margin-top: 3rem;
 padding: 1.5rem;
 background-color: var(--light-bg-color);
 border-radius: 8px;
 border-left: 5px solid var(--accent-color);
}

.author-box img {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 object-fit: cover;
 border: 2px solid var(--primary-color);
}

.author-info h4 {
 margin-bottom: 0.2rem;
 font-size: 1.2rem;
 color: var(--primary-color);
}

.author-info p {
 font-size: 0.9rem;
 color: var(--gray-text-color);
 margin-bottom: 0;
}

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

.related-posts h2 {
 font-size: 1.8rem;
 margin-bottom: 2rem;
}

.related-posts .blog-grid {
 margin-top: 0;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Gallery page */
.gallery-hero {
 background: linear-gradient(rgba(12, 74, 110, 0.8), rgba(56, 189, 248, 0.6)), url('assets/img-f3a5dfb5.jpg') no-repeat center center/cover;
 height: 40vh;
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--white-color);
 text-align: center;
}
.gallery-hero h1 {
 font-size: clamp(2.5rem, 5vw, 3.5rem);
 color: var(--white-color);
}

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

.gallery-item {
 cursor: pointer;
 overflow: hidden;
 border-radius: 8px;
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
 position: relative;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.gallery-item-title {
 position: absolute;
 bottom: 0;
 left: 0;
 right: 0;
 background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
 color: var(--white-color);
 padding: 1rem;
 font-weight: 600;
 font-size: 1.1rem;
 text-align: center;
 opacity: 0;
 transition: opacity 0.3s ease;
}

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

/* 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.9);
 justify-content: center;
 align-items: center;
}

.lightbox-content {
 max-width: 90%;
 max-height: 90%;
 object-fit: contain;
 border-radius: 8px;
 box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

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

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

/* FAQ Page */
.faq-hero {
 background: linear-gradient(rgba(12, 74, 110, 0.8), rgba(56, 189, 248, 0.6)), url('assets/img-437f7cd5.jpg') no-repeat center center/cover;
 height: 40vh;
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--white-color);
 text-align: center;
}
.faq-hero h1 {
 font-size: clamp(2.5rem, 5vw, 3.5rem);
 color: var(--white-color);
}

.accordion {
 max-width: 800px;
 margin: 2rem auto;
}

.accordion-item {
 background-color: var(--white-color);
 border: 1px solid var(--border-color);
 border-radius: 8px;
 margin-bottom: 1rem;
 overflow: hidden;
 box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.accordion-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 1.2rem 1.5rem;
 cursor: pointer;
 background-color: var(--light-bg-color);
 border-bottom: 1px solid var(--border-color);
 transition: background-color 0.3s ease;
}

.accordion-header:hover {
 background-color: #eef2f6;
}

.accordion-header h3 {
 margin: 0;
 font-size: 1.15rem;
 color: var(--primary-color);
}

.accordion-icon {
 font-size: 1.5rem;
 color: var(--accent-color);
 transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
 transform: rotate(180deg);
}

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

.accordion-item.active .accordion-content {
 max-height: 200px; /* Adjust as needed for content */
 padding: 1.2rem 1.5rem;
}

.accordion-content p {
 font-size: 1rem;
 color: var(--dark-text-color);
 margin-bottom: 0;
}

/* Legal Pages */
.legal-page-content {
 max-width: 800px;
 margin: 0 auto;
 padding: 2rem 1.5rem;
}

.legal-page-content h1 {
 font-size: clamp(2rem, 4vw, 3rem);
 margin-bottom: 1.5rem;
 color: var(--primary-color);
 text-align: center;
}

.legal-page-content h2 {
 font-size: clamp(1.5rem, 3vw, 2.2rem);
 margin-top: 2rem;
 margin-bottom: 1rem;
 color: var(--primary-color);
 text-align: left;
 padding-bottom: 0.3em;
}

.legal-page-content h2::after {
 left: 0;
 transform: none;
 width: 40px;
 height: 3px;
}

.legal-page-content h3 {
 font-size: clamp(1.2rem, 2.5vw, 1.8rem);
 margin-top: 1.5rem;
 margin-bottom: 0.8rem;
 color: var(--primary-color);
}

.legal-page-content p,
.legal-page-content ul li {
 margin-bottom: 1em;
 font-size: 1rem;
 line-height: 1.7;
 color: var(--dark-text-color);
}

.legal-page-content ul {
 list-style: disc;
 padding-left: 2rem;
 margin-bottom: 1.5rem;
}

.legal-page-content ol {
 list-style: decimal;
 padding-left: 2rem;
 margin-bottom: 1.5rem;
}

/* Thanks Page */
.thanks-container {
 padding: 5rem 1.5rem;
 text-align: center;
 background-color: var(--light-bg-color);
 min-height: 70vh;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
}

.thanks-container h1 {
 color: var(--primary-color);
 font-size: clamp(2.5rem, 5vw, 4rem);
 margin-bottom: 1rem;
}

.thanks-container p {
 font-size: clamp(1.1rem, 2.5vw, 1.5rem);
 color: var(--dark-text-color);
 max-width: 600px;
 margin-bottom: 2rem;
}

.thanks-container .cta-button {
 margin-top: 2rem;
}

/* 404 Page */
.error-container {
 padding: 5rem 1.5rem;
 text-align: center;
 background-color: var(--light-bg-color);
 min-height: 70vh;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
}

.error-container h1 {
 color: var(--primary-color);
 font-size: clamp(4rem, 10vw, 8rem);
 margin-bottom: 0.5rem;
}

.error-container h2 {
 color: var(--accent-color);
 font-size: clamp(2rem, 5vw, 3rem);
 margin-bottom: 1rem;
}

.error-container p {
 font-size: clamp(1rem, 2vw, 1.3rem);
 color: var(--dark-text-color);
 max-width: 500px;
 margin-bottom: 2rem;
}

/* Contact page placeholder icons */
.contact-info p::before {
 font-family: 'Montserrat', sans-serif; /* Using a web-safe font if no icon font is used */
 font-weight: bold;
 color: var(--accent-color);
 font-size: 1.2em; /* Increase size for visibility */
 display: inline-block;
 vertical-align: top;
 line-height: inherit;
 margin-top: 0.1em;
}

.contact-info p:nth-of-type(1)::before { content: ""; margin-left: -1ch; margin-right: 0.5ch; } /* Address */
.contact-info p:nth-of-type(2)::before { content: ""; margin-left: -1ch; margin-right: 0.5ch; } /* Phone */
.contact-info p:nth-of-type(3)::before { content: ""; margin-left: -1ch; margin-right: 0.5ch; } /* Email */
.contact-info p:nth-of-type(4)::before { content: ""; margin-left: -1ch; margin-right: 0.5ch; } /* Hours */
/* If real icons like FontAwesome are available, replace with proper class */

@keyframes gradientAnimation {
 0% { background-position: 0% 50%; }
 50% { background-position: 100% 50%; }
 100% { background-position: 0% 50%; }
}
/* This was a placeholder for hero gradients, actual hero is an image */
/* Keeping for future possible use with a gradient background hero */
.animated-gradient-background {
 background: linear-gradient(-45deg, var(--primary-color), var(--accent-color), #279ed8, #0c4a6e);
 background-size: 400% 400%;
 animation: gradientAnimation 15s ease infinite;
}