body {
    font-family: 'Segoe UI', sans-serif;
    background: #f1f5f9;
    margin: 0;
}

/* HEADER */


/* CONTAINER */
.container {
    width: 80%;
    margin: auto;
}

/* SEARCH */
.search-box {
    margin: 20px 0;
    text-align: center;
}

.search-box input {
    padding: 12px;
    width: 60%;
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* CARD */
.card {
    background: white;
    padding: 20px;
    margin: 15px 0;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* TEXT */
.job-title {
    font-size: 20px;
    font-weight: bold;
}

.company {
    color: #64748b;
    margin: 5px 0;
}

/* BUTTON */
.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    background: #2563eb;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: #1e40af;
}

/* SECTION */
.section-title {
    margin-top: 40px;
    font-size: 24px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .search-box input {
        width: 90%;
    }
}

/* ===== ADMIN DASHBOARD ===== */

.admin-container {
    display: flex;
}

/* SIDEBAR */
.sidebar {
    width: 220px;
    height: 100vh;
    background: #1e293b;
    color: white;
    padding: 20px;
    position: fixed;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar a {
    display: block;
    color: #cbd5f5;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.sidebar a:hover {
    background: #334155;
    color: white;
}

/* MAIN CONTENT */
.main {
    margin-left: 240px;
    padding: 20px;
    width: 100%;
}

/* CARD */
.admin-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* FORM */
input, textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
}

button {
    padding: 10px 15px;
    border: none;
    background: #2563eb;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    background: #1e40af;
}

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    table-layout:auto;
}

table th, table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    width: 80px;
}

table th {
    background: #f1f5f9;
}

.action-btn {
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    margin-right: 5px;
    display:inline-block;
    white-space:nowrap;
}

.edit {
    background: #22c55e;
    color: white;
}

.delete {
    background: #ef4444;
    color: white;
}

td:last-child{
    min-width:250px;
}

/* ===== LOGIN PAGE ===== */

.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
}

.login-box {
    background: white;
    padding: 40px;
    width: 350px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
}

.login-box h2 {
    margin-bottom: 20px;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

.login-box button:hover {
    background: #1e40af;
}

.login-box p {
    margin-top: 10px;
    color: red;
}

/* ===== ARTICLE PAGE ===== */

.article-container {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.article-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.article-meta {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
}

.article-content {
    line-height: 1.8;
    color: #334155;
    font-size: 16px;
}

.article-content p {
    margin-bottom: 15px;
}

/* BACK BUTTON */
.back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background: #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
}

.back-btn:hover {
    background: #cbd5f5;
}

/* ===== JOB DETAIL ===== */

.job-container {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.job-title-detail {
    font-size: 30px;
    font-weight: bold;
}

.job-company {
    margin: 10px 0;
    color: #475569;
    font-size: 16px;
}

.job-location {
    color: #64748b;
    margin-bottom: 20px;
}

.job-description {
    line-height: 1.8;
    color: #334155;
}

.job-description p {
    margin-bottom: 15px;
}

/* APPLY BUTTON */
.apply-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 18px;
    background: #22c55e;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
}

.apply-btn:hover {
    background: #16a34a;
}

.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* tombol pagination */
.pagination a {
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
    font-size: 14px;
    transition: 0.2s;
    background: #fff;
}

/* hover effect */
.pagination a:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* active page */
.pagination a.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: bold;
}

/* prev & next style */
.pagination a.prev,
.pagination a.next {
    font-weight: bold;
}

/* disable look (optional) */
.pagination a.disabled {
    pointer-events: none;
    opacity: 0.4;
}

.pagination .dots {
    padding: 10px 5px;
    color: #777;
    font-weight: bold;
}

.form-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-box input,
.form-box textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.result-box {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    white-space: pre-wrap;
}

.info-box {
    background: #e7f1ff;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-container h2 {
    margin-bottom: 20px;
}

/* GRID */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* FULL WIDTH */
.form-group.full {
    grid-column: span 2;
}

/* INPUT */
.form-group label {
    font-size: 13px;
    margin-bottom: 5px;
    display: block;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

/* FOCUS EFFECT */
.form-group input:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
}

/* BUTTON */
.form-actions {
    display: flex;
    gap: 10px;
}

.btn-primary {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-secondary {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
}

/* INFO BOX */
.info-box {
    background: #e7f1ff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .form-container {
        margin: 15px;
        padding: 20px;
        border-radius: 10px;
    }

    /* jadi 1 kolom full */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-group.full {
        grid-column: span 1;
    }

    /* font diperbesar */
    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* penting biar ga zoom di iPhone */
        padding: 12px;
    }

    /* tombol full lebar */
    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }

    /* judul */
    .form-container h2 {
        font-size: 20px;
        text-align: center;
    }
}

body {
    -webkit-text-size-adjust: 100%;
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 20px;
    background: #007bff;
    padding: 12px;
    border-radius: 8px;
    margin: 15px auto;
    max-width: 1000px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: 0.3s;
}

.navbar a:hover {
    background: rgba(255,255,255,0.2);
}

.menu-toggle{
    display:none;
}

/* DESKTOP */
@media (min-width:769px){

    .navbar{
        display:flex !important;
    }

    .menu-toggle{
        display:none !important;
    }

    .mobile-menu,
    #overlay{
        display:none !important;
    }

}

/* MOBILE */
@media (max-width:768px){

    .navbar{
        display:none !important;
    }

    .menu-toggle{
        display:block !important;
    }

}

.footer {
    background: #1f2937;
    color: #fff;
    margin-top: 50px;
    padding-top: 30px;
}

.footer-container {
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 20px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 10px;
}

.footer-section p {
    font-size: 14px;
    color: #ccc;
}

.footer-section a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 6px;
    font-size: 14px;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    border-top: 1px solid #374151;
    margin-top: 20px;
    font-size: 13px;
    color: #aaa;
}



.footer {
    border-top: 3px solid #007bff;
}

.footer {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #fff;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid #007bff;
}

/* CONTAINER */
.footer-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 0 20px;
}

/* BRAND */
.footer-brand h3 {
    margin: 10px 0;
}

.footer-brand p {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
}

/* LOGO */
.footer-logo {
    width: 60px;
}

/* LINKS */
.footer-links h4 {
    margin-bottom: 10px;
}

.footer-links a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 6px;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(3px);
}

/* BOTTOM */
.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid #374151;
    font-size: 13px;
    color: #9ca3af;
}

@media (max-width: 768px) {

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }

    .footer-logo {
        margin: auto;
    }

    .footer-links a:hover {
        transform: none;
    }
}

.header {
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.header-content {
    max-width: 1000px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* LOGO */
.logo {
    width: 60px;
}

/* TEXT */
.header-text h1 {
    margin: 0;
    font-size: 22px;
}

.header-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* PAGE */
.letter-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* CARD */
.form-container,
.preview-container {
    background: #fff;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* HEADER */
.form-header h2,
.preview-header {
    margin-bottom: 5px;
    font-size: 24px;
    font-weight: bold;
}

.form-header p {
    color: #666;
    margin-bottom: 20px;
}

/* RESULT */
.result-box {
    background: #fafafa;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
}

.result-box pre {
    white-space: pre-wrap;
    font-family: cambria;
    line-height: 1.7;
}

@media (max-width: 768px) {

    .letter-page {
        grid-template-columns: 1fr;
        padding: 15px;
    }

}

select{
    width:100%;
    padding:12px;
    border-radius:10px;
    border:none;
    margin-top:5px;
}


/* =====================
OFF CANVAS MENU
===================== */

.menu-toggle{
    display:none;
    border:none;
    background:#2563eb;
    font-size:15px;
    cursor:pointer;
    margin-left:auto;
}

/* overlay */

#overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:9998;
}

/* sidebar */

.mobile-menu{
    position:fixed;
    top:0;
    right:-280px;

    width:280px;
    height:100vh;

    background:#fff;

    box-shadow:-5px 0 20px rgba(0,0,0,.15);

    z-index:9999;

    transition:.3s ease;
    overflow-y:auto;
}

.mobile-menu.show{
    right:0;
}

#overlay.show{
    opacity:1;
    visibility:visible;
}

.mobile-header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px;

    font-weight:700;
    font-size:20px;

    border-bottom:1px solid #eee;
}

.close-menu{
    border:none;
    background:#2563eb;
    font-size:15px;
    cursor:pointer;
}

.mobile-menu a{
    display:block;

    padding:16px 20px;

    color:#333;
    text-decoration:none;

    border-bottom:1px solid #f2f2f2;

    transition:.2s;
}

.mobile-menu a:hover{
    background:#f5f7fb;
    padding-left:25px;
}

/* DESKTOP */
@media(min-width:769px){

    .navbar{
        display:flex;
    }

    .menu-toggle{
        display:none;
    }

    .mobile-menu,
    #overlay{
        display:none !important;
    }
}

/* MOBILE */
@media(max-width:768px){

    .navbar{
        display:none;
    }

    .menu-toggle{
        display:block;
    }
}

.quick-links{
    margin:25px 0;
    display:flex;
    flex-direction:column;
    gap:15px;
}

.quick-link{
    display:block;
    text-align:center;

    padding:18px;

    border-radius:14px;

    text-decoration:none;
    color:#fff;

    font-size:20px;
    font-weight:700;

    background:linear-gradient(
        135deg,
        #0b1f4d,
        #2563eb
    );

    box-shadow:0 8px 20px rgba(37,99,235,.25);

    transition:.3s;
}

.quick-link.education{
    background:linear-gradient(
        135deg,
        #0b1f4d,
        #2563eb
    );
}

.quick-link.whatsapp{
    background:linear-gradient(
        135deg,
        #0f766e,
        #14b8a6
    );
}
.quick-link:hover{
    transform:translateY(-3px);
}

@media(max-width:768px){

    .quick-link{
        font-size:18px;
        padding:18px;
    }

}

.share-box{
    margin-top:25px;
    padding:20px;
    background:#f8fafc;
    border-radius:14px;
    border:1px solid #e5e7eb;
}

.share-title{
    font-size:16px;
    font-weight:700;
    margin-bottom:15px;
    color:#1e293b;
}

.share-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.share-btn{
    display:flex;
    align-items:center;
    gap:8px;

    padding:10px 16px;

    border:none;
    border-radius:10px;

    text-decoration:none;
    color:#fff;

    font-size:14px;
    font-weight:600;

    cursor:pointer;

    transition:.25s;
}

.share-btn:hover{
    transform:translateY(-2px);
}

.share-btn.wa{
    background:#25D366;
}

.share-btn.fb{
    background:#1877F2;
}

.share-btn.tg{
    background:#229ED9;
}

.share-btn.copy{
    background:#2563eb;
}

.action-group{
    display:flex;
    gap:5px;
    align-items:center;
}

.poster{
    background:#2563eb;
    color:#fff;
}

.publisher-box{

    margin-top:40px;

    padding:20px;

    background:#f8fafc;

    border:1px solid #e5e7eb;

    border-radius:15px;

    display:flex;

    gap:15px;

    align-items:flex-start;
}

.publisher-logo{

    width:70px;

    height:70px;

    object-fit:contain;

    flex-shrink:0;
}

.publisher-content{

    flex:1;
}

.publisher-title{

    font-size:18px;

    font-weight:700;

    color:#111827;

    margin-bottom:10px;
}

.publisher-desc{

    color:#4b5563;

    line-height:1.7;

    font-size:14px;
}

.publisher-links{

    margin-top:10px;

    font-size:14px;

    font-weight:600;

    color:#2563eb;
}

.related-title{

    margin-top:40px;

    margin-bottom:15px;

    color:#111827;
}

.related-jobs{

    display:flex;

    flex-direction:column;

    gap:12px;
}

.related-card{

    display:block;

    text-decoration:none;

    background:#f8fafc;

    border:1px solid #e5e7eb;

    border-radius:12px;

    padding:15px;

    transition:.2s;
}

.related-card:hover{

    background:#eff6ff;

    border-color:#2563eb;
}

.related-company{

    font-size:14px;

    color:#2563eb;

    font-weight:600;
}

.related-position{

    font-size:17px;

    font-weight:700;

    color:#111827;

    margin:6px 0;
}

.related-meta{

    font-size:13px;

    color:#6b7280;
}

.education-links{

    background:#fff;

    padding:20px;

    border-radius:12px;

    margin-bottom:20px;
}

.education-links a{

    display:inline-block;

    margin:5px;

    padding:10px 15px;

    background:#2563eb;

    color:white;

    border-radius:8px;

    text-decoration:none;
}