.content-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.main-goal-card {
    background: #0288d1;
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 50px;
}

.main-goal-card h2 { color: #ffd700; margin-bottom: 15px; }
.main-goal-card p { font-size: 22px; font-weight: bold; }

.section-title-large {
    text-align: center;
    font-size: 38px;
    color: #01579b;
    margin: 40px 0;
    font-weight: bold;
}

/* ৫ দফার মেইন গ্রিড */
.program-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center; /* এটি ৪ ও ৫ নম্বরকে মাঝখানে রাখবে */
    margin-bottom: 50px;
}

.p-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border-bottom: 6px solid #0288d1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex: 1 1 300px; /* পিসিতে ৩টা ধরবে, জায়গা না থাকলে নিচে নামবে */
    max-width: 350px; /* বক্সগুলো বেশি বড় হবে না */
}

.p-num {
    width: 50px;
    height: 50px;
    background: #e3f2fd;
    color: #0288d1;
    border-radius: 50%;
    margin: 0 auto 15px;
    line-height: 50px;
    font-weight: bold;
    border: 2px solid #0288d1;
    font-size: 20px;
}

.p-card h3 { color: #01579b; margin-bottom: 12px; }
.p-card p { line-height: 1.6; color: #333; }

.full-content-box {
    background: white;
    padding: 45px;
    border-radius: 20px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    margin-bottom: 50px;
    box-shadow: -15px 0 30px -15px rgba(211, 47, 47, 0.4), 
                 15px 0 30px -15px rgba(211, 47, 47, 0.4);
}

.sub-heading {
    color: #d32f2f;
    font-size: 24px;
    margin-top: 30px;
    border-bottom: 2px solid #ffcdd2;
    display: inline-block;
}

.book-container {
    background: #f9f9f9;
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #0288d1;
    margin-top: 30px;
}

.book-head { color: #01579b; margin-bottom: 25px; font-size: 22px; }

.book-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.book-link {
    background: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    color: #0288d1;
    border: 2px solid #0288d1;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}
/* পাঠাগার বাটন কন্টেইনার */


.library-btn:hover {
    background: #01579b;
    color: white;
    transform: scale(1.05);
}

.lib-icon {
    font-size: 20px;
}

/* মোবাইলের জন্য পজিশন ঠিক করা */
@media (max-width: 600px) {
    .library-container {
        justify-content: center; /* মোবাইলে মাঝখানে থাকলে ক্লিক করতে সুবিধা হয় */
        margin-top: 15px;
    }
    .library-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
}
.book-link:hover { background: #0288d1; color: white; transform: scale(1.05); }

.footer {
    background: #01579b;
    color: white;
    text-align: center;
    padding: 20px 10px;
    margin-top: 50px;
    font-size: 15px;
    border-top: 4px solid #ffd700;
}

@media (max-width: 768px) {
    .section-title-large { font-size: 28px; }
    .program-grid { gap: 30px; }
    .p-card { 
        flex: 1 1 100%; /* মোবাইলে পুরো উইথ নিয়ে একটার নিচে একটা থাকবে */
        max-width: 100%; 
    }
    .full-content-box { padding: 25px; }
}