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

::selection {
  background-color: #ea5046;
  color: #ffffff;
}

::-moz-selection {
  background-color: #ea5046;
  color: #ffffff;
}

body,
html {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Be Vietnam Pro', sans-serif;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.background-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.background-wrapper::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/background/background-forest.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: blur(8px);
  z-index: 0;
  transform: scale(1.1);
}

.background-wrapper::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #061C41;
  opacity: 0.5;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: center;
  gap: 24px;
  padding: 40px 20px 60px;
  max-width: 1590px;
  margin: 0 auto;
  width: 100%;
  flex: 0 0 auto;
}

@media (max-width: 1400px) {
  .container {
    grid-template-columns: repeat(auto-fit, minmax(323px, 1fr));
  }
}

.card {
  background: #eff7f8;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 100%;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.card-content {
  padding: 24px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.card-logo {
  width: 100%;
  max-width: 100%;
  max-height: 48px;
  height: auto;
  margin-top: 16px;
  margin-bottom: 8px;
  object-fit: contain;
}

.card-description {
  color: #0F2750;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  min-height: 48px;
  text-align: center;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 500;
}

.language-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.lang-btn {
  background-color: #ea5046;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: medium;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  min-width: 50px;
}

.lang-btn:hover {
  background-color: #d7392e;
  transform: scale(1.05);
}

.card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 323 / 485;
  object-fit: contain;
  object-position: bottom;
  border-radius: 8px;
  margin-top: auto;
  margin-bottom: 0;
}


.footer {
  position: relative;
  z-index: 1;
  background-color: #061c41;
  color: #ffffff;
  padding: 40px 5%;
  margin-top: auto;
  flex-shrink: 0;
}

.footer-content {
  max-width: 1590px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.footer-company-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

.footer-company {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-company-name {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.footer-ic {
  font-size: 14px;
  color: #9FACC0;
  margin: 0;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #9FACC0;
}

.footer-contact-item i {
  color: #ea5046;
  width: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a {
  color: #9FACC0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-item a:hover {
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: #9FACC0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.footer-social-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.footer-social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(159, 172, 192, 0.2);
  color: #9FACC0;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
  padding: 0;
}

.footer-social-btn:hover {
  background-color: #ea5046;
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-social-btn:focus {
  outline: 2px solid #ea5046;
  outline-offset: 2px;
}

.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.footer-divider {
  max-width: 90%;
  margin: 32px 0 24px;
  border: none;
  border-top: 1px solid rgba(159, 172, 192, 0.3);
}

.footer-copyright {
  max-width: 90%;
  margin: 0 auto;
  font-size: 14px;
  color: #9FACC0;
  text-align: center;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  background-color: #eff7f8;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 39, 80, 0.3) transparent;
}

.modal-content::-webkit-scrollbar {
  width: 10px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(15, 39, 80, 0.3);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 39, 80, 0.5);
  background-clip: padding-box;
}

.modal-content-large {
  max-width: 900px;
}

.modal-content-white {
  background-color: #ffffff;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid rgba(15, 39, 80, 0.1);
  padding-right: 24px;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #0F2750;
  margin: 0;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #0F2750;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #ea5046;
}

.modal-close-fixed {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: #0F2750;
  font-size: 28px;
}

.modal-close-fixed:hover {
  background-color: #ffffff;
  color: #ea5046;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-body {
  padding: 24px;
}

.modal-social-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.modal-social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.modal-social-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #ea5046;
}

.modal-logo-wrapper {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-logo {
  max-width: 120px;
  height: 48px;
  width: auto;
  object-fit: contain;
}

.modal-logo-cloud4medical {
  height: auto;
  max-height: 60px;
  max-width: 140px;
}

.modal-social-icon {
  font-size: 24px;
  color: #ea5046;
  transition: transform 0.3s ease;
}

.modal-social-item:hover .modal-social-icon {
  transform: scale(1.2);
}

/* Supporters Modal Styles */
.modal-body-supporters {
  padding: 24px;
}

.supporters-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.supporters-section {
  color: #0F2750;
  font-size: 15px;
  line-height: 1.6;
}

.supporters-section p {
  margin: 0 0 16px 0;
}

.supporters-section p:last-child {
  margin-bottom: 0;
}

.supporters-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px 0;
}

.supporters-main-logo {
  max-width: 760px;
  width: 100%;
  height: auto;
}

.supporters-divider {
  border: none;
  border-top: 1px solid rgba(15, 39, 80, 0.2);
  margin: 24px 0;
}

.supporters-publicity {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.supporters-publicity-img {
  max-height: 400px;
  max-width: 100%;
  height: auto;
  width: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.supporters-publicity-img:hover {
  transform: scale(1.02);
}

.supporters-logos-grid {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
}

.supporters-logo-item {
  padding: 16px;
  flex: 1;
  min-width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.supporters-logo {
  max-width: 260px;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

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

/* GDPR Modal Styles */
.gdpr-heading {
  font-size: 18px;
  font-weight: 600;
  color: #0F2750;
  margin: 24px 0 12px 0;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.supporters-section ul {
  margin: 12px 0;
  padding-left: 24px;
}

.supporters-section li {
  margin: 8px 0;
  line-height: 1.6;
}

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

@media (max-width: 768px) {
  .background-wrapper::before {
    background-size: cover;
    background-position: center;
    transform: scale(1);
  }
  
  .container {
    padding: 30px 16px 60px;
    gap: 20px;
  }
  
  .card {
    max-width: 100%;
  }
  
  .card-image {
    margin-bottom: 0;
  }
  
  .lang-btn {
    padding: 12px 30px;
    font-size: 15px;
  }
  
  .footer {
    padding: 30px 2.5%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
    align-items: start;
  }
  
  .footer-contact-item {
    justify-content: center;
  }
  
  .footer-links {
    align-items: center;
  }
  
  .footer-social {
    align-items: center;
    text-align: center;
  }
  
  .footer-social-icons {
    justify-content: center;
  }
  
  .footer-social-links {
    align-items: center;
  }
  
  .modal-content {
    max-width: 90%;
  }
  
  .modal-social-items {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
  }
  
  .modal-content-large {
    max-width: 95%;
  }
  
  .supporters-logos-grid {
    flex-direction: column;
  }
  
  .supporters-logo-item {
    min-width: auto;
  }
  
  .footer-divider {
    max-width: 95%;
    margin: 24px auto 20px;
  }
  
  .footer-copyright {
    max-width: 95%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 20px 12px 60px;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .card-content {
    padding: 20px;
    padding-bottom: 0;
  }
  
  .card-image {
    margin-bottom: 0;
  }
  
  .card-title {
    font-size: 24px;
  }
  
  .card-description {
    font-size: 14px;
  }
  
  .lang-btn {
    padding: 12px 28px;
    font-size: 15px;
  }
  
  .footer {
    padding: 24px 2.5%;
  }
  
  .footer-content {
    gap: 20px;
  }
  
  .footer-social {
    gap: 10px;
  }
  
  .modal-content {
    max-width: 95%;
    padding: 0;
  }
  
  .modal-header {
    padding: 20px;
  }
  
  .modal-title {
    font-size: 18px;
  }
  
  .modal-close-fixed {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-social-items {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .modal-social-item {
    padding: 16px;
  }
  
  .modal-logo-wrapper {
    height: 40px;
  }
  
  .modal-logo {
    max-width: 100px;
    height: 40px;
  }
  
  .modal-logo-cloud4medical {
    height: auto;
    max-height: 50px;
    max-width: 120px;
  }
  
  .footer-divider {
    max-width: 95%;
    margin: 20px auto 16px;
  }
  
  .footer-copyright {
    max-width: 95%;
  }
  
  .modal-content-large {
    max-width: 95%;
  }
  
  .modal-body-supporters {
    padding: 16px;
  }
  
  .supporters-content {
    gap: 16px;
  }
  
  .supporters-section {
    font-size: 14px;
  }
  
  .supporters-main-logo {
    max-width: 100%;
  }
  
  .supporters-publicity-img {
    max-height: 300px;
  }
  
  .supporters-logos-grid {
    flex-direction: column;
    gap: 12px;
  }
  
  .supporters-logo-item {
    min-width: auto;
    padding: 12px;
  }
  
  .supporters-logo {
    max-width: 200px;
  }
}
