/* ===================================
   BoardStrategyHub - Main Stylesheet
   =================================== */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #2c2416;
  background-color: #faf8f5;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #5d4e37;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #8b6f47;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #c9a86a;
}

ul,
ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background-color: #8b6f47;
  color: #fff;
}

.btn-primary:hover {
  background-color: #c9a86a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 111, 71, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #8b6f47;
  border-color: #8b6f47;
}

.btn-secondary:hover {
  background-color: #8b6f47;
  color: #fff;
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-cookie {
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
}

.btn-accept {
  background-color: #8b6f47;
  color: #fff;
}

.btn-accept:hover {
  background-color: #c9a86a;
}

.btn-decline {
  background-color: #f0f0f0;
  color: #333;
}

.btn-decline:hover {
  background-color: #ddd;
  color: #333;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 1000;
  border-top: 3px solid #8b6f47;
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 250px;
  font-size: 0.9rem;
}

.cookie-banner-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Header */
.header {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #5d4e37;
}

.logo a {
  color: #5d4e37;
}

.logo a:hover {
  color: #8b6f47;
}

/* Navigation */
.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  color: #5d4e37;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: #8b6f47;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #c9a86a;
  transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

/* Burger Menu - Hidden by default */
.burger-toggle {
  display: none;
}

.burger-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 21px;
  cursor: pointer;
  z-index: 101;
  position: relative;
}

.burger-line {
  width: 100%;
  height: 3px;
  background-color: #5d4e37;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.nav-overlay {
  display: none;
}

/* Responsive Navigation - Mobile */
@media (max-width: 900px) {
  .burger-icon {
    display: flex;
  }

  .nav {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 99;
    padding-top: 80px;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 20px;
    position: relative;
    z-index: 100;
  }

  .nav-list li {
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-list a {
    display: block;
    padding: 15px 10px;
  }

  #burger-toggle:checked ~ .nav {
    transform: translateX(0);
  }

  /* Burger Animation to X */
  #burger-toggle:checked ~ .nav ~ .burger-icon .burger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  #burger-toggle:checked ~ .nav ~ .burger-icon .burger-line:nth-child(2) {
    transform: scaleX(0);
  }

  #burger-toggle:checked ~ .nav ~ .burger-icon .burger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Overlay */
  .nav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 98;
  }

  #burger-toggle:checked ~ .nav-overlay {
    opacity: 1;
    visibility: visible;
  }
}

/* Hero Section */
.hero {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(45, 36, 22, 0.6);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  color: #faf8f5;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
  font-size: 1.5rem;
  color: #e3d5ca;
  font-weight: 400;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.1rem;
  color: #faf8f5;
  max-width: 700px;
  margin: 0 auto 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Sections */
section {
  padding: 80px 0;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #5d4e37;
}

/* About Section */
.about {
  background-color: #fff;
}

.about-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.about-text {
  flex: 1;
}

.about-text ul {
  list-style: none;
  padding: 0;
}

.about-text li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 1rem;
}

.about-text li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #c9a86a;
  font-weight: bold;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image img,
.guide-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Guide Section */
.guide {
  background-color: #f5ebe0;
}

.guide-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.guide-text {
  flex: 1;
}

.guide-image {
  flex: 1;
  min-width: 300px;
}

/* Image Placeholder */
.image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-weight: 600;
  font-size: 1.2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.faq {
  background-color: #fff;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 2rem;
  padding: 2rem;
  background-color: #f5ebe0;
  border-radius: 8px;
  border-left: 4px solid #8b6f47;
}

.faq-item h3 {
  color: #5d4e37;
  margin-bottom: 1rem;
}

.faq-item p {
  margin-bottom: 0.5rem;
}

/* Reviews Section */
.reviews {
  background-color: #f5ebe0;
  position: relative;
  overflow: hidden;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.review-text {
  margin-bottom: 1.5rem;
  font-style: italic;
  color: #5d4e37;
}

.review-author strong {
  display: block;
  color: #8b6f47;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.review-author span {
  color: #999;
  font-size: 0.9rem;
}

/* Contact Section */
.contact {
  background-color: #fff;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3,
.contact-form-wrapper h3 {
  color: #5d4e37;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item strong {
  display: block;
  color: #8b6f47;
  margin-bottom: 0.5rem;
}

.contact-item p,
.contact-item a {
  margin: 0;
  color: #5d4e37;
}

/* Contact Form */
.contact-form {
  background-color: #f5ebe0;
  padding: 30px;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #5d4e37;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8b6f47;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  cursor: pointer;
}

.checkbox-label span {
  flex: 1;
  font-size: 0.9rem;
  color: #5d4e37;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, #8b6f47 0%, #c9a86a 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.section-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.reviews .section-bg {
  background-image: url("images/Abstract Strategy Pattern bg.jpg");
}

.reviews .section-bg::after {
  background-color: rgba(245, 235, 224, 0.85);
}

.cta .section-bg {
  background-image: url("images/Wooden Texture with Game Elements bg.jpg");
}

.cta .section-bg::after {
  background-color: rgba(139, 111, 71, 0.7);
}

.reviews .container,
.cta .container {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #f5ebe0;
}

/* Footer */
.footer {
  background-color: #2c2416;
  color: #f5ebe0;
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #f5ebe0;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a.active {
  color: #c9a86a;
}

.footer-copy p {
  margin: 0;
  color: #999;
  font-size: 0.9rem;
}

/* Page Header (for subpages) */
.page-header {
  background: linear-gradient(135deg, #f5ebe0 0%, #e3d5ca 100%);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  color: #5d4e37;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  color: #8b6f47;
  margin: 0;
}

/* News Section */
.news-section {
  background-color: #fff;
  padding: 80px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.news-card {
  background-color: #f5ebe0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news-image {
  width: 100%;
  height: auto;
  display: block;
}

.news-content {
  padding: 30px;
}

.news-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #8b6f47;
}

.news-date,
.news-category {
  font-weight: 600;
}

.news-content h2 {
  font-size: 1.75rem;
  color: #5d4e37;
  margin-bottom: 1rem;
  text-align: left;
}

.news-content p {
  margin-bottom: 1rem;
  color: #5d4e37;
}

/* Tutorials Section */
.tutorials-section {
  background-color: #fff;
  padding: 80px 0;
}

.tutorial-category {
  margin-bottom: 60px;
}

.tutorial-category h2 {
  text-align: left;
  font-size: 2rem;
  color: #5d4e37;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #c9a86a;
}

.tutorials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.tutorial-card {
  background-color: #f5ebe0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tutorial-image {
  width: 100%;
}

.tutorial-content {
  padding: 30px;
}

.tutorial-content h3 {
  font-size: 1.5rem;
  color: #5d4e37;
  margin-bottom: 1rem;
}

.tutorial-content h4 {
  font-size: 1.2rem;
  color: #8b6f47;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.tutorial-content p,
.tutorial-content ul {
  color: #5d4e37;
}

.tutorial-content ul {
  margin-left: 1.5rem;
}

/* About Project Section */
.about-project-section {
  background-color: #fff;
  padding: 80px 0;
}

.content-block {
  margin-bottom: 60px;
}

.content-block h2 {
  text-align: left;
  font-size: 2rem;
  color: #5d4e37;
  margin-bottom: 2rem;
}

.content-with-image {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.content-with-image.reverse {
  flex-direction: row-reverse;
}

.text-content {
  flex: 1.5;
}

.image-content {
  flex: 1;
  min-width: 300px;
}

.image-content img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mission-points,
.team-grid,
.values-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.mission-card,
.team-member,
.value-item,
.achievement-card {
  background-color: #f5ebe0;
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid #8b6f47;
}

.mission-card h3,
.team-member h4,
.value-item h3 {
  color: #8b6f47;
  margin-bottom: 1rem;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.achievement-card {
  text-align: center;
  border-left: none;
  border-top: 4px solid #8b6f47;
}

.achievement-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #8b6f47;
  margin-bottom: 0.5rem;
}

.achievement-label {
  font-size: 1rem;
  color: #5d4e37;
}

.join-list {
  list-style: none;
  padding: 0;
}

.join-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 1rem;
}

.join-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #8b6f47;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Legal Section */
.legal-section {
  background-color: #fff;
  padding: 80px 0;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  text-align: left;
  font-size: 1.75rem;
  color: #5d4e37;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e3d5ca;
}

.legal-content h3 {
  text-align: left;
  font-size: 1.3rem;
  color: #8b6f47;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content h4 {
  text-align: left;
  font-size: 1.1rem;
  color: #8b6f47;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  color: #5d4e37;
  line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
  margin-left: 2rem;
}

.legal-content a {
  color: #8b6f47;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #c9a86a;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  section {
    padding: 60px 0;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 1.25rem;
  }

  .about-content,
  .guide-content,
  .content-with-image {
    flex-direction: column;
    gap: 30px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .content-with-image.reverse {
    flex-direction: column;
  }

  .about-image,
  .guide-image,
  .image-content {
    min-width: 100%;
  }

  .reviews-grid,
  .tutorials-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .mission-points,
  .team-grid,
  .values-list {
    grid-template-columns: 1fr;
  }

  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner-buttons {
    width: 100%;
    justify-content: space-between;
  }

  .btn-cookie {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 40px 0;
  }

  .hero {
    padding: 40px 0;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-content h2 {
    font-size: 1.1rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }

  .cookie-banner-buttons {
    flex-direction: column;
  }

  .btn-cookie {
    width: 100%;
  }
}
