﻿/* General Variables & Base Styles */
:root {
    --primary-color: #004080; /* Slightly darker, richer blue */
    --secondary-color: #F0F4F8; /* Light gray with a hint of blue */
    --accent-color: #FFC107; /* Brighter, more vibrant gold/yellow */
    --text-color: #2C3E50; /* Darker, softer black for better readability */
    --light-text-color: #7F8C8D; /* Muted gray */
    --white-color: #FFFFFF;
    --border-color: #E6EBF0; /* Lighter, subtle border */
    --header-height: 70px; /* Slightly taller header */
    --mobile-nav-width: 280px; /* Slightly wider mobile menu */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --box-shadow-light: 0 4px 10px rgba(0, 0, 0, 0.08);
    --box-shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.12);
    --transition-speed: 0.3s;
}

/* Base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif; /* Modern sans-serif font */
    font-size: 0.95em; /* Slightly smaller base font size */
    color: var(--text-color);
    line-height: 1.7; /* Increased line-height for readability */
    background-color: var(--secondary-color); /* Use secondary color for background */
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased; /* Smoother font rendering */
    -moz-osx-font-smoothing: grayscale;
}

/* Add Inter font import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');


.container {
    max-width: 1280px; /* Slightly wider container */
    margin: 0 auto;
    padding: 0 25px; /* Increased padding */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700; /* Bolder headings */
}

h2 {
    font-size: 2.5em; /* Smaller section titles */
    margin-bottom: 30px; /* More spacing below titles */
    text-align: center;
    position: relative;
    padding-bottom: 8px;
}

    h2::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 50px; /* Slightly smaller underline */
        height: 3px; /* Slightly thinner underline */
        background-color: var(--accent-color);
        border-radius: 2px;
    }

.btn {
    display: inline-block;
    padding: 12px 25px; /* Smaller buttons */
    border-radius: var(--border-radius-sm); /* Consistent rounded corners */
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background-color var(--transition-speed) ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1em; /* Smaller font size for buttons */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 5px 15px rgba(0, 64, 128, 0.2); /* Shadow for primary button */
}

    .btn-primary:hover {
        background-color: #003366; /* Slightly darker on hover */
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 64, 128, 0.3);
    }

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.2); /* Shadow for secondary button */
}

    .btn-secondary:hover {
        background-color: #E6B000; /* Slightly darker on hover */
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
    }

.text-center {
    text-align: center;
}

/* Header */
.main-header {
    background: linear-gradient(to right, var(--primary-color), #0056B3); /* Subtle gradient */
    color: var(--white-color);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow-light);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

    .main-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

.logo a {
    color: var(--white-color);
    text-decoration: none;
    font-size: 1.8em; /* Smaller logo font size */
    font-weight: 700;
    letter-spacing: -0.5px;
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
    justify-content: flex-end;
}

    .main-nav .nav-list li {
        margin-left: 25px; /* Slightly less spacing between nav items */
    }

    .main-nav .nav-list a {
        color: rgba(255, 255, 255, 0.9); /* Slightly translucent */
        text-decoration: none;
        font-weight: 600;
        transition: color var(--transition-speed) ease, transform 0.2s ease, box-shadow 0.2s ease;
        padding: 5px 0;
        position: relative;
        font-size: 0.95em; /* Smaller font size for navigation links */
    }

        .main-nav .nav-list a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 0%;
            height: 3px;
            background-color: var(--accent-color);
            transition: width var(--transition-speed) ease;
            border-radius: 2px;
        }

        .main-nav .nav-list a:hover {
            color: var(--white-color);
            transform: translateY(-2px);
        }

            .main-nav .nav-list a:hover::after,
            .main-nav .nav-list a.active-link::after { /* Add active state for current page */
                width: 100%;
            }

/* Language Switcher (Desktop) */
.language-switcher {
    position: relative;
    margin-left: 25px;
    display: flex;
    align-items: center;
    z-index: 10;
}

.lang-dropdown-toggle {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 8px 12px; /* Smaller padding */
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color var(--transition-speed) ease, transform 0.2s ease;
    font-size: 0.95em; /* Smaller font size for language toggle */
}

    .lang-dropdown-toggle:hover {
        background-color: #E6B000;
        transform: translateY(-1px);
    }

.lang-dropdown-menu {
    list-style: none;
    position: absolute;
    top: calc(100% + 6px); /* Less space from button */
    left: 0;
    background-color: var(--white-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--box-shadow-light);
    min-width: 120px; /* Slightly narrower */
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

    .lang-dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.lang-option {
    padding: 10px 15px; /* Smaller options */
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
    font-size: 0.9em; /* Smaller font for options */
}

    .lang-option:hover {
        background-color: var(--secondary-color);
        color: var(--primary-color);
    }

    .lang-option.active {
        background-color: var(--primary-color);
        color: var(--white-color);
        font-weight: 700;
    }

/* Hamburger menu */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px; /* Smaller padding */
    z-index: 1001;
    margin-left: 15px; /* Less margin */
    transition: all var(--transition-speed) ease;
}

    .hamburger-menu:hover {
        transform: scale(1.1);
    }

    .hamburger-menu .bar {
        display: block;
        width: 25px; /* Smaller bars */
        height: 3px; /* Thinner bars */
        background-color: var(--white-color);
        margin: 4px auto; /* Less spacing between bars */
        transition: all var(--transition-speed) ease-in-out;
        border-radius: 2px;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: var(--mobile-nav-width);
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), #0056B3); /* Gradient for mobile menu */
    box-shadow: 2px 0 10px rgba(0,0,0,0.4);
    transition: left var(--transition-speed) ease-in-out;
    z-index: 999;
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

    .mobile-menu-overlay.active {
        left: 0;
    }

.mobile-nav ul {
    list-style: none;
    padding: 25px 15px; /* Less padding */
    text-align: center;
    width: 100%;
}

.mobile-nav li {
    margin-bottom: 15px; /* Less spacing */
}

.mobile-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.15em; /* Smaller font size for mobile nav links */
    display: block;
    padding: 10px 0;
    transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
}

    .mobile-nav a:hover {
        color: var(--accent-color);
        background-color: rgba(0, 0, 0, 0.1);
    }

/* Mobile Language Switcher */
.language-switcher-mobile {
    display: none;
    justify-content: center;
    width: 100%;
    padding: 20px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 25px;
    gap: 10px; /* Less spacing between buttons */
}

.lang-btn-mobile {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
    font-size: 0.9em; /* Smaller font size for mobile language buttons */
}

    .lang-btn-mobile.active {
        background-color: var(--white-color);
        color: var(--primary-color);
        border: 2px solid var(--accent-color); /* Stronger active state */
    }

/* Main Content Padding */
main {
    padding-top: var(--header-height);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 500px; /* Slightly smaller hero height */
    overflow: hidden;
    background-color: #000;
    display: flex; /* Make it a flex container to center content */
    align-items: center;
    justify-content: center;
}

.hero-carousel {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    text-align: center;
    /* Add a subtle overlay to ensure text readability */
    &::before

{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45); /* Darker overlay */
    z-index: 1;
}

}

.carousel-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px; /* Slightly narrower content area */
    padding: 30px; /* Less padding */
    background-color: rgba(0, 0, 0, 0.55); /* Slightly darker overlay for content */
    border-radius: var(--border-radius-md); /* More rounded corners */
    backdrop-filter: blur(5px); /* Subtle blur effect */
    box-shadow: var(--box-shadow-medium);
}

    .hero-content h1 {
        font-size: 3em; /* Smaller hero title */
        margin-bottom: 20px;
        color: var(--white-color);
        font-weight: 800; /* Extra bold */
        text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    }

    .hero-content p {
        font-size: 1.1em; /* Smaller hero subtitle */
        margin-bottom: 30px;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 300; /* Lighter weight for readability */
    }

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6); /* Darker controls */
    color: var(--white-color);
    border: none;
    padding: 10px 15px; /* Smaller buttons */
    cursor: pointer;
    font-size: 1.2em; /* Smaller icon size */
    z-index: 5;
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-speed) ease, transform 0.2s ease;
}

    .carousel-nav-btn:hover {
        background-color: rgba(0, 0, 0, 0.8);
        transform: translateY(-50%) scale(1.05);
    }

    .carousel-nav-btn.prev {
        left: 20px;
    }

    .carousel-nav-btn.next {
        right: 20px;
    }

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px; /* Less spacing between dots */
}

.dot {
    width: 10px; /* Smaller dots */
    height: 10px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, transform 0.2s ease;
}

    .dot.active {
        background-color: var(--accent-color);
        transform: scale(1.2);
    }


/* Our Services Section */
.services-overview-section {
    padding: 70px 0; /* Slightly less vertical padding */
    background-color: var(--secondary-color);
}

.service-cards {
    display: grid; /* Use grid for better control */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min-width */
    justify-content: center;
    gap: 25px; /* Less gap */
    margin-top: 35px;
}

.service-card {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md); /* More rounded corners */
    padding: 30px; /* Less padding */
    text-align: center;
    box-shadow: var(--box-shadow-light);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--box-shadow-medium);
    }

    .service-card i.fas {
        font-size: 3em; /* Smaller icons */
        color: var(--primary-color); /* Updated icon color to primary */
        margin-bottom: 18px; /* Less margin */
        transition: color var(--transition-speed) ease; /* Added transition for color */
    }

    .service-card:hover i.fas {
        color: var(--accent-color); /* Change icon color on hover */
    }

    .service-card h3 {
        margin-bottom: 15px;
        font-size: 1.4em; /* Smaller heading */
        font-weight: 700;
        white-space: normal; /* Allow text to wrap naturally */
        overflow: visible;
        text-overflow: initial;
    }

    .service-card p {
        font-size: 0.95em; /* Smaller paragraph size */
        margin-bottom: 25px;
        flex-grow: 1; /* Allows text to take available space */
        color: var(--text-color);
    }

/* How It Works Section */
.how-it-works-section {
    padding: 70px 0; /* Slightly less padding */
    background-color: var(--white-color);
}

.process-steps {
    display: grid; /* Use grid for better control */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Adjusted min-width */
    justify-content: center;
    gap: 25px; /* Less gap */
    margin-top: 35px;
}

.process-step {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 25px; /* Less padding */
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    box-shadow: var(--box-shadow-light);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

    .process-step:hover {
        transform: translateY(-8px);
        box-shadow: var(--box-shadow-medium);
    }

    .process-step .step-number {
        background: linear-gradient(to right, var(--primary-color), #0056B3); /* Gradient for number circle */
        color: var(--white-color);
        border-radius: 50%;
        width: 50px; /* Slightly smaller circle */
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.6em; /* Smaller number */
        font-weight: 700;
        margin: 0 auto 20px; /* Less spacing */
        box-shadow: 0 4px 10px rgba(0, 64, 128, 0.2);
    }

    .process-step h3 {
        margin-bottom: 12px;
        font-size: 1.3em; /* Smaller font size */
        font-weight: 600;
    }

/* Team Section (on index.html) */
.team-section {
    padding: 70px 0;
    background-color: var(--secondary-color);
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Adjusted min-width */
    justify-content: center;
    gap: 30px; /* Less gap */
    margin-top: 35px;
}

.team-member {
    text-align: center;
    padding: 25px; /* Less padding */
    background-color: var(--white-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-light);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

    .team-member:hover {
        transform: translateY(-8px);
        box-shadow: var(--box-shadow-medium);
    }

    .team-member .img-container {
        /* Larger and square for index.html */
        width: 200px; /* Increased size */
        height: 200px; /* Increased size */
        margin: 0 auto 20px;
        position: relative;
        overflow: hidden;
        border-radius: var(--border-radius-md); /* Keep square corners */
        border: 3px solid #34495E; /* Changed to a dark grey border */
        box-shadow: 0 0 0 4px rgba(52, 73, 94, 0.15); /* Subtle glow effect matching new border */
    }

    .team-member img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center; /* Center the image within the container */
        border-radius: var(--border-radius-md); /* Match container radius */
    }

    .team-member h3 {
        margin-bottom: 6px;
        font-size: 1.6em; /* Smaller font size */
        font-weight: 700;
    }

    .team-member p {
        color: var(--light-text-color);
        font-size: 0.9em; /* Smaller font size */
        margin-bottom: 12px;
    }

    .team-member .member-description {
        font-size: 0.85em; /* Smaller font size */
        color: var(--text-color);
        line-height: 1.6;
    }

/* Styles for MEIST.HTML - Larger Team Member Pics */
.team-full-page-section {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 40px;
    background-color: var(--secondary-color);
    min-height: calc(100vh - var(--header-height) - 100px);
}

    .team-full-page-section h2 {
        margin-bottom: 40px;
        color: var(--primary-color);
        text-align: center;
    }

    .team-full-page-section .team-members {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 40px;
        justify-content: center;
        align-items: flex-start;
        margin-top: 30px;
    }

    .team-full-page-section .team-member {
        background-color: var(--white-color);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--box-shadow-medium);
        padding: 35px;
        text-align: center;
        transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    }

        .team-full-page-section .team-member:hover {
            transform: translateY(-8px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.25);
        }

        .team-full-page-section .team-member .img-container {
            width: 100%; /* Take full width of the card */
            padding-top: 75%; /* 4:3 Aspect Ratio (height = 75% of width) */
            position: relative;
            overflow: hidden;
            border-radius: var(--border-radius-md); /* Consistent rounded corners */
            margin: 0 auto 30px;
            border: 3px solid var(--accent-color); /* Thinner accent border */
            box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2); /* Subtle outer glow */
        }

        .team-full-page-section .team-member img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover; /* Ensures image covers the container */
            object-position: center center; /* Center the image within the container */
            border-radius: var(--border-radius-md); /* Match container radius */
        }

        .team-full-page-section .team-member h3 {
            font-size: 2.2em;
            margin-bottom: 10px;
            font-weight: 800;
        }

        .team-full-page-section .team-member p {
            font-size: 1.15em;
            font-weight: 500;
            color: var(--light-text-color);
            margin-bottom: 18px;
        }

        .team-full-page-section .team-member .member-description {
            font-size: 1em;
            line-height: 1.7;
            color: var(--text-color);
        }


/* Why Choose Us Section */
.why-choose-us-section {
    padding: 70px 0;
    background-color: var(--white-color);
}

.reason-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Adjusted min-width */
    justify-content: center;
    gap: 25px;
    margin-top: 35px;
}

.reason-card {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow-light);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

    .reason-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--box-shadow-medium);
    }

    .reason-card i.fas {
        font-size: 3em; /* Smaller icons */
        color: var(--primary-color);
        margin-bottom: 18px;
    }

    .reason-card h3 {
        margin-bottom: 12px;
        font-size: 1.4em; /* Smaller font size */
        font-weight: 600;
    }

    .reason-card p {
        font-size: 0.95em; /* Smaller font size */
        color: var(--text-color);
    }


/* Blog Preview Section */
.blog-preview-section {
    padding: 70px 0;
    background-color: var(--secondary-color);
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min-width */
    justify-content: center;
    gap: 25px;
    margin-top: 35px;
}

.blog-post-card {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 25px; /* Less padding */
    box-shadow: var(--box-shadow-light);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .blog-post-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--box-shadow-medium);
    }

    .blog-post-card h3 {
        margin-bottom: 10px;
        font-size: 1.3em; /* Smaller font size */
        font-weight: 600;
    }

        .blog-post-card h3 a {
            color: var(--primary-color);
            text-decoration: none;
            transition: color var(--transition-speed) ease;
        }

            .blog-post-card h3 a:hover {
                color: var(--accent-color);
                text-decoration: underline;
            }

    .blog-post-card .post-meta {
        font-size: 0.85em; /* Smaller font size */
        color: var(--light-text-color);
        margin-bottom: 15px;
    }

    .blog-post-card p {
        font-size: 0.9em; /* Smaller font size */
        color: var(--text-color);
        margin-bottom: 20px;
        flex-grow: 1;
        line-height: 1.6;
    }

    .blog-post-card .btn-primary {
        align-self: flex-start;
    }

/* Styles for blog.html specific elements */
.blog-content-section {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 70px; /* Added padding to bottom */
    background-color: var(--secondary-color);
    min-height: calc(100vh - var(--header-height) - 100px);
}

.blog-post-full {
    background-color: var(--white-color);
    padding: 35px; /* Less padding */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-medium);
    margin-bottom: 35px;
    max-width: 850px; /* Slightly narrower */
    margin-left: auto;
    margin-right: auto;
}

    .blog-post-full h1 {
        font-size: 2.5em; /* Smaller font size */
        margin-bottom: 18px;
        color: var(--primary-color);
        text-align: center;
        font-weight: 800;
    }

    .blog-post-full .post-meta {
        font-size: 0.9em; /* Smaller font size */
        color: var(--light-text-color);
        margin-bottom: 25px;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 15px;
        text-align: center;
        font-weight: 500;
    }

        .blog-post-full .post-meta i {
            margin-right: 6px;
            color: var(--accent-color);
        }

    .blog-post-full .post-content p {
        margin-bottom: 1.6em;
        line-height: 1.7;
        font-size: 1.05em; /* Smaller font size */
        color: var(--text-color);
    }

/* Updated blog post list item styling */
.blog-post-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusted min-width for columns */
    gap: 30px; /* Increased gap for better spacing */
    justify-content: center;
    padding: 0 25px;
    max-width: 1280px;
    margin: 0 auto;
}

.blog-post-list-item { /* Changed from .blog-post-list-container .post-list-item */
    background-color: var(--white-color);
    padding: 30px; /* More padding for a modern feel */
    border-radius: var(--border-radius-lg); /* Larger rounded corners */
    box-shadow: var(--box-shadow-light); /* Softer shadow */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: none; /* Remove explicit border, rely on shadow */
}

    .blog-post-list-item:hover {
        transform: translateY(-10px); /* More pronounced lift on hover */
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
    }

    .blog-post-list-item h3 {
        font-size: 1.5em; /* Slightly larger heading */
        margin-bottom: 12px;
        font-weight: 700;
    }

        .blog-post-list-item h3 a {
            text-decoration: none;
            color: var(--primary-color);
            transition: color var(--transition-speed) ease;
        }

            .blog-post-list-item h3 a:hover {
                color: var(--accent-color);
                text-decoration: underline;
            }

    .blog-post-list-item .post-meta {
        font-size: 0.85em;
        color: var(--light-text-color);
        margin-bottom: 18px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .blog-post-list-item .post-meta i {
            color: var(--primary-color); /* Icons match primary color */
        }

    .blog-post-list-item p {
        font-size: 0.95em; /* Slightly larger paragraph text */
        color: var(--text-color);
        margin-bottom: 25px; /* More space before button */
        flex-grow: 1;
        line-height: 1.6;
    }

    .blog-post-list-item .btn-primary {
        align-self: flex-start;
        padding: 10px 20px; /* Slightly smaller button for cards */
        font-size: 0.9em;
    }


/* Services full page */
.services-full-page-section {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 40px; /* Adjusted to be more balanced */
    background-color: var(--secondary-color);
    min-height: calc(100vh - var(--header-height) - 100px);
}

    .services-full-page-section h2 {
        margin-bottom: 40px;
        color: var(--primary-color);
        text-align: center;
    }

.service-detail-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusted min-width */
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

.service-detail-card {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-light);
    padding: 30px; /* Less padding */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

    .service-detail-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--box-shadow-medium);
    }

    .service-detail-card i.fas {
        font-size: 4em; /* Smaller icons */
        color: var(--accent-color);
        margin-bottom: 20px;
    }

    .service-detail-card h3 {
        font-size: 1.8em; /* Smaller heading */
        margin-bottom: 15px;
        color: var(--primary-color);
        font-weight: 700;
    }

    .service-detail-card p {
        font-size: 1em; /* Smaller font size */
        color: var(--text-color);
        margin-bottom: 20px;
        flex-grow: 1;
        line-height: 1.7;
    }

/* Calculator removed message styles */
.calculator-removed-message {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-medium);
    padding: 35px; /* Less padding */
    width: 100%;
    max-width: 650px; /* Slightly narrower */
    text-align: center;
    color: var(--text-color);
    font-size: 1.2em; /* Smaller font size */
    margin: 40px auto; /* Centered with less margin */
    line-height: 1.8;
}

/* FAQ Section */
.faq-section {
    padding: 70px 0;
    background-color: var(--secondary-color); /* Changed to light grey */
}

.faq-items {
    margin-top: 35px;
    max-width: 850px; /* Slightly narrower */
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background-color: var(--white-color); /* Changed to white */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    margin-bottom: 12px; /* Less spacing */
    overflow: hidden;
    box-shadow: var(--box-shadow-light);
}

.faq-toggle {
    display: flex; /* Use flexbox for alignment */
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 18px 22px; /* Less padding */
    font-size: 1.1em; /* Smaller font size */
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
    transition: background-color var(--transition-speed) ease;
}

    .faq-toggle:hover {
        background-color: #EBF2F7; /* Lighter hover state */
    }

    .faq-toggle h3 {
        margin: 0; /* Remove default margin */
        flex-grow: 1;
    }

    .faq-toggle::after {
        content: '\2b'; /* Plus icon */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 1.2em; /* Smaller icon */
        color: var(--accent-color);
        transition: transform var(--transition-speed) ease;
    }

    .faq-toggle.active::after {
        content: '\2212'; /* Minus icon */
        transform: rotate(180deg);
    }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    padding: 0 22px; /* Less padding */
    background-color: var(--white-color); /* White background for answer */
    border-top: 1px solid var(--border-color);
}

    .faq-answer.active {
        max-height: 1000px; /* Set a sufficiently large fixed height for full text visibility */
        padding: 18px 22px 22px; /* Less padding when open */
    }

/* Useful Links Section */
.useful-links-section {
    padding: 70px 0;
    background-color: var(--white-color); /* Changed to white */
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Adjusted min-width */
    justify-content: center;
    gap: 25px;
    margin-top: 35px;
}

.link-card {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 25px; /* Less padding */
    text-align: center;
    box-shadow: var(--box-shadow-light);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .link-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--box-shadow-medium);
    }

    .link-card h3 {
        margin-bottom: 10px;
        font-size: 1.3em; /* Smaller font size */
        font-weight: 600;
    }

        .link-card h3 a {
            color: var(--primary-color);
            text-decoration: none;
            transition: color var(--transition-speed) ease;
        }

            .link-card h3 a:hover {
                color: var(--accent-color);
                text-decoration: underline;
            }

    .link-card p {
        color: var(--light-text-color);
        font-size: 0.9em; /* Smaller font size */
        line-height: 1.6;
    }

/* Contact Section */
.contact-section {
    padding: 70px 0;
    background-color: var(--white-color); /* Changed to white */
}

    .contact-section p {
        font-size: 1.05em; /* Smaller font size */
        margin-bottom: 20px;
        color: var(--text-color);
        text-align: center;
    }

.contact-info {
    font-size: 1em; /* Smaller font size */
    margin-bottom: 25px;
}

    .contact-info p {
        margin-bottom: 8px; /* Adjust spacing for contact info */
        font-size: 0.95em; /* Smaller font size */
    }

    .contact-info i {
        color: var(--accent-color);
        margin-right: 8px;
    }

.map-container {
    margin-top: 35px;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-medium);
    max-width: 850px; /* Slightly narrower */
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color); /* Subtle border for map */
}

    .map-container iframe {
        width: 100%;
        height: 350px; /* Slightly shorter map */
        display: block;
        border: none; /* Remove iframe default border */
    }

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 40px 0 25px; /* Less padding */
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Adjusted min-width */
    gap: 25px; /* Less gap */
    margin-bottom: 35px;
}

.footer-col {
    padding: 8px; /* Less padding to columns */
}

    .footer-col h3 {
        color: var(--white-color);
        margin-bottom: 20px;
        font-size: 1.2em; /* Smaller font size */
        font-weight: 700;
    }

    .footer-col p, .footer-col ul {
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.9em; /* Smaller font size */
        line-height: 1.7;
    }

    .footer-col ul {
        list-style: none;
        padding: 0;
    }

        .footer-col ul li {
            margin-bottom: 10px;
        }

            .footer-col ul li a {
                color: rgba(255, 255, 255, 0.85);
                text-decoration: none;
                transition: color var(--transition-speed) ease;
            }

                .footer-col ul li a:hover {
                    color: var(--accent-color);
                    text-decoration: underline;
                }

.footer-bottom {
    text-align: center;
    margin-top: 35px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8em; /* Smaller font size */
}

/* Price List Page Specific Styles */
.price-list-section {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 70px;
    background-color: var(--secondary-color);
    min-height: calc(100vh - var(--header-height) - 100px);
    text-align: center;
}

    .price-list-section h2 {
        margin-bottom: 40px;
        color: var(--primary-color);
    }

.price-list-table {
    width: 100%;
    max-width: 850px; /* Slightly narrower table */
    margin: 0 auto;
    border-collapse: separate; /* Allows border-radius on table */
    border-spacing: 0; /* Remove space between cells */
    background-color: var(--white-color);
    box-shadow: var(--box-shadow-medium);
    border-radius: var(--border-radius-lg); /* More rounded corners for table */
    overflow: hidden; /* Ensures rounded corners apply to content */
}

    .price-list-table th,
    .price-list-table td {
        padding: 18px 22px; /* Less padding */
        border-bottom: 1px solid var(--border-color);
        text-align: left;
    }

    .price-list-table th {
        background-color: var(--primary-color);
        color: var(--white-color);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 1.1em; /* Smaller font size */
    }

    /* Rounded corners for table header cells */
    .price-list-table thead tr:first-child th:first-child {
        border-top-left-radius: var(--border-radius-lg);
    }

    .price-list-table thead tr:first-child th:last-child {
        border-top-right-radius: var(--border-radius-lg);
    }

    .price-list-table tr:nth-child(even) {
        background-color: #F8FBFD; /* Lighter alternate row */
    }

    .price-list-table tr:hover {
        background-color: #EBF2F7; /* Subtle hover effect */
    }

    .price-list-table td:last-child {
        font-weight: 600;
        color: var(--primary-color);
        text-align: right;
        white-space: nowrap;
        font-size: 1em; /* Smaller font size */
    }

    .price-list-table tr:last-child td {
        border-bottom: none; /* No border on last row cells */
    }
    /* Rounded corners for table body last row cells */
    .price-list-table tbody tr:last-child td:first-child {
        border-bottom-left-radius: var(--border-radius-lg);
    }

    .price-list-table tbody tr:last-child td:last-child {
        border-bottom-right-radius: var(--border-radius-lg);
    }


.price-list-notes {
    max-width: 850px; /* Slightly narrower */
    margin: 35px auto 0;
    text-align: left;
    font-size: 0.9em; /* Smaller font size */
    color: var(--light-text-color);
    padding: 0 25px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .language-switcher {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .mobile-menu-overlay {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .mobile-nav ul {
        text-align: center;
    }

    .language-switcher-mobile {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5em; /* Further reduced for smaller screens */
    }

    .hero-content p {
        font-size: 1.1em; /* Further reduced */
    }

    .services-overview-section,
    .how-it-works-section,
    .team-section,
    .why-choose-us-section,
    .blog-preview-section,
    .faq-section,
    .useful-links-section,
    .contact-section {
        padding: 50px 0; /* Reduced padding for smaller screens */
    }

    .service-cards, .process-steps, .team-members, .reason-cards, .blog-posts-grid, .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Adjusted min-width for grids */
        gap: 20px;
        margin-top: 25px;
    }

    .service-card, .process-step, .team-member, .reason-card, .blog-post-card, .link-card {
        padding: 20px; /* Reduced padding */
    }

        /* Team member image styling for index.html on smaller screens */
        .team-member .img-container {
            width: 180px; /* Adjusted size for smaller screens */
            height: 180px;
            border-radius: var(--border-radius-md); /* Keep square corners */
        }

        .team-member img {
            border-radius: var(--border-radius-md); /* Match container radius */
        }

        .team-member h3 {
            font-size: 1.4em; /* Further reduced font size */
        }


    /* meist.html team member adjustments */
    .team-full-page-section .team-members {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted for smaller screens */
        gap: 30px;
    }

    .team-full-page-section .team-member .img-container {
        /* For smaller screens, images can take more space relative to card */
        width: 90%;
        padding-top: 67.5%; /* Maintain 4:3 aspect ratio */
    }

    .team-full-page-section .team-member h3 {
        font-size: 2em; /* Reduced font size */
    }

    .team-full-page-section .team-member p {
        font-size: 1em; /* Reduced font size */
    }

    .team-full-page-section .team-member .member-description {
        font-size: 0.9em;
    }

    .blog-post-full h1 {
        font-size: 2.2em; /* Reduced font size */
    }

    .blog-post-full .post-content p {
        font-size: 1em; /* Reduced font size */
    }

    .blog-post-list-grid { /* Adjusted selector here */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min-width for columns */
        gap: 20px;
        padding: 0 20px;
    }

    .blog-post-list-item { /* Adjusted padding for smaller screens */
        padding: 25px;
    }

    .services-full-page-section .service-detail-cards {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
    }

    .faq-toggle {
        font-size: 1em; /* Reduced font size */
        padding: 15px 20px; /* Reduced padding */
    }

    .faq-answer p {
        font-size: 0.95em; /* Reduced font size */
    }

    .price-list-table th, .price-list-table td {
        padding: 12px 15px; /* Reduced padding */
    }

    .price-list-table th {
        font-size: 1em; /* Reduced font size */
    }

    .price-list-table td:last-child {
        font-size: 0.95em; /* Reduced font size */
    }

    .price-list-table td:before {
        left: 10px;
        width: calc(50% - 20px);
    }

    .price-list-notes {
        padding: 0 15px;
        font-size: 0.85em;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2em;
        margin-bottom: 25px;
    }

        h2::after {
            width: 40px;
            height: 2px;
        }

    .hero-section {
        height: 400px;
    }

    .hero-content {
        padding: 25px;
    }

        .hero-content h1 {
            font-size: 2.2em;
            margin-bottom: 15px;
        }

        .hero-content p {
            font-size: 1em;
            margin-bottom: 25px;
        }

    .btn {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    .service-cards, .process-steps, .team-members, .reason-cards, .blog-posts-grid, .links-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
        max-width: 400px; /* Constrain width for better readability */
        margin-left: auto;
        margin-right: auto;
    }

    .service-card, .process-step, .team-member, .reason-card, .blog-post-card, .link-card {
        width: 100%; /* Ensure they take full width of their container */
    }

        /* Team member image styling for index.html on mobile */
        .team-member .img-container {
            width: 150px; /* Adjusted size for mobile */
            height: 150px;
            border-radius: var(--border-radius-md); /* Keep square corners */
        }

        .team-member img {
            border-radius: var(--border-radius-md); /* Match container radius */
        }

        .team-member h3 {
            font-size: 1.4em; /* Further reduced font size */
        }

    /* meist.html team member adjustments */
    .team-full-page-section .team-members {
        grid-template-columns: 1fr;
        max-width: 400px; /* Limit width */
        margin-left: auto;
        margin-right: auto;
    }

    .team-full-page-section .team-member .img-container {
        width: 90%; /* Take full width of card on mobile */
        padding-top: 60%; /* Adjusted aspect ratio for mobile */
        max-width: 300px; /* Max width to keep it from being too big */
        margin-bottom: 20px;
        border-width: 4px;
        box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.15);
    }

    .team-full-page-section .team-member h3 {
        font-size: 1.8em;
    }

    .team-full-page-section .team-member p {
        font-size: 1em;
    }

    .team-full-page-section .team-member .member-description {
        font-size: 0.9em;
    }

    .blog-post-full h1 {
        font-size: 1.8em; /* Further reduced font size */
    }

    .blog-post-full .post-content p {
        font-size: 0.95em; /* Further reduced font size */
    }

    .blog-post-list-grid { /* Adjusted selector here */
        grid-template-columns: 1fr; /* Stack on very small screens */
        padding: 0 10px;
    }

    .blog-post-list-item { /* Adjusted padding for smaller screens */
        padding: 20px;
    }

    .services-full-page-section .service-detail-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .map-container iframe {
        height: 250px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        min-width: unset;
        width: 100%;
        margin-bottom: 15px;
    }

        .footer-col ul {
            padding-left: 0;
        }

            .footer-col ul li {
                margin-bottom: 6px;
            }

    .price-list-table {
        width: calc(100% - 30px);
        margin: 0 15px;
    }

        .price-list-table th {
            padding: 10px 12px;
            font-size: 0.9em;
        }

        .price-list-table td {
            padding: 10px 12px;
            font-size: 0.85em;
        }

            .price-list-table td:before {
                left: 10px;
                width: calc(50% - 20px);
            }

    .price-list-notes {
        padding: 0 15px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .main-header {
        height: 55px;
    }

    main {
        padding-top: 55px;
    }

    .hero-section {
        height: 350px;
    }

    .hero-content {
        padding: 20px;
    }

        .hero-content h1 {
            font-size: 1.8em;
            margin-bottom: 10px;
        }

        .hero-content p {
            font-size: 0.9em;
            margin-bottom: 20px;
        }

    .btn {
        padding: 8px 15px;
        font-size: 0.85em;
    }

    h2 {
        font-size: 1.6em;
    }

    .service-card, .process-step, .team-member, .reason-card, .blog-post-card, .faq-item, .link-card {
        padding: 15px;
    }

    .map-container iframe {
        height: 200px;
    }

    /* Team member image styling for index.html on very small screens */
    .team-member .img-container {
        width: 120px; /* Further adjusted size */
        height: 120px;
    }

    .team-member h3 {
        font-size: 1.6em;
    }

    /* meist.html team member adjustments */
    .team-full-page-section .team-member .img-container {
        width: 100%;
        padding-top: 55%; /* More rectangular on very small screens */
        max-width: 250px;
    }

    .team-full-page-section .team-member h3 {
        font-size: 1.6em;
    }

    .team-full-page-section .team-member p {
        font-size: 0.9em;
    }

    .team-full-page-section .team-member .member-description {
        font-size: 0.8em;
    }

    .price-list-table {
        width: calc(100% - 20px);
        margin: 0 10px;
    }

    .price-list-notes {
        padding: 0 10px;
    }
}
