/* Mi-Social-Photo-Card Styles */

/* Trigger Button */
.mi-trigger-container {
    text-align: center;
    margin: 40px 0;
}

.mi-action-btn {
    background: linear-gradient(135deg, #1b8f07, #00c6ff);
    color: #fff;
    padding: 14px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Square Layout (1080x1080) */
.mi-premium-layout {
    width: 1080px;
    height: 1080px;
    padding: 40px;
    background: linear-gradient(180deg, #065434, #bd081c);
    font-family: 'SolaimanLipi', sans-serif;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

/* Header Section */
.mi-header-section {
    text-align: center;
}

.mi-logo-img {
    width: 55%;
    max-height: 140px;
    object-fit: contain;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.mi-date-box {
    font-size: 30px;
    color: #fff;
    font-weight: 300;
}

/* Headline - ২ বা ৩ লাইনে অটো অ্যাডজাস্ট হবে */
.mi-headline {
    font-size: 50px;
    margin: 10px 0;
    line-height: 1.3;
    text-align: center;
    color: #ecec12;
    font-weight: 700;
}

.mi-main-frame {
    flex-grow: 1; 
    width: 100%;
    overflow: hidden;
    

    display: flex;
    justify-content: center;   /* horizontal center */
    align-items: center;       /* vertical center */
}

.mi-news-img {
    width: 80%;        /* এখানে ছোট করা হলো */
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid rgba(255,255,255,0.2);
}

/* Bottom Section */
.mi-web-link {
    font-size: 35px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}

.mi-ad-frame {
    width: 100%;
    height: 80px;
    object-fit: cover; /* অ্যাড ব্যানারকে নির্দিষ্ট মাপে রাখার জন্য */
    border-radius: 10px;
}

/* Modal UI */
.mi-modal-back {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.mi-modal-inner {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;
}

.mi-close-x {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.mi-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.mi-card-ic {
    width: 50px;
    height: 50px;
    line-height: 50px;
    color: #fff !important;
    text-decoration: none;
    border-radius: 50%;
    font-weight: bold;
}

.mi-card-ic.fb { background: #3b5998; }
.mi-card-ic.wa { background: #25d366; }
.mi-card-ic.sh { background: #e53935; }

.mi-save-link {
    display: inline-block;
    color: #e53935;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid #e53935;
}