:root {
    --primary-color: #2C3E50;
    --secondary-color: #E74C3C;
    --accent-color: #8E44AD;
    --neutral-color: #2C3E50;

    --light-background: #ECF0F1;
    --header-bg: var(--primary-color);
    --menu-link: var(--primary-color);
    --menu-link-hover: #fff;
    --menu-link-bg-hover: var(--secondary-color);
    --site-title: #fff;
    --logo-color-1: #E74C3C;
    --logo-color-2: #8E44AD;
    --logo-color-3: #1ABC9C;
    --body-bg: var(--light-background);
}

/* Base Styles */
body {
    font-family: Arial, sans-serif;
    background: var(--body-bg);
    color: #444;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
}

/* Header */
header {
    background: var(--header-bg);
    box-shadow: 0 2px 6px rgba(183, 207, 232, 0.07);
    font-size: 1.1em;
}

.header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Top Row */
.header-top {
    display: flex;
    align-items: center;
    justify-content: center; /* ✅ Center the logo + title */
    position: relative;
    width: 100%;
    padding: 12px 0;
}

/* Logo and Title */
.logo-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 12px;
}

.site-title {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--site-title);
    letter-spacing: 1.2px;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    user-select: none;
    text-decoration: none;
    white-space: nowrap;
}

/* Instagram */
.instagram-link {
    position: absolute;
    top: 12px;
    right: 10px;
}

.instagram-icon {
    height: 28px;
    width: 28px;
    transition: opacity 0.3s ease;
}

.instagram-icon:hover {
    opacity: 0.7;
}

/* Nav Menu */
.header-second-row {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    padding: 18px 0;
    background-color: var(--primary-color);
}

.header-second-row ul {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.header-second-row li a {
    color: #fff;
    font-weight: bold;
    font-size: 1.15em;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 6px;
    transition: background 0.2s;
}

.header-second-row li a:hover {
    background: var(--menu-link-bg-hover);
    color: #fff;
}

/* Main Content */
main {
    flex: 1 0 auto;
    max-width: 900px;
    margin: 40px auto 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 36px 24px;
    box-shadow: 0 2px 12px rgba(215, 215, 220, 0.08);
}

main p {
    text-align: justify;
    text-align-last: left;
}

main li {
    text-align: justify;
}

h1, h3 {
    font-weight: 600;
    margin-top: 32px;
}

p {
    font-weight: 400;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

form div {
    margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 85%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    background-color: #fafafa;
    transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: var(--primary-color);
}

label {
    font-size: 0.95em;
    margin-top: 8px;
}

button {
    padding: 12px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: var(--accent-color);
}

.error {
    color: #c0392b;
    text-align: center;
    margin-bottom: 16px;
    font-weight: bold;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
}

input[type="checkbox"] {
    margin-right: 8px;
}

/* Auth Forms */
.form-links {
    text-align: center;
    margin-top: 18px;
    font-size: 0.95em;
}

.form-links a {
    color: var(--menu-link);
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 1.1em;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
}

.contact,
.copyright {
    font-size: 1.1em;
    font-weight: 400;
}

.contact a,
.copyright a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.contact a:hover,
.copyright a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 700px) {
    .header-top {
        flex-direction: column;
        align-items: center;
        padding: 10px 0 0;
        gap: 6px;
    }

    .site-title {
        font-size: 1.6em;
    }

    .instagram-link {
        position: static;
        margin-top: 6px;
    }

    .header-second-row {
        padding: 16px 0;
    }

    .header-second-row ul {
        gap: 14px;
        flex-direction: column;
        align-items: center;
    }

    .header-second-row li a {
        font-size: 1.05em;
        padding: 10px 14px;
    }

    .header {
        padding: 0 3vw;
    }
}

@media (max-width: 600px) {
    .footer-content {
        font-size: 1.1em;
    }

    .copyright,
    .contact {
        font-size: 1em;
        text-align: center;
    }
}

/* Visibility Enhancements */
header .site-title,
header .header-second-row a {
    color: #fff !important;
}
