/* =============================================
   PAGE-SPECIFIC STYLES
   ============================================= */

/* ---------------------------------------------
   WORK & AWARDS
   --------------------------------------------- */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin: -3rem auto 0;
    max-width: 1000px;
    position: relative;
    z-index: 10;
    box-shadow: 0 16px 48px rgba(31, 79, 216, 0.3);
}

.impact-stat {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
    transition: background 0.3s ease;
}

.impact-stat:hover {
    background: rgba(255, 255, 255, 0.06);
}

.impact-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.impact-stat .number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary-yellow);
    font-family: var(--font-heading);
    line-height: 1;
}

.impact-stat .label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

.intro-card {
    max-width: 920px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-yellow));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.intro-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.85;
    text-align: center;
    margin: 0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.achievement-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-blue);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.achievement-card:hover::before {
    transform: scaleY(1);
}

.achievement-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-icon svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    fill: none;
}

.achievement-text {
    color: var(--text-primary);
    font-size: 0.93rem;
    line-height: 1.65;
    margin: 0;
}

.achievement-text strong {
    color: var(--primary-blue);
}

.awards-container {
    max-width: 900px;
    margin: 2.5rem auto 0;
    position: relative;
    padding-left: 60px;
}

.awards-container::before {
    content: '';
    position: absolute;
    left: 26px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-blue), var(--accent-green), var(--secondary-yellow));
    border-radius: 2px;
}

.award-entry {
    position: relative;
    margin-bottom: 1.5rem;
}

.award-entry::before {
    content: '';
    position: absolute;
    left: -41px;
    top: 22px;
    width: 14px;
    height: 14px;
    background: var(--bg-white);
    border: 3px solid var(--primary-blue);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.award-entry:hover::before {
    background: var(--secondary-yellow);
    border-color: var(--secondary-yellow);
    box-shadow: 0 0 0 5px rgba(245, 183, 0, 0.2);
}

.award-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.8rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.award-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.award-card-top {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.4rem;
}

.award-year-pill {
    background: var(--primary-blue);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    flex-shrink: 0;
}

.award-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-heading);
    line-height: 1.4;
}

.award-org {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.award-org svg {
    width: 14px;
    height: 14px;
    stroke: var(--secondary-yellow);
    fill: none;
    flex-shrink: 0;
}

.featured-award {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border-radius: var(--radius-xl);
    padding: 3rem;
    color: white;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 0 16px 48px rgba(31, 79, 216, 0.25);
}

.featured-badge {
    display: inline-block;
    background: rgba(245, 183, 0, 0.2);
    border: 1px solid rgba(245, 183, 0, 0.3);
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    color: var(--secondary-yellow);
    font-weight: 600;
}

.featured-award h3 {
    font-size: var(--fs-h3);
    color: white;
    margin-bottom: 1rem;
}

.featured-award p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto;
}

/* ---------------------------------------------
   GALLERY
   --------------------------------------------- */
.gallery-intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    aspect-ratio: 3/2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: white;
    margin: 0;
    font-size: 1rem;
}

.clippings-section {
    background: var(--bg-primary);
}

.clippings-slider {
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.clippings-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.clipping-slide {
    flex: 0 0 100%;
    padding: 0 1rem;
}

.clipping-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.clipping-card img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    background: #f0f0f0;
}

.clipping-info {
    padding: 1.5rem;
    text-align: center;
}

.clipping-info h4 {
    margin-bottom: 0.5rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.slider-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--text-primary);
}

.slider-btn:hover svg {
    stroke: white;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    padding: 0;
    cursor: pointer;
}

.slider-dot.active {
    background: var(--primary-blue);
    width: 24px;
    border-radius: 10px;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 3rem;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* ---------------------------------------------
   SUCCESS STORIES
   --------------------------------------------- */
.stories-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.case-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-green));
}

.case-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.case-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.case-title {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.case-body p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.cta-banner {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    padding: 4rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-top: 4rem;
    box-shadow: 0 16px 48px rgba(31, 79, 216, 0.2);
}

.cta-banner h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-banner .btn {
    background: var(--secondary-yellow);
    color: var(--text-primary);
    border: none;
}

/* ---------------------------------------------
   DONATE PAGE
   --------------------------------------------- */
.donate-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .donate-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.trust-badges {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.trust-badges h4 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.badge-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

@media (max-width: 480px) {
    .badge-list {
        grid-template-columns: 1fr;
    }
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    flex-shrink: 0;
}

.bank-details-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--primary-blue-light);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.bank-details-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(31, 79, 216, 0.05), transparent);
}

.bank-details-card h4 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
}

.bank-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.9rem 0;
    border-bottom: 1px dashed rgba(31, 79, 216, 0.1);
}

.bank-detail-row:last-child {
    border-bottom: none;
}

.bank-detail-row .label {
    color: var(--text-secondary);
    font-weight: 500;
}

.bank-detail-row .value {
    color: var(--text-primary);
    font-weight: 700;
    font-family: var(--font-heading);
}

.contact-person-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    height: 100%;
}

.contact-person-card h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--secondary-yellow);
    display: inline-block;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item-info {
    flex: 1;
}

.contact-item-label {
    display: block;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

.contact-item-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a.contact-item-value:hover {
    color: var(--primary-blue);
}

.contact-item-address {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ---------------------------------------------
   LEGAL PAGE
   --------------------------------------------- */
.legal-document-showcase {
    max-width: 900px;
    margin: 0 auto;
}

.legal-document-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(31, 79, 216, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
}

.legal-document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-yellow), var(--accent-green));
    z-index: 2;
}

.legal-document-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f0f4ff, #e8eeff);
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--border-color);
}

.legal-badge-icon {
    font-size: 1.2rem;
    animation: legalPulse 2s ease-in-out infinite;
}

@keyframes legalPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.15);
    }
}

.legal-document-image-wrapper {
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fc, #eef1f8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
}

.legal-document-image-wrapper:hover {
    background: linear-gradient(135deg, #eef1f8, #e4e9f5);
}

.legal-document-image-wrapper::after {
    content: '🔍 Click to enlarge';
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    background: rgba(31, 79, 216, 0.85);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.legal-document-image-wrapper:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.legal-document-image {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.legal-document-image:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.legal-document-details {
    padding: 2rem 2.5rem 2.5rem;
}

.legal-document-details h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    position: relative;
    padding-bottom: 0.8rem;
}

.legal-document-details h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-yellow));
    border-radius: 2px;
}

.legal-document-details p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.legal-document-details p:last-child {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
    line-height: 1.85;
}

/* Legal Highlight Cards */
.legal-highlight-card {
    text-align: center;
    padding: 2.5rem 2rem !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legal-highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(31, 79, 216, 0.12);
}

.legal-highlight-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    display: block;
}

/* Legal Lightbox */
.legal-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(8px);
    animation: legalFadeIn 0.3s ease;
}

@keyframes legalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.legal-lightbox.active {
    display: flex;
}

.legal-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    line-height: 1;
}

.legal-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.legal-lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    animation: legalZoomIn 0.4s ease;
}

@keyframes legalZoomIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.legal-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Legal Page Responsive */
@media (max-width: 768px) {
    .legal-document-image-wrapper {
        padding: 1rem;
    }

    .legal-document-details {
        padding: 1.5rem;
    }

    .legal-document-details h3 {
        font-size: 1.2rem;
    }

    .legal-document-badge {
        padding: 0.8rem 1.2rem;
        font-size: 0.82rem;
    }

    .legal-lightbox-content {
        max-width: 95vw;
    }

    .legal-lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* ---------------------------------------------
   RESPONSIVE
   --------------------------------------------- */
@media (max-width: 768px) {
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
        margin: -2rem 1rem 0;
    }

    .impact-stat:nth-child(2)::after {
        display: none;
    }

    .awards-container {
        padding-left: 40px;
    }

    .awards-container::before {
        left: 14px;
    }

    .award-entry::before {
        left: -32px;
        width: 12px;
        height: 12px;
    }

    .case-header {
        flex-direction: column;
        gap: 1rem;
    }

    .case-title {
        font-size: 1.4rem;
    }

    .lightbox-prev {
        left: 0;
    }

    .lightbox-next {
        right: 0;
    }

    .contact-person-card {
        padding: 2rem;
    }
}