/* =========================
   Base & Layout
   ========================= */
body {
    background: #000 url('background.png') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    font-size: 1rem; /* Slightly smaller base text */
    margin: 0;
    min-height: 100vh;
}

/* =========================
   Navbar
   ========================= */
.navbar {
    align-items: center;
    background: rgba(17, 17, 17, 0.95);
    box-sizing: border-box;
    color: #fff;
    display: flex;
    height: 56px;
    justify-content: center;
    left: 0;
    padding: 0 32px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.navbar-brand {
    font-size: 1.2rem; /* Slightly smaller */
    font-weight: bold;
    letter-spacing: 1px;
}

.navbar-links {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
}

.navbar-links li {
    position: relative;
}

.navbar-links li a {
    border-radius: 6px;
    color: #fff;
    font-size: 1.1rem; /* Slightly bigger */
    font-weight: 600;   /* Slightly fatter */
    padding: 8px 16px; /* Slightly bigger padding */
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.navbar-links li a:hover {
    color: #ffd700;
}

.navbar-links li a.active,
.navbar-links li a:focus {
    background: #000000;
    color: #001aff;
}

.navbar-links li.login {
    align-items: center;
    display: flex;
    height: 100%;
    margin-left: auto;
    position: absolute;
    right: 0;
    top: 0;
}

/* =========================
   Main Content Containers
   ========================= */
.out-of-function-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding-top: 56px; /* To prevent content under navbar */
    text-align: center;
}

.out-of-function-box {
    background: #111;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    max-width: 400px;
    padding: 40px 32px;
    width: 100%;
}

.out-of-function-box h1 {
    font-size: 1.7rem; /* Slightly smaller */
}

.out-of-function-box p {
    font-size: 1rem; /* Slightly smaller */
}

/* =========================
   Footer
   ========================= */
.sign-footer {
    background: rgba(17, 17, 17, 0.85);
    bottom: 0;
    color: #fff;
    font-size: 0.9rem; /* Slightly smaller */
    left: 0;
    margin: 0;
    padding: 10px 0;
    position: fixed;
    text-align: center;
    width: 100%;
    z-index: 10;
}

/* =========================
   Blog Styles
   ========================= */
.blog-post {
    margin-bottom: 32px;
    text-align: left;
}

.blog-post h2 {
    font-size: 1.2rem;
    margin: 0 0 8px 0;
}

.blog-date {
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.blog-post-box {
    background: #181818;
    border: 1px solid #222;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    margin-bottom: 24px;
    padding: 24px 20px;
}

/* =========================
   Contact Form Styles
   ========================= */

/* Row for parallel fields */
.form-row {
    display: flex;
    gap: 16px;
}
.form-row > div {
    flex: 1;
}

/* Custom Contact Form Inputs & Textarea */
.custom-contact-form input,
.custom-contact-form textarea {
    background: #181818;
    border: 1px solid #333;
    border-radius: 6px;
    box-sizing: border-box;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 8px;
    margin-top: 4px;
    padding: 10px;
    transition: border 0.2s, box-shadow 0.2s;
    width: 100%;
}

.custom-contact-form input:focus,
.custom-contact-form textarea:focus {
    border: 1.5px solid #001aff;
    box-shadow: 0 0 4px #001aff44;
    outline: none;
}

.custom-contact-form label {
    color: #ffd700;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Custom Button */
.custom-btn {
    background: linear-gradient(90deg, #001aff 0%, #00c3ff 100%);
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 8px #001aff33;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 12px 32px;
    transition: background 0.2s, transform 0.2s;
}

.custom-btn:hover {
    background: linear-gradient(90deg, #00c3ff 0%, #001aff 100%);
    transform: translateY(-2px) scale(1.03);
}

/* =========================
   Responsive Styles
   ========================= */
@media (max-width: 600px) {
    body {
        font-size: 1.1rem;
    }
    .out-of-function-box h1 {
        font-size: 2rem;
    }
    .out-of-function-box p,
    .sign-footer {
        font-size: 1.05rem;
    }
    .out-of-function-box {
        padding: 20px 6px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}