.navbar {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #F6F5F5; 
}

#unicat{
    color: #FF6B6B;
}
.navbar a.nav-link {
    color: #F6F5F5; 
}

.navbar a.nav-link:hover {
    color: #FF6B6B; 
}

.navbar-brand {
    color: #F6F5F5; 
}

.navbar-brand:hover {
    color: #FF6B6B; 
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 550px; 
    padding: 40px; 
    border-radius: 20px;
    position: relative;
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    margin: 0 auto; 
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
  
.title {
    font-size: 32px; 
    font-weight: 600;
    letter-spacing: -1px;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 30px;
    color: #00bfff;
}
  
.title::before {
    width: 18px;
    height: 18px;
}
  
.title::after {
    width: 18px;
    height: 18px;
    animation: pulse 1s linear infinite;
}
  
.title::before,
.title::after {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    border-radius: 50%;
    left: 0px;
    background-color: #00bfff;
}
  
.message, 
.signin {
    font-size: 16px; 
    color: rgba(255, 255, 255, 0.7);
}
  
.signin {
    text-align: center;
}
  
.signin a:hover {
    text-decoration: underline royalblue;
}
  
.signin a {
    color: #00bfff;
}
  
.flex {
    display: flex;
    width: 100%;
    gap: 6px;
}
  
.form label {
    position: relative;
}
  
.form label .input {
    background-color: #333;
    color: #fff;
    width: 100%;
    padding: 20px 05px 05px 10px;
    outline: 0;
    border: 1px solid rgba(105, 105, 105, 0.397);
    border-radius: 10px;
}
  
.form label .input + span {
    color: rgba(255, 255, 255, 0.5);
    position: absolute;
    left: 10px;
    top: 0px;
    font-size: 0.9em;
    cursor: text;
    transition: 0.3s ease;
}
  
.form label .input:placeholder-shown + span {
    top: 12.5px;
    font-size: 0.9em;
}
  
.form label .input:focus + span,
.form label .input:valid + span {
    color: #00bfff;
    top: 0px;
    font-size: 0.7em;
    font-weight: 600;
}
  
.input {
    font-size: large; 
}
  
.submit {
    border: none;
    outline: none;
    padding: 15px; 
    border-radius: 10px;
    color: #fff;
    font-size: 18px; 
    transform: .3s ease;
    background-color: #00bfff;
}
  
.submit:hover {
    background-color: #00bfff96;
}
  
@keyframes pulse {
    from {
      transform: scale(0.9);
      opacity: 1;
    }
  
    to {
      transform: scale(1.8);
      opacity: 0;
    }
}


.user-info {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin-right: 10px;
}


/* Global variables matching the required color palette */
:root {
    --primary-color: #4A90E2;     
    --secondary-color: #50E3C2;  
    --bg-light: #F5F9FF;         
    --text-dark: #333333;         
    --text-light: #777777;        
    --alert-color: #FF6B6B;       
    --success-color: #7ED6A7;     
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar styling */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    color: var(--primary-color);
    font-weight: bold;
}

.nav-link {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Resources container */
.resources-container {
    padding: 30px 15px;
    max-width: 1200px;
}

.resources-header {
    text-align: center;
    margin-bottom: 40px;
}

.resources-header h1 {
    color: var(--primary-color);
    font-weight: bold;
}

.subtitle {
    color: var(--text-light);
    margin-top: 10px;
}

/* Upload card */
.upload-card {
    margin-bottom: 40px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.upload-card .card-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px 10px 0 0;
}

.upload-card h2 {
    font-size: 1.5rem;
    margin: 0;
}


.form-control {
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    text-align: justify;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(80, 227, 194, 0.25);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 5px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #3a80d2;
    border-color: #3a80d2;
    transform: translateY(-2px);
}

/* Filter section */
.filter-section {
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.filter-section h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-dark);
}

.filter-controls {
    display: flex;
    justify-content: flex-end;
}

/* Resources list */
.resources-list {
    margin-top: 30px;
}

.resource-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    transition: opacity 0.5s ease, transform 0.5s ease, height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resource-card.removing {
    opacity: 0.7;
    transform: translateX(30px);
}

.resource-category {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.8rem;
    border-radius: 15px;
    margin-bottom: 10px;
}

.resource-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.resource-description {
    color: var(--text-light);
    margin-bottom: 15px;
    text-align: justify;
    padding-right: 15px;
    max-height: 500px;
    overflow-y: auto;

}
.resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.resource-author {
    flex: 0 0 auto;
}

.resource-dates {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.resource-date {
    margin-bottom: 0.2rem;
}

.resource-edited {
    font-size: 0.9em;
    color: var(--text-light);
}
.resources-comment-update{
    font-size: 0.8em;
    color: var(--text-light);

}
/* Enhanced action buttons styling */
.resource-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 10px;
    justify-content: flex-start;
}

.action-btn {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
}

.view-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
}

/* Override for resource detail page buttons */
.resource-detail-container .action-btn {
    font-size: 0.9rem;
    padding: 6px 12px;
}

/* Media queries adjustments */
@media (max-width: 768px) {
    .resource-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        margin-left: 0;
        margin-top: 10px;
    }
    
    .action-btn {
        width: 100%;
        min-width: unset;
    }
}

@media (min-width: 769px) {
    .resource-card {
        flex-direction: row;
    }
    
    .resource-info {
        flex: 1;
    }
    
    .resource-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        min-width: 120px;
        margin-left: 15px;
    }
}

/* Remove duplicate style declarations */
.download-btn {
    padding: inherit;
    font-size: inherit;
}

.edit-button {
    margin-top: 0;
}

/* Revised action buttons styling */
.resource-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 10px;
    min-width: 120px;
    justify-content: flex-start;
}

.action-btn {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.action-btn i {
    margin-right: 4px;
    font-size: 0.75rem;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 3px rgba(0,0,0,0.15);
}

/* Style overrides for action buttons to match the site's color scheme */
.btn-info {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-info:hover {
    background-color: #3a80d2;
    border-color: #3a80d2;
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #6ec796;
    border-color: #6ec796;
}

.btn-warning {
    background-color: #f0ad4e;
    border-color: #f0ad4e;
    color: white;
}

.btn-warning:hover {
    background-color: #ec971f;
    border-color: #ec971f;
}

.btn-danger {
    background-color: var(--alert-color);
    border-color: var(--alert-color);
}

.btn-danger:hover {
    background-color: #ff5252;
    border-color: #ff5252;
}

/* Media queries for resource cards and buttons */
@media (max-width: 768px) {
    .resource-card {
        flex-direction: column;
    }

    .resource-actions {
        margin-left: 0;
        margin-top: 10px;
        justify-content: flex-start;
    }
}

@media (min-width: 769px) {
    .resource-card {
        flex-direction: row;
    }
    
    .resource-info {
        flex: 1;
    }
    
    .resource-actions {
        flex-direction: column;
        justify-content: center;
        margin-left: 20px;
        min-width: 150px;
    }
}

.edit-button {
    margin-top: 10px;
}

/* Resource detail page styling */
.resource-detail-container {
    padding: 30px 15px;
    max-width: 1200px;
}

.resource-detail-card {
    margin-bottom: 30px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.resource-detail-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
}

.resource-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.resource-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Comments styling */
.comments-list {
    margin-top: 20px;
}

.comment-item {
    padding: 10px 0;
    text-align: justify;
    
}

.comment-header {
    margin-bottom: 5px;
}

.comment-body {
    padding-left: 5px;
}

/* File preview */
.file-preview {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.comments-over{
    overflow-y: scroll;
    max-height: 300px;
}

/* Override for the delete-resource-btn class in case of multiple style rules */
.delete-resource-btn {
    cursor: pointer;
}

.bg-primary-dark {
    background-color: #4b8ae9;
    color: white;
}

.faculty{
    width: 400px;
    border-radius: 7px;
}

.cancel-btn{
    height: 42px;
    top: 8px;
    position: relative;

}
.cancel-btn2
{
    height: 35px;
}
.location{
    margin-left: 13px;
    margin-right: 13px;}

.cancel-div{
    margin-bottom: 10px;
    margin-left: 15px;
    margin-right: 20px;
}

.title-card{
    height: 40px;
}
.description-card{
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;  
    padding-right: 5px;
}
.description-card::-webkit-scrollbar {
    width: 8px;
}

.hover-card {
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    }

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
    transition: transform 0.3s ease-in-out;
}

.hover-card:hover .feature-icon {
    transform: scale(1.1);
}

.navbar {
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.body {
    padding-top: 60px; 
}
.container-fluid.bg-primary {
    margin-top: -4px; 
}

.log_out{
   margin-right: 20px;
   display: inline-block;
   position: relative;
}
.resource_buttons{
    min-height: 35px;
    min-width: 120px;
}

.resource-detail-buttons{
    margin: 5px;
    max-height: 30px;

}

.profile-image-container {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.default-profile-image {
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    border-radius: 50%;
    color: #4A90E2;
}

.icon-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.cancel-modal{
    position: absolute;
    left: 12px;
    bottom: 13px;
}

.cancel-modal-delete{
    position: absolute;
    left: 12px;
    bottom: 12px;
}
.delete-resource-detail{
    width: 100px;
}


/* Estils per a comentaris i respostes */
.comments-container {
    max-height: 1000px;
    overflow-y: auto;

}

.comment-item {
    padding-right: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.comment-item:hover {
    background-color: #f2f2f2;
}

.comment-content {
    width: 100%;
}

.reply-item {
    padding: 10px;
    background-color: #f0f0f0;
    border-radius:.25rem;
    transition: background-color 0.2s;
}

.reply-item:hover {
    background-color: #e9e9e9;
}

.comment-actions {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.comment-item:hover .comment-actions {
    opacity: 1;
}

.reply-form textarea {
    background-color: #f8f9fa;
    resize: vertical;
}

.replies {
    margin-top: 10px;
    padding-top: 8px;
}

.border-start {
    border-left: 3px solid #dee2e6 !important;
    padding-left: 15px;
}

.comment-avatar, .reply-avatar {
    flex-shrink: 0;

}
 



.cancel-reply{ 
    height: 35px;
    margin-right: 10px;
    position: relative;
    margin-top: 10px;
}
.back-to-resources {
    margin-left: 10px;
    position: relative;
}

.notification-fade {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Estils per als botons de comentaris */
.comment-owner-actions, .reply-actions {
    display: flex;
    align-items: center;
}

.comment-actions {
    justify-content: space-between;
}

.btn-outline-primary, .btn-outline-danger {
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
}

.edit-comment-btn, .edit-reply-btn, .delete-comment-btn {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.edit-comment-btn:hover, .edit-reply-btn:hover, .delete-comment-btn:hover {
    opacity: 1;
}

/* En mòbils, fer que els botons d'accions siguin més compactes */
@media (max-width: 576px) {
    .comment-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-owner-actions {
        margin-top: 0.5rem;
    }
}

/* Afegeix això al teu arxiu CSS */
.resource-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
    border-radius: 6px;
}
.resource-form {margin-top: 10px;
}

.resource-form2 {margin-top: 10px;
    margin-bottom: 10px;
}
.resource-card {
    position: relative;
    transition: all 0.5s ease;
}



.btn .spinner-border {
    vertical-align: middle;
    margin-right: 5px;
}

/* Específic per al botó de resource detail */
.delete-resource-detail .spinner-border {
    vertical-align: middle;
    margin-right: 5px;
    margin-top: -2px;
}

#confirm-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Assegura't que tots els spinners tenen el mateix estil */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
    vertical-align: middle;
    margin-right: 5px;
}

/* Específic per al botó delete a la pàgina de detall */
.delete-resource-detail .spinner-border-sm {
    display: inline-block;
    vertical-align: middle;
}

#confirm-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Estils per a les notificacions toast */
.toast {
    transition: opacity 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-container {
    z-index: 1100;
}

/* Posicionament específic per a mòbils */
@media (max-width: 576px) {
    .toast-container {
        width: 100%;
        padding: 10px;
    }
    
    .toast {
        width: 100%;
    }
}

/* Animació de desaparició */
.toast.hide {
    opacity: 0;
}



.field-study-badge {
    display: flex;
    align-items: center;
    height: 25px;
    font-size: 0.8rem; 
    margin-left: 5px;
}

.field_of_study {
    position: relative;
    font-size: 0.85rem;  
}

.badges-container {
    display: flex;
    gap: 5px;
    align-items: center;
}

.no-document-title {
    font-style: italic;
    color: #6c757d;
    font-size: 0.9em;
}

.clear-search {
    width: auto;
}
.btn-interested{
    margin-bottom: -20px;
}
.event-hero {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    margin-top: -1rem;
}
.people-interested{
    max-height: 236px;
    overflow-y: auto;
}

.event-hero h1 {
    font-weight: 700;
    margin: 0;
}

.event-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.event-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #000;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    opacity: 0.9;
}

.event-card:hover .event-image {
    transform: scale(1.05);
    opacity: 1;
}

.event-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #2c3e50, #4a90e2);
    color: rgba(255, 255, 255, 0.7);
}

.event-date {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 69, 0, 0.9);
    color: white;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
    min-width: 60px;
}




.event-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.event-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-actions {
    display: flex;
    justify-content: space-between;
    margin-top: auto; 
    padding-top: 15px; 
}

.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4;
}

.event-meta {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-time, .event-location, .event-university {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
}

.event-meta i {
    margin-right: 8px;
    width: 16px;
    color: #4A90E2;
    text-align: center;
}


.btn-outline-primary {
    border-color: #4A90E2;
    color: #4A90E2;
}

.btn-outline-primary:hover {
    background-color: #4A90E2;
    color: white;
}

.btn-primary {
    background-color: #4A90E2;
    border-color: #4A90E2;
}

.btn-primary:hover {
    background-color: #3a7bc8;
    border-color: #3a7bc8;
}

.empty-events-container {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 60px 20px;
}
.events-actions-right {
    margin-top: 10px;
    gap: 5px;
    display: flex;
    margin-left: auto;
    max-height: 35px;
    flex-wrap: nowrap !important; 
    }

.event-download {

    color: green;
}

.event-download:hover {
    background-color: green;
}

.event-actions {
        display: flex;
        justify-content: space-between;
       
    }

.btn-action{
    min-width: 80px;
    text-align: center;
    font-size: 14px;
    padding: 6px 12px;
    flex-shrink: 0; /* Evita que los botones se compriman */
    white-space: nowrap;
}

@media (max-width: 768px) {
    .event-card {
        max-width: 400px;
        margin: 0 auto;
    }

    
    .event-actions .btn {
        margin-bottom: 8px;
    }
}

/* Estilos para la página de detalles de evento */
.event-detail-hero {
    background-color: #2c3e50;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    margin-top: -1rem;
    position: relative;
}

.event-date-badge-large {
    background-color: rgba(255, 69, 0, 0.9);
    border-radius: 8px;
    padding: 15px 25px;
    width: 100px;
    text-align: center;
}

.event-date-badge-large .event-day {
    font-size: 32px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.event-date-badge-large .event-month {
    font-size: 16px;
    text-transform: uppercase;
}

.event-detail-meta-item {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    margin: 0 5px;
}

.event-detail-meta-item i {
    margin-right: 5px;
}

.event-detail-item {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
}

.event-detail-icon {
    width: 45px;
    height: 45px;
    background-color: #f0f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #4A90E2;
    margin-right: 15px;
    flex-shrink: 0;
}

.event-detail-content h5 {
    margin-bottom: 5px;
    color: #4A90E2;
    font-weight: 600;
    font-size: 1rem;
}

.event-detail-content p {
    margin-bottom: 0;
    color: #444;
}

.card-header.bg-primary {
    background-color: #4A90E2 !important;
}

.event-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    text-align: justify;
}
.event-detail-actions{
    display: flex;
    flex-direction: row;
}

.event-detail-actions-right{
    margin-left: auto;
    margin-right: 10px;
    
  
}


/* Mejora del espaciado responsivo */
@media (max-width: 768px) {
    .event-detail-hero {
        padding: 60px 0;
    }
    
    .event-date-badge-large {
        padding: 10px 15px;
    }
    
    .event-detail-meta-item {
        margin-bottom: 10px;
    }
}

/* Estilos para las tarjetas de programas Erasmus */

.erasmus-card {
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 10px;
}

.erasmus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.university-logo-container {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}

.university-logo {
    max-height: 80px;
    max-width: 80%;
    object-fit: contain;
}
.university-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 2px;
}

.university-location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.location-icon {
    color: #ff6b6b;
    margin-right: 5px;
}

.university-rank {
    position: relative;
}

.div-title-erasmus{
    flex: 1;
    
}

.div-right-erasmus{
    flex-shrink: 0;
    max-width: 280px;
}
.container-header-erasmus-detail{
    display: flex;

    justify-content: space-between;
}


.university-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #555;
}

.stat-icon {
    margin-right: 8px;
    color: #3498db;
}

/* Rating styles for Erasmus programs */
.university-ratings {
    font-size: 0.85rem;
}

.user-rating .stars-container {
    display: inline-flex;
    align-items: center;
}

.rank-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.5rem;
    border-radius: 5px;
    background-color: #4a89dc;
    color: white;
}

.rating-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 3px;
}

.rating-label i {
    font-size: 0.85rem;
}

.academic-rating-label i {
    color: #4a89dc;
}

.user-rating-label i {
    color: #f0ad4e;
}

/* Rating tooltips */
.rating-tooltip {
    position: relative;
    display: inline-block;
}

.rating-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.connect-button:hover {
    background-color: #357ABD;
}

/* Estilos para los rankings y puntuaciones */
.ranking-box, .rating-box {
    background-color: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.ranking-box:hover, .rating-box:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.score-item {
    margin-bottom: 15px;
}

.progress {
    height: 10px;
    border-radius: 5px;
}

.bg-purple {
    background-color: #6f42c1;
}

.stars-display {
    letter-spacing: 3px;
}



 button.toggle {
      all: unset;                 
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      padding: .5rem .75rem;
      background: #0077ff;
      color: #fff;
      border-radius: .5rem;
      transition: background .2s ease;
    }
button.toggle:hover { background: #005ed4; }
.toggle-btn {
    border: 0;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.toggle-btn:hover {
    background-color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.15);
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
    color: #666;
}

.toggle-btn[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* Panel desplegable */
.panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: 
        max-height 0.4s ease-in-out,
        opacity 0.3s ease-in-out;
}

.panel.open {
    max-height: 2000px;
    opacity: 1;
}

/* Efecto de transición suave para el contenido */
#secret {
    transform: translateY(-10px);
    transition: transform 0.3s ease-out;
}

#secret.open {
    transform: translateY(0);
}
