/* Custom CSS for About Us Page */

:root {
  --crimson: #ED1A3B;
  --emerald: #009444;
}

.about-us-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.about-us-page h1,
.about-us-page h2,
.about-us-page h3,
.about-us-page h4,
.about-us-page h5,
.about-us-page h6 {
    font-weight: 300;
    line-height: 1.2;
    color: var(--emerald);
}

.about-us-page h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.about-us-page h3 {
    font-size: 1.75rem;
    color: var(--crimson);
}

.about-us-page p {
    margin-bottom: 1rem;
}

.about-us-page a {
    color: var(--crimson);
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-us-page a:hover {
    color: #c01632;
}

.about-us-page .img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-us-page .card {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.about-us-page .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.about-us-page .card-body {
    padding: 1.5rem;
}

.about-us-page .card-title {
    margin-bottom: 1rem;
}

.about-us-page .table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

.about-us-page .table th,
.about-us-page .table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.about-us-page .table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
}

.about-us-page .table tbody + tbody {
    border-top: 2px solid #dee2e6;
}

.about-us-page .mb-5 {
    margin-bottom: 3rem !important;
}

.about-us-page .mt-4 {
    margin-top: 1.5rem !important;
}

.about-us-page .text-center {
    text-align: center !important;
}

.about-us-page .rounded-circle {
    border-radius: 50% !important;
}

/* Project at a Glance Section - Modern Grid Design */
.about-us-page #glance {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.project-glance-container {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.project-glance-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e9ecef;
    grid-column: span 2;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-card-wide {
    grid-column: span 3;
}

.project-card-full {
    grid-column: 1 / -1;
}

.project-card-header {
    background: linear-gradient(135deg, var(--emerald), #00a855);
    color: white;
    padding: 1rem 1.5rem;
    border-bottom: 3px solid var(--crimson);
}

.project-card-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card-content {
    padding: 1.5rem;
}

.project-card-content p {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    line-height: 1.5;
}

.project-card-content p:last-child {
    margin-bottom: 0;
}

.project-card-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
}

.project-budget {
    font-size: 1.8rem;
    color: var(--crimson);
    margin-bottom: 0.5rem;
}

.duration-phases {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.phase {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--emerald);
}

.project-outcomes {
    margin-top: 2rem;
}

.outcomes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.outcome-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--crimson);
}

.outcome-number {
    background: var(--crimson);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.outcome-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-glance-container {
        padding: 1.5rem;
    }
    
    .project-glance-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card-wide,
    .project-card-full {
        grid-column: 1;
    }
    
    .duration-phases {
        gap: 0.5rem;
    }
    
    .phase {
        padding: 0.5rem;
    }
    
    .project-budget {
        font-size: 1.5rem;
    }
    
    .outcome-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .outcome-number {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .about-us-page #glance {
        padding: 1rem 0.5rem;
    }
    
    .project-glance-container {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .project-card-header {
        padding: 0.75rem 1rem;
    }
    
    .project-card-content {
        padding: 1rem;
    }
}

/* Center the entire article content */
.about-us-page article {
    max-width: 1200px;
    margin: 0 auto;
}

/* Simple approach: Center all h3 and p elements that appear after the first few */
.about-us-page h3:nth-of-type(4),
.about-us-page h3:nth-of-type(5),
.about-us-page h3:nth-of-type(6),
.about-us-page h3:nth-of-type(7),
.about-us-page h3:nth-of-type(8) {
    text-align: center !important;
    margin: 2rem auto 1rem auto !important;
    max-width: 600px;
}

.about-us-page p:nth-of-type(7),
.about-us-page p:nth-of-type(8),
.about-us-page p:nth-of-type(9),
.about-us-page p:nth-of-type(10),
.about-us-page p:nth-of-type(11),
.about-us-page p:nth-of-type(12) {
    text-align: center !important;
    max-width: 600px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Override the centering for the glance section specifically */
.about-us-page #glance {
    text-align: left !important;
}

.about-us-page #glance h3,
.about-us-page #glance p {
    text-align: left !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Broad approach: center content in the middle section of the article */
.about-us-page article > section:nth-child(2):not(#glance) {
    text-align: center !important;
    max-width: 800px;
    margin: 0 auto !important;
}

.about-us-page article > section:nth-child(2):not(#glance) h3,
.about-us-page article > section:nth-child(2):not(#glance) p {
    text-align: center !important;
    max-width: 600px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Navigation Styles for About Us Page */
.about-us-page nav a[href="/about-us/"] {
    color: var(--crimson) !important;
    font-weight: 700;
}

/* Donors & Partners Section */
.donor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.donor-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.donor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.donor-card-content {
    padding: 1.5rem;
}

.donor-card-content h3 {
    font-size: 1.5rem;
    color: var(--emerald);
    margin-bottom: 1rem;
}

.donor-card-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.donor-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

.donor-website-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--crimson);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.donor-website-btn:hover {
    background-color: #c01632;
    color: white !important;
}
