/* Modal Styles */ .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); backdrop-filter: blur(5px); margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; } .modal-content { background-color: white; margin: 2.5% auto; padding: 0; border-radius: 20px; width: 90%; max-width: 700px; max-height: 80vh; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.25); animation: modalSlideIn 0.3s ease-out; } @keyframes modalSlideIn { from { opacity: 0; transform: translateY(-50px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } } .modal-header { background: linear-gradient(135deg, #3498db, #2980b9); color: white; padding: 30px; text-align: center; position: relative; } .modal-school-logo { width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; overflow: hidden; border: 4px solid rgba(255,255,255,0.3); } .modal-school-logo img { width: 100%; height: 100%; object-fit: cover; } .modal-school-logo-placeholder { color: white; font-size: 2.5rem; font-weight: bold; } .modal-school-name { font-size: 1.8rem; font-weight: 600; margin: 0; } .modal-close { position: absolute; right: 20px; top: 20px; color: white; font-size: 28px; font-weight: bold; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; } .modal-close:hover { background: rgba(255,255,255,0.2); } .modal-body { padding: 40px; overflow-y: auto; max-height: 50vh; } .impact-story { font-size: 1.1rem; line-height: 1.8; color: #444; } @media (max-width: 768px) { .header h1 { font-size: 2rem; } .schools-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; padding: 20px; } .search-container { flex-direction: column; align-items: stretch; } .search-box { min-width: auto; } .modal-content { margin: 10% auto; width: 95%; } .modal-body { padding: 30px 25px; } }