/*
Theme Name: Liceo Siete
Theme URI: https://cdsprovi.rescateweb.help/colegios/liceosiete.cl/wp_tmp/
Author: CDS Providencia
Author URI: https://cdsprovidencia.cl
Description: Tema réplica exacta Joomla T3 a WordPress para Liceo Siete
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: liceosiete
*/

html {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

*, *:before, *:after {
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333333;
  background-color: #f7f9fa;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

/* Regla general: Las imágenes en páginas y entradas no sobrepasan el ancho del contenedor */
.itemFullText img,
.itemView img,
.itemBody img,
.itemImageBlock img,
.single-post-content img,
.entry-content img,
.t3-content img {
  max-width: 100% !important;
  height: auto !important;
  display: inline-block;
}

.t3-wrapper {
  background-color: #ffffff;
  min-height: 100vh;
}

/* Header */
.site-header {
  padding: 15px 0;
  background-color: #ffffff;
}

.header-logo .logo-image a {
  display: inline-block;
  text-decoration: none;
}

.header-logo .logo-img {
  max-height: 95px;
  width: auto;
  display: block;
}

.header-logo span {
  display: none;
}

.header-search {
  padding-top: 25px;
}

.header-search .form-control {
  border-radius: 4px 0 0 4px;
  border-color: #cccccc;
  box-shadow: none;
}

.header-search .btn {
  border-radius: 0 4px 4px 0;
  background-color: #2cd5c4;
  border-color: #2cd5c4;
  color: #ffffff;
}

.header-search .btn:hover {
  background-color: #23b7a7;
  border-color: #23b7a7;
}

/* Navigation - EXACT JOOMLA T3 COLOR */
.navbar-siete {
  background-color: #2cd5c4 !important;
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  min-height: 48px;
}

.navbar-siete .navbar-nav > li > a {
  color: #ffffff !important;
  font-weight: bold;
  font-size: 13px;
  padding: 14px 14px;
  text-transform: uppercase;
  transition: background 0.2s;
}

.navbar-siete .navbar-nav > li > a:hover,
.navbar-siete .navbar-nav > li > a:focus,
.navbar-siete .navbar-nav > .open > a,
.navbar-siete .navbar-nav > .open > a:hover,
.navbar-siete .navbar-nav > .open > a:focus {
  background-color: #64c0cd !important;
  color: #ffffff !important;
}

.navbar-siete .navbar-nav > .active > a,
.navbar-siete .navbar-nav > .active > a:hover,
.navbar-siete .navbar-nav > .active > a:focus {
  background-color: #64c0cd !important;
  color: #ffffff !important;
}

.navbar-siete .navbar-nav > li > a .caret {
  border-top-color: #ffffff !important;
  border-bottom-color: #ffffff !important;
  margin-left: 4px;
}

/* Multi-level Dropdowns */
.navbar-nav .dropdown-menu {
  background-color: #ffffff;
  border-radius: 0 0 4px 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  padding: 5px 0;
}

.navbar-nav .dropdown-menu > li > a {
  color: #333333;
  padding: 8px 20px;
  font-size: 13px;
}

.navbar-nav .dropdown-menu > li > a:hover,
.navbar-nav .dropdown-menu > li > a:focus {
  background-color: #2cd5c4;
  color: #ffffff;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: -1px;
  border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

.dropdown-submenu > a:after {
  display: block;
  content: " ";
  float: right;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-left-color: #cccccc;
  margin-top: 5px;
  margin-right: -10px;
}

.dropdown-submenu:hover > a:after {
  border-left-color: #ffffff;
}

/* Banner Head (banhead) */
#banhead {
  background-color: #f0f0f0;
  margin-bottom: 25px;
  width: 100%;
}

#banhead img {
  width: 100%;
  height: auto;
  display: block;
}

/* Main Body Layout */
.t3-mainbody {
  padding-top: 10px;
  padding-bottom: 30px;
}

.t3-content {
  background-color: #ffffff;
  padding: 0 15px 30px;
}

/* Sidebars */
.t3-sidebar {
  padding: 0 15px;
}

.t3-sidebar table {
  max-width: 100%;
  width: 100% !important;
  margin: 0 auto;
}

.t3-sidebar table td,
.t3-sidebar table tr td {
  border: 0 !important;
  padding: 4px 0 !important;
  text-align: center;
}

.t3-sidebar img {
  max-width: 100%;
  height: auto !important;
  display: block;
  margin: 0 auto;
  transition: transform 0.2s;
}

.t3-sidebar img:hover {
  transform: scale(1.02);
}

.t3-sidebar .moduletable {
  margin-bottom: 25px;
}

/* News List (mod_jasidenews style on Homepage) */
.ja-slidenews-item {
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.ja-slidenews-item .ja-title,
.ja-slidenews-item .news-title a {
  font-family: "Futura", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333333;
  font-size: 19px;
  font-weight: bold;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.ja-slidenews-item .ja-title:hover,
.ja-slidenews-item .news-title a:hover {
  color: #2cd5c4;
}

.ja-createdate {
  display: inline-block;
  font-size: 12px;
  color: #888888;
  margin-bottom: 10px;
}

.news-thumb-img {
  border: 1px solid #e0e0e0;
  padding: 3px;
  border-radius: 4px;
  margin-bottom: 10px;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
}

.news-excerpt {
  color: #555555;
  line-height: 1.6;
  font-size: 13px;
  text-align: justify;
}

/* Spotlight 2 (Bottom 4 Banners) */
.t3-sl-2 {
  background-color: #f4f6f7;
  padding: 25px 0;
  margin-top: 30px;
  margin-bottom: 20px;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.t3-sl-2 .sl-banner {
  text-align: center;
  margin-bottom: 15px;
}

.t3-sl-2 .sl-banner img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.t3-sl-2 .sl-banner img:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Footer - EXACT JOOMLA T3 COLOR */
.t3-footer {
  border-top: 1px solid #eeeeee;
  background-color: #2cd5c4 !important;
  color: #333333;
  padding-top: 30px;
}

.t3-footnav {
  margin-bottom: 30px;
}

.t3-footer table {
  width: 100% !important;
}

.t3-footer td,
.t3-footer tr td {
  border-top: 0px !important;
}

.t3-footer a {
  color: #204c73;
  text-decoration: underline;
}

.t3-footer a:hover {
  color: #0d233a;
}

.t3-copyright {
  background-color: #23b7a7;
  color: #ffffff;
  padding: 15px 0;
  font-size: 12px;
}

.t3-copyright a {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Responsive Table Wrapper */
.table-responsive-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  width: 100%;
}

.table-responsive-wrapper table {
  max-width: 100%;
}

/* Gallery Grid */
.siete-gallery-grid {
  margin: 20px -5px;
}

.siete-gallery-item {
  padding: 5px;
  margin-bottom: 10px;
}

.siete-gallery-item img {
  border-radius: 4px;
  height: 160px;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}

.siete-gallery-item img:hover {
  transform: scale(1.03);
}

/* Responsive Overrides */
@media (max-width: 767px) {
  .site-header {
    text-align: center;
  }
  .logo {
    text-align: center;
  }
  .logo-img,
  .header-logo .logo-img {
    margin: 0 auto;
    max-width: 100%;
    width: auto;
    height: auto;
    display: inline-block;
  }
  .header-search {
    padding-top: 15px;
  }
  .t3-content {
    padding: 15px;
  }
}
