/**
 * Footer Stylesheet - Trường THPT Chuyên Lê Quý Đôn - Đông Hải
 * Designed to match the school brand mockup.
 */

:root {
  --lqd-green-primary: #005a3c;
  --lqd-green-dark: #003828;
  --lqd-green-light: #00a86b;
  --lqd-red-primary: #d11f26;
  --lqd-red-dark: #b3141a;
  --lqd-text-main: #333333;
  --lqd-text-muted: #555555;
  --lqd-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Outer Footer Container */
#colophon {
  position: relative;
  background: #ffffff;
  color: var(--lqd-text-main);
  font-family: var(--lqd-font-family);
  margin: 30px 0 0 0;
  padding: 0;
  border-top: none;
  overflow: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

/* Remove default Twenty Eleven footer clutter */
#colophon #supplementary,
#colophon #site-generator {
  display: none !important;
}

/* -------------------------------------------------------------
 * 1. Top Decorative Wave Banner
 * ------------------------------------------------------------- */
.lqd-footer-banner {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  background: #ffffff;
}

.lqd-footer-banner img.lqd-footer-custom-banner {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
  display: block;
}

.lqd-footer-wave-svg {
  width: 100%;
  height: auto;
  min-height: 90px;
  max-height: 140px;
  display: block;
}

/* -------------------------------------------------------------
 * 2. Main Footer Body Content Grid
 * ------------------------------------------------------------- */
.lqd-footer-body {
  max-width: 1500px;
  margin: 0 auto;
  padding: 15px 30px 35px 30px;
  display: grid;
  grid-template-columns: 290px 270px 150px 140px 140px 1fr;
  gap: 24px;
  align-items: start;
}

/* Brand Column */
.lqd-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-right: 15px;
}

.lqd-footer-logo-wrapper {
  margin-bottom: 12px;
}

.lqd-footer-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.lqd-footer-logo:hover {
  transform: scale(1.05);
}

.lqd-school-title {
  margin: 0;
  line-height: 1.25;
}

.lqd-school-line-1 {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--lqd-green-primary);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.lqd-school-line-2 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--lqd-red-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.lqd-school-slogan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12.5px;
  font-style: italic;
  font-weight: 600;
  color: #0d6e4b;
  margin-bottom: 8px;
}

.lqd-school-slogan .leaf-icon {
  font-size: 14px;
  color: #27ae60;
  display: inline-block;
}

.lqd-school-slogan .leaf-icon.flip {
  transform: scaleX(-1);
}

.lqd-brand-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  margin: 4px auto 0 auto;
}

.lqd-brand-divider .divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e05d5d, transparent);
}

.lqd-brand-divider .divider-star {
  color: var(--lqd-red-primary);
  font-size: 11px;
  padding: 0 6px;
  line-height: 1;
}

/* Contact Column */
.lqd-footer-contact {
  font-size: 13.5px;
  line-height: 1.5;
  color: #333333;
}

.lqd-contact-list {
  list-style: none !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
}

.lqd-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  list-style: none !important;
}

.lqd-contact-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lqd-red-primary);
  margin-top: 2px;
}

.lqd-contact-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.lqd-contact-text {
  flex: 1;
  word-break: break-word;
}

.lqd-contact-text a {
  color: #333333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.lqd-contact-text a:hover {
  color: var(--lqd-red-primary);
}

/* Social Buttons */
.lqd-footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.lqd-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.lqd-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

.lqd-social-zalo {
  background: #0068ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-family: Arial, sans-serif;
}

.lqd-social-facebook {
  background: #1877f2;
}

.lqd-social-facebook svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

/* Menu Columns (Quick Links, Library, Support) */
.lqd-footer-nav {
  display: flex;
  flex-direction: column;
}

.lqd-nav-title {
  font-size: 14.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--lqd-green-primary);
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.lqd-nav-title::after {
  content: "";
  display: block;
  width: 32px;
  height: 2.5px;
  background-color: var(--lqd-red-primary);
  margin-top: 6px;
  border-radius: 2px;
}

.lqd-footer-menu {
  list-style: none !important;
  margin: 8px 0 0 0 !important;
  padding: 0 !important;
}

.lqd-footer-menu li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 0 7px 0 !important;
  padding: 0 !important;
  line-height: 1.4;
}

.lqd-footer-menu li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4a4a4a;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.lqd-footer-menu li a::before {
  content: "›";
  color: var(--lqd-green-primary);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.lqd-footer-menu li a:hover {
  color: var(--lqd-red-primary);
  transform: translateX(3px);
}

.lqd-footer-menu li a:hover::before {
  color: var(--lqd-red-primary);
  transform: translateX(1px);
}

/* Right Building Column */
.lqd-footer-building {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
}

.lqd-building-card {
  width: 100%;
  max-width: 320px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid #eaeaea;
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lqd-building-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.lqd-building-img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  display: block;
}

/* -------------------------------------------------------------
 * 3. Bottom Bar
 * ------------------------------------------------------------- */
.lqd-footer-bottom {
  background: linear-gradient(90deg, #003c2b 0%, #004d39 50%, #003c2b 100%);
  color: #e0f2ed;
  font-size: 13px;
  padding: 13px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lqd-footer-bottom-inner {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.lqd-footer-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 400;
}

.lqd-footer-copy svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.85;
}

.lqd-footer-credits {
  margin: 0;
  font-weight: 400;
  text-align: right;
}

.lqd-footer-credits strong {
  color: #ffffff;
  font-weight: 700;
}
