/* Brand Color */
:root {
    --brand-color: #14b8a6;
    --primary-color: #00bcd4;
    /* A shade of cyan/blue, similar to the images */
    --text-color: #333;
    --heading-color: #1a1a1a;
    --light-bg: #f8f8f8;
    --max-width: 1200px;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 66px;
}

p {
    font-size: 1rem;
}

@media (min-width: 768px) {
    p {
        font-size: 1rem;
    }
}

@media (min-width: 1200px) {
    p {
        font-size: 1.125rem;
    }
}

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

/* Navbar */
.navbar-nav .nav-link {
    font-weight: 500;
    position: relative;
    color: #000;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: var(--brand-color);
    transition: width 0.3s;
    margin: auto;
}

/* Space between menu items */
.navbar-nav .nav-item {
    margin-left: 18px;
    /* adjust as needed */
    padding: 10px;
}

/* Padding inside links */
.navbar-nav .nav-link {
    padding: 10px 15px;
    /* top-bottom | left-right */
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-item:not(:last-child) {
    margin-left: 18px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--brand-color);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 50vh;
    background-image: linear-gradient(160deg, var(--brand-color) 10%, #253D3D 90%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: white;
}

.hero-content p {
    font-size: 1.25rem;
    color: white; 
}

/* Service Box */
.service-box {
    position: relative;
    height: 250px;
    background-size: 100%;
    /* default */
    background-position: center;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hover Effects */
.service-box:hover {
    background-size: 110%;
    /* zoom effect */
    border: 2px solid #fff;
    /* white border */
    transform: scale(1.03);
    /* subtle lift */
}

/* Overlay */
.service-box .overlay {
    position: absolute;
    inset: 0;
    /* full cover */
    background: rgba(0, 0, 0, 0.4);
    /* initial overlay */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* content at bottom */
    padding: 20px;
    color: #fff;
    text-align: center;
    transition: background 0.4s ease-in-out;
}

/* Overlay darker on hover */
.service-box:hover .overlay {
    background: rgba(0, 0, 0, 0.6);
}

/* Title & Text */
.service-box h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-box p {
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Button */
.service-box .btn {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-box .btn:hover {
    background: #fff;
    color: #000;
}

.why-choose-us .icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #14b8a6;
}

.why-choose-us h3 {
    font-size: 1.5rem;
}

/* Footer */
footer {
    background: #000;
    color: #fff;
    padding: 48px 0 8px 0;
}

footer a {
    color: var(--brand-color);
}

footer .social a {
    margin-right: 15px;
    font-size: 20px;
    color: #fff;
    transition: color 0.3s;
}

footer .social a:hover {
    color: var(--brand-color);
}

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

/* Responsive adjustment for the banner title */
@media (max-width: 768px) {
    .about-banner {
        height: 350px;
    }

    .banner-content h1 {
        font-size: 2.5rem;
    }
}

/* --- Team Section Tweaks (Maintain consistent image size and hover) --- */

.team-member-card .member-photo {
    /* Ensures team photos have a consistent height, like the original design */
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 6px;
}

.team-member-card {
    /* Custom hover effect */
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    /* Enhanced shadow on hover */
}

/* Base section padding */
.contact-section {
    padding: 80px 0;
    background-color: white;
    /* Ensures it stands out if the background is light */
}

.contact-section .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* Headings */
.contact-info h2,
.contact-form-container h2 {
    color: var(--primary-color-contact);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* --- Left Column: Contact Information --- */
.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info>p {
    color: var(--light-text-color);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.detail-item span,
.detail-item a {
    color: var(--light-text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.detail-item a:hover {
    color: var(--primary-color-contact);
}

.icon-placeholder {
    font-size: 1.5rem;
    color: var(--primary-color-contact);
    margin-right: 15px;
    width: 25px;
    /* Ensures all icons align */
    text-align: center;
}

/* --- Right Column: Contact Form --- */
.contact-form-container {
    flex: 1.5;
    /* Gives the form slightly more width */
    max-width: 600px;
    /* Optional max width for the form side */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--light-text-color);
    margin-bottom: 5px;
}

.required {
    color: red;
    font-weight: bold;
    margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-color);
    background-color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color-contact);
    outline: none;
    box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.2);
}

textarea {
    resize: vertical;
    /* Only allow vertical resizing */
    min-height: 100px;
}

/* Submit Button Styling */
.submit-button {
    background-color: #007bff;
    /* A standard blue, as seen in the image */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    /* Aligns button to the left */
    transition: background-color 0.3s;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: #0056b3;
}


/* --- Responsive Adjustments (Mobile First) --- */

@media (max-width: 992px) {
    .contact-section .container {
        flex-direction: column;
        gap: 50px;
    }

    .contact-info,
    .contact-form-container {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
}

/* --- Blog Page Styling --- */

.blog-page-section {
    padding: 60px 0;
}

.blog-page-section .card-title {
    font-size: 1.125rem;
}

.blog-page-section .card-body p {
    font-size: 0.875rem;
}

/* --- Category Filters Styling --- */

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    padding: 0 10px;
    /* Slight padding to keep buttons off the edge on small screens */
}

.category-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    color: var(--light-text-color);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    white-space: nowrap;
    /* Prevents button text from wrapping */
}

.category-btn:hover {
    background-color: #f0f0f0;
}

.category-btn.active {
    background-color: var(--primary-color-blog);
    border-color: var(--primary-color-blog);
    color: white;
    font-weight: 600;
}

/* --- Blog Post Grid Styling --- */

.blog-post-grid {
    display: grid;
    /* 3 columns on large screens, auto-fitting to keep the layout responsive */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: 8px;
    /* Removed box shadow to match the clean look of the image */
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    /* Optional: subtle hover effect if desired */
    /* transition: transform 0.2s; */
}

/* .post-card:hover { transform: translateY(-3px); } */

.post-image-container {
    width: 100%;
    /* Creates a square container for the image, making the cards uniform */
    aspect-ratio: 1 / 1;
    background-color: #f9f9f9;
    /* Light background for the image area */
    border-radius: 8px 8px 0 0;
    /* Match card radius at the top */
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-image-container img {
    max-width: 70%;
    /* Image is smaller than container as per your design */
    max-height: 70%;
    height: auto;
    object-fit: contain;
}

.post-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 20px 20px 5px 20px;
    /* Padding for text inside the card */
}

.post-date {
    color: var(--primary-color-blog);
    font-size: 0.9rem;
    margin: 0 20px 15px 20px;
    font-style: italic;
}

.post-excerpt {
    color: var(--light-text-color);
    margin: 0 20px 15px 20px;
    flex-grow: 1;
    /* Ensures text takes up available space for consistent Read More placement */
}

.read-more {
    color: var(--primary-color-blog);
    text-decoration: none;
    font-weight: 600;
    margin: 0 20px 20px 20px;
    display: block;
    /* Makes the link take up full width below the text */
    transition: color 0.2s;
}

.read-more:hover {
    color: #178a66;
    /* Slightly darker hover color */
}

/* --- Responsive Adjustments --- */

@media (max-width: 1000px) {
    .blog-post-grid {
        /* 2 columns on medium screens */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-post-grid {
        /* Single column on small screens */
        grid-template-columns: 1fr;
    }

    .blog-categories {
        justify-content: flex-start;
        /* Align categories to the left */
        overflow-x: scroll;
        /* Allow horizontal scrolling for many buttons */
        padding-bottom: 10px;
        /* Space for scroll bar on mobile */
    }

    .blog-categories::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar for cleaner look */
    }
}

@media (max-width: 480px) {
    .blog-page-section {
        padding: 40px 0;
    }

    .blog-categories {
        margin-bottom: 30px;
    }
}

:root {
    /* Using the light turquoise/green from your category buttons */
    --primary-color-portfolio: #20c997;
    --text-color: #333;
    --light-bg: #f8f8f8;
    --max-width: 1200px;
}

.portfolio-section {
    padding: 60px 0 60px 0;
    background-color: var(--light-bg);
    /* Use a light background for this section */
}

.portfolio-section p {
    margin:0px;
}

/* --- Category Filters/Tabs Styling --- */

.portfolio-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.portfolio-category-btn {
    padding: 10px 25px;
    border: 1px solid var(--primary-color-portfolio);
    border-radius: 4px;
    background-color: white;
    color: var(--primary-color-portfolio);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.portfolio-category-btn.active {
    background-color: var(--primary-color-portfolio);
    color: white;
    font-weight: 600;
}

.portfolio-category-btn:hover:not(.active) {
    background-color: #e0f8f0;
    /* Very light hover state */
}

/* --- Portfolio Grid Styling --- */

.portfolio-grid {
    display: grid;
    /* 3 columns layout */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    display: block;
    /* Make the entire card clickable */
    text-decoration: none;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    /* Clips the image wrapper */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s, transform 0.3s;
    text-align: center;
}

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

.project-image-wrapper {
    width: 100%;
    /* Aspect ratio for the image area (e.g., 4:3) - adjust as needed */
    aspect-ratio: 4 / 3;
    overflow: hidden;
    /* Optional: Small border around the image to match the provided layout */
    border: 1px solid #eee;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image covers the area without distortion */
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image-wrapper img {
    transform: scale(1.05);
    /* Subtle zoom on hover */
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 20px 10px 20px 10px;
    text-align: center;
}

/* --- Responsive Adjustments --- */

@media (max-width: 1000px) {
    .portfolio-grid {
        /* 2 columns on medium screens */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        /* Single column on small screens */
        grid-template-columns: 1fr;
    }

    .portfolio-categories {
        justify-content: flex-start;
        overflow-x: scroll;
        /* Allows buttons to scroll horizontally */
        padding-bottom: 10px;
    }

    .portfolio-categories::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar for aesthetics */
    }

    .portfolio-category-btn {
        flex-shrink: 0;
        /* Prevents buttons from squeezing */
    }
}

.services-banner {
    position: relative;
    height: 50vh;
    background-image: linear-gradient(160deg, var(--brand-color) 10%, #253D3D 90%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.services-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay for text readability */
}

.services-banner-content {
    position: relative;
    /* Brings content above the overlay */
    z-index: 2;
}

.services-banner-content h1 {
    font-size: 3.5rem;
    /* Reduced size slightly for a banner */
    color: white;
    font-weight: 600;
    margin: 0;
}

/* --- Services Section Styling --- */

:root {
    /* Using the light turquoise/green from your headings */
    --primary-color-service: #20c997;
    --text-color: #333;
    --light-text-color: #555;
    --max-width: 1200px;
}

.webdesign-banner {
    position: relative;
    height: 50vh;
    background-image: url('../img/services/website-design-hero.webp');
    /* Replace with your image */
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.webdesign-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay for text readability */
}

.webdesign-banner-content {
    position: relative;
    /* Brings content above the overlay */
    z-index: 2;
}

.webdesign-banner-content h1 {
    font-size: 2.5rem;
    /* Reduced size slightly for a banner */
    color: white;
    font-weight: 500;
    margin: 0;
}

.webapp-banner {
    position: relative;
    height: 50vh;
    background-image: url('../img/services/web-application-hero.webp');
    /* Replace with your image */
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.webapp-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay for text readability */
}

.webapp-banner-content {
    position: relative;
    /* Brings content above the overlay */
    z-index: 2;
}

.webapp-banner-content h1 {
    font-size: 2.5rem;
    /* Reduced size slightly for a banner */
    color: white;
    font-weight: 500;
    margin: 0;
}

.digital-marketing-banner {
    position: relative;
    height: 50vh;
    background-image: url('../img/services/digital-marketing-hero.webp');
    /* Replace with your image */
    background-size: cover;
    background-position: top center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.digital-marketing-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay for text readability */
}

.digital-marketing-banner-content {
    position: relative;
    /* Brings content above the overlay */
    z-index: 2;
}

.digital-marketing-banner-content h1 {
    font-size: 2.5rem;
    /* Reduced size slightly for a banner */
    color: white;
    font-weight: 500;
    margin: 0;
}

.mobile-application-banner {
    position: relative;
    height: 50vh;
    background-image: url('../img/services/mobile-app-development-hero.webp');
    /* Replace with your image */
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mobile-application-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay for text readability */
}

.mobile-application-banner-content {
    position: relative;
    /* Brings content above the overlay */
    z-index: 2;
}

.mobile-application-banner-content h1 {
    font-size: 2.5rem;
    /* Reduced size slightly for a banner */
    color: white;
    font-weight: 500;
    margin: 0;
}

/* --- Core Services Section Styling (Icon Grid) --- */
.core-services-section {
    padding: 80px 0;
    text-align: center;
    background-color: white;
}

.core-services-section .section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 50px;
}

.core-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px 30px;
    max-width: 1000px;
    /* Optional: Center the grid if it has fewer items */
    margin: 0 auto;
}

.core-service-item {
    padding: 20px;
}

.core-service-item .icon-placeholder {
    font-size: 2.5rem;
    color: var(--text-color);
    /* Icons are black/dark in your image */
    margin-bottom: 15px;
    display: inline-block;
    /* Special styling for the 'W' icon */
    font-family: Arial, sans-serif;
    font-style: normal;
    font-weight: 900;
}

.core-service-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.core-service-item p {
    color: var(--light-text-color);
    line-height: 1.5;
}

/* Specific adjustment for the last row layout */
@media (min-width: 900px) and (max-width: 1100px) {

    /* Adjusts the 4th and 5th items to center them below the first row */
    .core-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .core-service-item:nth-child(4),
    .core-service-item:nth-child(5) {
        grid-column: span 1;
    }
}

/* --- Process Section Styling --- */
.process-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--light-bg);
    /* Use a light gray background */
}

.process-intro {
    font-size: 1.1rem;
    color: var(--light-text-color);
    margin-bottom: 50px;
}

.process-steps {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
    /* Allows steps to wrap on smaller screens */
}

.process-step {
    flex-basis: 18%;
    /* Makes them take up about 1/5th space for 5 columns */
    min-width: 150px;
    padding: 10px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border: 2px solid var(--primary-color-service);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.process-step .icon-placeholder {
    font-size: 2rem;
    color: var(--primary-color-service);
    font-family: inherit;
    /* Reset font for emojis/placeholders */
}

.process-step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

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

/* Mobile adjustments */
@media (max-width: 768px) {
    .process-steps {
        justify-content: center;
    }

    .process-step {
        flex-basis: 40%;
        /* 2 items per row */
        margin-bottom: 30px;
    }
}

/* --- FAQ Section Styling --- */
.faq-section {
    padding: 80px 0;
    background-color: white;
}

.faq-grid {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.faq-image-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    /* Optional: Ensure image alignment is good */
}

.faq-content-column {
    flex: 1.5;
    /* Give more space to the content */
}

.faq-content-column .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: left;
}

.faq-item {
    border-top: 1px solid #eee;
    margin-bottom: 5px;
}

/* Question Button/Header */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    text-align: left;
    background-color: #f7fcfc;
    /* Very light, tinted background */
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    transition: background-color 0.3s;
}

.faq-item.open .faq-question {
    background-color: #e6f6f6;
    /* Slightly darker when open */
    color: var(--primary-color-service);
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-item:last-child {
    border-bottom: 1px solid #eee;
}

/* Toggle Icon */
.toggle-icon {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary-color-service);
    margin-left: 10px;
}

/* Answer Content */
.faq-answer {
    padding: 15px 20px;
    background-color: white;
    /* Styles for initial collapsed state - requires JavaScript to toggle */
    /* max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out; */
}

.faq-item.open .faq-answer {
    /* max-height: 500px; /* Example for open state */
    padding: 15px 20px 25px 20px;
    border-bottom: 1px solid #eee;
}

.faq-answer p {
    margin: 0;
    color: var(--light-text-color);
    line-height: 1.6;
}

/* Mobile adjustments */
@media (max-width: 992px) {
    .faq-grid {
        flex-direction: column;
    }

    .faq-image-column {
        order: -1;
        /* Image goes to the top */
        padding-bottom: 0;
    }

    .faq-content-column {
        flex: 1;
    }

    .faq-content-column .section-title {
        text-align: center;
    }
}

/* --- FAQ Section Styling --- */
/* (This assumes you have your root variables and .container styles defined) */

.faq-section {
    padding: 80px 0;
    background-color: white;
}

.faq-grid {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.faq-image-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
}

.faq-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.faq-content-column {
    flex: 1.5;
}

.faq-content-column .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: left;
}

/* FAQ Item Styling */
.faq-item {
    margin-bottom: 5px;
    /* Adjust spacing */
    border-bottom: 1px solid #eee;
}

/* Question Button/Header */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    text-align: left;
    background-color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    transition: background-color 0.3s;
}

/* Styling for the background color of the active/open question */
.faq-item.open .faq-question {
    background-color: #f7fcfc;
    /* Light background for the open question */
    color: var(--text-color);
}

.faq-question:hover:not(.faq-item.open .faq-question) {
    background-color: #f0f0f0;
}

/* Toggle Icon Styling */
.toggle-icon {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-color-service);
    margin-left: 10px;
    transition: transform 0.3s ease;
}

/* Styles when the FAQ item is CLOSED (Default State) */
.faq-item:not(.open) .toggle-icon {
    content: '>';
    /* This is for visual reference, JavaScript will handle the actual content */
}

/* Styles when the FAQ item is OPEN */
.faq-item.open .toggle-icon {
    /* If using the 'v' character, you don't need transform, but it's handy for rotation if you use an arrow like ' > ' */
    content: 'v';
    /* Visual reference for open icon */
}


/* --- KEY FIX: Answer Content Visibility --- */

.faq-answer {
    background-color: white;
    /* * THESE TWO PROPERTIES ARE VITAL FOR HIDING. 
     * If the text is visible, ensure these are being applied. 
     */
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    /* Set horizontal padding, but keep vertical padding 0 */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* Rule to REVEAL the answer */
.faq-item.open .faq-answer {
    max-height: 500px;
    /* Must be larger than the answer's actual height */
    padding: 15px 20px 25px 20px;
    /* Show the vertical padding when open */
}

.faq-answer p {
    margin: 0;
    color: var(--light-text-color);
    line-height: 1.6;
}

/* Mobile adjustments */
@media (max-width: 992px) {
    .faq-grid {
        flex-direction: column;
    }

    .faq-image-column {
        order: -1;
        padding-bottom: 0;
    }

    .faq-content-column {
        flex: 1;
    }

    .faq-content-column .section-title {
        text-align: center;
    }
}