/**
 * com_academy detail styles.
 * Kept intentionally light so it inherits the host template (Bootstrap 5) look.
 *
 * @copyright  (C) Laserworld
 * @license    GNU General Public License version 2 or later
 */

.com-academy-detail {
    font-size: 1rem;
    line-height: 1.4;
}

.com-academy-detail .academy-title {
    background: #555;
    color: #fff;
    padding: .6em .7em;
    border-radius: 5px;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.com-academy-detail .academy-eventbox {
    border: 1px solid #dcdcdc;
    background: #eee;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    /* Self-contained responsive grid (works without the template's Bootstrap):
       4 columns on large screens, 2 on medium, 1 on small. */
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.com-academy-detail .academy-eventbox > * {
    flex: 0 0 100%;
    min-width: 0;
}

@media (min-width: 768px) {
    .com-academy-detail .academy-eventbox > .col-md-6 {
        flex: 0 0 calc(50% - .5rem);
    }
}

@media (min-width: 992px) {
    .com-academy-detail .academy-eventbox > .col-lg-3 {
        flex: 0 0 calc(25% - .75rem);
    }
}

.com-academy-detail .academy-date {
    margin-bottom: 1rem;
}

.com-academy-detail .academy-date-day {
    font-weight: 700;
    font-size: 1.4rem;
}

.com-academy-detail .academy-date-time {
    font-size: 1rem;
    color: #333;
}

.com-academy-detail .academy-exam .academy-date-label {
    margin-top: .5rem;
    font-size: .95rem;
}

.com-academy-detail .academy-flags {
    font-size: .9rem;
}

.com-academy-detail .academy-flag-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .4rem;
}

.com-academy-detail .academy-flag-label {
    min-width: 80px;
    font-size: .85rem;
}

.com-academy-detail .academy-flag {
    vertical-align: middle;
    border: 0;
}

.com-academy-detail .academy-price-value {
    font-weight: 700;
    font-size: 1.3rem;
}

.com-academy-detail .academy-currency {
    font-size: 1rem;
}

.com-academy-detail .academy-price small {
    font-size: .6rem;
    font-weight: 400;
    display: block;
}

.com-academy-detail .academy-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: .5rem 1rem;
    border: 1px solid #f15a24;
    background: #f1855f;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    border-radius: 3px;
    text-align: center;
}

.com-academy-detail .academy-btn:hover {
    background: #f15a24;
    text-decoration: underline;
}

.com-academy-detail .academy-btn-muted {
    background: #ddd;
    border-color: #ccc;
    color: #444 !important;
    cursor: default;
}

.com-academy-detail .academy-btn-warning {
    background: #f7aa00;
    border-color: #f7aa00;
    color: #000 !important;
}

.com-academy-detail .academy-streamlink {
    clear: both;
    padding: 1.25rem;
    margin: 1.5rem 0;
    border: 2px solid #777;
    border-radius: 5px;
    background: #fff;
}

.com-academy-detail .academy-shortdesc,
.com-academy-detail .academy-detaildesc {
    margin: 1.5rem 0;
}

.com-academy-detail .academy-logo {
    float: right;
    max-width: 200px;
    margin: 0 0 1rem 1rem;
}

.com-academy-detail .academy-logo img {
    max-width: 100%;
    height: auto;
}

.com-academy-detail .academy-map {
    margin: 1.5rem 0;
}

.com-academy-detail .academy-map iframe {
    border: 1px solid #000;
    max-width: 100%;
}

.com-academy-detail .academy-collapse {
    background: #dcdcdc;
    border: 1px solid #888;
    border-radius: 5px;
    padding: .75rem;
    margin-bottom: 1rem;
}

.com-academy-detail .academy-collapse summary {
    cursor: pointer;
    font-weight: 700;
}
