/**
 * Partners and Affiliates Styles
 */

.scn-partners-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.scn-partners-empty {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.scn-partner-wrapper {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e0e0e0;
}

.scn-partner-wrapper:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Partner Logo */
.scn-partner-logo {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scn-partner-logo img {
    max-width: 300px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Partner Description */
.scn-partner-description {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.scn-partner-description p {
    margin-bottom: 1rem;
}

/* Affiliates Grid */
.scn-affiliates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
    justify-content: center;
    max-width: 100%;
}

/* Single column on mobile */
@media (max-width: 768px) {
    .scn-affiliates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center;
        max-width: 100%;
    }
}

/* Affiliate Card */
.scn-affiliate-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    max-width: 100%;
    width: 100%;
}

.scn-affiliate-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Affiliate Picture Wrapper */
.scn-affiliate-picture-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Partner Logo Mini (above affiliate picture) */
.scn-partner-logo-mini {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scn-partner-logo-mini img {
    /* max-width: 80px; */
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Affiliate Picture */
.scn-affiliate-picture {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.scn-affiliate-picture img {
    width: 120px;
    height: 120px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 3px solid #f0f0f0;
    display: block;
    margin: 0 auto;
}

/* Affiliate Content */
.scn-affiliate-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.scn-affiliate-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #333;
    text-align: center;
}

.scn-affiliate-title {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 1rem 0;
    text-align: center;
    font-style: italic;
}

.scn-affiliate-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
    flex: 1;
    text-align: center;
}

.scn-affiliate-bio p {
    margin-bottom: 0.75rem;
}

.scn-affiliate-bio p:last-child {
    margin-bottom: 0;
}

/* Social Icons */
.scn-affiliate-social-icons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.scn-social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.scn-social-icon-link:hover {
    background: #333;
    color: #fff;
    transform: scale(1.1);
}

.scn-social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Partner Events */
.scn-partner-events-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    max-width: 100%;
}

/* Center single card when there's only one */
.scn-partner-events-grid > .scn-event-card:only-child {
    max-width: 500px;
    width: 100%;
    grid-column: 1 / -1;
    justify-self: center;
}

/* Single column on mobile for events */
@media (max-width: 768px) {
    .scn-partner-events-grid {
        grid-template-columns: 1fr;
    }
    
    .scn-partner-events-grid > .scn-event-card:only-child {
        grid-column: 1;
        max-width: 100%;
    }
}

.scn-event-card {
    align-items: stretch;
}

.scn-event-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
}

.scn-event-partner {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 0.25rem;
    text-align: center;
}

.scn-event-title {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.scn-event-title a {
    color: inherit;
    text-decoration: none;
}

.scn-event-title a:hover {
    text-decoration: underline;
}

.scn-event-meta {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.scn-event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.scn-event-meta-item strong {
    font-weight: 600;
    color: #333;
}

.scn-event-date,
.scn-event-location,
.scn-event-booth {
    display: inline-block;
    color: #555;
}

.scn-event-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.75rem;
    text-align: center;
    line-height: 1.6;
}

.scn-event-additional {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 1rem;
}

.scn-event-actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.scn-event-link {
    display: inline-block;
    padding: 0.65rem 1.1rem;
    background: #333;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.scn-event-link:hover {
    background: #111;
    transform: translateY(-1px);
}

/* Event Courses */
.scn-event-courses {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.scn-event-courses-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #333;
    text-align: center;
}

.scn-event-courses-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scn-event-course-item {
    padding: 0.75rem;
    background: #f9f9f9;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.scn-course-name {
    font-size: 0.95rem;
    color: #333;
    display: block;
}

.scn-course-date {
    font-size: 0.85rem;
    color: #666;
    display: block;
}

.scn-course-link {
    font-size: 0.9rem;
    color: #333;
    text-decoration: underline;
    display: inline-block;
    margin-top: 0.25rem;
}

.scn-course-link:hover {
    color: #000;
}

.scn-course-info {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    margin-top: 0.25rem;
}

.scn-course-info p {
    margin: 0 0 0.5rem 0;
}

.scn-course-info p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .scn-partners-container {
        padding: 1rem 0.5rem;
    }
    
    .scn-partner-logo img {
        max-width: 200px;
    }
    
    .scn-partner-description {
        font-size: 1rem;
    }
    
    .scn-affiliate-card {
        padding: 1rem;
    }
    
    .scn-affiliate-picture img {
        width: 100px;
        height: 100px;
        border-radius: 50% !important;
    }
}

