/* =======================================================
   TESTIMONIAL PAGE – White + Blue Child-Friendly Styling
   ======================================================= */

body.testimonial-banner-page #page-header,
body.testimonial-banner-page #page-header .col-12,
body.testimonial-banner-page #page-header .card,
body.testimonial-banner-page #page-header .card-body,
body.testimonial-banner-page #page-header .d-sm-flex,
body.testimonial-banner-page #page-header .mx-auto,
body.testimonial-banner-page #page-header .logo {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

body.testimonial-banner-page #page-header .logo img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}
/* -------------------- BANNER -------------------- */
#page-header { display: none !important; }
.pc-banner { border-radius: 12px; overflow: hidden; }
.pc-banner img { display:block; width:100%; height:auto; }

/* -------------------- CONTAINER -------------------- */
.testimonial-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: linear-gradient(180deg, #f9fcff 0%, #ffffff 100%);
    border-radius: 1rem;
}

/* -------------------- HEADER -------------------- */
.page-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header-container h3 {
    margin-bottom: 0;
    font-weight: 700;
    color: #007bff;
    text-shadow: 0 1px 2px rgba(0, 123, 255, 0.15);
}

.page-header-container .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #00a8ff 100%);
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
    transition: all 0.3s ease;
}

.page-header-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

/* -------------------- GRID -------------------- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* -------------------- CARD -------------------- */
.testimonial-card {
    background: #ffffff;
    border: none;
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
    font-size: 80px;
    color: #007bff;
    opacity: 0.08;
    z-index: 1;
}

/* -------------------- CONTENT -------------------- */
.testimonial-content {
    position: relative;
    z-index: 2;
}

.testimonial-content .message {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 80px;
}

/* -------------------- ATTRIBUTION -------------------- */
.attribution {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eaf2fa;
}

.testimonial-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a8ff, #007bff);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.2);
}

.attribution-details .name {
    font-weight: 700;
    color: #004085;
}

.attribution-details .school {
    font-size: 0.9rem;
    color: #6c757d;
}

/* -------------------- PAGINATION -------------------- */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    list-style: none;
    padding-left: 0;
}

.page-item .page-link {
    position: relative;
    display: block;
    padding: 0.6rem 1rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #007bff;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
}

.page-item .page-link:hover {
    color: #0056b3;
    background-color: #e9f4ff;
    border-color: #b8daff;
}

.page-item.active .page-link {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

/* -------------------- RESPONSIVE TWEAKS -------------------- */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 1.25rem;
    }

    .testimonial-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .page-header-container h3 {
        font-size: 1.4rem;
    }
}
