@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f1f5f9;
    font-family: 'Hind Siliguri', sans-serif;
    margin: 0;
    padding: 0; /* প্যাডিং ০ করে দেওয়া হলো */
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}
/* Alert Notification */
.alert {
    max-width: 1200px;
    margin: 0 auto 20px auto;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background-color: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-danger { background-color: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* Grid Container with Top & Bottom Margin (Gap) */
.job-container {
    max-width: 1200px;
    margin: 24px auto; /* উপরে এবং নিচে সামান্য গ্যাপ রাখা হয়েছে */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

/* Job Card with Top & Bottom Accent Borders */
.job-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #2563eb;    /* উপরে সামান্য ও আকর্ষণীয় নীল বর্ডার */
    border-bottom: 4px solid #2563eb; /* নিচে সামান্য ও আকর্ষণীয় নীল বর্ডার */
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
    border-color: #93c5fd;
    border-top-color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

/* Teacher Header */
.teacher-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.profile-wrapper {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
}

.profile-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    outline: 2px solid #2563eb;
}

.teacher-details h3 {
    margin: 0;
    font-size: 17px;
    color: #0f172a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verify-badge {
    background: #2563eb;
    color: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.teacher-details p {
    margin: 3px 0 0 0;
    font-size: 13px;
    color: #64748b;
}

.teacher-details p i {
    color: #2563eb;
    width: 14px;
}

/* Job Info */
.job-primary-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #334155;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-row i {
    color: #2563eb;
    width: 16px;
    text-align: center;
}

.salary-highlight strong {
    color: #16a34a;
    font-weight: 700;
}

/* Details Collapse */
.more-details {
    margin-bottom: 16px;
}

.toggle-btn {
    list-style: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #eff6ff;
    border-radius: 8px;
    transition: background 0.2s;
}

.toggle-btn::-webkit-details-marker { display: none; }
.toggle-btn:hover { background: #dbeafe; }

.more-details[open] .arrow-icon { transform: rotate(180deg); }

.extra-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.extra-info-grid i { color: #2563eb; margin-right: 4px; }

.job-description {
    font-size: 13px;
    color: #475569;
    margin-top: 8px;
    padding: 8px 12px;
    border-left: 3px solid #2563eb;
    background: #f8fafc;
    border-radius: 0 6px 6px 0;
}

/* Action Buttons Structure */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.action-buttons-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn {
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-hire {
    background: #2563eb;
    color: #ffffff;
    width: 100%;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.btn-hire:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}

.btn-call { background-color: #0284c7; color: #ffffff; }
.btn-call:hover { background-color: #0369a1; }

.btn-whatsapp { background-color: #16a34a; color: #ffffff; }
.btn-whatsapp:hover { background-color: #15803d; }

.no-jobs {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    background: #fff;
    border-radius: 16px;
    color: #64748b;
}

/* ===================================================
   MODAL FORM DESIGN (BLUE BORDER & ICONS)
   =================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 550px;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid #2563eb;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eff6ff;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.modal-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 19px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-modal {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover { background: #e2e8f0; color: #0f172a; }

/* Grid Form Layout */
.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label i {
    color: #2563eb;
}

/* Input Box with Icon Inside & Blue Border */
.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 12px;
    color: #2563eb;
    font-size: 14px;
    pointer-events: none;
}

.textarea-icon {
    top: 12px;
}

.input-icon-wrapper input,
.input-icon-wrapper textarea {
    width: 100%;
    padding: 10px 12px 10px 36px; /* Icon-এর জন্য বামে জায়গা রাখা হয়েছে */
    border: 2px solid #2563eb;   /* নীল রঙের বর্ডার */
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.input-icon-wrapper input:focus,
.input-icon-wrapper textarea:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
    background-color: #f8fafc;
}

/* Submit Button */
.btn-submit-hire {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-submit-hire:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .job-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .job-container { grid-template-columns: 1fr; }
    .modal-form-grid { grid-template-columns: 1fr; }
}