* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f2f2f2;
}

/* HEADER */
.top-header {
  background: #111b24;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-weight: bold;
  font-size: 18px;
}

/* NAV DESKTOP */
.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

/* LANGUAGE */
.language {
  padding: 6px;
  border-radius: 4px;
  border: none;
}

.mobile-lang {
  display: none;
}

/* HAMBURGER */
.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {

  .hamburger {
    display: block;
  }

  .desktop-lang {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #111b24;
    flex-direction: column;
    display: none; /* IMPORTANT */
    z-index: 999;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .mobile-lang {
    display: block;
    margin: 15px;
  }
}

/* DASHBOARD */
.dashboard {
  display: flex;
}

/* SIDEBAR */
.sidebar {
  width: 240px;
  background: none;
  padding: 15px;
 /*  min-height: calc(100vh - 70px); full height under header */
  position: relative; /* NOT fixed */
}
.sidebar i {
  margin-right: 2px;
}
.member {
  color:#4CAF50;
  font-size: 16px;
  margin-bottom: 15px;
  letter-spacing: 2px;
}
.sidebar a {
  display: block;
  background: #444;
  color: #fff;
  padding: 12px;
  border-radius: 25px;
  margin-bottom: 12px;
  text-decoration: none;
  height: 50px;
  text-transform: capitalize;
  font-size: 14px;
}
.sidebar a:hover {
  background:#4CAF50;
  color: #fff;
}
/* CONTENT */
.content {
  flex: 1;
  padding: 20px;
}
.welcome {
  margin-bottom: 20px;
  color: #333;
}
/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  position: relative;
  background:#4CAF50; /* orange */
  color: #fff;
  padding: 25px;
  border-radius: 5px;
  overflow: hidden;
  min-height: 130px;
}

.stat-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45%;
  background: #2f2f2f; /* black/ash */
  clip-path: polygon(0 60%, 100% 20%, 100% 100%, 0% 100%);
}


.stat-card p {
  font-size: 26px;
  font-weight: bold;
  margin-top: 10px;
}

/* REFERRAL */
.referral {
  background: #333;
  color: #fff;
  padding: 15px;
  margin: 25px 0;
}

/* DETAILS */
.details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.box {
  background:#4CAF50;
  color: #fff;
}

.box.dark {
  background: #2f2f2f;
}

.box h4 {
  background: #222;
  padding: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}
.site-footer {
  background: #1f2b38;
  color: #cfd8dc;
  padding: 60px 20px 0;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-logo {
  color: #fff;
  margin-bottom: 15px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 15px;
  position: relative;
}

.footer-col h4::after {
  content: "";
  width: 40px;
  height: 2px;
  background:#4CAF50;
  display: block;
  margin-top: 8px;
}

.footer-col p {
  line-height: 1.7;
  font-size: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #cfd8dc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color:#4CAF50;
}

/* CERTIFICATE */
.certificate-box {
  background: #fff;
  padding: 10px;
  border-radius: 6px;
}

.certificate-box img {
  width: 100%;
  display: block;
}

/* CONTACT LINKS */
.footer-col a {
  color:#4CAF50;
  text-decoration: none;
}

/* FOOTER BOTTOM */
.footer-bottom {
  margin-top: 50px;
  padding: 20px;
  text-align: center;
  background: #18222d;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
  
  }

  .footer-col h4::after {
    margin: 8px  0;
    text-align: start;
  }
}


/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

.dashboard {
    flex-direction: column;
  }

   .sidebar {
    width: 100%;
    display: block;
    gap: 12px;
    overflow-x: auto;
    padding: 12px;
    scrollbar-width: none;
  }

  .sidebar::-webkit-scrollbar {
    display: none;
  }

  .sidebar a {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
  }
}
.dashboard-header {
  position: relative;
  width: 100%;
  height: 400px; /* Default height */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10%;
  background-image: url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&q=80&w=1000');
  background-size: cover;
  background-position: center;
  color: white;
  overflow: hidden;
}

/* The dark tint overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Adjust transparency here */
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2;
}

.header-content h1 {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.breadcrumbs {
  font-size: 1.1rem;
  font-weight: 600;
}

.home-link {
  color: #ff4d4d; 
  cursor: pointer;
  transition: opacity 0.3s;
}

.home-link:hover {
  opacity: 0.8;
}

.separator {
  margin: 0 10px;
  color: #ccc;
}

.current-page {
  color: #fff;
}

/* Responsiveness */

/* Tablets */
@media (max-width: 768px) {
  .dashboard-header {
    height: 250px;
    padding: 0 5%;
  }
  .header-content h1 {
    font-size: 3rem;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  .dashboard-header {
    height: 300px;
    justify-content: center; /* Center text on small screens */
    text-align: center;
  }
  .header-content h1 {
    font-size: 2.5rem;
  }
  .breadcrumbs {
    font-size: 0.9rem;
  }
}