
    /* ----- Main tones ----- */
    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: linear-gradient(135deg, #13763C, #4A8C52, #669B5C, #7DAA68, #C5D080);
      color: #fff;
      min-height: 100vh;
    }

/* ----- Top bar ----- */
    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 30px;
      /* semi-transparent to see the gradient */
      background: rgba(0,0,0,0.2);
      backdrop-filter: blur(5px);
      position: relative;
      z-index: 10;
    }

    .navbar h1 {
      margin: 0;
      font-size: 24px;
    }

    /* ----- Login btn ----- */
    .login-dropdown {
      position: relative;
      display: inline-block;
    }

    .login-btn {
      background-color: rgba(255,255,255,0.9);
      color: #13763C;
      border: none;
      padding: 10px 20px;
      cursor: pointer;
      border-radius: 5px;
      font-weight: bold;
    }

    .login-content {
      display: none;
      position: absolute;
      right: 0;
      background-color: rgba(255,255,255,0.95);
      min-width: 220px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
      padding: 15px;
      border-radius: 5px;
      z-index: 1000;
    }

    .login-content input {
      width: 100%;
      padding: 8px;
      margin: 5px 0;
      border: 1px solid #ccc;
      border-radius: 4px;
    }

    .login-content button {
      width: 100%;
      padding: 10px;
      background-color: #13763C;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-weight: bold;
    }

    .login-dropdown.show .login-content {
      display: block;
    }

    /* ----- Main Content ----- */
    .main-content {
      padding: 100px 20px;
      text-align: center;
    }

    .main-content h2 {
      font-size: 36px;
      margin-bottom: 20px;
    }

    .main-content p {
      font-size: 20px;
    }

    @keyframes typing {
      to { width: 100%; }
    }

    .welcome img {
      vertical-align: middle;
      height: 50px;
      margin-left: 10px;
      animation: fadeIn 1s ease forwards;
      opacity: 0;
      animation-delay: 3s;
      animation-fill-mode: forwards;
    }

    @keyframes fadeIn {
      to { opacity: 1; }
    }

    /* ----- Main ScrollBox ----- */
    .tab-container {
      background-color:#C5D080;;
      color: #13763C;
      border-radius: 10px;
      padding: 20px;
      overflow: auto; /* Contiene los floats */
      float: left; 
      width: calc(100% - 380px); /* 100% menos el ancho de la sidebar (300px) y un margen extra (80px) */
      max-width: 900px; 
      margin: 50px 20px; /* Ajusta el margen si es necesario */
      box-sizing: border-box; 
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

    /* ----- Tabs ----- */
    .tabs {
      display: flex;
      border-bottom: 2px solid #13763C;
      margin-bottom: 20px;
    }

    .tabs button {
      background-color: transparent;
      border: none;
      padding: 10px 20px;
      cursor: pointer;
      font-weight: bold;
      color: #13763C;
      transition: 0.3s;
    }

    .tabs button.active {
      border-bottom: 3px solid #13763C;
      color: #669B5C;
    }

    /* ----- Tabs Content ----- */
    .tab-content {
      display: none;
    }

    .tab-content.active {
      display: block;
      
    }

    /* ----- Gallery ----- */
    .gallery {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 10px;
    }

    .gallery img {
      width: 100%;
      border-radius: 5px;
      cursor: pointer;
      transition: transform 0.3s;
    }

    .gallery img:hover {
      transform: scale(1.05);
    }
      .post-card {
    display: flex; /* <-- Esta es la regla que crea las dos columnas */
    background-color: #fff;
    color: #13763C;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
  }

  .post-card:hover {
    transform: scale(1.02);
  }

  .post-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
  }

  .post-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .post-card-content h4 {
    margin: 0 0 10px 0;
  }

  .post-card-content p {
    margin: 0;
    font-size: 14px;
  }
  .post-card-content-full {
  display: none;
  margin-top: 10px;
  font-size: 14px;
}

/* Overlay para post expandido */
.post-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow-y: auto;
}

.post-overlay-content {
    background: #fff;
    color: #13763C;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-overlay-content img {
    max-width: 100%;
    max-height: 50vh;
    margin-bottom: 20px;
}

.post-overlay-content h4 {
    margin: 10px 0;
}

.post-overlay-content p {
    font-size: 16px;
    text-align: justify;
}

.post-overlay-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}
.post-images img {
    cursor: pointer;
    transition: transform 0.2s;
}

.post-images img:hover {
    transform: scale(1.1);
}


#postsContainer {
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.playlist-container {
    display: block !important; 
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #fff; 
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
    transition: transform 0.2s;
}

.playlist-container iframe {
    /* Estilos del iframe */
    display: block !important;
    width: 100% !important;
    height: 352px !important;
    border: none;
    background-color: #fff; 
}
/* AVStyle.css (Añadir al final) */

/* Estilos para la pestaña About Us */
#aboutUs {
    padding: 20px;
}

.about-us-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.about-us-header h3 {
    margin: 0;
}

/* Contenido editable */
.editable-content {
    background-color: #fff;
    color: #13763C;
    padding: 15px;
    border-radius: 8px;
    min-height: 200px; /* Asegura un área visible */
    border: 2px solid #C5D080; /* Borde normal */
    transition: border 0.3s, box-shadow 0.3s;
    outline: none; /* Evita el borde azul por defecto al hacer focus */
}

/* Resaltar cuando es editable para el administrador */
.editable-content[contenteditable="true"] {
    border: 2px dashed #dc3545; /* Borde rojo punteado para indicar edición */
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
    background-color: #fffaf0; /* Fondo más claro para edición */
}

/* Estilos para el botón de Guardar */
#saveAboutUs {
    padding: 8px 15px;
    background-color: #dc3545; /* Rojo para el botón de guardar */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

#saveAboutUs:hover {
    background-color: #c82333;

}
@media (max-width: 768px) {
    
    /* 1. LAYOUT PRINCIPAL: Sidebar y Tab-container */
    
    /* Eliminar el float de la columna izquierda y hacerla de ancho completo */
    .sidebar-left {
        width: 90%;
        float: none; /* Elimina el float */
        margin: 20px auto 0 auto; /* Centrar y añadir margen superior */
        order: 1; /* Establece un orden si usáramos flex/grid en el body, pero con float no es esencial */
    }

    /* Eliminar el float y hacer el contenedor principal de ancho completo */
    .tab-container {
        float: none; /* Elimina el float */
        width: 90%; /* Ancho completo o casi completo */
        max-width: none; /* Elimina el límite de ancho */
        margin: 20px auto; /* Centrar y añadir margen superior/inferior */
        padding: 15px; /* Reducir el padding */
        order: 2; /* Para que aparezca después de la sidebar si se usara flex/grid */
    }
    
    /* Mover el contenido principal del post (tab-container) debajo del sidebar 
       Eliminar los floats de todos los elementos para un layout de una sola columna */
    .sidebar-left, .tab-container {
        float: none;
        width: 90%; /* Ancho completo */
        margin: 15px auto;
    }
    
    /* 2. BARRA DE NAVEGACIÓN (Top bar) */
    .navbar {
        padding: 10px 15px; /* Reducir el padding */
        flex-direction: column; /* Apilar elementos (Logo y Login) */
        gap: 10px;
    }

    .navbar img {
        width: 150px; /* Reducir el tamaño del logo */
        height: auto;
    }

    /* 3. CONTENEDOR DE POSTS/ANUNCIOS FLOTANTES */
    #floatingCreatePost,
    #displayAnnouncement {
        position: relative; /* Quitar el sticky */
        top: initial;
        width: 100%;
        margin: 0 auto;
        padding: 0;
    }

    /* Ajustar el formulario de creación de posts para ancho completo */
    .post-form input,
    .post-form textarea {
        max-width: 100%;
    }

    /* 4. POSTS (Post Card) */
    .post-card {
        flex-direction: column; /* Apilar imagen y contenido verticalmente */
        align-items: center;
        text-align: center;
    }
    
    .post-card img {
        width: 100%; /* Imagen a ancho completo */
        height: auto;
        max-height: 200px;
        object-fit: cover;
        border-radius: 10px 10px 0 0; /* Ajustar bordes */
    }

    .post-card-content {
        padding: 10px;
    }
    
    /* 5. TABS */
    .tabs {
        flex-wrap: wrap; /* Permitir que los botones de tabs se envuelvan */
        justify-content: center;
    }

    .tabs button {
        padding: 8px 10px; /* Reducir el padding */
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    /* 6. GALERÍA */
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Imágenes más pequeñas */
        gap: 5px;
    }
    
    /* 7. ANUNCIOS */
    .announcement-display-content h4 {
        margin-top: 30px; /* Espacio debajo de la fecha de creación en móviles */
    }
    .announcement-display-content img {
        margin-top: 10px;
    }
    

}