/* ==========================================
   DESKTOP EDUCATION PAGE STYLES
   ========================================== */

.edu-container {
    padding-top: 1rem;
    min-height: 100vh;
}

/* Force main to be full width when education page is active */
main:has(.edu-container) {
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}

.edu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 35px;
    box-sizing: border-box;
}

.edu-header {
    text-align: left;
    margin: 3rem 0 2rem; /* Adjusted to match total desktop gap (3rem) from line kuning/divider */
    max-width: 1400px;
    padding: 0 5rem;
    width: 100%;
    align-self: center;
}

.edu-header h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.04em;
    color: #fff;
    white-space: nowrap;
}

.edu-header h1 span {
    color: var(--gold);
}

.edu-header p {
    text-align: justify;
    text-justify: inter-word;
    width: 100%;
    font-size: 1.15rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0;
}

.edu-grid {
    display: grid;
    gap: 1.5rem 1rem;
    padding: 0 5rem 150px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
    justify-items: center;
    grid-template-columns: repeat(4, minmax(250px, 320px));
}

.edu-sections {
    width: 100%;
    max-width: 1400px;
    padding: 0 5rem 150px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.edu-section {
    width: 100%;
}

.edu-section-header {
    margin-bottom: 1.4rem;
    width: 100%;
    max-width: none;
}

.edu-section-title-row {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
}

.edu-section-kicker {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.45rem;
}

.edu-section-header h2 {
    font-size: 2.1rem;
    line-height: 1.1;
    color: #fff;
    margin: 0;
    letter-spacing: -0.04em;
}

.edu-section-header p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-dim);
    text-align: justify;
    width: 100%;
    max-width: none;
}

.edu-section-grid {
    padding: 0;
    max-width: none;
}

.edu-section-legal {
    --edu-pill-start: rgba(37, 99, 235, 0.42);
    --edu-pill-end: rgba(14, 116, 144, 0.52);
    --edu-pill-glow: rgba(34, 211, 238, 0.8);
    --edu-pill-shadow: rgba(37, 99, 235, 0.22);
    --edu-card-accent: rgba(34, 211, 238, 0.2);
    --edu-card-accent-soft: rgba(37, 99, 235, 0.12);
    --edu-card-panel-top: rgba(20, 29, 54, 0.98);
    --edu-card-panel-bottom: rgba(11, 16, 32, 0.98);
}

.edu-section-scenarios {
    --edu-pill-start: rgba(217, 119, 6, 0.42);
    --edu-pill-end: rgba(234, 88, 12, 0.5);
    --edu-pill-glow: rgba(251, 191, 36, 0.8);
    --edu-pill-shadow: rgba(245, 158, 11, 0.22);
    --edu-card-accent: rgba(251, 191, 36, 0.2);
    --edu-card-accent-soft: rgba(249, 115, 22, 0.12);
    --edu-card-panel-top: rgba(45, 27, 12, 0.98);
    --edu-card-panel-bottom: rgba(22, 13, 8, 0.98);
}

.edu-section-crime {
    --edu-pill-start: rgba(190, 24, 93, 0.42);
    --edu-pill-end: rgba(220, 38, 38, 0.5);
    --edu-pill-glow: rgba(251, 113, 133, 0.82);
    --edu-pill-shadow: rgba(225, 29, 72, 0.22);
    --edu-card-accent: rgba(251, 113, 133, 0.2);
    --edu-card-accent-soft: rgba(225, 29, 72, 0.12);
    --edu-card-panel-top: rgba(49, 17, 27, 0.98);
    --edu-card-panel-bottom: rgba(24, 10, 16, 0.98);
}

.edu-section-finance {
    --edu-pill-start: rgba(5, 150, 105, 0.42);
    --edu-pill-end: rgba(8, 145, 178, 0.5);
    --edu-pill-glow: rgba(45, 212, 191, 0.8);
    --edu-pill-shadow: rgba(16, 185, 129, 0.22);
    --edu-card-accent: rgba(45, 212, 191, 0.2);
    --edu-card-accent-soft: rgba(16, 185, 129, 0.12);
    --edu-card-panel-top: rgba(12, 41, 35, 0.98);
    --edu-card-panel-bottom: rgba(7, 20, 18, 0.98);
}

.edu-magic-card {
    width: 100%;
    position: relative;
    height: 380px;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    perspective: 1000px;
}

.edu-magic-card:hover {
    transform: translateY(-15px);
}

.edu-aura-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--edu-card-accent-soft, rgba(93, 95, 239, 0.15)) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(40px);
    transition: all 0.8s ease;
}

.edu-magic-card:hover .edu-aura-glow {
    background: radial-gradient(circle, var(--edu-card-accent, rgba(0, 242, 255, 0.25)) 0%, transparent 70%);
    width: 400px;
    height: 400px;
}

.edu-prot-no {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.2);
    z-index: 5;
    pointer-events: none;
    user-select: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.05em;
}

.edu-magic-card:hover .edu-prot-no {
    color: var(--edu-pill-glow, rgba(0, 242, 255, 0.6));
}

.edu-poster-bg {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 280px;
    height: 340px;
    background:
        radial-gradient(circle at top right, var(--edu-card-accent, rgba(255, 204, 51, 0.08)), transparent 34%),
        radial-gradient(circle at bottom left, var(--edu-card-accent-soft, rgba(93, 95, 239, 0.12)), transparent 42%),
        linear-gradient(180deg, var(--edu-card-panel-top, rgba(15, 18, 33, 0.98)) 0%, var(--edu-card-panel-bottom, rgba(11, 13, 24, 0.98)) 100%);
    border-radius: 20px;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 4px solid #fff;
}

.edu-magic-card:hover .edu-poster-bg {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 34px 68px rgba(0, 0, 0, 0.62), 0 0 22px var(--edu-card-accent-soft, rgba(255, 204, 51, 0.14));
}

.edu-glass-layer {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 260px;
    height: 320px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--edu-card-panel-top, rgba(24, 28, 47, 0.84)) 88%, rgba(255,255,255,0.03)) 0%, color-mix(in srgb, var(--edu-card-panel-bottom, rgba(15, 18, 31, 0.84)) 92%, rgba(255,255,255,0.02)) 100%);
    backdrop-filter: blur(6px) saturate(140%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.edu-glass-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.edu-glass-layer::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: conic-gradient(from var(--border-angle),
            transparent 70%,
            color-mix(in srgb, var(--edu-pill-glow, rgba(0, 242, 255, 0.4)) 70%, transparent) 85%,
            rgba(255, 255, 255, 0.9) 95%,
            color-mix(in srgb, var(--edu-pill-glow, rgba(0, 242, 255, 0.4)) 70%, transparent) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    animation: rotate-border 4s linear infinite;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.edu-magic-card:hover .edu-glass-layer {
    transform: translateY(-5px);
    background: linear-gradient(180deg, color-mix(in srgb, var(--edu-card-panel-top, rgba(24, 28, 47, 0.84)) 85%, rgba(255,255,255,0.08)) 0%, color-mix(in srgb, var(--edu-card-panel-bottom, rgba(15, 18, 31, 0.84)) 90%, rgba(255,255,255,0.03)) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 18px var(--edu-card-accent-soft, rgba(255, 204, 51, 0.14));
}

.edu-magic-card:hover .edu-glass-layer::before {
    opacity: 1;
}

.edu-glass-tag {
    display: inline-flex;
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    width: fit-content;
    position: relative;
    overflow: hidden;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: linear-gradient(135deg, var(--edu-pill-start, rgba(79, 172, 254, 0.4)) 0%, var(--edu-pill-end, rgba(0, 102, 255, 0.5)) 100%);
    box-shadow: 
        0 4px 15px var(--edu-pill-shadow, rgba(0, 102, 255, 0.2)), 
        inset 0 0 8px var(--edu-pill-shadow, rgba(0, 102, 255, 0.3)), 
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.edu-glass-tag::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 10%;
    width: 45%;
    height: 30%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
    filter: blur(2px);
    border-radius: 100px;
    pointer-events: none;
    z-index: 2;
}

.edu-glass-tag::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 15%;
    width: 12px;
    height: 12px;
    background: var(--edu-pill-glow, #00f2ff);
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0.8;
    box-shadow: 0 0 12px var(--edu-pill-glow, #00f2ff);
    pointer-events: none;
}

.edu-glass-layer h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    overflow: visible;
    white-space: normal;
    text-align: left;
    min-height: 3.2rem;
    display: flex;
    align-items: flex-start;
}

.edu-glass-divider {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 1rem;
    opacity: 0.3;
    width: 100%;
}

.edu-glass-divider::before,
.edu-glass-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #fff;
}

.edu-glass-divider .dot {
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
}

.edu-glass-description {
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.edu-glass-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.edu-magic-card:hover .edu-glass-footer {
    color: #00f2ff;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.edu-magic-card:hover .edu-glass-footer svg {
    transform: translateX(5px);
}


/* ==========================================
   MODAL STYLES (INHERITED FROM NEO-MODAL.CSS)
   ========================================== */

/* Note: All modal container and overlay styles are inherited via 
   .neo-modal-overlay and .neo-modal-content classes in index.html.
   Page-specific modal layout handled via education-ui.js. */
