/* ============================================================
   Prachaniwet2 raya3 – Main Stylesheet
   Color Palette: #EEF5FF | #B4D4FF | #86B6F6 | #176B87
   ============================================================ */

/* ---- CSS Variables ---------------------------------------- */
:root {
  --cl-lightest : #EEF5FF;
  --cl-light    : #B4D4FF;
  --cl-medium   : #86B6F6;
  --cl-primary  : #176B87;
  --cl-primary-dark: #0f4f65;
  --cl-white    : #ffffff;
  --cl-dark     : #1a2233;
  --cl-text     : #334155;
  --cl-muted    : #64748b;
  --cl-border   : #cfe2ff;
  --cl-shadow   : rgba(23, 107, 135, 0.12);
  --radius      : 12px;
  --radius-sm   : 6px;
  --transition  : 0.25s ease;
  --font        : 'Sarabun', sans-serif;
}

/* ---- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family  : var(--font);
  font-size    : 16px;
  line-height  : 1.7;
  color        : var(--cl-text);
  background   : var(--cl-white);
}

a { color: var(--cl-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cl-primary-dark); }

img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }

/* ---- Container -------------------------------------------- */
.container {
  width     : 100%;
  max-width : 1200px;
  margin    : 0 auto;
  padding   : 0 20px;
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  display        : inline-flex;
  align-items    : center;
  gap            : 6px;
  padding        : 10px 22px;
  border-radius  : var(--radius-sm);
  font-family    : var(--font);
  font-size      : 15px;
  font-weight    : 600;
  cursor         : pointer;
  border         : 2px solid transparent;
  transition     : all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--cl-primary);
  color     : var(--cl-white);
  border-color: var(--cl-primary);
}
.btn-primary:hover {
  background: var(--cl-primary-dark);
  border-color: var(--cl-primary-dark);
  color: var(--cl-white);
}

.btn-outline {
  background  : transparent;
  color       : var(--cl-primary);
  border-color: var(--cl-primary);
}
.btn-outline:hover {
  background: var(--cl-primary);
  color     : var(--cl-white);
}

.btn-light {
  background  : var(--cl-lightest);
  color       : var(--cl-primary);
  border-color: var(--cl-light);
}
.btn-light:hover {
  background: var(--cl-light);
}

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-danger { background: #ef4444; color: #fff; border-color: #ef4444; }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.btn-success { background: #22c55e; color: #fff; border-color: #22c55e; }
.btn-success:hover { background: #15803d; border-color: #15803d; color: #fff; }

/* ---- Badge ------------------------------------------------ */
.badge {
  display        : inline-block;
  padding        : 3px 10px;
  border-radius  : 20px;
  font-size      : 12px;
  font-weight    : 600;
  color          : #fff;
  white-space    : nowrap;
}

/* ---- Section Headings ------------------------------------- */
.section-title {
  font-size   : 1.75rem;
  font-weight : 700;
  color       : var(--cl-primary);
  margin-bottom: 6px;
}
.section-subtitle {
  color         : var(--cl-muted);
  margin-bottom : 32px;
  font-size     : 15px;
}
.section-header {
  display        : flex;
  align-items    : flex-end;
  justify-content: space-between;
  margin-bottom  : 28px;
  flex-wrap      : wrap;
  gap            : 10px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position  : sticky;
  top       : 0;
  z-index   : 1000;
  background: var(--cl-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.nav-inner {
  display        : flex;
  align-items    : center;
  justify-content: space-between;
  height         : 64px;
  gap            : 12px;
}

/* Logo */
.navbar-brand {
  display    : flex;
  align-items: center;
  gap        : 8px;
  color      : var(--cl-white) !important;
  font-size  : 1.35rem;
  font-weight: 400;
  white-space: nowrap;
}
.navbar-brand i { font-size: 1.4rem; }
.navbar-brand strong { font-weight: 800; }

/* Nav Links */
.nav-links {
  display    : flex;
  align-items: center;
  gap        : 4px;
  flex-wrap  : nowrap;
}
.nav-links a {
  color       : rgba(255,255,255,.85);
  padding     : 8px 12px;
  border-radius: var(--radius-sm);
  font-size   : 15px;
  font-weight : 500;
  display     : flex;
  align-items : center;
  gap         : 5px;
  white-space : nowrap;
  transition  : background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.18);
  color     : #fff;
}
.nav-links .btn-nav {
  background  : var(--cl-white);
  color       : var(--cl-primary) !important;
  font-weight : 700;
  padding     : 7px 16px;
  border-radius: var(--radius-sm);
}
.nav-links .btn-nav:hover { background: var(--cl-lightest); }

.nav-user {
  color      : rgba(255,255,255,.9);
  display    : flex;
  align-items: center;
  gap        : 6px;
  padding    : 0 8px;
  font-size  : 14px;
  font-weight: 600;
}

/* Hamburger */
.hamburger {
  display       : none;
  flex-direction: column;
  justify-content: space-between;
  width         : 30px;
  height        : 22px;
  background    : transparent;
  border        : none;
  cursor        : pointer;
  padding       : 0;
  z-index       : 1001;
}
.hamburger span {
  display      : block;
  height       : 3px;
  background   : #fff;
  border-radius: 2px;
  transition   : all 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background  : linear-gradient(135deg, var(--cl-primary) 0%, #0e3f52 100%);
  color       : #fff;
  padding     : 72px 0 80px;
  text-align  : center;
  position    : relative;
  overflow    : hidden;
}
.hero::before {
  content  : '';
  position : absolute;
  inset    : 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  font-size  : 2.6rem;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.25;
}
.hero h1 span { color: var(--cl-light); }
.hero p {
  font-size    : 1.1rem;
  opacity      : .88;
  margin-bottom: 36px;
  max-width    : 560px;
  margin-left  : auto;
  margin-right : auto;
}

/* Hero Search Bar */
.hero-search {
  display       : flex;
  max-width     : 680px;
  margin        : 0 auto;
  background    : #fff;
  border-radius : 50px;
  overflow      : hidden;
  box-shadow    : 0 8px 32px rgba(0,0,0,.25);
}
.hero-search input {
  flex    : 1;
  border  : none;
  padding : 16px 24px;
  font-size: 15px;
  font-family: var(--font);
  color   : var(--cl-text);
  outline : none;
  background: transparent;
}
.hero-search button {
  padding     : 16px 32px;
  background  : var(--cl-medium);
  color       : var(--cl-primary);
  border      : none;
  font-size   : 15px;
  font-weight : 700;
  font-family : var(--font);
  cursor      : pointer;
  transition  : background var(--transition);
  display     : flex;
  align-items : center;
  gap         : 8px;
}
.hero-search button:hover { background: var(--cl-light); }

/* Hero Stats */
.hero-stats {
  display        : flex;
  justify-content: center;
  gap            : 40px;
  margin-top     : 36px;
  flex-wrap      : wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  display    : block;
  font-size  : 2rem;
  font-weight: 800;
  color      : var(--cl-light);
}
.hero-stat .lbl { font-size: 13px; opacity: .8; }

/* ============================================================
   CATEGORIES SECTION
   ============================================================ */
.section-categories { padding: 60px 0; background: var(--cl-lightest); }

.categories-grid {
  display              : grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap                  : 16px;
}

.cat-card {
  background   : var(--cl-white);
  border       : 2px solid var(--cl-border);
  border-radius: var(--radius);
  padding      : 20px 12px;
  text-align   : center;
  cursor       : pointer;
  transition   : all var(--transition);
  text-decoration: none;
  color        : var(--cl-text);
  display      : block;
}
.cat-card:hover {
  border-color: var(--cl-primary);
  transform   : translateY(-4px);
  box-shadow  : 0 8px 24px var(--cl-shadow);
  color       : var(--cl-primary);
}
.cat-card i {
  font-size    : 2rem;
  margin-bottom: 10px;
  display      : block;
}
.cat-card .cat-name {
  font-size  : 13.5px;
  font-weight: 600;
  line-height: 1.35;
}
.cat-card .cat-count {
  font-size: 12px;
  color    : var(--cl-muted);
  margin-top: 4px;
}

/* ============================================================
   JOBS SECTION
   ============================================================ */
.section-jobs { padding: 64px 0; }

.jobs-grid {
  display              : grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap                  : 20px;
}

.job-card {
  background   : var(--cl-white);
  border       : 1px solid var(--cl-border);
  border-radius: var(--radius);
  padding      : 22px;
  transition   : all var(--transition);
  display      : flex;
  flex-direction: column;
  gap          : 12px;
}
.job-card:hover {
  box-shadow  : 0 8px 28px var(--cl-shadow);
  border-color: var(--cl-medium);
  transform   : translateY(-2px);
}
.job-card-header {
  display        : flex;
  justify-content: space-between;
  align-items    : flex-start;
  gap            : 10px;
}
.job-title {
  font-size  : 1rem;
  font-weight: 700;
  color      : var(--cl-primary);
  line-height: 1.35;
}
.job-title a { color: inherit; }
.job-title a:hover { color: var(--cl-primary-dark); }
.job-company {
  font-size  : 14px;
  color      : var(--cl-muted);
  font-weight: 500;
  margin-top : 4px;
}
.job-meta {
  display    : flex;
  flex-wrap  : wrap;
  gap        : 10px;
  font-size  : 13px;
  color      : var(--cl-muted);
}
.job-meta span { display: flex; align-items: center; gap: 4px; }
.job-meta i { color: var(--cl-medium); }
.job-salary {
  font-size  : 14px;
  font-weight: 600;
  color      : var(--cl-primary-dark);
}
.job-footer {
  display        : flex;
  justify-content: space-between;
  align-items    : center;
  padding-top    : 10px;
  border-top     : 1px solid var(--cl-lightest);
  margin-top     : auto;
}
.job-time { font-size: 12px; color: var(--cl-muted); }

/* ============================================================
   ARTICLES SECTION
   ============================================================ */
.section-articles { padding: 64px 0; background: var(--cl-lightest); }

.articles-grid {
  display              : grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap                  : 24px;
}

.article-card {
  background   : var(--cl-white);
  border-radius: var(--radius);
  overflow     : hidden;
  border       : 1px solid var(--cl-border);
  transition   : all var(--transition);
}
.article-card:hover {
  box-shadow  : 0 8px 28px var(--cl-shadow);
  transform   : translateY(-3px);
}
.article-img {
  height    : 180px;
  background: linear-gradient(135deg, var(--cl-primary) 0%, var(--cl-medium) 100%);
  display   : flex;
  align-items: center;
  justify-content: center;
  font-size : 3rem;
  color     : rgba(255,255,255,.6);
  overflow  : hidden;
}
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 20px; }
.article-body h3 {
  font-size   : 1rem;
  font-weight : 700;
  color       : var(--cl-primary);
  margin-bottom: 8px;
  line-height : 1.4;
}
.article-body h3 a { color: inherit; }
.article-body h3 a:hover { color: var(--cl-primary-dark); }
.article-excerpt { font-size: 13.5px; color: var(--cl-muted); line-height: 1.6; }
.article-footer {
  display        : flex;
  justify-content: space-between;
  align-items    : center;
  margin-top     : 16px;
  font-size      : 12px;
  color          : var(--cl-muted);
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-layout {
  display  : grid;
  grid-template-columns: 280px 1fr;
  gap      : 28px;
  padding  : 48px 0;
  align-items: start;
}

/* Filter Sidebar */
.filter-sidebar {
  background   : var(--cl-white);
  border       : 1px solid var(--cl-border);
  border-radius: var(--radius);
  padding      : 24px;
  position     : sticky;
  top          : 80px;
}
.filter-sidebar h3 {
  font-size    : 1rem;
  font-weight  : 700;
  color        : var(--cl-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cl-border);
  display      : flex;
  align-items  : center;
  gap          : 8px;
}
.filter-group { margin-bottom: 22px; }
.filter-group label {
  display      : block;
  font-size    : 13px;
  font-weight  : 600;
  color        : var(--cl-text);
  margin-bottom: 8px;
}
.filter-group select,
.filter-group input[type="text"] {
  width        : 100%;
  padding      : 9px 12px;
  border       : 1.5px solid var(--cl-border);
  border-radius: var(--radius-sm);
  font-family  : var(--font);
  font-size    : 14px;
  color        : var(--cl-text);
  background   : var(--cl-white);
  outline      : none;
  transition   : border-color var(--transition);
  appearance   : none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23176B87' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.filter-group input[type="text"] {
  background-image: none;
  padding-right: 12px;
}
.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--cl-primary);
  box-shadow  : 0 0 0 3px rgba(23,107,135,.1);
}

/* Search Results Area */
.search-results {}
.result-header {
  display        : flex;
  justify-content: space-between;
  align-items    : center;
  margin-bottom  : 20px;
  flex-wrap      : wrap;
  gap            : 10px;
}
.result-count {
  font-size  : 15px;
  font-weight: 600;
  color      : var(--cl-text);
}
.result-count span { color: var(--cl-primary); }

/* Job List (search results layout) */
.job-list { display: flex; flex-direction: column; gap: 14px; }

.job-list-item {
  background   : var(--cl-white);
  border       : 1px solid var(--cl-border);
  border-radius: var(--radius);
  padding      : 20px 22px;
  display      : flex;
  justify-content: space-between;
  align-items  : flex-start;
  gap          : 16px;
  transition   : all var(--transition);
}
.job-list-item:hover {
  box-shadow  : 0 4px 20px var(--cl-shadow);
  border-color: var(--cl-medium);
}
.job-list-left { flex: 1; }
.job-list-right {
  display        : flex;
  flex-direction : column;
  align-items    : flex-end;
  gap            : 8px;
  min-width      : 130px;
  text-align     : right;
}

/* Pagination */
.pagination {
  display        : flex;
  justify-content: center;
  gap            : 6px;
  margin-top     : 36px;
  flex-wrap      : wrap;
}
.pagination a,
.pagination span {
  display      : inline-flex;
  align-items  : center;
  justify-content: center;
  width        : 38px;
  height       : 38px;
  border-radius: var(--radius-sm);
  border       : 1.5px solid var(--cl-border);
  color        : var(--cl-text);
  font-size    : 14px;
  font-weight  : 500;
  transition   : all var(--transition);
}
.pagination a:hover { background: var(--cl-lightest); border-color: var(--cl-medium); color: var(--cl-primary); }
.pagination .active { background: var(--cl-primary); color: #fff; border-color: var(--cl-primary); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.articles-page { padding: 48px 0; }
.article-page-header { margin-bottom: 32px; }

/* Single Article */
.article-single { padding: 48px 0; }
.article-single-header { margin-bottom: 32px; }
.article-single-title {
  font-size  : 2rem;
  font-weight: 800;
  color      : var(--cl-primary);
  line-height: 1.3;
  margin-bottom: 16px;
}
.article-meta {
  display    : flex;
  gap        : 20px;
  color      : var(--cl-muted);
  font-size  : 14px;
  flex-wrap  : wrap;
}
.article-meta span { display: flex; align-items: center; gap: 6px; }
.article-cover {
  border-radius: var(--radius);
  overflow     : hidden;
  max-height   : 420px;
  margin-bottom: 32px;
  background   : linear-gradient(135deg, var(--cl-primary), var(--cl-medium));
  display      : flex;
  align-items  : center;
  justify-content: center;
  min-height   : 200px;
}
.article-cover img { width: 100%; object-fit: cover; }
.article-cover i { font-size: 5rem; color: rgba(255,255,255,.4); }
.article-content {
  font-size  : 16px;
  line-height: 1.85;
  color      : var(--cl-text);
}
.article-content h2 {
  font-size  : 1.35rem;
  font-weight: 700;
  color      : var(--cl-primary);
  margin     : 28px 0 12px;
}
.article-content h3 {
  font-size  : 1.1rem;
  font-weight: 700;
  color      : var(--cl-primary-dark);
  margin     : 20px 0 8px;
}
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol {
  padding-left : 24px;
  margin-bottom: 16px;
}
.article-content li { margin-bottom: 6px; }
.article-content strong { color: var(--cl-primary); }

/* ============================================================
   JOB DETAIL PAGE
   ============================================================ */
.job-detail { padding: 48px 0; }

.job-detail-header {
  background   : var(--cl-lightest);
  border       : 1px solid var(--cl-border);
  border-radius: var(--radius);
  padding      : 32px;
  margin-bottom: 28px;
}
.job-detail-title {
  font-size  : 1.8rem;
  font-weight: 800;
  color      : var(--cl-primary);
  margin-bottom: 6px;
}
.job-detail-company {
  font-size  : 1.1rem;
  font-weight: 600;
  color      : var(--cl-muted);
  margin-bottom: 18px;
}
.job-detail-meta {
  display  : flex;
  flex-wrap: wrap;
  gap      : 16px;
  font-size: 14px;
  color    : var(--cl-text);
}
.job-detail-meta .meta-item {
  display    : flex;
  align-items: center;
  gap        : 6px;
  background : var(--cl-white);
  padding    : 7px 14px;
  border-radius: var(--radius-sm);
  border     : 1px solid var(--cl-border);
}
.job-detail-meta .meta-item i { color: var(--cl-primary); }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap    : 28px;
  align-items: start;
}

.detail-section {
  background   : var(--cl-white);
  border       : 1px solid var(--cl-border);
  border-radius: var(--radius);
  padding      : 28px;
  margin-bottom: 20px;
}
.detail-section h3 {
  font-size    : 1.05rem;
  font-weight  : 700;
  color        : var(--cl-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cl-lightest);
  display      : flex;
  align-items  : center;
  gap          : 8px;
}
.detail-section p, .detail-section li { font-size: 15px; line-height: 1.8; }

.contact-box {
  background   : var(--cl-lightest);
  border       : 1px solid var(--cl-border);
  border-radius: var(--radius);
  padding      : 24px;
  position     : sticky;
  top          : 80px;
}
.contact-box h3 {
  font-size    : 1rem;
  font-weight  : 700;
  color        : var(--cl-primary);
  margin-bottom: 18px;
  display      : flex;
  align-items  : center;
  gap          : 8px;
}
.contact-item {
  display      : flex;
  align-items  : center;
  gap          : 10px;
  margin-bottom: 14px;
  font-size    : 14px;
}
.contact-item i { color: var(--cl-primary); width: 20px; text-align: center; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding   : 14px 0;
  font-size : 13.5px;
  color     : var(--cl-muted);
  display   : flex;
  gap       : 6px;
  align-items: center;
}
.breadcrumb a { color: var(--cl-primary); }
.breadcrumb .sep { color: var(--cl-border); }

.page-banner .breadcrumb       { color: rgba(255,255,255,.75); }
.page-banner .breadcrumb a     { color: #fff; }
.page-banner .breadcrumb .sep  { color: rgba(255,255,255,.5); }

/* ============================================================
   PAGE BANNER
   ============================================================ */
.page-banner {
  background  : linear-gradient(135deg, var(--cl-primary) 0%, #0e3f52 100%);
  padding     : 40px 0;
  color       : #fff;
}
.page-banner h1 {
  font-size    : 1.8rem;
  font-weight  : 800;
  margin-bottom: 6px;
}
.page-banner p { opacity: .85; font-size: 15px; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align  : center;
  padding     : 60px 20px;
  color       : var(--cl-muted);
}
.empty-state i { font-size: 4rem; color: var(--cl-border); margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; color: var(--cl-text); margin-bottom: 8px; }

/* ============================================================
   FLASH MESSAGE
   ============================================================ */
.flash {
  padding      : 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size    : 14px;
  font-weight  : 500;
  display      : flex;
  align-items  : center;
  gap          : 10px;
}
.flash-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info    { background: var(--cl-lightest); color: var(--cl-primary); border: 1px solid var(--cl-light); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--cl-primary);
  color     : rgba(255,255,255,.85);
  padding   : 56px 0 0;
  margin-top: 60px;
}
.footer-grid {
  display              : grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap                  : 36px;
  margin-bottom        : 40px;
}
.footer-brand {
  font-size    : 1.4rem;
  font-weight  : 400;
  color        : #fff;
  margin-bottom: 14px;
  display      : flex;
  align-items  : center;
  gap          : 8px;
}
.footer-brand strong { font-weight: 800; }
.footer-col p { font-size: 13.5px; line-height: 1.7; }
.footer-col h4 {
  color        : #fff;
  font-size    : 14px;
  font-weight  : 700;
  margin-bottom: 16px;
  display      : flex;
  align-items  : center;
  gap          : 8px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  color      : rgba(255,255,255,.7);
  font-size  : 13.5px;
  display    : flex;
  align-items: center;
  gap        : 6px;
  transition : color var(--transition);
}
.footer-col ul a:hover { color: #fff; }
.footer-col ul a i { font-size: 10px; color: var(--cl-medium); }
.footer-bottom {
  border-top : 1px solid rgba(255,255,255,.12);
  padding    : 20px 0;
  text-align : center;
  font-size  : 13px;
  color      : rgba(255,255,255,.5);
}

/* ============================================================
   FORM STYLES (shared)
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-group label {
  display      : block;
  font-size    : 13.5px;
  font-weight  : 600;
  color        : var(--cl-text);
  margin-bottom: 6px;
}
.form-group label .required { color: #ef4444; margin-left: 2px; }
.form-control {
  width        : 100%;
  padding      : 10px 14px;
  border       : 1.5px solid var(--cl-border);
  border-radius: var(--radius-sm);
  font-family  : var(--font);
  font-size    : 15px;
  color        : var(--cl-text);
  background   : var(--cl-white);
  transition   : border-color var(--transition), box-shadow var(--transition);
  outline      : none;
}
.form-control:focus {
  border-color: var(--cl-primary);
  box-shadow  : 0 0 0 3px rgba(23,107,135,.1);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control {
  appearance   : none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23176B87' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap    : 16px;
}

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-body { background: #f1f5f9; min-height: 100vh; }

.admin-topbar {
  background : var(--cl-primary);
  height     : 60px;
  display    : flex;
  align-items: center;
  padding    : 0 24px;
  position   : sticky;
  top        : 0;
  z-index    : 900;
  box-shadow : 0 2px 8px rgba(0,0,0,.2);
  gap        : 16px;
}
.admin-topbar .brand {
  color      : #fff;
  font-size  : 1.1rem;
  font-weight: 700;
  display    : flex;
  align-items: center;
  gap        : 8px;
  margin-right: auto;
}
.admin-topbar a, .admin-topbar span {
  color    : rgba(255,255,255,.8);
  font-size: 14px;
  display  : flex;
  align-items: center;
  gap      : 6px;
  padding  : 6px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.admin-topbar a:hover { background: rgba(255,255,255,.15); color: #fff; }
.admin-topbar .user-info {
  border-left: 1px solid rgba(255,255,255,.2);
  padding-left: 16px;
  color      : rgba(255,255,255,.9);
}

.admin-container {
  display: flex;
  min-height: calc(100vh - 60px);
}

/* Admin Sidebar */
.admin-sidebar {
  width     : 240px;
  background: var(--cl-white);
  border-right: 1px solid #e2e8f0;
  padding   : 24px 0;
  position  : sticky;
  top       : 60px;
  height    : calc(100vh - 60px);
  overflow-y: auto;
  flex-shrink: 0;
}
.sidebar-section {
  padding     : 0 16px;
  margin-bottom: 8px;
}
.sidebar-section-title {
  font-size    : 11px;
  font-weight  : 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color        : var(--cl-muted);
  padding      : 12px 8px 6px;
}
.sidebar-link {
  display      : flex;
  align-items  : center;
  gap          : 10px;
  padding      : 10px 12px;
  border-radius: var(--radius-sm);
  color        : var(--cl-text);
  font-size    : 14px;
  font-weight  : 500;
  transition   : all var(--transition);
  text-decoration: none;
}
.sidebar-link:hover { background: var(--cl-lightest); color: var(--cl-primary); }
.sidebar-link.active { background: var(--cl-lightest); color: var(--cl-primary); font-weight: 700; }
.sidebar-link i { width: 18px; text-align: center; color: var(--cl-medium); }
.sidebar-link.active i { color: var(--cl-primary); }

/* Admin Main Content */
.admin-main { flex: 1; padding: 28px; overflow: auto; }

.admin-page-title {
  font-size    : 1.5rem;
  font-weight  : 800;
  color        : var(--cl-primary);
  margin-bottom: 6px;
  display      : flex;
  align-items  : center;
  gap          : 10px;
}
.admin-page-subtitle {
  color        : var(--cl-muted);
  font-size    : 14px;
  margin-bottom: 24px;
}

/* Stats Cards */
.stats-grid {
  display              : grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap                  : 16px;
  margin-bottom        : 32px;
}
.stat-card {
  background   : var(--cl-white);
  border-radius: var(--radius);
  padding      : 22px;
  border       : 1px solid #e2e8f0;
  display      : flex;
  align-items  : center;
  gap          : 16px;
}
.stat-icon {
  width        : 52px;
  height       : 52px;
  border-radius: 12px;
  display      : flex;
  align-items  : center;
  justify-content: center;
  font-size    : 1.4rem;
  flex-shrink  : 0;
}
.stat-card .num {
  font-size  : 2rem;
  font-weight: 800;
  color      : var(--cl-primary);
  line-height: 1;
}
.stat-card .lbl {
  font-size : 13px;
  color     : var(--cl-muted);
  margin-top: 4px;
}

/* Admin Table */
.admin-card {
  background   : var(--cl-white);
  border-radius: var(--radius);
  border       : 1px solid #e2e8f0;
  overflow     : hidden;
}
.admin-card-header {
  display        : flex;
  align-items    : center;
  justify-content: space-between;
  padding        : 18px 22px;
  border-bottom  : 1px solid #f1f5f9;
  gap            : 12px;
}
.admin-card-header h3 {
  font-size : 1rem;
  font-weight: 700;
  color     : var(--cl-primary);
  display   : flex;
  align-items: center;
  gap       : 8px;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  background   : var(--cl-lightest);
  padding      : 12px 16px;
  text-align   : left;
  font-size    : 12.5px;
  font-weight  : 700;
  color        : var(--cl-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--cl-border);
}
.admin-table td {
  padding     : 14px 16px;
  font-size   : 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--cl-lightest); }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Admin Form Card */
.admin-form-card {
  background   : var(--cl-white);
  border-radius: var(--radius);
  border       : 1px solid #e2e8f0;
  padding      : 28px;
}

/* Toggle Switch */
.toggle-label {
  display    : flex;
  align-items: center;
  gap        : 8px;
  cursor     : pointer;
  font-size  : 14px;
}
.toggle-switch {
  position     : relative;
  display      : inline-block;
  width        : 44px;
  height       : 24px;
  flex-shrink  : 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position     : absolute;
  inset        : 0;
  background   : #cbd5e1;
  border-radius: 24px;
  transition   : background var(--transition);
}
.toggle-slider::before {
  content      : '';
  position     : absolute;
  width        : 18px;
  height       : 18px;
  background   : #fff;
  border-radius: 50%;
  top          : 3px;
  left         : 3px;
  transition   : transform var(--transition);
  box-shadow   : 0 1px 4px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--cl-primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Admin Login Page */
.login-page {
  min-height : 100vh;
  display    : flex;
  align-items: center;
  justify-content: center;
  background : linear-gradient(135deg, var(--cl-primary) 0%, #0a2e3a 100%);
  padding    : 20px;
}
.login-box {
  background   : var(--cl-white);
  border-radius: 20px;
  padding      : 44px 40px;
  width        : 100%;
  max-width    : 420px;
  box-shadow   : 0 20px 60px rgba(0,0,0,.25);
}
.login-logo {
  text-align   : center;
  margin-bottom: 32px;
}
.login-logo i { font-size: 3rem; color: var(--cl-primary); }
.login-logo h1 {
  font-size  : 1.6rem;
  font-weight: 800;
  color      : var(--cl-primary);
  margin-top : 10px;
}
.login-logo p { color: var(--cl-muted); font-size: 14px; margin-top: 4px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  /* Navbar */
  .hamburger { display: flex; }
  .nav-links {
    position   : fixed;
    top        : 64px;
    left       : 0;
    right      : 0;
    background : var(--cl-primary);
    flex-direction: column;
    align-items: stretch;
    padding    : 16px;
    gap        : 4px;
    transform  : translateY(calc(-100% - 64px));
    transition : transform 0.3s ease;
    z-index    : 999;
    box-shadow : 0 8px 24px rgba(0,0,0,.3);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a, .nav-links .nav-user { padding: 12px 16px; border-radius: var(--radius-sm); }
  .nav-links .btn-nav { text-align: center; justify-content: center; }

  /* Search layout */
  .search-layout {
    grid-template-columns: 1fr;
    padding              : 28px 0;
  }
  .filter-sidebar { position: static; }

  /* Detail layout */
  .detail-layout { grid-template-columns: 1fr; }
  .contact-box   { position: static; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* Admin */
  .admin-sidebar { display: none; }
  .admin-main    { padding: 20px 16px; }
}

@media (max-width: 768px) {
  .hero h1        { font-size: 1.8rem; }
  .hero-search    { flex-direction: column; border-radius: var(--radius); }
  .hero-search input { border-radius: var(--radius) var(--radius) 0 0; }
  .hero-search button { border-radius: 0 0 var(--radius) var(--radius); justify-content: center; }
  .hero-stats     { gap: 24px; }
  .hero-stat .num { font-size: 1.6rem; }

  .section-title { font-size: 1.4rem; }
  .jobs-grid     { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }

  .job-list-item { flex-direction: column; }
  .job-list-right { align-items: flex-start; min-width: auto; text-align: left; }

  .form-row  { grid-template-columns: 1fr; }

  .job-detail-title  { font-size: 1.4rem; }
  .article-single-title { font-size: 1.5rem; }

  .footer-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats      { gap: 16px; }
  .login-box       { padding: 32px 24px; }
  .stats-grid      { grid-template-columns: 1fr; }
}

/* ============================================================
   ACTIVITY NEWS PAGE
   ============================================================ */

/* ── List: Grid of activity cards ── */
.activities-page { padding: 48px 0; }

.activities-grid {
  display              : grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap                  : 28px;
}

.activity-card {
  background   : var(--cl-white);
  border       : 1px solid var(--cl-border);
  border-radius: var(--radius);
  overflow     : hidden;
  transition   : all var(--transition);
  display      : flex;
  flex-direction: column;
}
.activity-card:hover {
  box-shadow : 0 10px 32px var(--cl-shadow);
  border-color: var(--cl-medium);
  transform  : translateY(-4px);
}

/* Thumbnail */
.activity-card-img-wrap {
  display     : block;
  overflow    : hidden;
  height      : 220px;
  background  : linear-gradient(135deg, var(--cl-primary) 0%, var(--cl-medium) 100%);
  flex-shrink : 0;
}
.activity-card-img-wrap img {
  width     : 100%;
  height    : 100%;
  object-fit: cover;
  object-position: center;
  display   : block;
  transition: transform 0.4s ease;
}
.activity-card:hover .activity-card-img-wrap img { transform: scale(1.05); }

.activity-card-placeholder {
  width           : 100%;
  height          : 100%;
  display         : flex;
  align-items     : center;
  justify-content : center;
}
.activity-card-placeholder i { font-size: 3.5rem; color: rgba(255,255,255,.35); }

/* Card body */
.activity-card-body {
  padding        : 20px 22px 22px;
  flex           : 1;
  display        : flex;
  flex-direction : column;
  gap            : 10px;
}

.activity-card-meta {
  display    : flex;
  gap        : 16px;
  font-size  : 12.5px;
  color      : var(--cl-muted);
  flex-wrap  : wrap;
}
.activity-card-meta span { display: flex; align-items: center; gap: 5px; }

.activity-card-title {
  font-size   : 1.05rem;
  font-weight : 700;
  line-height : 1.45;
  color       : var(--cl-dark);
  margin      : 0;
}
.activity-card-title a {
  color      : var(--cl-dark);
  transition : color var(--transition);
}
.activity-card-title a:hover { color: var(--cl-primary); }

.activity-card-desc {
  font-size  : 14px;
  color      : var(--cl-muted);
  line-height: 1.7;
  flex       : 1;
}

.activity-read-more {
  display     : inline-flex;
  align-items : center;
  gap         : 6px;
  font-size   : 13.5px;
  font-weight : 600;
  color       : var(--cl-primary);
  margin-top  : auto;
  transition  : gap var(--transition);
}
.activity-read-more:hover { gap: 10px; color: var(--cl-primary-dark); }

/* ── Detail page layout ── */
.activity-single { padding: 48px 0; }

.activity-detail-layout {
  display               : grid;
  grid-template-columns : 1fr 300px;
  gap                   : 32px;
  align-items           : start;
}

.activity-main {}

.activity-single-header  { margin-bottom: 24px; }
.activity-single-title {
  font-size    : 1.9rem;
  font-weight  : 800;
  color        : var(--cl-primary);
  line-height  : 1.35;
  margin-bottom: 14px;
}

/* ── Professional 3-image gallery ── */
.activity-gallery {
  border-radius: var(--radius);
  overflow     : hidden;
  margin-bottom: 32px;
  gap          : 4px;
  display      : grid;
}

/* 1 image — full width */
.activity-gallery-1 {
  grid-template-columns: 1fr;
  grid-template-rows   : 420px;
}
.activity-gallery-1 .gallery-item-1 { grid-column: 1; grid-row: 1; }

/* 2 images — side by side */
.activity-gallery-2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows   : 360px;
}

/* 3 images — hero left + 2 stacked right */
.activity-gallery-3 {
  grid-template-columns : 2fr 1fr;
  grid-template-rows    : 200px 200px;
}
.activity-gallery-3 .gallery-item-1 {
  grid-column: 1;
  grid-row   : 1 / 3;
}
.activity-gallery-3 .gallery-item-2 { grid-column: 2; grid-row: 1; }
.activity-gallery-3 .gallery-item-3 { grid-column: 2; grid-row: 2; }

/* Image cells */
.gallery-item {
  overflow       : hidden;
  background     : var(--cl-lightest);
  position       : relative;
}
.gallery-item img {
  width         : 100%;
  height        : 100%;
  object-fit    : cover;
  object-position: center;
  display       : block;
  transition    : transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Fallback when no image */
.activity-no-img {
  border-radius  : var(--radius);
  background     : linear-gradient(135deg, var(--cl-primary), var(--cl-medium));
  height         : 260px;
  display        : flex;
  align-items    : center;
  justify-content: center;
  margin-bottom  : 32px;
}
.activity-no-img i { font-size: 5rem; color: rgba(255,255,255,.4); }

/* Description */
.activity-description {
  font-size  : 16px;
  line-height: 1.9;
  color      : var(--cl-text);
  white-space: pre-line;
  margin-bottom: 32px;
  padding    : 28px;
  background : var(--cl-lightest);
  border-radius: var(--radius);
  border-left: 4px solid var(--cl-primary);
}

.activity-back-btn { margin-top: 8px; }

/* ── Sidebar ── */
.activity-sidebar { position: sticky; top: 80px; }

.sidebar-activity-item {
  display        : flex;
  gap            : 12px;
  padding        : 14px 0;
  border-bottom  : 1px solid var(--cl-lightest);
  align-items    : flex-start;
}
.sidebar-activity-item:last-child { border-bottom: none; }

.sidebar-activity-thumb {
  flex-shrink : 0;
  width       : 68px;
  height      : 50px;
  border-radius: var(--radius-sm);
  overflow    : hidden;
  display     : block;
  background  : var(--cl-lightest);
}
.sidebar-activity-thumb img {
  width        : 100%;
  height       : 100%;
  object-fit   : cover;
  object-position: center;
}

.sidebar-activity-info { flex: 1; }
.sidebar-activity-title {
  font-size  : 13.5px;
  font-weight: 600;
  color      : var(--cl-primary);
  line-height: 1.45;
  display    : block;
  margin-bottom: 5px;
}
.sidebar-activity-title:hover { color: var(--cl-primary-dark); }
.sidebar-activity-info small {
  font-size : 11.5px;
  color     : var(--cl-muted);
  display   : flex;
  align-items: center;
  gap       : 4px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .activity-detail-layout { grid-template-columns: 1fr; }
  .activity-sidebar        { position: static; }
}
@media (max-width: 640px) {
  .activity-gallery-3 {
    grid-template-columns: 1fr;
    grid-template-rows   : 220px 160px 160px;
  }
  .activity-gallery-3 .gallery-item-1 { grid-column: 1; grid-row: 1; }
  .activity-gallery-3 .gallery-item-2 { grid-column: 1; grid-row: 2; }
  .activity-gallery-3 .gallery-item-3 { grid-column: 1; grid-row: 3; }
  .activity-gallery-2 { grid-template-columns: 1fr; grid-template-rows: 200px 200px; }
  .activity-single-title { font-size: 1.4rem; }
  .activities-grid { grid-template-columns: 1fr; }
}

/* ── Activity PDF Attachment ── */
.activity-attachment {
  margin: 24px 0 8px;
}
.activity-attachment-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  padding: 10px 22px;
}
.activity-attachment-btn i { font-size: 1.1rem; }
