/* eTasjil V2.0 - semaktawaran/main only (loaded after public-base.css) */
.lm-page {
    max-width: 1100px;
}

/* Announcement table */
.lm-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.lm-table thead th {
    padding: .85rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--lm-line);
    background: var(--lm-field);
    font-size: .85rem;
    font-weight: 700;
    color: var(--lm-ink);
    vertical-align: bottom;
}

.lm-table thead th:first-child { border-top-left-radius: 14px; }
.lm-table thead th:last-child { border-top-right-radius: 14px; }

.lm-table thead th small {
    font-weight: 500;
    color: var(--lm-muted);
}

.lm-table tbody td {
    padding: 1rem;
    border: 0;
    border-bottom: 1px solid var(--lm-line);
    font-size: .95rem;
    vertical-align: middle;
}

.lm-table tbody tr:last-child td { border-bottom: 0; }

.lm-table tbody tr:hover td { background: #f8fafc; }

.lm-table tbody td:first-child { font-weight: 600; }

.lm-table tbody td:first-child em {
    font-weight: 500;
    color: var(--lm-muted);
}

.lm-table tbody td:nth-child(2),
.lm-table tbody td:nth-child(3) {
    color: var(--lm-muted);
    font-size: .875rem;
    white-space: nowrap;
}

.lm-table tbody td:last-child { width: 150px; }

/* Buttons */
.lm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s, box-shadow .2s;
}

/* Open Link: teal (same as Tamhidi card / login Sign In) */
.lm-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #115e59 0%, #0d9488 100%);
    box-shadow: 0 12px 24px -10px rgba(13, 148, 136, .6);
}

.lm-btn-primary:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px -10px rgba(13, 148, 136, .7);
}

.lm-btn-disabled,
.lm-btn-disabled:disabled {
    color: #94a3b8;
    background: #f1f5f9;
    cursor: not-allowed;
    opacity: 1;
}

/* Login notice */
.lm-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 1.75rem 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid #fde68a;
    border-radius: 16px;
    background: #fffbeb;
    color: #78350f;
    font-size: .95rem;
    font-weight: 500;
}

.lm-notice-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fef3c7;
    color: #d97706;
}

.lm-notice a {
    color: var(--lm-primary-2);
    font-weight: 700;
    text-decoration: underline;
}

/* Contact cards */
.lm-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

/* Accent per program: Sarjana Muda = blue, Tamhidi = teal */
.lm-contact {
    --c-accent: #2f5bd3;
    --c-accent-dark: #1b2756;
    --c-soft: #e8edfb;
    --c-border: #c7d3f5;
    position: relative;
    padding: 0 1.25rem 1.25rem;
    border: 1.5px solid var(--c-border);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}

.lm-contact--tamhidi {
    --c-accent: #0d9488;
    --c-accent-dark: #115e59;
    --c-soft: #ccfbf1;
    --c-border: #99e3d6;
}

.lm-contact--permata {
    /* Gold */
    --c-accent: #b8860b;
    --c-accent-dark: #6b4f0a;
    --c-soft: #fdf4d7;
    --c-border: #ecd593;
}

.lm-contact--general {
    --c-accent: #64748b;
    --c-accent-dark: #334155;
    --c-soft: #f1f5f9;
    --c-border: var(--lm-line);
}

.lm-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -16px var(--c-accent);
}

.lm-contact-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0 -1.25rem 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--c-accent-dark) 0%, var(--c-accent) 100%);
    color: #fff;
}

.lm-contact-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
    font-size: 1.15rem;
}

.lm-contact-for {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
}

.lm-contact-program {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.lm-contact h2 {
    margin: 0 0 .2rem;
    font-size: .95rem;
    font-weight: 800;
    color: var(--lm-ink);
}

.lm-contact p {
    margin: 0 0 .9rem;
    font-size: .85rem;
    color: var(--lm-muted);
}

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

.lm-contact li {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .35rem 0;
    font-size: .9rem;
    color: var(--lm-ink);
    word-break: break-word;
}

.lm-contact li i {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--c-soft);
    color: var(--c-accent);
}

.lm-contact a {
    color: var(--c-accent);
    font-weight: 600;
}

.lm-contact .lm-na {
    font-style: italic;
    color: #94a3b8;
}

/* Technical helpdesk */
/* Technical helpdesk: amber, distinct from program contacts */
.lm-helpdesk {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.25rem;
    border-radius: 18px;
    background: #fff7ed;
    border: 1.5px dashed #fdba74;
}

.lm-helpdesk-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #c2410c 0%, #f59e0b 100%);
    color: #fff;
    box-shadow: 0 10px 20px -8px rgba(194, 65, 12, .55);
}

.lm-helpdesk-tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .35rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: #ffedd5;
    color: #c2410c;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.lm-helpdesk-title {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    color: #9a3412;
}

.lm-helpdesk-mail {
    display: inline-block;
    margin: .25rem 0 .4rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #c2410c;
    word-break: break-all;
}

.lm-helpdesk-mail:hover {
    color: #9a3412;
}

.lm-helpdesk-note {
    display: block;
    font-size: .875rem;
    color: var(--lm-ink);
}


/* Mobile: table rows become stacked cards */
@media (max-width: 767px) {
    .lm-hero-inner { padding: .85rem 1.25rem; }
    .lm-hero-logo { height: 44px; }
    .lm-brand-name { font-size: 1.3rem; }
    .lm-hero-system { font-size: .8rem; }
    .lm-hero-sub { font-size: .75rem; }

    .lm-section-head { padding: 1rem 1.25rem; }
    .lm-section-body { padding: 1rem 1.25rem 1.25rem; }
    .lm-notice { margin: 0 1.25rem 1.25rem; align-items: flex-start; font-size: .9rem; }

    .lm-table thead { display: none; }

    .lm-table,
    .lm-table tbody,
    .lm-table tr,
    .lm-table td {
        display: block;
        width: 100% !important;
    }

    .lm-table tbody tr {
        margin-bottom: .9rem;
        padding: 1rem;
        border: 1px solid var(--lm-line);
        border-radius: 16px;
        background: #fff;
    }

    .lm-table tbody tr:hover td { background: transparent; }

    .lm-table tbody td {
        padding: .3rem 0;
        border: 0;
        white-space: normal !important;
    }

    .lm-table tbody td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: .7rem;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: #94a3b8;
    }

    .lm-table tbody td:first-child {
        padding-bottom: .5rem;
        font-size: 1rem;
    }

    .lm-table tbody td:last-child { padding-top: .75rem; }

    .lm-contacts { grid-template-columns: 1fr; }
}
