:root {
  --primary: #003366;
  --accent: #ff7a00;
  --accent2: #00a0a0;
  --bg: #f5f7fb;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius-lg: 18px;
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}



.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text .line1 {
    font-size: 18px;
    font-weight: 700;
    color: #0A5BFF;
}

.logo-text .line2 {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
    color: #0A5BFF;
}

.logo:hover .line1,
.logo:hover .line2 {
    opacity: 1;
}






body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 251, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-phone {
  text-align: right;
  font-weight: 600;
  color: var(--primary);
}

.nav-phone small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.lang-switch {
  display: flex;
  gap: 5px;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 20px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 16px;
  color: #64748b;
}

.lang-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 25px rgba(255, 122, 0, 0.25);
}

.btn-primary:hover {
  background: #e56e00;
  transform: translateY(-1px);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--primary);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: #fff;
}

.btn-full {
  width: 100%;
}

.hero {
  padding: 2.8rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.hero-eyebrow span:first-child {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

.hero-title {
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  line-height: 1.12;
  color: var(--primary);
  margin-bottom: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.hero-bullets {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.hero-bullets .icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(0, 160, 160, 0.1);
  color: var(--accent2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.55rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-card {
  background: #fff;
  border-radius: 24px;
  padding: 1rem 1.1rem 1.2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}

.hero-card-title {
  font-weight: 600;
  color: var(--primary);
}

.hero-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 160, 160, 0.08);
  color: var(--accent2);
  border: 1px solid rgba(0, 160, 160, 0.3);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-stat {
  background: #f9fafb;
  border-radius: 14px;
  padding: 0.6rem 0.65rem;
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.hero-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.hero-stat-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.hero-mini {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hero-agent {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(209, 213, 219, 0.9);
}

.hero-agent-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.hero-agent-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero-agent-info strong {
  font-size: 0.84rem;
  color: var(--primary);
}

.hero-agent-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

section {
  padding: 2.5rem 0;
}

.section-header {
  margin-bottom: 1.8rem;
  max-width: 38rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent2);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.section-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.section-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.03);
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(0, 160, 160, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  font-size: 1rem;
  color: var(--accent2);
}

.card-title {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
}

.market-card {
  background: #fff;
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.agent {
  background: #fff;
  border-radius: 24px;
  padding: 1.4rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 1.4rem;
}

.agent-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.3rem;
}

.agent-bullets li::before {
  content: '\2022 ';
  color: var(--accent2);
}

.agent-photo-placeholder {
  width: 100%;
  min-height: 180px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  position: relative;
}

.agent-photo-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.news-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.news-card {
  background: #fff;
  border-radius: 18px;
  padding: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
}

.news-card-thumb {
  width: 100%;
  padding-top: 56%;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.news-card-thumb--placeholder {
  background-image: linear-gradient(135deg, rgba(0, 160, 160, 0.25), rgba(255, 122, 0, 0.25));
}

.news-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.news-card-title {
  margin: 0;
  font-size: 1rem;
  color: var(--primary);
}

.news-card-title a {
  color: inherit;
}

.news-card-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.news-card-link::after {
  content: "→";
  font-size: 0.85rem;
  color: var(--accent2);
}

.news-card--mini .news-card-thumb {
  padding-top: 45%;
}

.news-card--full {
  padding: 1.2rem;
  gap: 1rem;
}

.news-card--full .news-card-summary {
  font-size: 0.92rem;
}

.news-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent2);
}

.news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.news-empty {
  text-align: center;
  color: var(--text-muted);
}

.news-preview-actions {
  margin-top: 1.25rem;
  text-align: center;
}

.news-page {
  padding: 3rem 0 4rem;
}

.news-page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.news-page-header h1 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-bottom: 0.4rem;
}

.news-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.news-detail {
  padding: 3rem 0 4rem;
}

.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.news-back-link::before {
  content: "←";
  font-size: 0.85rem;
}

.news-detail-hero {
  margin-bottom: 1.5rem;
}

.news-detail-hero h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin: 0.4rem 0;
  color: var(--primary);
}

.news-detail-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.news-detail-image {
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.news-detail-image img {
  width: 100%;
  display: block;
}

.news-detail-content {
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  padding: clamp(1.25rem, 4vw, 2rem);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-main);
}

.news-detail-content p + p {
  margin-top: 1rem;
}

.cta-section {
  padding: 2.8rem 0 3.2rem;
}

.cta-inner {
  background: radial-gradient(circle at top left, rgba(0, 160, 160, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 122, 0, 0.18), transparent 55%),
    #0f172a;
  border-radius: 24px;
  padding: 2.1rem 1.8rem;
  color: #fff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.8rem;
}

.cta-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta-text {
  font-size: 0.95rem;
  opacity: 0.9;
}

.cta-meta {
  font-size: 0.8rem;
  opacity: 0.8;
}

form {
  display: grid;
  gap: 0.7rem;
  font-size: 0.86rem;
}

label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
}

input,
textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.45);
  color: #f9fafb;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

.form-feedback {
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

footer {
  padding: 1.6rem 0 1.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.admin-shell {
  background: var(--bg);
  color: var(--text-main);
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0;
  min-height: 100vh;
  padding: 2rem clamp(1rem, 4vw, 4rem);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.admin-panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.news-form {
  display: grid;
  gap: 1rem;
}

.news-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.news-form input,
.news-form textarea {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0.65rem 0.8rem;
  background: #f8fafc;
  color: inherit;
  font-family: inherit;
}

.alert {
  border-radius: 16px;
  padding: 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.alert.success {
  background: rgba(92, 240, 196, 0.18);
  border: 1px solid rgba(92, 240, 196, 0.4);
}

.alert.error {
  background: rgba(255, 91, 91, 0.15);
  border: 1px solid rgba(255, 91, 91, 0.4);
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.news-list li {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.admin-actions .secondary-btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
}

.quill-editor {
  min-height: 200px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.ql-toolbar.ql-snow {
  border-radius: 12px 12px 0 0;
}

.ql-container.ql-snow {
  border-radius: 0 0 12px 12px;
}

.news-kicker.small {
  font-size: 0.7rem;
}

.muted {
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .hero-inner,
  .services-grid,
  .cta-inner,
  .agent {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    order: -1;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
