/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --family-color-primary: #204BB3;
    --family-color-primary-light: #4a6fd8;
    --family-color-secondary: #EFC415;
}

body {
    font-family: 'Times New Roman', 'Georgia', serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    font-size: 16px;
}

/* Profile page specific font */
.profile-container,
.profile-container *,
.admin-container,
.admin-container * {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Header and Navigation */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

nav:has(.nav-brand.hidden) {
    justify-content: flex-end;
}

.nav-brand a {
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.nav-brand a:hover {
    color: #666;
}

.nav-brand h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: inherit;
    font-family: 'Times New Roman', serif;
    margin: 0;
}

.nav-brand.hidden {
    visibility: hidden;
}

/* Initially hide the logo on homepage */
#nav-brand {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 8px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -8px);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s ease;
    position: relative;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    min-width: 0;
}

.nav-links a:hover {
    color: #666;
}

.nav-links a.active {
    color: #1a1a1a;
    font-weight: 500;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #1a1a1a;
}


.login-link {
    background-color: #1a1a1a !important;
    color: white !important;
    padding: 8px 16px !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    transition: background-color 0.2s ease !important;
}

.login-link:hover {
    background-color: #333 !important;
    color: white !important;
}

.login-link::after {
    display: none !important;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    padding: 4rem 0 6rem 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 4rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #666;
    font-weight: 300;
}

.hero-map {
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

.duxbury-map {
    max-width: 100%;
    height: auto;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.coat-of-arms {
    max-width: calc(100% - 4rem);
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Content Snippets */
.content-snippets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-bottom: 6rem;
}

.snippet {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    text-align: left;
}

.snippet h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.25px;
    line-height: 1.3;
}

.snippet p {
    margin-bottom: 2rem;
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: transparent;
    color: #1a1a1a;
    padding: 0;
    text-decoration: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.btn:hover {
    color: #666;
    border-bottom-color: #666;
}

/* Name Spelling Section */
.name-spelling {
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 1px solid #e5e5e5;
}

.spelling-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.spelling-text h3 {
    color: #1a1a1a;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.25px;
}

.spelling-text p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.spelling-text .source {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

.spelling-map {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.map-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
    text-align: center;
    max-width: 100%;
    line-height: 1.4;
}

/* Name Meaning Section */
.name-meaning {
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 1px solid #e5e5e5;
}

.meaning-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.meaning-text h3 {
    color: #1a1a1a;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.25px;
}

.meaning-text p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.meaning-text .source {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
}

.meaning-map {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.europe-map {
    max-width: 100%;
    height: auto;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Page Headers */
.page-header {
    text-align: left;
    margin-bottom: 4rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.page-header h2 {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
    font-weight: 300;
    max-width: 600px;
}

.last-updated {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
    margin-top: 1rem;
}

.author {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
    margin-top: 0.5rem;
}

.page-metadata {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
    text-align: left;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.timeline-item {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    border-left: 2px solid #1a1a1a;
    padding-left: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background-color: #1a1a1a;
    border-radius: 50%;
}

.timeline-item h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.25px;
}

.timeline-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
}

/* Photo Gallery */
.photo-categories {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.category {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.category h3 {
    color: #1a1a1a;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.25px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 1rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.photo-item {
    background-color: #ffffff;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.gallery-photo:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.gallery-photo {
    max-width: 100%;
    height: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-caption {
    padding: 1rem;
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

/* Member Profiles */
.member-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.member-card {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    border-left: 3px solid #1a1a1a;
    padding-left: 2rem;
}

.member-card h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: -0.25px;
}

.member-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.member-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.member-text {
    text-align: left;
}

.member-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.member-image .elinor-portrait {
    max-width: 100%;
    height: auto;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.member-image .church-image {
    max-width: calc(100% - 4rem);
    height: auto;
}

.member-image .image-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
    text-align: center;
    max-width: 100%;
    line-height: 1.4;
}

.member-full-text {
    margin-top: 2rem;
}

.member-full-text p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 1rem;
}

.member-full-text h4 {
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.25px;
}

/* Reading Sections */
.reading-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.reading-category {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.reading-category h3 {
    color: #1a1a1a;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.25px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 1rem;
}

.reading-category ul {
    list-style: none;
}

.reading-category li {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.reading-category li:last-child {
    border-bottom: none;
}

.reading-category a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 300;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.reading-category a:hover {
    color: #666;
    border-bottom-color: #666;
}

/* Map Container */
.map-container {
    margin-bottom: 4rem;
}

.map-placeholder {
    background: #f8f8f8;
    padding: 4rem 2rem;
    border: 1px solid #e5e5e5;
    text-align: center;
    border-radius: 0;
}

.map-placeholder h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 400;
}

.map-placeholder p {
    color: #999;
    font-weight: 300;
}

/* Location Timeline */
.location-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.time-period {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    border-left: 2px solid #1a1a1a;
    padding-left: 2rem;
    position: relative;
}

.time-period::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background-color: #1a1a1a;
    border-radius: 50%;
}

.time-period h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.25px;
}

.time-period p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
}

/* Tree Container */
.tree-container {
    margin-bottom: 4rem;
}

.tree-placeholder {
    background: #f8f8f8;
    padding: 4rem 2rem;
    border: 1px solid #e5e5e5;
    text-align: center;
    border-radius: 0;
}

.tree-placeholder h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 400;
}

.tree-placeholder p {
    color: #999;
    font-weight: 300;
}

/* Tree Controls */
.tree-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.control-group {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.control-group h3 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: -0.25px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 1rem;
}

.control-group input,
.control-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    font-size: 1rem;
    font-family: 'Times New Roman', serif;
    background-color: #ffffff;
    transition: border-color 0.2s ease;
}

.control-group input:focus,
.control-group select:focus {
    outline: none;
    border-color: #1a1a1a;
}

/* Recipe Categories */
.recipe-categories {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.recipe-category {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.recipe-category h3 {
    color: #1a1a1a;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.25px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 1rem;
}

.recipe-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.recipe-item {
    padding: 0;
    background-color: transparent;
    border: none;
    border-left: 3px solid #1a1a1a;
    padding-left: 2rem;
}

.recipe-item h4 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: -0.25px;
}

.recipe-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 4rem 0;
}

.login-form-wrapper {
    max-width: 400px;
    width: 100%;
    padding: 0 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 3rem;
}

.login-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.login-header p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    font-weight: 300;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    padding: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    font-size: 1rem;
    font-family: 'Times New Roman', serif;
    background-color: #ffffff;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    font-weight: 300;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.tos-link {
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 14px;
    text-align: center;
}

.tos-link .signup-link {
    color: var(--family-color-primary);
    text-decoration: underline;
    font-weight: 400;
}

.tos-link .signup-link:hover {
    color: var(--family-color-primary-light);
    text-decoration: none;
}

.tos-link-prominent {
    color: var(--family-color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--family-color-primary);
    border-radius: 6px;
    display: inline-block;
    text-align: center;
    transition: all 0.2s ease;
    background: transparent;
    margin-bottom: 1rem;
}

.tos-link-prominent:hover {
    background: var(--family-color-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(32, 75, 179, 0.3);
}

.forgot-password {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.forgot-password:hover {
    color: #666;
    border-bottom-color: #666;
}

.login-button {
    background-color: #1a1a1a;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: 'Times New Roman', serif;
}

.login-button:hover {
    background-color: #333;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.login-footer p {
    font-size: 14px;
    color: #666;
    font-weight: 300;
}

.signup-link {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.signup-link:hover {
    color: #666;
    border-bottom-color: #666;
}

/* Footer */
footer {
    background-color: #ffffff;
    color: #666;
    text-align: center;
    padding: 3rem 0;
    margin-top: 6rem;
    border-top: 1px solid #e5e5e5;
    font-size: 14px;
    font-weight: 300;
}

/* Authentication Styles */
.error-message {
    background-color: #fee;
    color: #c33;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #fcc;
}

.success-message {
    background-color: #efe;
    color: #363;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #cfc;
}

.profile-menu {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    min-width: 240px;
    max-width: 280px;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    animation: profileMenuSlideIn 0.2s ease-out forwards;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

@keyframes profileMenuSlideIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.profile-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    border: 1px solid #e5e5e5;
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
    z-index: -1;
}

.profile-menu-content {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
}

.profile-menu-header {
    background: linear-gradient(135deg, var(--family-color-primary) 0%, var(--family-color-primary-light) 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-menu-header p {
    margin: 0;
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.95;
}

.profile-menu-header .user-email {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.25rem;
    word-break: break-all;
}

.profile-menu-items {
    padding: 0.5rem 0;
}

.profile-link {
    display: flex;
    align-items: center;
    color: #495057;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.profile-link::before {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.75rem;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.profile-link:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--family-color-primary);
    transform: translateX(4px);
}

.profile-link:hover::before {
    transform: scale(1.1);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem 1rem 1rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    width: calc(100% - 2rem);
    position: relative;
    overflow: hidden;
}

.logout-btn::before {
    content: '\f2f5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.logout-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

/* Protected Content Styles */
.protected-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 12px;
}

.protected-header {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.protected-header h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.protected-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.protected-snippets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.protected-snippets .snippet {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.protected-snippets .snippet:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.protected-snippets .snippet h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.protected-snippets .snippet p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.protected-snippets .snippet .btn {
    background: linear-gradient(135deg, var(--family-color-primary) 0%, var(--family-color-primary-light) 100%);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 500;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.protected-snippets .snippet .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 75, 179, 0.4);
}

/* Admin Styles */
.admin-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.admin-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
}

.admin-header {
    background: linear-gradient(135deg, var(--family-color-primary) 0%, var(--family-color-primary-light) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.admin-header h2 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.admin-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.admin-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.admin-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-bottom: 1px solid #e9ecef;
}

.admin-section:last-child {
    border-bottom: none;
}

.admin-section h3 {
    color: var(--family-color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    border-left: 4px solid var(--family-color-secondary);
    padding-left: 1rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-form .form-group {
    display: flex;
    flex-direction: column;
}

.admin-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

.admin-form input {
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.admin-form input:focus {
    outline: none;
    border-color: var(--family-color-primary);
    box-shadow: 0 0 0 2px rgba(32, 75, 179, 0.2);
}

.admin-button {
    background: linear-gradient(135deg, var(--family-color-primary) 0%, var(--family-color-primary-light) 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 500;
}

.admin-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 75, 179, 0.4);
}

.users-list {
    overflow-y: auto;
}

.users-list p {
    color: #6c757d;
    text-align: center;
    padding: 1rem;
}

.admin-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.admin-info p {
    margin-bottom: 1rem;
    color: #495057;
}

.admin-info ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.admin-info li {
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.admin-info code {
    background: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.admin-info i {
    color: var(--family-color-primary);
    margin-right: 0.5rem;
}

.admin-warning {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    margin: 2rem 0;
}

.warning-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.admin-warning h3 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.admin-warning p {
    color: #856404;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.admin-warning .btn {
    background: var(--family-color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.2s ease;
}

.admin-warning .btn:hover {
    background: var(--family-color-primary-light);
    transform: translateY(-1px);
}

/* Pending Users Styles */
.pending-users-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pending-user-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.pending-user-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pending-user-card .user-info {
    margin-bottom: 1rem;
}

.pending-user-card .user-info h4 {
    color: var(--family-color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.pending-user-card .user-info p {
    padding: 0;
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
    text-align: left;
}

.pending-user-card .user-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.approve-btn, .reject-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.approve-btn {
    background: #28a745;
    color: white;
}

.approve-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.reject-btn {
    background: #dc3545;
    color: white;
}

.reject-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.welcome-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--family-color-primary);
}

.welcome-info p {
    margin-bottom: 1rem;
    color: #495057;
    line-height: 1.6;
}

.welcome-info ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: #6c757d;
}

.welcome-info li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.welcome-info em {
    color: var(--family-color-primary);
    font-style: italic;
    font-weight: 500;
}

/* Terms of Service Styles */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 4rem 2rem;
}

.content-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

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

.content-section h3 {
    color: var(--family-color-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 500;
    border-left: 4px solid var(--family-color-secondary);
    padding-left: 1rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #495057;
}

.content-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #495057;
}

/* Profile Page Styles */
.profile-container {
    min-height: 80vh;
    padding: 2rem;
}

.profile-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, var(--family-color-primary) 0%, var(--family-color-primary-light) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.profile-header h2 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.profile-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.profile-content {
    padding: 2rem;
}

.profile-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

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

.profile-section h3 {
    color: var(--family-color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    border-left: 4px solid var(--family-color-secondary);
    padding-left: 1rem;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--family-color-primary);
    box-shadow: 0 0 0 2px rgba(32, 75, 179, 0.2);
}

.form-group input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
}

.form-help {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.profile-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.profile-button:not(.secondary) {
    background: linear-gradient(135deg, var(--family-color-primary) 0%, var(--family-color-primary-light) 100%);
    color: white;
}

.profile-button:not(.secondary):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 75, 179, 0.4);
}

.profile-button.secondary {
    background: #6c757d;
    color: white;
}

.profile-button.secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.profile-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Settings Section */
.settings-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.setting-info h4 {
    margin-bottom: 0.25rem;
    color: var(--family-color-primary);
    font-size: 1rem;
}

.setting-info p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.setting-button {
    background: var(--family-color-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.setting-button:hover {
    background: var(--family-color-primary-light);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, var(--family-color-primary) 0%, var(--family-color-primary-light) 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-weight: bold;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    margin-bottom: 1.5rem;
    color: #6c757d;
    line-height: 1.6;
}

.modal-body .form-group {
    margin-bottom: 1.5rem;
}

.modal-body .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-body .login-button.secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.modal-body .login-button.secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.password-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 5;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        flex: 1;
        text-align: center;
        white-space: nowrap;
    }
    
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    .hero-map {
        order: 1;
        max-width: 100%;
    }
    
    .spelling-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .spelling-map {
        order: 1;
    }
    
    .meaning-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .meaning-map {
        order: 1;
    }
    
    .member-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .member-image {
        order: -1;
    }
    
    
    main {
        padding: 0 1rem;
    }
    
    .content-snippets {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero {
        padding: 3rem 0 4rem 0;
        overflow: hidden;
    }
    
    .member-profiles {
        grid-template-columns: 1fr;
    }
    
    .reading-sections {
        grid-template-columns: 1fr;
    }
    
    .login-container {
        padding: 2rem 0;
    }
    
    .login-form-wrapper {
        padding: 0 1rem;
    }
    
    .login-header h2 {
        font-size: 2rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .admin-content {
        grid-template-columns: 1fr;
    }

    .profile-container {
        padding: 1rem;
    }

    .profile-content {
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-body .form-actions {
        flex-direction: column;
    }

    .pending-user-card .user-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .approve-btn, .reject-btn {
        width: 100%;
        justify-content: center;
    }

    /* Profile menu responsive adjustments */
    .profile-menu {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        width: auto;
    }

    .profile-menu::before {
        right: 30px;
    }

    .profile-menu-header {
        padding: 1rem 1.25rem;
    }

    .profile-link {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .logout-btn {
        margin: 0.75rem 1.25rem 1.25rem 1.25rem;
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
}
