/* ============================================
   ABOUT.CSS - MediCare Hospital
   ============================================ */

/* ─── Mission / Vision Cards ─── */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}
.mv-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border-top: 4px solid transparent;
    transition: var(--transition);
}
.mv-card:nth-child(1) { border-top-color: var(--navy); }
.mv-card:nth-child(2) { border-top-color: var(--gold); }
.mv-card:nth-child(3) { border-top-color: #27ae60; }
.mv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.mv-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}
.mv-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 12px;
}
.mv-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ─── Story Section ─── */
.story-section {
    padding: var(--section-pad) 0;
    background: var(--white);
}
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.story-image-stack {
    position: relative;
    height: 560px;
}
.story-img-main {
    position: absolute;
    top: 0; left: 0;
    width: 75%;
    height: 75%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}
.story-img-secondary {
    position: absolute;
    bottom: 0; right: 0;
    width: 60%;
    height: 55%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--white);
}
.story-year-badge {
    position: absolute;
    top: 46%;
    left: 62%;
    background: var(--gold);
    color: var(--navy-dark);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    z-index: 2;
}
.syb-year {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}
.syb-txt { font-size: 0.8rem; font-weight: 700; margin-top: 4px; }

.story-content p + p { margin-top: 16px; }
.story-content .divider { margin-top: 24px; margin-bottom: 24px; }

/* ─── Timeline ─── */
.timeline-section {
    padding: var(--section-pad) 0;
    background: var(--bg-section);
}
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--navy), var(--gold), var(--navy));
    transform: translateX(-50%);
}
.tl-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.tl-content:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tl-item:nth-child(even) .tl-content:first-child { order: 3; }
.tl-item:nth-child(even) .tl-empty { order: 1; }
.tl-empty { visibility: hidden; }
.tl-dot {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--navy);
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 1;
    flex-shrink: 0;
}
.tl-year {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 6px;
}
.tl-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 0.95rem;
}
.tl-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ─── Values ─── */
.values-section {
    padding: var(--section-pad) 0;
    background: var(--navy-dark);
    position: relative;
    overflow: hidden;
}
.values-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='20' fill='none' stroke='%23ffffff' stroke-opacity='0.04'/%3E%3C/svg%3E") repeat;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}
.value-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: 36px 24px;
    text-align: center;
    transition: var(--transition);
}
.value-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-6px);
    border-color: rgba(249,178,0,0.4);
}
.value-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    display: block;
}
.value-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}
.value-text { font-size: 0.85rem; color: rgba(186,210,234,0.8); line-height: 1.6; }

/* ─── Leadership ─── */
.leadership-section {
    padding: var(--section-pad) 0;
    background: var(--white);
}
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.leader-card {
    text-align: center;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.leader-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.leader-photo {
    height: 320px;
    background: var(--sky-light);
    overflow: hidden;
    position: relative;
}
.leader-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.leader-card:hover .leader-photo img { transform: scale(1.05); }
.leader-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--navy-dark), transparent 40%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    gap: 12px;
}
.leader-card:hover .leader-overlay { opacity: 1; }
.leader-social {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--navy);
}
.leader-social:hover { background: var(--gold); color: var(--navy-dark); }
.leader-info { padding: 24px; }
.leader-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.leader-role {
    font-size: 0.82rem;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 4px;
}
.leader-qual { font-size: 0.78rem; color: var(--text-muted); }

/* ─── Accreditations ─── */
.accred-section {
    padding: var(--section-pad) 0;
    background: var(--bg-section);
}
.accred-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.accred-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    border: 2px solid var(--border-light);
    transition: var(--transition);
}
.accred-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.accred-logo { font-size: 2.5rem; margin-bottom: 10px; }
.accred-name { font-weight: 700; font-size: 0.9rem; color: var(--navy-dark); margin-bottom: 4px; }
.accred-year { font-size: 0.75rem; color: var(--gold-dark); font-weight: 600; }
.accred-desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }

/* ─── Responsive ─── */
@media (max-width: 1100px) {
    .mv-grid { grid-template-columns: 1fr; gap: 16px; margin-top: -40px; }
    .story-grid { grid-template-columns: 1fr; gap: 40px; }
    .story-image-stack { height: 400px; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .leadership-grid { grid-template-columns: repeat(2, 1fr); }
    .accred-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .timeline::before { left: 20px; }
    .tl-item { grid-template-columns: auto 1fr; }
    .tl-empty { display: none; }
    .tl-item:nth-child(even) .tl-content:first-child { order: unset; }
    .tl-item:nth-child(even) .tl-empty { order: unset; display: none; }
    .story-image-stack { height: 300px; }
    .leadership-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .values-grid { grid-template-columns: 1fr; }
    .accred-grid { grid-template-columns: 1fr 1fr; }
}
