/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme for the Astra theme.
Author: Your Name
Author URI: https://yourwebsite.com
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

@import url("../astra/style.css"); /* Only needed for very old WP installs */

/* Custom CSS para Single Proyectos */
/*--------------------------------------*/
.proyecto-wrapper {
  padding-top: 2rem;
  padding-bottom: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.proyecto-backlink {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #0077aa;
  text-decoration: none;
}

.proyecto-title {
  font-size: 3.4rem;
  margin-bottom: 0.3rem;
}

.proyecto-meta {
  color: #9CA7AB;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.proyecto-meta a {
  color: #666;
  text-decoration: none;
  margin-right: 0.5rem;
}

.proyecto-image-full img {
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

.proyecto-planificacion h2 {
  margin-bottom: 2rem;
  color: #9CA7AB;
}

.title-section{
  min-width:25%;
}

.proyecto-section {
  margin-bottom: 3.5rem;
  display: flex;
}

.proyecto-text {
  margin-top: 0.5rem;
  line-height: 1.6;
}

.profesor-card {
  margin-top: 5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 20px;
  border-style: solid;
  border-width: 1px;
  border-color: var(--e-global-color-astglobalcolor2);
}

.profesor-image {
  min-width: 33%;
  text-align-last: center;
}

.profesor-image img {
  border-radius: 4px;
  width: auto;
  margin-top: -4rem;
}

.profesor-text blockquote {
  font-style: italic;
  margin-bottom: -1rem;
}

.professor-name-title {
    margin-top:1.5rem;
}

.proyecto-ficha {
  text-align: left;
  margin-top: 3rem;
}

.cta-ficha {
  display: inline-block;
  font-weight: bold;
  font-size: 2rem;
  text-decoration: none;
  color: #FAFAFA;
  border-bottom: 3px solid #FAFAFA;
}

.cta-ficha:hover {
    border-bottom: 3px solid #79ADDC;
}

.video-embed-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  margin: 2rem 0;
}

.video-embed-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

/* CSS Proyectos Grid */
/*--------------------------------------*/
.proyectos-archive {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.proyecto-destacado {
  margin-bottom: 3rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.proyecto-destacado img {
  width: 100%;
  height: auto;
  margin-bottom: 1em;
}

.proyecto-destacado:hover {
  transform: translateY(-5px);
}

.proyectos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 3rem;
  column-gap: 6rem;
}

.proyecto-card {
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.proyecto-card:hover {
  transform: translateY(-5px);
}

.proyecto-card img {
  width: 100vw;
  height: 300px;
  object-fit: cover;
  margin-bottom: 1em;
}

.proyecto-card h3 {
  font-size: 1.2rem;
  margin: 0.5rem 1rem 0 0rem;
}

.proyecto-card p {
  font-size: 0.9rem;
  color: #777;
  margin: 0 1rem 1rem 0rem;
}

/* Pagination Styling */
.pagination {
  text-align: center;
  margin-top: 2rem;
}

.pagination a,
.pagination .current-page {
  margin: 0 5px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
}

.pagination .current-page {
  background: #333;
  color: #fff;
}

/* CSS Single Proyectos on Moile */
/*--------------------------------------*/

@media (max-width: 768px) {
    
  .proyecto-section{
    flex-direction: column;
  }
  .title-section,
  .proyecto-text {
    width: 100% !important;
    max-width: 100% !important;
  }

  .profesor-card {
    flex-direction: column !important;
    align-items: flex-start;
  }

  .profesor-image img {
    max-width: 100%;
    height: auto;
  }

  .profesor-text {
    width: 100%;
  }
  
    .proyectos-grid {
    grid-template-columns: 1fr;
  }
  .proyecto-card img {
    height: auto;
  }
}
}

