/**
 * Global School Search - Complete CSS Styles
 * All styles consolidated in one file
 */

/* --- Global Search Widget Container --- */
.scm-global-search-widget {
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 100%;
    z-index: 999;
}

/* --- Search Input Wrapper --- */
.scm-global-search-wrapper {
    position: relative;
    width: 100%;
}

.scm-global-search-input {
    width: 100%;
    padding: 12px 50px 12px 45px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    box-sizing: border-box;
    background: #ffffff;
}

.scm-global-search-input:focus {
    border-color: #2E86AB;
    box-shadow: 0 4px 15px rgba(46, 134, 171, 0.25);
    transform: translateY(-1px);
}

.scm-global-search-input::placeholder {
    color: #999;
    font-style: italic;
}

/* --- Search Icons & Controls --- */
.scm-global-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #6c757d;
    pointer-events: none;
    z-index: 2;
}

.scm-global-search-clear {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: #6c757d;
    border: none;
    font-size: 18px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.scm-global-search-clear:hover {
    background: #495057;
    transform: translateY(-50%) scale(1.1);
}

/* --- Loading Spinner --- */
.scm-global-search-loading {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.scm-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #2E86AB;
    border-radius: 50%;
    animation: scm-spin 1s linear infinite;
}

@keyframes scm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Search Results Dropdown --- */
.scm-global-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 15px 15px;
    margin-top: -2px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: scm-slideDown 0.2s ease-out;
}

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

.scm-global-search-results::-webkit-scrollbar {
    width: 6px;
}

.scm-global-search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.scm-global-search-results::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.scm-global-search-results::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* --- Individual Result Items --- */
.scm-global-search-result-item {
    padding: 14px 18px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.scm-global-search-result-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(2px);
}

.scm-global-search-result-item:last-child {
    border-bottom: none;
    border-radius: 0 0 15px 15px;
}

/* PMS Center styling */
.scm-global-search-result-item[data-content-type="pms_center"] {
    border-left: 3px solid #28a745;
}

.scm-global-search-result-item[data-content-type="pms_center"]:hover {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
}

/* Resource result item styling */
.scm-global-search-result-item[data-content-type="resource"] {
    border-left: 3px solid #9b59b6;
}

.scm-global-search-result-item[data-content-type="resource"]:hover {
    background: linear-gradient(135deg, #f4ecf7 0%, #e8d5ef 100%);
}

.scm-global-search-result-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.scm-global-search-result-type.fondamentale { 
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%); 
}

.scm-global-search-result-type.secondaire { 
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%); 
}

.scm-global-search-result-type.fondamentalspecial { 
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%); 
}

.scm-global-search-result-type.secondairespecial { 
    background: linear-gradient(135deg, #F7CB15 0%, #f4c430 100%); 
}

/* PMS Center badge styling */
.scm-global-search-result-type.pms_center { 
    background: linear-gradient(135deg, #28a745 0%, #198754 100%);
    color: white;
}

/* Individual PMS Center colors */
.scm-global-search-result-type.center-woluwe-1 {
    background: linear-gradient(135deg, #D2232A 0%, #B01E24 100%) !important;
    color: white !important;
}

.scm-global-search-result-type.center-woluwe-2 {
    background: linear-gradient(135deg, #F9B41E 0%, #E6A11B 100%) !important;
    color: #212529 !important;
}

.scm-global-search-result-type.center-woluwe-3 {
    background: linear-gradient(135deg, #A044AD 0%, #8E3C98 100%) !important;
    color: white !important;
}

.scm-global-search-result-type.center-etterbeek {
    background: linear-gradient(135deg, #221E8A 0%, #1D1A7A 100%) !important;
    color: white !important;
}

.scm-global-search-result-type.center-ixelles {
    background: linear-gradient(135deg, #199C43 0%, #168A3A 100%) !important;
    color: white !important;
}

.scm-global-search-result-type.center-schaerbeek {
    background: linear-gradient(135deg, #0D84C8 0%, #0B75B3 100%) !important;
    color: white !important;
}

/* Resource badge styling */
.scm-global-search-result-type.resource {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

/* Resource category colors */
.scm-global-search-result-type.resource-orientation {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: white !important;
}

.scm-global-search-result-type.resource-maternelles {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%) !important;
    color: white !important;
}

.scm-global-search-result-type.resource-generale {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%) !important;
    color: white !important;
}

.scm-global-search-result-content {
    flex: 1;
    min-width: 0;
}

.scm-global-search-result-name {
    font-weight: 600;
    color: #2E86AB;
    margin-bottom: 3px;
    font-size: 14px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* PMS Center name styling */
.scm-global-search-result-item[data-content-type="pms_center"] .scm-global-search-result-name {
    color: #28a745;
}

.scm-global-search-result-center,
.scm-global-search-result-info {
    font-size: 12px;
    color: #6c757d;
    font-weight: 400;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scm-global-search-no-results {
    padding: 20px 18px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
}

/* ============================================
   SEARCH OVERLAY STYLES (moved from JS)
   ============================================ */

/* Search Overlay */
.scm-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
    z-index: 999999;
    backdrop-filter: blur(3px);
}

.scm-search-overlay.active {
    display: flex;
    animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Search Box */
.scm-search-box {
    background: white;
    border-radius: 20px;
    padding: 25px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    position: relative;
    animation: searchSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 85vh;
    overflow: visible;
    display: flex;
    flex-direction: column;
    padding-top: 4.8rem;
}

@keyframes searchSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(-40px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* Enhanced Close Button */
.scm-search-overlay-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(119, 108, 108, 0.15);
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10;
    font-weight: bold;
    opacity: 1;
    pointer-events: all;
}

.scm-search-overlay-close:hover {
    background-color: #1A365D;
    color: white;
    transform: scale(1.1);
}

.scm-search-overlay-close:active {
    transform: scale(0.95);
}

/* Close button animation */
@keyframes closeButtonFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scm-search-overlay.active .scm-search-overlay-close {
    animation: closeButtonFadeIn 0.4s ease 0.2s both;
}


.scm-search-overlay-close:hover::after {
    opacity: 1;
}

/* Enhanced overlay search widget styles */
.scm-global-search-widget.scm-style-overlay {
    max-width: 100%;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.scm-global-search-widget.scm-style-overlay .scm-global-search-input {
    font-size: 18px;
    padding: 20px 60px 20px 55px;
    border-width: 2px;
    border-radius: 30px;
}

.scm-global-search-widget.scm-style-overlay .scm-global-search-input:focus {
    box-shadow: 0 8px 25px rgba(46, 134, 171, 0.3);
    transform: none;
}

.scm-global-search-widget.scm-style-overlay .scm-global-search-icon {
    left: 20px;
    font-size: 18px;
}

.scm-global-search-widget.scm-style-overlay .scm-global-search-clear {
    right: 55px;
    width: 28px;
    height: 28px;
    font-size: 20px;
}

.scm-global-search-widget.scm-style-overlay .scm-global-search-loading {
    right: 20px;
}

.scm-global-search-widget.scm-style-overlay .scm-global-search-results {
    border-radius: 15px;
    margin-top: 8px;
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: hidden;
    flex-grow: 1;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Custom scrollbar for overlay results */
.scm-global-search-widget.scm-style-overlay .scm-global-search-results::-webkit-scrollbar {
    width: 8px;
}

.scm-global-search-widget.scm-style-overlay .scm-global-search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.scm-global-search-widget.scm-style-overlay .scm-global-search-results::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.scm-global-search-widget.scm-style-overlay .scm-global-search-results::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Search suggestions */
.scm-search-suggestions {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    flex-shrink: 0;
    margin-top: 15px;
}

.scm-search-suggestions span {
    display: inline-block;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 25px;
    margin: 5px 8px 5px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
    font-size: 13px;
}

.scm-search-suggestions span:hover {
    background: #2E86AB;
    color: white;
    border-color: #2E86AB;
    transform: translateY(-1px);
}

/* Prevent body scroll when overlay is open */
body.scm-search-overlay-open {
    overflow: hidden;
}

/* ============================================
   WIDGET STYLE VARIANTS
   ============================================ */

/* Default Style */
.scm-global-search-widget.scm-style-default {
    max-width: 500px;
}

.scm-global-search-widget.scm-style-default .scm-global-search-input {
    padding: 15px 55px 15px 50px;
    font-size: 16px;
}

/* Compact Style (for sidebars) */
.scm-global-search-widget.scm-style-compact {
    max-width: 300px;
}

.scm-global-search-widget.scm-style-compact .scm-global-search-input {
    padding: 10px 45px 10px 40px;
    font-size: 14px;
    border-radius: 20px;
}

.scm-global-search-widget.scm-style-compact .scm-global-search-icon {
    left: 14px;
    font-size: 14px;
}

.scm-global-search-widget.scm-style-compact .scm-global-search-clear {
    right: 40px;
    width: 20px;
    height: 20px;
    font-size: 16px;
}

.scm-global-search-widget.scm-style-compact .scm-global-search-result-item {
    padding: 10px 14px;
    gap: 10px;
}

.scm-global-search-widget.scm-style-compact .scm-global-search-result-name {
    font-size: 13px;
}

.scm-global-search-widget.scm-style-compact .scm-global-search-result-center {
    font-size: 11px;
}

/* Header Style (for header placement) */
.scm-global-search-widget.scm-style-header {
    max-width: 350px;
}

.scm-global-search-widget.scm-style-header .scm-global-search-input {
    padding: 8px 40px 8px 35px;
    font-size: 14px;
    border-radius: 18px;
    border-width: 1px;
}

.scm-global-search-widget.scm-style-header .scm-global-search-icon {
    left: 12px;
    font-size: 14px;
}

.scm-global-search-widget.scm-style-header .scm-global-search-clear {
    right: 35px;
    width: 18px;
    height: 18px;
    font-size: 14px;
}

.scm-global-search-widget.scm-style-header .scm-global-search-result-item {
    padding: 8px 12px;
    gap: 8px;
}

.scm-global-search-widget.scm-style-header .scm-global-search-result-name {
    font-size: 12px;
}

.scm-global-search-widget.scm-style-header .scm-global-search-result-center {
    font-size: 10px;
}

/* ============================================
   POPUP STYLES (shared with directory)
   ============================================ */

body.scm-global-popup-open {
    overflow: hidden;
}

.scm-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.scm-popup-general-email-container {
    margin-bottom: 20px;
}

.scm-general-email-box {
    background: #e8f5e8;
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.scm-general-email-box h4 {
    color: #28a745;
    margin: 0 0 15px 0;
    font-size: 1.2em;
}

.scm-general-email-box p {
    margin: 0;
    font-size: 1.1em;
}

.scm-general-email-box a:hover {
    color: #1e7e34 !important;
    text-decoration: underline;
}


.scm-popup-overlay.active {
    display: block;
    animation: scm-fadeInOverlay 0.3s ease;
}

@keyframes scm-fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scm-popup-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: 5vh auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: scm-popupAppear 0.3s ease-out;
}

@keyframes scm-popupAppear {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.scm-popup-header {
    background: #1A365D !important;
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
}

.scm-popup-title {
    color: white;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.scm-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    padding: 0;
    line-height: 1;
}

.scm-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.scm-popup-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.scm-popup-school-image {
    text-align: left;
    margin-bottom: 30px;
}

.scm-popup-image {
    max-width: 100% !important;
    height: 300px !important;
    width: auto !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    display: none;
}

.scm-popup-image.has-image {
    display: inline-block;
}

.scm-popup-school-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.scm-popup-address,
.scm-popup-website,
.scm-popup-pms-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.scm-popup-pms-info {
    margin-bottom: 30px;
    background: #e8f5e8;
    border-left: 4px solid #28a745;
}

.scm-popup-address,
.scm-popup-website {
    border-left: 4px solid #2E86AB;
}

.scm-popup-address h4,
.scm-popup-website h4,
.scm-popup-pms-info h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.scm-popup-pms-info h4 { color: #28a745; }
.scm-popup-address h4,
.scm-popup-website h4 { color: #2E86AB; }

.scm-popup-address-text,
.scm-popup-pms-phone {
    margin: 0;
    color: #495057;
    line-height: 1.5;
}

.scm-popup-website-link,
.scm-popup-pms-link,
.scm-popup-pms-phone a {
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.scm-popup-pms-link,
.scm-popup-pms-phone a { color: #28a745; }
.scm-popup-website-link { color: #2E86AB; }

.scm-popup-pms-link:hover,
.scm-popup-pms-phone a:hover,
.scm-popup-website-link:hover {
    text-decoration: underline;
    color: #28a745 !important;
}

.scm-popup-website-link:hover { color: #A23B72; }
.scm-popup-pms-link:hover,
.scm-popup-pms-phone a:hover { color: #218838; }

/* Popup Teacher Styles */
.scm-popup-teachers {
    border-top: 2px solid #e9ecef !important;
    padding-top: 30px !important;
}

.scm-popup-teachers h3 {
    color: #2E86AB !important;
    margin: 0 0 25px 0 !important;
    font-size: 20px !important;
    text-align: center !important;
}

.scm-popup-teachers-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
}

.scm-popup-teacher-card {
    background: #fdfdfd !important;
    border-radius: 15px !important;
    padding: 20px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e9ecef !important;
}

.scm-popup-teacher-card:hover {
    transform: translateY(-5px) !important;
    border-color: #2E86AB !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07) !important;
}

.scm-popup-teacher-photo {
    margin-bottom: 15px !important;
}

.scm-popup-teacher-image {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid white !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.scm-popup-teacher-placeholder {
    width: 80px !important;
    height: 80px !important;
    background: #dee2e6 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 3px solid white !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 60% !important;
}

.scm-popup-teacher-name {
    font-weight: bold !important;
    color: #346ea8 !important;
    margin-bottom: 10px !important;
    font-size: 16px !important;
}

.scm-popup-teacher-specialties {
    margin-bottom: 10px !important;
    min-height: 20px !important;
}

.scm-popup-specialty {
    display: inline-block !important;
    background: #e9ecef !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    margin: 2px !important;
    font-weight: bold !important;
}

.scm-popup-specialty-psychologique {
    background: #d4edda !important;
    color: #155724 !important;
}
.scm-popup-specialty-sociale {
    background: #d1ecf1 !important;
    color: #0c5460 !important;
}
.scm-popup-specialty-logopedique {
    background: #fce4ec !important;
    color: #880e4f !important;
}
.scm-popup-specialty-sante {
    background: #fff3cd !important;
    color: #856404 !important;
}
.scm-popup-specialty-maternelles {
    background: #e2e3e5 !important;
    color: #383d41 !important;
}

.scm-popup-teacher-email {
    font-size: 13px !important;
    color: #6c757d !important;
    word-break: break-all !important;
    display: block !important;
}

.scm-popup-teacher-email a {
    color: #2E86AB !important;
    text-decoration: none !important;
}

.scm-popup-teacher-email a:hover {
    text-decoration: underline !important;
}

.scm-popup-no-teachers {
    text-align: center !important;
    color: #6c757d !important;
    font-style: italic !important;
    padding: 40px 20px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
}


/* Amarrage Section Styles for Global Search Popup */
.scm-popup-amarrage-section {
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.scm-amarrage-highlight-box {
    background: #003399;
    color: white;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.scm-amarrage-highlight-box::after {
    content: "★";
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 16px;
    color: #FFCC00;
    opacity: 0.5;
}

.scm-amarrage-text {
    margin: 0 0 15px 0;
    font-size: 1em;
    line-height: 1.5;
}

.scm-amarrage-team {
    margin: 0 0 20px 0;
    font-size: 1.1em;
    color: #FFCC00;
}

.scm-amarrage-logo {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.scm-amarrages-logo-img {
    max-width: 180px;
    height: auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   MOBILE RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .scm-global-search-widget {
        width: 100%;
    }
    
    .scm-global-search-input {
        padding: 12px 45px 12px 40px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .scm-global-search-icon {
        left: 14px;
        font-size: 16px;
    }
    
    .scm-global-search-clear {
        right: 40px;
        width: 22px;
        height: 22px;
        font-size: 16px;
    }
    
    .scm-global-search-results {
        max-height: 300px;
    }
    
    .scm-global-search-result-item {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .scm-global-search-result-name {
        font-size: 13px;
    }
    
    .scm-global-search-result-center {
        font-size: 11px;
    }

    /* Overlay mobile styles */
    .scm-search-overlay {
        padding-top: 30px;
    }
    
    .scm-search-box {
        width: 95%;
        padding: 20px;
        border-radius: 15px;
        max-height: 85vh;
        padding-top: 4.8rem;
    }
    
    .scm-global-search-widget.scm-style-overlay .scm-global-search-input {
        font-size: 16px;
        padding: 16px 50px 16px 45px;
    }
    
    .scm-search-suggestions span {
        padding: 6px 12px;
        font-size: 12px;
        margin: 3px 5px 3px 0;
    }

    .scm-search-overlay-close {
        top: 10px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 20px;
        background: rgba(0, 0, 0, 0.15);
    }

    .scm-search-overlay-close::after {
        display: none;
    }
    
    /* Popup mobile adjustments */
    .scm-popup-content {
        width: 95%;
        margin: 2.5vh auto;
        max-height: 95vh;
    }
    
    .scm-popup-header {
        padding: 15px 20px;
    }
    
    .scm-popup-title {
        font-size: 20px;
    }
    
    .scm-popup-body {
        padding: 20px;
    }
    
    .scm-popup-school-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .scm-popup-teachers-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .scm-global-search-input {
        padding: 10px 40px 10px 35px;
        font-size: 16px;
        border-radius: 20px;
    }
    
    .scm-global-search-icon {
        left: 12px;
        font-size: 14px;
    }
    
    .scm-global-search-clear {
        right: 35px;
        width: 20px;
        height: 20px;
        font-size: 14px;
    }
    
    .scm-global-search-result-item {
        padding: 10px 12px;
        gap: 8px;
    }

    /* Overlay mobile styles */
    .scm-search-box {
        width: 98%;
        padding: 15px;
        padding-top: 4.8rem;
    }
    
    .scm-search-overlay-close {
        top: 8px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    /* Popup mobile styles */
    .scm-popup-header {
        padding: 12px 15px;
    }
    
    .scm-popup-body {
        padding: 15px;
    }
}