/* _portfolio.css */
.portfolio-hero-section {
    background-color: #1E3A8A;
    color: #ffffff;
    padding: 6rem 0;
    text-align: center;
}

/* Hero Section specific to Portfolio Page */

.portfolio-hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.portfolio-hero-section p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}

.portfolio-hero-section .breadcrumb {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.portfolio-hero-section .breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.portfolio-hero-section .breadcrumb li {
    font-size: 0.95rem;
    color: #f0f8ff;
}

.portfolio-hero-section .breadcrumb li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.portfolio-hero-section .breadcrumb li a:hover {
    color: #c9e6ff;
    text-decoration: underline;
}

.portfolio-hero-section .breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 10px;
    color: #a0c4e7;
}

.portfolio-hero-section .btn {
    margin-top: 2rem;
    padding: 1.2rem 3rem;
    font-size: 1.25rem;
    font-weight: 700;
    background-color: #fff;
    color: #0A3D62;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.portfolio-hero-section .btn:hover {
    background-color: #e0f0ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}


/* Portfolio Section General */
.portfolio-section {
    padding: 4rem 0;
    background-color: #f8f8f8;
}

.portfolio-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1E1F25;
    text-align: center;
    margin-bottom: 1.5rem;
}

.portfolio-section > p { /* Direct child paragraph for intro text */
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    max-width: 900px;
    margin: 0 auto 3rem auto; /* Space below intro text */
    text-align: center;
}

/* Tabs Navigation */
.tabs-container {
    max-width: 1200px;
    margin: 0 auto 3rem auto; /* Space below tabs */
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* For rounded corners */
    border: 1px solid #eee;
}

.tabs-list {
    display: flex;
    flex-wrap: wrap; /* Allow tabs to wrap on smaller screens */
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
}

.tab-item {
    flex: 1; /* Distribute space evenly */
    min-width: 120px; /* Minimum width for each tab */
    padding: 1.2rem 1.5rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden; /* For underline animation */
}

.tab-item:hover {
    color: #0A3D62;
    background-color: #f5f5f5;
}

.tab-item.active {
    color: #0A3D62;
    background-color: #f0f8ff; /* Lighter background for active tab */
}

.tab-item.active::after { /* Active tab underline effect */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #0A3D62;
    transform: scaleX(1);
    transition: transform 0.3s ease-out;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 3rem 0; /* Vertical padding within tab content */
}

.tab-content.active {
    display: grid; /* Use grid for project cards within each tab */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem; /* Space between project cards */
    max-width: 1200px; /* Ensure content stays within limits */
    margin: 0 auto;
}

/* Project Card Styles */
.card {
    background-color: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    border-color: #0A3D62;
}

.card .card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1E1F25;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
}

.card p i {
    color: #0A3D62;
    font-size: 1.1rem;
}

.card ul.scope,
.card ul.highlights {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.card ul.scope li,
.card ul.highlights li {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 20px;
    position: relative;
}

.card ul.scope li::before,
.card ul.highlights li::before {
    content: "\f00c"; /* Font Awesome check-mark icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #28a745; /* Green checkmark */
    position: absolute;
    left: 0;
    top: 2px;
}

.card .images {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap; /* Allow images to wrap */
    justify-content: center;
}

.card .project-image {
    width: calc(50% - 0.5rem); /* Two images side by side */
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card .project-image:hover {
    transform: scale(1.05); /* Zoom image on hover */
}

@media (max-width: 600px) { /* Adjust for very small screens */
    .card .project-image {
        width: 100%; /* Stack images vertically */
        height: 200px;
    }
}


.card blockquote {
    font-size: 1.05rem;
    font-style: italic;
    color: #444;
    border-left: 4px solid #0A3D62;
    padding-left: 15px;
    margin-top: 1.5rem;
    line-height: 1.6;
    background-color: #fcfcfc; /* Light background for quote */
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 0; /* Remove default blockquote margin */
}

/* Call to Action Section (consistent with other pages) */
.cta {
    padding: 4rem 0;
    background: linear-gradient(90deg, #0A3D62 0%, #007acc 100%);
    color: #fff;
    text-align: center;
    border-radius: 2rem 2rem 0 0; /* Soft top corners */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.cta h2 {
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.cta p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
    opacity: 0.9;
}

.cta .btn {
    padding: 1.2rem 3rem;
    font-size: 1.25rem;
    font-weight: 700;
    background-color: #fff;
    color: #0A3D62;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta .btn:hover {
    background-color: #e0f0ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .tabs-list {
        justify-content: center; /* Center tabs when they wrap */
    }
    .tab-item {
        flex: auto; /* Allow items to shrink/grow based on content */
        margin: 5px; /* Add some space between wrapped tabs */
        border-radius: 0.5rem; /* Apply border-radius to individual tab items */
    }
    .tab-item.active::after {
        border-radius: 0; /* Remove border-radius on underline */
    }
}

@media (max-width: 768px) {
    .portfolio-hero-section h1 {
        font-size: 2.8rem;
    }
    .portfolio-hero-section p {
        font-size: 1.1rem;
    }
    .portfolio-section h2 {
        font-size: 2rem;
    }
    .portfolio-section > p {
        font-size: 1rem;
    }
    .tabs-container {
        border-radius: 0.5rem;
    }
    .tab-item {
        padding: 1rem 1rem;
        font-size: 1rem;
    }
    .tab-content.active {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
        gap: 2rem;
    }
    .card {
        border-radius: 1rem;
    }
    .card h3 {
        font-size: 1.5rem;
    }
    .card p {
        font-size: 0.95rem;
    }
    .card .images {
        flex-direction: column; /* Stack images vertically */
        gap: 0.75rem;
    }
    .card .project-image {
        width: 100%;
        height: 200px; /* Maintain height for single image */
        border-radius: 0.5rem;
    }
    .cta .btn {
        padding: 1rem 2.5rem;
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .portfolio-hero-section h1 {
        font-size: 2.2rem;
    }
    .portfolio-hero-section p {
        font-size: 1rem;
    }
    .tab-item {
        font-size: 0.9rem;
        padding: 0.8rem 0.5rem;
    }
    .card h3 {
        font-size: 1.3rem;
    }
    .card .card-content {
        padding: 1.5rem;
    }
    .card p {
        font-size: 0.9rem;
    }
    .card ul.scope li,
    .card ul.highlights li {
        font-size: 0.85rem;
    }
}

/* Customizations for Budget vs Luxury Section - Increased Size */
.tab-content#budgetLuxury.active {
    /* Adjust grid for wider card in this specific section */
    grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    justify-items: center; /* Center the single card horizontally */
}

.tab-content#budgetLuxury .card .images {
    flex-direction: column; /* Ensure images stack vertically for larger display */
    gap: 1.5rem; /* Increased gap between stacked images */
}

.tab-content#budgetLuxury .card .project-image {
    width: 100%; /* Make images span full width of their container */
    height: 280px; /* Increased height for larger image display */
}

@media (max-width: 768px) {
    .tab-content#budgetLuxury.active {
        /* On smaller screens, maintain 1fr but allow card to naturally grow */
        grid-template-columns: 1fr;
    }
    .tab-content#budgetLuxury .card .project-image {
        height: 250px; /* Adjust height for tablet/mobile view */
    }
}

@media (max-width: 480px) {
    .tab-content#budgetLuxury .card .project-image {
        height: 200px; /* Further adjust height for very small screens */
    }
}
.card-grid-container {
    display: flex;
    flex-wrap: wrap; /* Allows cards to wrap to the next line on smaller screens */
    gap: 2rem; /* Adds space between the cards */
    justify-content: space-between; /* Distributes space between cards */
    margin-bottom: 2rem;
}

.card-grid-container .card {
    flex: 1 1 calc(50% - 1rem); /* Each card takes up roughly 50% of the container width, accounting for the gap */
    min-width: 300px; /* Ensures the cards don't get too small on narrow screens */
}