/*
 * Plugin Name: FeedFront Management Council Board Styles (Updated Design - Final)
 * Version: 1.2
 */

/* ====================================
   1. Global Header and Ribbon Styling
   ==================================== */
.ffmc-header-container {
    text-align: center;
    margin-bottom: 30px;
}

.ffmc-council-name {
    font-size: 2.5em; 
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.ffmc-session-ribbon {
    display: inline-block;
    padding: 5px 25px;
    background-color: navy; /* Navy Blue Color */
    border-radius: 0 0 5px 5px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ffmc-session-ribbon span {
    color: white; 
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
}

/* ====================================
   2. Members Grid and Card Styling
   ==================================== */

.ffmc-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 25px;
    margin-top: 20px;
}

.ffmc-member-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    position: relative;
    border-top: 5px solid #4169e1; /* टॉप पर ब्लू बॉर्डर */
}

.ffmc-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ffmc-card-inner {
    padding-bottom: 40px; 
    position: relative;
}

/* Image Container */
.ffmc-image-container {
    position: relative;
    overflow: hidden;
    padding: 10px; 
    padding-bottom: 0; 
}

.ffmc-member-image {
    width: 100%;
    height: auto; 
    object-fit: contain; 
    display: block;
    transition: transform 0.5s;
    border-radius: 5px 5px 0 0; 
}

/* ------------------------------------
   Designation Band (Blue Section)
   ------------------------------------ */
.royal-blue-bg {
    background-color: #4169e1; /* Royal Blue Color */
}

.ffmc-designation-band {
    padding: 12px 15px; 
    margin: 0;
    color: white; 
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.1em; 
    text-align: center;
}

/* Details Section */
.ffmc-details {
    padding: 15px 10px;
}

.ffmc-name {
    font-size: 1.6em; 
    font-weight: 800; 
    color: #222;
    margin: 5px 0 10px 0;
}

.ffmc-mobile-link,
.ffmc-mobile-number {
    font-size: 1em;
    color: #000; 
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    transition: color 0.3s;
}

.ffmc-mobile-link:hover {
    color: #1a73e8;
}

/* WhatsApp Icon */
.ffmc-mobile-icon::before {
    content: "📞";
    margin-right: 8px;
    font-size: 1.2em;
    color: #25d366; 
}


/* ====================================
   3. Status Ribbon (New Status Added)
   ==================================== */

.ffmc-status-ribbon {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
    color: white; 
    border-radius: 0 0 8px 8px; 
}

/* IN-CHARGE - Green */
.status-in-charge {
    background-color: #38a546; 
}

/* ADDITIONAL CHARGE - Kesri/Orange */
.status-additional-charge {
    background-color: #fd7e14; 
}

/* OFFICIATING - Black */
.status-officiating {
    background-color: #000000; /* Black */
    color: white; /* White text, as requested */
}

/* ON-LEAVE - Red */
.status-on-leave {
    background-color: #dc3545; 
}

/* Mobile Responsiveness (छोटे स्क्रीन के लिए - 2 कॉलम) */
@media (max-width: 768px) { /* 768px तक के स्क्रीन साइज के लिए लागू करें */
    .ffmc-council-name {
        font-size: 1.8em;
    }
    .ffmc-session-ribbon span {
        font-size: 0.9em;
    }
    
    /* ***** यह वह बदलाव है जो 2 कॉलम बनाएगा ***** */
    .ffmc-members-grid {
        /*
         * auto-fit: उपलब्ध चौड़ाई में दो कॉलम बनाने का प्रयास करें
         * minmax(150px, 1fr): प्रत्येक कॉलम की न्यूनतम चौड़ाई 150px
         */
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
        gap: 15px; /* गैप को थोड़ा कम कर सकते हैं */
    }
    /* ****************************************** */
}

/* आप 600px के बजाय 768px का उपयोग कर सकते हैं ताकि टैबलेट भी कवर हो जाए।
   अगर आप सिर्फ 600px तक के लिए चाहते हैं, तो max-width: 600px ही रहने दें। */