/* ------------------------------
   GLOBAL PAGE WRAPPER
------------------------------ */
.schools-listing {
    max-width: 1290px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Page Title */
.schools-listing h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
}

/* ------------------------------
   FILTER FORM STYLES
------------------------------ */
.school-filter-form {
    background: #f4f6f9;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 35px;
}

.school-filter-form input,
.school-filter-form select {
    padding: 0px 16px;
    border: 1px solid #d6d6d6;
    border-radius: 3px;
    font-size: 15px;
    width: 230px;
    background: #fff;
}

.school-filter-form button {
    padding: 12px 25px;
    background: #0057d2;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.25s ease;
}

.school-filter-form button:hover {
    background: #003c9e;
}

/* ------------------------------
   SCHOOL GRID
------------------------------ */
.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

/* ------------------------------
   SCHOOL CARD
------------------------------ */
.school-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    text-decoration: none !important;
    color: #222 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    border: 1px solid #e5e5e5;
    transition: 0.25s ease;
}

.school-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.school-card img {
    width: 100%;
    height: 130px;
    object-fit: contain;
    margin-bottom: 15px;
}

.school-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #111;
}

.school-card .verified-tag {
    color: #00aa3a;
    font-weight: 600;
}

/* Sports text */
.school-card p {
    margin: 5px 0;
    font-size: 15px;
}

/* ------------------------------
   PAGINATION
------------------------------ */
.pagination a,
.pagination span {
    padding: 8px 12px;
    margin: 3px;
    border-radius: 6px;
    text-decoration: none;
    background: #f0f0f0;
    color: #333;
}

.pagination .current {
    background: #0057d2;
    color: #fff;
}



/* Single Page CSS */

/* ========================================
   SCHOOL PROFILE PAGE CSS
   ======================================== */

/* Container */
.school-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ========================================
   HEADER SECTION
   ======================================== */

.school-header {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.school-banner {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.school-header-flex {
    display: flex;
    align-items: flex-start;
    padding: 30px;
    gap: 25px;
    position: relative;
    flex-wrap: wrap;
}

.school-logo {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: -60px;
    background: #fff;
}

.school-main-info {
    flex: 1;
    min-width: 250px;
}

.school-main-info h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.verified-label {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.school-location {
    font-size: 16px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.school-location:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url(/wp-content/uploads/2026/01/location.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 6px;
    vertical-align: middle;
}

/* ========================================
   FOLLOW BOX
   ======================================== */

.school-follow-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin-left: auto;
}

.follow-btn,
.login-follow {
    padding: 10px 24px;
    border: 1px solid #3baeda;
    background: #fff;
    color: #3baeda;
    border-radius: 3px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.follow-btn:hover,
.login-follow:hover {
    background: #3baeda;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.follow-btn.following {
    background: #3baeda;
    color: #fff;
	border: 1px solid #3baeda;
	border-radius: 3px;
}

.follow-btn.following:hover {
    background: #fff;
    border-color: #3baeda;
	color: #3baeda;
}

.follow-count-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.follow-count-text span {
    color: #0073aa;
    font-weight: 700;
}

.edit-school-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: linear-gradient(180deg, var(--e-global-color-primary) 0%, var(--e-global-color-secondary) 100%);
    color: #fff !important;
	border: 1px solid var(--e-global-color-primary);
    border-radius: 3px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.edit-school-btn:hover {
    background: linear-gradient(0deg, var(--e-global-color-primary) 0%, var(--e-global-color-secondary) 100%);
	border: 1px solid var(--e-global-color-primary);
	color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

/* ========================================
   INFO BOX
   ======================================== */

.school-info-box {
    background: #f8f9fa;
    border-left: 4px solid #1d2379;
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.school-info-box p {
    margin: 8px 0;
    font-size: 15px;
    color: #333;
}

.school-info-box strong {
    color: #1d2379;
    font-weight: 600;
    margin-right: 8px;
}

/* ========================================
   SECTIONS
   ======================================== */

.sports-section,
.staff-section,
.culture-section,
.jobs-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.sports-section h2,
.staff-section h2,
.culture-section h2,
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #1d2379;
}

/* ========================================
   SPORTS LIST
   ======================================== */

.sports-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.sports-list li {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sports-list li:hover {
    background: linear-gradient(135deg, #667eeabf 0%, #764ba215 100%);
    border-left-color: #1d2379;
    transform: translateX(5px);
}

.sport-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.sports-list strong {
    color: #1a1a1a;
    font-size: 16px;
}

/* ========================================
   STAFF GRID
   ======================================== */

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.staff-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.staff-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.staff-card strong {
    display: block;
    color: #1a1a1a;
    font-size: 16px;
    margin-bottom: 5px;
}

.staff-card small {
    color: #666;
    font-size: 14px;
}

/* ========================================
   CULTURE SECTION
   ======================================== */

.culture-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1d2379;
}

/* ========================================
   JOBS SECTION
   ======================================== */

.no-jobs {
    text-align: center;
    color: #666;
    font-size: 16px;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.job-card-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    flex-wrap: wrap;
    gap: 15px;
}

.job-card:hover {
    background: #e9ecef;
    border-left-color: #0073aa;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.job-card-left {
    flex: 1;
    min-width: 250px;
}

.job-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.job-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.job-title a:hover {
    color: #0073aa;
}

.job-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.job-meta-item {
    font-size: 14px;
    color: #666;
}

.job-card-right {
    display: flex;
    align-items: center;
}

.apply-btn {
    padding: 10px 24px;
    background: #3baeda;
    color: #fff !important;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.apply-btn:hover {
    background: #fff;
	color: #3baeda !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

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

@media (max-width: 768px) {
    .school-container {
        padding: 15px;
    }

    .school-header-flex {
        flex-direction: column;
        padding: 20px;
    }

    .school-logo {
        width: 100px;
        height: 100px;
        margin-top: -50px;
    }

    .school-main-info h1 {
        font-size: 24px;
    }

    .school-follow-box {
        width: 100%;
        align-items: stretch;
    }

    .follow-btn,
    .login-follow,
    .edit-school-btn {
        width: 100%;
        text-align: center;
    }

    .sports-list {
        grid-template-columns: 1fr;
    }

    .staff-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .job-card {
        flex-direction: column;
        align-items: stretch;
    }

    .job-card-right {
        width: 100%;
    }

    .apply-btn {
        width: 100%;
        justify-content: center;
    }

    .sports-section,
    .staff-section,
    .culture-section,
    .jobs-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .school-main-info h1 {
        font-size: 20px;
    }

    .sports-section h2,
    .staff-section h2,
    .culture-section h2,
    .section-title {
        font-size: 20px;
    }

    .staff-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

.school-container > * {
    animation: fadeIn 0.5s ease-out;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .follow-btn,
    .login-follow,
    .edit-school-btn,
    .apply-btn {
        display: none;
    }

    .school-container {
        max-width: 100%;
    }

    .school-header,
    .sports-section,
    .staff-section,
    .culture-section,
    .jobs-section {
        box-shadow: none;
        page-break-inside: avoid;
    }
}


/* ===============================
   Schools Archive Pagination
   =============================== */

.pagination {
    margin: 50px 0 20px;
    display: flex;
    justify-content: center;
}

.pagination ul {
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Page items */
.pagination li {
    display: inline-flex;
}

/* Links */
.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    background: #fff;
    color: #333;
    transition: all 0.2s ease;
}

/* Hover */
.pagination a:hover {
    background: #3baeda;
    color: #fff;
	border-radius: 3px;
}

/* Current page */
.pagination .current {
    background: #3baeda;
    color: #fff;
	border-radius: 3px;
    font-weight: 600;
    cursor: default;
}

/* Prev / Next buttons */
.pagination .prev,
.pagination .next {
    padding: 0 18px;
    font-weight: 600;
}

/* Disabled (if ever) */
.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 10px;
    }
}

/* ========================================
   MOBILE AND TABLET FIXES (added)
   ======================================== */

.school-container, .schools-listing { box-sizing: border-box; width: 100%; }
.school-container img, .schools-listing img { max-width: 100%; }
.school-main-info, .job-card-left { min-width: 0; }

/* Tablet */
@media (max-width: 1024px) {
    .school-dashboard-wrapper { flex-direction: column !important; gap: 18px !important; }
    .dashboard-sidebar, .dashboard-content { width: 100% !important; box-sizing: border-box; }
    .dashboard-sidebar ul { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; }
    .dashboard-sidebar li { margin: 0 !important; }
}

/* Phone */
@media (max-width: 768px) {
    .schools-listing { padding: 18px 14px; }
    .schools-listing h1 { font-size: 24px; margin-bottom: 16px; }

    /* Directory filter */
    .school-filter-form { flex-direction: column; padding: 14px; gap: 10px; }
    .school-filter-form input,
    .school-filter-form select { width: 100% !important; min-height: 44px; font-size: 16px; box-sizing: border-box; }
    .school-filter-form button { width: 100%; min-height: 46px; }

    /* Grid: single column */
    .schools-grid { grid-template-columns: 1fr; gap: 16px; }

    /* Single school header */
    .school-banner { height: 140px; }
    .school-header-flex { padding: 16px; gap: 14px; align-items: center; }
    .school-logo { margin-top: -50px; }
    .school-main-info { width: 100%; flex: 1 1 100%; text-align: center; }
    .school-location, .school-info-box { justify-content: center; text-align: center; }

    /* Jobs list */
    .job-card { padding: 16px; }
    .job-card-left { flex: 1 1 100%; }
    .job-title { font-size: 18px; }
    .job-meta { gap: 8px 14px; }

    /* Forms (add/edit school, staff, sports) */
    .row-form { display: block !important; }
    .col-form { width: 100% !important; max-width: 100% !important; margin-bottom: 12px; }
    .school-container input[type="text"],
    .school-container input[type="email"],
    .school-container input[type="url"],
    .school-container input[type="number"],
    .school-container select,
    .school-container textarea { width: 100% !important; max-width: 100%; min-height: 44px; font-size: 16px; box-sizing: border-box; }

    /* Dashboard */
    .dashboard-sidebar { padding: 14px; }
    .dashboard-sidebar ul { flex-direction: column; }
    .dashboard-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
    .school-banner { height: 110px; }
    .school-logo { width: 84px; height: 84px; margin-top: -42px; }
    .school-main-info h1 { font-size: 20px; }
    .staff-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .staff-photo { max-width: 100%; }
}