/*
Theme Name:     Flash Child2
Theme URI: 	https://themegrill.com/themes/flash/
Author: 	ThemeGrill
Author URI: 	https://themegrill.com
Description:    Child theme for the Flash theme powered by ThemeGrill
Template:       flash
*/

@import url("../flash/style.css");
/* Hi havia un alignright/alignleft al tema que espenyava visualització imatges */

.alignleft {
    float: left;
    margin: 0.5em 0 0.5em 1em;
}

.alignright {
    float: right;
    margin: 0.5em 0 0.5em 1em;
}

/* Icones per menú social de capçalera superior */

.social-menu li a[href*="rss"]::before {
    content: "\f09e";
}

.social-menu li a[href*="rss"]:hover {
    color: #333333;
}

.social-menu li a[href*="youtube.com"]::before {
    content: "\f16a";
}

.social-menu li a[href*="youtube.com"]:hover {
    color: #333333;
}

/* Color de la barra superior */

.header-top {
    /*background-color: #e6b000;*/
    background-color: #ffc80b;
}

.contact-info span {
    color: #384554;
}

/* Color breadcrump */
.breadcrumb-trail.breadcrumbs {
    background: #ffc80b none repeat scroll 0 0;
}

/* Mides primari - secundari (lateral) */
#primary {
    width: 72%;
}

#secondary {
    width: 25%;
}

/* Posar negreta al menú oferta educativa */
#menu-oferta-educativa {
    font-weight: bold;
}

/* Posar negreta al títol dels esdeveniments del widget */
.ai1ec-agenda-widget-view .ai1ec-event .ai1ec-event-title {
    font-weight: bold;
}

/* Posar negreta a les dates de les notícies de portada */
.blog-section .tg-blog-widget-layout-2 .post-image .entry-date a {
    font-weight: bold;
}

/* Posar subratllat als enllaços del contingut de les notícies */
.entry-content a {
    text-decoration: underline;
}

.entry-title a {
    text-decoration: none;
}

.widget a {
    text-decoration: none;
}

/* Preloader CSS */


#preloader span {
    background: #ffc80b;
}

@-webkit-keyframes preloader {
    0% {
        height: 5px;
        -webkit-transform: translateY(0px);
        background: #ffc80b;
    }
    25% {
        height: 30px;
        -webkit-transform: translateY(15px);
        background: #ffe799;
    }
    50% {
        height: 5px;
        -webkit-transform: translateY(0px);
        background: #ffc80b;
    }
    100% {
        height: 5px;
        -webkit-transform: translateY(0px);
        background: #ffc80b;
    }
}

@-moz-keyframes preloader {
    0% {
        height: 5px;
        -moz-transform: translateY(0px);
        background: #ffc80b;
    }
    25% {
        height: 30px;
        -moz-transform: translateY(15px);
        background: #ffe799;
    }
    50% {
        height: 5px;
        -moz-transform: translateY(0px);
        background: #ffc80b;
    }
    100% {
        height: 5px;
        -moz-transform: translateY(0px);
        background: #ffc80b;
    }
}

@-ms-keyframes preloader {
    0% {
        height: 5px;
        -ms-transform: translateY(0px);
        background: #ffc80b;
    }
    25% {
        height: 30px;
        -ms-transform: translateY(15px);
        background: #ffe799;
    }
    50% {
        height: 5px;
        -ms-transform: translateY(0px);
        background: #ffc80b;
    }
    100% {
        height: 5px;
        -ms-transform: translateY(0px);
        background: #ffc80b;
    }
}

@keyframes preloader {
    0% {
        height: 5px;
        transform: translateY(0px);
        background: #ffc80b;
    }
    25% {
        height: 30px;
        transform: translateY(15px);
        background: #ffe799;
    }
    50% {
        height: 5px;
        transform: translateY(0px);
        background: #ffc80b;
    }
    100% {
        height: 5px;
        transform: translateY(0px);
        background: #ffc80b;
    }
}
/*
.logo {
  display: flex;
  align-items:start;
}

.logo-image {
  margin: 0;
}*/

/* ==========================================================================
   1. Layout Principal (#primary y #secondary)
   ========================================================================== */
.site-content .tg-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

#primary {
  width: 65.5%;
}

#secondary {
  width: 32.22%;
}

/* Layout con barra lateral a la izquierda */
.left-sidebar .tg-container {
  flex-direction: row-reverse;
}

/* Layouts de ancho completo */
.full-width #primary {
  width: 100%;
}

.full-width-center #primary {
  margin: 0 auto;
  width: 65.5%;
}

/* ==========================================================================
   2. Sistema de Columnas (Flexbox / Grid)
   ========================================================================== */
.tg-column-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 3%;
}

.tg-column-wrapper .tg-column-1 { 
  width: 100%; 
}

.tg-column-wrapper .tg-column-2 { 
  width: 47%; 
}

.tg-column-wrapper .tg-column-3 { 
  width: 30.33%; 
}

.tg-column-wrapper .tg-column-4 { 
  width: 22%; 
}

/* ==========================================================================
   3. Cabecera (Header Top, Logo y Menú)
   ========================================================================== */
/* Header superior: Información de contacto y redes sociales */
.header-top .contact-info,
.header-top .social-menu {
  display: flex;
  align-items: center;
  margin: 0;
}

.header-top .contact-info li {
  margin-right: 30px;
  padding: 5px 0;
}

.header-top .social-menu li {
  margin-left: 10px;
  padding: 5px 0;
}

.header-top .right-content {
  display: flex;
  justify-content: flex-end;
}

/* Identidad visual y Logo */
.logo {
  display: flex;
  align-items: center;
  padding: 0;
}

.logo .logo-image {
  padding: 20px 0;
}

.logo .logo-text {
  margin-left: 12px;
  padding: 11px 0;
}

/* Menú de Navegación Principal */
#site-navigation ul {
  display: flex;
  align-items: center;
  margin: 0;
}

#site-navigation ul li {
  padding: 23px 30px 23px 0;
  position: relative;
}

/* Contenedor del Buscador */
.header-bottom .search-wrap {
  margin-left: auto;
  padding: 20px 0 20px 40px;
  position: relative;
}

/* ==========================================================================
   4. Navegación de Entradas
   ========================================================================== */
.post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0;
  width: 100%;
}

.nav-next a {
  display: flex;
  align-items: center;
}

.nav-next a .entry-title {
  margin-right: 3px;
}

/* ==========================================================================
   5. Alineaciones de Contenido (.alignleft / .alignright)
   ========================================================================== */
.alignleft {
  margin-right: 24px;
}

.alignright {
  margin-left: 24px;
}

/* Contenedor principal del cabecero inferior */
.header-bottom .tg-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

/* 1. Fila Superior Izquierda: Logo + Título y Descripción */
.header-bottom .logo {
  order: 1;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
}

.logo .logo-image {
  padding: 0;
  margin: 0;
}

.logo .logo-text {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.logo-text .site-title,
.logo-text .site-description {
  margin: 0;
  line-height: 1.3;
}

/* 2. Fila Superior Derecha: Iconos de Búsqueda / Carrito */
.header-bottom .header-action-container {
  order: 2;
  margin-left: auto;
}

/* 3. Fila Inferior: Menú de navegación abajo */
.header-bottom .site-navigation-wrapper {
  order: 3;
  width: 100%;
  margin-top: 10px;
  border-top: 1px solid #eee; /* Opcional: línea separadora superior */
}

#site-navigation ul {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

#site-navigation ul li {
  padding: 12px 25px 12px 0;
}