/* Main CSS for denchua.com redesign */

:root {
  --primary-color: #FFD700; /* Yellow from logo */
  --secondary-color: #FF3B30; /* Red from logo */
  --text-color: #333333;
  --light-color: #FFFFFF;
  --background-color: #F9F9F9;
  --footer-bg: #333333;
  --footer-text: #FFFFFF;
  --border-color: #EEEEEE;
  --hover-color: #E5C100;
}

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

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

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

/* Header Styles */
header {
  background-color: var(--light-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

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

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

nav ul li a:hover {
  color: var(--secondary-color);
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(255, 215, 0, 0.7) 100%);
  padding: 80px 0;
  text-align: center;
  margin-bottom: 50px;
  border-radius: 0 0 10px 10px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-color);
}

/* Section Styles */
.section {
  margin-bottom: 60px;
  background-color: var(--light-color);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.section-title {
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 20px 30px;
  font-size: 1.8rem;
  margin: 0;
}

.section-content {
  padding: 30px;
}

/* Card Styles */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background-color: var(--light-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.card-header {
  background-color: var(--primary-color);
  padding: 15px 20px;
}

.card-title {
  color: var(--text-color);
  margin: 0;
  font-size: 1.3rem;
}

.card-body {
  padding: 20px;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table th, table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

table th {
  background-color: var(--primary-color);
  color: var(--text-color);
  font-weight: 600;
}

table tr:nth-child(even) {
  background-color: rgba(255, 215, 0, 0.1);
}

/* Feature List */
.feature-list {
  list-style: none;
  margin: 20px 0;
}

.feature-list li {
  padding: 10px 0 10px 30px;
  position: relative;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* Collapsible Content */
.collapsible-header {
  background-color: rgba(255, 215, 0, 0.2);
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 5px;
  margin-top: 15px;
}

.collapsible-header h3, .collapsible-header h4 {
  margin: 0;
}

.collapsible-header i {
  transition: transform 0.3s ease;
}

.collapsible-header.active i {
  transform: rotate(180deg);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: var(--light-color);
  border-radius: 0 0 5px 5px;
  padding: 0 20px;
}

/* Topic Styles */
.topic-outline {
  background-color: rgba(255, 215, 0, 0.1);
  border-left: 3px solid var(--secondary-color);
  padding: 15px;
  margin: 10px 0;
  border-radius: 0 5px 5px 0;
}

.topic-outline ul {
  margin: 0;
  padding-left: 20px;
}

.topic-outline li {
  margin-bottom: 5px;
}

.topic-container {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.topic-title {
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.category-title {
  background-color: var(--secondary-color);
  color: var(--light-color);
  padding: 10px 15px;
  margin: 30px 0 20px;
  border-radius: 4px;
}

.topics-list {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
}

/* Button Styles */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  margin-right: 10px;
  margin-bottom: 10px;
}

.btn:hover {
  background-color: var(--hover-color);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background-color: #E03028;
}

.btn-container {
  margin-top: 30px;
  text-align: center;
}

/* Footer Styles */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 50px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-section p {
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  color: var(--footer-text);
  font-size: 20px;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--primary-color);
  text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  nav ul {
    flex-direction: column;
    width: 100%;
    display: none;
  }
  
  nav ul.active {
    display: flex;
  }
  
  nav ul li {
    margin: 10px 0;
    text-align: center;
  }
  
  .mobile-nav-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .card-container {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-content {
    padding: 20px;
  }
  
  table th, table td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}
