/* cooperative.css */
.cooperative-page {
    padding-top: 100px;
    padding-bottom: 50px;
}

.cooperative-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.cooperative-content .page-title {
    text-align: left;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6a00;
}

.cooperative-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

/* 좌측 사이드바 메뉴 */
.cooperative-sidebar {
    flex-basis: 250px;
    flex-shrink: 0;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    height: fit-content;
    position: sticky; /* 스크롤 시 고정 */
    top: 100px;
    overflow: hidden;
}

.sidebar-header {
    background-color: #555;
    color: white;
    padding: 15px 20px;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li a {
    display: block;
    text-decoration: none;
    color: #555;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-menu li:last-child a {
    border-bottom: none;
}

.sidebar-menu li a:hover {
    background-color: #fff0e0;
    color: #ff6a00;
}

.sidebar-menu li a.active {
    background-color: #ff6a00;
    color: white;
    font-weight: bold;
}

/* 우측 콘텐츠 영역 */
.cooperative-main-content {
    flex-grow: 1;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cooperative-section h3 {
    font-size: 1.8rem;
    color: #333;
    margin-top: 20px;
    margin-bottom: 15px;
    border-left: 5px solid #ff6a00;
    padding-left: 10px;
}

.cooperative-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.principles-list {
    list-style: none;
    padding: 0;
}

.principle-item {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #eee;
    border-left: 4px solid #999;
    border-radius: 6px;
}

.principle-item h4 {
    font-size: 1.2rem;
    color: #666;
    margin-top: 0;
    margin-bottom: 5px;
    font-weight: bold;
}

/* ----------------------------------------
 * 이미지 배경 사례 카드 스타일 (example-grid)
 * ---------------------------------------- */
.example-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.example-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.card-header-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 10px;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;

    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* 로고를 덮는 투명 레이어 (텍스트 가독성 확보용) */
.logo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 5;
}

.card-header-logo h4 {
    z-index: 10;
    margin: 0;
}

.card-body-text {
    padding: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
    flex-grow: 1;
}

/* 배경 이미지 및 색상 지정 */
.bg-barcelona { background-color: #920023; background-image: url('/images/logos/fcbarcelona.png'); }
.bg-sunkist { background-color: #FF8200; background-image: url('/images/logos/sunkist.png'); }
.bg-migros { background-color: #333; background-image: url('/images/logos/migros.png'); }
.bg-ap { background-color: #5d9d00; background-image: url('/images/logos/ap.png'); }
.bg-mondragon { background-color: #cc3333; background-image: url('/images/logos/mondragon.jpg'); }
.bg-happybridge { background-color: #38b4d8; background-image: url('/images/logos/happybridge.png'); }


/* 모바일 반응형 */
@media (max-width: 992px) {
    .cooperative-page {
        padding-top: 120px;
    }
    .cooperative-layout {
        flex-direction: column;
        gap: 20px;
    }
    .cooperative-sidebar {
        width: 100%;
        position: static;
        top: auto;
    }
    .example-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .cooperative-page {
        padding-top: 100px;
    }
    .example-grid {
        grid-template-columns: 1fr;
    }
}