/* OpenKnowledge - Custom Styles */

/* Import Tenor Sans font */
@import url('https://fonts.googleapis.com/css2?family=Tenor+Sans:wght@400&display=swap');

/* CSS Variables */
:root {
  --primary-color: #603d5a;
  --secondary-color: #91368c;
  --bg-main: #fffaf1;
  --bg-card: #f2e3f1;
  --text-dark: #131313;
  --text-muted: #6c757d;
  --border-radius: 15px;
  --shadow: 0 4px 20px rgba(96, 61, 90, 0.1);
}

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

body {
  font-family: "Tenor Sans", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Header Styles */
.navbar {
  background-color: var(--primary-color) !important;
  padding: 1rem 0;
  box-shadow: var(--shadow);
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 400;
  color: white !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: white !important;
  font-size: 1.1rem;
  margin: 0 0.5rem;
  transition: opacity 0.3s ease;
}

.navbar-nav .nav-link:hover {
  opacity: 0.8;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('./img/hero-bg.webp') center/cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-text {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* Page Header for secondary pages */
.page-header {
  background-color: hsl(25, 100%, 94%);
  padding: 160px 0 100px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section:nth-child(even) {
  background-color: var(--bg-card);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
  font-weight: 400;
}

.section-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

/* Card Styles */
.custom-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: none;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(96, 61, 90, 0.15);
}

.custom-card img {
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.custom-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.custom-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Button Styles */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

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

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

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

/* Course Card Styles */
.course-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border: none;
  transition: transform 0.3s ease;
  min-height: 360px;
}

.course-card:hover {
  transform: translateY(-3px);
}

.course-duration {
  background-color: var(--bg-card);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.course-features {
  list-style: none;
  padding: 0;
}

.course-features li {
  padding: 0.25rem 0;
  color: var(--text-muted);
}

.course-features li:before {
  content: "✓";
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* Review Card Styles */
.review-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: none;
  text-align: center;
}

.review-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.review-author {
  color: var(--primary-color);
  font-weight: 600;
}

/* Steps Section */
.steps-section {
  background: linear-gradient(135deg, var(--bg-card), white);
  padding: 80px 0;
}

.step-item {
  text-align: center;
  margin-bottom: 2rem;
}

.step-number {
  background: var(--primary-color);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

/* News Card */
.news-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-3px);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card-body {
  padding: 1.5rem;
  min-height: 225px;
}

.news-card h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.news-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Team Member Card */
.team-card {
  text-align: center;
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  min-height: 460px;
}

.team-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.team-card h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.team-card p {
  color: var(--text-muted);
}

/* Form Styles */
.contact-form {
  background: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.form-control {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 12px 15px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(96, 61, 90, 0.25);
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  display: block;
  font-size: 0.875rem;
  color: #dc3545;
  margin-top: 0.25rem;
}

/* Contact Info */
.contact-info {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-item i {
  color: var(--primary-color);
  margin-right: 1rem;
  font-size: 1.2rem;
  min-width: 24px;
}

.contact-item span {
  color: var(--text-dark);
  font-size: 1rem;
}

/* Map Container */
.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: white;
  padding: 50px 0 30px;
}

.footer h5 {
  color: #d9dcdf;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: #ccc;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text-dark);
  color: white;
  padding: 1rem 0;
  z-index: 1050;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.cookie-banner.d-none {
  display: none !important;
}

.cookie-banner p {
  margin-bottom: 1rem;
  color: #ccc;
}

.cookie-banner .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Thank You Page */
.thank-you-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-main), var(--bg-card));
}

.thank-you-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 500px;
  width: 100%;
}

.thank-you-card i {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.thank-you-card h1 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.thank-you-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Carousel Styles for Reviews */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev {
  left: -60px;
}

.carousel-control-next {
  right: -60px;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-text {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .custom-card {
    padding: 1.5rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 2rem;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .custom-card {
    padding: 1rem;
  }
  
  .thank-you-card {
    padding: 2rem;
    margin: 1rem;
  }
}
