/* PARTNERS PAGE MASTER CSS - FIXED FOR MOBILE */
:root {
    --primary: #007bff;
    --dark: #111;
    --text: #444;
    --bg: #f8f9fa;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
.container { width: 92%; max-width: 1200px; margin: auto; }

/* Navigation */
.partner-nav { background: var(--white); padding: 12px 0; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.back-home { text-decoration: none; color: var(--dark); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 5px; }
.logo { font-size: 20px; font-weight: 700; color: var(--dark); }
.logo span { color: var(--primary); }
.nav-call { color: #28a745; font-size: 20px; text-decoration: none; }

/* Hero Section */
.partner-hero { background: var(--dark); color: var(--white); text-align: center; padding: 50px 20px; }
.partner-hero h1 { font-size: clamp(22px, 5vw, 36px); margin-bottom: 10px; font-weight: 700; }
.partner-hero h1 span { color: var(--primary); }
.partner-hero p { opacity: 0.8; max-width: 700px; margin: auto; font-size: 14px; }

/* Main Sections */
.main-content { padding: 40px 0; }
.district-section { margin-bottom: 40px; }
.district-title { 
    font-size: 18px; color: var(--dark); margin-bottom: 20px; 
    border-left: 4px solid var(--primary); padding-left: 12px;
    font-weight: 700;
}
.district-title i { color: var(--primary); margin-right: 8px; }

/* Partner Grid - Optimized */
.partner-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
    gap: 15px; 
}

/* Card Style */
.partner-card {
    background: var(--white);
    padding: 20px 10px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: 0.3s ease-in-out;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 140px;
}

.partner-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0,123,255,0.1);
}

/* Logo Placeholder Fix */
.p-logo, .p-logo-box {
    width: 50px; 
    height: 50px; 
    background: #eef5ff;
    color: var(--primary); 
    margin: 0 auto 12px;
    border-radius: 50%; 
    display: flex; 
    align-items: center;
    justify-content: center; 
    font-weight: 700; 
    font-size: 18px;
    flex-shrink: 0;
}

.p-logo-box img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.partner-card h3 {
    font-size: 13px; 
    font-weight: 600; 
    color: #333;
    line-height: 1.3;
    word-wrap: break-word;
}

/* Footer */
.partner-footer { background: var(--dark); color: #777; padding: 30px 20px; text-align: center; font-size: 12px; }

/* MOBILE RESPONSIVE FIXES (THE REAL FIX) */
@media (max-width: 768px) {
    .container { width: 94%; }
    .partner-grid { 
        grid-template-columns: repeat(2, 1fr); /* मोबाइल पर पक्का 2 कॉलम */
        gap: 10px; 
    }
    .district-section { margin-bottom: 30px; }
    .district-title { font-size: 16px; margin-bottom: 15px; }
    
    .partner-card { 
        padding: 15px 8px; 
        min-height: 130px; 
    }
    .partner-card h3 { font-size: 12px; }
    .p-logo, .p-logo-box { width: 45px; height: 45px; font-size: 16px; margin-bottom: 8px; }
}

/* बहुत छोटे मोबाइल के लिए (जैसे iPhone SE) */
@media (max-width: 350px) {
    .partner-grid { grid-template-columns: 1fr; } /* 1 कॉलम ताकि टेक्स्ट न कटे */
}