/* resources.css - Resources Page Styles - Clean Version */

:root {
    --primary-blue: #03224d;
    --primary-red: #c24132;
    --primary-color: var(--primary-blue);
    --secondary-color: var(--primary-red);
    --accent-color: var(--primary-red);
    --success-color: #27ae60;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gray-color: #95a5a6;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Source Serif Pro', serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Page Header */
.page-header {
    background: var(--primary-blue);
    padding: 80px 0 60px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb span {
    color: var(--white);
    font-weight: 600;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #021a3a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Resource Overview */
.resource-overview {
    padding: 80px 0;
    background: var(--light-color);
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.overview-content h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.overview-content .lead {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 40px;
    line-height: 1.6;
}

.resource-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 20px 15px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--gray-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.key-highlights {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

.key-highlights h3 {
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.key-highlights h3 i {
    color: var(--accent-color);
}

.key-highlights ul {
    list-style: none;
}

.key-highlights li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--dark-color);
    border-bottom: 1px solid var(--light-color);
}

.key-highlights li:last-child {
    border-bottom: none;
}

.key-highlights li i {
    position: absolute;
    left: 0;
    color: var(--success-color);
}

.overview-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

.quick-access {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--primary-color);
}

.quick-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.quick-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.quick-header h4 {
    color: var(--dark-color);
    margin: 0;
    font-size: 1.3rem;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-color);
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.quick-link:hover {
    background: #e0e6eb;
    transform: translateX(5px);
}

.quick-link i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 24px;
}

.quick-link span {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Resource Categories */
.resource-categories {
    padding: 80px 0;
    background: var(--white);
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--light-color);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-color);
    font-size: 0.95rem;
}

.category-tab:hover {
    background: #d5dbdb;
}

.category-tab.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.category-tab i {
    font-size: 1rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.resource-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.resource-header {
    padding: 25px 25px 15px;
    border-bottom: 1px solid var(--light-color);
}

.resource-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--white);
}

.resource-badge.training {
    background: var(--primary-color);
}

.resource-badge.support {
    background: var(--accent-color);
}

.resource-badge.funding {
    background: var(--success-color);
}

.resource-badge.ecosystem {
    background: var(--secondary-color);
}

.resource-badge.tools {
    background: var(--primary-color);
}

.resource-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark-color);
    line-height: 1.3;
}

.resource-description {
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.resource-content {
    padding: 20px 25px;
    flex: 1;
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.resource-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--gray-color);
    background: var(--light-color);
    padding: 4px 10px;
    border-radius: 15px;
}

.resource-meta i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.resource-features {
    list-style: none;
}

.resource-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--dark-color);
    font-size: 0.9rem;
    line-height: 1.4;
    border-bottom: 1px dashed var(--light-color);
}

.resource-features li:last-child {
    border-bottom: none;
}

.resource-features li i {
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-size: 0.85rem;
}

.resource-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.resource-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--gray-color);
}

.resource-status i {
    color: var(--success-color);
    font-size: 0.7rem;
}

.resource-actions {
    display: flex;
    gap: 10px;
}

/* Target Groups */
.target-groups {
    padding: 80px 0;
    background: rgba(3, 34, 77, 0.03);
}

.targets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.target-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.target-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.target-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 2rem;
}

.target-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.target-card p {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 80px;
}

.target-programs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.program-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--light-color);
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--dark-color);
    font-weight: 500;
}

/* Additional Programs */
.additional-programs {
    padding: 80px 0;
    background: var(--white);
}

.programs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.program-item {
    background: var(--light-color);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.program-item h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.program-item h3 i {
    color: var(--primary-color);
}

.program-item p {
    color: var(--gray-color);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

/* Strategic Partners */
.strategic-partners {
    padding: 80px 0;
    background: rgba(3, 34, 77, 0.03);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.partner-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.partner-logo {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 2rem;
}

.partner-item h3 {
    color: var(--dark-color);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.partner-item p {
    color: var(--gray-color);
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn {
    box-shadow: var(--shadow-md);
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.cta-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
}

.cta-section .btn-secondary {
    background: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.cta-section .btn-secondary:hover {
    background: #a9372a;
    color: var(--white);
}

.cta-section .btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-section .btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-about {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.contact-info i {
    color: var(--success-color);
    margin-top: 4px;
    width: 16px;
}

.newsletter-form {
    display: flex;
    margin: 20px 0;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px 0 0 6px;
    font-family: inherit;
    font-size: 0.95rem;
}

.newsletter-form button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 20px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #021a3a;
}

.hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hashtags span {
    color: var(--success-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .footer-links {
    display: flex;
    gap: 25px;
}

.footer-bottom .footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .resources-grid,
    .targets-grid,
    .programs-list,
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .resource-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-tab {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .resources-grid,
    .targets-grid,
    .programs-list,
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-stats {
        grid-template-columns: 1fr;
    }
    
    .resource-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .resource-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-bottom .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .resource-header,
    .resource-content,
    .resource-footer {
        padding: 20px;
    }
    
    .target-card {
        padding: 25px 20px;
    }
    
    .program-item {
        padding: 20px;
    }
    
    .partner-item {
        padding: 25px 20px;
    }
    
    .quick-link {
        padding: 12px;
    }
    
    .quick-link i {
        font-size: 1.2rem;
    }
    
    .quick-link span {
        font-size: 0.85rem;
    }
}
