
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background: #f7f9fb;
    color: #1f2937;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    line-height: 1.25;
    margin-top: 0;
}

a {
    color: #0f766e;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-main {
    flex: 1;
    padding: 2rem 0 3rem;
}

/* ----- Header / Nav ----- */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 1rem;
}

.brand {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #0f766e;
    text-decoration: none;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
}

.main-nav a {
    color: #1f2937;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.95rem;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
    color: #0f766e;
    border-bottom-color: #0f766e;
    text-decoration: none;
}

/* Login icon link in the nav */
.nav-login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-bottom: none !important;
    color: #1f2937;
}

.nav-login-icon:hover,
.nav-login-icon.active {
    color: #0f766e;
    border-bottom: none !important;
}

.nav-login-icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1.25rem;
    padding: 0.25rem 0.55rem;
    cursor: pointer;
    color: #1f2937;
}

/* ----- Cards / Sections ----- */
.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-title {
    margin-bottom: 0.35rem;
    color: #0d5f59;
}

.page-intro {
    color: #6b7280;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* ----- Home / Profile Hero ----- */
.profile-hero {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.75rem;
    align-items: start;
}

.profile-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ccfbf1;
    background: #e0f2f1;
}

.profile-name {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    color: #0d5f59;
}

.profile-role {
    color: #6b7280;
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.detail-list li {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.5rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #e5e7eb;
}

.detail-list .label {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-weight: 700;
    color: #6b7280;
    font-size: 0.92rem;
}

/* ----- Skills ----- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.skill-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem 1.15rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.skill-item h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: #0d5f59;
}

.skill-level {
    margin: 0;
    color: #6b7280;
    font-size: 0.92rem;
}

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

.form-group label {
    display: block;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-weight: 700;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font: inherit;
    background: #fff;
    color: #1f2937;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 2px solid #99f6e4;
    border-color: #0f766e;
}

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

.btn {
    display: inline-block;
    background: #0f766e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.25rem;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    margin: 0.25rem 0.5rem 0.25rem 0;
}

.btn:hover {
    background: #0d5f59;
    text-decoration: none;
    color: #fff;
}

.btn-secondary {
    background: #374151;
}

.btn-secondary:hover {
    background: #1f2937;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* ----- Alerts ----- */
.alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.error-text {
    color: #b91c1c;
    font-size: 0.88rem;
    margin: 0.3rem 0 0;
    display: none;
}

.error-text.visible {
    display: block;
}

.input-error {
    border-color: #b91c1c !important;
}

/* ----- Admin ----- */
.admin-photo-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ccfbf1;
    margin-bottom: 0.75rem;
}

.login-box {
    max-width: 420px;
    margin: 0 auto;
}

.help-text {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

/* ----- Footer ----- */
.site-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 1.25rem 0;
    text-align: center;
    color: #6b7280;
    font-size: 0.92rem;
}

.site-footer p {
    margin: 0;
}

/* ----- Responsive ----- */
@media (max-width: 700px) {
    .nav-toggle {
        display: inline-block;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-bottom: 1rem;
    }

    .main-nav.open {
        display: flex;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .profile-hero {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .detail-list li {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
    }
}
