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

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;
}
.logo {
  text-align: center;
}
@media (min-width: 768px) {
  .logo {
    text-align: left;
  }
}
.logo a {
  display: inline-block;
  line-height: 1;
}
.logo-image span {
  display: none;
}
.logo-img,
.header-logo .logo-img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
.header-search {
  padding-top: 25px;
}
.header-search .form-control {
  border-radius: 4px 0 0 4px;
  border: 1px solid #ccc;
  height: 38px;
  box-shadow: none;
}
.header-search .btn {
  border-radius: 0 4px 4px 0;
  height: 38px;
  background-color: #2cd5c4;
  border-color: #2cd5c4;
  color: #ffffff;
}
.header-search .btn:hover {
  background-color: #20b8a9;
  border-color: #20b8a9;
}

/* Navigation Bar (Navbar) */
.navbar-duarte {
  background-color: #2cd5c4;
  border-color: #24baa9;
  border-radius: 0;
  margin-bottom: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.navbar-duarte .navbar-nav > li > a {
  color: #ffffff !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  padding: 14px 14px;
  transition: all 0.2s ease;
}
.navbar-duarte .navbar-nav > li > a:hover,
.navbar-duarte .navbar-nav > li > a:focus,
.navbar-duarte .navbar-nav > .active > a,
.navbar-duarte .navbar-nav > .active > a:hover,
.navbar-duarte .navbar-nav > .active > a:focus {
  background-color: #64c0cd !important;
  color: #ffffff !important;
}
.navbar-duarte .navbar-nav > .dropdown > a .caret {
  border-top-color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Banner Header (banhead) */
#banhead {
  background-image: url('images/Headers/header-corporativo3.jpg');
  background-size: cover;
  background-position: center;
  margin-bottom: 25px;
}
#banhead img {
  width: 100%;
  height: auto;
  display: block;
}

/* Dropdown Menus */
@media (min-width: 768px) {
  .navbar-duarte .dropdown:hover > .dropdown-menu {
    display: block;
  }
}
.navbar-duarte .dropdown-menu {
  background-color: #ffffff;
  border-radius: 0;
  border: 1px solid #e0e0e0;
  box-shadow: 0 6px 12px rgba(0,0,0,0.175);
  padding: 5px 0;
}
.navbar-duarte .dropdown-menu > li > a {
  color: #333333;
  padding: 8px 20px;
  font-size: 13px;
  border-bottom: 1px solid #f2f2f2;
}
.navbar-duarte .dropdown-menu > li > a:hover {
  background-color: #f0fbfc;
  color: #007799;
}
.navbar-duarte .dropdown-submenu {
  position: relative;
}
.navbar-duarte .dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: -1px;
}
.navbar-duarte .dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* Main Layout & Body */
.t3-mainbody {
  margin-bottom: 30px;
}
.t3-content {
  background: #ffffff;
  padding: 25px 25px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 25px;
}

/* Sidebars */
.t3-sidebar {
  margin-bottom: 25px;
}
.sidebar-table-banners {
  width: 100%;
  border-collapse: collapse;
}
.sidebar-table-banners td {
  padding: 5px 0;
  text-align: center;
  border: none !important;
  background: transparent !important;
}
.sidebar-table-banners img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  transition: transform 0.2s ease;
}
.sidebar-table-banners img:hover {
  transform: scale(1.02);
}

/* News Items (JA Sidenews / K2 replicate) */
.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;
  margin-top: 0;
  margin-bottom: 10px;
}
.ja-slidenews-item .ja-title {
  color: #2c3e50;
  font-weight: 700;
  text-decoration: none;
}
.ja-slidenews-item .ja-title:hover {
  color: #007799;
}
.news-item-media {
  margin-bottom: 10px;
}
.news-thumb-img {
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}
.ja-createdate {
  font-weight: bold;
  color: #777;
  font-size: 12px;
  display: block;
  margin-bottom: 6px;
}
.news-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: #444;
}

/* Footer */
.t3-footer {
  border-top: 1px solid #eeeeee;
  background: #2cd5c4;
  color: #000000;
  padding-top: 30px;
  padding-bottom: 0;
}
.t3-footer a {
  color: #000000;
}
.t3-footer a:hover {
  color: #333333;
}
.t3-footer table {
  width: 100% !important;
  max-width: 100%;
  border: none !important;
  background: transparent !important;
  margin-bottom: 20px;
}
.t3-footer table td {
  border: none !important;
  background: transparent !important;
  padding: 4px 0 !important;
  vertical-align: top;
}
.t3-footnav {
  margin-bottom: 20px;
}
.t3-copyright {
  background: #20b8a9;
  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%;
}

/* 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;
  }
}
