@import "variables.css";

@font-face {
  font-family: "Google Sans";
  src: url("../assets/fonts/GoogleSansOTF/GoogleSans-Regular.otf") format("opentype"),
    url("../assets/fonts/GoogleSansTTF/GoogleSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans";
  src: url("../assets/fonts/GoogleSansOTF/GoogleSans-Italic.otf") format("opentype"),
    url("../assets/fonts/GoogleSansTTF/GoogleSans-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans";
  src: url("../assets/fonts/GoogleSansOTF/GoogleSans-Medium.otf") format("opentype"),
    url("../assets/fonts/GoogleSansTTF/GoogleSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans";
  src: url("../assets/fonts/GoogleSansOTF/GoogleSans-Bold.otf") format("opentype"),
    url("../assets/fonts/GoogleSansTTF/GoogleSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans";
  src: url("../assets/fonts/GoogleSansOTF/GoogleSans-MediumItalic.otf") format("opentype"),
    url("../assets/fonts/GoogleSansTTF/GoogleSans-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans";
  src: url("../assets/fonts/GoogleSansOTF/GoogleSans-BoldItalic.otf") format("opentype"),
    url("../assets/fonts/GoogleSansTTF/GoogleSans-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}


/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

/* Prevent scrolling when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

body {
  font-family: var(--font-family);
  width: 100%;
  overflow-x: hidden;
  background: var(--bg-token);
}


button {
  font-family: var(--font-family);
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Bootstrap-like container sizes */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* ===== HEADER STYLES ===== */
.header {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  z-index: 10;
}

.header.mobile-menu-open {
  /*   background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px); */
  z-index: 9998;
  /*  box-shadow: 0 8px 32px 0 rgba(58, 64, 145, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.25); */
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  margin: 0 auto;
}

/* Remove glass container styles and simplify */
@media (min-width: 768px) {
  .header>.container {
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0 auto;
    border-radius: 0;
  }

  .header .nav {
    gap: 1.5rem;
  }
}

/* Mobile header styling */
@media (max-width: 767px) {
  .header>.container {
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0 auto;
    border-radius: 0;
  }
}

/* ===== LOGO STYLES ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-icon {
  height: 40px;
  width: auto;
  background: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.logo-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: none;
  max-height: 48px;
}

/* ===== NAVIGATION STYLES ===== */
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--wood-primary);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  transition: color 0.1s ease;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  position: relative;
}

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

/* Remove focus and focus-visible states for all anchor tags */
a:focus,
a:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

a:focus::after,
a:focus-visible::after {
  display: none !important;
}

.nav a.active {
  color: var(--wood-primary);
  font-weight: 700;
}

.nav a.active:hover {
  color: var(--wood-primary);
  font-weight: 700;
}

/* ===== MOBILE MENU BUTTON ===== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  color: var(--wood-primary);
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  position: relative;
  z-index: 1001;
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 9999;
  padding: 0;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100vh;
  width: 80%;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 1rem;
  border-bottom: 1px solid rgba(58, 64, 145, 0.1);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 10000;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  color: var(--wood-primary);
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(58, 64, 145, 0.05);
}

.mobile-menu-close:active {
  background: var(--wood-secondary);
}

/* Mobile Menu Links */
.mobile-menu a {
  display: block;
  padding: 1.25rem 1rem;
  color: var(--wood-primary);
  text-decoration: none;
  font-weight: 400;
  font-size: 1rem;
  transition: all 0.4s ease;
  border-bottom: 1px solid rgba(58, 64, 145, 0.08);
  position: relative;
  overflow: hidden;
  margin: 0 1rem;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--wood-primary);
}

.mobile-menu a.active {
  color: var(--wood-primary);
  font-weight: 700;
}

/* ===== FOOTER STYLES ===== */
.footer {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--foreground);
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  color: var(--foreground);
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--wood-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(58, 64, 145, 0.1);
  padding-top: 1.5rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-left p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Footer description text styling */
.footer>.container>.footer-grid>div:first-child p {
  color: var(--muted-foreground);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ===== SOCIAL LINKS WRAPPER (UIVERSE STYLE) ===== */
.social-links-wrapper {
  position: relative;
  width: fit-content;
  margin-top: 1.25rem;
}

.social-links-bg {
  position: absolute;
  inset: -4px;
  background: rgba(0, 0, 0, 0.04);
  /* Subtle dark for light footer */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  z-index: 0;
}

.social-links {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.15rem;
  z-index: 1;
}

.social-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  /* Force white for gradients */
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  clip-path: url(#squircleClip);
  -webkit-clip-path: url(#squircleClip);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.social-btn:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.social-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.3s ease;
}

.social-btn:hover svg {
  transform: scale(1.1);
}

/* Platform Gradients */
.social-btn.facebook {
  background: linear-gradient(135deg, #1877F2 0%, #0C4D9C 100%);
  border-color: rgba(24, 119, 242, 0.3);
}

.social-btn.youtube {
  background: linear-gradient(135deg, #FF0000 0%, #B30000 100%);
  border-color: rgba(255, 0, 0, 0.3);
}

.social-btn.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: rgba(220, 39, 67, 0.3);
}

.social-btn.tiktok {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===== CERTIFICATE STYLES ===== */
.certificate-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.certificate-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  width: fit-content;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.certificate-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.certificate-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center;
}

.bocongthuong-img {
  height: 40px;
  width: auto;
}

/* ===== BUTTON STYLES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #3A4091 0%, #6469C0 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(58, 64, 145, 0.2);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg,
      var(--wood-primary) 0%,
      rgba(58, 64, 145, 0.85) 100%);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg,
      var(--wood-primary) 0%,
      rgba(58, 64, 145, 0.95) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(58, 64, 145, 0.4);
  border-color: transparent;
}

.btn-secondary {
  background: transparent;
  color: #3A4091;
  border: 2px solid #3A4091;
  box-shadow: 0 2px 8px rgba(58, 64, 145, 0.1);
  border-radius: 16px;
}

.btn-secondary:hover {
  background: white;
  color: #3A4091;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(58, 64, 145, 0.15);
  border-color: #3A4091;
}

.btn:active {
  transform: translateY(-1px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 767px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== RESPONSIVE TYPOGRAPHY SYSTEM ===== */
/* Global responsive titles */
.responsive-title-xl {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--wood-primary);
}

.responsive-title-lg {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  font-weight: 600;
  color: var(--wood-primary);
}

.responsive-title-md {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  line-height: 1.4;
  font-weight: 600;
  color: var(--wood-primary);
}

.responsive-title-sm {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.4;
  font-weight: 600;
  color: var(--wood-primary);
}

/* Global responsive descriptions */
.responsive-text-lg {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted-foreground);
}

.responsive-text-md {
  font-size: clamp(0.875rem, 1.25vw, 1.125rem);
  line-height: 1.6;
  color: var(--muted-foreground);
}

.responsive-text-sm {
  font-size: clamp(0.8rem, 1vw, 1rem);
  line-height: 1.5;
  color: var(--muted-foreground);
}

/* Responsive spacing */
.responsive-margin-lg {
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
}

.responsive-margin-md {
  margin-bottom: clamp(1rem, 2vw, 2rem);
}

.responsive-margin-sm {
  margin-bottom: clamp(0.75rem, 1.5vw, 1.5rem);
}

.responsive-padding-lg {
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.responsive-padding-md {
  padding: clamp(1.5rem, 3vw, 3rem) 0;
}

.responsive-padding-sm {
  padding: clamp(1rem, 2vw, 2rem) 0;
}

/* Responsive max-width for text content */
.responsive-text-container {
  max-width: clamp(300px, 80vw, 600px);
  margin: 0 auto;
}

.responsive-text-container-wide {
  max-width: clamp(400px, 90vw, 800px);
  margin: 0 auto;
}

/* Responsive grid systems */
.responsive-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 2rem);
}

.responsive-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.responsive-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

/* Tablet breakpoints */
@media (min-width: 768px) {
  .responsive-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .responsive-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .responsive-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop breakpoints */
@media (min-width: 1024px) {
  .responsive-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .responsive-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== GENERIC PAGE STYLES ===== */
.site-main {
  min-height: 60vh;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--wood-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.page-content-wrapper {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--foreground);
}

.empty-content {
  text-align: center;
  padding: 4rem 0;
  color: var(--muted-foreground);
  font-style: italic;
}

.empty-content p {
  font-size: 1.25rem;
  margin: 0;
}

/* Spacer Utilities */
.pt-5 {
  padding-top: 3rem;
}

.pb-5 {
  padding-bottom: 3rem;
}

.py-5 {
  padding: 3rem 0;
}

.mt-5 {
  margin-top: 3rem;
}

.mb-5 {
  margin-bottom: 3rem;
}