/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  line-height: 1.6;
  direction: rtl;
  color: #222;
}

/* Header */
header {
  background-color: #004466;
  color: white;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}



/* Navigation */
nav {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  background-color: #006688;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: #0088aa;
}

/* Auth Section */
.auth {
  text-align: center;
}

.auth p {
  margin-bottom: 0.3rem;
}

.auth a {
  color: white;
  text-decoration: underline;
  margin: 0 0.5rem;
}

/* Welcome Message */
.welcome {
  text-align: center;
  font-size: 1rem;
}

/* Main content */
main {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

/* Left content (video + buttons) */
.content-left {
  width: 60%;
  flex-grow: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Boxes inside left content */
.video, .idea-btns {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Buttons */
.idea-btns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.idea-btns a {
  padding: 0.8rem 1.5rem;
  background-color: #004466;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
}

.idea-btns a:hover {
  background-color: #006688;
}

/* Ads section */
.ads {
  width: 40%;
  flex-grow: 0;
  flex-shrink: 0;
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: fit-content;
}

/* Footer */
footer {
  background: #222;
  color: #eee;
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
}

/* Responsive - الهواتف */
@media (max-width: 767px) {
  main {
    flex-direction: column;
    padding: 1rem;
  }
  .content-left, .ads {
    width: 100% !important;
    margin: 0 !important;
  }
  .ads {
    margin-top: 1rem;
  }
}

