/* ============================================================
   IJHTMS — International Journal of Hospitality, Tourism
   & Management Studies · Modern UI
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Lora:ital,wght@0,500;0,600;1,500&display=swap');

:root {
  --primary:       #0f4c5c;   /* deep teal   */
  --primary-dark:  #093642;
  --accent:        #e36414;   /* saffron     */
  --accent-soft:   #fdf0e5;
  --gold:          #c9a227;
  --ink:           #1a2332;
  --muted:         #5c6b7a;
  --line:          #e3e9ef;
  --bg:            #f6f8fa;
  --card:          #ffffff;
  --ok:            #1d8a4e;
  --warn:          #b45309;
  --bad:           #b3261e;
  --radius:        14px;
  --shadow:        0 4px 24px rgba(15, 76, 92, .08);
  --shadow-lg:     0 12px 40px rgba(15, 76, 92, .14);
  --font-body:     'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif:    'Lora', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.65; }
img { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Top strip ---------- */
.topstrip {
  background: var(--primary-dark); color: #cfe3ea;
  font-size: .8rem; padding: .4rem 0;
}
.topstrip .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.topstrip a { color: #ffd9b8; font-weight: 600; }

/* ---------- Header / brand ---------- */
.masthead { background: var(--card); border-bottom: 1px solid var(--line); }
.masthead .container { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 0; }
.brand-logo {
  width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), #1b7a8c 60%, var(--accent));
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .5px;
  box-shadow: var(--shadow);
}
.brand-title { font-family: var(--font-serif); font-size: clamp(1.05rem, 2.4vw, 1.55rem); font-weight: 600; color: var(--primary-dark); line-height: 1.25; }
.brand-sub { font-size: .78rem; color: var(--muted); letter-spacing: .4px; margin-top: .15rem; }
.brand-sub strong { color: var(--accent); }

/* ---------- Nav ---------- */
.navbar { background: var(--primary); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; flex-wrap: wrap; list-style: none; }
.nav-links a {
  display: block; padding: .85rem 1rem; color: #dcebf0;
  font-size: .86rem; font-weight: 600; letter-spacing: .2px;
  border-bottom: 3px solid transparent; transition: .2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; border-bottom-color: var(--accent); background: rgba(255,255,255,.06); }
.nav-cta {
  background: var(--accent); color: #fff !important; border-radius: 999px;
  padding: .5rem 1.2rem !important; margin-block: .45rem; border-bottom: none !important;
  box-shadow: 0 3px 10px rgba(227,100,20,.4);
}
.nav-cta:hover { filter: brightness(1.08); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; padding: .6rem 0; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 420px at 85% -10%, rgba(227,100,20,.28), transparent 60%),
    radial-gradient(900px 480px at -10% 110%, rgba(201,162,39,.22), transparent 55%),
    linear-gradient(140deg, var(--primary-dark) 0%, var(--primary) 55%, #16606f 100%);
  color: #fff; padding: 4.2rem 0 4.6rem;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px); border-radius: 999px;
  font-size: .78rem; font-weight: 600; padding: .35rem 1rem; margin-bottom: 1.2rem;
}
.hero h1 { font-family: var(--font-serif); font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 600; line-height: 1.25; margin-bottom: 1rem; }
.hero h1 em { color: #ffc98f; font-style: italic; }
.hero p.lead { color: #d6e6ec; max-width: 56ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700; font-size: .92rem;
  padding: .78rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer; transition: .2s;
}
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(227,100,20,.42); }
.btn-accent:hover { transform: translateY(-2px); filter: brightness(1.07); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-sm { padding: .4rem .95rem; font-size: .8rem; }
.btn-danger { background: #fbeaea; color: var(--bad); }
.btn-danger:hover { background: var(--bad); color: #fff; }

/* Hero info card */
.hero-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(14px); border-radius: 20px; padding: 1.6rem; box-shadow: var(--shadow-lg);
}
.hero-card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; color: #ffc98f; margin-bottom: 1rem; }
.hero-card ul { list-style: none; }
.hero-card li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed rgba(255,255,255,.18); font-size: .88rem; }
.hero-card li:last-child { border-bottom: 0; }
.hero-card li span:last-child { font-weight: 700; color: #fff; }

/* ---------- Stats band ---------- */
.stats { margin-top: -2.4rem; position: relative; z-index: 5; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.stat {
  background: var(--card); border-radius: var(--radius); padding: 1.3rem 1.1rem;
  text-align: center; box-shadow: var(--shadow); border-top: 4px solid var(--accent);
}
.stat b { display: block; font-size: 1.55rem; color: var(--primary); }
.stat span { font-size: .8rem; color: var(--muted); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 3.6rem 0; }
.section-alt { background: var(--card); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.4rem; }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; }
.section-head h2, .page-title { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--primary-dark); margin: .4rem 0 .6rem; }
.section-head p { color: var(--muted); font-size: .95rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); transition: .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.3rem; margin-bottom: 1rem;
  background: var(--accent-soft); color: var(--accent);
}
.card h3 { font-size: 1.02rem; color: var(--primary-dark); margin-bottom: .5rem; }
.card p { font-size: .88rem; color: var(--muted); }

/* ---------- Content pages ---------- */
.page-hero { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; padding: 2.6rem 0; }
.page-hero .page-title { color: #fff; margin: 0; }
.page-hero .crumbs { font-size: .8rem; color: #b9d4dc; margin-top: .4rem; }
.page-hero .crumbs a { color: #ffd9b8; }
.prose { max-width: 60rem; }
.prose h3 { font-family: var(--font-serif); color: var(--primary-dark); margin: 1.6rem 0 .6rem; }
.prose p, .prose li { color: #33404e; font-size: .95rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: .6rem 0 1rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; background: var(--card); font-size: .88rem; min-width: 640px; }
table.data th {
  background: var(--primary); color: #fff; text-align: left;
  padding: .8rem 1rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .8px;
}
table.data td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:hover td { background: #f2f7f9; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: .22rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .3px; }
.badge-submitted        { background: #e8f0fe; color: #1a56db; }
.badge-under_review     { background: #fef3c7; color: var(--warn); }
.badge-revision_required{ background: #fde8e8; color: var(--bad); }
.badge-accepted         { background: #def7ec; color: var(--ok); }
.badge-rejected         { background: #f3f4f6; color: #4b5563; }
.badge-published        { background: #e5f6f0; color: var(--ok); border: 1px solid var(--ok); }

/* ---------- Forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: .8rem; font-weight: 700; color: var(--primary-dark); }
label .req { color: var(--bad); }
input[type=text], input[type=email], input[type=password], input[type=tel],
select, textarea, input[type=file] {
  font-family: var(--font-body); font-size: .9rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: .68rem .9rem;
  background: #fbfcfd; transition: .2s; width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px rgba(15,76,92,.1);
}
textarea { resize: vertical; min-height: 110px; }
.hint { font-size: .74rem; color: var(--muted); }

/* ---------- Alerts ---------- */
.alert { border-radius: 10px; padding: .85rem 1.1rem; font-size: .88rem; font-weight: 600; margin-bottom: 1.2rem; }
.alert-error   { background: #fde8e8; color: var(--bad);  border: 1px solid #f5c2c0; }
.alert-success { background: #def7ec; color: var(--ok);   border: 1px solid #b7e6cf; }
.alert-info    { background: #e8f0fe; color: #1a56db;     border: 1px solid #c3d4f7; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - 120px); display: grid; place-items: center; padding: 3rem 1rem; }
.auth-box { width: min(460px, 100%); }
.auth-box.wide { width: min(680px, 100%); }
.auth-brand { text-align: center; margin-bottom: 1.4rem; }
.auth-brand .brand-logo { margin-inline: auto; margin-bottom: .7rem; }

/* ---------- Dashboard ---------- */
.dash-bar { background: var(--card); border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.dash-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem; }
.dash-user { font-size: .86rem; color: var(--muted); }
.dash-user b { color: var(--primary-dark); }
.file-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: .3rem .7rem; font-size: .78rem; margin: .15rem .25rem .15rem 0;
}
.file-chip .ext { background: var(--primary); color: #fff; border-radius: 5px; padding: .05rem .4rem; font-size: .65rem; font-weight: 800; }

details.sub-details { border-top: 1px solid var(--line); }
details.sub-details summary { cursor: pointer; padding: .4rem 0; font-size: .8rem; color: var(--primary); font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: var(--primary-dark); color: #a9c6cf; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding: 2.8rem 0; }
.footer h4 { color: #fff; font-size: .88rem; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: .45rem; font-size: .85rem; }
.footer a { color: #a9c6cf; }
.footer a:hover { color: #ffc98f; }
.index-logos { display: flex; flex-wrap: wrap; gap: .5rem; }
.index-logos span {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px; padding: .35rem .8rem; font-size: .72rem; font-weight: 700; color: #dcebf0;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1rem 0; font-size: .78rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-2, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; width: 100%;
    position: absolute; top: 100%; left: 0; background: var(--primary);
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
  }
  .nav-links.open { display: flex; }
  .navbar .container { position: relative; flex-wrap: wrap; }
  .nav-cta { margin: .6rem 1rem; text-align: center; }
}
