:root {
    --brand: #134A8E;
    --brand-light: #1E6BC4;
    --brand-dark: #1D2D5C;
    --accent: #E8291C;
    --accent-light: #FF4D42;
    --bg: #F0F4FA;
    --surface: #FFFFFF;
    --text: #1D2D5C;
    --text-muted: #5D7AA8;
    --text-light: #8BA4C8;
    --border: #D0D8E8;
    --border-light: #E8EEF7;
    --input-bg: #FAFAFA;
    --input-border: #CBD5E1;
    --success-bg: #D4EDDA;
    --success-text: #155724;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-xs: 4px;
    --shadow: 0 4px 20px rgba(29, 45, 92, 0.08);
    --shadow-sm: 0 1px 4px rgba(29, 45, 92, 0.08);
    --max-width: 1000px;
}

/* Reset & Base ======================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

img {
    width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout ============================================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header ============================================================== */
.header {
    background: var(--brand);
    padding: 1rem 2rem;
}

.header nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    gap: 1.5rem;
}

.header nav a {
    color: var(--surface);
    font-weight: 500;
}

.header nav a:hover {
    text-decoration: underline;
}

/* Main Content ======================================================== */
.main {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 2rem;
}

.mylogo {
    display: inline-block;
    max-width: 48px;
}

.main h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

/* Grid ================================================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    list-style: none;
}

/* Cards (general / listing) =========================================== */
.card {
    background: var(--surface);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    background: var(--brand);
    color: var(--surface);
    padding: 0.75rem 1rem;
}

.card-header h2 {
    font-size: 1rem;
    font-weight: 600;
}

.card-header .meta {
    font-size: 0.8rem;
    opacity: 0.85;
}

.card-img {
    padding: 1rem 1rem 0;
}

.card-img img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: var(--bg);
    border-radius: var(--radius-xs);
}

.card-details {
    list-style: none;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.card-details li {
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
}

.card-details li:last-child {
    border: none;
}

.card-details .label {
    color: var(--text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.card-actions {
    padding: 0 1rem 1rem;
    display: flex;
    gap: 0.5rem;
}

/* Buttons (general / listing) ========================================= */
.btn {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary {
    background: var(--brand);
    color: var(--surface);
}

.btn-primary:hover {
    background: var(--brand-dark);
}

.btn-secondary {
    background: var(--accent-light);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--accent);
}

/* Empty State ========================================================= */
.empty {
    text-align: center;
    color: var(--text-light);
    padding: 3rem;
}

/* Footer ============================================================== */
.footer {
    background: var(--brand);
    color: var(--surface);
    padding: 1.5rem;
    text-align: center;
}

.footer a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer a:hover {
    color: #e0e8ff;
    text-decoration: none;
}

/* Forms =============================================================== */
.form-box {
    background: var(--surface);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-xs);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--input-bg);
    transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--surface);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

button[type="submit"] {
    background: var(--brand);
    color: var(--surface);
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-xs);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

button[type="submit"]:hover {
    background: var(--brand-dark);
}

.success {
    background: var(--success-bg);
    color: var(--success-text);
    padding: 1rem;
    border-radius: var(--radius-xs);
    margin-bottom: 1rem;
}

/* Policy pages ======================================================== */
.main > .policy > div {
    padding-top: 1rem;
}

.main > .policy > div > ul {
    padding-left: 16px;
}

.main > .policy > div > ul,  .main > .policy > div > p {
    margin-left: 24px;
}


/* About Page ========================================================== */
.hero {
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-light) 100%);
    color: var(--surface);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__logo {
    width: 110px;
    height: 110px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 1.5rem;
    object-fit: contain;
    background: var(--surface);
    border-radius: 50%;
    padding: 0.75rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.hero__name {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.hero__slogan {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    padding: 3rem 0;
}

.section {
    margin-bottom: 2.5rem;
}

.section:last-child {
    margin-bottom: 0;
}

.section__title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand);
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.tag {
    background: var(--accent);
    color: var(--brand);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Sidebar / Meta (scoped to avoid card/btn conflicts) ================= */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar .card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.meta-row {
    margin-bottom: 1rem;
}

.meta-row:last-child {
    margin-bottom: 0;
}

.meta-row__label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.meta-row a {
    color: var(--brand);
    font-weight: 600;
}

address {
    font-style: normal;
    line-height: 1.6;
}

/* About-page buttons (scoped under .content) ========================== */
.content .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand);
    color: var(--surface);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background 0.2s;
    flex: 0 0 auto;
    text-align: left;
}

.content .btn:hover {
    background: var(--brand-light);
    text-decoration: none;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    border-left: 4px solid var(--brand);
    box-shadow: var(--shadow);
}

.contact-item__type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.founder {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.founder__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.founder__name {
    font-weight: 700;
    font-size: 1.1rem;
}

.founder__role {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.error {
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--text-muted);
}

/* LOGIN PAGE ========================================================== */
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--bg) 0%, var(--accent-light) 100%);
}

.login-box {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.login-box__header {
    background: var(--brand);
    color: var(--surface);
    padding: 2rem;
    text-align: center;
}

.login-box__brand {
    width: 64px;
    height: 64px;
    background: var(--surface);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
}

.login-box__header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.login-box__header p {
    margin-top: 0.25rem;
    opacity: 0.9;
    font-size: 0.9375rem;
}

.login-box__body {
    padding: 2rem;
}

.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.login-form .form-group input[type="text"],
.login-form .form-group input[type="email"],
.login-form .form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 1rem;
    background: var(--input-bg);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form .form-group input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.15);
    background: var(--surface);
}

.login-form__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.login-form__remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.login-form__remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
    cursor: pointer;
}

.login-form__forgot {
    color: var(--brand);
    font-weight: 500;
}

.login-form__forgot:hover {
    text-decoration: underline;
}

.login-form__submit {
    width: 100%;
    padding: 0.875rem;
    background: var(--brand);
    color: var(--surface);
    border: none;
    border-radius: var(--radius-xs);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.login-form__submit:hover {
    background: var(--brand-dark);
}

.login-form__footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.login-form__footer a {
    color: var(--brand);
    font-weight: 600;
}

.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-xs);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.alert--error {
    background: #fde8e8;
    color: #c81e1e;
    border: 1px solid #f5b5b5;
}

.alert--success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #b7d7c4;
}

/* Responsive ========================================================== */
@media (max-width: 800px) {
    .content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .main {
        padding: 0 1rem;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .header nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
}