/* Our Schools Page Styles */

/* Scroll Animations for Our Schools Page */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Animation Classes - Initial State */
.our-schools-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.our-schools-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.our-schools-subtitle {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.2s;
}

.our-schools-subtitle.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.search-controls {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.4s;
}

.search-controls.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-group {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.dropdown-group.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.action-buttons {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.action-buttons.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.map-container {
    opacity: 0;
    transform: scale(0.95);
    transition: all 1s ease-out;
}

.map-container.animate-in {
    opacity: 1;
    transform: scale(1);
}

.school-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.school-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.results-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.results-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Animation Adjustments */
@media (max-width: 768px) {
    .our-schools-title, .our-schools-subtitle, .search-controls, .results-section {
        transition-duration: 0.6s;
    }
    
    .dropdown-group, .action-buttons, .school-card {
        transition-duration: 0.4s;
    }
}

@media (max-width: 480px) {
    .our-schools-title, .our-schools-subtitle, .search-controls, .results-section {
        transition-duration: 0.5s;
    }
    
    .dropdown-group, .action-buttons, .school-card {
        transition-duration: 0.3s;
    }
}

/* Main Section */
.our-schools-section {
    padding: 120px 0 80px 0;
    background: linear-gradient(135deg, #faf1e2 0%, #f5e6d3 100%);
    min-height: 100vh;
    position: relative;
}

.our-schools-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(20,72,53,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.6;
    pointer-events: none;
}

.our-schools-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Header */
.our-schools-header {
    text-align: center;
    margin-bottom: 4rem;
}

.our-schools-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #144835;
    margin-bottom: 1.5rem;
    font-family: 'Jost', sans-serif;
    line-height: 1.2;
}

.our-schools-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #144835, #a2c144);
    margin: 1rem auto 0 auto;
    border-radius: 2px;
}

.our-schools-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: 'Jost', sans-serif;
}

/* Search Controls */
.search-controls {
    margin-bottom: 3rem;
}

.search-controls-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.dropdown-group {
    flex: 1;
}

.dropdown-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #144835;
    margin-bottom: 0.5rem;
    font-family: 'Jost', sans-serif;
}

.dropdown-select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Jost', sans-serif;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropdown-select:focus {
    outline: none;
    border-color: #a2c144;
    box-shadow: 0 0 0 3px rgba(162, 193, 68, 0.1);
}

.dropdown-select:hover {
    border-color: #a2c144;
}

/* Action Buttons */
.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Jost', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 150px;
    justify-content: center;
}

.clear-btn {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.clear-btn:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.3);
}

.map-btn {
    background: linear-gradient(135deg, #144835 0%, #1a5a3f 100%);
    color: white;
  }
  
.map-btn:hover {
    background: linear-gradient(135deg, #a2c144 0%, #8fb03a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 72, 53, 0.3);
}

.action-btn i {
    font-size: 1.1rem;
}

/* Results Section */
.results-section {
    margin-top: 2rem;
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* School Cards */
.school-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.school-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(20, 72, 53, 0.15);
}

.school-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.school-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.school-card:hover .school-image img {
    transform: scale(1.05);
}

.school-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 1;
    transition: all 0.3s ease;
}

.school-card:hover .school-overlay {
    transform: scale(1.05);
}

.school-card .directions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(162, 193, 68, 0.95);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    font-weight: 600;
    font-family: 'Jost', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.school-card .directions-btn span {
    display: none;
}

.school-card .directions-btn:hover {
    background: rgba(143, 176, 58, 0.95);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.school-card .directions-btn i {
    font-size: 1.5rem;
}

.school-content {
    padding: 2rem;
}

.school-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #144835;
    margin-bottom: 1rem;
    font-family: 'Jost', sans-serif;
    line-height: 1.3;
}

.school-address {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-family: 'Jost', sans-serif;
}

.school-actions {
    display: flex;
    gap: 1rem;
}

.website-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #144835 0%, #1a5a3f 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-family: 'Jost', sans-serif;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.website-btn:hover {
    background: linear-gradient(135deg, #a2c144 0%, #8fb03a 100%);
    transform: translateY(-2px);
}

.website-btn i {
    font-size: 1rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .our-schools-section {
        padding: 100px 0 40px 0;
        background: linear-gradient(135deg, #faf1e2 0%, #f5e6d3 100%);
    }
    
    .our-schools-container {
        padding: 0 15px;
    }
    
    .our-schools-header {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .our-schools-title {
        font-size: clamp(2rem, 7vw, 2.8rem);
        margin-bottom: 15px;
        line-height: 1.2;
        text-align: center;
    }
    
    .our-schools-subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem);
        margin-bottom: 30px;
        text-align: center;
        line-height: 1.5;
        padding: 0 10px;
    }
    
    .search-controls-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 15px;
        margin: 0;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .dropdown-group {
        margin-bottom: 0;
    }
    
    .dropdown-label {
        font-size: 14px;
        margin-bottom: 8px;
        font-weight: 600;
        color: #144835;
    }
    
    .dropdown-select {
        padding: 12px 15px;
        font-size: 14px;
        border-radius: 10px;
        border: 2px solid #e5e7eb;
        background: white;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
        align-items: center;
    }
    
    .action-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 200px;
    width: 100%;
        max-width: 280px;
        border-radius: 10px;
        font-weight: 600;
    }
    
    /* Map Mobile Styles */
    .map-container {
        margin: 20px auto 0 auto;
        padding: 0;
    }
    
    .map-wrapper {
        height: 350px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .zoom-instructions {
        bottom: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 6px;
    }
    
    .schools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 25px;
    }
    
    .school-card {
        margin-bottom: 0;
        border-radius: 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        background: white;
    }
    
    .school-image {
        height: 180px;
    }
    
    .school-content {
        padding: 20px;
    }
    
    .school-title {
        font-size: 18px;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .school-address {
        font-size: 14px;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .school-actions {
        margin-top: 15px;
    }
    
    .website-btn {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 8px;
        width: 100%;
    text-align: center;
    }
    
    .school-card .directions-btn {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }
    
    .school-card .directions-btn i {
        font-size: 18px;
    }
    
    .school-overlay {
        top: 10px;
        right: 10px;
    }
    
    /* No Results Mobile */
    .no-results {
        padding: 40px 20px;
        margin: 20px 0;
        border-radius: 15px;
    }
    
    .no-results i {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .no-results h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .no-results p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

@media screen and (max-width: 480px) {
    .our-schools-section {
        padding: 80px 0 40px 0;
    }
    
    .our-schools-container {
        padding: 0 0.5rem;
    }
    
    .our-schools-header {
        margin-bottom: 2rem;
    }
    
    .our-schools-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    
    .our-schools-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }
    
    .search-controls-container {
        padding: 1rem;
        margin: 0 0.5rem;
        border-radius: 16px;
    }
    
    .dropdown-select {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .schools-grid {
        gap: 1rem;
    }
    
    .school-image {
        height: 180px;
    }
    
    .school-content {
        padding: 1.2rem;
    }
    
    .school-title {
    font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .school-address {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .action-buttons {
    flex-direction: column;
    align-items: center;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }
    
    .action-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        min-width: 200px;
    width: 100%;
        max-width: 250px;
    }
    
    .website-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .directions-btn {
        width: 45px;
        height: 45px;
    }
    
    .directions-btn i {
    font-size: 1.3rem;
    }
    
    .school-overlay {
        top: 0.8rem;
        right: 0.8rem;
    }
    
    /* Enhanced Mobile Styles for 480px */
    .our-schools-section {
        padding: 90px 0 30px 0;
        background: linear-gradient(135deg, #faf1e2 0%, #f5e6d3 100%);
    }
    
    .our-schools-container {
        padding: 0 10px;
    }
    
    .our-schools-header {
        margin-bottom: 25px;
        text-align: center;
    }
    
    .our-schools-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 12px;
        line-height: 1.2;
        text-align: center;
    }
    
    .our-schools-subtitle {
        font-size: clamp(0.9rem, 5vw, 1.2rem);
        margin-bottom: 25px;
    text-align: center;
        line-height: 1.4;
        padding: 0 5px;
    }
    
    .search-controls-container {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px 12px;
        margin: 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    }
    
    .dropdown-label {
        font-size: 13px;
        margin-bottom: 6px;
        font-weight: 600;
        color: #144835;
    }
    
    .dropdown-select {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 8px;
        border: 2px solid #e5e7eb;
        background: white;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
  align-items: center;
    }
    
    .action-btn {
        padding: 10px 18px;
        font-size: 13px;
        min-width: 180px;
        width: 100%;
        max-width: 250px;
        border-radius: 8px;
        font-weight: 600;
    }
    
    /* Map Mobile Styles */
    .map-container {
        margin: 15px auto 0 auto;
    padding: 0;
  }
    
    .map-wrapper {
        height: 300px;
        border-radius: 10px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    }
    
    .zoom-instructions {
        bottom: 8px;
        right: 8px;
        padding: 5px 8px;
        font-size: 11px;
        border-radius: 5px;
    }
    
    .schools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
    }
    
    .school-card {
        margin-bottom: 0;
        border-radius: 12px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        background: white;
    }
    
    .school-image {
        height: 160px;
    }
    
    .school-content {
        padding: 15px;
    }
    
    .school-title {
        font-size: 16px;
    margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .school-address {
        font-size: 13px;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .school-actions {
        margin-top: 12px;
    }
    
    .website-btn {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 6px;
        width: 100%;
        text-align: center;
    }
    
    .school-card .directions-btn {
        width: 35px;
        height: 35px;
        top: 8px;
        right: 8px;
    }
    
    .school-card .directions-btn i {
        font-size: 16px;
    }
    
    .school-overlay {
        top: 8px;
        right: 8px;
    }
    
    /* No Results Mobile */
    .no-results {
        padding: 30px 15px;
        margin: 15px 0;
        border-radius: 12px;
    }
    
    .no-results i {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .no-results h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .no-results p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

/* No Results Message */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.no-results i {
    font-size: 3rem;
    color: #a2c144;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #144835;
    margin-bottom: 0.5rem;
    font-family: 'Jost', sans-serif;
}

.no-results p {
    color: #666;
    font-size: 1rem;
    font-family: 'Jost', sans-serif;
}

/* Map View Styles */
.map-container {
    width: 100%;
    max-width: 100%;
    margin: 2rem auto 0 auto;
    padding: 0;
}

.map-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #144835;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Jost', sans-serif;
}

.map-content {
    display: block;
    width: 100%;
}

.map-wrapper {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
}

.map-display {
    width: 100%;
    height: 100%;
}

.zoom-instructions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #666;
    font-family: 'Jost', sans-serif;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}