:root{
  /* Brand palette (from your files) */
  --brand:#0A2472;             /* rgba(10,36,114,1) */
  --brand-600:#0a2472;
  --brand-50:#e7eef8;
  --secondary:#b2cee2;         /* rgba(178,206,226,1) */
  --ink:#0b1220;
  --muted:#5b6b88;
  --bg:#ffffff;
  --card:#ffffff;
  --surface:#f6f8fb;
  --success:#16a34a;
  --danger:#dc2626;

  --radius: 16px;
  --shadow: 0 10px 30px rgba(10,36,114,.15);
  --shadow-soft: 0 8px 20px rgba(0,0,0,.08);

  --container: 1200px;
  --transition: .35s ease;
}

/* Reset & base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

img{display:block; height:auto}
a{color:var(--brand); text-decoration:none}
a:hover{opacity:.9}
ul{list-style:none; padding:0; margin:0}

.container{max-width:var(--container); margin-inline:auto; padding-inline:16px}

/* Accessibility */
.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  position:fixed; z-index:1000; left:16px; top:16px; width:auto; height:auto; padding:8px 12px;
  background:#fff; border:2px solid var(--brand); border-radius:8px;
}

/* Header */
.site-header{
  position:sticky; top:0; z-index:50; background:rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-bottom:1px solid #e8edf6;
}
.header-bar{ display:flex; align-items:center; justify-content:space-between; gap:16px; height:72px}
.brand{ display:flex; align-items:center; gap:12px; color:inherit}
.brand__logo{ width:48px; height:auto; border-radius:12px; box-shadow: var(--shadow-soft)}
.brand__text{ display:flex; flex-direction:column; font-size:12px}
.brand__text strong{ font-size:14px; letter-spacing:.02em; color:var(--brand)}
.brand__text span{ color:var(--muted)}

/* Nav */
.main-nav{ position:relative}
.nav-toggle{
  display:none; background:transparent; border:0; padding:8px; border-radius:12px;
}
.nav-toggle__bar{ display:block; width:22px; height:2px; background:var(--ink); margin:5px 0; transition:var(--transition)}
.nav-links{ display:flex; align-items:center; gap:18px}
.nav-links a{ font-weight:600; font-size:14px; padding:8px 10px; border-radius:10px; transition: var(--transition)}
.nav-links a:hover{ background:var(--brand-50)}
.icon-btn{ background:#fff; border:1px solid #e8edf6; border-radius:12px; padding:8px; box-shadow:var(--shadow-soft) }
.icon-btn:hover{ transform: translateY(-1px) }
.search{ margin-left:8px}

/* Hero */
.hero{ position:relative; overflow:hidden; background:linear-gradient(180deg, var(--brand-50), #fff)}
.hero__bg{ position:absolute; inset:0; z-index:-1; opacity:.6}
.hero__img{ width:100%; height:auto; object-fit:cover }
.hero__inner{ padding:96px 0; text-align:center}
.hero h1{ font-size: clamp(24px, 4vw, 36px); margin:0 0 12px; color: var(--brand) }
.lead{ font-size: clamp(16px, 2.5vw, 20px); color:var(--muted); margin:0 0 20px}
.hero__actions{ display:flex; justify-content:center; gap:12px}
.hero__scroll{
  height:56px; background:linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,1));
}

/* Buttons */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 16px; border-radius:14px; border:1px solid #e8edf6; font-weight:700;
  transition: var(--transition); box-shadow: var(--shadow-soft);
}
.btn:hover{ transform: translateY(-2px) }
.btn-primary{ background: var(--brand); color:#fff; border-color: transparent }
.btn-outline{ background:#fff; color: var(--brand); }
.btn-accent{ background: var(--secondary); color: var(--brand) }

/* Sections */
.section{ padding:56px 0 }
.section--alt{ background: var(--surface) }
.section__header{ display:flex; align-items:center; gap:12px; margin-bottom:20px}
.section__bar{ width:8px; height:36px; background: var(--brand); border-radius:8px}
.section__title{ margin:0; font-size: clamp(20px, 3vw, 32px) }
.section__desc{ color: #eef3ff; max-width:700px }
.section__header--light .section__title{ color:#fff }
.section__bar--light{ background:#fff }

/* Cards */
.grid{ display:grid; gap:20px }
.grid.two{ grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); align-items:start }
.cards-3{ grid-template-columns: repeat(auto-fit, minmax(260px,1fr)) }

.card{
  position:relative; overflow:hidden; border-radius: var(--radius); background:var(--card);
  border:1px solid #e8edf6; box-shadow: var(--shadow-soft);
}
.card__media{ width:100%; height:auto; display:block }
.card__overlay{
  position:absolute; inset:auto 0 0 0; height:45%; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55));
}
.card__title{
  position:absolute; left:16px; bottom:16px; right:16px;
  margin:0; color:#fff; font-size: clamp(16px, 2.5vw, 22px);
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.card__excerpt{
  position:absolute; left:16px; bottom:46px; right:16px; color:#fff; font-size:14px; opacity:.95
}

/* Parallax section */
.parallax{ position:relative; min-height: 60vh; display:flex; align-items:center; overflow:hidden; background: var(--brand); }
.parallax__media{
  position:absolute; inset:-10% -10% -10% -10%; background: var(--brand);
  background-image: var(--parallax-src);
  background-size: cover; background-position:center;
  transform: translateY(0); transition: transform 0.1s linear;
  filter: saturate(1) contrast(1.05) brightness(.9);
  opacity:.35;
}
.parallax__inner{ position:relative; z-index:1; color:#fff; text-align:center; padding:80px 0 }

/* About */
.about{ display:grid; grid-template-columns: 1fr; gap:20px }
.about__brand{ display:flex; align-items:center; gap:12px }
.about__logo{ width:72px; height:auto }
.in_post{display: block;
  max-width: 72%;   /* ảnh tự co khi nhỏ */
  height: auto;
  margin: 1.5rem auto;
  border-radius: 8px; /* tùy chọn */}
.cta-row{ display:flex; gap:12px; flex-wrap:wrap }

/* Newsletter */
.newsletter{ display:grid; grid-template-columns: 1.1fr .9fr; gap:20px; align-items:center }
.newsletter__form{ display:flex; gap:12px; flex-wrap:wrap }
.newsletter input{
  flex:1 1 260px; padding:12px 14px; border-radius:12px; border:1px solid #dbe4f3;
  outline:none; transition: var(--transition);
}
.newsletter input:focus{ border-color: var(--brand); box-shadow: 0 0 0 4px rgba(10,36,114,.12) }
.newsletter input::placeholder {
  font-family: "Montserrat";
}

.form-msg{ margin-left:8px; font-size:14px }
.form-msg.is-success{ color: var(--success) }
.form-msg.is-error{ color: var(--danger) }

/* Contact */
.contact__list{ display:grid; gap:8px }
.cta-card{
  background: linear-gradient(180deg, #ffffff, #eff4ff);
  border:1px solid #e8edf6; border-radius: var(--radius); padding:24px; box-shadow: var(--shadow-soft);
}

/* Footer */
.site-footer{ border-top:1px solid #e8edf6; background:#fff }
.footer__inner{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 0 }

/* Animations */
.anim-up{ opacity:0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease }
.anim-left{opacity:0; transform: translateX(16px); transition: opacity .6s ease, transform .6s ease}
.anim-up.in-view{ opacity:1; transform: none }
.anim-fade{ opacity:0; transition: opacity .8s ease }
.anim-fade.in-view{ opacity:1 }
.anim-delay-1{ transition-delay: .15s }
.anim-delay-2{ transition-delay: .3s }

/* Responsive */
@media (max-width: 992px){
  .hero__inner{ padding:72px 0 }
  .newsletter{ grid-template-columns: 1fr }
}
@media (max-width: 768px){
  .header-bar{ height:64px }
  .nav-toggle{ display:inline-block }
  .nav-links{
    position:absolute; right:0; top:64px; background:#fff; border:1px solid #e8edf6;
    border-radius: 16px; padding:10px; display:none; flex-direction:column; gap:8px;
    width: min(88vw, 320px); box-shadow: var(--shadow);
  }
  .nav-links.is-open{ display:flex }
  .brand__text{ display:none } /* giữ gọn */
  .hero__inner{ padding:64px 0 }
  .cta-row{ justify-content:center }
}
@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; scroll-behavior:auto }
}

/* Subpage Hero */
.hero--subpage{
  background: linear-gradient(180deg, var(--brand-50), #fff);
  padding: 72px 0;
  text-align:center;
}
.hero--subpage h1{ color: var(--brand); margin-bottom:12px }
.hero--subpage .lead{ color: var(--muted) }

/* About page */
.about-page{ display:grid; gap:20px; max-width:800px }
.about-page__intro{ display:flex; align-items:center; gap:16px }
.about-page__logo{ width:80px; height:auto; border-radius:16px }
.about-page p{ margin-bottom:16px; line-height:1.7 }

/* text */
.about__text{
  max-width: 800px;    /* cùng một max-width với container con */
  width: 100%;         /* full trong phạm vi max-width */
  text-align: justify;     /* căn giữa */
  display: inline-block;
}
.in_post {
  max-width: 800px;    /* cùng một max-width với container con */
  width: 100%;         /* full trong phạm vi max-width */
  margin: 0 auto;      /* căn giữa */
  display: block;
}

 .dropdown-menu {
  display: none;
  position: absolute;  /* để nó thả xuống */
  background: #0A2472;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  border-radius: 6px;
  z-index: 100;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 12px;
  color: #ffffff;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background: #f2f2f2;
}

/* khi hover vào li hoặc focus thì hiện menu con */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}


.post-content {
  max-width: 800px;      /* chiều rộng tối đa */
  margin: 0 auto;        /* căn giữa khối */
  line-height: 1.7;
  font-size: 16px;
  color: var(--ink);
  text-align: justify;   /* căn đều 2 bên */
}

.post-content p {
  margin-bottom: 1.5rem; /* khoảng cách giữa các đoạn */
}

.post-image {
  display: block;
  max-width: 100%;
  margin: 1.5rem auto;
  border-radius: 8px;
}

.post-title h1 {
  color: var(--brand);
  margin-bottom: 12px;
  font-size: clamp(16px, 4vw, 36px); /* responsive: nhỏ nhất 28px, lớn nhất 48px */
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.post-title h2 {color: var(--brand);
  margin-bottom: 12px;
  font-size: clamp(16px, 4vw, 16px); /* responsive: nhỏ nhất 28px, lớn nhất 48px */
  font-weight: 700;
  line-height: 1.3;
  text-align: center;}



.card-header {
  background: var(--brand);
  color: white;
  padding: 16px 20px;
  margin: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
}

.card-content {
  flex-grow: 1;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-meta {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

/* Update article class để responsive */
.article {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr; /* Tự động tạo hàng mới */
  grid-template-rows: repeat(2, minmax(300px, auto)); /* Chiều cao tối thiểu */
  gap: 16px;
  align-items:stretch; /* Quan trọng! */
}

.card {
  display: flex;
  flex-direction: column;
  height: auto; /* Chiếm full height của grid cell */
  min-height: auto; /* Hoặc 250px, 350px tùy ý */
}

.card_text{
  font-size: 16px;
  max-width: inherit;
  text-align: justify;
  line-height: 1.6;
  margin: 6px;
  margin-left: 3px;
  margin-right: 3px;
}
.split_two_column{
  display: grid;
  grid-auto-columns: 1fr ;
  flex-direction: row;
  height: auto;

}
.article_image{
  max-width: 200px;
  max-height: 160px;
}
.article_head {
  display: flex;
  align-items: flex-start;  /* cho chữ và ảnh thẳng hàng trên */
  gap: 20px;                /* khoảng cách giữa chữ và ảnh */
  margin-top: 20px;
}

.article_head .text {
  flex: 2;                  /* chữ chiếm rộng hơn */
  text-align: justify;      /* căn đều chữ */
  line-height: 1.6;
}

.article_head .image {
  flex: 1;                  /* ảnh chiếm nhỏ hơn */
}

.article_head .image img {
  max-width: 100%;          /* không bị tràn */
  height: auto;
  border-radius: 4px;
}

 .posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.post-card {
  background: #f9fbfd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-info {
  padding: 12px 16px;
}

.post-date {
  font-size: 14px;
  color: #555;
  margin-bottom: 4px;
}

.post-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.post-title a {
  text-decoration: none;
  color: #222;
}

.post-title a:hover {
  color: #0066cc;
}

.article {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%; /* để card stretch hết link */
}

.card {
  display: flex;
  flex-direction: column;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  height: 100%;
}

.card-header {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
}

.card-content {
  flex: 1;
}

.social-icons {
  margin-top: 10px;
  display: flex;
  gap: 12px;
}

.social-icons img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s;
}

.social-icons img:hover {
  transform: scale(1.1);
}

.contact-info h2 {
  margin-top: 12px;
  font-size: 20px;
  color: var(--brand);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dbe4f3;
  outline: none;
  font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(10,36,114,.12);
}

.hero__parallax {
position: absolute;
  inset: 0;
  z-index: -1; /* đằng sau chữ nhưng trước background gốc */
  width: 100%;
  height: 100%;
  background-image: url('images/website-page-1-1-1-14.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3; /* độ mờ, điều chỉnh từ 0.1 đến 0.5 */
}

.four_image_galileans{
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 cột */
  grid-template-rows: 1fr 1fr;    /* 2 hàng */
  gap: 10px;                      /* khoảng cách giữa các ảnh */
  width: 800px;                   /* chiều rộng khung */
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}

.four_image_galileans img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.galilean_text{
  text-align: center;
  font-style: italic;
  font-style: bold;
  margin-top: 10px;
  margin-bottom: 10px;
}
