/* CSO, NGO & Charity Organizations Page Styles */

:root {
    --primary: #0056b3;
    --secondary: #00c0ef;
    --accent: #7d3c98;
    --dark: #1a2b4d;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #28a745;
}

/* Hero Section */
.hero-cso {
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.9) 0%, rgba(0, 192, 239, 0.85) 100%), url('https://images.unsplash.com/photo-1559027615-cd4628902d4a?ixlib=rb-4.0.3') center/cover;
    color: white;
    padding: 180px 0 100px;
    margin-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-cso .container {
    position: relative;
    z-index: 1;
}

.hero-cso h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: white;
}

.hero-cso > .container > p {
    font-size: 1.4rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero-cso .subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .hero-cso {
        padding: 120px 0 80px;
    }

    .hero-cso h1 {
        font-size: 2.2rem;
    }
    
    .hero-cso > .container > p {
        font-size: 1.1rem;
    }
}

/* CSO Section Styles */
.cso-section {
    padding: 100px 0;
    background-color: white;
}

.cso-section:nth-child(even) {
    background-color: var(--light);
}

.cso-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--dark);
    text-align: center;
    position: relative;
}

.cso-section h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
}

.cso-section .content-block {
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #555;
}

.cso-section .content-block p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.cso-section .content-block p strong {
    color: var(--primary);
    font-weight: 600;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Core Capabilities Grid */
.core-capabilities {
    background-color: var(--light);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.capability-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--secondary);
}

.capability-card:hover {
    transform: translateY(-10px);
}

.capability-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

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

.capability-card p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .capability-card {
        padding: 30px;
    }
}

/* Applications Section */
.applications-section {
    background-color: white;
}

.applications-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.app-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.app-card.active {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.app-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 20px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-card:hover .app-header {
    background: linear-gradient(135deg, #003d82 0%, #0096b3 100%);
}

.app-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.app-header h3 i {
    font-size: 1.3rem;
}

.app-header::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.app-card.active .app-header::after {
    transform: rotate(180deg);
}

.app-content {
    padding: 20px;
    max-height: 600px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
}

.app-card:not(.active) .app-content {
    max-height: 0;
    padding: 0 20px;
    opacity: 0;
}

.app-usage {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.app-features {
    background-color: var(--light);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.app-features h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.app-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-features li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    padding-left: 20px;
    position: relative;
}

.app-features li:last-child {
    margin-bottom: 0;
}

.app-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
    font-size: 1rem;
}

.app-features strong {
    color: var(--dark);
    font-weight: 600;
}

@media (max-width: 768px) {
    .applications-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .app-header h3 {
        font-size: 1rem;
    }
}

/* Sector Applications */
.sector-applications {
    background-color: var(--light);
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.sector-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary);
}

.sector-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.sector-header {
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.95) 0%, rgba(0, 192, 239, 0.9) 100%);
    color: white;
    padding: 20px;
}

.sector-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sector-header h3 i {
    font-size: 1.3rem;
}

.sector-content {
    padding: 25px;
}

.sector-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .sector-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .sector-header h3 {
        font-size: 1rem;
    }
}

/* Benefits Section */
.benefits-section {
    background-color: var(--light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.benefit-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.benefit-item p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .benefit-item {
        padding: 25px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Conclusion Section */
.conclusion-section {
    background-color: white;
}

.conclusion-text {
    max-width: 900px;
    margin: 0 auto 50px;
}

.conclusion-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 1.5rem;
}

.conclusion-text p strong {
    color: var(--primary);
    font-weight: 600;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: #003d82;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-primary:hover {
    background-color: #0096b3;
    color: white;
}

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

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

@media (max-width: 768px) {
    .conclusion-text p {
        text-align: justify;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }
}

/* Responsive Typography */
@media (max-width: 1024px) {
    .cso-section h2 {
        font-size: 2rem;
    }

    .capability-card,
    .benefit-item {
        padding: 30px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cso-section {
    animation: fadeInUp 0.6s ease;
}

.app-card {
    animation: fadeInUp 0.6s ease;
}

.capability-card {
    animation: fadeInUp 0.6s ease;
}

.benefit-item {
    animation: fadeInUp 0.6s ease;
}

.sector-card {
    animation: fadeInUp 0.6s ease;
}

/* Print styles */
@media print {
    .conclusion-section {
        background: white;
        color: #333;
    }

    .app-card {
        page-break-inside: avoid;
    }
}
