/* Partners Directory Styles */
body.partners-page { overflow-x: hidden !important; }
.partners-directory-container, .partner-profile-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
    overflow-x: hidden !important;
    box-sizing: border-box;
}
.partners-directory-container *, .partner-profile-container * {
    box-sizing: border-box;
}
.partners-header { text-align: center; margin-bottom: 40px; }
.partners-header h1 { font-size: 2.5em; margin-bottom: 10px; }
.partners-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 25px; 
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.partner-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.partner-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.partner-card a { text-decoration: none; color: inherit; display: block; }
.partner-avatar { position: relative; height: 200px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #f8f9fa; }
.partner-avatar img { border-radius: 50%; width: 120px; height: 120px; object-fit: cover; border: 4px solid white; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.partner-info { padding: 20px; text-align: center; }
.partner-info h3 { margin: 0 0 10px 0; font-size: 1.2em; line-height: 1.4; color: #333; }
.partner-role { color: #666; font-size: 0.9em; margin: 5px 0; }
.partner-description { color: #fff; font-size: 0.9em; margin: 5px 0; }
.partner-posts-count { color: #888; font-size: 0.9em; margin: 10px 0 0 0; }
.partner-profile-header { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    padding: 60px 40px; 
    border-radius: 0px; 
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.partner-profile-content { display: flex; align-items: center; gap: 30px; }
.partner-profile-avatar img { border-radius: 50%; width: 120px; height: 120px; object-fit: cover; border: 4px solid rgba(255,255,255,0.3); }
.partner-profile-info h1 { margin: 0 0 15px 0; font-size: 2.5em; font-weight: 700; }
.partner-description { margin: 10px 0; opacity: 0.9; }
.partner-stats { display: flex; gap: 30px; margin-top: 20px; }
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 2em; font-weight: 700; line-height: 1; }
.stat-item small { font-size: 0.8em; opacity: 0.8; letter-spacing: 1px; }
.partner-content-section { 
    background: white; 
    border-radius: 0px; 
    padding: 40px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.content-controls { display: flex; gap: 15px; margin-bottom: 30px; align-items: center; flex-wrap: wrap; }
#partner-search { flex: 1; min-width: 200px; padding: 12px 20px; border: 2px solid #e1e5e9; border-radius: 0px; font-size: 16px; outline: none; }
#partner-sort { padding: 12px 20px; border: 2px solid #e1e5e9; border-radius: 0px; font-size: 16px; outline: none; background: white; min-width: 180px; }
#search-btn { padding: 12px 25px; background: #667eea; color: white; border: none; border-radius: 0px; cursor: pointer; font-size: 16px; }
.partner-posts-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 25px; 
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
}
.post-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,0.1); transition: transform 0.3s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.post-card a { text-decoration: none; color: inherit; display: block; }
.post-thumbnail { position: relative; height: 200px; overflow: hidden; }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.post-type-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
.audio-badge {
    background: rgba(0, 255, 0, 0.9);
    color: #000;
}
.video-badge {
    background: rgba(255, 0, 0, 0.9);
    color: #fff;
}
.post-badge {
    background: rgba(0, 115, 170, 0.9);
    color: #fff;
}
.post-info { padding: 5px 20px 5px; }
.post-info h3 { margin: 0 0 5px 0; font-size: 16px; line-height: 17px; color: #333; }
.post-date { color: #888; font-size: 12px; margin: 0 0 5px; 0 }
#load-more-posts { padding: 15px 30px; background: #667eea; color: white; border: none; border-radius: 25px; cursor: pointer; font-size: 16px; }
.no-posts { text-align: center; color: #888; font-size: 1.2em; margin: 40px 0; }
@media (max-width: 768px) {
.partners-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.partner-profile-content { flex-direction: column; text-align: center; gap: 20px; }
.content-controls { flex-direction: column; }
#partner-search, #partner-sort { width: 100%; min-width: auto; }
}

/* Make the Search button full width when controls stack on mobile */
@media (max-width: 768px) {
  #search-btn , select {
    width: 100%;
    flex: 0 0 100%;
    display: block;
    box-sizing: border-box;
    margin: -5px 0 10px; /* tweak or remove if you do not want extra space */
  }
}