/* Malietto — travel site styles */
:root {
    --primary: #0e7c86;
    --primary-dark: #0a5f66;
    --accent: #f5a623;
    --dark: #1a2b33;
    --muted: #5d7280;
    --light: #f4f8f9;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(14, 124, 134, 0.12);
    --font: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.logo { font-size: 26px; font-weight: 800; color: var(--primary); letter-spacing: .5px; }
.logo span { color: var(--accent); }
.logo-img img { height: 46px; width: auto; }
.main-nav { display: flex; gap: 26px; }
.main-nav a { font-weight: 600; color: var(--dark); font-size: 15px; }
.main-nav a.active, .main-nav a:hover { color: var(--primary); }
.lang-switch { display: flex; gap: 6px; }
.lang-switch a { font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 20px; color: var(--muted); border: 1px solid #dfe7ea; }
.lang-switch a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.lang-select { font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 10px; border: 1px solid #dfe7ea; color: var(--ink); background: #fff; cursor: pointer; max-width: 150px; }
/* RTL basics */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .header-inner, [dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .card-meta, [dir="rtl"] .testi-who { text-align: right; }
.burger { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--dark); }

/* Hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; color: #fff; background: #0a2a30 url('../img/hero.jpg') center/cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,30,35,.55), rgba(6,30,35,.25) 50%, rgba(6,30,35,.65)); }
.hero-inner { position: relative; z-index: 1; padding: 80px 0; max-width: 720px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.15; font-weight: 800; margin-bottom: 16px; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.hero p { font-size: 18px; opacity: .95; margin-bottom: 30px; max-width: 560px; }
.btn { display: inline-block; padding: 14px 30px; border-radius: 30px; font-weight: 700; font-size: 16px; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #3a2a00; box-shadow: 0 8px 24px rgba(245,166,35,.4); }
.btn-primary:hover { color: #3a2a00; }
.btn-outline { background: rgba(255,255,255,.14); color: #fff; border: 2px solid rgba(255,255,255,.7); margin-left: 12px; }
.btn-outline:hover { color: #fff; background: rgba(255,255,255,.25); }
.btn-teal { background: var(--primary); color: #fff; }
.btn-teal:hover { color: #fff; }

/* Sections */
.section { padding: 72px 0; }
.section.light { background: var(--light); }
.section-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 44px; font-size: 17px; }

/* Destination cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(14,124,134,.18); }
.card-img { height: 220px; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.07); }
.card-price { position: absolute; left: 14px; bottom: 14px; background: rgba(10,42,48,.85); color: #fff; font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 20px; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-country { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.card h3 { font-size: 21px; margin-bottom: 6px; }
.card-tag { color: var(--muted); font-size: 14px; font-style: italic; margin-bottom: 10px; }
.card-desc { color: var(--muted); font-size: 14.5px; flex: 1; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf1f2; font-size: 13.5px; color: var(--muted); }
.card-link { font-weight: 700; }
.center { text-align: center; margin-top: 40px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service { background: #fff; border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow); text-align: center; }
.service-icon { font-size: 42px; margin-bottom: 14px; }
.service h3 { font-size: 18px; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 14.5px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { font-size: 44px; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--muted); font-size: 15px; }

/* Testimonials */
.testis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi { background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.testi q { font-size: 15.5px; color: var(--dark); flex: 1; quotes: '“' '”'; }
.testi-who { margin-top: 18px; font-weight: 700; }
.testi-where { color: var(--primary); font-size: 13.5px; }

/* CTA banner */
.cta-banner { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); border-radius: 22px; padding: 54px 48px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; box-shadow: var(--shadow); }
.cta-banner h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.cta-banner p { opacity: .92; max-width: 560px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.contact-card { background: var(--light); border-radius: var(--radius); padding: 34px; }
.contact-card h3 { margin-bottom: 14px; }
.contact-line { display: flex; gap: 12px; align-items: center; margin: 12px 0; font-size: 17px; }
.contact-line .ico { font-size: 22px; }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; padding: 64px 0; text-align: center; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.page-hero p { opacity: .92; max-width: 640px; margin: 0 auto; font-size: 17px; }

/* Destination detail */
.dest-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
.dest-detail img { border-radius: 20px; box-shadow: var(--shadow); width: 100%; }
.dest-info .card-country { font-size: 13px; }
.dest-info h1 { font-size: clamp(30px, 4vw, 44px); margin: 6px 0 4px; }
.dest-tag { color: var(--muted); font-style: italic; font-size: 18px; margin-bottom: 18px; }
.dest-info p.desc { font-size: 17px; color: #33454e; margin-bottom: 24px; }
.fact-row { display: flex; gap: 30px; margin-bottom: 28px; }
.fact b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.fact span { font-size: 20px; font-weight: 700; }

/* Forms */
.form-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 40px; max-width: 720px; margin: 0 auto; }
.form-card h2 { margin-bottom: 6px; }
.form-sub { color: var(--muted); margin-bottom: 26px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 15px; }
.field label .req { color: #d33; }
.field input[type=text], .field input[type=email], .field input[type=tel],
.field input[type=password],
.field select, .field textarea { width: 100%; padding: 13px 15px; border: 1.5px solid #d9e4e8; border-radius: 10px; font-size: 15px; font-family: inherit; background: #fbfdfd; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.alert { border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; font-weight: 600; }
.alert-error { background: #fdecec; color: #a02020; border: 1px solid #f5c2c2; }
.alert-success { background: #e9f8ef; color: #1c6b32; border: 1px solid #bfe6cc; }
.success-box { text-align: center; padding: 40px 20px; }
.success-box .big { font-size: 60px; margin-bottom: 16px; }
.success-box h2 { margin-bottom: 10px; }
.success-box p { color: var(--muted); margin-bottom: 26px; }

/* Why-work-with-us */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 50px; }

/* Admin */
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 40px 4%; }
.login-card { max-width: 420px; margin: 80px auto; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 40px 36px; }
.login-card h1 { font-size: 24px; margin-bottom: 22px; text-align: center; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.admin-top h1 { font-size: 28px; }
.admin-links a { margin-left: 16px; font-weight: 600; font-size: 14.5px; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); font-size: 14.5px; }
.data-table th, .data-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid #eef2f3; vertical-align: top; }
.data-table th { background: var(--light); font-size: 12.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.data-table tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 700; }
.badge.new { background: #e3f2fd; color: #1565c0; }
.badge.reviewed { background: #fff3e0; color: #e65100; }
.badge.accepted { background: #e8f5e9; color: #2e7d32; }
.badge.rejected { background: #fce4ec; color: #c62828; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 30px; }
.detail-box { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 26px; }
.detail-box h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 12px; }
.detail-box p { white-space: pre-wrap; }
.doc-list { list-style: none; }
.doc-list li { margin: 10px 0; }
.doc-list a { font-weight: 600; }
.status-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.status-form select { padding: 10px 14px; border-radius: 10px; border: 1.5px solid #d9e4e8; font-size: 15px; }
.btn-small { padding: 9px 20px; font-size: 14px; border-radius: 24px; }
.btn-danger { background: #d33; color: #fff; }
.btn-danger:hover { color: #fff; }
.table-wrap { overflow-x: auto; }
.badge.active { background: #e3f2fd; color: #1565c0; }
.badge.hired { background: #e8f5e9; color: #2e7d32; }

/* Candidate portal */
.fld { display: block; margin-bottom: 16px; }
.fld > span { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; }
.fld input[type="text"], .fld input[type="email"], .fld input[type="password"],
.fld input[type="file"], .fld select, .fld textarea {
    width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid #d9e4e8;
    font-size: 15px; font-family: inherit; background: #fff;
}
.fld textarea { resize: vertical; }
.muted { color: var(--muted); }
.form-ok { background: #e8f5e9; color: #2e7d32; border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.form-error { background: #fce4ec; color: #c62828; border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.steps { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.step { flex: 1 1 0; min-width: 120px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 14px 10px; text-align: center; opacity: .55; }
.step.done { opacity: 1; border: 2px solid #2e7d32; }
.step.current { opacity: 1; border: 2px solid var(--primary); }
.step-n { width: 34px; height: 34px; line-height: 34px; border-radius: 50%; background: #eef2f3; font-weight: 800; margin: 0 auto 8px; }
.step.done .step-n { background: #2e7d32; color: #fff; }
.step.current .step-n { background: var(--primary); color: #fff; }
.step-t { font-size: 13px; font-weight: 600; }
.timer-box { background: #fff8e1; border: 1.5px solid #ffca28; border-radius: 12px; padding: 14px 18px; margin-bottom: 24px; font-size: 17px; }
.timer-box.overdue { background: #fce4ec; border-color: #c62828; }
.timer-warn { margin-top: 8px; font-size: 14.5px; color: #c62828; font-weight: 600; }
.link-danger { background: none; border: 0; color: #c62828; cursor: pointer; font-size: 14.5px; padding: 0; margin-left: 10px; }

/* Footer */
.site-footer { background: var(--dark); color: #c8d6db; padding: 54px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin: 8px 0; }
.footer-grid a { color: #c8d6db; }
.footer-grid a:hover { color: #fff; }
.footer-logo { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-logo span { color: var(--accent); }
.footer-bottom { border-top: 1px solid #2c3f47; padding-top: 22px; display: flex; justify-content: space-between; font-size: 13.5px; flex-wrap: wrap; gap: 10px; }

/* Responsive */
@media (max-width: 960px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .services { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .testis { grid-template-columns: 1fr; }
    .perks { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .dest-detail { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 18px 4%; gap: 14px; box-shadow: 0 12px 24px rgba(0,0,0,.1); }
    .main-nav.open { display: flex; }
    .burger { display: block; }
    .site-header { position: sticky; }
    .header-inner { position: relative; }
    .cards { grid-template-columns: 1fr; }
    .form-2col { grid-template-columns: 1fr; }
    .services { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .hero { min-height: 64vh; }
    .btn-outline { margin-left: 0; margin-top: 10px; }
}

/* Admin dashboard stat cards */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 0 0 24px; }
.stat-card { background: #fff; border: 1px solid #e3ecef; border-radius: 12px; padding: 14px; text-align: center; }
.stat-card.warn { border-color: #e8a0a0; background: #fff5f5; }
.stat-card.warn .stat-n { color: #c0392b; }
.stat-n { font-size: 28px; font-weight: 700; color: #0e7c7b; }
.stat-l { font-size: 12px; color: #5a6b73; margin-top: 4px; }
.stat-card.small .stat-n { font-size: 22px; }

/* Admin timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid #d7e6e6; margin-left: 6px; position: relative; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: #0e7c7b; }
.timeline .t-time { color: #8a9aa1; font-size: 12px; }

/* Admin notes */
.note-item { background: #fffbe8; border: 1px solid #eee3b0; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; font-size: 14px; }
.note-item .t-time { color: #8a9aa1; font-size: 12px; }

/* Admin filters */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar input[type="search"], .filter-bar select { padding: 8px 10px; border: 1px solid #cfdade; border-radius: 8px; font-size: 14px; }
.filter-bar input[type="search"] { flex: 1; min-width: 180px; }
