/* =========================================================
   Tema CMS-Sekolahku (Blue Sky Theme)
   Untuk sekolah-vue
   ========================================================= */

:root {
    --cms-primary: #0d6efd;
    --cms-primary-dark: #0a58ca;
    --cms-secondary: #0c2444;
    --cms-navy: #0a192f;
    --cms-navy-dark: #061120;
    --cms-accent: #ffb703;
    --cms-light-bg: #f4f7fb;
    --cms-card-bg: #ffffff;
    --cms-border: #e2e8f0;
    --cms-text-dark: #1e293b;
    --cms-text-muted: #64748b;
}

body {
    background-color: var(--cms-light-bg) !important;
    color: var(--cms-text-dark);
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
}

.achievement-toolbar {
    display: flex;
    justify-content: flex-start;
    margin: 0 0 24px;
}

.achievement-filter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 18px;
    border: 4px solid #a8d3ff;
    border-radius: 999px;
    background: #167ab7;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.16);
}

.achievement-filter select {
    max-width: 210px;
    border: 0;
    outline: 0;
    appearance: none;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.achievement-filter select option {
    color: var(--cms-text-dark);
}

.achievement-grid {
    margin-right: 0;
    margin-left: 0;
}

.achievement-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: calc(100% - 20px);
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.13);
}

.achievement-visual {
    position: relative;
    display: flex;
    width: 100%;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px;
    flex: 0 0 200px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.94);
}

.achievement-visual::before,
.achievement-visual::after {
    position: absolute;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    content: "";
}

.achievement-visual::before {
    transform: translate(-34px, 26px);
}

.achievement-visual::after {
    width: 270px;
    height: 270px;
    transform: translate(32px, -20px);
}

.achievement-visual--academic {
    background: linear-gradient(135deg, #397b9f, #243d62);
}

.achievement-visual--non-academic {
    background: linear-gradient(135deg, #4c8390, #244d68);
}

.achievement-avatar {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.18), transparent 52%);
    color: rgba(255, 255, 255, 0.88);
}

.achievement-avatar-icon {
    display: flex;
    width: 76px;
    height: 76px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(12, 36, 68, 0.22);
    box-shadow: 0 6px 18px rgba(12, 36, 68, 0.18);
}

.achievement-avatar-icon i {
    font-size: 2.4rem;
}

.achievement-avatar-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.achievement-visual > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    height: 100% !important;
    min-height: 0;
    max-height: 100%;
    object-fit: cover !important;
    object-position: center;
}

.achievement-visual > i {
    z-index: 1;
    font-size: 5rem;
    opacity: 0.92;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.achievement-category {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(12, 36, 68, 0.78);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 12px rgba(12, 36, 68, 0.24);
    backdrop-filter: blur(6px);
}

.achievement-category i {
    color: #ffd166;
}

.achievement-award {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #1477b5;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(12, 36, 68, 0.2);
}

.achievement-content {
    position: relative;
    z-index: 3;
    display: block;
    flex: 1 1 auto;
    margin-top: 20px;
    padding: 18px 22px 20px;
    background: #ffffff;
    color: var(--cms-text-dark);
    visibility: visible;
    opacity: 1;
}

.achievement-level {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #eaf2f7;
    color: #176da4;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.achievement-details {
    display: grid;
    gap: 11px;
}

.achievement-detail {
    display: grid;
    grid-template-columns: 18px 54px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    color: var(--cms-text-dark);
    font-size: 0.9rem;
    line-height: 1.4;
}

.achievement-detail > i {
    padding-top: 2px;
    color: #167ab7;
    text-align: center;
}

.achievement-detail-label {
    color: var(--cms-text-muted);
    font-size: 0.82rem;
}

.achievement-detail strong {
    min-width: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.achievement-empty {
    padding: 60px 20px;
    border: 1px dashed var(--cms-border);
    border-radius: 16px;
    background: #ffffff;
    color: var(--cms-text-muted);
    text-align: center;
}

.achievement-empty > i {
    margin-bottom: 14px;
    color: #9aaabd;
    font-size: 2.6rem;
}

.achievement-empty h2 {
    color: var(--cms-text-dark);
    font-size: 1.2rem;
    font-weight: 700;
}

.achievement-empty p {
    margin-bottom: 0;
}

/* ================= Top Bar ================= */
.cms-topbar {
    background-color: var(--cms-secondary);
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cms-topbar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cms-topbar a:hover {
    color: #ffffff;
}

.cms-topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    margin-left: 6px;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.cms-topbar-social a:hover {
    background: var(--cms-primary);
    transform: translateY(-2px);
}

/* ================= Brand Header ================= */
.cms-brand-header {
    background: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid var(--cms-border);
}

.cms-logo-wrap {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.cms-logo-icon {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, var(--cms-primary), var(--cms-secondary));
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
    flex-shrink: 0;
}

.cms-logo-icon.cms-logo-img-wrap {
    width: 62px;
    height: 62px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.cms-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.cms-school-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--cms-secondary);
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.cms-school-tagline {
    font-size: 0.82rem;
    color: var(--cms-text-muted);
    margin: 3px 0 0 0;
}

.cms-school-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* ================= Navbar Utama ================= */
.cms-header-wrapper {
    display: contents;
}

.cms-navbar {
    background: linear-gradient(90deg, #0b5ed7 0%, #004085 100%) !important;
    padding: 0;
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.25);
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0;
    z-index: 1050;
}

.cms-navbar .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 14px 16px !important;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.cms-navbar .nav-link:hover,
.cms-navbar .nav-link.router-link-exact-active,
.cms-navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    border-bottom: 3px solid var(--cms-accent);
}

.cms-navbar .dropdown-menu {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    animation: fadeInMenu 0.2s ease;
}

.cms-navbar .dropdown-item {
    padding: 8px 18px;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--cms-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.cms-navbar .dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--cms-primary);
    padding-left: 22px;
}

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

/* ================= Sekilas Info Ticker ================= */
.cms-ticker-wrap {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid var(--cms-border);
    overflow: hidden;
    height: 42px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.cms-ticker-title {
    background: #dc3545;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
    padding-right: 24px;
}

.cms-ticker-content {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    padding-left: 10px;
}

.cms-ticker-marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
    font-size: 0.88rem;
    color: var(--cms-text-dark);
}

.cms-ticker-marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* ================= Breadcrumb & Sub-Header ================= */
.cms-page-header {
    background: linear-gradient(135deg, #0b5ed7 0%, #004085 100%);
    color: #ffffff;
    padding: 30px 0;
    margin-bottom: 0;
}

.cms-page-header h1 {
    font-weight: 700;
    font-size: 1.85rem;
    margin-bottom: 6px;
}

.cms-page-header p {
    margin-bottom: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.breadcrumb {
    background-color: #ffffff !important;
    border: 1px solid var(--cms-border) !important;
    border-radius: 6px !important;
    padding: 10px 16px !important;
    margin-bottom: 24px !important;
    font-size: 0.88rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.breadcrumb a {
    color: var(--cms-primary) !important;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--cms-text-muted) !important;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--cms-text-muted) !important;
    content: "›" !important;
    font-size: 1.1rem;
    line-height: 1;
}

/* ================= Judul Bagian (Section Header) ================= */
.cms-section-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 22px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--cms-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.cms-section-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--cms-primary);
}

/* ================= Cards Style Khas CMS ================= */
.cms-card {
    background: #ffffff;
    border: 1px solid var(--cms-border);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    overflow: hidden;
}

.cms-card:hover {
    box-shadow: 0 8px 18px rgba(11, 94, 215, 0.1);
    transform: translateY(-3px);
    border-color: #cbd5e1;
}

.cms-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #e2e8f0;
}

.cms-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cms-card:hover .cms-card-img-wrap img {
    transform: scale(1.05);
}

.cms-card-date-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(12, 36, 68, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 3px 9px;
    border-radius: 4px;
    font-weight: 500;
}

.cms-card-body {
    padding: 16px;
}

.cms-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
}

.cms-card-title a {
    color: var(--cms-text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cms-card-title a:hover {
    color: var(--cms-primary);
}

/* ================= Agenda Box Kalender ================= */
.cms-agenda-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--cms-border);
    border-radius: 8px;
    margin-bottom: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.cms-agenda-item:hover {
    border-color: var(--cms-primary);
    transform: translateX(3px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.1);
}

.cms-agenda-calendar {
    width: 58px;
    height: 64px;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    text-align: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.cms-agenda-month {
    background: var(--cms-primary);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 0;
    text-transform: uppercase;
}

.cms-agenda-day {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--cms-secondary);
    line-height: 1.5;
}

.cms-agenda-info {
    flex-grow: 1;
}

.cms-agenda-info h6 {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--cms-text-dark);
}

.cms-agenda-meta {
    font-size: 0.8rem;
    color: var(--cms-text-muted);
}

/* ================= Sambutan Kepala Sekolah Card ================= */
.cms-principal-card {
    background: #ffffff;
    border: 1px solid var(--cms-border);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    padding: 20px;
    margin-bottom: 24px;
    border-top: 4px solid var(--cms-primary);
}

.cms-principal-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #bfdbfe;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto 12px;
    display: block;
}

.cms-principal-quote {
    font-style: italic;
    font-size: 0.88rem;
    color: var(--cms-text-dark);
    margin-bottom: 12px;
    line-height: 1.5;
    position: relative;
    padding-left: 14px;
    border-left: 3px solid var(--cms-accent);
}

.cms-principal-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--cms-secondary);
    margin-bottom: 2px;
}

.cms-principal-title {
    font-size: 0.78rem;
    color: var(--cms-text-muted);
}

/* ================= Sidebar Kategori & Quick Link ================= */
.cms-sidebar-card {
    background: #ffffff;
    border: 1px solid var(--cms-border);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    padding: 18px;
    margin-bottom: 24px;
}

.cms-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 6px;
    color: var(--cms-text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    margin-bottom: 5px;
    background: #f8fafc;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.cms-category-link:hover {
    background: #eff6ff;
    color: var(--cms-primary);
    border-color: #bfdbfe;
    padding-left: 16px;
}

.cms-quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.cms-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: var(--cms-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}

.cms-quick-btn i {
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: var(--cms-primary);
}

.cms-quick-btn:hover {
    background: var(--cms-primary);
    color: #ffffff;
    border-color: var(--cms-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.cms-quick-btn:hover i {
    color: #ffffff;
}

/* ================= Footer Khas CMS Sekolahku ================= */
.cms-footer {
    background: var(--cms-navy);
    color: #cbd5e1;
    font-size: 0.88rem;
    margin-top: 50px;
    border-top: 4px solid var(--cms-primary);
}

.cms-footer-main {
    padding: 45px 0 25px;
}

.cms-footer-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
    letter-spacing: 0.5px;
}

.cms-footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--cms-accent);
}

.cms-footer-desc {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.6;
}

.cms-footer-links {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.cms-footer-links li {
    margin-bottom: 9px;
}

.cms-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cms-footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.cms-footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 0.85rem;
}

.cms-footer-contact-item i {
    color: var(--cms-accent);
    margin-top: 4px;
    flex-shrink: 0;
}

.cms-tag-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border-radius: 4px;
    padding: 4px 9px;
    font-size: 0.75rem;
    margin: 0 4px 6px 0;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cms-tag-pill:hover {
    background: var(--cms-primary);
    color: #ffffff;
    border-color: var(--cms-primary);
}

.cms-footer-bottom {
    background: var(--cms-navy-dark);
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
    color: #64748b;
}

/* ================= Buttons and Details ================= */
.btn-cms-primary {
    background-color: var(--cms-primary);
    border-color: var(--cms-primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 7px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-cms-primary:hover {
    background-color: var(--cms-primary-dark);
    border-color: var(--cms-primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.25);
}

.btn-cms-outline {
    background-color: transparent;
    border: 1px solid var(--cms-primary);
    color: var(--cms-primary);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 5px 12px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.btn-cms-outline:hover {
    background-color: var(--cms-primary);
    color: #ffffff;
}

/* Override default bg-dark to CMS navy */
.bg-dark {
    background: var(--cms-secondary) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cms-school-name {
        font-size: 1.15rem;
    }
    .cms-slider-wrapper .carousel-item > div {
        height: 240px !important;
    }
    .cms-page-header {
        padding: 20px 0;
    }
    .cms-page-header h1 {
        font-size: 1.4rem;
    }
    .cms-card-img-wrap {
        height: 180px;
    }
}
