﻿/* ============================================================
   REUSABLE POLICY & INFORMATION PAGE STYLES
   For: Privacy Policy, Refund Policy, Volunteer Policy, 
        Board of Trustees, Events, and similar pages
   ============================================================ */

/* ── Page Container ── */
.policy-page {
    padding: 50px 0;
    background: #F8FAFC;
    min-height: calc(100vh - 200px);
}

/* ── Page Header ── */
.policy-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #E5E7EB;
}

    .policy-header h1 {
        font-family: 'Playfair Display', serif;
        font-size: 2.5rem;
        color: #0A1628;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

        .policy-header h1 i {
            color: #F59E0B;
        }

    .policy-header .last-updated {
        color: #9CA3AF;
        font-size: 0.85rem;
        font-weight: 500;
    }

    .policy-header .breadcrumb {
        display: flex;
        gap: 8px;
        font-size: 0.85rem;
        color: #9CA3AF;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 10px;
    }

        .policy-header .breadcrumb a {
            color: #1A3A6E;
            transition: color 0.3s ease;
        }

            .policy-header .breadcrumb a:hover {
                color: #F59E0B;
            }

        .policy-header .breadcrumb span {
            color: #9CA3AF;
        }

/* ── Content Card ── */
.policy-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

    .policy-card .section-title {
        font-family: 'Playfair Display', serif;
        font-size: 1.4rem;
        color: #0A1628;
        margin: 30px 0 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid #FEF3C7;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .policy-card .section-title:first-of-type {
            margin-top: 0;
        }

        .policy-card .section-title i {
            color: #F59E0B;
            font-size: 1.2rem;
        }

    .policy-card p {
        font-size: 1rem;
        line-height: 1.9;
        color: #374151;
        margin-bottom: 16px;
    }

    .policy-card ul,
    .policy-card ol {
        list-style: none;
        padding: 0;
        margin: 15px 0;
    }

        .policy-card ul li,
        .policy-card ol li {
            padding: 8px 0 8px 30px;
            position: relative;
            font-size: 0.98rem;
            line-height: 1.7;
            color: #374151;
            border-bottom: 1px solid #F3F4F6;
        }

            .policy-card ul li:last-child,
            .policy-card ol li:last-child {
                border-bottom: none;
            }

            .policy-card ul li::before {
                content: '✦';
                position: absolute;
                left: 0;
                top: 8px;
                color: #F59E0B;
                font-size: 1rem;
            }

    .policy-card ol {
        counter-reset: policy-counter;
    }

        .policy-card ol li {
            counter-increment: policy-counter;
            padding-left: 45px;
        }

            .policy-card ol li::before {
                content: counter(policy-counter) '.';
                position: absolute;
                left: 0;
                top: 8px;
                color: #1A3A6E;
                font-weight: 700;
                font-size: 0.95rem;
            }

    .policy-card .highlight-box {
        background: #EFF6FF;
        border-left: 4px solid #1A3A6E;
        padding: 20px 25px;
        border-radius: 0 8px 8px 0;
        margin: 20px 0;
    }

        .policy-card .highlight-box.gold {
            border-left-color: #F59E0B;
            background: #FFFBEB;
        }

        .policy-card .highlight-box.green {
            border-left-color: #10B981;
            background: #ECFDF5;
        }

        .policy-card .highlight-box.red {
            border-left-color: #EF4444;
            background: #FEF2F2;
        }

        .policy-card .highlight-box h4 {
            font-family: 'Playfair Display', serif;
            color: #0A1628;
            margin: 0 0 8px;
            font-size: 1.05rem;
        }

        .policy-card .highlight-box p {
            margin: 0;
            font-size: 0.95rem;
        }

/* ── Grid Layout for Trustees / Team ── */
.trustees-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.trustee-card,
.team-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    text-align: center;
    border: 1px solid #F3F4F6;
}

    .trustee-card:hover,
    .team-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px rgba(0,0,0,0.1);
        border-color: #F59E0B;
    }

    .trustee-card .trustee-image,
    .team-card .team-image {
        width: 140px;
        height: 140px;
        border-radius: 50%;
        margin: 25px auto 15px;
        overflow: hidden;
        border: 4px solid #F59E0B;
        background: #E5E7EB;
    }

        .trustee-card .trustee-image img,
        .team-card .team-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .trustee-card .trustee-image .placeholder-icon,
        .team-card .team-image .placeholder-icon {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 55px;
            color: #1A3A6E;
            background: #EFF6FF;
        }

    .trustee-card .trustee-info,
    .team-card .team-info {
        padding: 0 20px 25px;
    }

        .trustee-card .trustee-info h3,
        .team-card .team-info h3 {
            font-family: 'Playfair Display', serif;
            font-size: 1.2rem;
            color: #0A1628;
            margin: 0 0 4px;
        }

        .trustee-card .trustee-info .designation,
        .team-card .team-info .designation {
            display: inline-block;
            background: #FEF3C7;
            color: #92400E;
            padding: 3px 16px;
            border-radius: 20px;
            font-size: 0.78rem;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .trustee-card .trustee-info .bio,
        .team-card .team-info .bio {
            color: #6B7280;
            font-size: 0.92rem;
            line-height: 1.7;
            margin: 0;
        }

/* ── Events Grid ── */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    border: 1px solid #F3F4F6;
}

    .event-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0,0,0,0.1);
        border-color: #F59E0B;
    }

    .event-card .event-date {
        background: linear-gradient(135deg, #0A1628, #1A3A6E);
        color: white;
        padding: 15px 20px;
        display: flex;
        align-items: center;
        gap: 15px;
    }

        .event-card .event-date .date-badge {
            background: rgba(245, 158, 11, 0.2);
            padding: 8px 16px;
            border-radius: 8px;
            text-align: center;
            min-width: 70px;
        }

            .event-card .event-date .date-badge .day {
                font-size: 1.5rem;
                font-weight: 700;
                display: block;
                line-height: 1;
            }

            .event-card .event-date .date-badge .month {
                font-size: 0.7rem;
                text-transform: uppercase;
                letter-spacing: 0.05em;
            }

        .event-card .event-date .event-title h4 {
            color: white;
            margin: 0;
            font-size: 1.05rem;
            font-family: 'Playfair Display', serif;
        }

        .event-card .event-date .event-title p {
            color: rgba(255,255,255,0.7);
            margin: 0;
            font-size: 0.8rem;
        }

    .event-card .event-body {
        padding: 20px;
    }

        .event-card .event-body p {
            font-size: 0.95rem;
            line-height: 1.7;
            color: #6B7280;
            margin: 0 0 15px;
        }

        .event-card .event-body .event-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            font-size: 0.85rem;
            color: #9CA3AF;
        }

            .event-card .event-body .event-meta span {
                display: flex;
                align-items: center;
                gap: 5px;
            }

            .event-card .event-body .event-meta i {
                color: #F59E0B;
            }

/* ── Message / Quote Section ── */
.message-section {
    background: linear-gradient(135deg, #0A1628, #1A3A6E);
    color: white;
    padding: 50px 35px;
    border-radius: 16px;
    margin-top: 40px;
    text-align: center;
}

    .message-section h2 {
        color: white;
        font-family: 'Playfair Display', serif;
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

        .message-section h2 i {
            color: #F59E0B;
        }

    .message-section p {
        color: rgba(255,255,255,0.85);
        max-width: 750px;
        margin: 0 auto;
        font-size: 1.05rem;
        line-height: 1.9;
    }

    .message-section .signature {
        font-family: 'Playfair Display', serif;
        font-size: 1.3rem;
        color: #FCD34D;
        margin-top: 15px;
    }

        .message-section .signature span {
            font-family: 'Source Sans 3', sans-serif;
            font-size: 0.9rem;
            color: rgba(255,255,255,0.6);
            display: block;
            font-weight: 400;
        }

/* ── Action Buttons ── */
.policy-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

    .policy-actions .btn-policy {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 28px;
        border-radius: 8px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 0.95rem;
        border: 2px solid transparent;
    }

    .policy-actions .btn-policy-primary {
        background: linear-gradient(135deg, #F59E0B, #D97706);
        color: #0A1628;
    }

        .policy-actions .btn-policy-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
        }

    .policy-actions .btn-policy-outline {
        background: transparent;
        border-color: #1A3A6E;
        color: #1A3A6E;
    }

        .policy-actions .btn-policy-outline:hover {
            background: #1A3A6E;
            color: white;
            transform: translateY(-2px);
        }

/* ── Back to Top ── */
.back-to-policy-top {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #1A3A6E;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 900;
    font-size: 18px;
}

    .back-to-policy-top.visible {
        display: flex;
    }

    .back-to-policy-top:hover {
        background: #F59E0B;
        color: #0A1628;
        transform: translateY(-3px);
    }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .policy-card {
        padding: 35px 30px;
        margin: 0 15px;
    }

    .trustees-grid,
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }

    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .policy-page {
        padding: 30px 0;
    }

    .policy-header h1 {
        font-size: 2rem;
    }

    .policy-card {
        padding: 25px 20px;
        margin: 0 10px;
    }

        .policy-card .section-title {
            font-size: 1.2rem;
        }

        .policy-card p {
            font-size: 0.95rem;
        }

    .trustees-grid,
    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-card .event-date {
        flex-direction: column;
        text-align: center;
    }

    .message-section {
        padding: 35px 20px;
        margin: 30px 10px;
    }

        .message-section h2 {
            font-size: 1.4rem;
        }

    .trustee-card .trustee-image,
    .team-card .team-image {
        width: 110px;
        height: 110px;
    }

    .policy-actions {
        flex-direction: column;
        align-items: center;
    }

        .policy-actions .btn-policy {
            width: 100%;
            max-width: 300px;
            justify-content: center;
        }
}

@media (max-width: 480px) {
    .policy-header h1 {
        font-size: 1.6rem;
    }

        .policy-header h1 i {
            font-size: 1.2rem;
        }

    .policy-card {
        padding: 20px 15px;
        margin: 0 8px;
    }

    .trustees-grid,
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .policy-card ul li,
    .policy-card ol li {
        padding-left: 22px;
        font-size: 0.92rem;
    }

    .policy-card ol li {
        padding-left: 35px;
    }

    .trustee-card .trustee-image,
    .team-card .team-image {
        width: 100px;
        height: 100px;
    }

    .trustee-card .trustee-info h3,
    .team-card .team-info h3 {
        font-size: 1.05rem;
    }

    .message-section {
        padding: 25px 15px;
    }

        .message-section h2 {
            font-size: 1.2rem;
        }

    .back-to-policy-top {
        bottom: 70px;
        right: 15px;
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .policy-card .highlight-box {
        padding: 15px;
    }
}

@media (max-width: 360px) {
    .policy-header h1 {
        font-size: 1.3rem;
        flex-wrap: wrap;
    }

    .policy-card {
        padding: 15px 12px;
    }

        .policy-card .section-title {
            font-size: 1rem;
        }

    .event-card .event-date .event-title h4 {
        font-size: 0.95rem;
    }
}
