/* ✅ FIXED BODY (removed duplicate) */
body {
  margin: 0;
  font-family: Arial;
  background: #fff;
  color: #111;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #eccbcb;
  color: rgb(234, 226, 226);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar nav {
  display: flex;
  gap: 20px;
}

.navbar a {
  color: rgb(123, 60, 60);
  text-decoration: none;
}

.dashboard-btn {
  background: red;
  padding: 6px 12px;
  border-radius: 5px;
}

/* ✅ FIXED LOGO */
.logo {
  display: flex;
  align-items: center; /* fixed */
  gap: 10px;
}

.logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

/* MOBILE LOGO */
@media (max-width: 768px) {
  .logo img {
    height: 30px;
  }
}

/* TOGGLE */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* ✅ FIXED MOBILE NAVBAR */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .navbar nav {
    position: absolute;
    top: 60px;
    right: 0;
    background: black;
    flex-direction: column;
    width: 200px;
    padding: 20px;

    /* 🔥 FIX: use transform instead of display */
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;

    transition: 0.3s ease;
    z-index: 999;
  }

  .navbar nav a {
    margin: 10px 0;
  }

  .navbar nav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
}

/* HERO */
.hero {
  height: 90vh;
  background: linear-gradient(to right, #000, #c00000);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: 3rem;
  text-align: center;
}

/* Logo Animation */
.image-box img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;

  animation: swing 2s ease-in-out infinite;
}

/* 🔄 Left to Right Rotation */
@keyframes swing {
  0%   { transform: rotate(-10deg); }  /* left */
  50%  { transform: rotate(10deg); }   /* right */
  100% { transform: rotate(-10deg); }  /* back left */
}






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

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

/* BUTTON */
.btn {
  background: red;
  padding: 10px 20px;
  color: white;
  margin: 10px;
  text-decoration: none;
}

.btn:hover{
  background: rgb(243, 111, 111);
}

.btn.outline {
  border: 1px solid white;
  background: transparent;
}

.btn.outline:hover{
  background: rgb(193, 122, 122);
}

/* COURSES */
.courses {
  padding: 50px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* ✅ FIXED CARD (single definition) */
.card {
  background: #f4f4f4;
  padding: 20px;
  margin: 10px;
  width: 300px;
}

.card:hover {
  background-color: #f93a3a;
}

@media (max-width: 768px){
  .card {
    width: 90%;
  }
}

/* SUMMER */
.summer {
  background: red;
  color: white;
  text-align: center;
  padding: 40px;
}

.badge {
  background: black;
  padding: 5px 10px;
}

/* FORM */
.form-section {
  padding: 50px;
  text-align: center;
}

form input, select {
  display: block;
  margin: 10px auto;
  padding: 10px;
  width: 90%;
  max-width: 400px;
}

/* BUTTON */
button {
  background: black;
  color: white;
  padding: 10px 20px;
}

/* CONTACT */
.contact iframe {
  width: 100%;
  height: 300px;
}

/* WHATSAPP */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: green;
  padding: 15px;
  color: white;
  border-radius: 50%;
}

/* DASHBOARD */
.dashboard {
  padding: 40px;
  text-align: center;
}

.dash-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.dash-cards .card {
  background: #111;
  color: white;
  border-radius: 10px;
}

/* INSTAGRAM */
.instagram {
  padding: 50px;
  text-align: center;
}

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

.insta-grid img {
  width: 100%;
  border-radius: 10px;
  transition: 0.3s;
}

.insta-grid img:hover {
  transform: scale(1.05);
}

/* LOGIN */
.login-box {
  width: 300px;
  margin: 100px auto;
  padding: 30px;
  background: #111;
  color: white;
  text-align: center;
  border-radius: 10px;
}

.login-box input {
  width: 90%;
  margin: 10px 0;
  padding: 10px;
}

.login-box button {
  background: red;
  color: white;
  padding: 10px;
  border: none;
  width: 100%;
}

/* GLOBAL */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

/* SECTION SPACING */
section {
  padding: 40px 20px;
}