/*
Theme Name: Flatsome Child - Bệnh viện Ung bướu Bắc Giang
Theme URI: https://bvungbuoubg.com
Template: flatsome
Author: Bệnh viện Ung bướu tỉnh Bắc Giang
Description: Flatsome child theme cho Cổng thông tin điện tử Bệnh viện Ung bướu tỉnh Bắc Giang
Version: 1.0.0
Text Domain: flatsome-child
*/

/* ══════════════════════════════════════════════════════════════
   DESIGN SYSTEM & VARIABLES
   ══════════════════════════════════════════════════════════════ */
:root {
  --color-primary: #005691;     /* Medical blue (Trọng tâm, Tin cậy) */
  --color-secondary: #00a8cc;   /* Medical green/teal (Phụ trợ) */
  --color-accent: #ff5e57;      /* Emergency red (Hotline, Cấp cứu) */
  --color-dark: #002a4a;        /* Deep navy (Chân trang, Văn bản chính) */
  --color-light: #f5f8fa;       /* Light blue-grey (Nền phụ) */
  --color-white: #ffffff;
  --font-heading: 'Roboto', 'Arial', sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-white);
  color: #333333;
}

h1, h2, h3, h4, h5, h6, .nav-line > li > a {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
}

/* ══════════════════════════════════════════════════════════════
   HEADER & TOPBAR TWEAKS
   ══════════════════════════════════════════════════════════════ */
.topbar {
  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;
}

.topbar a {
  color: var(--color-white) !important;
  font-weight: bold;
}

.header-nav {
  font-size: 15px;
}

.nav-line > li > a {
  color: var(--color-primary);
  text-transform: uppercase;
  padding: 15px 12px !important;
  transition: all 0.3s ease;
}

.nav-line > li > a:hover {
  color: var(--color-secondary);
}

/* Custom banner top header for portal look */
.portal-header-banner {
  background: linear-gradient(135deg, #005691 0%, #002a4a 100%);
  color: #fff;
  padding: 15px 0;
  border-bottom: 3px solid var(--color-secondary);
}

/* ══════════════════════════════════════════════════════════════
   HOSPITAL FEATURES & HOMEPAGE STYLING
   ══════════════════════════════════════════════════════════════ */
.emergency-box {
  border: 2px solid var(--color-accent);
  background-color: #fff8f8;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.emergency-title {
  color: var(--color-accent);
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.emergency-phone {
  font-size: 1.8em;
  color: var(--color-accent);
  font-weight: 800;
  text-decoration: none;
}

.quick-link-card {
  background: #ffffff;
  border: 1px solid #eef2f5;
  border-bottom: 3px solid var(--color-primary);
  border-radius: 6px;
  padding: 20px 15px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.quick-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 86, 145, 0.1);
  border-bottom-color: var(--color-secondary);
}

.quick-link-card i {
  color: var(--color-primary);
  margin-bottom: 10px;
}

.section-title-medical {
  position: relative;
  padding-left: 15px;
  border-left: 5px solid var(--color-primary);
  margin-bottom: 25px;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   FLOATING EMERGENCY BUTTONS (CTA)
   ══════════════════════════════════════════════════════════════ */
.floating-cta-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  position: relative;
}

.floating-cta-btn:hover {
  transform: scale(1.1);
}

.floating-cta-btn.phone {
  background-color: var(--color-accent);
}

.floating-cta-btn.zalo {
  background-color: #0068ff;
}

.floating-cta-btn.register {
  background-color: #2ecc71;
}

/* Pulse animation for hotline button */
.floating-cta-btn.phone::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  animation: pulse 1.8s infinite;
  opacity: 0;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Hide Flatsome elements we do not want */
.element-error { display: none !important; }
