/* Estilos para grupos de formación */
.single_department {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.single_department:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.department_content {
    padding: 30px;
}

.department_content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 50px;
}

.department_content h4 a {
    color: #2c4964;
    text-decoration: none;
    transition: color 0.3s;
}

.department_content h4 a:hover {
    color: #3fbbc0;
}

.department_content hr {
    border-top: 2px solid #f0f0f0;
    margin: 15px 0;
}

.blog-info-link {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.blog-info-link li {
    margin-bottom: 12px;
}

.blog-info-link li a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.blog-info-link li a i {
    margin-right: 8px;
    color: #3fbbc0;
    font-size: 16px;
}

.genric-btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.genric-btn.info {
    background: #3fbbc0;
    color: #fff;
    border: 2px solid #3fbbc0;
}

.genric-btn.info:hover {
    background: #2c4964;
    border-color: #2c4964;
}

.genric-btn.primary {
    background: var(--accent-color, #1977cc);
    color: #fff;
    border: 2px solid var(--accent-color, #1977cc);
}

.genric-btn.primary:hover {
    background: color-mix(in srgb, var(--accent-color, #1977cc), transparent 15%);
    border-color: color-mix(in srgb, var(--accent-color, #1977cc), transparent 15%);
}

.genric-btn.circle {
    border-radius: 50px;
}

.genric-btn.small {
    padding: 8px 20px;
    font-size: 13px;
}

.genric-btn.arrow::after {
    content: " →";
    margin-left: 5px;
}

/* Page Title Compact */
.page-title.compact {
    margin-bottom: 20px;
}

.page-title.compact .heading {
    padding: 40px 0 20px 0;
    border-top: 1px solid color-mix(in srgb, var(--accent-color), transparent 80%);
}

.page-title.compact .heading h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-title.compact .heading p {
    font-size: 15px;
}

.page-title.compact .breadcrumbs {
    padding: 12px 0;
    background-color: color-mix(in srgb, var(--accent-color), transparent 94%);
}

/* Groups List Styles */
.groups-list {
    background-color: #f8f9fa;
    padding-top: 30px;
}

/* Search Box */
.search-box {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i.bi-search {
    position: absolute;
    left: 15px;
    color: #1977cc;
    font-size: 18px;
    z-index: 1;
}

.search-input-wrapper .form-control {
    padding: 12px 45px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-input-wrapper .form-control:focus {
    border-color: #1977cc;
    box-shadow: 0 0 0 0.2rem rgba(25, 119, 204, 0.15);
}

.search-input-wrapper .clear-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
    z-index: 1;
}

.search-input-wrapper .clear-btn:hover {
    color: #1977cc;
}

.search-results-info {
    text-align: center;
    color: #666;
}

/* Group Card */
.group-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.group-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-left-color: #1977cc;
}

.group-card-body {
    padding: 25px;
}

/* Group Info */
.group-info {
    margin-bottom: 0;
}

.group-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.group-label i {
    margin-right: 5px;
    color: #1977cc;
}

.group-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.group-title a {
    color: #2c4964;
    text-decoration: none;
    transition: color 0.3s;
    text-transform: capitalize;
}

.group-title a:hover {
    color: #1977cc;
}

.group-value {
    font-size: 14px;
    color: #555;
    margin: 0;
    font-weight: 500;
}

/* Badge Places */
.badge-places {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 15px;
}

.badge-places.available {
    background-color: #d4edda;
    color: #155724;
}

.badge-places.full {
    background-color: #f8d7da;
    color: #721c24;
}

/* Pagination Wrapper */
.pagination-wrapper {
    text-align: center;
    margin-top: 20px;
}

.pagination-info {
    margin-bottom: 15px;
}

.pagination-info p {
    font-size: 14px;
    margin: 0;
}

.pagination-wrapper .pagination {
    gap: 5px;
    margin-bottom: 0;
}

.pagination-wrapper .page-link {
    color: #1977cc;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 16px;
    transition: all 0.3s;
    font-weight: 500;
    min-width: 45px;
    text-align: center;
}

.pagination-wrapper .page-link:hover {
    background-color: #1977cc;
    color: #fff;
    border-color: #1977cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 119, 204, 0.3);
}

.pagination-wrapper .page-item.active .page-link {
    background-color: #1977cc;
    border-color: #1977cc;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(25, 119, 204, 0.4);
}

.pagination-wrapper .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .group-card-body {
        padding: 20px;
    }

    .group-title {
        font-size: 15px;
    }

    .group-value {
        font-size: 13px;
    }

    .group-info {
        margin-bottom: 15px;
    }
}

@media (max-width: 767px) {
    .search-box {
        padding: 20px;
    }

    .group-card-body {
        padding: 18px;
    }

    .group-title {
        font-size: 14px;
    }

    .group-label {
        font-size: 11px;
    }

    .genric-btn.primary {
        width: 100%;
        text-align: center;
        display: block;
    }
}

@media (max-width: 575px) {
    .search-input-wrapper .form-control {
        font-size: 14px;
        padding: 10px 40px 10px 40px;
    }

    .group-card {
        margin-bottom: 15px;
    }

    .badge-places {
        font-size: 14px;
        padding: 5px 12px;
    }
}

/* Course Detail Styles */
.course-details {
    background-color: #f8f9fa;
}

.course-content-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.content-section {
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.content-section:last-child {
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1977cc;
}

.section-header i {
    font-size: 24px;
    color: #1977cc;
}

.section-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2c4964;
    margin: 0;
}

.section-body {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
}

.section-body p {
    margin-bottom: 15px;
}

.content-text {
    white-space: pre-line;
    line-height: 1.8;
}

/* Info Card Sidebar */
.info-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.info-card-header {
    background: linear-gradient(135deg, #1977cc 0%, #1565b3 100%);
    color: #fff;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-card-header i {
    font-size: 28px;
}

.info-card-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.info-card-body {
    padding: 25px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    margin-bottom: 20px;
}

.info-list li:last-child {
    margin-bottom: 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.info-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.info-item i {
    font-size: 22px;
    color: #1977cc;
    margin-top: 2px;
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: #2c4964;
}

.info-card-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Responsive for Detail Page */
@media (max-width: 991px) {
    .content-section {
        padding: 20px;
    }

    .section-header h3 {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Right Column of the Form */
.info-box {
    color: #000;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    line-height: 1.8;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.info-box p {
    color: #000;
    margin-bottom: 1rem;
}

.info-box p.bold {
    font-weight: 600;
    color: #000;
}

.contact-data a {
    color: #000;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-data a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.text-white-50 {
    color: rgba(0, 0, 0, 0.7);
}
