/* --- Header with Flex Layout (Logo + Text) --- */
.mithila-header {
    background: linear-gradient(rgba(87, 46, 125, 0.9), rgba(255, 255, 255, 0.9)), url('pics/Mithila International Centre/background.png');
    background-size: cover;
    background-position: center;
    height: 55vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.header-content-flex {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1000px;
    width: 90%;
}

.mic-header-logo img {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    padding: 10px;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.mic-header-text {
    color: white;
    text-align: left;
}

.mic-header-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.mic-header-text p {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: #e0e0e0;
}

/* --- Grid Layout (About + Membership) --- */
.mithila-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Text wider than card */
    gap: 60px;
    align-items: flex-start;
}

.mithila-text h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #572e7d;
}

.mithila-text h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 10px;
    color: #572e7d;
}

.divider-left {
    width: 60px;
    height: 4px;
    background: #572e7d;
    margin-bottom: 25px;
}

.mithila-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- Membership Card Styling (The "Space" filler) --- */
.membership-card-container {
    display: flex;
    justify-content: center;
}

.membership-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    border: 2px solid #572e7d;
    box-shadow: 0 10px 30px rgba(87, 46, 125, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #FFD700; /* Gold badge */
    color: #000;
    padding: 5px 35px;
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.membership-card h3 {
    color: #572e7d;
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-family: 'Merriweather', serif;
}

.member-benefits {
    text-align: left;
    margin: 20px 0;
    padding-left: 10px;
}

.member-benefits li {
    margin-bottom: 10px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-benefits i {
    color: #572e7d;
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.card-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
}

/* --- Social Buttons --- */
.btn-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0077b5;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-linkedin:hover {
    background: #005582;
    transform: translateY(-3px);
}

.btn-primary-purple {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #572e7d;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary-purple:hover {
    background: #3b1b5e;
    transform: translateY(-3px);
}

/* --- Info Cards --- */
.bg-light { background: #fcfaff; }
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(87, 46, 125, 0.05);
    border-top: 4px solid #572e7d;
    border: 1px solid #f0e6ff;
}

.info-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #222;
    text-align: center;
}

.card-icon {
    font-size: 2.5rem;
    color: #572e7d;
    margin-bottom: 20px;
    display: block;
    text-align: center;
}

.card-list {
    margin-top: 15px;
    padding-left: 20px;
}

.card-list li {
    list-style-type: disc;
    margin-bottom: 8px;
    color: #555;
    line-height: 1.5;
}

/* --- Video Container (New) --- */
.video-container-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 40px auto 0 auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(87, 46, 125, 0.2); /* Purple shadow */
    border: 4px solid white;
}

.video-container-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .header-content-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .mic-header-text { text-align: center; }
    
    .mic-header-text .divider { margin: 15px auto !important; }

    .mithila-grid {
        grid-template-columns: 1fr;
    }

    .membership-card-container {
        order: -1; /* Membership card ABOVE the text on mobile */
        margin-bottom: 30px;
    }
    
    .mic-header-logo img {
        width: 100px;
        height: 100px;
    }
}