/* ===== Page Wrapper ===== */
.center-page {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ===== Header ===== */
.center-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    background: #ffffff;
    padding: 2rem;
    border-radius: 18px;
    margin-bottom: 2rem;

    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

/* Logo */
.center-logo img {
    width: 130px;
    height: 130px;
    object-fit: cover;

    border-radius: 50%;
    border: 5px solid #f1f3f6;

    margin-bottom: 1rem;
}

/* Title */
.center-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

.center-map {
    margin-bottom: 2rem;
}

#map {
    height: 400px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.center-details > div {
    background: #ffffff;
    padding: 1.8rem;
    border-radius: 18px;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.center-details h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #0f172a;
}

.subject-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.subject-tag {
    background: #eef2ff;
    color: #3730a3;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}

.center-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.center-contact li {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.center-contact a {
    color: #2563eb;
    text-decoration: none;
}

.center-contact a:hover {
    text-decoration: underline;
}

.courses-section {
    margin-top: 3rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Base */
.status {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Pending */
.status-pending {
    background-color: #fff4e5;
    color: #b26a00;
    border: 1px solid #ffd8a8;
}

/* Active */
.status-active {
    background-color: #e6f4ea;
    color: #1e7e34;
    border: 1px solid #b7e4c7;
}

/* Inactive */
.status-inactive {
    background-color: #fbeaea;
    color: #b02a37;
    border: 1px solid #f5c2c7;
}

.btn-primary {
    background-color: #1e7e34;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
    display: inline-block;
}

.btn-secondary {
    background: #f1f5f9;
    color: #1e293b;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.course-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.course-actions a {
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #2563eb;
    transition: 0.2s ease;
}

.course-actions a:hover {
    text-decoration: underline;
}

.course-actions a.danger {
    color: #dc2626;
}

@media (max-width: 768px) {

    .center-page {
        margin: 1rem auto;
        padding: 0 0.8rem;
    }

    .center-header {
        padding: 1.5rem;
    }

    .center-logo img {
        width: 100px;
        height: 100px;
    }

    .center-info h2 {
        font-size: 1.5rem;
    }

    .section-header {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

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

    .course-card {
        padding: 1.2rem;
    }

    .course-actions {
        justify-content: space-between;
    }
}