/* =====================================================
   project-detail.css
   Full styling for project-1-detailed.html
   Inherits all variables & base styles from style.css
   ===================================================== */

/* ---- BACK NAVIGATION ---- */
.back-navigation {
    background: var(--light-gray);
    padding: 15px 0;
}
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}
.btn-back i { font-size: 18px; }
.btn-back:hover { color: var(--dark-blue); }

/* ---- PROJECT HERO ---- */
.project-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}
.project-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,102,204,.75), rgba(74,144,226,.6));
    z-index: 1;
}
.project-hero .hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.project-hero .hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    max-width: 800px;
}
.project-hero .hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,.3);
}
.project-hero .hero-subtitle {
    font-size: 22px;
    font-weight: 300;
    opacity: .95;
}

/* ---- SECTION COMMON STYLES ---- */
.project-story,
.photo-gallery,
.detailed-activities,
.testimonials,
.project-cta {
    padding: var(--section-padding);
}
.section-title {
    font-size: 38px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--black);
}
.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    margin: 0 auto 40px;
    border-radius: 2px;
}

/* ---- PROJECT STORY ---- */
.story-text {
    font-size: 17px;
    line-height: 1.9;
    color: var(--dark-gray);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* ---- PHOTO GALLERY ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: var(--transition);
}
.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,.15);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    color: var(--white);
    padding: 20px 15px 15px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transition: opacity .3s ease;
}
.gallery-item:hover .gallery-caption {
    opacity: 1;
}
.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}
.gallery-item.large img {
    min-height: 300px;
}

/* ---- DETAILED ACTIVITIES ---- */
.activity-detail-card {
    background: var(--white);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,.05);
    margin-bottom: 30px;
    transition: var(--transition);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.activity-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,102,204,.12);
}
.activity-detail-icon {
    font-size: 42px;
    flex-shrink: 0;
}
.activity-detail-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 12px;
}
.activity-detail-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-gray);
    margin: 0;
}

/* ---- TESTIMONIALS ---- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 14px;
    position: relative;
    transition: var(--transition);
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
}
.testimonial-quote {
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 60px;
    color: var(--primary-blue);
    opacity: .15;
}
.testimonial-quote i {
    font-size: inherit;
}
.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--black);
    margin-bottom: 15px;
    font-style: italic;
}
.testimonial-author {
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 600;
    text-align: right;
}

/* ---- CALL TO ACTION ---- */
.project-cta {
    background: linear-gradient(135deg, var(--orange-accent), #FF8C42);
    color: var(--white);
    text-align: center;
}
.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}
.cta-text {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: .95;
}
.btn-cta-primary {
    background: var(--white);
    color: var(--orange-accent);
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 17px;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
    transition: var(--transition);
}
.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,.3);
}

/* ---- RESPONSIVE ADJUSTMENTS ---- */
@media (max-width: 992px) {
    .project-hero { height: 420px; }
    .project-hero .hero-title { font-size: 38px; }
    .project-hero .hero-subtitle { font-size: 19px; }
    .gallery-item.large { grid-column: span 1; grid-row: span 1; }
    .activity-detail-card { flex-direction: column; text-align: center; }
    .activity-detail-icon { margin-bottom: 15px; }
}

@media (max-width: 768px) {
    .project-hero { height: 380px; }
    .project-hero .hero-title { font-size: 32px; }
    .project-hero .hero-subtitle { font-size: 17px; }
    .section-title { font-size: 32px; }
    .cta-title { font-size: 30px; }
    .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .project-hero { height: 320px; }
    .project-hero .hero-title { font-size: 26px; }
    .project-hero .hero-subtitle { font-size: 15px; }
    .section-title { font-size: 28px; }
    .activity-detail-card { padding: 25px; }
    .cta-title { font-size: 26px; }
    .btn-cta-primary { padding: 12px 28px; font-size: 15px; }
}