/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

/* Header & Navbar */
header {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
}

.nav-back-forward button {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    margin-right: 5px;
    color: #666;
}

.logo img {
    height: 30px;
    margin-right: 15px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    display: block;
    font-weight: 500;
}

.premium-btn {
    background-color: transparent;
    border: none;
    color: #333;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.premium-btn i {
    margin-right: 5px;
    color: #4CAF50;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 16px;
    margin: 0 5px;
    color: #666;
    cursor: pointer;
}

.user-btn {
    background-color: #e9bef3;
    color: #333;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
}

/* Main content */
main {
    display: flex;
    min-height: calc(100vh - 60px);
}

/* Sidebar */
.sidebar {
    width: 230px;
    background-color: white;
    border-right: 1px solid #e0e0e0;
    padding: 20px 10px;
}

.user-profile {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.avatar {
    background-color: #e9bef3;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

.user-info h3 {
    font-size: 16px;
    margin-bottom: 2px;
}

.university {
    font-size: 12px;
    color: #666;
}

.user-stats {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.stat {
    text-align: center;
}

.number {
    font-weight: bold;
    font-size: 16px;
}

.label {
    font-size: 12px;
    color: #666;
}

.new-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-btn i {
    margin-right: 5px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav ul li {
    margin-bottom: 5px;
}

.sidebar-nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    border-radius: 5px;
}

.sidebar-nav ul li a:hover {
    background-color: #f0f0f0;
}

.sidebar-nav ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.tag-new {
    background-color: #ff6b6b;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    margin-left: 5px;
}

.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* Main content area */
.content {
    flex: 1;
    padding: 20px;
}

.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

.features {
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.quiz {
    background-color: #e9bef3;
}

.question {
    background-color: #ffcccb;
}

.notes {
    background-color: #c2e0ff;
}

.feature-text {
    flex: 1;
    font-weight: 500;
}

.reading-section h2 {
    margin-bottom: 15px;
    font-size: 18px;
}

.documents {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.document {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.doc-preview {
    height: 120px;
    background-color: #f0f0f0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f0f0f0"/><path d="M0 0h100v20H0zM10 30h80v2H10zM10 40h60v2H10zM10 50h80v2H10zM10 60h40v2H10z" fill="%23ddd"/></svg>');
    background-size: cover;
    background-position: center;
}

.doc-info {
    padding: 10px;
}

.doc-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #007bff;
}

.doc-info p {
    font-size: 12px;
    color: #666;
}

.save-btn {
    width: 100%;
    padding: 8px;
    border: none;
    background-color: transparent;
    border-top: 1px solid #e0e0e0;
    cursor: pointer;
    font-size: 13px;
    color: #666;
}

.save-btn:hover {
    background-color: #f5f5f5;
}



.redeem-section {
    display: flex; /* Activar flexbox */
    flex-direction: column; /* Alinear los elementos verticalmente */
    align-items: center; /* Centrar horizontalmente */
    /* justify-content: center;  Centrar verticalmente */
    text-align: center; /* Centrar el texto */
    padding: 20px;
}

.redeem-section h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.redeem-section p {
    font-size: 16px;
    margin-bottom: 20px;
}

.redeem-options {
    display: flex; /* Activar flexbox para las tarjetas */
    flex-wrap: wrap; /* Permitir que las tarjetas se ajusten en varias filas si es necesario */
    gap: 20px; /* Espaciado entre las tarjetas */
    justify-content: center; /* Centrar las tarjetas horizontalmente */
}

.redeem-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 250px; /* Ancho fijo para las tarjetas */
}

.redeem-card i {
    font-size: 40px;
    color: #007bff; /* Azul para los iconos */
}

.redeem-card h3 {
    font-size: 18px;
    margin-top: 10px;
}

.redeem-card p {
    font-size: 14px;
    color: #666; /* Texto gris */
}

.redeem-btn {
    background-color: #007bff; /* Azul para el botón */
    color: white; /* Texto blanco */
    border: none;
    border-radius: 5px; /* Bordes redondeados */
    padding: 10px 20px;
    cursor: pointer;
}

.redeem-btn:hover {
    background-color: #0056b3; /* Azul más oscuro al pasar el mouse */
}

footer {
    text-align: center;
    padding: 1rem;
}





/* Library Section */
.sidebar {
    width: 250px;
    background-color: white;
    border-right: 1px solid #e0e0e0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    display: block;
}

.sidebar-nav ul li a.active {
    background-color: #007bff;
    color: white;
}

/* Library Section */
.library-section {
    flex: 1;
    padding: 20px;
}

.library-section h2 {
    font-size: 24px;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.library-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: auto; /* Ajustar la imagen al ancho de la tarjeta */
}

.card-info {
    padding: 15px;
}

.card-info h3 {
    font-size: 18px;
}

.card-info p {
    font-size: 14px;
}

.action-btn {
    background-color: #007bff; /* Azul para el fondo */
    color: white; /* Texto blanco */
    border: none; /* Sin borde */
    border-radius: 5px; /* Bordes redondeados */
    padding: 12px 20px; /* Tamaño más grande */
    font-size: 16px; /* Texto más grande */
    cursor: pointer; /* Cambia el cursor al pasar sobre el botón */
    margin-top: 10px; /* Espaciado entre botones */
}

.action-btn:hover {
    background-color: #0056b3; /* Azul más oscuro al pasar el mouse */
}


#map {
    width: 100%; /* Ajustar al ancho completo de la pantalla */
    height: 60vh; /* Altura proporcional al 60% del viewport */
    margin: 20px auto; /* Centrar verticalmente con margen */
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Sombra para diseño atractivo */
}


/* Blog Section */
.blog-section {
    flex: 1;
    padding: 20px;
}

.blog-section h2 {
    font-size: 24px;
}

.blog-entry {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 20px;
}

.blog-entry h3 {
    font-size: 18px;
}

.blog-entry p {
    font-size: 14px;
}

.read-more-btn {
    background-color: #007bff; /* Azul para el botón */
    color: white; /* Texto blanco */
    border: none; /* Sin borde */
    border-radius: 5px; /* Bordes redondeados */
    padding: 10px 15px; /* Tamaño más grande */
    margin-top: 15px;
}
.read-more-btn:hover {
    border: none; /* Sin borde */
}

/* Blog Content Section */
.blog-content {
    flex: 1;
    padding: 20px;
    background-color: #ffffff; /* Fondo blanco */
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra ligera */
}

.blog-content h2 {
    font-size: 26px; /* Tamaño del título principal */
    color: #007bff; /* Azul para destacar */
    margin-bottom: 20px; /* Separación del título */
    text-align: center; /* Centrar el título */
}

.blog-content article {
    line-height: 1.6; /* Espaciado entre líneas para mejor legibilidad */
    color: #333; /* Texto oscuro */
}

.blog-content h3 {
    font-size: 20px; /* Tamaño de los subtítulos */
    color: #4CAF50; /* Verde para subtítulos */
    margin-top: 15px;
}

.blog-content p {
    font-size: 16px; /* Tamaño del texto del párrafo */
    color: #666; /* Texto gris oscuro */
    margin-bottom: 15px; /* Separación entre párrafos */
}

.blog-content ul {
    list-style-type: disc; /* Lista con viñetas */
    padding-left: 20px; /* Espaciado de la lista */
}

.blog-content ul li {
    font-size: 16px;
    color: #333;
}

/* Botón Leer Más */
.read-more-btn {
    background-color: #2386f0; /* Azul para el botón */
    color: white; /* Texto blanco */
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    display: inline-block;
}

.read-more-btn:hover {
    background-color: #0056b3; /* Azul más oscuro al pasar el mouse */
}

.read-more-btn-container {
    text-align: center; /* Centrar el botón en la página */
}



/* Right Sidebar */
#right-sidebar {
    width: 250px; /* Ancho fijo para el sidebar derecho */
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Asegura que los elementos se estiren */
    height: calc(100vh - 60px); /* Altura completa menos el header */
}

.top-creators {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.top-creators h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.creator-list {
    list-style: none;
    padding: 0;
}

.creator-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rank {
    font-size: 14px;
    font-weight: bold;
    color: #666;
}

.creator-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.creator-name {
    flex-grow: 1;
}

.follow-btn {
    background-color: #007bff;
    color: white;
    padding: 5px;
}

/* Ads Section */
.ads-section {
    margin-top: 20px;
}

.ads-section h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.ad-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.ad-image {
    width: 500px;
    height: 260px; /* Ajustar al ancho del contenedor */
    border-radius: 5px;
}

.ad-card p {
    font-size: 14px;
    color: #333;
}

.ad-card button {
    background-color: #007bff; /* Azul para el botón */
    color: white; /* Texto blanco */
    border: none; /* Sin borde */
    border-radius: 5px; /* Bordes redondeados */
    padding: 8px 12px; /* Tamaño del botón */
    font-size: 14px; /* Texto más grande */
    cursor: pointer; /* Cambia el cursor al pasar sobre el botón */
}

.ad-card button:hover {
    background-color: #0056b3; /* Azul más oscuro al pasar el mouse */
}


/* Configuración de Cuenta */
.account-settings {
    flex: 1;
    padding: 20px;
}

.account-settings h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.profile-picture-section {
    text-align: center;
    margin-bottom: 30px;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

#profile-picture-input {
    display: block;
    margin: 0 auto;
}

#account-form {
    max-width: 400px;
    margin: 0 auto;
}

#account-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

#account-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.save-btn {
    background-color: #007bff; /* Azul */
    color: white; /* Texto blanco */
    border: none; /* Sin borde */
    border-radius: 5px; /* Bordes redondeados */
    padding: 10px 20px; /* Tamaño del botón */
    cursor: pointer; /* Cursor interactivo */
}

.save-btn:hover {
    background-color: #0056b3; /* Azul más oscuro */
}


.iframe-container {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    padding: 20px; /* Espaciado opcional alrededor */
  }
  
  iframe {
    max-width: 100%; /* Ajusta el iframe al tamaño del contenedor si es necesario */
  }

  .chat-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .chat-header {
    padding: 15px;
    background-color: #007bff;
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 15px;
  }
  
  .message {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
  }
  
  .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
  }
  
  .message-content {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 15px;
    max-width: 70%;
  }
  
  .user-name {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
  }
  
  .message-time {
    font-size: 12px;
    color: #888;
    align-self: flex-end;
    margin-left: 10px;
  }
  
  .chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
  }
  
  .chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
  }
  
  .send-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
  }
  .chat-wrapper {
    display: flex;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .chat-list {
    width: 300px;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    height: 500px;
  }
  
  .chat-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
  }
  
  .chat-item:hover {
    background-color: #f8f8f8;
  }
  
  .chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
  }
  
  .chat-preview {
    flex: 1;
    overflow: hidden;
  }
  
  .chat-name {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
  }
  
  .chat-last-message {
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
  }
  
  .chat-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  
  .chat-time {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
  }
  
  .unread-indicator {
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
  }
  
  .chat-container {
    flex: 1;
  }
  
  .content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: #007bff;
    text-align: center;
}

.itinerary-item {
    display: flex;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 20px;
}

.itinerary-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 15px;
}

.itinerary-content {
    flex: 1;
}

.itinerary-item h3 {
    color: #007bff;
    margin-bottom: 10px;
}

.itinerary-item p {
    color: #333;
    margin-bottom: 10px;
}

.transport {
    color: #666;
    font-style: italic;
}

.transport i {
    margin-right: 5px;
}

.flight-search {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
  }
  
  .flight-search h2 {
    color: #007bff;
    margin-bottom: 20px;
  }
  
  .flight-search-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
  }
  
  .form-group label {
    margin-bottom: 5px;
    color: #666;
  }
  
  .form-group input,
  .form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
  }
  
  .search-btn {

    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
  }
  
  .search-btn:hover {
    background-color: #0056b3;
  }
  