

#notfound {
  position: relative;
  height: 100vh;
}

#notfound .notfound {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

.notfound {
  max-width: 767px;
  width: 100%;
  line-height: 1.4;
  text-align: center;
  padding: 15px;
}

.notfound .notfound-404 {
  position: relative;
  height: 130px;
}

.notfound .notfound-404 h1 {
  font-family: 'Kanit', sans-serif;
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  font-size: 186px;
  font-weight: 200;
  margin: 0px;
  background: #e44724;
  color:transparent;
  -webkit-background-clip: text;
  background-clip: text;
  text-transform: uppercase;
}

.notfound h2 {
  font-family: 'Kanit', sans-serif;
  font-size: 33px;
  font-weight: 200;
  text-transform: uppercase;
  margin-top: 0px;
  margin-bottom: 25px;
  letter-spacing: 3px;
}


.notfound p {
  font-family: 'Kanit', sans-serif;
  font-size: 16px;
  font-weight: 200;
  margin-top: 0px;
  margin-bottom: 25px;
}


.notfound a {
  font-family: 'Kanit', sans-serif;
  color: #ff6f68;
  font-weight: 200;
  text-decoration: none;
  border-bottom: 1px dashed #ff6f68;
  border-radius: 2px;
}

/*** 403 page ***/
.fotnf .container {
  background: #ffffff;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  text-align: center;
  max-width: 500px;
  width: 90%;
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.fotnf .icon {
  font-size: 70px;
  margin-bottom: 20px;
}

.fotnf h1 {
  font-size: 64px;
  margin: 0;
  color: #dc2626;
}

.fotnf h2 {
  margin: 10px 0 20px;
  font-size: 24px;
  font-weight: 600;
}

.fotnf p {
  font-size: 16px;
  color: #475569;
  margin-bottom: 30px;
  line-height: 1.6;
}

.fotnf .button-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.fotnf .btn {
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.fotnf .btn-primary {
  background: #2563eb;
  color: #fff;
}

.fotnf .btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.fotnf .btn-secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.fotnffotnf.btn-secondary:hover {
  background: #cbd5e1;
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .fotnf h1 {
    font-size: 48px;
  }
  .fotnf .container {
    padding: 40px 25px;
  }
}

@media only screen and (max-width: 480px) {
  .notfound .notfound-404 {
    position: relative;
    height: 168px;
  }

  .notfound .notfound-404 h1 {
    font-size: 142px;
  }

  .notfound h2 {
    font-size: 22px;
  }
}

/*** NEW - General response for both 403 and 404 ***/
/* Card */
.npfnd .container{
  background:#fff;
  width:90%;
  max-width:620px;
  padding:55px 45px;
  border-radius:20px;
  text-align:center;
  box-shadow:0 25px 60px rgba(0,0,0,.15);
  position:relative;
  animation:fadeIn .6s ease;
}

@keyframes fadeIn{
  from{opacity:0; transform:translateY(25px);}
  to{opacity:1; transform:translateY(0);}
}

/* Decorative bubbles */
.npfnd .bubble{
  position:absolute;
  border-radius:50%;
  background:#e0e7ff;
  opacity:.35;
}

.npfnd .b1{
  width:120px;
  height:120px;
  top:-40px;
  right:-40px;
}

.npfnd .b2{
  width:80px;
  height:80px;
  bottom:-30px;
  left:-30px;
}

/* Icon */
.npfnd .icon{
  font-size:80px;
  margin-bottom:15px;
  animation:bounce 2s infinite;
}

@keyframes bounce{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-10px)}
}

.npfnd h1{
  font-size:34px;
  margin-bottom:10px;
  color:#4f46e5;
}

.npfnd p{
  font-size:16px;
  color:#475569;
  line-height:1.7;
  margin-bottom:35px;
}

/* Buttons */
.npfnd .buttons{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:14px;
}

.npfnd .btn{
  padding:14px 24px;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
  transition:.2s;
  border:1px solid #d7d7d7;
}

.npfnd .home{
  background:#4f46e5;
  color:white;
}

.npfnd .home:hover{
  background:#4338ca;
  transform:translateY(-2px);
}

.npfnd .back{
  background:#e0e7ff;
  color:#3730a3;
}

.npfnd .back:hover{
  background:#c7d2fe;
  transform:translateY(-2px);
}


@media(max-width:480px){
  .npfnd .container{padding:40px 25px;}
}
