/* =========================================
   Jabir Ibn Hayyan Library - Final Updated
   ========================================= */

.content-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 15px;
}

.library-title-box {
    background: linear-gradient(135deg, #01579b, #0288d1);
    color: white;
    padding: 15px 35px;
    border-radius: 12px;
    display: inline-block;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-bottom: 4px solid #ffd700;
}

/* Category Header Box Color */
.category-header h2 {
    background: #004d40; /* Deep Teal - Sundor Proffessional Color */
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 17px;
    display: inline-block;
    border-left: 6px solid #ffd700;
    margin: 40px 0 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

/* Book Card */
.book-card {
    background: #ffffff; 
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-bottom: 6px solid #004d40;
    transition: transform 0.3s ease, z-index 0.1s;
    position: relative;
    z-index: 1; /* Default layer */
}

/* Hover korle card shobar upore ashbe jate dropdown dhaka na pore */
.book-card:hover {
    z-index: 999; 
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.book-image-area {
    background: #f9f9f9;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border-radius: 20px 20px 0 0;
}

.book-pic { max-height: 100%; border-radius: 4px; }

.book-info {
    padding: 20px 15px;
    text-align: center;
}

.book-name { font-size: 19px; color: #01579b; font-weight: bold; margin-bottom: 5px; }
.writer-name { font-size: 13px; color: #666; font-style: italic; margin-bottom: 15px; display: block; }

.stock-info-container {
    background: #e0f2f1;
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
}
.stock-row { display: flex; justify-content: space-between; font-size: 12px; font-weight: bold; color: #004d40; }

/* Tracker Box */
.tracker-box {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    position: relative;
}

.track-title { font-size: 10px; color: #d32f2f; font-weight: bold; display: block; margin-bottom: 4px; }
.holder-name { font-size: 13px; color: #333; font-weight: bold; }

/* "Aro" Dropdown Fix */
.more-holders { 
    position: relative; 
    display: inline-block; 
    margin-top: 5px; 
}

.more-btn-v2 {
    background: #fff;
    border: 1.5px solid #004d40;
    color: #004d40;
    padding: 3px 18px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.more-btn-v2:hover { background: #004d40; color: #fff; }

.dropdown-list {
    display: none;
    position: absolute;
    bottom: 40px; /* Button er thik upore */
    left: 50%;
    transform: translateX(-50%);
    background: #263238; /* Dark Navy Gray */
    color: #fff;
    padding: 12px;
    border-radius: 12px;
    width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 1000;
}

/* Hover korle dropdown ashbe shob box-e */
.more-holders:hover .dropdown-list {
    display: block;
}

.dropdown-list p {
    margin: 6px 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 4px;
    text-align: left;
}

/* Shonggroho Button - Sundor & Premium Color */
.collect-btn {
    text-decoration: none;
    font-weight: bold;
    display: block;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.main-collect {
    background: linear-gradient(to right, #004d40, #00796b); /* Sundor Gradient */
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 77, 64, 0.2);
}

.main-collect:hover {
    background: linear-gradient(to right, #00796b, #009688); /* Hover Contrast Change */
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 77, 64, 0.3);
}

.syllabus-btn {
    background: #01579b;
    color: white;
    margin-top: 10px;
}

.syllabus-btn:hover { background: #014377; }

.footer {
    background: #01579b;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 60px;
    border-top: 5px solid #ffd700;
}