/* =============================
   GLOBAL RESET
============================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f2f2f2;
  color: #111;
  overflow-x: hidden;
}

/* =============================
   HEADER & NAVIGATION
============================= */
.header {
  background: linear-gradient(90deg, #000, #333);
  color: white;
  padding: 15px 20px;
  border-bottom: 3px solid #c40000;
}

.nav-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 55px;
  height: auto;
}

.logo-section h2 {
  color: #c40000;
  font-size: 22px;
}

.logo-section p {
  font-size: 13px;
  color: #ccc;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links button {
  background: #222;
  color: white;
  border: 1px solid #555;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.nav-links button:hover {
  background: #c40000;
  border-color: #c40000;
}

.nav-links button.active {
  background: #c40000;
  color: white;
  border-color: #c40000;
}

/* =============================
   HERO SECTION
============================= */
.hero {
  background: linear-gradient(135deg, #000, #444);
  color: white;
  padding: 60px 20px;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.hero-text {
  flex: 1 1 100%;
  text-align: center;
}

.hero-text h1 {
  font-size: 34px;
  margin-bottom: 15px;
}

.hero-text span {
  color: #c40000;
}

.hero-text p {
  color: #ddd;
}

.hero-image-wrap {
  flex: 1 1 100%;
  text-align: center;
}

.hero-image {
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* =============================
   SECTIONS
============================= */
section {
  padding: 60px 20px;
}

h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #111;
}

h3 {
  margin-bottom: 10px;
  color: #c40000;
}

/* =============================
   CARDS & GRIDS
============================= */
.features,
.course-grid,
.partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.card,
.course-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  flex: 1 1 100%;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-top: 4px solid #c40000;
}

/* =============================
   PARTNERS
============================= */
.partner-list img {
  width: 100%;
  max-width: 160px;
  margin: auto;
  display: block;
  filter: grayscale(100%);
  transition: 0.3s;
}

.partner-list img:hover {
  filter: grayscale(0%);
}

/* =============================
   CONTACT & FORMS
============================= */
#contact {
  background: #e6e6e6;
}

#contact p {
  text-align: center;
  margin-bottom: 8px;
}

.contact-form {
  max-width: 500px;
  margin: 30px auto 0;
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #aaa;
  font-size: 14px;
}

.contact-form textarea {
  min-height: 120px;
}

.contact-form button {
  background: #c40000;
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #900000;
}

/* =============================
   AI CHAT
============================= */
#ai-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #c40000;
  color: white;
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  z-index: 999;
}

#ai-box {
  position: fixed;
  bottom: 90px;
  right: 15px;
  width: 90%;
  max-width: 360px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
  overflow: hidden;
  z-index: 999;
}

.ai-header {
  background: #000;
  color: white;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#ai-messages {
  max-height: 260px;
  overflow-y: auto;
  padding: 10px;
  background: #f5f5f5;
}

.bot {
  background: #ddd;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 6px;
}

.user {
  background: #c40000;
  color: white;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 6px;
  text-align: right;
}

.ai-input {
  display: flex;
  border-top: 1px solid #ccc;
}

.ai-input input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
}

.ai-input button {
  background: #c40000;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
}

.hidden {
  display: none;
}

/* =============================
   RESPONSIVE (DESKTOP)
============================= */
@media (min-width: 768px) {

  .hero-text,
  .hero-image-wrap {
    flex: 1 1 45%;
    text-align: left;
  }

  .card,
  .course-card {
    flex: 1 1 30%;
  }

  .nav-links {
    justify-content: flex-end;
  }
}
