/*
Theme Name: CIC theme child
Theme URI: http://www.elegantthemes.com/gallery/divi/
Template: Divi
Author: Elegant Themes
Author URI: http://www.elegantthemes.com
Description: Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
Version: 4.27.4.1747151613
Updated: 2025-05-13 15:53:33

*/

/* ============ MENÚ HAMBURGUESA PRINCIPAL ============ */
.custom-hamburger-menu {
    position: fixed;
    width: fit-content;
    display: inline-flex;
    color: #101223;
    flex-direction: row;
    justify-content: center;
    z-index: 10001;
    border: 2px solid #006591;
    border-radius: 20px;
    padding: 8px 15px;
    background: #fff;
}

/* ============ CONTENEDOR DEL MENÚ DESPLEGABLE ============ */
#main-hamburger-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    min-width: 250px; /* Ancho del contenedor de titulos del menú (Staff, parents, students, log out) */
    margin-top: 10px;
    border-radius: 4px;
    z-index: 10001;
    overflow: visible; /* submenús con grid salen correctamente */
}

/* ============ SCROLLBAR PERSONALIZADA ============ */
#main-hamburger-menu::-webkit-scrollbar {
    width: 8px;
}
#main-hamburger-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
#main-hamburger-menu::-webkit-scrollbar-thumb {
    background: #006591;
    border-radius: 4px;
}
#main-hamburger-menu::-webkit-scrollbar-thumb:hover {
    background: #004d73;
}

/* ============ ELEMENTOS DEL MENÚ ============ */
#main-hamburger-menu > li {
    position: relative;
    padding: 12px 25px 12px 20px;
    border-bottom: 1px solid #B3B5BD;
}

#main-hamburger-menu a {
    color: #006591 !important;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    transition: all 0.2s ease;
}

/* ============ SUBMENÚS CON SCROLL Y 2 COLUMNAS ============ */
#main-hamburger-menu .sub-menu {
    display: none;
    position: relative;
    width: 100%;
    background: #f8f9fa;
    max-height: 500px; /* Alto del contenedor del menu */
    overflow-y: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#main-hamburger-menu .sub-menu.active {
    display: grid;
    gap: 10px;
    padding: 10px;
    width: max-content; /* ancho dinámico al abrir */
    min-width: 500px;
}

#main-hamburger-menu .sub-menu li,
#main-hamburger-menu .sub-menu a {
    white-space: nowrap;
}

#main-hamburger-menu .menu-item-has-children > a::after {
    content: "▾";
    position: absolute;
    right: 0px;
    font-size: 16px;
    color: #006591;
    transition: transform 0.3s ease;
}

/* ============ DISPOSITIVOS MÓVILES ============ */
@media (max-width: 980px) {
    .custom-hamburger-menu {
        display: none;
    }

    #main-hamburger-menu {
        position: fixed;
        top: 70px !important;
        left: 20px;
        right: 20px;
        width: calc(100% - 40px);
        max-height: 80vh;
        overflow-y: auto;
    }

    #main-hamburger-menu > li {
        padding: 12px 15px;
    }

    #main-hamburger-menu .sub-menu {
        grid-template-columns: 1fr; /* 1 columna en móviles */
        min-width: 100%;
    }
}

/* ============ ANIMACIONES Y ESTADOS ============ */
.custom-hamburger-menu.active #main-hamburger-menu {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ ELEMENTOS RESTANTES (MANTIENE TU CÓDIGO ORIGINAL) ============ */
.custom-menu-toggle {
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    background: #fff;
    border-radius: 4px;
    z-index: 10002;
}

.user-info {
    display: flex;
    gap: 5px;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    background: #006591;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.menu-icon {
    height: auto;
    width: 20px;
    vertical-align: middle;
    margin-right: 8px;
    display: inline-block;
}

.menu-item-text {
    vertical-align: middle;
    padding: 5px 0px;
}

.mobile_menu_bar:before {
    color: #006591 !important;
}
.et_mobile_menu li a {
    color: #006591 !important;
}


/* Estilos para la nueva grid */
.posts-grid-section {
    margin: 50px 0;
    overflow: hidden;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 25px;
}

.grid-post-item {
    margin: 0;
    padding: 0;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Ajustes para la imagen */
.post-thumbnail {
    flex: 0 0 auto;
    margin-bottom: 15px;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.grid-post-title {
    margin: 0 15px -5px;
    font-size: 28px;
	color: #006591;
}

.grid-post-excerpt {
    margin: 0 15px 15px;
    color: #006591;
    line-height: 1.6;
    font-size: 16px;
	font-weight: semi-bold;
}

/* Responsive */
@media (max-width: 980px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-thumbnail img {
        height: 150px;
    }
    
    .grid-post-item {
        margin-bottom: 20px;
    }
}

.entry-content1 p{
	color: #101223;
	font-size: 16px; 
}

.post-date {
    font-size: 16px !important;
    color: #404252 !important;
    display: block !important;
	margin: 0 0 15px 15px !important;
}
.et_pb_button_back{
	color: #006591;
	font-size: 16px;
	font-weight: 600;
}

.custom-post-container1 {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ajustes para elementos internos */
.custom-post-title1 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
	color: #006591 !important;
    font-size: 52px !important;
    font-weight: 700 !important;
    line-height: 1.2;
}

.custom-featured-image1 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.entry-content1 {
    max-width: 800px;
    margin: 0 auto;
}

.custom-post-date1 {
    color: #404252 !important;
    font-size: 16px !important;
    margin: 0 auto;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 860px) {
    .custom-post-container1 {
        padding: 0 15px;
    }
	.custom-post-date1 {
        font-size: 14px !important;
        margin-bottom: 30px;
		padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .custom-post-container1 {
        padding: 0 10px;
    }
    
    .custom-post-title1 {
        font-size: 36px !important;
        margin: 15px 0 20px 0;
    }
    
    .custom-post-date1 {
        font-size: 14px !important;
        margin-bottom: 30px;
		padding: 0 10px;
    }
}

.title-post-grid2 h2{
	color: #404252;
	font-size: 32px;
	font-weight: bold;
}