@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600&family=Poppins:wght@400;600&family=Roboto:wght@400;500&display=swap');

:root {
  --light: #f8f9fa;
  --secondary: #adb5bd;
  --dark: #2b2b2b;
  --primary-color: #f15bb5;
  --secondary-color: #2ec4b6;
  --border: #e9ecef;
  --accent: #ffe5ec;
}

/* Global Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Roboto', sans-serif;
  background: #fff;
  color: var(--dark);
  line-height: 2.3;
}

a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
a:hover { color: var(--primary-color); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 5px; }

/* Header */
header {
  background: var(--light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand img { height: 50px; }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-right: 60px;
}

.nav-link {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: var(--dark);
}

.nav-link:hover { color: var(--primary-color); }

.toggle-button {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
}

/* Author section */
.post-author {
  margin-top: 8em;
  text-align: center;
  background: var(--accent);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.rounded {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.post-author h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 1rem;
}

.post-author p {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  max-width: 850px;
  margin: 1rem auto 1.5rem;
}

.post-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.post-tags a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.post-tags a:hover {
  background: var(--primary-color);
  transform: scale(1.05);
}
/* Slider */
.slider { margin-top: 3em; }

.swiper-slide img {
  border-radius: 12px;
  object-fit: cover;
  width: 100%;
  height: 450px;
  transition: transform 0.5s ease;
}

.swiper-slide img:hover { transform: scale(1.05); }

/* Footer */
/* === Footer Styling Clean & Balanced === */
#footer {
  margin-top: 5em;
  background: var(--light);
  padding: 3em 0 2em;
  font-family: 'Poppins', sans-serif;
  text-align: left;
}

#footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

#footer .col-3 {
  flex: 1 1 300px;
  min-width: 280px;
}

/* Footer titles */
#footer .footer-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
}

/* About Me text block */
#footer .secondary-title p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1rem;
}

#footer address,
#footer .phone,
#footer .email {
  font-size: 0.9rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

#footer address i,
#footer .phone i,
#footer .email i {
  font-size: 22px;
  color: var(--primary-color);
}

/* Tags section */
#footer .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0.5rem;
}

#footer .tags a {
  border-radius: 25px;
  padding: 8px 14px;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--dark);
  transition: all 0.3s ease;
}

#footer .tags a:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Social icons uniform */
#footer .social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 0.8rem;
}

#footer .social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--dark);
  font-size: 16px;
  transition: all 0.3s ease;
}

#footer .social a:hover {
  background: var(--secondary-color);
  color: #fff;
  transform: scale(1.05);
}

/* Copyright line */
#footer .copyrights {
  border-top: 1px solid var(--border);
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--secondary);
}


.tags a {
  border-radius: 40px;
  padding: 8px 16px;
  font-size: 14px;
  margin: 5px;
  background: #fff;
  border: 1px solid var(--border);
}

.tags a:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.social a {
  border-radius: 50%;
  padding: 0.6rem;
  background: #fff;
  margin: 0.3rem;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.social a:hover {
  background: var(--secondary-color);
  color: #fff;
}

.copyrights {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--secondary);
}

/* Responsive */
@media (max-width: 992px) {
  .navbar-nav { display: none; flex-direction: column; }
  .navbar-nav.show { display: flex; }
  .toggle-button { display: block; }
}

@media (max-width: 576px) {
  .post-author { margin-top: 6em; padding: 2em 1em; }
  .swiper-slide img { height: 220px; }
}
/* === BLOG PAGE === */
.blog-list {
  text-align: center;
  padding-bottom: 3rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

/* === BLOG PAGE - Horizontal Card Style === */

.blog-list {
  text-align: center;
  padding-bottom: 3rem;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

/* Bố cục từng bài viết */
.blog-card {
  display: flex;
  align-items: stretch;
  background: var(--light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Ảnh bên trái */
.blog-thumb {
  width: 40%;
  height: 320px;              /* Giữ chiều cao cố định */
  object-fit: cover;          /* Cắt ảnh theo khung, không méo */
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  display: block;
}

/* Nội dung bên phải */
.blog-content {
  flex: 1;
  padding: 1.5rem 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
  color: var(--dark);
}

.blog-content p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.read-more {
  color: var(--secondary-color);
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}

.read-more:hover {
  color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .blog-card {
    flex-direction: column;
  }

  .blog-thumb {
    height: 250px;
  }

  .blog-content {
    padding: 1.2rem;
  }
}


.blog-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--dark);
}

.blog-content p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1rem;
}

.read-more {
  color: var(--secondary-color);
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}

.read-more:hover {
  color: var(--primary-color);
}
/* === CONTACT PAGE === */
.contact-section {
  max-width: 700px;
  margin: 0 auto;
  background: var(--light);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 2.5rem 2rem 3rem;
}

.contact-section h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.contact-section p {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.contact-info {
  background: #fff;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.contact-info p {
  margin: 8px 0;
}

.contact-info a {
  color: var(--secondary-color);
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--primary-color);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: 500;
  color: var(--dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
}

.contact-form button {
  margin-top: 0.5rem;
  background: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.9rem;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: var(--primary-color);
}
/* === ARTICLE DETAIL PAGE === */
.article-detail {
  max-width: 900px;
  margin: auto;
  background: var(--light);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.article-content h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.article-text {
  color: var(--dark);
  line-height: 1.6;
  text-align: justify;
  margin-top: 1rem;
}

.article-content {
  word-wrap: break-word;
  white-space: pre-line;
}

.article-content img {
  display: block;
  max-width: 100%;         /* ✅ Ảnh nhỏ hơn chiều rộng trang */
  height: auto;           
  margin: 1.2rem auto;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}
