
:root {
  --primary: #964B00;
  --secondary: #F5F5DC;
  --accent: #D4AF37;
  --transition: #808000;
  --copper: #B87333;
  --dark: #333333;
}

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

body {
  font-family: 'Roboto', sans-serif;
  color: var(--dark);
  background: linear-gradient(135deg, var(--secondary), white);
  line-height: 1.6;
  padding-top: 80px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--primary), #7a3a00);
  color: white;
  padding: 15px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-family: 'Baskerville', serif;
  font-size: 24px;
  color: var(--accent);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: all 0.3s ease;
}

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

.nav a:hover:after {
  width: 100%;
}

.banner {
  background: linear-gradient(rgba(150, 75, 0, 0.8), rgba(150, 75, 0, 0.6)), url('https://images.gptkong.com/demo/sample1.png');
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.banner-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.banner h1 {
  font-family: 'Baskerville', serif;
  font-size: 42px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner p {
  font-size: 18px;
  margin-bottom: 30px;
}

.notice {
  background: var(--accent);
  color: white;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  margin-bottom: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin-bottom: 60px;
}

article {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

article h2 {
  font-family: 'Baskerville', serif;
  color: var(--primary);
  font-size: 32px;
  margin-bottom: 30px;
  position: relative;
}

article h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

article h3 {
  font-family: 'Baskerville', serif;
  color: var(--primary);
  font-size: 24px;
  margin: 30px 0 20px;
}

article p {
  margin-bottom: 20px;
  font-size: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

table th, table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: var(--primary);
  color: white;
  font-weight: 500;
}

table tr:nth-child(even) {
  background-color: #f9f9f9;
}

table tr:hover {
  background-color: #f1f1f1;
}

pre {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
  border-left: 4px solid var(--accent);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

code {
  font-family: 'Courier New', monospace;
  color: #333;
}

.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sidebar-card h3 {
  font-family: 'Baskerville', serif;
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 20px;
  position: relative;
}

.sidebar-card h3:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.footer {
  background: linear-gradient(90deg, var(--primary), #7a3a00);
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer p {
  margin-bottom: 10px;
}

@media (max-width: 992px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav {
    gap: 15px;
  }
  
  .banner h1 {
    font-size: 32px;
  }
  
  .sidebar {
    grid-template-columns: 1fr;
  }
  
  article {
    padding: 25px;
  }
}

@media (max-width: 576px) {
  .banner {
    height: 300px;
  }
  
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Interactive elements */
.button {
  display: inline-block;
  background: linear-gradient(45deg, var(--transition), var(--accent));
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border: none;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.toc {
  position: sticky;
  top: 100px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.toc h3 {
  font-family: 'Baskerville', serif;
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 20px;
}

.toc ul {
  list-style: none;
}

.toc li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.toc li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.toc a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

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