/*========================================================  
    1. System variable & reset
  ========================================================*/
:root {
  --primary-color: #501d81;
  --primary-hover: #3b1462;
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --text-color: #1e293b;
  --border-color: #e2e8f0;
}

body { 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
  background: var(--bg-color); 
  margin: 0; 
  padding: 0; 
  color: var(--text-color);
}

/*========================================================  
    2. Global Layout & Navigation bar
  ========================================================*/
/* Navigation Bar (ปรับเพิ่มขนาดให้ใหญ่และเด่นขึ้น) */
.navbar {
  background: white;
  padding: 20px 60px; /* เพิ่มพื้นที่แนวตั้งและแนวนอน */
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* เพิ่มเงาให้ดูมีมิติ */
}

/* กรณีใช้รูปภาพโลโก้ SIIT (<img src="...">) */
.navbar .logo img {
  height: 80px; /* ปรับความสูงโลโก้รูปภาพให้ใหญ่ขึ้นชัดเจน */
  width: auto;
  display: block;
}

/* กรณีใช้ Text Logo */
.navbar .logo {
  font-family: 'Arial Black', Impact, sans-serif;
  font-size: 36px; /* ขยายขนาดข้อความ SIIT */
  font-weight: 900;
  color: var(--primary-color);
  text-decoration: none;
  line-height: 0.9;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.navbar .logo span {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 2px;
  margin-top: 2px;
}

/* Navigation Links (ปรับขนาดตัวอักษรเมนูให้สมดุลกับโลโก้ใหญ่) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 35px; /* เพิ่มระยะห่างระหว่างเมนู */
}

.nav-links a {
  color: #64748b;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px; /* ปรับเพิ่มขนาดฟอนต์เมนูจาก 14px เป็น 16px */
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
}

.auth-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-links a:hover, 
.nav-links a.active {
  color: var(--primary-color);
}

/* Layout Container */
.container { 
  max-width: 1000px; 
  margin: 30px auto; 
  padding: 0 20px;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  color: #1e293b;
  margin: 30px 0 20px 0;
}

/*========================================================  
    3. Home Page (Hero Section & Jobs Grid)
  ========================================================*/
/* Hero Search Bar Section (Home Page) */
.hero-section {
  background: linear-gradient(180deg, #e9d5ff 0%, #f8f9fa 100%);
  padding: 70px 20px;
  text-align: center;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 25px;
}

.home-search-box {
  background: white;
  max-width: 1300px;
  margin: 0 auto;
  padding: 36px 40px;
  border-radius: 28px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 24px;
}

.search-item {
  flex: 1;
  text-align: left;
}

.search-item label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-item select, 
.search-item input,
.input-field,
.select-field {
  width: 100%;
  border: none;
  background: #f1f5f9;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
}

.btn-search-blue {
  background: #00c2ff;
  color: white;
  border: none;
  padding: 14px 36px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-end;
}

.btn-search-blue:hover {
  background: #0099cc;
}

/* Grid Layout for Home Cards */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 25px;
}

@media (max-width: 992px) {
  .jobs-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 600px) {
  .jobs-grid {
    grid-template-columns: 1fr;
  }
}

.home-card {
  background: white;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #f1f5f9;
  min-height: 280px;
}

.company-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.logo-box {
  width: 60px;
  height: 60px;
  background: #501d81;
  color: white;
  font-size: 26px;
  font-weight: bold;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Badges & Buttons */
.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.badge { 
  display: inline-block; 
  background: #f1f5f9; 
  color: #6366f1;
  padding: 6px 14px; 
  border-radius: 10px; 
  font-size: 13px; 
  font-weight: 600;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #f8fafc;
}

.rating {
  font-weight: 700;
  font-size: 15px;
  color: #1e293b;
}

.btn-apply {
  background: #6366f1;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-apply:hover {
  background: #4f46e5;
}

/* เพิ่มในส่วน 3. Home Page (Hero Section & Jobs Grid) */
.jobs-grid .btn-view-details {
  background: #ffffff !important;
  color: #4f46e5 !important;
  border: 1px solid #cbd5e1 !important;
  transition: all 0.2s;
}

.jobs-grid .btn-view-details:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
}

/* กำหนดความกว้างกรอบการ์ดหน้า Home ให้เท่ากับ Search Bar (1300px) พอดี */
.home-jobs-container {
  max-width: 1400px; /* เท่ากับ .home-search-box */
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* บังคับ Grid แบ่งเป็น 3 ช่องเท่ากันเป๊ะ (หาร 3) และกว้างเต็ม 100% */
.home-jobs-container .jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   4. MY APPLICATIONS PAGE STYLES 
   ========================================================================== */
.app-card {
  background: white;
  border-radius: 20px;
  padding: 40px 55px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  margin-bottom: 24px;
  width: 100%;
}

.app-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 20px;
}

.status-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.status-reviewing {
  background: #fef3c7;
  color: #d97706;
}

.status-interview {
  background: #e0f2fe;
  color: #0284c7;
}

.status-accepted {
  background: #dcfce7;
  color: #16a34a;
}

.status-completed {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #c084fc;
}

.app-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 20px;
  column-gap: 20px;
  margin-bottom: 20px;
}

.app-info-item label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.app-info-item span {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.app-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 16px;
  border-top: 1px solid #f8fafc;
}

.app-dates {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

/* ==========================================================================
   5. STUDENT PROFILE PAGE STYLES 
   ========================================================================== */
.profile-container {
  max-width: 900px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-section-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
}

.profile-header-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px 30px;
}

.avatar-circle {
  width: 70px;
  height: 70px;
  background: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.profile-section-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 20px 0;
}

.skills-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.btn-edit-outline {
  background: white;
  border: 1px solid #cbd5e1;
  color: #64748b;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-save-purple {
  background: #6366f1;
  color: white;
  border: none;
  padding: 10px 32px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-end;
  transition: background 0.2s;
}

.btn-save-purple:hover {
  background: #4f46e5;
}

/* ==========================================================================
   6. AUTH PAGES (LOGIN & REGISTER) STYLES
   ========================================================================== */
body {
  background-color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  color: #0f172a;
}

.container {
  max-width: 850px;
  margin: 30px auto;
  padding: 0 20px 60px 20px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
}

/* Common Card Style */
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Top User Card with Log Out Button */
.user-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar-lg {
  width: 72px;
  height: 72px;
  background: #e9d5ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7e22ce;
  font-size: 32px;
  font-weight: 700;
}

.user-info h2 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.user-info p {
  margin: 2px 0;
  font-size: 13px;
  color: #64748b;
}

/* Red Log Out Button */
.btn-logout-red {
  background-color: #ef4444;
  color: #ffffff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-logout-red:hover {
  background-color: #dc2626;
}

/* Card Titles */
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Form Fields Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.form-control {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: #ffffff;
  color: #334155;
}

.form-control:focus {
  border-color: #a855f7;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%3c94a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

/* Skills Badges & Edit System */
.skills-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.skill-badge {
  background: #f3e8ff;
  color: #7e22ce;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.skill-badge .btn-remove-skill {
  background: none;
  border: none;
  color: #a855f7;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  padding: 0;
  line-height: 1;
}

.skill-badge .btn-remove-skill:hover {
  color: #ef4444;
}

.skills-edit-box {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.btn-add-skill {
  background: #7e22ce;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-add-skill:hover {
  background: #6b21a8;
}

.btn-edit {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #64748b;
  padding: 4px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

/* Textarea Box */
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Save Button */
.actions-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.btn-save {
  background: #6366f1;
  color: #ffffff;
  border: none;
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-save:hover {
  background: #4f46e5;
}

/* ==========================================================================
   5. STUDENT PROFILE PAGE STYLES 
   ========================================================================== */
.profile-container {
  max-width: 900px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-section-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
}

.profile-header-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px 30px;
}

.avatar-circle {
  width: 70px;
  height: 70px;
  background: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.profile-section-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 20px 0;
}

.skills-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.btn-edit-outline {
  background: white;
  border: 1px solid #cbd5e1;
  color: #64748b;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-save-purple {
  background: #6366f1;
  color: white;
  border: none;
  padding: 10px 32px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-end;
  transition: background 0.2s;
}

.btn-save-purple:hover {
  background: #4f46e5;
}

/* ==========================================================================
   6. AUTH PAGES (LOGIN & REGISTER) STYLES
   ========================================================================== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #f8f9fa;
}

.auth-logo {
  height: 80px;
  margin-bottom: 30px;
}

/* Login Card */
.auth-card-login {
  background: white;
  width: 100%;
  max-width: 440px;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.btn-signin {
  width: 100%;
  background: #2d3748;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}

.btn-signin:hover {
  background: #1a202c;
}

.auth-links-flex {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 13px;
}

.auth-links-flex a {
  color: #1e293b;
  text-decoration: underline;
  font-weight: 500;
}

/* Register Card Container */
.auth-container-register {
  position: relative;
  width: 100%;
  max-width: 800px;
}

.register-top-logo {
  position: absolute;
  top: -20px;
  right: 0;
  height: 65px;
}

.auth-card-register {
  background: white;
  width: 100%;
  padding: 50px;
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  margin-top: 50px;
}

.auth-card-register h1 {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 30px 0;
}

.btn-create-account {
  background: #6366f1;
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: block;
  margin: 30px auto 0 auto;
}

.btn-create-account:hover {
  background: #4f46e5;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #1e293b;
  font-weight: 600;
  margin-top: 20px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #6366f1;
}
/* ==========================================================================
   7. SEARCH PAGE STYLES
   ========================================================================== */
.search-layout {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  align-items: flex-start;
}

/* Sidebar Filter */
.filter-sidebar {
  width: 280px;
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.filter-sidebar h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 20px 0;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-filter-search {
  width: 100%;
  background: #ede9fe;
  color: #6d28d9;
  border: none;
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.2s;
}

.btn-filter-search:hover {
  background: #ddd6fe;
}

.btn-filter-reset {
  width: 100%;
  background: white;
  color: #64748b;
  border: 1px solid #e2e8f0;
  padding: 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-filter-reset:hover {
  background: #f8fafc;
}

/* Search Content Area */
.search-content {
  flex: 1;
}

.search-count-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
}

/* Result Cards List */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-card {
  background: white;
  border-radius: 20px;
  padding: 24px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
}

.search-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.search-card-company {
  font-size: 15px;
  font-weight: 600;
  color: #475569;
  margin: 0 0 8px 0;
}

.search-card-meta {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 14px;
  display: flex;
  gap: 15px;
}

.badge-purple {
  background: #f3e8ff;
  color: #7e22ce;
}

.search-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f8fafc;
}

.btn-view-details {
  background: #e2e3ee;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-view-details:hover {
  background: #4f46e5;
}

/* ==========================================================================
   8. JOB DETAIL PAGE STYLES
   ========================================================================== */
.job-detail-container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Header Card ด้านบน */
.job-detail-header-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

.company-logo-large {
  width: 64px;
  height: 64px;
  background: #6366f1;
  color: white;
  font-size: 32px;
  font-weight: bold;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.job-detail-title {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.company-name-text {
  font-size: 15px;
  color: #94a3b8;
  margin: 0 0 20px 0;
  font-weight: 500;
}

.pill-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-item {
  background: #f1f5f9;
  color: #64748b;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 500;
}

/* 2 คอลัมน์ Layout */
.job-detail-grid {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.job-detail-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-detail-right {
  width: 340px;
  flex-shrink: 0;
}

/* การ์ดย่อยฝั่งซ้าย */
.detail-card {
  background: white;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.detail-card h2 {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 14px 0;
}

.detail-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

.detail-list {
  margin: 0;
  padding-left: 18px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.detail-list li {
  margin-bottom: 4px;
}

/* Skills Badges */
.skills-flex {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.skill-pill-purple {
  background: #f3e8ff;
  color: #7e22ce;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 8px;
}

/* Sidebar ฝั่งขวา */
.sidebar-card {
  background: white;
  border-radius: 20px;
  padding: 30px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.allowance-box {
  margin-bottom: 24px;
}

.allowance-amount {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
}

.allowance-label {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 2px;
}

.sidebar-info-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 4px;
}

.sidebar-info-group .info-value {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.sidebar-divider {
  border: none;
  border-top: 1px solid #f1f5f9;
  margin: 18px 0;
}

/* ปุ่ม Apply Now สีม่วงโดดเด่น */
.btn-apply-now {
  display: block;
  width: 100%;
  background: #6366f1;
  color: white;
  text-align: center;
  padding: 14px 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 24px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transition: background 0.2s, transform 0.1s;
}

.btn-apply-now:hover {
  background: #4f46e5;
}

/* Responsive สำหรับหน้าจอเล็ก */
@media (max-width: 850px) {
  .job-detail-grid {
    flex-direction: column;
  }
  .job-detail-right {
    width: 100%;
  }
}

/* ปุ่ม Back to Jobs */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 16px;
  transition: color 0.2s, transform 0.2s;
}

.back-link:hover {
  color: #6366f1; /* เปลี่ยนเป็นสีม่วงเมื่อ Hover */
  transform: translateX(-4px); /* ขยับไปทางซ้ายเล็กน้อยเมื่อชี้ */
}

/* ปุ่ม Save Job */
.btn-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

/* สถานะเมื่อบันทึกแล้ว (Saved) */
.btn-save.is-saved {
  fill: transparent;
  stroke: #62748b;
  transition: all 0.2s ease;
}

.btn-save:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}

.btn-save.is-saved .save-icon {
  stroke: #d97706;
}

/*สถานะเมื่อถูก Save แล้ว (ขึ้นสี Fill เต็มไอคอน)*/
.btn-save.is-saved {
  background-color: #fef3c7; /* พื้นหลังสีส้ม/เหลืองอ่อน */
  border-color: #fde68a;
  color: #d97706; /* สีตัวอักษร */
}

/* เปลี่ยนสี Fill และ เส้นขอบ (Stroke) ของไอคอน SVG */
.btn-save.is-saved .save-icon {
  fill: #d97706;   /* ถ้าระบุสีตรงนี้ ไอคอนจะระบายสีทึบข้างในทันที */
  stroke: #d97706; /* เปลี่ยนสีเส้นขอบให้เป็นโทนเดียวกัน */
}

/* ==========================================================================
   9. SAVED INTERNSHIP PAGE STYLES
   ========================================================================== */

/* Hero Section - แถบสีม่วงเต็มขอบจอ */
.saved-hero-section {
  width: 100%;
  background: linear-gradient(180deg, #f3e8ff 0%, rgba(243, 232, 255, 0) 100%);
  padding: 40px 0 20px 0;
}

.saved-hero-content {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 20px;
}

.saved-page-title {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.saved-page-subtitle {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}

/* Container & Cards Layout */
.saved-main-container {
  max-width: 850px;
  margin: 20px auto 60px auto;
  padding: 0 20px;
}

.saved-job-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.saved-job-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #1e293b;
}

.saved-company-name {
  font-weight: 700;
  color: #334155;
  font-size: 14px;
  margin-bottom: 6px;
}

.saved-job-meta {
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 12px;
}

/* Skills Badges */
.saved-skills-list {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.saved-skill-tag {
  background: #f3e8ff;
  color: #7e22ce;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

/* Footer & Buttons */
.saved-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
}

.badge-status-open {
  background: #dcfce7;
  color: #166534;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
}

.saved-card-actions {
  display: flex;
  gap: 10px;
}

.btn-unsave {
  background: white;
  color: #64748b;
  border: 1px solid #cbd5e1;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-unsave:hover {
  background: #f1f5f9;
  color: #ef4444;
  border-color: #fca5a5;
}

.btn-view-details {
  background: #4f46e5;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.btn-view-details:hover {
  background: #4338ca;
}

/* ==========================================================================
   10. COMPANY PROFILE PAGE STYLES
   ========================================================================== */
.company-profile-container {
  max-width: 900px;
  margin: 40px auto;
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
}

.company-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 24px;
}

.company-meta-inline {
  display: flex;
  gap: 20px;
  color: #94a3b8;
  font-size: 14px;
  margin-top: 8px;
}

.section-title-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.company-job-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #f8fafc;
}

.company-job-item:last-child {
  border-bottom: none;
}

.job-number {
  font-size: 15px;
  font-weight: 700;
  color: #cbd5e1;
  min-width: 24px;
  padding-top: 2px;
}

.info-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 20px;
  column-gap: 40px;
  margin-top: 16px;
}

.info-grid-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  row-gap: 20px;
  column-gap: 20px;
  margin-top: 16px;
}

.company-divider {
  border: 0;
  height: 1px;
  background: #f1f5f9;
  margin: 28px 0;
}

/*OPEN INTERNSHIP POSITIONS CUSTOM STYLES*/
.company-job-item {
  display: flex;
  align-items: center; /* จัดให้อยู่กลางตามแนวตั้ง */
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #f1f5f9; /* เพิ่มเส้นแบ่งระหว่างรายการ */
}

.company-job-item:last-child {
  border-bottom: none;
}

/* ตัวเลข 01, 02 ให้อยู่ซ้ายสุดแถวเดียวกัน */
.job-number {
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
  width: 40px;
  flex-shrink: 0;
}

/* ข้อมูลหลักตรงกลาง */
.job-main-info {
  flex: 1;
  padding-right: 20px;
}

.job-title-text {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.job-sub-meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

.job-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-purple {
  background: #f1f0fe;
  color: #6366f1;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-block;
}

/* ปุ่ม View Details จัดชิดขวาแบบทรงแคปซูล */
.job-actions {
  flex-shrink: 0;
}

.btn-view-details {
  background: #6366f1;
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.btn-view-details:hover {
  background: #4f46e5;
}

/* ตกแต่งกล่อง Logo ตัวอักษรให้มีสีสันละมุน สไตล์ Soft Indigo Gradient */
.company-logo-square {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); /* พื้นหลังไล่เฉดสีม่วง-ฟ้าอ่อน */
  color: #4f46e5; /* สีตัวอักษรม่วงเข้มเด่นชัด */
  border-radius: 16px; /* ขอบมนสวยงาม */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15); /* เงาสีม่วงฟุ้งเบาๆ */
  flex-shrink: 0;
}

/* ==========================================================================
   11. APPLYING PAGE STYLES
   ========================================================================== */
.apply-container {
  max-width: 1300px;
  margin: 20px auto 50px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.apply-job-card {
  background: white;
  border-radius: 20px;
  padding: 24px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 20px;
}

.apply-form-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
}

.hero-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: linear-gradient(180deg, #f3e8ff 0%, rgba(243, 232, 255, 0) 100%);
  padding: 40px 0 10px 0;
}

.hero-content {
  max-width: 1300px !important;
  margin: 50px auto !important; 
  padding-left: 0 !important;
  /*transform: translateX(-650px) !important;*/
}

.upload-resume-box {
  background: #f1f0fe;
  border: 1px dashed #c7d2fe;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.upload-resume-text {
  color: #6366f1;
  font-size: 14px;
  font-weight: 600;
}

.btn-choose-file {
  background: #e2e8f0;
  color: #475569;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.apply-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #94a3b8;
  margin-top: 20px;
  cursor: pointer;
}

.apply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
}

.btn-cancel {
  background: white;
  border: 1px solid #cbd5e1;
  color: #64748b;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-submit-app {
  background: #6366f1;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit-app:hover {
  background: #4f46e5;
}

/* ==========================================
   Admin Dashboard Specific Styles
   ========================================== */

body.admin-body {
  background: #f8fafc;
  margin: 0;
  padding-bottom: 50px;
}

.admin-container {
  max-width: 1000px;
  margin: 30px auto 50px auto;
  padding: 0 20px;
}

.admin-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  margin-bottom: 30px;
}

.admin-card-title {
  margin-top: 0;
  font-size: 20px;
  color: #1e293b;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.input-field {
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background-color: #ffffff;
}

.input-field:focus {
  border-color: #6366f1;
}

textarea.input-field {
  resize: vertical;
}

.btn-primary {
  padding: 10px 20px;
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #4338ca;
}

.btn-success {
  padding: 10px 20px;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s;
  height: 42px;
}

.btn-success:hover {
  background: #15803d;
}

.admin-status-flex {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.admin-status-flex .form-group {
  flex: 1;
  min-width: 200px;
}