/* Shared styling for the new multi-page templates (service pages, about,
   contact, jobs, legal). Reuses the brand palette already used across the
   original component stylesheets (#ac2668 / #8e1f55). */

.page-header {
    margin-top: 76px;
    background: linear-gradient(135deg, #ac2668 0%, #8e1f55 100%);
    color: #fff;
    padding: 70px 0 50px;
    text-align: center;
}
.page-header .container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.page-header h1 { font-size: 2.4rem; font-weight: 700; margin: 0 0 12px; }
.page-header p { font-size: 1.1rem; opacity: 0.92; margin: 0; }
.breadcrumb-trail { font-size: 0.9rem; opacity: 0.85; margin-bottom: 14px; }
.breadcrumb-trail a { color: #fff; text-decoration: underline; }
.breadcrumb-trail a:hover { opacity: 0.8; }

.page-content { max-width: 900px; margin: 0 auto; padding: 60px 20px; }
.page-content h2 { color: #ac2668; font-size: 1.6rem; margin: 40px 0 16px; }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { color: #333; font-size: 1.25rem; margin: 28px 0 12px; }
.page-content p { color: #555; line-height: 1.8; margin: 0 0 16px; font-size: 1.02rem; }
.page-content ul.rich-list, .page-content ul { color: #555; line-height: 1.8; margin: 0 0 20px; padding-left: 22px; }
.page-content ul.rich-list li, .page-content ul li { margin-bottom: 8px; }

.service-hero-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 8px; margin-bottom: 30px; }

.service-cta-box {
    background: #f8f9fa;
    border-left: 4px solid #ac2668;
    padding: 26px 30px;
    border-radius: 6px;
    margin: 40px 0;
}
.service-cta-box p { margin-bottom: 16px; }
.service-cta-box .btn-primary-cpm { margin-bottom: 0; }

.other-services { padding: 20px 0 0; }
.other-services h2 { color: #ac2668; }
.other-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 20px; }
.other-services-grid a {
    display: block; background: #fff; border: 1px solid #eee; border-radius: 8px;
    padding: 20px; text-decoration: none; color: #333; font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04); transition: box-shadow .2s ease, transform .2s ease;
}
.other-services-grid a:hover { box-shadow: 0 6px 16px rgba(172,38,104,0.15); transform: translateY(-2px); color: #ac2668; }

.btn-primary-cpm {
    display: inline-block; background: #ac2668; color: #fff !important; text-decoration: none;
    padding: 13px 28px; border-radius: 6px; font-weight: 600; border: none; cursor: pointer;
}
.btn-primary-cpm:hover { background: #8e1f55; color: #fff; }

/* About page - team cards (server-rendered, no modal) */
.about-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 20px; }
.about-team-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.07); }
.about-team-card img { width: 100%; height: 280px; object-fit: cover; object-position: top center; }
.about-team-card .member-body { padding: 20px; }
.about-team-card h3 { margin: 0 0 4px; color: #333; }
.about-team-card .member-role { color: #ac2668; font-weight: 600; margin-bottom: 10px; }
.about-team-card .language-tag { display: inline-block; font-size: 0.82rem; background: #f0f2f5; color: #444; padding: 3px 10px; border-radius: 12px; margin: 0 6px 6px 0; }

/* References grid used on the homepage (static, no JS needed) */
.references-grid-static { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 20px; }
.reference-item-static { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.reference-item-static img { width: 100%; height: 170px; object-fit: cover; }
.reference-caption { padding: 16px; }
.reference-caption h3 { font-size: 1rem; margin: 0 0 8px; color: #333; }
.reference-caption p { font-size: 0.88rem; margin: 0 0 4px; color: #666; }
.reference-caption i { color: #ac2668; width: 16px; }

/* Jobs page */
.job-openings { margin-top: 30px; }
.job-opening-card { border: 1px solid #eee; border-radius: 8px; padding: 24px; margin-bottom: 18px; background: #fff; }
.job-opening-card h3 { color: #ac2668; margin: 0 0 8px; }

/* Contact page extras */
.contact-page-intro { max-width: 900px; margin: 0 auto; padding: 40px 20px 0; }
.contact-offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 30px 0 10px; }
.contact-offices .office-card { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 22px; }
.contact-offices .office-card h3 { color: #ac2668; margin: 0 0 10px; }
.contact-offices .office-card p { margin: 0 0 6px; color: #555; }
.contact-offices .office-card i { color: #ac2668; width: 18px; }

.alert { padding: 14px 18px; border-radius: 6px; margin: 0 0 20px; font-weight: 500; }
.alert-success { background: #e6f7ec; color: #1c7c3d; border: 1px solid #b7e6c4; }
.alert-danger { background: #fdecec; color: #b3261e; border: 1px solid #f5c2c0; }

@media (max-width: 640px) {
    .page-header { margin-top: 66px; padding: 50px 0 36px; }
    .page-header h1 { font-size: 1.7rem; }
}
