/**
 * Annual Reports CSS
 * Styling for the annual report page with flexbox layout
 */

/* Color variables */
:root {
    --af-blue: #184B77;
    --af-blue-light: #76A7CC;
    --af-light-bg: #f8f9fa;
    --af-green: #468B55;
    --af-card-shadow: 0 2px 10px rgba(24,75,119,0.07);
    --af-card-radius: 14px;
}

/* Container styling */
.page-template-template-annual-report .entry-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}

/* Support flexbox container */
.page-template-template-annual-report .entry-content > div:nth-child(2) {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto 2em auto;
}

/* Section styling */
.page-template-template-annual-report .entry-content section {
    flex: 1 1 300px;
    max-width: 350px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(24,75,119,0.07);
    text-align: center;
    padding: 24px 16px;
}

@media (max-width: 1000px) {
    .page-template-template-annual-report .entry-content > div:nth-child(2) {
        flex-direction: column;
        align-items: center;
    }
    
    .page-template-template-annual-report .entry-content section {
        max-width: 95%;
    }
}

/* Header styling */
.page-template-template-annual-report .entry-content > div:first-child h2 {
    color: #184B77;
    font-weight: 700;
}

.page-template-template-annual-report .entry-content > div:first-child h3 {
    margin-top: 0.2em;
    font-weight: 400;
}

/* Year headers */
.page-template-template-annual-report .entry-content section h4 {
    color: #184B77;
    margin-bottom: 1em;
}

/* Image styling */
.page-template-template-annual-report .entry-content section a img {
    display: block;
    margin: 0 auto 1em auto;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(24,75,119,0.10);
    border: 2px solid #184B77;
    max-width: 230px;
    width: 100%;
    height: auto;
}

/* Image hover effects */
.page-template-template-annual-report .entry-content section a img:hover {
    box-shadow: 0 4px 12px rgba(24, 75, 119, 0.15);
    transition: all 0.3s ease;
}

/* Link hover effects */
.page-template-template-annual-report .entry-content a:hover {
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

/* Paragraph styling */
.page-template-template-annual-report .entry-content section p {
    max-width: 300px;
    margin: 0.5em auto 1.2em;
    font-size: 0.98em;
}

/* Download links styling */
.page-template-template-annual-report .entry-content section div {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Link styling */
.page-template-template-annual-report .entry-content section div a {
    color: #184B77;
    font-weight: 500;
    text-decoration: underline;
}

/* Ensure header is centered and spans full width with proper spacing */
.page-template-template-annual-report .entry-content > div:first-child {
    width: 100%;
    margin-top: 3rem;
    margin-bottom: 2.5em;
    text-align: center;
}

/* Additional accessibility improvements */
.page-template-template-annual-report .entry-content a:focus {
    outline: 2px solid var(--af-blue-light);
    outline-offset: 2px;
}

/* Animation for hover effects */
.page-template-template-annual-report .entry-content a,
.page-template-template-annual-report .entry-content img,
.page-template-template-annual-report .entry-content section {
    transition: all 0.3s ease;
}

/* Hover effect for section cards */
.page-template-template-annual-report .entry-content section:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(24,75,119,0.12);
}

/* Preserve proper spacing when screen size changes */
@media (max-width: 1000px) {
    .page-template-template-annual-report .entry-content > div:nth-child(2) section {
        margin-bottom: 1.5em;
    }
}

/* Force class override */
.page-template-template-annual-report .annualreport3col {
    /* This ensures any .annualreport3col class is properly styled */
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto 2em auto;
}
