:root {
  /* Brand Colors */
  --primary-color: #d3a76a; /* Soft gold */
  --secondary-color: #f0e4d7; /* Muted beige */
  --accent-color: #7a9e7e; /* Sage green */
  --text-dark: #2c2c2c;
  --text-light: #f8f8f8;
  --background-light: #ffffff;
  --background-dark: #1a1a1a;
  --error-color: #e74c3c;
  --success-color: #27ae60;
  
  /* Typography */
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Inter', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  
  /* Borders & Shadows */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--background-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  margin-bottom: var(--spacing-md);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

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

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header */
.header {
  background-color: var(--background-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: var(--spacing-md) 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo img {
  height: 40px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: var(--spacing-lg);
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  padding: var(--spacing-sm) 0;
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -2px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-link:hover:after, 
.nav-link.active:after {
  width: 100%;
}

/* Mobile Navigation */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-dark);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding-top: calc(70px + var(--spacing-xl)); /* Header height + padding */
  padding-bottom: var(--spacing-xl);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-light);
}

.hero h1 {
  margin-bottom: var(--spacing-md);
  font-size: 4rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: var(--font-secondary);
}

.btn:hover {
  background-color: #c09456; /* Darker gold */
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Section Styling */
.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title h2 {
  margin-bottom: var(--spacing-sm);
}

.section-title .subtitle {
  font-size: 1.2rem;
  color: var(--primary-color);
  font-family: var(--font-primary);
  font-style: italic;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.feature-item {
  text-align: center;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.feature-title {
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

/* Events */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.event-card {
  background-color: var(--background-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.event-image {
  height: 200px;
  background-position: center;
  background-size: cover;
}

.event-content {
  padding: var(--spacing-lg);
}

.event-title {
  margin-bottom: var(--spacing-sm);
}

.event-date, .event-location {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
  color: #666;
  font-size: 0.9rem;
}

.event-date i, .event-location i {
  margin-right: var(--spacing-sm);
  color: var(--primary-color);
}

.event-description {
  margin-bottom: var(--spacing-md);
}

.event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-attendees {
  font-size: 0.9rem;
  color: #666;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-sm);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  height: 250px;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

/* Testimonials */
.testimonials {
  background-color: var(--secondary-color);
  text-align: center;
}

.testimonial-item {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.testimonial-text {
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-color);
}

/* Register Form */
.form-section {
  background-color: var(--secondary-color);
  padding: var(--spacing-xl) 0;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--spacing-xl);
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-hint {
  font-size: 0.85rem;
  color: #666;
  margin-top: var(--spacing-xs);
}

.form-error {
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: var(--spacing-xs);
}

.form-required {
  color: var(--error-color);
}

/* Footer */
.footer {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: var(--spacing-xl) 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.footer-logo {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.footer-about p {
  margin-bottom: var(--spacing-md);
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
  color: var(--primary-color);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: var(--spacing-sm);
}

.footer-link a {
  color: var(--text-light);
}

.footer-link a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.copyright {
  text-align: center;
  padding-top: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Member Dashboard */
.dashboard {
  padding-top: 100px;
  min-height: 100vh;
  background-color: #f9f9f9;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.dashboard-title {
  margin-bottom: 0;
}

.dashboard-content {
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.dashboard-menu {
  margin-bottom: var(--spacing-lg);
}

.dashboard-menu-list {
  display: flex;
  list-style: none;
  border-bottom: 1px solid #eee;
}

.dashboard-menu-item {
  padding: var(--spacing-md) var(--spacing-lg);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.dashboard-menu-item:hover,
.dashboard-menu-item.active {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
}

.dashboard-events {
  margin-bottom: var(--spacing-lg);
}

/* Admin Dashboard */
.admin-dashboard {
  padding-top: 100px;
  min-height: 100vh;
  background-color: #f9f9f9;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background-color: var(--background-dark);
  padding-top: 100px;
  z-index: 900;
}

.admin-sidebar-menu {
  list-style: none;
}

.admin-sidebar-item {
  margin-bottom: var(--spacing-sm);
}

.admin-sidebar-link {
  display: block;
  padding: var(--spacing-md) var(--spacing-lg);
  color: var(--text-light);
  transition: all 0.3s ease;
}

.admin-sidebar-link:hover,
.admin-sidebar-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
}

.admin-main {
  margin-left: 250px;
  padding: var(--spacing-xl);
}

.admin-panel {
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid #eee;
  padding-bottom: var(--spacing-md);
}

.admin-panel-title {
  margin-bottom: 0;
}

.member-grid,
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.member-card {
  background-color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.member-photo {
  height: 200px;
  background-position: center;
  background-size: cover;
}

.member-info {
  padding: var(--spacing-md);
}

.member-name {
  margin-bottom: var(--spacing-xs);
}

.member-email {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

.member-actions {
  display: flex;
  gap: var(--spacing-sm);
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid #eee;
}

.data-table th {
  background-color: #f9f9f9;
  font-weight: 600;
}

.data-table tbody tr:hover {
  background-color: #f9f9f9;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-lg);
}

.pagination-item {
  margin: 0 var(--spacing-xs);
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid #eee;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.pagination-link:hover,
.pagination-link.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .menu-toggle {
    display: flex;
    position: absolute;
    top: 25px;
    right: 20px;
  }
  
  .nav {
    display: none;
    width: 100%;
    margin-top: var(--spacing-md);
  }
  
  .nav.active {
    display: block;
  }
  
  .nav-list {
    flex-direction: column;
  }
  
  .nav-item {
    margin-left: 0;
    margin-bottom: var(--spacing-sm);
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .admin-sidebar {
    width: 200px;
  }
  
  .admin-main {
    margin-left: 200px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding-top: 0;
  }
  
  .admin-main {
    margin-left: 0;
    padding: var(--spacing-md);
  }
  
  .admin-sidebar-menu {
    display: flex;
    overflow-x: auto;
  }
  
  .admin-sidebar-item {
    margin-bottom: 0;
    margin-right: var(--spacing-sm);
  }
  
  .admin-sidebar-link {
    padding: var(--spacing-sm);
    white-space: nowrap;
  }
  
  .form-container {
    padding: var(--spacing-md);
  }
}
