/* Base Styles and Variables */
:root {
    --primary-color: #0D47A1;       /* Deep, professional blue */
    --secondary-color: #42A5F5;     /* Bright, accessible blue for actions/highlights */
    --accent-color: #e0f004;        /* Very light blue, for subtle backgrounds or highlights */
    
    --text-color: #212529;          /* Off-black for text on light backgrounds */
    --text-light: #FFFFFF;          /* White for text on dark backgrounds */
    
    --background-body: #FFFFFF;     /* Main body background (white) */
    --background-section-dark: #1A1A1A; /* Dark background (near black) for contrast sections */
    --background-section-light: #F8F9FA; /* Light gray for alternate light sections */
    --background-accent: var(--accent-color); /* Using accent for some light backgrounds */

    --neutral-black: #000000;
    --neutral-white: #FFFFFF;
    --neutral-gray-light: #F1F3F5;    /* Lighter gray */
    --neutral-gray-medium: #CED4DA;   /* Medium gray for borders, dividers */
    --neutral-gray-dark: #495057;     /* Dark gray for less emphasized text or elements */

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06); /* Slightly softer shadow */
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --container-width: 1200px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color); /* Updated */
    background-color: var(--background-body); /* Updated */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color); /* Updated */
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--secondary-color); /* Updated */
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color); /* Updated */
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

p {
    margin-bottom: 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.underline {
    height: 4px;
    width: 70px;
    background: var(--secondary-color); /* Updated */
    margin: 0 auto;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary-color); /* Updated */
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #1E88E5; /* Darker shade of secondary-color for hover */
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color); /* Updated */
    border: 2px solid var(--secondary-color);
}

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

/* Navigation */

.navbar-blog {
    padding: 10px 0; /* Reduced padding for blog navbar */
}

.navbar-blog .nav-menu {
    display: flex !important; /* Ensure flex display for horizontal alignment */
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end; /* Align items to the right */
    padding-top: 0;
    box-shadow: none;
}

.navbar-blog .nav-menu ul {
    display: flex;
    flex-direction: row;
}

.navbar-blog .nav-menu li {
    margin-left: 20px; /* Adjusted margin for horizontal items */
    margin-bottom: 0; /* Remove bottom margin if any from mobile styles */
}

.navbar-blog .menu-toggle {
    display: none !important; /* Hide hamburger menu on blog pages */
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(170, 212, 207, 0.952);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
    padding: 15px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color); /* Updated */
    display: flex; /* Ensure logo image and text are aligned properly */
    align-items: center; /* Vertically align items in the logo container */
    text-decoration: none; /* Remove underline from logo link */
}

.logo a span {
    margin-left: 10px; /* Space between logo image and company name */
    font-size: 1.2rem; /* Adjust company name font size if needed */
}

.header-logo {
    height: 40px; /* Adjust size as needed for the header */
    width: auto;
    /* margin-right: 10px; /* Removed as span now handles spacing */
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu li a {
    color: var(--primary-color); /* Updated */
    font-weight: 500;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color); /* Updated */
    transition: width var(--transition-medium);
}

.nav-menu li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin-bottom: 5px;
    border-radius: 3px;
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('../images/hero-bg.svg') no-repeat center center/cover; /* Adjusted overlay for new palette */
    color: var(--text-light); /* Updated */
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    color: var(--text-light); /* Updated */
    margin-bottom: 20px;
    font-size: 3.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--accent-color); /* Updated */
}

.cta-button {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: var(--border-radius-md);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    text-align: center;
}

.stat-item {
    flex: 1;
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    position: relative;
}

.stat-number::after {
    content: '+';
    font-size: 1.5rem;
    position: absolute;
    top: 0;
}

.stat-label {
    font-size: 1rem;
    color: var(--neutral-gray-dark);
}

/* Services Section */
.services {
    background-color: var(--background-section-light);
}

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

.service-card {
    background-color: #fff;
    border-radius: var(--border-radius-md);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-description {
    height: 0;
    opacity: 0;
    transition: all var(--transition-medium);
    overflow: hidden;
}

.service-card:hover .service-description {
    height: auto;
    opacity: 1;
    margin-top: 15px;
}

/* Why Steloy Section */
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}

.tabs {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid var(--neutral-gray-medium);
    margin-bottom: 30px;
}

.tab {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--neutral-gray-dark);
    position: relative;
    transition: all var(--transition-fast);
}

.tab.active {
    color: var(--secondary-color);
}

.tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width var(--transition-medium);
}

.tab.active::after {
    width: 100%;
}

.tab-content {
    position: relative;
    min-height: 250px;
}

.tab-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    text-align: center;
    padding: 20px;
}

.tab-pane.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.tab-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Case Studies Section */
.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.carousel {
    display: flex;
    transition: transform var(--transition-medium);
}

.carousel-item {
    min-width: 100%;
    padding: 0 15px;
    transition: all var(--transition-medium);
}

.case-study-card {
    background-color: var(--neutral-white); /* Ensure card background is light */
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex; /* Added for better control over content alignment */
    flex-direction: column; /* Stack items vertically */
    height: 100%; /* Ensure cards in a row have same height if needed by grid */
}

.case-study-card > img {
    width: 100%;
    height: 200px; /* Fixed height for the main image */
    object-fit: cover;
}

.case-study-logo {
    padding: 15px 20px 0; /* Add some padding around the logo */
    text-align: center; /* Center the logo if it's smaller than the container */
    background-color: var(--background-section-light); /* Light background for logo area */
    border-bottom: 1px solid var(--neutral-gray-medium);
}

.case-study-logo img {
    max-height: 50px; /* Control the max height of the client logo */
    width: auto;
    max-width: 150px; /* Control max width */
}

.case-study-card h3 {
    color: var(--primary-color);
    margin: 15px 20px 10px;
    font-size: 1.25rem;
}

.case-study-card p {
    color: var(--text-color);
    margin: 0 20px 20px;
    font-size: 0.95rem;
    flex-grow: 1; /* Allow paragraph to take available space */
}

.case-study-card .btn-secondary {
    margin: 0 20px 20px; /* Align button to bottom */
    align-self: flex-start; /* Align button to the start of the cross axis */
}

.case-thumbnail {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.case-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.case-study-card:hover .case-thumbnail img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 71, 161, 0.7); /* Updated: Using primary-color with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.case-study-card:hover .overlay {
    opacity: 1;
}

.read-more {
    color: var(--text-light);
    background-color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.read-more:hover {
    background-color: #1a6fd4;
    color: var(--text-light);
}

.case-content {
    padding: 25px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.prev-btn, .next-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--secondary-color);
}

.carousel-dots {
    display: flex;
    margin: 0 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gray-medium);
    margin: 0 5px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

/* Testimonials Section */
.testimonials {
    background: linear-gradient(135deg, #f5f7fa 0%, #e6f2ff 100%);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.testimonial-item.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.testimonial-content {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0.3;
    margin-bottom: 20px;
}

.client-info {
    margin-top: 30px;
}

.client-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.client-position {
    color: var(--gray-dark);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.client-rating {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.client-logo img {
    max-height: 40px;
    opacity: 0.8;
}

.testimonial-controls {
    text-align: center;
    margin-top: 30px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
}

/* Blog Section on Homepage */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: #fff;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-date {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-cta {
    text-align: center;
    margin-top: 40px;
}

/* CTA Section */
.cta {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0;
}

.cta .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.cta-content {
    flex: 1;
}

.cta-content h2 {
    color: var(--text-light);
}

.contact-form {
    flex: 1;
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

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

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
    align-items: flex-start;
}

.footer-logo {
    flex-basis: 100%; /* Full width on small screens */
    margin-bottom: 20px;
    /* text-align: center; */ /* Center logo on small screens if desired */
}

@media (min-width: 768px) {
    .footer-logo {
        flex-basis: 25%; /* Adjust width for larger screens */
        margin-bottom: 0;
        /* text-align: left; */ /* Align left on larger screens */
    }
}

.footer-logo img {
    max-height: 50px; /* Adjust size as needed for the footer */
    width: auto;
    margin-bottom: 10px;
    display: inline-block; /* Ensure it behaves as expected */
}

/* Ensure the anchor tag in the footer logo wraps only the image */
.footer-logo a {
    display: inline-block; /* Or 'block' if it should take full width of its container part */
    line-height: 0; /* Helps if there's extra space around the image */
}

.footer-logo p {
    font-size: 0.9rem;
    margin-top: 10px; /* Space between logo and tagline */
    color: var(--accent-color); /* Lighter text for tagline */
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    flex: 2;
    justify-content: space-around;
}

.footer-column {
    min-width: 160px;
    margin-bottom: 30px;
}

.footer-column h4 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-column ul li a {
    color: var(--gray-medium);
    transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--text-light);
}

.footer-column ul li a i {
    margin-right: 8px;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        flex: none;
        width: 100%;
    }
    
    .about-image {
        margin-top: 40px;
    }
    
    .cta .container {
        flex-direction: column;
    }
    
    .cta-content, .contact-form {
        flex: none;
        width: 100%;
    }
    
    .cta-content {
        margin-bottom: 40px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: left var(--transition-medium);
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .stats-container {
        flex-direction: column;
    }
    
    .stat-item {
        margin-bottom: 20px;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 30px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Individual Blog Post Page Styles */
.blog-post-page {
    padding-top: 100px; /* Adjust based on navbar height */
    padding-bottom: 60px;
}

.blog-post-page .container {
    max-width: 800px; /* Narrower container for readability */
}

.blog-post-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-post-header h1 {
    font-size: 2.8rem; /* Slightly smaller than homepage h1 */
    color: var(--primary-color);
    margin-bottom: 15px;
}

.blog-post-header .blog-meta {
    font-size: 0.9rem;
    color: var(--neutral-gray-dark);
    margin-bottom: 30px;
}

.blog-post-header .blog-meta span {
    margin: 0 5px;
}

.blog-post-banner {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: 40px;
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.blog-post-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content ul, .blog-post-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.blog-post-content li {
    margin-bottom: 10px;
}

.blog-post-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.blog-post-content a:hover {
    color: var(--primary-color);
}

.blog-post-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--neutral-gray-dark);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
    align-items: flex-start;
}

.footer-logo {
    flex-basis: 100%; /* Full width on small screens */
    margin-bottom: 20px;
    /* text-align: center; */ /* Center logo on small screens if desired */
}

@media (min-width: 768px) {
    .footer-logo {
        flex-basis: 25%; /* Adjust width for larger screens */
        margin-bottom: 0;
        /* text-align: left; */ /* Align left on larger screens */
    }
}

.footer-logo img {
    max-height: 50px; /* Adjust size as needed for the footer */
    width: auto;
    margin-bottom: 10px;
    display: inline-block; /* Ensure it behaves as expected */
}

/* Ensure the anchor tag in the footer logo wraps only the image */
.footer-logo a {
    display: inline-block; /* Or 'block' if it should take full width of its container part */
    line-height: 0; /* Helps if there's extra space around the image */
}

.footer-logo p {
    font-size: 0.9rem;
    margin-top: 10px; /* Space between logo and tagline */
    color: var(--accent-color); /* Lighter text for tagline */
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    flex: 2;
    justify-content: space-around;
}

.footer-column {
    min-width: 160px;
    margin-bottom: 30px;
}

.footer-column h4 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-column ul li a {
    color: var(--gray-medium);
    transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--text-light);
}

.footer-column ul li a i {
    margin-right: 8px;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        flex: none;
        width: 100%;
    }
    
    .about-image {
        margin-top: 40px;
    }
    
    .cta .container {
        flex-direction: column;
    }
    
    .cta-content, .contact-form {
        flex: none;
        width: 100%;
    }
    
    .cta-content {
        margin-bottom: 40px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: left var(--transition-medium);
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .stats-container {
        flex-direction: column;
    }
    
    .stat-item {
        margin-bottom: 20px;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 30px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Individual Blog Post Page Styles */
.blog-post-page {
    padding-top: 100px; /* Adjust based on navbar height */
    padding-bottom: 60px;
}

.blog-post-page .container {
    max-width: 800px; /* Narrower container for readability */
}

.blog-post-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-post-header h1 {
    font-size: 2.8rem; /* Slightly smaller than homepage h1 */
    color: var(--primary-color);
    margin-bottom: 15px;
}

.blog-post-header .blog-meta {
    font-size: 0.9rem;
    color: var(--neutral-gray-dark);
    margin-bottom: 30px;
}

.blog-post-header .blog-meta span {
    margin: 0 5px;
}

.blog-post-banner {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: 40px;
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.blog-post-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content ul, .blog-post-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.blog-post-content li {
    margin-bottom: 10px;
}

.blog-post-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.blog-post-content a:hover {
    color: var(--primary-color);
}

.blog-post-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--neutral-gray-dark);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
    align-items: flex-start;
}

.footer-logo {
    flex-basis: 100%; /* Full width on small screens */
    margin-bottom: 20px;
    /* text-align: center; */ /* Center logo on small screens if desired */
}

@media (min-width: 768px) {
    .footer-logo {
        flex-basis: 25%; /* Adjust width for larger screens */
        margin-bottom: 0;
        /* text-align: left; */ /* Align left on larger screens */
    }
}

.footer-logo img {
    max-height: 50px; /* Adjust size as needed for the footer */
    width: auto;
    margin-bottom: 10px;
    display: inline-block; /* Ensure it behaves as expected */
}

/* Ensure the anchor tag in the footer logo wraps only the image */
.footer-logo a {
    display: inline-block; /* Or 'block' if it should take full width of its container part */
    line-height: 0; /* Helps if there's extra space around the image */
}

.footer-logo p {
    font-size: 0.9rem;
    margin-top: 10px; /* Space between logo and tagline */
    color: var(--accent-color); /* Lighter text for tagline */
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    flex: 2;
    justify-content: space-around;
}

.footer-column {
    min-width: 160px;
    margin-bottom: 30px;
}

.footer-column h4 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-column ul li a {
    color: var(--gray-medium);
    transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--text-light);
}

.footer-column ul li a i {
    margin-right: 8px;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        flex: none;
        width: 100%;
    }
    
    .about-image {
        margin-top: 40px;
    }
    
    .cta .container {
        flex-direction: column;
    }
    
    .cta-content, .contact-form {
        flex: none;
        width: 100%;
    }
    
    .cta-content {
        margin-bottom: 40px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: left var(--transition-medium);
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .stats-container {
        flex-direction: column;
    }
    
    .stat-item {
        margin-bottom: 20px;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 30px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Individual Blog Post Page Styles */
.blog-post-page {
    padding-top: 100px; /* Adjust based on navbar height */
    padding-bottom: 60px;
}

.blog-post-page .container {
    max-width: 800px; /* Narrower container for readability */
}

.blog-post-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-post-header h1 {
    font-size: 2.8rem; /* Slightly smaller than homepage h1 */
    color: var(--primary-color);
    margin-bottom: 15px;
}

.blog-post-header .blog-meta {
    font-size: 0.9rem;
    color: var(--neutral-gray-dark);
    margin-bottom: 30px;
}

.blog-post-header .blog-meta span {
    margin: 0 5px;
}

.blog-post-banner {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: 40px;
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.blog-post-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content ul, .blog-post-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.blog-post-content li {
    margin-bottom: 10px;
}

.blog-post-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.blog-post-content a:hover {
    color: var(--primary-color);
}

.blog-post-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--neutral-gray-dark);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
    align-items: flex-start;
}

.footer-logo {
    flex-basis: 100%; /* Full width on small screens */
    margin-bottom: 20px;
    /* text-align: center; */ /* Center logo on small screens if desired */
}

@media (min-width: 768px) {
    .footer-logo {
        flex-basis: 25%; /* Adjust width for larger screens */
        margin-bottom: 0;
        /* text-align: left; */ /* Align left on larger screens */
    }
}

.footer-logo img {
    max-height: 50px; /* Adjust size as needed for the footer */
    width: auto;
    margin-bottom: 10px;
    display: inline-block; /* Ensure it behaves as expected */
}

/* Ensure the anchor tag in the footer logo wraps only the image */
.footer-logo a {
    display: inline-block; /* Or 'block' if it should take full width of its container part */
    line-height: 0; /* Helps if there's extra space around the image */
}

.footer-logo p {
    font-size: 0.9rem;
    margin-top: 10px; /* Space between logo and tagline */
    color: #FFFFFF; /* Lighter text for tagline */
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    flex: 2;
    justify-content: space-around;
}

.footer-column {
    min-width: 160px;
    margin-bottom: 30px;
}

.footer-column h4 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-column ul li a {
    color: var(--gray-medium);
    transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--text-light);
}