html, body {
    margin: 0;
    padding: 0;
}

body {
    background-image: url('images/bg.jpg');
    background-repeat: repeat;
    font-family: 'Lora', serif;
    font-weight: 400 !important;
    text-align: left;
    font-size: 14px;
    color: #eef6f0;
    overflow-x: hidden;
    background-color: #0b120d;
}

#header {
    background-image: url('images/head.jpg'), url('images/bg.jpg');
    background-repeat: no-repeat, repeat-x;
    background-position: left;
    height: 654px;
    margin-top: -5px;
    opacity: 0.95;
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.nav-links a {
  position: relative;
  font-size: 18px;
  letter-spacing: 1.2px;
  color: #d8f2dc;
  text-decoration: none;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  transition: all 0.25s ease;
}

/* decorative symbols */
.nav-links a::before {
  content: "❧";
  font-size: 12px;
  color: rgba(120, 160, 120, 0.35);
  position: absolute;
  top: 50%;
  left: -6px;
  transform: translateY(-50%);
  opacity: 0;
  transition: 0.25s ease;
}

/* thick gradient underline */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 10%;
  bottom: -6px;
  width: 80%;
  height: 4px; /* thickness */
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(120, 160, 120, 0.9),
    rgba(180, 255, 200, 0.9),
    rgba(120, 160, 120, 0.9),
    transparent
  );
  opacity: 0;
  transform: scaleX(0.8);
  transition: all 0.25s ease;
}

.nav-links a:hover {
  color: #ffffff;
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(140, 200, 160, 0.25);
}

.nav-links a:hover::before {
  opacity: 1;
}

.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* active state */
.nav-links a.active {
  color: #ffffff;
  letter-spacing: 1.3px;
}

.nav-links a.active::before {
  opacity: 0.6;
}

.nav-links a.active::after {
  opacity: 0.9;
  transform: scaleX(1);
}

.content {
    width: 67%;
    margin-left: 40px !important;
    margin-top: -70px;
    position: relative;
    text-align: justify;
    font-size: 17px;
    line-height: 1.8;
    color: #dcefe2;
    opacity: 0.7;
    background: rgba(10, 18, 12, 0.65);
    border: 1px solid rgba(120,160,120,0.12);
    border-left: 3px solid rgba(111,159,119,0.75);
}

.content::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(120,160,120,0.05), transparent 60%);
}

.content a {
    color: #bfe6c6;
    text-decoration: none;
    transition: all 0.2s ease;
}

.content a:hover {
    color: #ffffff;
}

.content b,
.content strong {
    color: #eaf7ee;
    font-weight: 600;
}

.content i,
.content em {
    color: #cfe6d4;
    font-style: italic;
    opacity: 0.9;
}

h1 {
    margin: 70px 0 30px 40px;
    padding: 16px 34px;
    font-size: 30px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #eaf7ee;
    background: rgba(10, 18, 12, 0.55);
    border: 1px solid rgba(120,160,120,0.15);
    border-left: 4px solid rgba(111,159,119,0.8);
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.contentx {
    padding: 40px;
    margin: 0 0 40px 40px;
    font-size: 18px;
    text-align: justify;
    color: #d4ead8;
    background: rgba(12,20,15,0.75);
    border: 1px solid rgba(120,160,120,0.12);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.contentx input,
.contentx textarea,
.contentx select {
    width: 40%;
    max-width: 360px;
    padding: 12px;
    margin: 12px 0;
    background: #0e1812;
    color: #dff5e5;
    border: 1px solid rgba(120,160,120,0.2);
    border-radius: 6px;
}

.contentx input:focus,
.contentx textarea:focus {
    outline: none;
    border-color: #9fcaa6;
    box-shadow: 0 0 6px rgba(120,180,140,0.25);
}

.contentx button {
    background: linear-gradient(135deg, #1a2d22, #2b4735);
    border: 1px solid rgba(120,160,120,0.25);
    color: #dff5e5;
    padding: 10px 22px;
    cursor: pointer;
    transition: 0.2s ease;
}

.contentx button:hover {
    background: #2f4f3c;
}

blockquote {
    margin: 40px 0 40px 40px;
    padding: 34px 44px;
    width: 70%;
    max-width: 720px;
    background: rgba(8,14,10,0.6);
    color: #cfe6d4;
    border: 1px solid rgba(120,160,120,0.15);
    border-left: 4px solid rgba(111,159,119,0.7);
    font-style: italic;
    text-align: left;
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
    position: relative;
}

blockquote::before,
blockquote::after {
    content: "❦";
    position: absolute;
    font-size: 26px;
    color: rgba(120,160,120,0.25);
}

blockquote::before {
    top: -14px;
    left: 16px;
}

blockquote::after {
    bottom: -14px;
    right: 16px;
}

#footer {
    margin-top: 90px;
    padding: 60px 30px;
    background: linear-gradient(180deg, rgba(10, 18, 12, 0), rgba(10, 18, 12, 0.75));
    border-top: 1px solid rgba(120,160,120,0.18);
    color: #a9cbb1;
    text-align: center;
    position: relative;
}

#footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120,160,120,0.35), transparent);
}

#footer a {
    color: #bfe6c6;
    text-decoration: none;
    transition: 0.2s ease;
}

#footer a:hover {
    color: #ffffff;
    letter-spacing: 0.5px;
}

.footer-credit {
    margin-top: 14px;
    font-size: 13px;
    opacity: 0.6;
    letter-spacing: 0.3px;
}

@media (max-width: 1024px) {
    .content {
        width: 85%;
        margin-left: 20px !important;
    }

    h1 {
        margin: 50px 0 20px 20px;
        font-size: 26px;
    }

    .contentx {
        margin: 0 20px 40px 20px;
    }

    .nav-links {
        gap: 12px;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 13px;
    }

    #header {
        height: 420px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links a {
        font-size: 16px;
    }

    .content {
        width: 92%;
        margin-left: 10px !important;
        margin-top: -40px;
    }

    .contentx {
        margin: 0 10px 30px 10px;
        padding: 25px;
    }

    .contentx input,
    .contentx textarea,
    .contentx select {
        width: 100%;
    }

    blockquote {
        width: 90%;
        margin: 30px 10px;
        padding: 25px;
    }

    h1 {
        margin: 40px 10px 20px 10px;
        font-size: 22px;
    }

    #footer {
        padding: 40px 15px;
    }
}