/* ========================================
   ANAKTUBEL - PACKAGE CARD LAYOUT
   Specific styles for package listing pages only
   ======================================== */

/* Only apply to package listing containers */
.package-listing {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.package-listing .col-lg-3,
.package-listing .col-md-4,
.package-listing .col-sm-6 {
    display: flex;
    margin-bottom: 20px;
}

.package-listing .panel.panel-inverse {
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
    border: none;
    margin-bottom: 0;
    height: 100%;
    width: 100%;
}

.package-listing .panel.panel-inverse:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* === PANEL HEADER FOR PACKAGES === */
.package-listing .panel-heading {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

/* Different themes for different package modules */
.package-listing .panel-heading.theme-ujian { background: #34495e !important; }
.package-listing .panel-heading.theme-pauli { background: #e74c3c !important; }
.package-listing .panel-heading.theme-psikotes { background: #9b59b6 !important; }
.package-listing .panel-heading.theme-dashboard { background: #2c3e50 !important; }

.package-listing .panel-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: white;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    max-height: 50px;
    text-align: center;
    word-break: break-word;
    hyphens: auto;
}

/* === PANEL BODY FOR PACKAGES === */
.package-listing .panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: white;
}

.package-listing .panel-body .description {
    margin-top: auto;
}

/* Standardize content spacing */
.package-listing .panel-body hr {
    margin: 10px 0;
}

.package-listing .panel-body .badge {
    margin-bottom: 5px;
}

/* Ensure images have consistent height and spacing */
.package-listing .panel-body img.img-large {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin: 0 auto 10px auto;
    display: block;
}

.package-listing .panel-body img.img-medium {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    margin: 0 auto 10px auto;
    display: block;
}

.package-listing .description {
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    max-height: 72px;
    line-height: 1.4;
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    word-break: break-word;
    hyphens: auto;
}

/* === PANEL FOOTER FOR PACKAGES === */
.package-listing .panel-footer {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.package-listing .panel-footer.horizontal {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.package-listing .panel-footer.vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Make buttons full width for consistency */
.package-listing .panel-footer .btn {
    width: 100%;
    min-height: 40px;
}

/* === DASHBOARD MENU SPECIFIC === */
.dashboard-menu .panel.panel-inverse {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
    border: none;
}

.dashboard-menu .panel.panel-inverse:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.dashboard-menu .panel-heading.theme-dashboard {
    background: #2c3e50 !important;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.dashboard-menu .panel-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: white;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    max-height: 36px;
    text-align: center;
}

.dashboard-menu .panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: white;
}

.dashboard-menu .panel-footer.horizontal {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
