/* Main Stylesheet for DispatchVisuals.com */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

/* --- Animation for elements that fade in on scroll --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Project Showcase Card Styling --- */
.project-card {
    display: block;
    background-color: #fff;
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-xl */
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.project-card:hover {
    transform: scale(1.05);
}

.project-image-container {
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    background-color: #e5e7eb; /* bg-gray-200 fallback */
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This crops the image to fit, maintaining aspect ratio */
}

.project-content {
    padding: 1.5rem; /* p-6 */
}

/* --- Interactive Orthophoto Styling --- */
#ortho-container {
    cursor: grab;
}

#ortho-container:active {
    cursor: grabbing;
}
/* --- NEW: Interactive Process Timeline Styles --- */
.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* The vertical line */
.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #d1d5db; /* gray-300 */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

/* Container around content */
.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* The circles on the timeline */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12.5px;
    background-color: white;
    border: 4px solid #3b82f6; /* blue-500 */
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    transition: background-color 0.3s ease;
}

/* Place the container to the left */
.timeline-left {
    left: 0;
}

/* Place the container to the right */
.timeline-right {
    left: 50%;
}

/* Add arrows to the left container (pointing right) */
.timeline-left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

/* Add arrows to the right container (pointing left) */
.timeline-right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

/* Fix the circle for containers on the right side */
.timeline-right::after {
    left: -12.5px;
}

/* The actual content */
.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Highlight the circle on hover */
.timeline-container:hover::after {
    background-color: #3b82f6; /* blue-500 */
}

/* Media queries - Responsive timeline */
@media screen and (max-width: 768px) {
    .process-timeline::after {
        left: 31px;
    }
    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-container::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }
    .timeline-left::after, .timeline-right::after {
        left: 18px;
    }
    .timeline-right {
        left: 0%;
    }
}

/* --- NEW: Redesigned Construction Page Styles --- */

/* Hero Image Section */
.hero-image-container {
    position: relative;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Interactive Tabs Section */
.tabs-container button {
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #4b5567; /* gray-600 */
}

.tabs-container button.active,
.tabs-container button:hover {
    color: #3b82f6; /* blue-500 */
    border-bottom-color: #3b82f6; /* blue-500 */
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: flex; /* Changed to flex for alignment */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Deliverable Mockup Styles */
.deliverable-mockup {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}
.deliverable-mockup:hover {
    transform: translateY(-5px);
}
.deliverable-mockup img {
    border-radius: 0.25rem;
    border: 1px solid #e5e7eb; /* gray-200 */
}
/* --- NEW: Redesigned Real Estate Page Styles --- */

/* Re-using the hero-image-container from the construction page for consistency */
/* You can add a unique one if you want a different height or overlay */

/* Service Grid for Real Estate */
.service-grid-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.service-grid-card img {
    transition: transform 0.5s ease;
}

.service-grid-card:hover img {
    transform: scale(1.1);
}

.service-grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

/* Data/Proof Section */
.data-proof-section {
    background-color: #f3f4f6; /* gray-100 */
}

.data-stat {
    font-size: 4rem; /* text-6xl */
    font-weight: 900; /* font-black */
    color: #3b82f6; /* blue-500 */
    line-height: 1;
}

.data-source {
    font-size: 0.875rem; /* text-sm */
    color: #6b7280; /* gray-500 */
    margin-top: 0.5rem;
}

/* --- Styles for Redesigned Construction Page --- */

/* Enforces a consistent aspect ratio for tab images */
.tab-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* This creates a 4:3 aspect ratio */
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.tab-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the image cover the area without distortion */
}


/* Styling for the new deliverable mockups */
.deliverable-mockup {
    background-color: #f9fafb; /* gray-50 */
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.75rem; /* rounded-xl */
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.deliverable-mockup:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.deliverable-mockup img {
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

/* Advantage Section Icons */
.advantage-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #3b82f6; /* blue-500 */
}

<style>
    /* Add this to your style.css file for final organization */
    .tab-image-container {
        aspect-ratio: 4 / 3;
        overflow: hidden;
        border-radius: 0.5rem; /* Optional: Adds nice rounded corners */
    }

    .tab-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* This is the key property for uniform sizing */
        object-position: center;
    }
</style>
/* --- STYLES FOR RESIDENTIAL PAGE OVERHAUL --- */

/* Cost Comparison Graph */
.cost-graph-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 300px;
    padding: 20px;
    background-color: #f9fafb; /* bg-gray-50 */
    border-radius: 0.5rem;
    margin-top: 2rem;
}
.cost-bar {
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.bar {
    width: 100%;
    background-color: #fca5a5; /* bg-red-300 */
    border-radius: 0.25rem 0.25rem 0 0;
    transition: height 1s ease-out;
    height: 0; /* Initial height for animation */
}
.bar.bar-success {
    background-color: #6ee7b7; /* bg-green-300 */
}
.bar-label {
    font-weight: 700;
    font-size: 1.5rem; /* text-2xl */
    margin-top: 0.5rem;
    color: #1f2937; /* text-gray-800 */
}
.bar-sublabel {
    font-size: 0.875rem; /* text-sm */
    color: #4b5563; /* text-gray-600 */
    margin-top: 0.25rem;
}

/* How It Works Section */
.how-it-works-step {
    text-align: center;
    position: relative;
}
.step-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background-color: #eff6ff; /* bg-blue-50 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6; /* text-blue-500 */
    font-size: 2rem; /* text-4xl */
    border: 4px solid white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.step-connector {
    display: none; /* Hidden by default, shown on larger screens */
}
@media (min-width: 768px) {
    .how-it-works-step:not(:last-child) .step-connector {
        display: block;
        position: absolute;
        top: 40px;
        left: 50%;
        height: 2px;
        width: 100%;
        background-image: linear-gradient(to right, #d1d5db 50%, transparent 50%);
        background-size: 10px 2px;
        background-repeat: repeat-x;
        z-index: -1;
    }
}

/* "Watchlist" CTA Button Style */
.cta-watchlist {
    background-color: #10b981; /* bg-emerald-500 */
    color: white;
    transition: background-color 0.3s ease;
}
.cta-watchlist:hover {
    background-color: #059669; /* bg-emerald-600 */
}

/* --- REVISED PRICING CARD STYLES --- */
.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem; /* rounded-lg */
    overflow: hidden;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    transition: transform 0.3s ease;
    min-height: 520px; /* Give cards a consistent height */
    background-size: cover;
    background-position: center;
}
.pricing-card:hover {
    transform: scale(1.03);
}
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}
.pricing-card-content {
    position: relative;
    z-index: 2;
    padding: 2rem; /* p-8 */
    display: flex;
    flex-direction: column;
    text-align: center;
    height: 100%;
}
.pricing-card.popular {
    transform: scale(1.05); /* Make popular card slightly larger by default */
    border: 2px solid #3b82f6; /* border-blue-500 */
}
.pricing-card.popular:hover {
    transform: scale(1.08);
}
/* BANNER STYLE FOR "MOST POPULAR" */
.popular-badge {
    position: absolute;
    top: 25px;
    right: -35px;
    padding: 0.5rem 2.5rem;
    transform: rotate(45deg);
    background-color: #3b82f6; /* bg-blue-500 */
    color: white;
    font-size: 0.875rem; /* text-sm */
    font-weight: 700; /* font-bold */
    text-transform: uppercase;
    letter-spacing: 0.05em; /* tracking-wider */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 3;
}
.pricing-card h3 {
     font-size: 1.5rem; /* text-2xl */
     font-weight: 700; /* font-bold */
}
.pricing-card .price {
    font-size: 3rem; /* text-5xl */
    font-weight: 900; /* font-black */
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.pricing-card .price span {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600; /* font-semibold */
}
.pricing-card ul {
    text-align: left;
    margin-top: 1.5rem; /* mt-6 */
    margin-bottom: auto; /* Pushes button to the bottom */
    flex-grow: 1;
}
.pricing-card ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem; /* space-y-3 */
}
.pricing-card ul .fa-check-circle {
    color: #34d399; /* emerald-400 for better contrast on dark bg */
    margin-right: 0.75rem; /* mr-3 */
    margin-top: 0.25rem; /* mt-1 */
    flex-shrink: 0;
}
.pricing-cta {
    margin-top: 2rem; /* mt-8 */
    display: block;
    background-color: #3b82f6; /* bg-blue-500 */
    color: white;
    font-weight: 700; /* font-bold */
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    border-radius: 0.5rem; /* rounded-lg */
    transition: background-color 0.2s ease;
    width: 100%;
}
.pricing-cta:hover {
    background-color: #2563eb; /* bg-blue-600 */
}
/* --- Styles for "Fancier" Graph Section --- */

/* New background pattern for the section */
.graph-section-bg {
    background-color: #f3f4f6; /* bg-gray-100 */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d1d5db' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Style for the text content next to the graph */
.graph-text-content h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    color: #1f2937; /* text-gray-800 */
    margin-bottom: 1rem;
}

.graph-text-content p {
    color: #4b5563; /* text-gray-600 */
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Adding a subtle border to the graph container for polish */
.cost-graph-container {
    border: 1px solid #e5e7eb; /* border-gray-200 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* --- NEW: Detailed Process Timeline Section --- */
.process-timeline-container {
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* The vertical line */
.process-timeline-container::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #e5e7eb; /* border-gray-200 */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

/* Container for each step */
.timeline-step {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* The circle on the timeline */
.timeline-step::after {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 40px;
    height: 40px;
    right: -20px;
    background-color: white;
    border: 4px solid #3b82f6; /* bg-blue-500 */
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    color: #3b82f6;
    font-size: 16px;
}

/* Place the container to the left */
.timeline-left {
    left: 0;
}

/* Place the container to the right */
.timeline-right {
    left: 50%;
}

/* Add arrows to the left container (pointing right) */
.timeline-left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 32px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

/* Add arrows to the right container (pointing left) */
.timeline-right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 32px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

/* Fix the circle for containers on the right side */
.timeline-right::after {
    left: -20px;
}

/* The actual content */
.timeline-content-box {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.timeline-content-box h4 {
    font-weight: 700;
    color: #1f2937; /* text-gray-800 */
    font-size: 1.125rem; /* text-lg */
    margin-bottom: 0.5rem;
}

.timeline-content-box p {
    color: #4b5563; /* text-gray-600 */
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Media queries - Responsive timeline */
@media screen and (max-width: 768px) {
    .process-timeline-container::after {
        left: 31px;
    }
    .timeline-step {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-step::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }
    .timeline-left::after, .timeline-right::after {
        left: 11px;
    }
    .timeline-right {
        left: 0%;
    }
}

/* --- DETAILED PROCESS TIMELINE SECTION --- */
.process-timeline-container {
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* The vertical line */
.process-timeline-container::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #e5e7eb; /* border-gray-200 */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

/* Container for each step */
.timeline-step {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* The circle on the timeline */
.timeline-step::after {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 40px;
    height: 40px;
    right: -20px;
    background-color: white;
    border: 4px solid #3b82f6; /* bg-blue-500 */
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    color: #3b82f6;
    font-size: 16px;
}

/* Place the container to the left */
.timeline-left {
    left: 0;
}

/* Place the container to the right */
.timeline-right {
    left: 50%;
}

/* Add arrows to the left container (pointing right) */
.timeline-left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 32px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

/* Add arrows to the right container (pointing left) */
.timeline-right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 32px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

/* Fix the circle for containers on the right side */
.timeline-right::after {
    left: -20px;
}

/* The actual content */
.timeline-content-box {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.timeline-content-box h4 {
    font-weight: 700;
    color: #1f2937; /* text-gray-800 */
    font-size: 1.125rem; /* text-lg */
    margin-bottom: 0.5rem;
}

.timeline-content-box p {
    color: #4b5563; /* text-gray-600 */
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Media queries - Responsive timeline */
@media screen and (max-width: 768px) {
    .process-timeline-container::after {
        left: 31px;
    }
    .timeline-step {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-step::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }
    .timeline-left::after, .timeline-right::after {
        left: 11px;
    }
    .timeline-right {
        left: 0%;
    }
}
/* --- NEW STYLES FOR "AWESOME" CONTACT PAGE --- */

.contact-hero {
    padding-top: 8rem;
    padding-bottom: 8rem;
    background-size: cover;
    background-position: center;
    position: relative;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 24, 39, 0.6); /* bg-gray-900 with 60% opacity */
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem; /* gap-12 */
    margin-top: -4rem; /* Pulls the content up over the hero image */
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) { /* lg breakpoint */
    .contact-container {
        grid-template-columns: 2fr 3fr;
    }
}

.contact-form-card {
    background-color: white;
    border-radius: 0.5rem; /* rounded-lg */
    padding: 2rem; /* p-8 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
}

.contact-details-card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem; /* rounded-lg */
    padding: 2rem; /* p-8 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
}

/* FAQ Accordion Styles */
.faq-item {
    border-bottom: 1px solid #e5e7eb; /* border-gray-200 */
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600; /* font-semibold */
    color: #1f2937; /* text-gray-800 */
    cursor: pointer;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    color: #4b5563; /* text-gray-600 */
    padding-bottom: 0;
}
.faq-answer p {
    padding-bottom: 1rem;
}
.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust as needed */
}
.faq-question .icon {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question .icon {
    transform: rotate(180deg);
}
/* --- Universal Styles for Portfolio Image Sizing --- */

/* Set a consistent shape for the image containers on all portfolio pages */
.portfolio-card, .portfolio-item {
    aspect-ratio: 4 / 3; /* Enforces a consistent 4:3 shape. You can also use 16/9 if you prefer a wider look. */
    overflow: hidden;    /* Hides any part of the image that overflows the container */
    background-color: #e5e7eb; /* A light gray background for any images that are slow to load */
}

/* Make the images fill their containers completely */
.portfolio-image, .portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is the key: it scales the image to fill the container, cropping slightly if necessary, but never distorting it. */
    transition: transform 0.3s ease;
}




