/* ================================================================
   SUB-PAGES MODERN DESIGN
   Shared styles for all pages in /pages/
   Consistent with index.html design system
================================================================ */

/* ================================================================
   PAGE SECTIONS  (replaces inline style="padding: 6rem 0;")
================================================================ */
.page-section {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.page-section-alt {
    padding: 6rem 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow decoration */
.page-section::before,
.page-section-alt::before {
    content: '';
    position: absolute;
    top: -100px; right: -150px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(34,197,94,0.06), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.page-section > .container,
.page-section-alt > .container {
    position: relative;
    z-index: 1;
}

/* ================================================================
   SECTION HEADER — eyebrow + title-line
================================================================ */
.section-header .eyebrow {
    display: inline-flex;
    margin-bottom: 0.8rem;
}

.section-header .title-line {
    margin: 1rem auto 0;
}

/* ================================================================
   MODERN ABOUT CARDS
================================================================ */
.about-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 197, 94, 0.1);
    display: flex;
    flex-direction: column;
}

/* Gradient top bar — slides in on hover */
.about-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--teal), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
    border-radius: 0;
}
.about-card:hover::before { transform: scaleX(1); }

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md), 0 0 28px rgba(34, 197, 94, 0.14);
}

/* Icon circle */
.about-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(13, 148, 136, 0.12));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.35s var(--ease-out);
}

.about-card:hover .about-icon {
    transform: scale(1.1) rotate(-4deg);
}

/* FA icon inside .about-icon */
.about-icon i {
    font-size: 1.6rem;
    color: var(--primary);
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.3;
}

.about-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 0.95rem;
    flex: 1;
}

/* ================================================================
   ABOUT GRID — 3 columns with responsive fallback
================================================================ */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
    max-width: 860px;
}

/* ================================================================
   PAGE TEXT BLOCK (styled prose container)
================================================================ */
.page-text-block {
    max-width: 900px;
    margin: 0 auto;
}

.page-text-block p {
    font-size: 1.1rem;
    line-height: 1.88;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.page-text-block p:last-child { margin-bottom: 0; }

/* ================================================================
   APPROACH BLOCKS (about-us "Our Approach" section)
================================================================ */
.approach-block {
    padding-left: 2rem;
    margin-bottom: 3.5rem;
    border-left: 3px solid rgba(34, 197, 94, 0.2);
    transition: border-color 0.3s ease;
    position: relative;
}

.approach-block::before {
    content: '';
    position: absolute;
    left: -3px; top: 0;
    width: 3px; height: 0;
    background: linear-gradient(to bottom, var(--secondary), var(--accent));
    transition: height 0.5s var(--ease-out);
}

.approach-block:hover { border-left-color: transparent; }
.approach-block:hover::before { height: 100%; }

.approach-block:last-child { margin-bottom: 0; }

.approach-block h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.approach-block p {
    font-size: 1.05rem;
    line-height: 1.88;
    color: var(--gray);
}

/* ================================================================
   VISION / MISSION BOXES
================================================================ */
.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.vm-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid rgba(34, 197, 94, 0.12);
    position: relative;
    overflow: hidden;
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.vm-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--teal));
}

.vm-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md), 0 0 28px rgba(34, 197, 94, 0.12);
}

.vm-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(13,148,136,0.12));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.8rem;
    font-size: 1.8rem;
}

.vm-icon i { color: var(--primary); font-size: 1.6rem; }

.vm-box .section-title {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

.vm-box p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--gray);
}

/* ================================================================
   ABOUT-CARD — Image variant (for impact-areas)
================================================================ */
.about-card.has-image {
    padding: 0;
    overflow: hidden;
}

.about-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out);
}

.about-card.has-image:hover .about-card-image { transform: scale(1.07); }

.about-card.has-image h3 {
    padding: 1.5rem 1.5rem 0;
}

.about-card.has-image p {
    padding: 0.5rem 1.5rem 1.5rem;
}

/* ================================================================
   IMPACT AREAS — Detailed text blocks
================================================================ */
.impact-detail-block {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    border-left: 4px solid var(--secondary);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.impact-detail-block:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}

.impact-detail-block h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.impact-detail-block p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--gray);
}

/* ================================================================
   POLICY CTA BUTTON (about-us → policies link)
================================================================ */
.policy-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 2.2rem;
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.4px;
    box-shadow: var(--shadow-sm);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.policy-cta-btn:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .vm-grid { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 600px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-grid.two-col { grid-template-columns: 1fr; }
    .page-section,
    .page-section-alt { padding: 4rem 0; }
    .rescue-stats { grid-template-columns: repeat(2, 1fr); }
    .page-text-block p { font-size: 1rem; line-height: 1.75; }
}

@media (max-width: 400px) {
    .rescue-stats { grid-template-columns: 1fr; }
}

/* ================================================================
   PUBLICATION DOCUMENT CARDS
================================================================ */
.pub-doc-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.75rem;
    margin-top: 2.5rem;
    align-items: start;
}

.pub-doc-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--white);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
    cursor: pointer;
}

.pub-doc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.pub-doc-img-wrap {
    position: relative;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
    aspect-ratio: 3 / 4;
}

.pub-doc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.5s var(--ease-out);
}

.pub-doc-card:hover .pub-doc-img-wrap img {
    transform: scale(1.05);
}

.pub-doc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pub-doc-card:hover .pub-doc-overlay { opacity: 1; }

.pub-doc-overlay i {
    font-size: 2.2rem;
    color: #ff4c4c;
}

.pub-doc-info {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 3px solid var(--secondary);
    margin-top: auto;
}

.pub-doc-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.3rem;
    line-height: 1.3;
}

.pub-doc-series {
    font-size: 0.78rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* ================================================================
   PUBLICATION SUBSECTIONS
================================================================ */
.pub-subsection {
    margin-bottom: 4rem;
}

.pub-subsection:last-child {
    margin-bottom: 0;
}

.pub-subsection-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid rgba(34, 197, 94, 0.18);
}

.pub-subsection-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0;
}

.pub-subsection-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    line-height: 1;
}

.pub-subsection-badge.badge-active {
    background: rgba(34, 197, 94, 0.12);
    color: var(--primary);
}

.pub-subsection-badge.badge-pending {
    background: rgba(234, 179, 8, 0.12);
    color: #92660a;
}

.pub-subsection-badge i {
    font-size: 0.65rem;
}

/* Pending placeholder card */
.pub-doc-pending {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3.5rem 2rem;
    border: 2px dashed rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-lg);
    color: #999;
    text-align: center;
}

.pub-doc-pending i {
    font-size: 2.4rem;
    color: rgba(34, 197, 94, 0.35);
}

.pub-doc-pending p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.pub-doc-pending strong {
    display: block;
    font-size: 1rem;
    color: #777;
    margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
    .pub-doc-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 480px) {
    .pub-doc-grid { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
}
