@font-face {
  font-family: "Bebas Bold";
  src: url("fonts/BebasNeue Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Bebas Bold", sans-serif;
}

body {
  /* 3. Add accessible line-height */
  line-height: 1.5;
  /* 4. Improve text rendering */
  -webkit-font-smoothing: antialiased;
  font-family: "Oswald", serif;

  background: #e0dbd3;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
  9. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}

#wpadminbar {
  display: none !important;
}

html {
  margin-top: 0 !important;
}

.page-template-page-login {
  background-image: url("http://lobby.ag.care/wp-content/uploads/2025/05/Login-Photo.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* background: #262626; */
  color: #fff;
}

.login-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  padding: 50px;
  max-width: 95%;
}

.login-header {
  margin-bottom: 25px;
}
.login-header .logo-wrapper {
  display: flex;
  justify-content: center;
}

.login-header .logo-wrapper img {
  width: 150px;
}

.login-wrapper h1 {
  font-size: 30px;
  margin-top: 15px;
  letter-spacing: 3px;
  text-align: center;
}

#site-header {
  padding: 5px;
  background: #000;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding #logo {
  width: 130px;
  padding: 3px;
}

.site-branding h2 {
  font-weight: 300;
  letter-spacing: 3px;
}

.user-logout-wrapper .logout-btn {
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: underline;
  cursor: pointer;
  color: #fff;
  text-align: right;
  font-weight: 100;
}

.user-logout-wrapper .username {
  text-align: right;
  font-weight: 500;
}

.sites-wrapper {
  /* display: grid;
  grid-template-columns: repeat(4, 23%); */
  display:flex;
  flex-wrap:wrap;
  justify-content: center;
  max-width: 1300px;
  margin: 0 auto;
}

.page-container {
  margin-top: 50px;
  width: 1400px;
  max-width: 80%;
  margin: 50px auto 15px auto;
}

.sites-wrapper a {
  text-decoration: none;
  color: inherit;
  flex-basis:25%;
}
.page-container .site {
  flex: 0 1 23%;
  padding: 25px;
  /* background: var(--wp--preset--color--black); */
  background: hsl(0, 0%, 18%);
  border-radius: 15px;
  color: #fff;
  height: 100px;
  line-height: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 250ms;
  margin: 10px;
}

.page-container .site:hover {
  background: hsl(0, 0%, 45%);
  color: #fff;
  cursor: pointer;
}

.page-container .post-thumbnail img {
  width: 100%;
  height: auto;
  filter: brightness(0.8);
  transition: filter 0.3s;
}

.post-wrapper {
  position: relative;
}

.post-wrapper:hover .post-thumbnail img {
  filter: brightness(1);
}

.page-container .post-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 800;
  letter-spacing: 1px;
  max-width: 95%;
  text-transform: uppercase;
  line-height: 35px;
  font-size: 35px;
  color: #fff;
  width: min-content;
  text-align: center;
  min-width: 120px;
}

@media (max-width: 1195px) {
  /* .page-container .site {
    flex: 0 1 30%;
  } */
}

@media (max-width: 850px) {
  /* .page-container .site {
    flex: 0 1 40%;
  } */

  .sites-wrapper {
    grid-template-columns: repeat(3, 30%);
  }

  .page-container .post-title {
    min-width: auto;
  }
}

@media (max-width: 550px) {
  .page-container .post-title {
    font-size: 25px;
    line-height: 20px;
  }

  .sites-wrapper {
    grid-template-columns: repeat(2, 49%);
  }
}

@media (max-width: 325px) {
  .sites-wrapper {
    grid-template-columns: 90%;
  }
}

@media (max-width: 750px) {
  .page-template-page-login {
    background-image: url("http://lobby.ag.care/wp-content/uploads/2025/05/Login-Photo-Mobile-1-1.jpg");
  }
  .login-header .logo-wrapper img {
    width: 100px;
  }
}
