/*
Theme Name: Themify Ultra Child
Description: Child theme for Themify Ultra
Author: Themify
Template: themify-ultra
*/

/* write custom css below */

/* ============================================
   School Mobile Menu Styles
   ============================================ */

/* Toggle Button */
#school-mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
    transition: none;
    touch-action: manipulation;
    margin-left: auto; /* Right align */
    margin-right: 0;
}

/* Ensure parent container allows right alignment */
.school-menu-toggle {
    margin-left: auto !important;
    margin-right: 0 !important;
}

#school-mobile-menu-toggle:hover {
    background: none;
    box-shadow: none;
    transform: none;
}

#school-mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 24px;
    background: #000;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Menu Overlay */
#school-mobile-menu-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#school-mobile-menu-overlay.active {
    display: block;
}

/* Menu Header with Logo and Close Button */
.school-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

.school-menu-logo img {
    height: auto;
    max-width: 120px;
    display: block;
}

.school-menu-logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    display: block;
}

.school-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: opacity 0.2s;
}

.school-menu-close:hover {
    opacity: 0.7;
}

.school-menu-close svg {
    width: 24px;
    height: 24px;
}

/* Menu Content Container */
.school-menu-content {
    padding: 0 20px 20px;
}

/* Navigation Menu */
.school-menu-nav {
    margin: 20px 0;
}

.school-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.school-menu-list li {
    margin: 0;
    padding: 0;
}

.school-menu-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s;
}

.school-menu-list li.current-menu-item > a,
.school-menu-list li.current_page_item > a {
    color: #0073e6;
}

.school-menu-list a:hover {
    color: #0073e6;
}

/* Submenu Styles */
.school-menu-list .sub-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 20px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.school-menu-list li.menu-item-has-children.open > .sub-menu {
    display: block;
}

.school-menu-list .sub-menu li {
    margin: 0;
}

.school-menu-list .sub-menu a {
    padding: 12px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f5f5f5;
}

.school-menu-list .sub-menu a:hover {
    color: #0073e6;
}

/* Menu Item Icon (Triangle) - Only show for items with children */
.school-menu-list a::after {
    display: none; /* Hide by default */
}

.school-menu-list li.menu-item-has-children > a {
    cursor: pointer;
}

.school-menu-list li.menu-item-has-children > a::after {
    display: block;
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid #999;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    margin-left: 10px;
    transition: transform 0.3s, border-color 0.2s;
    flex-shrink: 0;
}

.school-menu-list li.menu-item-has-children.open > a::after {
    transform: rotate(90deg);
    border-left-color: #0073e6;
}

.school-menu-list li.menu-item-has-children > a:hover::after,
.school-menu-list li.menu-item-has-children.current-menu-item > a::after {
    border-left-color: #0073e6;
}

/* CTA Buttons Grid */
.school-menu-cta-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 30px 0 20px;
}

.school-cta-btn {
    display: block;
    padding: 14px 16px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    color: #fff;
    transition: opacity 0.2s, transform 0.1s;
    border: none;
}

.school-cta-btn:active {
    transform: scale(0.98);
}

.school-cta-green {
    background-color: #4CAF50;
}

.school-cta-red {
    background-color: #E53935;
}

.school-cta-orange {
    background-color: #FF9800;
}

.school-cta-purple {
    background-color: #9C27B0;
}

.school-cta-btn:hover {
    opacity: 0.9;
    color: #fff;
}

/* Split Buttons */
.school-menu-split-buttons {
    display: flex;
    margin: 20px 0 30px;
    border-radius: 4px;
    overflow: hidden;
}

.school-split-btn {
    flex: 1;
    padding: 14px 16px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: opacity 0.2s;
    border: none;
}

.school-split-left {
    background-color: #8B0000;
}

.school-split-right {
    background-color: #E53935;
}

.school-split-btn:hover {
    opacity: 0.9;
    color: #fff;
}

/* Footer with CBSE Info */
.school-menu-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid #e5e5e5;
    margin-top: 20px;
}

.school-cbse-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.school-cbse-info {
    flex: 1;
}

.school-cbse-label {
    font-size: 11px;
    color: #666;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.school-cbse-number {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

/* Responsive Adjustments */
@media (min-width: 769px) {
    #school-mobile-menu-overlay {
        max-width: 400px;
        right: 0;
        left: auto;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }
}

/* Prevent body scroll when menu is open */
body.school-menu-open {
    overflow: hidden;
}
