/* ====== GLOBAL ====== */
html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
}

/* ====== NAVIGATION ====== */
nav {
  background-color: #333;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.login-button {
  background-color: #ff6600;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
}

/* ====== MAIN CONTENT ====== */
main {
  flex: 1;
  padding: 40px 20px;
  background-color: white;
  max-width: 100%;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}



/* ====== COURSE CARDS ====== */
.course-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.course-card {
  color: white;
  width: 300px;            /* Fixed width */
  height: 120px;           /* Fixed height (adjust as needed) */
  padding: 20px;           /* Reduced padding to fit inside height */
  border-radius: 30px;
  text-align: center;
  font-size: 18px;
  line-height: 1.4;
  font-weight: bold;
  text-decoration: none;

  display: flex;           /* Enables vertical & horizontal centering */
  flex-direction: column;
  justify-content: center; /* Centers text vertically */
  align-items: center;     /* Centers text horizontally */

  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Card 1 */
.course-card:nth-child(1) {
  background: linear-gradient(135deg, #134e5e, #71b280);
}

/* Card 2 */
.course-card:nth-child(2) {
  background: linear-gradient(135deg, #005c97, #363795);
}

/* Card 3 */
.course-card:nth-child(3) {
  background: linear-gradient(135deg, #da4453, #89216b);
}

/* Card 3 */
.course-card:nth-child(4) {
  background: linear-gradient(135deg, #d14cae, #89216b);
}

/* CARD 5 – Aqua Blue → Neon Green */
.course-card:nth-child(5) {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
}

/* CARD 6 – Orange Sunset → Deep Red */
.course-card:nth-child(6) {
  background: linear-gradient(135deg, #f7971e, #ffd200);
}

/* CARD 7 – Emerald Green → Ocean Blue */
.course-card:nth-child(7) {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}

/* CARD 8 – Pink Rose → Violet Glow */
.course-card:nth-child(8) {
  background: linear-gradient(135deg, #ff758c, #ff7eb3);
}


.share {
  /* position: fixed; */
  bottom: 20px;
  left: 20px;
  text-align: left;
  background-color: transparent;
  z-index: 1000;
}

.share-icons a {
  margin-right: 10px;
  text-decoration: none;
  font-size: 24px;
}

/* ====== FOOTER ====== */
footer {
  background-color: #222;
  color: white;
  padding: 16px 20px;      /* increased padding so text is visible */
  font-size: 14px;
  position: relative;
  z-index: 1;
}

/* 
footer {
  background-color: #222;
  color: white;
  padding: 10px 20px;
} */

/* three-column footer using CSS grid to ensure center text stays centered */
.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* left | center | right (right intentionally empty) */
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-icons img {
  margin-right: 12px;
  vertical-align: middle;
}

/* Align left side (icons) */
.footer-left {
  text-align: left;
  margin-left: -125px;
}

/* Align center text */
.footer-center {
  text-align: center;
  font-size: 14px;
}

/* Right side stays empty but keeps center aligned */
.footer-right {
  text-align: right;
}

.footer-left a,
.footer-right a {
  display: inline-block;
  margin-right: 12px;
}
.footer-left img,
.footer-right img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  display: inline-block;
}

/* ====== MOBILE: hide footer-left icons and show floating vertical icons ====== */
@media (max-width: 650px) {
  .footer-content {
    grid-template-columns: 1fr;   /* stack into one column */
    text-align: center;
  }
  .footer-left { display: none; } /* hide the inline icons in footer on mobile */
  .footer-right { display: none; }

  .footer-center {
    font-size: 15px;
    padding: 8px 0;
  }

  /* make sure footer text remains visible on very small widths */
  footer { padding: 18px 12px; }
}

/* ====== Floating vertical icons (mobile only) ====== */
.floating-icons {
  display: none;                 /* hidden by default, shown on small screens */
}

.floating-icons a {
  display: block;
  width: 40px;
  height: 40px;
  margin: 8px 0;
  border-radius: 50%;
  background: #ffffff;           /* light circle behind icon for contrast */
  text-align: center;
  line-height: 40px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  transition: transform .12s ease;
  overflow: hidden;
}

.floating-icons a img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* hover effect */
.floating-icons a:hover { transform: translateX(6px); }

/* position the floating icons on the left center of the viewport on small screens */
@media (max-width: 650px) {
  .floating-icons {
    display: block;
    position: fixed;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    /* keep it narrow so it doesn't overlap content */
    width: 44px;
    pointer-events: auto;
  }
}