/* _project.css */

/* Hero Section specific to Projects Page */
.projects-hero-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0A3D62 0%, #0056b3 100%); /* Blue gradient background */
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 2rem 2rem; /* Soft bottom corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.projects-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);
}

.projects-hero-section p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem auto; /* Added margin-bottom */
    opacity: 0.9;
}

.projects-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);
}

.projects-hero-section .breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.projects-hero-section .breadcrumb li {
    font-size: 0.95rem;
    color: #f0f8ff;
}

.projects-hero-section .breadcrumb li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.projects-hero-section .breadcrumb li a:hover {
    color: #c9e6ff;
    text-decoration: underline;
}

.projects-hero-section .breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 10px;
    color: #a0c4e7;
}

.projects-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);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.projects-hero-section .btn:hover {
    background-color: #e0f0ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Projects Section General */
.projects-section {
    padding: 4rem 0;
    background-color: #f8f8f8;
}

.projects-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1E1F25;
    text-align: center;
    margin-bottom: 1.5rem;
}

.projects-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;
}

/* Project Group (Accordion-like structure) */
.project-group {
    max-width: 1100px;
    margin: 0 auto 2.5rem auto; /* Space between groups */
    background-color: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    overflow: hidden; /* Ensures rounded corners apply to content */
}

.project-group:last-of-type {
    margin-bottom: 4rem; /* More space before CTA */
}

.dropdown-toggle {
    background-color: #0A3D62;
    color: #fff;
    padding: 1.5rem 2rem;
    font-size: 1.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, border-radius 0.3s ease;
    border-radius: 1.5rem 1.5rem 0 0; /* Rounded top corners */
}

.dropdown-toggle:hover {
    background-color: #0056b3;
}

.dropdown-toggle.active {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem 1.5rem 0 0; /* Keep top rounded, bottom sharp when active */
}

.dropdown-toggle i.fas {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.dropdown-toggle.active i.fas {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none; /* Hidden by default, shown by JS */
    list-style: none;
    padding: 2rem; /* Internal padding */
    margin: 0;
    animation: fadeIn 0.5s ease-out; /* Fade in animation */
}

.dropdown-content.active {
    display: grid; /* Use grid for individual project cards */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 2rem; /* Space between cards */
}

/* Individual Project Card within Dropdown Content */
.project-detail-card {
    background-color: #fdfdfd; /* Slightly different background for card */
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.project-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-detail-card .project-images {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap; /* Allow images to wrap */
    justify-content: center;
}

.project-detail-card .project-image {
    width: calc(50% - 0.375rem); /* Two images side by side */
    height: 160px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.project-detail-card .project-image:hover {
    transform: scale(1.03);
}

@media (max-width: 600px) { /* Adjust for very small screens */
    .project-detail-card .project-image {
        width: 100%; /* Stack images vertically */
        height: 180px;
    }
}

.project-detail-card .project-info {
    flex-grow: 1;
}

.project-detail-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1E1F25;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.project-detail-card p.project-meta {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-detail-card p.project-meta i {
    color: #0A3D62;
    font-size: 1rem;
}

.project-detail-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.project-detail-card ul li {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.5rem;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.project-detail-card ul li i.fa-check-circle {
    color: #28a745; /* Green checkmark */
    position: absolute;
    left: 0;
    top: 3px;
}

.project-detail-card p:not(.project-meta) { /* General project description */
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1rem;
}

.project-detail-card blockquote {
    font-size: 1rem;
    font-style: italic;
    color: #555;
    border-left: 4px solid #007acc;
    padding-left: 15px;
    margin-top: 1.5rem;
    line-height: 1.6;
    background-color: #f9f9f9;
    padding: 0.8rem 1.2rem;
    border-radius: 0.5rem;
    margin-bottom: 0;
}


/* 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) {
    .dropdown-toggle {
        font-size: 1.5rem;
        padding: 1.2rem 1.5rem;
    }
    .dropdown-content.active {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .project-detail-card h4 {
        font-size: 1.25rem;
    }
    .project-detail-card p.project-meta,
    .project-detail-card ul li,
    .project-detail-card p:not(.project-meta) {
        font-size: 0.9rem;
    }
    .project-detail-card .project-image {
        height: 140px;
    }
    .project-detail-card blockquote {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .projects-hero-section h1 {
        font-size: 2.8rem;
    }
    .projects-hero-section p {
        font-size: 1.1rem;
    }
    .projects-section h2 {
        font-size: 2rem;
    }
    .projects-section > p {
        font-size: 1rem;
    }
    .dropdown-toggle {
        font-size: 1.3rem;
        padding: 1rem 1.2rem;
    }
    .dropdown-content {
        padding: 1rem;
    }
    .dropdown-content.active {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
        gap: 1.5rem;
    }
    .project-detail-card {
        padding: 1rem;
        border-radius: 0.75rem;
    }
    .project-detail-card .project-images {
        flex-direction: column;
        gap: 0.5rem;
    }
    .project-detail-card .project-image {
        width: 100%;
        height: 160px;
    }
    .cta .btn {
        padding: 1rem 2.5rem;
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .projects-hero-section h1 {
        font-size: 2.2rem;
    }
    .projects-hero-section p {
        font-size: 1rem;
    }
    .dropdown-toggle {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
    }
    .project-group {
        border-radius: 1rem;
    }
    .dropdown-toggle.active {
        border-radius: 1rem 1rem 0 0;
    }
    .project-detail-card h4 {
        font-size: 1.1rem;
    }
    .project-detail-card p.project-meta,
    .project-detail-card ul li,
    .project-detail-card p:not(.project-meta) {
        font-size: 0.85rem;
    }
}

/* Keyframe for fadeIn animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Ensure the image container uses Flexbox to align items horizontally */
.project-detail-card .project-images {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
}

/* Force each immediate child of the image container to be exactly 50% width */
.project-detail-card .project-images > picture {
    width: 50%;
    height: auto;
    border-radius: 10px;
}

/* Also apply these styles to the image element itself */
.project-detail-card .project-images img {
    width: 100%; /* Make the image fill its parent <picture> container */
    height: auto;
    border-radius: 10px;
}