/* Landing Page Styles */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  color: #333;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.hero .subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.95;
}

/* Main Content */
.main-content {
  padding: 60px 20px;
  background: #f8f9fa;
}

section {
  margin-bottom: 60px;
}

section h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 20px;
  border-bottom: 3px solid #667eea;
  padding-bottom: 10px;
  display: inline-block;
}

/* Course Intro Section */
.course-intro {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.course-intro p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
}

/* Download Section */
.download-section {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.download-section h2 {
  border-bottom: 3px solid #667eea;
  padding-bottom: 10px;
  display: inline-block;
  margin-bottom: 20px;
}

.download-section > p:first-of-type {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
}

/* Download Button */
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  border: none;
  cursor: pointer;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.download-btn:active {
  transform: translateY(0);
}

.download-btn svg {
  width: 20px;
  height: 20px;
}

.file-info {
  color: #999;
  font-size: 0.9rem;
  margin-top: 15px;
}

/* Templates Section */
.templates {
  margin-top: 60px;
}

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

.template-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #667eea;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.template-card h3 {
  color: #667eea;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.template-card p {
  color: #666;
  font-size: 0.95rem;
}

/* Tools Section */
.tools-section {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.tools-section p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

/* Secondary Button */
.secondary-btn {
  display: inline-block;
  background: white;
  color: #667eea;
  padding: 12px 35px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid #667eea;
  transition: all 0.2s;
}

.secondary-btn:hover {
  background: #667eea;
  color: white;
}

/* Resources Section */
.resources {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.resources ul {
  list-style: none;
}

.resources li {
  margin-bottom: 15px;
}

.resources a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.resources a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Footer */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* New Badge with Animation */
.new-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  display: flex;
  align-items: center;
  gap: 5px;
  animation: pulse-badge 2s ease-in-out infinite;
}

.star-icon {
  display: inline-block;
  animation: twinkle 1.5s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.5);
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .download-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }

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

  .download-section {
    padding: 25px 15px;
  }

  .tools-section {
    padding: 25px 15px;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .new-badge {
    position: relative;
    top: 0;
    right: 0;
    margin-top: 15px;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 50px 15px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero .subtitle {
    font-size: 0.9rem;
  }

  .main-content {
    padding: 30px 15px;
  }

  .download-btn {
    flex-direction: column;
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  section h2 {
    font-size: 1.3rem;
  }
}
