/* =============================================
   TOP 10 QUY NHƠN – MAIN STYLESHEET
   ============================================= */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background: #f5f5f5;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
ul { list-style: none; }

/* ---- CONTAINER ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =============================================
   TOP BAR
   ============================================= */
.topbar {
  background: #1a1a2e;
  color: #ccc;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 2px solid #c0392b;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-socials { display: flex; align-items: center; gap: 10px; }
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 4px;
  color: white;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s, transform 0.2s;
}
.social-icon:hover { background: #c0392b; transform: scale(1.1); }
.social-icon svg { width: 14px; height: 14px; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.logo { display: inline-flex; align-items: center; }
.logo-badge {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 60%, #ff6b35 100%);
  border-radius: 10px;
  padding: 6px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(192,57,43,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.logo-badge:hover { transform: scale(1.04); box-shadow: 0 6px 18px rgba(192,57,43,0.5); }
.logo-top {
  font-size: 28px;
  font-weight: 800;
  color: #FFD700;
  line-height: 1;
  letter-spacing: -1px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}
.logo-bottom {
  font-size: 10px;
  font-weight: 700;
  color: white;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.logo-dot { font-size: 9px; color: rgba(255,255,255,0.7); position: absolute; bottom: 4px; right: 6px; }

/* Search */
.header-search {
  display: flex;
  align-items: center;
  background: #f0f0f0;
  border-radius: 25px;
  overflow: hidden;
  border: 1.5px solid #e0e0e0;
  transition: border-color 0.2s, box-shadow 0.2s;
  flex: 0 1 340px;
}
.header-search:focus-within { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }
.header-search input {
  border: none;
  outline: none;
  background: transparent;
  padding: 8px 14px;
  font-size: 13px;
  font-family: inherit;
  color: #333;
  flex: 1;
}
.header-search input::placeholder { color: #aaa; }
#search-btn {
  background: #c0392b;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}
#search-btn:hover { background: #a93226; }
#search-btn svg { width: 16px; height: 16px; color: white; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s;
}

/* =============================================
   NAVIGATION
   ============================================= */
.main-nav {
  background: #c0392b;
  position: sticky;
  top: 64px;
  z-index: 99;
  box-shadow: 0 3px 10px rgba(192,57,43,0.4);
}
.nav-inner { position: relative; }
.nav-menu {
  display: flex;
  align-items: stretch;
}
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 13px 14px;
  font-size: 13px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  letter-spacing: 0.3px;
  transition: background 0.2s;
  position: relative;
}
.nav-item > a:hover,
.nav-item.active > a { background: rgba(0,0,0,0.2); }
.nav-item.active > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: #FFD700;
}
.arrow { font-size: 10px; opacity: 0.7; }

/* Highlight item */
.nav-highlight > a {
  background: #2c3e50 !important;
  color: #FFD700 !important;
}
.nav-highlight > a:hover { background: #1a252f !important; }

/* Search icon item */
.nav-search-icon > a svg { width: 16px; height: 16px; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 210px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
  border-top: 3px solid #c0392b;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: #333;
  font-weight: 500;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s, color 0.15s;
}
.dropdown li:last-child a { border-bottom: none; border-radius: 0 0 8px 8px; }
.dropdown li a:hover { background: #fef5f4; color: #c0392b; padding-left: 24px; }

/* =============================================
   MAIN CONTENT
   ============================================= */
.site-main { padding: 24px 0 40px; }

/* =============================================
   FEATURED GRID
   ============================================= */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 6px;
  margin-bottom: 32px;
  border-radius: 10px;
  overflow: hidden;
}

/* Card base */
.card { position: relative; border-radius: 0; overflow: hidden; }
.card-link { display: block; height: 100%; }
.card-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-img { transform: scale(1.04); }

/* Overlays */
.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  z-index: 1;
}
.card-overlay-light {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  z-index: 1;
}

/* Badges */
.card-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  border-radius: 3px;
  z-index: 2;
  text-transform: uppercase;
}
.badge-khachsan { background: #e74c3c; color: white; }
.badge-congty { background: #3498db; color: white; }
.badge-amthuc { background: #e67e22; color: white; }
.badge-dulich { background: #27ae60; color: white; }

/* Content overlay */
.card-content-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  z-index: 2;
}
.card-content-bottom {
  bottom: 0;
}

/* Featured card */
.card-featured { grid-column: 1; grid-row: 1 / 3; }
.card-featured .card-image-wrap { height: 420px; }
.card-title-hero {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: white;
  line-height: 1.25;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.card-title-hero em { color: #FFD700; font-style: italic; }
.card-excerpt-hero {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(0,0,0,0.4);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
}

/* Right column */
.featured-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-medium { height: 207px; }
.card-medium .card-image-wrap { height: 100%; }

.card-label-top {
  position: absolute;
  bottom: 10px; left: 10px; right: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  background: rgba(228, 168, 0, 0.85);
  padding: 4px 10px;
  border-radius: 3px;
}
.card-title-medium {
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Bottom small cards */
.card-small {
  height: 160px;
  overflow: hidden;
}
.card-small .card-image-wrap { height: 100%; }
.card-title-small {
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Bottom row (2 small cards) span full grid */
.card-small:nth-child(4) { grid-column: 1; grid-row: 3; }
.card-small:nth-child(5) { grid-column: 2; grid-row: 3; }

/* =============================================
   TWO COLUMN LAYOUT
   ============================================= */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  margin-bottom: 40px;
  align-items: start;
}

/* Section header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.section-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 5px 16px;
  color: white;
  border-radius: 2px;
  text-transform: uppercase;
}
.label-blue { background: #2980b9; }
.label-brown { background: #7d4e24; }
.section-view-all {
  font-size: 12px;
  color: #c0392b;
  font-weight: 600;
  transition: color 0.2s;
}
.section-view-all:hover { color: #a93226; text-decoration: underline; }

/* Article List */
.article-list { display: flex; flex-direction: column; gap: 14px; }
.article-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid #ebebeb;
}
.article-row:last-child { border-bottom: none; padding-bottom: 0; }
.article-thumb {
  flex: 0 0 110px;
  height: 78px;
  border-radius: 6px;
  overflow: hidden;
  display: block;
}
.article-thumb img { transition: transform 0.3s; }
.article-thumb:hover img { transform: scale(1.05); }
.article-info { flex: 1; }
.article-cat {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: 2px;
  color: white;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.cat-amthuc { background: #e67e22; }
.cat-dulich { background: #27ae60; }
.cat-congty { background: #3498db; }
.cat-khachsan { background: #e74c3c; }

.article-title { font-size: 13.5px; font-weight: 700; line-height: 1.45; margin-bottom: 4px; }
.article-title a { color: #1a1a1a; transition: color 0.2s; }
.article-title a:hover { color: #c0392b; }
.article-meta { font-size: 11px; color: #999; }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar { position: sticky; top: 120px; }
.popular-list { display: flex; flex-direction: column; gap: 0; }
.popular-card {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #ebebeb;
}
.popular-card:last-child { border-bottom: none; }
.popular-thumb {
  flex: 0 0 90px;
  height: 66px;
  border-radius: 5px;
  overflow: hidden;
  display: block;
  position: relative;
}
.popular-thumb img { height: 100%; object-fit: cover; transition: transform 0.3s; }
.popular-thumb:hover img { transform: scale(1.06); }
.popular-cat {
  position: absolute;
  bottom: 4px; left: 4px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 2px 5px;
  border-radius: 2px;
  color: white;
  text-transform: uppercase;
}
.popular-info { flex: 1; }
.popular-info h4 { font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.popular-info h4 a { color: #1a1a1a; transition: color 0.2s; }
.popular-info h4 a:hover { color: #c0392b; }

/* Sidebar Ad */
.sidebar-ad {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
}
.ad-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ad-inner::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(255,215,0,0.08);
  border-radius: 50%;
}
.ad-inner::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 80px; height: 80px;
  background: rgba(192,57,43,0.2);
  border-radius: 50%;
}
.ad-title { font-size: 15px; font-weight: 800; color: #FFD700; margin-bottom: 6px; letter-spacing: 0.5px; }
.ad-sub { font-size: 12px; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.ad-btn {
  display: inline-block;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 25px;
  letter-spacing: 0.3px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}
.ad-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(192,57,43,0.5); }

/* =============================================
   CATEGORY GRID SECTION
   ============================================= */
.category-grid-section { margin-bottom: 40px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cat-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.13); }
.cat-card-link { display: block; }
.cat-img-wrap { position: relative; height: 180px; overflow: hidden; }
.cat-img-wrap img { height: 100%; transition: transform 0.4s; }
.cat-card:hover .cat-img-wrap img { transform: scale(1.05); }
.cat-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 9px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  border-radius: 3px;
  color: white;
  text-transform: uppercase;
}
.cat-card-body { padding: 14px 16px 18px; }
.cat-card-body h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.45;
  margin-bottom: 8px;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-card:hover .cat-card-body h3 { color: #c0392b; }
.cat-card-body p {
  font-size: 12.5px;
  color: #666;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.cat-date { font-size: 11px; color: #bbb; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.75);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.logo-badge-footer { margin-bottom: 14px; display: inline-flex; flex-direction: column; align-items: center; }
.footer-desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  transition: background 0.2s, transform 0.2s;
}
.footer-socials a:hover { background: #c0392b; transform: scale(1.1); }
.footer-heading { font-size: 14px; font-weight: 700; color: white; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: #FFD700; }
.footer-contact li { font-size: 13px; margin-bottom: 10px; color: rgba(255,255,255,0.6); }
.footer-contact a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-contact a:hover { color: #FFD700; }
.footer-bottom {
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* =============================================
   PHONE BUTTON
   ============================================= */
.phone-btn {
  position: fixed;
  bottom: 28px;
  left: 16px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: white;
  padding: 10px 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(192,57,43,0.5);
  letter-spacing: 0.3px;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: phone-pulse 2.5s ease-in-out infinite;
}
.phone-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 28px rgba(192,57,43,0.6);
  animation: none;
}
.phone-icon { display: flex; align-items: center; }
.phone-icon svg { width: 16px; height: 16px; animation: ring 1.5s ease-in-out infinite; }

@keyframes phone-pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(192,57,43,0.5); }
  50% { box-shadow: 0 4px 28px rgba(192,57,43,0.8), 0 0 0 8px rgba(192,57,43,0.15); }
}
@keyframes ring {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-15deg); }
  20% { transform: rotate(15deg); }
  30% { transform: rotate(-10deg); }
  40% { transform: rotate(10deg); }
  50% { transform: rotate(0deg); }
}

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 20px;
  z-index: 999;
  width: 42px;
  height: 42px;
  background: #c0392b;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(192,57,43,0.4);
  transition: background 0.2s, transform 0.2s, opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: #a93226; transform: translateY(-2px); }
.scroll-top svg { width: 20px; height: 20px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .two-col-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Header */
  .header-search { flex: 0 1 220px; }
  .hamburger { display: flex; }

  /* Nav */
  .main-nav { position: static; }
  .nav-menu {
    flex-direction: column;
    display: none;
    background: #a93226;
  }
  .nav-menu.open { display: flex; }
  .nav-item > a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-highlight > a { background: #2c3e50 !important; }
  .nav-search-icon { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; border-top: none; background: #922b21; }
  .dropdown li a { color: rgba(255,255,255,0.8); background: transparent; border-bottom: 1px solid rgba(255,255,255,0.08); padding-left: 30px; }
  .dropdown li a:hover { background: rgba(0,0,0,0.15); color: white; padding-left: 36px; }

  /* Featured grid */
  .featured-grid { grid-template-columns: 1fr; }
  .card-featured { grid-column: 1; grid-row: 1; }
  .card-featured .card-image-wrap { height: 280px; }
  .featured-right { display: grid; grid-template-columns: 1fr 1fr; }
  .card-medium { height: 160px; }
  .card-small:nth-child(4) { grid-column: 1; grid-row: auto; }
  .card-small:nth-child(5) { grid-column: 1; grid-row: auto; }

  /* Cat grid */
  .cat-grid { grid-template-columns: 1fr; }

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

@media (max-width: 480px) {
  .topbar-text { display: none; }
  .header-search { flex: 0 1 160px; }
  .card-title-hero { font-size: 20px; }
  .featured-right { grid-template-columns: 1fr; }
  .phone-btn .phone-number { display: none; }
  .phone-btn { padding: 12px; border-radius: 50%; }
}
