/* Code of Conduct Page Styles */

.coc-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.coc-sidebar {
    position: sticky;
    top: 150px;
    height: fit-content;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.coc-nav-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f4ff;
}

.coc-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.coc-nav-item {
    margin-bottom: 10px;
}

.coc-nav-link {
    display: block;
    padding: 10px 15px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.coc-nav-link:hover {
    background: #f0f4ff;
    color: var(--primary-color);
    padding-left: 20px;
}

.coc-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.coc-section {
    margin-bottom: 60px;
    scroll-margin-top: 160px;
}

.coc-section:last-child {
    margin-bottom: 0;
}

.coc-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.coc-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.coc-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.coc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.coc-list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.coc-list-item i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--secondary-color);
    font-size: 18px;
}

.coc-sub-section {
    margin-top: 30px;
    padding: 25px;
    background: #f8faff;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.coc-sub-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.coc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.coc-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5eefb;
    transition: transform 0.3s ease;
}

.coc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.coc-card-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.coc-alert {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    padding: 20px;
    border-radius: 8px;
    color: #c53030;
    margin-top: 20px;
}

.coc-alert-title {
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.coc-download-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.coc-download-text h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
}

.coc-download-text p {
    margin: 0;
    opacity: 0.8;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .coc-container {
        grid-template-columns: 1fr;
    }
    .coc-sidebar {
        display: none; /* Hide sidebar on small screens or make it an accordion */
    }
}

@media (max-width: 768px) {
    .coc-content {
        padding: 25px;
    }
    .coc-grid {
        grid-template-columns: 1fr;
    }
    .coc-download-bar {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}
