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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Oswald', sans-serif;
  background-color: #DDEBF7;
  color: #0A0F2C;
}

h1, h2, h3 {
  font-family: 'Oswald', sans-serif;
}

/* ------------------ NAVIGATION ------------------ */
nav.desktop-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 1000;
}

nav.desktop-nav a {
  color: #0A0F2C;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

nav.desktop-nav a:hover {
  background-color: #2E2E3A;
  color: #DDEBF7;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 999;
}

.nav-toggle {
  width: 50px;
  height: 50px;
  background-color: #DDEBF7;
  border: 2px solid #0A0F2C;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-lines {
  width: 20px;
  height: 2px;
  background-color: #0A0F2C;
  position: relative;
}

.nav-lines::before,
.nav-lines::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #0A0F2C;
  left: 0;
}

.nav-lines::before {
  top: -6px;
}

.nav-lines::after {
  top: 6px;
}

.nav-menu {
  position: fixed;
  top: 0.5rem;
  right: 0.5rem;
  background-color: #DDEBF7;
  border: 4px double;
  border-color: #0A0F2C #D72638;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  padding-top: 4rem;
  opacity: 0;
  pointer-events: none;
}

.nav-menu.open {
  width: 250px;
  height: 360px;
  border-radius: 50% / 40%;
  opacity: 1;
  pointer-events: auto;
  padding-top: 4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.nav-menu a {
  font-family: 'Oswald', sans-serif;
  color: #0A0F2C;
  text-decoration: none;
  margin: 0.75rem 0;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s ease;
}

/* ------------------ TITLE & WELCOME ------------------ */
.title-section {
  text-align: center;
  margin-top: 8rem;
  padding: 2rem;
}

.title-section h1,
.title-section h2 {
  color: #0A0F2C;
}

.title-section h1 {
  font-size: 48px;
  font-weight: 900;
}

.title-section h2 {
  font-size: 20px;
  font-weight: 500;
  margin-top: 0.5rem;
}

.welcome {
  text-align: center;
  font-size: 24px;
  margin: 4rem 1rem;
  font-weight: 600;
}

#typewriter-text::after {
  content: '|';
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ------------------ POST CONTENT ------------------ */
.about-card {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 2rem;
  margin: 2rem auto;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 85vh;
  overflow-y: auto;
}

.about-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 1rem;
}

.about-text {
  font-size: 16px;
  line-height: 1.8;
}

.pardon-scroller {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 1rem 0;
  margin-bottom: 2rem;
  scroll-snap-type: x mandatory;
}

    table {
      width: 80%;
      margin: 40px auto;
      border-collapse: collapse;
      font-family: Arial, sans-serif;
    }
    th, td {
      border: 1px solid #ccc;
      padding: 12px 16px;
      text-align: left;
    }
    th {
      background-color: #f5f5f5;
    }
    caption {
      font-size: 1.5em;
      margin-bottom: 15px;
      font-weight: bold;
    }

.pardon-scroller > div {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.pardon-card {
  flex: 0 0 auto;
  width: 300px;
  background:#DDEBF7;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  scroll-snap-align: start;
  text-align: center;
}

.pardon-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.pardon-card p {
  font-size: 0.95rem;
  line-height: 1.4;
}

.inline-img-5,
.inline-img-6,
.inline-img-7,
.inline-img-8,
.inline-img-9,
.inline-img-10,
.inline-img-11,
.inline-img-12,
.inline-img-13,
.inline-img-14,
.inline-img-15,
.inline-img-16 {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.inline-img-5 img,
.inline-img-6 img, 
.inline-img-7 img,
.inline-img-8 img,
.inline-img-9 img,
.inline-img-10 img,
.inline-img-11 img,
.inline-img-12 img,
.inline-img-13 img,
.inline-img-14 img,
.inline-img-15 img,
.inline-img-16 img {
  width: 60%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
}

.br-space {
  display: block;
  height: 0.25rem;
}

/* ------------------ COMMENTS ------------------ */
.comments-section {
  max-width: 700px;
  margin: 3rem auto;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.comments-section h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #0A0F2C;
}

#comment-form textarea {
  width: 100%;
  height: 100px;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
  margin-bottom: 0.5rem;
}

#comment-form button {
  background-color: #D72638;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

#comment-form button:hover {
  background-color: #b61f2d;
}

#comments-container {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
  margin-top: 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  padding: 1em;
}

.comment {
  background-color: #f4f6fa;
  border-left: 3px solid #3B9AE1;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
}

.comment-header {
  font-size: 0.85rem;
  font-weight: bold;
  color: #0A0F2C;
  margin-bottom: 0.25rem;
}

.comment-body {
  font-size: 1rem;
  color: #2E2E3A;
}

/* ------------------ FOOTER ------------------ */
.footer-strip {
  background-color: #D72638;
  height: 60px;
  width: 100%;
}

footer {
  background-color: #0A0F2C;
  text-align: center;
  padding: 1rem;
}

.icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.icons img {
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-top: 14rem;
}

.icons img:hover {
  transform: scale(1.15);
}

footer .copyright {
  font-size: 12px;
  color: #F4F6FA;
}

/* ------------------ SCROLL REVEAL ------------------ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0px);
}

/* ------------------ RESPONSIVE ------------------ */
@media (max-width: 800px) {
  nav.desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .title-section h1 {
    font-size: 30px;
  }

  .title-section h2 {
    font-size: 18px;
  }

  .welcome {
    font-size: 16px;
  }

  .nav-menu a {
    font-size: 0.95rem;
  }

  .about-card {
    max-width: 95%;
    padding: 1.5rem;
    max-height: 80vh;
  }

  .inline-img-5 img,
  .inline-img-6 img {
    width: 90%;
  }

  .pardon-scroller img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .pardon-card {
    width: 250px;
    padding: 0.75rem;
  }

  .icons img {
    width: 28px;
    height: 28px;
    margin-top: 14rem;
  }
}
