/**
 * St. John's School - UI & Alignment Refinements
 * Maintains original brand aesthetic while enhancing alignments, spacing & responsiveness.
 */

/* 1. Header & Navigation Refinements */
.elementor-20142 .wpr-logo img {
    border-radius: 8px;
    transition: transform 0.2s ease;
}
.wpr-nav-menu .current-menu-item > a,
.wpr-nav-menu a.wpr-active-menu-item {
    color: #ff9800 !important;
    font-weight: 700 !important;
    position: relative;
}
.wpr-nav-menu .current-menu-item > a::after,
.wpr-nav-menu a.wpr-active-menu-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 15%;
    width: 70%;
    height: 3px;
    background-color: #ff9800;
    border-radius: 2px;
}
.wpr-mobile-nav-menu a.wpr-active-menu-item {
    background-color: #063064 !important;
    color: #ffffff !important;
    font-weight: bold;
}

/* 2. Hero Banner Fallback / Slideshow */
.elementor-19074 .elementor-element.elementor-element-aacb167 {
    min-height: 520px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    animation: heroFadeIn 1s ease-in-out;
}
@keyframes heroFadeIn {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

/* 3. Stat Counters Banner Alignment */
.elementor-19074 .elementor-element.elementor-element-d08794c {
    padding: 35px 25px !important;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(2, 11, 49, 0.15);
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-around !important;
}
.elementor-19074 .elementor-element.elementor-element-508c6ed img {
    max-height: 100px !important;
    width: auto !important;
    object-fit: contain;
    opacity: 0.85 !important;
}
.elementor-19074 .elementor-element-3e2edb7,
.elementor-19074 .elementor-element-db75276,
.elementor-19074 .elementor-element-3e188db,
.elementor-19074 .elementor-element-7ad2e1c,
.elementor-19074 .elementor-element-1e94205 {
    text-align: center;
    padding: 10px 15px;
}

/* 4. Facilities Section Alignment & Modern Cards */
.facility-card {
    position: relative;
    overflow: hidden;
}
.facility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #063064, #ff9800);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.facility-card:hover::before {
    opacity: 1;
}
.facility-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(6, 48, 100, 0.12) !important;
    border-color: #cbd5e1 !important;
}
.facility-card:hover div:first-of-type {
    background: #063064 !important;
}
.facility-card:hover div:first-of-type svg {
    fill: #ffffff !important;
}

.elementor-element-c06df6b .elementor-icon-box-wrapper:hover .elementor-icon-box-icon {
    background: #063064;
}
.elementor-element-c06df6b .elementor-icon-box-wrapper:hover .elementor-icon-box-icon svg {
    fill: #ffffff !important;
}
.elementor-element-c06df6b .elementor-icon-box-icon svg {
    width: 28px;
    height: 28px;
    fill: #063064;
    transition: fill 0.3s ease;
}
.elementor-element-c06df6b .elementor-icon-box-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #063064 !important;
    margin-bottom: 12px !important;
}
.elementor-element-c06df6b .elementor-icon-box-description {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    color: #555555 !important;
}
.elementor-element-c06df6b .elementor-button {
    margin-top: auto;
    border-radius: 25px !important;
    background-color: #063064 !important;
    padding: 9px 24px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}
.elementor-element-c06df6b .elementor-button:hover {
    background-color: #ff9800 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* 5. Testimonial Cards Refinement */
.wpr-testimonial-item {
    background: #ffffff !important;
}
.wpr-testimonial-content-inner {
    background: #ffffff;
    border: 1px solid #e5eaf2 !important;
    border-radius: 16px !important;
    padding: 28px 24px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 15px;
}
.wpr-testimonial-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #444444;
    font-style: italic;
}

/* 6. Sticky Social Bar Alignment */
#sticky-social-icons-container {
    z-index: 999;
}
#sticky-social-icons-container li a {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px 0 0 8px;
    transition: all 0.25s ease;
}
@media (max-width: 991px) {
    #sticky-social-icons-container {
        display: none !important;
    }
}

/* 7. Forms UI Polish (Contact & Admission) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #dbe2ea;
    border-radius: 8px;
    font-size: 14.5px;
    color: #222222;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #063064;
    outline: none;
    box-shadow: 0 0 0 3px rgba(6, 48, 100, 0.12);
}
button[type="submit"],
.btn-primary-custom {
    background: linear-gradient(135deg, #063064 0%, #0d1bba 100%);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(6, 48, 100, 0.25);
    transition: all 0.25s ease;
}
button[type="submit"]:hover,
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 48, 100, 0.35);
}

/* 8. Gallery Grid Polish */
.gallery-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.gallery-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

/* 9. Management Team Cards */
.wpsm_team_member,
.team-member-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border: 1px solid #eaeff5;
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wpsm_team_member:hover,
.team-member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(6, 48, 100, 0.12);
}

/* 10. About Us Activities Section Styling */
.elementor-element-bca2330 {
    background: linear-gradient(135deg, #041b3d 0%, #063064 100%) !important;
    border-radius: 20px;
    padding: 40px 25px !important;
    margin: 30px auto !important;
    box-shadow: 0 15px 40px rgba(4, 27, 61, 0.2);
}
.elementor-element-bca2330 .elementor-icon-box-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}
.elementor-element-bca2330 .elementor-icon-box-icon svg {
    width: 26px;
    height: 26px;
    fill: #ffffff !important;
}
.elementor-element-bca2330 .elementor-icon-box-title {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-align: center;
    margin-bottom: 12px;
}
.elementor-element-bca2330 .elementor-button {
    background: #ff9800 !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}
.elementor-element-bca2330 .elementor-button:hover {
    background: #ffb74d !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

/* 11. Footer Polish */
.footer-area {
    background-color: #061957 !important;
    padding: 25px 0;
}
.footer-area .copyright {
    color: #ccd6ea !important;
    font-size: 14px;
    margin: 0;
}

