/*
 Theme Name:   Flatsome Child - Mắt Hà Nội Hạ Long
 Theme URI:    https://mathanoihalong.com
 Description:  Flatsome child theme cho Bệnh viện Mắt Hà Nội - Hạ Long
 Author:       mathanoihalong.com
 Author URI:   https://mathanoihalong.com
 Template:     flatsome
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 Text Domain:  flatsome-child-mathanoi
*/

/* ============================================
   BRAND DESIGN TOKENS
   ============================================ */
:root {
  --mathanoi-primary: #1B75BB;
  --mathanoi-secondary: #00A859;
  --mathanoi-accent: #ED1C24;
  --mathanoi-dark: #333333;
  --mathanoi-text: #555555;
  --mathanoi-light: #F5F5F5;
  --mathanoi-white: #FFFFFF;
  --mathanoi-border: #E7E7E7;
  --mathanoi-font: 'Quicksand', sans-serif;
  --mathanoi-radius: 6px;
}

/* ============================================
   GLOBAL TYPOGRAPHY
   ============================================ */
body {
  font-family: var(--mathanoi-font);
  color: var(--mathanoi-text);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mathanoi-font);
  font-weight: 700;
  color: var(--mathanoi-dark);
}

/* ============================================
   HEADER CUSTOMIZATION
   ============================================ */
.header-main {
  background-color: var(--mathanoi-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

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

/* Top bar */
.header-top {
  background-color: var(--mathanoi-primary);
  color: var(--mathanoi-white);
  font-size: 13px;
}

.header-top a {
  color: var(--mathanoi-white) !important;
}

/* Navigation */
.nav > li > a {
  font-family: var(--mathanoi-font);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.nav > li > a:hover,
.nav > li.active > a {
  color: var(--mathanoi-primary) !important;
}

/* ============================================
   HOMEPAGE SECTIONS
   ============================================ */

/* Section Title */
.section-title-mathanoi {
  text-align: center;
  margin-bottom: 40px;
}

.section-title-mathanoi h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--mathanoi-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title-mathanoi h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--mathanoi-primary);
}

/* Service Cards */
.mathanoi-service-card {
  background: var(--mathanoi-white);
  border-radius: var(--mathanoi-radius);
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.mathanoi-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.mathanoi-service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mathanoi-service-card:hover img {
  transform: scale(1.05);
}

.mathanoi-service-card h3 {
  padding: 15px 20px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.mathanoi-service-card h3 a {
  color: var(--mathanoi-dark);
  text-decoration: none;
}

/* About Section */
.mathanoi-about {
  background-color: var(--mathanoi-light);
  padding: 60px 0;
}

/* Parallax Counter */
.mathanoi-counter-box {
  text-align: center;
  color: var(--mathanoi-white);
  padding: 20px;
}

.mathanoi-counter-box .counter-number {
  font-size: 48px;
  font-weight: 700;
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}

.mathanoi-counter-box .counter-label {
  font-size: 16px;
  opacity: 0.9;
}

/* Policy/Feature Boxes */
.mathanoi-policy-box {
  text-align: center;
  padding: 30px 20px;
}

.mathanoi-policy-box i {
  font-size: 48px;
  color: var(--mathanoi-primary);
  margin-bottom: 20px;
  display: block;
}

.mathanoi-policy-box h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.mathanoi-policy-box p {
  font-size: 14px;
  color: var(--mathanoi-text);
  line-height: 1.6;
}

/* Blog Grid */
.mathanoi-blog-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--mathanoi-radius);
  margin-bottom: 20px;
}

.mathanoi-blog-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mathanoi-blog-card:hover img {
  transform: scale(1.08);
}

.mathanoi-blog-card .blog-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 30px 20px 15px;
  color: var(--mathanoi-white);
}

.mathanoi-blog-card .blog-overlay h3 {
  color: var(--mathanoi-white);
  font-size: 16px;
  margin: 0 0 5px;
}

.mathanoi-blog-card .blog-date {
  font-size: 13px;
  opacity: 0.8;
}

/* Product/Service Gallery */
.mathanoi-gallery-item {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.mathanoi-gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mathanoi-gallery-item:hover img {
  transform: scale(1.08);
}

.mathanoi-gallery-item .gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 30px 15px 15px;
  color: var(--mathanoi-white);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.3s ease;
}

.mathanoi-gallery-item:hover .gallery-overlay {
  transform: translateY(0);
  opacity: 1;
}

.mathanoi-gallery-item h3 {
  color: var(--mathanoi-white);
  font-size: 15px;
  margin: 0;
}

/* Partners Slider */
.mathanoi-partners img {
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.mathanoi-partners img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ============================================
   BUTTONS
   ============================================ */
.mathanoi-btn {
  display: inline-block;
  padding: 10px 30px;
  background: var(--mathanoi-primary);
  color: var(--mathanoi-white);
  text-decoration: none;
  border-radius: var(--mathanoi-radius);
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--mathanoi-primary);
}

.mathanoi-btn:hover {
  background: transparent;
  color: var(--mathanoi-primary);
}

.mathanoi-btn-dark {
  background: var(--mathanoi-dark);
  border-color: var(--mathanoi-dark);
}

.mathanoi-btn-dark:hover {
  background: transparent;
  color: var(--mathanoi-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-1 {
  background-color: var(--mathanoi-dark);
}

.footer-1 .footer-title {
  color: var(--mathanoi-white);
  font-weight: 700;
}

/* ============================================
   FLOATING CTA (Zalo/Phone)
   ============================================ */
.mathanoi-float-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mathanoi-float-cta a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.mathanoi-float-cta a:hover {
  transform: scale(1.1);
}

.mathanoi-float-cta .cta-phone {
  background: linear-gradient(135deg, #e8434c, #d61114);
}

.mathanoi-float-cta .cta-zalo {
  background: linear-gradient(135deg, #3985f7, #1272e8);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .section-title-mathanoi h2 {
    font-size: 24px;
  }
  
  .mathanoi-counter-box .counter-number {
    font-size: 32px;
  }
  
  .mathanoi-service-card img {
    height: 180px;
  }
  
  .mathanoi-gallery-item img {
    height: 200px;
  }
  
  .mathanoi-gallery-item .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
  }
}
