/*
Theme Name: Tintuc22 Bootstrap Theme
Theme URI: https://tintuc22.maugiaodien.com/
Author: Antigravity AI
Author URI: https://google.com
Description: Giao diện WordPress Tin Tức / Tạp Chí Điện Tử hiện đại chuẩn HTML5 & Bootstrap 5, được thiết kế mô phỏng giao diện Tintuc22 với tốc độ tải nhanh, chuẩn SEO, responsive 100% trên mọi thiết bị.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: news, magazine, grid-layout, bootstrap5, responsive-layout, custom-menu, two-columns, dark-mode
Text Domain: tintuc22
*/

/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  --tt-primary: #c8102e;        /* Báo chí đỏ truyền thống */
  --tt-primary-hover: #a00c23;
  --tt-secondary: #1a252f;      /* Xám đen thanh lịch */
  --tt-accent: #ff9800;         /* Cam điểm nhấn */
  --tt-dark-bg: #121212;
  --tt-dark-card: #1e1e1e;
  --tt-text-main: #2b2b2b;
  --tt-text-muted: #6c757d;
  --tt-border: #e9ecef;
  --tt-font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tt-radius: 6px;
  --tt-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  --tt-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --tt-secondary: #0d1117;
  --tt-text-main: #e6edf3;
  --tt-text-muted: #8b949e;
  --tt-border: #30363d;
  background-color: var(--tt-dark-bg) !important;
  color: var(--tt-text-main) !important;
}

body {
  font-family: var(--tt-font-main);
  color: var(--tt-text-main);
  background-color: #f8f9fa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--tt-secondary);
  text-decoration: none;
  transition: var(--tt-transition);
}

a:hover {
  color: var(--tt-primary);
}

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */
.top-bar {
  background-color: #111827;
  color: #9ca3af;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
  color: #d1d5db;
}

.top-bar a:hover {
  color: #ffffff;
}

.breaking-news-ticker {
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.badge-breaking {
  background-color: var(--tt-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-right: 10px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* Cười Vui Badge - màu cam vui tươi */
.badge-cuoivui {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.5);
  animation: cuoivuiPulse 2s infinite;
}

@keyframes cuoivuiPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(249, 115, 22, 0.4); }
  50%       { box-shadow: 0 0 14px rgba(249, 115, 22, 0.9); }
}

/* Ticker scroll container */
.ticker-content {
  overflow: hidden;
  flex: 1;
  position: relative;
}

.ticker-scroll-wrap {
  overflow: hidden;
  width: 100%;
}

.ticker-scroll-inner {
  display: inline-flex;
  gap: 40px;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
}

.ticker-scroll-inner:hover {
  animation-play-state: paused;
}

.ticker-item {
  color: #fff !important;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
  flex-shrink: 0;
}

.ticker-item:hover {
  color: #fbbf24 !important;
  text-decoration: underline;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.header-main {
  background: #ffffff;
  padding: 20px 0;
  border-bottom: 1px solid var(--tt-border);
}

.site-logo img {
  max-height: 60px;
  width: auto;
}

.site-title {
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--tt-primary);
  letter-spacing: -0.5px;
  margin: 0;
}

.site-description {
  font-size: 0.85rem;
  color: var(--tt-text-muted);
  margin: 0;
}

.site-header-banner,
.header-ad-banner {
  display: block;
  text-align: right;
}

.site-header-banner img,
.header-ad-banner img {
  max-width: 100%;
  max-height: 90px;
  height: auto;
  width: auto;
  border-radius: var(--tt-radius);
  display: inline-block;
}

/* ==========================================================================
   MAIN NAVIGATION (NAVBAR)
   ========================================================================== */
.main-navbar {
  background-color: var(--tt-primary) !important;
  box-shadow: 0 4px 10px rgba(200, 16, 46, 0.15);
  padding: 0 !important;
}

.main-navbar .navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 16px !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: var(--tt-transition);
  position: relative;
}

.main-navbar .navbar-nav .nav-link:hover,
.main-navbar .navbar-nav .nav-item.active .nav-link {
  background-color: rgba(0, 0, 0, 0.18);
  color: #ffffff !important;
}

.main-navbar .dropdown-menu {
  border: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  margin-top: 0;
  padding: 8px 0;
}

.main-navbar .dropdown-item {
  font-weight: 500;
  font-size: 0.9rem;
  padding: 9px 20px;
}

.main-navbar .dropdown-item:hover {
  background-color: #f1f5f9;
  color: var(--tt-primary);
}

.btn-nav-search {
  color: #fff;
  font-size: 1.1rem;
  background: transparent;
  border: none;
  padding: 10px 15px;
}

/* ==========================================================================
   HERO FEATURED NEWS GRID (NEW MODERN CARDS LAYOUT)
   ========================================================================== */
.hero-news-section {
  padding: 24px 0 8px 0;
}

/* Category Dot Badge */
.hero-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.hero-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.hero-cat-name {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
}

.hero-cat-tag-light .hero-cat-name {
  color: #e2e8f0;
}

/* Meta Data (Author // Time) */
.hero-meta {
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.hero-meta-divider {
  color: #94a3b8;
  font-weight: 400;
}

.hero-meta-light {
  color: #cbd5e1;
}

.hero-meta-light .hero-author strong {
  color: #ffffff;
  font-weight: 600;
}

.hero-meta-dark {
  color: #64748b;
}

.hero-meta-dark .hero-author strong {
  color: #1e293b;
  font-weight: 600;
}

/* Left Sidebar Card (3 items) */
.hero-sidebar-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.hero-mini-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-mini-thumb {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.hero-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.35s ease;
}

.hero-mini-item:hover .hero-mini-thumb img {
  transform: scale(1.08);
}

.hero-mini-content {
  flex: 1;
  min-width: 0;
}

.hero-mini-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-mini-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-mini-title a:hover {
  color: var(--tt-primary);
}

/* Right Main Featured Post Card */
.hero-main-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  min-height: 400px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  background-color: #0f172a;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-main-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-main-card:hover .hero-main-bg {
  transform: scale(1.04);
}

.hero-main-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 40px 36px 30px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.45) 35%, rgba(15, 23, 42, 0.94) 100%);
}

.hero-main-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin: 6px 0 14px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-main-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-main-title a:hover {
  color: #93c5fd;
}

/* Bottom Grid Cards (Row of 3) */
.hero-bottom-row {
  margin-top: 0;
}

.hero-bottom-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-bottom-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.hero-bottom-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1e293b;
  margin: 4px 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-bottom-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-bottom-title a:hover {
  color: var(--tt-primary);
}

/* Dark Mode Overrides */
[data-theme="dark"] .hero-sidebar-card,
[data-theme="dark"] .hero-bottom-card,
[data-theme="dark"] .news-list-thumb,
[data-theme="dark"] .hero-mini-thumb {
  background-color: var(--tt-dark-card);
  border-color: var(--tt-border);
  box-shadow: none;
}

[data-theme="dark"] .hero-mini-title a,
[data-theme="dark"] .hero-bottom-title a {
  color: var(--tt-text-main);
}

[data-theme="dark"] .hero-meta-dark {
  color: var(--tt-text-muted);
}

[data-theme="dark"] .hero-meta-dark .hero-author strong {
  color: #e2e8f0;
}

[data-theme="dark"] .hero-cat-name {
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-main-card {
    min-height: 340px;
  }
  .hero-main-title {
    font-size: 1.6rem;
  }
  .hero-sidebar-card {
    min-height: auto;
  }
}

@media (max-width: 575.98px) {
  .hero-main-overlay {
    padding: 24px 20px 20px;
  }
  .hero-main-title {
    font-size: 1.3rem;
  }
  .hero-sidebar-card {
    padding: 18px 16px;
  }
  .hero-bottom-card {
    padding: 18px 20px;
  }
}

/* ==========================================================================
   CATEGORY BLOCK STYLES
   ========================================================================== */
.block-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--tt-primary);
  margin-bottom: 20px;
  padding-bottom: 5px;
}

.block-title {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  background-color: var(--tt-primary);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 4px 4px 0 0;
  display: inline-block;
}

.block-subcategories a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tt-text-muted);
  margin-left: 15px;
}

.block-subcategories a:hover {
  color: var(--tt-primary);
}

.news-card-standard {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--tt-shadow);
  margin-bottom: 20px;
  transition: var(--tt-transition);
}

.news-card-standard:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-thumb-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.news-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card-standard:hover .news-thumb-wrapper img {
  transform: scale(1.05);
}

.news-card-body {
  padding: 15px;
}

.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.news-card-excerpt {
  font-size: 0.88rem;
  color: var(--tt-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.news-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--tt-border);
}

.news-list-item:last-child {
  border-bottom: none;
}

.news-list-thumb {
  width: 85px;
  height: 85px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-list-thumb a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.news-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.3s ease;
}

.news-list-item:hover .news-list-thumb img {
  transform: scale(1.08);
}

.news-list-content {
  flex-grow: 1;
  min-width: 0;
}

.news-list-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}

/* ==========================================================================
   MULTIMEDIA & VIDEO SECTION (DARK BLOCK)
   ========================================================================== */
.multimedia-section {
  background-color: #111827;
  color: #fff;
  padding: 35px 0;
  border-radius: 12px;
  margin: 30px 0;
}

.multimedia-section .block-title {
  background-color: #ef4444;
}

.multimedia-section .news-card-title a {
  color: #ffffff;
}

.multimedia-section .news-card-title a:hover {
  color: #f87171;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(200, 16, 46, 0.85);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.news-thumb-wrapper:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--tt-primary);
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */
.widget-box {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: var(--tt-shadow);
}

.widget-title {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 2px solid var(--tt-primary);
  padding-bottom: 8px;
  margin-bottom: 16px;
  color: var(--tt-secondary);
}

/* Weather & Gold & Currency Widget */
.widget-market-info {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 25px;
}

.market-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.market-item:last-child {
  border-bottom: none;
}

.market-value {
  font-weight: 700;
  color: #4ade80;
}

.market-value.down {
  color: #f87171;
}

/* Market Widget Skeleton Loading */
.market-skeleton {
  display: inline-block;
  width: 80px;
  height: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08) 25%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.08) 75%);
  background-size: 200% 100%;
  animation: marketSkeletonShimmer 1.4s infinite;
  border-radius: 4px;
  vertical-align: middle;
}

@keyframes marketSkeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Trending Popular Posts Widget */
.trending-post-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--tt-border);
}

.trending-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: #cbd5e1;
  width: 24px;
  line-height: 1;
}

.trending-post-item:nth-child(1) .trending-num { color: #ef4444; }
.trending-post-item:nth-child(2) .trending-num { color: #f97316; }
.trending-post-item:nth-child(3) .trending-num { color: #eab308; }

/* ==========================================================================
   SINGLE POST LAYOUT
   ========================================================================== */
.single-post-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
  margin-bottom: 15px;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--tt-border);
  border-bottom: 1px solid var(--tt-border);
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--tt-text-muted);
}

.post-excerpt-sapo {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.55;
  color: #334155;
  border-left: 4px solid var(--tt-primary);
  padding-left: 15px;
  margin-bottom: 25px;
  font-style: italic;
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #1e293b;
}

.entry-content p {
  margin-bottom: 1.4rem;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 15px 0;
}

.entry-content figure {
  margin: 20px 0;
  text-align: center;
}

.entry-content figcaption {
  font-size: 0.85rem;
  color: var(--tt-text-muted);
  margin-top: 6px;
  font-style: italic;
}

.social-share-box {
  display: flex;
  gap: 10px;
  margin: 30px 0;
}

.btn-share {
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
}

.btn-share-fb { background-color: #1877f2; }
.btn-share-zalo { background-color: #0068ff; }
.btn-share-tw { background-color: #1da1f2; }

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding-top: 50px;
  border-top: 4px solid var(--tt-primary);
  font-size: 0.9rem;
}

.site-footer h5 {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: var(--tt-primary);
  padding-left: 5px;
}

/* Generic WordPress Widget Styles in Footer */
.site-footer .footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-widget ul li {
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.site-footer .footer-widget a {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.site-footer .footer-widget a:hover {
  color: var(--tt-primary);
  padding-left: 3px;
}

.site-footer .footer-widget p,
.site-footer .footer-widget label,
.site-footer .footer-widget span {
  color: #94a3b8;
}

.site-footer .footer-widget input[type="text"],
.site-footer .footer-widget input[type="email"],
.site-footer .footer-widget select {
  background-color: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 4px;
  width: 100%;
}

.footer-bottom {
  background-color: #020617;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 42px;
  height: 42px;
  background-color: var(--tt-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--tt-transition);
  z-index: 999;
}

.btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .news-card-hero-main { height: 320px; }
  .news-card-hero-sub { height: 180px; }
  .site-logo { text-align: center; margin-bottom: 15px; }
  .header-ad-banner { text-align: center; }
}

@media (max-width: 575px) {
  .single-post-title { font-size: 1.5rem; }
  .news-card-hero-main { height: 260px; }
  .news-card-hero-main .news-title { font-size: 1.15rem; }
}

/* ==========================================================================
   PROFESSIONAL WPML & LANGUAGE SWITCHER STYLES (MODERN UI)
   ========================================================================== */

/* 1. Modern Segmented Toggle Switch (Nút gạt qua lại) */
.header-lang-switcher {
  display: inline-flex;
  align-items: center;
}

.tt-lang-switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.25);
  padding: 3px 4px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  position: relative;
  user-select: none;
}

.tt-lang-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 12px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  line-height: 1.2 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border-radius: 20px !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  z-index: 1;
}

.tt-lang-toggle-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.18) !important;
}

/* Active State: White floating pill on red topbar */
.tt-lang-toggle-btn.active {
  background: #ffffff !important;
  color: var(--tt-primary, #c8102e) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28), 0 1px 3px rgba(0, 0, 0, 0.15) !important;
  transform: scale(1.02);
  cursor: default;
}

.tt-lang-toggle-label {
  font-size: 0.73rem;
  font-weight: inherit;
}

.tt-lang-dropdown {
  position: relative;
  display: inline-block;
}

.tt-lang-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 20px !important;
  line-height: 1.2 !important;
  transition: all 0.2s ease !important;
}

.tt-lang-btn:hover,
.tt-lang-btn:focus,
.tt-lang-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.28) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.tt-lang-btn::after {
  margin-left: 4px !important;
  vertical-align: 0.12em !important;
  border-top-color: #cbd5e1 !important;
}

.tt-lang-flag,
.wpml-ls-flag {
  width: 18px !important;
  height: 12px !important;
  object-fit: cover !important;
  border-radius: 2px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
}

.tt-lang-code {
  font-size: 0.72rem;
  font-weight: 700;
}

.tt-lang-menu {
  min-width: 180px !important;
  padding: 6px 0 !important;
  margin-top: 6px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  z-index: 1060 !important;
}

.tt-lang-menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tt-lang-option {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: #334155 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.tt-lang-option:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.tt-lang-option.active {
  background: #fef2f2 !important;
  color: var(--tt-primary, #c8102e) !important;
  font-weight: 700 !important;
}

.tt-lang-tag {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
}

.tt-lang-option.active .tt-lang-tag {
  color: var(--tt-primary, #c8102e);
  opacity: 0.85;
}

/* 2. WPML in Navbar / Menu Items (Hidden on Desktop, Only Visible on Mobile & Tablet) */
@media (min-width: 992px) {
  .main-navbar .navbar-nav .menu-item-language,
  .main-navbar .navbar-nav .wpml-ls-item,
  .main-navbar .navbar-nav .wpml-ls-menu-item,
  .main-navbar .navbar-nav .wpml-ls-legacy-list-horizontal,
  .main-navbar .wpml-ls-slot-menu,
  .main-navbar .wpml-ls-slot-primary {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .main-navbar .navbar-nav .menu-item-language,
  .main-navbar .navbar-nav .wpml-ls-item,
  .main-navbar .navbar-nav .wpml-ls-menu-item {
    display: inline-flex !important;
    align-items: center !important;
    margin: 8px 4px 4px 4px !important;
  }

  .main-navbar .navbar-nav .menu-item-language > a,
  .main-navbar .navbar-nav .wpml-ls-item > a,
  .main-navbar .navbar-nav .wpml-ls-menu-item > a,
  .main-navbar .navbar-nav .wpml-ls-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
    border-radius: 20px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
  }

  .main-navbar .navbar-nav .menu-item-language > a:hover,
  .main-navbar .navbar-nav .wpml-ls-item > a:hover,
  .main-navbar .navbar-nav .wpml-ls-menu-item > a:hover,
  .main-navbar .navbar-nav .wpml-ls-link:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
  }

  /* Active / Current Language in Navbar */
  .main-navbar .navbar-nav .menu-item-language.wpml-ls-current-language > a,
  .main-navbar .navbar-nav .menu-item-language.active > a,
  .main-navbar .navbar-nav .wpml-ls-item.wpml-ls-current-language > a,
  .main-navbar .navbar-nav .wpml-ls-item.wpml-ls-item__active > a,
  .main-navbar .navbar-nav .wpml-ls-item.active > a,
  .main-navbar .navbar-nav a.wpml-ls-item__active,
  .main-navbar .navbar-nav .wpml-ls-link.active,
  .main-navbar .navbar-nav .wpml-ls-link[aria-current="page"] {
    background: #ffffff !important;
    color: var(--tt-primary, #c8102e) !important;
    border-color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22) !important;
  }
}

/* 3. General WPML Horizontal List Switcher (Segmented Control / Clean Pills) */
.wpml-ls-legacy-list-horizontal,
.wpml-ls-statics-shortcode_actions.wpml-ls-legacy-list-horizontal,
.wpml-ls-statics-footer.wpml-ls-legacy-list-horizontal {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  display: inline-flex !important;
  align-items: center !important;
}

.wpml-ls-legacy-list-horizontal > ul {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 3px !important;
  margin: 0 !important;
  list-style: none !important;
  background: rgba(0, 0, 0, 0.06) !important;
  border-radius: 24px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Inside Dark/Primary containers (e.g. Navbar or Topbar) */
.main-navbar .wpml-ls-legacy-list-horizontal > ul,
.top-bar .wpml-ls-legacy-list-horizontal > ul {
  background: rgba(0, 0, 0, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.wpml-ls-legacy-list-horizontal .wpml-ls-item,
.wpml-ls-legacy-list-horizontal li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
}

.wpml-ls-legacy-list-horizontal a,
.wpml-ls-legacy-list-horizontal .wpml-ls-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 12px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
  line-height: 1.2 !important;
  border-radius: 20px !important;
  text-decoration: none !important;
  color: #334155 !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.wpml-ls-legacy-list-horizontal a:hover,
.wpml-ls-legacy-list-horizontal .wpml-ls-link:hover {
  background: #f8fafc !important;
  color: var(--tt-primary, #c8102e) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

/* Inside Dark/Primary context: Inactive links */
.main-navbar .wpml-ls-legacy-list-horizontal a,
.main-navbar .wpml-ls-legacy-list-horizontal .wpml-ls-link,
.top-bar .wpml-ls-legacy-list-horizontal a,
.top-bar .wpml-ls-legacy-list-horizontal .wpml-ls-link {
  color: #ffffff !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

.main-navbar .wpml-ls-legacy-list-horizontal a:hover,
.main-navbar .wpml-ls-legacy-list-horizontal .wpml-ls-link:hover,
.top-bar .wpml-ls-legacy-list-horizontal a:hover,
.top-bar .wpml-ls-legacy-list-horizontal .wpml-ls-link:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Active item in Horizontal List */
.wpml-ls-legacy-list-horizontal .wpml-ls-current-language > a,
.wpml-ls-legacy-list-horizontal .wpml-ls-item__active > a,
.wpml-ls-legacy-list-horizontal a.wpml-ls-item__active,
.wpml-ls-legacy-list-horizontal a[aria-current="page"] {
  background: var(--tt-primary, #c8102e) !important;
  color: #ffffff !important;
  border-color: var(--tt-primary, #c8102e) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(200, 16, 46, 0.35) !important;
}

/* In primary context (red navbar): Active link is solid white pill */
.main-navbar .wpml-ls-legacy-list-horizontal .wpml-ls-current-language > a,
.main-navbar .wpml-ls-legacy-list-horizontal .wpml-ls-item__active > a,
.main-navbar .wpml-ls-legacy-list-horizontal a.wpml-ls-item__active,
.main-navbar .wpml-ls-legacy-list-horizontal a[aria-current="page"],
.top-bar .wpml-ls-legacy-list-horizontal .wpml-ls-current-language > a,
.top-bar .wpml-ls-legacy-list-horizontal .wpml-ls-item__active > a,
.top-bar .wpml-ls-legacy-list-horizontal a.wpml-ls-item__active,
.top-bar .wpml-ls-legacy-list-horizontal a[aria-current="page"] {
  background: #ffffff !important;
  color: var(--tt-primary, #c8102e) !important;
  border-color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22) !important;
}

/* 4. Dropdown Switcher (WPML Legacy Dropdown) */
.wpml-ls-legacy-dropdown {
  width: auto !important;
}

.wpml-ls-legacy-dropdown .wpml-ls-item {
  position: relative !important;
}

.wpml-ls-legacy-dropdown a.wpml-ls-item-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 12px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  text-decoration: none !important;
}

.wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
  min-width: 160px !important;
  padding: 6px 0 !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.wpml-ls-legacy-dropdown .wpml-ls-sub-menu a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 7px 14px !important;
  color: #334155 !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

.wpml-ls-legacy-dropdown .wpml-ls-sub-menu a:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* 5. Dark Mode Support */
[data-bs-theme="dark"] .tt-lang-menu,
.dark-mode .tt-lang-menu,
body.dark .tt-lang-menu,
[data-bs-theme="dark"] .wpml-ls-legacy-dropdown .wpml-ls-sub-menu,
.dark-mode .wpml-ls-legacy-dropdown .wpml-ls-sub-menu,
body.dark .wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
  background: #1e293b !important;
  border-color: #334155 !important;
}

[data-bs-theme="dark"] .tt-lang-option,
.dark-mode .tt-lang-option,
body.dark .tt-lang-option,
[data-bs-theme="dark"] .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a,
.dark-mode .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a,
body.dark .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a {
  color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .tt-lang-option:hover,
.dark-mode .tt-lang-option:hover,
body.dark .tt-lang-option:hover,
[data-bs-theme="dark"] .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a:hover,
.dark-mode .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a:hover,
body.dark .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a:hover {
  background: #334155 !important;
  color: #f8fafc !important;
}

[data-bs-theme="dark"] .tt-lang-option.active,
.dark-mode .tt-lang-option.active,
body.dark .tt-lang-option.active {
  background: #0f172a !important;
  color: #f87171 !important;
}

/* ==========================================================================
   FIXED SOCIAL SIDEBAR (Right Side)
   ========================================================================== */
.fixed-social-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  border-radius: 10px 0 0 10px;
  overflow: hidden;
  box-shadow: -3px 0 20px rgba(0, 0, 0, 0.3);
}

.fixed-social-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #fff;
  font-size: 18px;
  text-decoration: none !important;
  transition: all 0.22s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.fixed-social-item:last-child {
  border-bottom: none;
}

/* Màu thương hiệu từng mạng */
.fixed-social-fb  { background: #1877f2; }
.fixed-social-zl  { background: #0068ff; }
.fixed-social-tt  { background: #010101; }
.fixed-social-yt  { background: #ff0000; }

/* Hover: sáng nhẹ + trượt trái */
.fixed-social-item:hover {
  filter: brightness(1.15);
  transform: translateX(-5px);
  color: #fff;
}

/* Zalo SVG icon */
.fixed-zalo-icon {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

/* Tooltip tên mạng xã hội */
.fixed-social-item::after {
  content: attr(title);
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 15, 20, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.fixed-social-item:hover::after {
  opacity: 1;
}

/* Hiệu ứng ripple nhẹ khi hover */
.fixed-social-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.fixed-social-item:hover::before {
  opacity: 1;
}

/* Hide on mobile and tablet */
@media (max-width: 991.98px) {
  .fixed-social-sidebar {
    display: none !important;
  }
}

/* ==========================================================================
   TOPBAR SOCIAL PILL BUTTONS
   ========================================================================== */
.topbar-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none !important;
  color: #fff !important;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.2);
}

.topbar-social-btn i {
  font-size: 12px;
}

.topbar-social-fb  { background: #1877f2; border-color: #1877f2; }
.topbar-social-yt  { background: #ff0000; border-color: #ff0000; }
.topbar-social-tt  { background: #333;    border-color: #555; }
.topbar-social-zl  { background: #0068ff; border-color: #0068ff; }

.topbar-social-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  color: #fff !important;
}

/* Ẩn nhãn chữ trên màn hình nhỏ */
@media (max-width: 991px) {
  .topbar-social-label {
    display: none;
  }
  .topbar-social-btn {
    padding: 4px 8px;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    justify-content: center;
  }
}

/* ==========================================================================
   FIXED LANGUAGE SWITCHER (Right Side — Cờ quốc kỳ)
   ========================================================================== */
.fixed-lang-switcher {
  position: fixed;
  right: 0;
  top: 38%;
  transform: translateY(-50%);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  border-radius: 8px 0 0 8px;
  overflow: hidden;
  box-shadow: -3px 0 16px rgba(0, 0, 0, 0.35);
}

.fixed-lang-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(20, 20, 30, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.fixed-lang-item:last-child {
  border-bottom: none;
}

.fixed-lang-item:hover {
  background: rgba(200, 16, 46, 0.75);
  transform: translateX(-4px);
}

.fixed-lang-item.active {
  background: rgba(200, 16, 46, 0.45);
}

.fixed-lang-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--tt-primary, #c8102e);
  border-radius: 0 2px 2px 0;
}

.fixed-lang-flag {
  width: 32px;
  height: 22px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  display: block;
  transition: transform 0.2s ease;
}

.fixed-lang-item:hover .fixed-lang-flag {
  transform: scale(1.08);
}

.fixed-lang-code {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Tooltip */
.fixed-lang-item::after {
  content: attr(title);
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 20, 30, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.fixed-lang-item:hover::after {
  opacity: 1;
}

/* Tách social xuống thấp hơn để không đè lang */
.fixed-social-sidebar {
  top: 62%;
}

/* Hide on mobile and tablet */
@media (max-width: 991.98px) {
  .fixed-lang-switcher {
    display: none !important;
  }
}

/* ==========================================================================
   CONTACT PAGE (page-contact.php)
   ========================================================================== */

/* --- Hero --- */
.contact-hero {
  position: relative;
  background: linear-gradient(135deg, #1a252f 0%, #c8102e 60%, #e63550 100%);
  padding: 90px 0 130px;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
}

.contact-hero-content {
  position: relative;
  z-index: 2;
}

.contact-hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.contact-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.contact-hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Info Cards (nổi lên từ hero) --- */
.contact-cards-section {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding-bottom: 10px;
}

.contact-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.contact-info-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #f0f0f0;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.13);
}

.contact-info-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}

.ci-phone   { background: linear-gradient(135deg, #c8102e, #e63550); }
.ci-email   { background: linear-gradient(135deg, #1877f2, #42a5f5); }
.ci-address { background: linear-gradient(135deg, #ff9800, #ffb74d); }

.contact-info-body h4 {
  font-size: 13px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.contact-info-body a,
.contact-info-body span {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1a252f;
  text-decoration: none;
  margin-bottom: 4px;
  line-height: 1.4;
}

.contact-info-body a:hover { color: #c8102e; }

.contact-info-body p {
  font-size: 12px;
  color: #aaa;
  margin: 0;
}

/* --- Main Section --- */
.contact-main-section {
  padding: 50px 0 60px;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  align-items: start;
}

/* --- Form wrap --- */
.contact-form-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border: 1px solid #f0f0f0;
}

.contact-form-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a252f;
  margin-bottom: 6px;
}

.contact-form-header p {
  color: #888;
  font-size: 14px;
  margin-bottom: 28px;
}

/* Form rows */
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.cf-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.cf-field label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 7px;
}

.cf-req { color: #c8102e; margin-left: 2px; }

.cf-input-wrap {
  position: relative;
}

.cf-input-wrap > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #bbb;
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.cf-textarea-wrap > i {
  top: 16px;
  transform: none;
}

.cf-input-wrap input,
.cf-input-wrap textarea {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  color: #1a252f;
  background: #fafafa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  font-family: inherit;
  resize: vertical;
}

.cf-input-wrap input:focus,
.cf-input-wrap textarea:focus {
  border-color: #c8102e;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200,16,46,0.08);
}

.cf-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #c8102e, #e63550);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 36px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  letter-spacing: 0.3px;
  margin-top: 4px;
}

.cf-submit-btn:hover {
  background: linear-gradient(135deg, #a00c23, #c8102e);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,16,46,0.35);
}

/* Success / Error messages */
.contact-success-msg {
  text-align: center;
  padding: 50px 20px;
  color: #1a252f;
}

.contact-success-msg i {
  font-size: 3.5rem;
  color: #22c55e;
  display: block;
  margin-bottom: 16px;
}

.contact-success-msg h4 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.contact-success-msg p { color: #666; margin-bottom: 20px; }

.contact-send-again {
  color: #c8102e;
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
}

.contact-error-msg {
  background: #fff3f5;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

/* --- Sidebar --- */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cs-social-box,
.cs-hours-box {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border: 1px solid #f0f0f0;
}

.cs-social-box h3,
.cs-hours-box h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #1a252f;
  margin-bottom: 6px;
}

.cs-social-box p {
  font-size: 13px;
  color: #888;
  margin-bottom: 18px;
}

.cs-social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.cs-social-link i {
  width: 24px;
  text-align: center;
  font-size: 16px;
}

.cs-fb { background: #1877f2; }
.cs-yt { background: #ff0000; }
.cs-tt { background: #1a1a1a; }
.cs-zl { background: #0068ff; }

.cs-social-link:hover {
  filter: brightness(1.12);
  transform: translateX(3px);
}

/* Hours list */
.cs-hours-box h3 { margin-bottom: 16px; }

.cs-hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cs-hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
  color: #444;
}

.cs-hours-list li:last-child { border-bottom: none; }
.cs-hours-list li strong { font-weight: 700; color: #1a252f; }
.cs-hours-list li.cs-closed strong { color: #aaa; }
.cs-hours-list li.cs-closed span { color: #aaa; }

/* Page content in sidebar */
.cs-page-content {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border: 1px solid #f0f0f0;
  font-size: 14px;
  color: #444;
}

/* --- Map --- */
.contact-map-section {
  background: #f1f5f9;
}

.contact-map-placeholder {
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #bbb;
  gap: 12px;
}

.contact-map-placeholder i { font-size: 3rem; }
.contact-map-placeholder p { font-size: 14px; margin: 0; text-align: center; }

/* Dark mode */
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .contact-form-wrap,
[data-theme="dark"] .cs-social-box,
[data-theme="dark"] .cs-hours-box,
[data-theme="dark"] .cs-page-content {
  background: #1e1e1e;
  border-color: #333;
}

[data-theme="dark"] .contact-info-body a,
[data-theme="dark"] .contact-info-body span,
[data-theme="dark"] .contact-form-header h2,
[data-theme="dark"] .cs-social-box h3,
[data-theme="dark"] .cs-hours-box h3,
[data-theme="dark"] .cs-hours-list li strong { color: #e6edf3; }

[data-theme="dark"] .cf-input-wrap input,
[data-theme="dark"] .cf-input-wrap textarea {
  background: #252525;
  border-color: #444;
  color: #e6edf3;
}

[data-theme="dark"] .contact-map-section { background: #161616; }

/* Responsive */
@media (max-width: 991px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .contact-hero { padding: 60px 0 110px; }
  .contact-hero-title { font-size: 1.8rem; }
  .contact-form-wrap { padding: 24px 18px; }

  .cf-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

