@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative&family=Libre+Baskerville&family=Special+Elite&display=swap');

* {
    box-sizing: border-box;
}

html, body {
    font-family: 'Libre Baskerville', serif;
    color: #3E2C1C;
    background-color: #fef7eb;
    background-image: url('images/bg.jpg');
    background-repeat: repeat;
    margin: 0;
    padding: 0;
}

b, strong {
    color: #2b1b0f;
    background: rgba(245, 235, 220, 0.5);
    box-shadow: 0 2px 6px rgba(100, 60, 30, 0.25);
}

i, em {
    color: #4b3a2a;
    background: rgba(200, 180, 150, 0.25);
    padding: 2px 6px;
    border-radius: 6px;
}

#header {
    background-image: url('images/head.jpg'), url('images/bg1.jpg');
    background-repeat: no-repeat, repeat-x;
    background-position: left top;
    height: 568px;
    width: 100%;
    position: relative;
}

#layout-container {
    display: flex;
    margin-top: -10px;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 60px;
    padding: 60px;
    position: relative;
    z-index: 5;
    opacity: 0.85;
    width: 90%;
}

.contentx {
    margin: 0 0 90px 0;
    padding: 50px 55px;
    font-size: 22px;
    line-height: 1.95;
    text-align: justify;
    color: #3E2C1C;
    opacity: 0.7;
}

#navigation {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 280px;
    padding: 50px 40px;
    background: rgba(255, 247, 235, 0.3);
    border-radius: 36px;
    border: 1px solid rgba(62, 44, 28, 0.25);
    box-shadow: 0 12px 40px rgba(60, 40, 20, 0.15);
    backdrop-filter: blur(12px);
    transition: all 0.35s ease;
    opacity: 0.6;
}

#navigation a {
    position: relative;
    padding: 16px 24px;
    border-radius: 24px;
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #2b1b0f;
    background: transparent;
    border: none;
    box-shadow: none;
    text-decoration: none;
    transition: all 0.35s ease, transform 0.3s ease;
}

#navigation a::before,
#navigation a::after {
    content: "✦";
    font-size: 18px;
    color: rgba(62, 44, 28, 0.3);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.35s ease;
}

#navigation a::before {
    left: -28px;
}

#navigation a::after {
    right: -28px;
}

#navigation a:hover {
    transform: translateY(-2px) scale(1.02);
    color: #4b3a2a;
}

#navigation a:hover::before,
#navigation a:hover::after {
    color: rgba(62, 44, 28, 0.6);
    transform: translateY(-50%) scale(1.2);
}

#navigation a.active {
    color: #3e2c1c;
}

#navigation a.active::before,
#navigation a.active::after {
    color: #3e2c1c;
    transform: translateY(-50%) scale(1.4);
}

h1 {
    display: inline-block;
    margin: 0 0 24px 0;
    padding: 20px 36px;
    border-radius: 36px;
    background: rgba(255, 247, 235, 0.35);
    border: 1px solid rgba(62, 44, 28, 0.25);
    box-shadow: 0 8px 40px rgba(60, 40, 20, 0.15),
                0 0 24px rgba(255, 247, 235, 0.2);
    backdrop-filter: blur(12px);
    text-align: left;
    font-family: 'Cinzel Decorative', cursive;
    color: #3e2c1c;
    position: relative;
    transition: all 0.35s ease, transform 0.3s ease;
}

h1:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 50px rgba(60, 40, 20, 0.2),
                0 0 30px rgba(255, 247, 235, 0.25);
}

blockquote {
    margin: 70px auto;
    padding: 48px 72px;
    max-width: 640px;
    background: linear-gradient(160deg, rgba(255, 247, 235, 0.4), rgba(245, 230, 210, 0.25));
    border-left: 8px solid #3E2C1C;
    border-radius: 32px 8px 32px 8px;
    font-size: 22px;
    line-height: 1.7;
    color: #3E2C1C;
    box-shadow: 0 12px 35px rgba(60, 40, 20, 0.2);
    position: relative;
    opacity: 0.95;
}

blockquote::before {
    content: "“";
    font-size: 64px;
    position: absolute;
    top: -24px;
    left: 20px;
    color: rgba(60, 40, 20, 0.25);
    font-family: 'Cinzel Decorative', cursive;
}

.contentx a {
    color: #2b1b0f;
    text-decoration: none;
    position: relative;
    font-weight: 500;
}

.contentx a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #3b2a1d, #1a0f07);
    transform: scaleX(0.5);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.contentx a:hover::after {
    transform: scaleX(1);
}

textarea,
input,
select {
    width: 70%;
    padding: 1.9rem 1rem;
    background: rgba(255, 247, 235, 0.3);
    border: 0.08rem solid #3E2C1C;
    border-radius: 6rem;
    color: #3E2C1C;
    font-size: 1rem;
    font-family: 'Georgia', serif;
    box-shadow: inset 0 1px 3px rgba(60, 40, 20, 0.2);
    transition: all 0.3s ease;
}

textarea:focus,
input:focus,
select:focus {
    box-shadow: 0 0 1rem rgba(60, 40, 20, 0.45);
    outline: none;
}

#footer {
    position: relative;
    margin: 20px auto 60px;
    padding: 60px 20px 30px;
    text-align: center;
    color: #3E2C1C;
    font-size: 14px;
    letter-spacing: 0.25em;
}

#footer::before {
    content: "❖ ❁ ✦ ❁ ❖";
    display: block;
    font-size: 20px;
    color: rgba(62, 44, 28, 0.2);
    margin-bottom: 16px;
    letter-spacing: 0.5em;
    text-align: center;
}

#footer a {
    color: #3e2c1c;
    font-weight: 500;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 12px;
    transition: all 0.35s ease, transform 0.25s ease;
    margin: 0 6px;
    display: inline-block;
}

#footer a:hover {
    color: #4b3a2a;
}

#footer span {
    background: rgba(255, 255, 255, 0.6);
    padding: 2px 8px;
    border-radius: 8px;
    display: inline-block;
    color: #3e2c1c;
    font-weight: 500;
    transition: all 0.3s ease;
}

#footer span:hover {
    background: rgba(255, 255, 255, 0.8);
    color: #4b3a2a;
}

@media (max-width: 768px) {
    #layout-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 40px 20px;
    }

    #navigation {
        min-width: 90%;
        padding: 30px 24px;
    }

    #navigation a {
        font-size: 11px;
        padding: 14px 20px;
    }

    .contentx {
        padding: 30px 25px;
        font-size: 18px;
        line-height: 1.8;
        margin-bottom: 60px;
    }

    textarea,
    input,
    select {
        width: 80%;
    }

    h1 {
        font-size: 36px;
        padding: 6px 12px;
    }

    blockquote {
        padding: 30px 40px;
        font-size: 18px;
        max-width: 90%;
    }

    b, strong {
        font-size: 20px;
        padding: 4px 10px;
    }

    i, em {
        font-size: 16px;
        padding: 1px 4px;
    }

    #footer {
        font-size: 12px;
        padding: 30px 10px 20px;
    }

    #footer a {
        font-size: 12px;
    }
}