/*
Theme Name: DigiWeb
Theme URI: https://digiweb.com.vn/
Author: DigiWeb
Author URI: https://digiweb.com.vn/
Description: DigiWeb base theme (ACF + qTranslate-XT ready)
Version: 1.0.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digiweb
*/

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: #14213d;
  background: linear-gradient(180deg, #f3f7fb 0%, #ffffff 100%);
}

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

.site-header,
.site-footer {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.site-header .container,
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-title {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
  color: #103b46;
  letter-spacing: 0.01em;
}

.site-title img {
  display: block;
  width: auto;
  max-width: min(100%, 280px);
  height: 42px;
}

.nav a {
  margin-left: 16px;
  text-decoration: none;
  color: inherit;
}

.site-header__portal-actions {
  margin-left: auto;
}

.site-header__portal-actions .sacore-pwa-inline {
  min-height: 44px;
}

.site-header__portal-actions .sacore-secondary-button {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 12px;
}

.site-header__portal-actions .sacore-pwa-badge {
  min-width: 34px;
  min-height: 34px;
  padding: 6px 9px;
  font-size: 13px;
}

.site-main {
  min-height: calc(100vh - 140px);
}

.landing-gateway {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 0 60px;
}

.gateway-card__eyebrow {
  margin: 0 0 10px;
  color: #537086;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gateway-card h2 {
  margin: 0;
  color: #102a43;
}

.landing-gateway__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.gateway-card {
  padding: 30px;
  border: 1px solid #d9e4ee;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(16, 42, 67, 0.07);
}

.gateway-card--teacher {
  border-top: 6px solid #2563eb;
}

.gateway-card--student {
  border-top: 6px solid #0f766e;
}

.gateway-card__intro,
.gateway-card__status p {
  margin: 14px 0 0;
  color: #486581;
  line-height: 1.7;
}

.gateway-card__form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.gateway-card__form label {
  font-size: 13px;
  font-weight: 700;
  color: #243b53;
}

.gateway-card__form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #c7d2de;
  border-radius: 14px;
  background: #f8fbfd;
  color: #102a43;
  box-sizing: border-box;
}

.gateway-card__form input:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.gateway-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: #102a43;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.gateway-card--teacher .gateway-card__button {
  background: #2563eb;
}

.gateway-card--student .gateway-card__button {
  background: #0f766e;
}

.gateway-card__button--ghost {
  background: #fff;
  color: #102a43;
  border: 1px solid #c7d2de;
}

.gateway-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.gateway-card__error {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 600;
}

@media (max-width: 900px) {
  .landing-gateway__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 18px;
  }

  .page-id-28 .site-main .container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-id-27 .site-main .container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-id-27 .site-main article,
  .page-id-27 .site-main article > div,
  .page-id-28 .site-main article,
  .page-id-28 .site-main article > div {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .site-header .container {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  .site-title img {
    height: 35px;
    max-width: min(100%, 170px);
  }

  .site-header__portal-actions {
    width: auto;
    flex: 0 0 auto;
  }

  .site-header__portal-actions .sacore-pwa-inline {
    min-height: 34px;
  }

  .site-header__portal-actions .sacore-pwa-inline .sacore-pwa-card__actions {
    gap: 6px;
  }

  .site-header__portal-actions .sacore-secondary-button {
    min-height: 25px;
    padding: 3px 9px;
    font-size: 12px;
    border-radius: 10px;
  }

  .site-header__portal-actions .sacore-pwa-badge {
    min-width: 25px;
    min-height: 25px;
    padding: 3px 7px;
    font-size: 12px;
  }

  .landing-gateway {
    padding: 16px 0 44px;
  }

  .gateway-card {
    padding: 22px;
  }
}
