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

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 90% del body */
.itemFullText img,
.itemView img,
.itemBody img,
.itemImageBlock img,
.single-post-content img,
.t3-content .itemBody img {
  max-width: 90% !important;
  max-width: min(90%, 90vw) !important;
  height: auto !important;
}

/* Contenedores de imagen dentro de entradas/páginas */
.itemFullText figure,
.itemFullText .wp-block-image,
.itemView figure,
.itemView .wp-block-image {
  max-width: 90% !important;
  max-width: min(90%, 90vw) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

a {
  color: #007799;
  text-decoration: none;
}
a:hover, a:focus {
  color: #004d66;
  text-decoration: underline;
}

/* Header Container */
.site-header {
  background: #ffffff;
  border-bottom: 2px solid #2cd5c4;
  padding: 15px 0;
}

.header-logo .logo-image {
  display: inline-block;
}

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

.header-logo .logo-img {
  max-height: 75px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.header-logo .logo-img-sm {
  max-height: 60px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
}

.header-logo .logo-image span {
  display: none;
}

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

.header-search .search-query {
  border-radius: 4px 0 0 4px;
  border: 1px solid #ccc;
  height: 38px;
}

.header-search .btn-default {
  background-color: #2cd5c4;
  border-color: #2cd5c4;
  color: #fff;
  height: 38px;
  border-radius: 0 4px 4px 0;
}

.header-search .btn-default:hover {
  background-color: #20b2a2;
}

/* Navigation */
.navbar-alessandri {
  background-color: #2cd5c4;
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  min-height: 48px;
}

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

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

.navbar-alessandri .navbar-toggle {
  border-color: #fff;
  margin-top: 8px;
  margin-bottom: 8px;
}

.navbar-alessandri .navbar-toggle .icon-bar {
  background-color: #fff;
}

/* Dropdown Menus */
.dropdown-menu {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 5px 0;
  min-width: 220px;
}

.dropdown-menu > li > a {
  color: #333333;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Multi-level Dropdowns */
.dropdown-submenu {
  position: relative;
}

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

.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: #888;
  margin-top: 5px;
  margin-right: -10px;
}

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

/* Banner Head (banhead) */
#banhead {
  background: #f7f9fa;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}

#banhead .container {
  padding: 0;
}

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

/* Main Content Area */
.t3-mainbody {
  padding-top: 15px;
  padding-bottom: 30px;
  min-height: 500px;
}

.t3-content {
  background: #ffffff;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 25px;
}

/* Sidebars */
.t3-sidebar {
  padding-left: 10px;
  padding-right: 10px;
}

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

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

.t3-sidebar table img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 3px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.t3-sidebar table img:hover {
  opacity: 0.92;
  transform: scale(1.01);
}

/* News List on Front Page */
.ja-slidenews-item {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.ja-slidenews-item:last-child {
  border-bottom: none;
}

.ja-slidenews-item .news-title {
  font-size: 18px;
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 8px;
  font-weight: 700;
}

.ja-slidenews-item .news-title a {
  color: #2c3e50;
  text-decoration: none;
}

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

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

.ja-slidenews-item .ja-createdate {
  display: block;
  font-size: 12px;
  color: #ff8259;
  font-weight: 600;
  margin-bottom: 6px;
}

.ja-slidenews-item .news-excerpt {
  font-size: 13px;
  color: #555555;
  line-height: 1.6;
}

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

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

/* Footer */
#t3-footer {
  border-top: 1px solid #eeeeee;
  background: #2cd5c4;
  color: #333333;
  padding-top: 30px;
  padding-bottom: 0;
}

#t3-footer a {
  color: #000000;
}

#t3-footer .t3-footnav {
  margin-bottom: 25px;
}

#t3-footer .t3-copyright {
  background: #20b2a2;
  color: #ffffff;
  padding: 15px 0;
  margin-top: 15px;
}

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

/* Responsive adjustments */
@media (max-width: 991px) {
  .t3-sidebar-2 {
    display: none;
  }
  .t3-sidebar-1 {
    width: 100% !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    margin-top: 20px;
  }
  .t3-content {
    width: 100% !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
  }
}

@media (max-width: 767px) {
  .header-logo {
    text-align: center;
  }
  .header-search {
    padding-top: 10px;
    margin-bottom: 10px;
  }
  .header-logo .logo-img {
    max-height: 55px;
  }
  .header-logo .logo-img-sm {
    max-height: 45px;
  }
}

/* 3D FlipBook (DearFlip) Enhancements */
a._df_thumb, ._df_thumb {
  cursor: pointer !important;
  display: inline-block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

a._df_thumb:hover, ._df_thumb:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.05);
}

a._df_button, ._df_button {
  cursor: pointer !important;
  transition: all 0.2s ease-in-out;
}

._df_book {
  margin: 25px auto;
  max-width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

