/* ============================================================
   Portfolio — Complete Stylesheet
   Watercolor Artistic Theme
   ============================================================ */

/* ── CSS Variables (overridden dynamically via inline style on :root) ── */
:root {
  --blue:        #1a3a6b;
  --blue-light:  #2563bc;
  --orange:      #e8651a;
  --coral:       #f07240;
  --teal:        #0f7b7b;
  --teal-light:  #2aacac;
  --purple:      #7c3aed;
  --yellow:      #f5a623;
  --red:         #e53935;
  --bg:          #faf8f4;
  --bg-card:     #ffffff;
  --text:        #2d2d2d;
  --text-muted:  #666666;
  --radius:      16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.13);
  --sidebar-w:   250px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ── Container ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Typography helpers ── */
.section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--orange);
  text-align: center; margin-bottom: 6px;
}
.section-script {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--blue); text-align: center;
  margin-bottom: 8px; line-height: 1.2;
}

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 12px 28px;
  border-radius: 50px; font-family: 'Poppins', sans-serif;
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: transform .18s, box-shadow .18s, opacity .18s;
  border: none; text-align: center; line-height: 1.4;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.16); }
.btn-primary { background: var(--blue);   color: #fff; }
.btn-teal    { background: var(--teal);   color: #fff; }
.btn-orange  { background: var(--orange); color: #fff; }
.btn-purple  { background: var(--purple); color: #fff; }
.btn-danger  { background: var(--red);    color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-sm { padding: 7px 18px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ── Alerts ── */
.alert-success {
  background: #e8f5e9; border-left: 4px solid #2e7d32;
  color: #1b5e20; padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem;
}
.alert-error {
  background: #ffebee; border-left: 4px solid #c62828;
  color: #b71c1c; padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem;
}

/* ── Badges ── */
.badge { padding: 3px 10px; border-radius: 50px; font-size: 0.74rem; font-weight: 600; display: inline-block; }
.badge-green  { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-red    { background: #fee2e2; color: #991b1b; }

/* ══════════════════════════════════════════════
   PUBLIC SITE
══════════════════════════════════════════════ */

/* ── Navbar ── */
.site-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(250,248,244,0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow .3s;
}
.site-navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.09); }
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--blue); }
.nav-logo span { color: var(--orange); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-size: 0.87rem; font-weight: 500; color: var(--text);
  position: relative; padding-bottom: 2px; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--orange); transition: width .3s;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--blue); border-radius: 2px; transition: .3s; }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding-top: 68px;
  background: radial-gradient(ellipse at 60% 40%, #fff9f0 0%, #faf8f4 60%, #f0f5ff 100%);
}
.splash { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .2; pointer-events: none; }
.splash-tl { width: 500px; height: 500px; top: -120px; left: -160px; background: radial-gradient(circle, #f5a623, #e8651a, #f5df99); }
.splash-tr { width: 460px; height: 460px; top: -80px;  right: -140px; background: radial-gradient(circle, #a78bfa, #7c3aed, #c4b5fd); }
.splash-bl { width: 360px; height: 360px; bottom: -100px; left: -80px; background: radial-gradient(circle, #0f7b7b, #2aacac, #93c5fd); }
.splash-br { width: 400px; height: 400px; bottom: -80px; right: -80px; background: radial-gradient(circle, #fda4af, #f07240, #fef08a); }
.float-icon { position: absolute; font-size: 2.4rem; animation: floatAnim 5s ease-in-out infinite; opacity: .72; pointer-events: none; }
.float-bulb  { top: 18%; left: 10%;   animation-delay: 0s;   font-size: 3rem; }
.float-book  { top: 22%; right: 9%;   animation-delay: 1.5s; font-size: 2.8rem; }
.float-star  { bottom: 28%; left: 14%; animation-delay: .8s; }
.float-plane { bottom: 32%; right: 12%; animation-delay: 2.2s; font-size: 2rem; }
@keyframes floatAnim { 0%,100%{transform:translateY(0) rotate(-3deg)} 50%{transform:translateY(-18px) rotate(3deg)} }

.hero-content { position: relative; z-index: 2; text-align: center; padding: 60px 24px 80px; animation: fadeUp .9s ease both; }
@keyframes fadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

.hero-name {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(3rem, 8vw, 5.8rem);
  color: var(--blue); line-height: 1; margin-bottom: 10px;
  text-shadow: 2px 4px 12px rgba(26,58,107,.1);
}
.hero-tagline {
  font-size: clamp(.9rem, 2.5vw, 1.15rem); font-weight: 500;
  letter-spacing: 4px; color: var(--orange); margin-bottom: 44px; text-transform: uppercase;
}
.hero-portrait-wrap { position: relative; display: inline-block; margin: 0 auto 40px; }
.hero-portrait-ring {
  position: absolute; inset: -12px; border-radius: 50%;
  background: conic-gradient(var(--orange), var(--purple), var(--teal), var(--yellow), var(--orange));
  animation: spin 8s linear infinite; opacity: .45;
}
@keyframes spin { to{transform:rotate(360deg)} }
.hero-portrait {
  position: relative; width: 230px; height: 230px; border-radius: 50%;
  overflow: hidden; border: 6px solid var(--bg); box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #e0e7ff, #fce7f3);
  display: flex; align-items: center; justify-content: center;
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder { font-family: 'Playfair Display', serif; font-size: 4rem; color: var(--blue); opacity: .35; }
.hero-portrait img + .portrait-placeholder { display: none; }
.hero-portrait.no-img img { display: none; }
.hero-portrait.no-img .portrait-placeholder { display: block; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Focus Cards ── */
.focus-section { padding: 80px 0; }
.focus-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.focus-card {
  border-radius: var(--radius); padding: 34px 26px; color: #fff;
  box-shadow: var(--shadow-lg); transition: transform .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.focus-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.16); }
.focus-card::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.1);
}
.card-blue    { background: linear-gradient(135deg, #1a3a6b 0%, #2563bc 100%); }
.card-rainbow { background: linear-gradient(135deg, #7c3aed 0%, #e8651a 60%, #f5a623 100%); }
.card-orange  { background: linear-gradient(135deg, #c0392b 0%, #e8651a 100%); }
.card-icon    { font-size: 2.6rem; margin-bottom: 12px; }
.focus-card h3 { font-size: 1.25rem; margin-bottom: 10px; color: #fff; font-family: 'Playfair Display', serif; }
.focus-card p  { font-size: .86rem; opacity: .9; margin-bottom: 20px; line-height: 1.6; }

/* ── About ── */
.about-section {
  padding: 100px 0; text-align: center;
  background: linear-gradient(180deg,#fff 0%,#f0f5ff 100%);
  position: relative; overflow: hidden;
}
.about-splash {
  position: absolute; width: 600px; height: 300px; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: radial-gradient(ellipse, rgba(245,166,35,.1), transparent 70%);
  pointer-events: none;
}
.about-subtitle { font-family: 'Playfair Display', serif; font-size: 1.12rem; font-weight: 700; color: var(--blue); margin-bottom: 18px; }
.about-text { max-width: 600px; margin: 0 auto 30px; font-size: .97rem; color: var(--text-muted); line-height: 1.9; }

/* ── Blog preview ── */
.blog-preview-section { padding: 100px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 40px; }
.blog-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-thumb { height: 178px; background-size: cover; background-position: center; background-color: #e0e7ff; }
.blog-thumb-placeholder { display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-card-body { padding: 18px 20px 24px; }
.blog-date { font-size: .76rem; color: var(--orange); font-weight: 600; display: block; margin-bottom: 5px; }
.blog-card-body h4 { font-size: .98rem; margin-bottom: 7px; color: var(--blue); line-height: 1.4; }
.blog-card-body p  { font-size: .84rem; color: var(--text-muted); margin-bottom: 14px; }

/* ── Highlights ── */
.highlights-section {
  padding: 100px 0;
  background: linear-gradient(180deg,#f0f5ff 0%,#fff9f0 100%);
  position: relative; overflow: hidden;
}
.highlight-splash {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 20% 80%, rgba(15,123,123,.07) 0%,transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(232,101,26,.06) 0%,transparent 60%);
}
.highlights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; position: relative; z-index: 1; }
.highlight-block { background: var(--bg-card); border-radius: var(--radius); padding: 38px 34px; box-shadow: var(--shadow); transition: transform .25s; }
.highlight-block:hover { transform: translateY(-4px); }
.highlight-icon-big { font-size: 3.2rem; margin-bottom: 14px; }
.highlight-block h3 { font-size: 1.35rem; color: var(--blue); margin-bottom: 9px; font-family: 'Playfair Display', serif; }
.highlight-block > p { color: var(--text-muted); font-size: .88rem; margin-bottom: 18px; }
.highlight-list { display: flex; flex-direction: column; gap: 12px; }
.highlight-list li strong { display: block; font-size: .88rem; color: var(--blue); }
.highlight-list li span   { font-size: .8rem; color: var(--text-muted); }

/* ── Contact ── */
.contact-section { padding: 100px 0; background: linear-gradient(180deg,#fff9f0 0%,#faf8f4 100%); }
.contact-inner { max-width: 700px; margin: 0 auto; }
.contact-form { margin-top: 38px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .form-group { margin-bottom: 18px; }
.contact-form .form-group label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; color: var(--blue); }
.contact-form .form-group label span { color: var(--orange); }
.contact-form .form-group input,
.contact-form .form-group textarea {
  width: 100%; padding: 12px 15px;
  border: 2px solid #e5e7eb; border-radius: 10px;
  font-family: 'Poppins', sans-serif; font-size: .89rem;
  background: var(--bg-card); color: var(--text);
  transition: border-color .2s; outline: none; resize: vertical;
}
.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus { border-color: var(--blue); }

/* ── Footer ── */
.site-footer { background: var(--blue); padding: 38px 24px; text-align: center; }
.footer-name { font-family: 'Dancing Script', cursive; font-size: 1.75rem; color: #fff; margin-bottom: 7px; }
.footer-name span { color: var(--orange); }
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.5); }

/* ── Inner pages ── */
.page-hero {
  padding: 120px 24px 56px; text-align: center;
  background: radial-gradient(ellipse at 50% 40%, #fff9f0, #faf8f4 70%, #f0f5ff);
}
.page-hero p { color: var(--text-muted); max-width: 540px; margin: 12px auto 0; font-size: .95rem; }
.page-body { padding: 56px 0 100px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(290px,1fr)); gap: 26px; margin-top: 38px; }
.item-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; }
.item-card:hover { transform: translateY(-5px); }
.item-card-img { height: 196px; background: #e0e7ff; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.item-card-body { padding: 20px 22px 26px; }
.item-card-body h4 { font-size: 1rem; color: var(--blue); margin-bottom: 7px; font-family: 'Playfair Display', serif; }
.item-card-body p  { font-size: .85rem; color: var(--text-muted); margin-bottom: 13px; }
.item-meta { font-size: .76rem; color: var(--orange); font-weight: 600; margin-bottom: 8px; }

/* ── Blog list / post ── */
.blog-list { display: flex; flex-direction: column; gap: 28px; margin-top: 38px; }
.blog-list-item { display: grid; grid-template-columns: 250px 1fr; gap: 0; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; }
.blog-list-item:hover { transform: translateY(-4px); }
.blog-list-img { min-height: 180px; background: #e0e7ff; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.blog-list-body { padding: 26px; }
.blog-list-body h3 { font-size: 1.15rem; color: var(--blue); margin-bottom: 9px; font-family: 'Playfair Display', serif; }
.blog-list-body p  { font-size: .88rem; color: var(--text-muted); margin-bottom: 15px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 46px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-block; padding: 8px 15px; border-radius: 8px; font-size: .86rem; border: 2px solid #e5e7eb; color: var(--blue); transition: .2s; }
.pagination a:hover, .pagination .active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── Post content ── */
.post-content { max-width: 800px; margin: 0 auto; background: var(--bg-card); border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow); }
.post-content h1 { font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--blue); margin-bottom: 14px; }
.post-meta { font-size: .82rem; color: var(--text-muted); margin-bottom: 28px; display: flex; gap: 18px; flex-wrap: wrap; }
.post-body { font-size: .96rem; line-height: 1.9; color: var(--text); }
.post-body p + p { margin-top: 14px; }
.post-body h2, .post-body h3 { color: var(--blue); margin: 26px 0 10px; font-family: 'Playfair Display', serif; }

/* About page */
.about-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-top: 48px; }
.about-img-frame { width: 100%; aspect-ratio: 3/4; border-radius: 22px; background: linear-gradient(135deg,#e0e7ff,#fce7f3); display: flex; align-items: center; justify-content: center; font-size: 7rem; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-img-wrap { position: relative; }
.about-deco { position: absolute; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle,rgba(245,166,35,.28),transparent); bottom: -28px; left: -28px; }
.about-text-block h2 { font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--blue); margin-bottom: 14px; }
.about-text-block p { color: var(--text-muted); margin-bottom: 12px; font-size: .94rem; line-height: 1.8; }
.about-facts { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.fact-item { display: flex; gap: 12px; align-items: flex-start; }
.fact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.fact-text strong { display: block; color: var(--blue); font-size: .88rem; }
.fact-text span   { color: var(--text-muted); font-size: .83rem; }


/* ══════════════════════════════════════════════
   ADMIN PANEL  —  fully isolated styles
   Uses .adm- prefix to avoid ALL conflicts
══════════════════════════════════════════════ */

/* ── Admin body reset ── */
body.admin-body {
  background: #f0f2f8;
  min-height: 100vh;
}

/* ── Sidebar ── */
.adm-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--blue);
  overflow-y: auto; z-index: 800;
  display: flex; flex-direction: column;
}
.adm-sidebar-logo {
  display: block; padding: 26px 24px 22px;
  font-family: 'Dancing Script', cursive; font-size: 1.55rem; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 10px;
}
.adm-sidebar-logo span { color: var(--orange); }
.adm-nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 24px; font-size: .88rem; color: rgba(255,255,255,.72);
  transition: background .18s, color .18s; border-left: 3px solid transparent;
}
.adm-nav a:hover, .adm-nav a.active {
  background: rgba(255,255,255,.1); color: #fff; border-left-color: var(--orange);
}
.adm-nav .sep { height: 1px; background: rgba(255,255,255,.1); margin: 10px 24px; }
.adm-nav .logout-link { color: rgba(255,255,255,.42); margin-top: auto; }

/* ── Main content area ── */
.adm-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  background: #f0f2f8;
  padding: 0;
}

/* ── Top bar ── */
.adm-topbar {
  background: #fff; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #e8eaf0;
  position: sticky; top: 0; z-index: 700;
}
.adm-topbar h1 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--blue); }
.adm-topbar-right { display: flex; align-items: center; gap: 14px; }

/* ── Page wrapper ── */
.adm-page { padding: 30px 32px 60px; }

/* ── Stat cards ── */
.adm-stats { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 18px; margin-bottom: 32px; }
.adm-stat { background: #fff; border-radius: 12px; padding: 24px 20px; box-shadow: var(--shadow); text-align: center; }
.adm-stat-num   { font-size: 2.2rem; font-weight: 700; color: var(--blue); line-height: 1; }
.adm-stat-label { font-size: .78rem; color: var(--text-muted); margin-top: 5px; text-transform: uppercase; letter-spacing: 1px; }

/* ── Cards wrapper ── */
.adm-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 28px; }
.adm-card-head { padding: 18px 24px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; }
.adm-card-head h2 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--blue); }
.adm-card-body { padding: 24px; }

/* ── Tables ── */
.adm-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.adm-table th { background: #f8f9fc; color: var(--blue); padding: 12px 16px; text-align: left; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; border-bottom: 2px solid #e8eaf0; }
.adm-table td { padding: 12px 16px; border-bottom: 1px solid #f2f3f7; vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td { background: #fafbfe; }
.adm-table .action-links { white-space: nowrap; }
.adm-table .action-links a { font-size: .82rem; font-weight: 600; margin-right: 10px; }
.link-edit   { color: var(--teal); }
.link-delete { color: var(--red); }

/* ── Admin FORMS  — fully scoped ── */
.adm-form { background: #fff; border-radius: 12px; padding: 30px; box-shadow: var(--shadow); }
.adm-form-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--blue); margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; }

/* Each field wrapper */
.adm-field { margin-bottom: 20px; }
.adm-field > label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--blue); margin-bottom: 6px;
}
.adm-field > label .req { color: var(--orange); }
.adm-field > label small { font-weight: 400; color: #999; font-size: .76rem; }

/* All inputs inside admin forms */
.adm-field input[type="text"],
.adm-field input[type="email"],
.adm-field input[type="url"],
.adm-field input[type="number"],
.adm-field input[type="date"],
.adm-field input[type="password"],
.adm-field input[type="color"],
.adm-field select,
.adm-field textarea {
  display: block; width: 100%;
  padding: 10px 14px;
  border: 2px solid #e2e4ec;
  border-radius: 9px;
  font-family: 'Poppins', sans-serif;
  font-size: .88rem;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  /* kill any inherited grid/flex */
  box-sizing: border-box;
}
.adm-field input:focus,
.adm-field select:focus,
.adm-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,58,107,.08);
}
.adm-field textarea { resize: vertical; min-height: 100px; }
.adm-field input[type="color"] { height: 44px; padding: 4px 8px; cursor: pointer; }
.adm-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* Grid layouts inside admin forms — explicit class, not inline style */
.adm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.adm-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.adm-grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; }
.adm-grid-14 { display: grid; grid-template-columns: 1fr 4fr; gap: 18px; align-items: end; }

/* Form action row */
.adm-form-actions { display: flex; gap: 12px; align-items: center; margin-top: 6px; flex-wrap: wrap; }

/* Settings tabs */
.adm-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; }
.adm-tab { padding: 9px 18px; border-radius: 8px; font-size: .84rem; font-weight: 600; cursor: pointer; border: 2px solid #e2e4ec; background: #fff; color: var(--text-muted); transition: .2s; }
.adm-tab:hover { border-color: var(--blue); color: var(--blue); }
.adm-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.adm-tab-panel { display: none; }
.adm-tab-panel.active { display: block; }

/* Color swatch row */
.color-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f4f4f4; }
.color-row:last-child { border-bottom: none; }
.color-row-label { flex: 1; font-size: .88rem; color: var(--text); font-weight: 500; }
.color-row-sub   { font-size: .77rem; color: var(--text-muted); display: block; }
.color-swatch { width: 44px; height: 44px; border-radius: 8px; border: 2px solid #e2e4ec; cursor: pointer; overflow: hidden; padding: 2px; }
.color-swatch input[type="color"] { width: 100%; height: 100%; border: none; padding: 0; background: none; cursor: pointer; }

/* Section divider in settings */
.adm-section-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--orange); margin: 24px 0 14px; }

/* Mobile admin toggle */
.adm-mobile-toggle { display: none; position: fixed; bottom: 24px; right: 24px; z-index: 900; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; border: none; font-size: 1.2rem; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.2); align-items: center; justify-content: center; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .adm-grid-3 { grid-template-columns: 1fr 1fr; }
  .adm-grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .focus-grid    { grid-template-columns: 1fr; }
  .blog-grid     { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr; }
  .blog-list-item  { grid-template-columns: 1fr; }
  .blog-list-img   { min-height: 200px; }
  .adm-grid-2    { grid-template-columns: 1fr; }
  .adm-grid-3    { grid-template-columns: 1fr; }
  .about-page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .adm-sidebar { transform: translateX(-100%); transition: transform .3s; width: 250px; }
  .adm-sidebar.open { transform: translateX(0); }
  .adm-main { margin-left: 0; }
  .adm-mobile-toggle { display: flex; }
  .adm-page { padding: 20px 18px 60px; }
  .adm-topbar { padding: 14px 18px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; gap: 0; position: fixed; top: 68px; left: 0; right: 0; background: var(--bg); padding: 10px 0 20px; box-shadow: 0 8px 24px rgba(0,0,0,.1); z-index: 850; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 24px; }
  .nav-toggle { display: flex; }
  .hero-portrait { width: 190px; height: 190px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .post-content { padding: 24px 18px; }
  .cards-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .adm-grid-4 { grid-template-columns: 1fr 1fr; }
  .adm-stats  { grid-template-columns: repeat(2,1fr); }
}
