* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  padding: 0;
  margin: 0;
}

header {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.actions button, .nav_second button{
  width: 45%;
  height: 45px;
  background: #f3f3f3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.first{
  display: flex;
  padding: 0;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav_first{
  display: flex;
  gap: 15px;
}

.nav_first a{
  display: block;
  padding: 5px;
  cursor: pointer;
  border-radius: 6px;
  color: black;
  text-decoration: none;
}

.nav_first a:hover, .nav_second a:hover, .actions a:hover {
  background: #eaeaea;
}

.nav_second{
  display: flex;
  gap: 15px;
}

.nav_second a, .actions a{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  color: black;
  text-decoration: none;
  width: 65px;
  height: 40px;
  background: #00d8c8;
}

.actions a{
  width: 45%;
  height: 45px;
}

.logo {
  font-weight: 700;
  font-size: 18px;
}

.start-btn {
  background: #f3f3f3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

/* Drawer hidden by default */
.drawer {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  padding: 16px;
  display: none;
  z-index: 1000;
}

/* Drawer visible */
.drawer.active {
  display: block;
}

.drawer-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.drawer-card h3 {
  margin: 0 0 6px;
}

.drawer-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
}

.drawer-btn {
  display: block;
  text-align: center;
  padding: 12px;
  margin-bottom: 10px;
  background: #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: #000;
  font-weight: 600;
}

.arrow{
  font-size: 20px; 
  line-height: 1;
  display: inline-block;
}

.layout{
  display: flex;
  flex-direction: column;
}

#rightDrawer{
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100%;
  background: #f8f8f8;
  padding: 15px;
  transition: 0.3s;
  z-index: 1100;
}

#rightDrawer a {
  display: block;
  margin-bottom: 5px;
  padding: 10px;
  cursor: pointer;
  border-radius: 6px;
  color: black;
  text-decoration: none;
  margin-top: 10px;
  margin-bottom: 4px;
}

#hivered{
  background: #eaeaea;
}

#rightDrawer a:hover {
  background: #eaeaea;
}

#rightBtn{
  display: none;
}

#rightDrawer div{
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

@media (max-width: 768px){
  #rightBtn{
    display: block;
  }
  
  .nav_first{
    display: none;
  }
  
  .nav_second{
    display: none;
  }
}

.cover{
  position: relative;
  margin-top: 7px;
  display: flex;
  max-height: 100vh;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 20px;
  max-height: 100vh;
  overflow: none;
}

.cover::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../assets/1.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.5;
  max-width: 100%;
  z-index: -2;
  border-radius: 6px;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: -1;
}

.badge{
  display: inline-block;
  background: rgba(0, 0, 0, 0.1);
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 20px;
}
#typing {
  color: #00c853;
  border-right: 3px solid;
  padding-right: 5px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

.hero-content p{
  margin-top: 40px;
  font-size: 17px;
  word-spacing: word-break;
  color: #858585;
  margin-bottom: 18px;
}

.hero-content{
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#exploreTutorials, .startNow{
  color: white;
  background: black;
  height: 45px;
  width: 180px;
  border-radius: 10px;
  border: none;
  font-weight: bold;
  outline: none;
  margin-top: 20px;
  margin-bottom: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

#readArticles{
  background: white;
  border: none;
  height: 40px;
  width: 150px;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.population{
  width: 320px;
  height: 110px;
  background: #c3c1c1;
  margin-top: 55px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.population div{
  width: 60px;
  height: 80%;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
}

.population span{
  font-size: 15px;
}

.main_second{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 40px;
  padding-right: 25px;
  padding-left: 25px;
}

::-webkit-scrollbar{
  width: 7px;
}

::-webkit-scrollbar-thumb{
  background: #b56464;
  border-radius: 6px;
}

.main_second p{
  margin-top: 40px;
  font-size: 17px;
  word-spacing: word-break;
  color: #858585;
  margin-bottom: 18px;
}

@media (min-width: 1024px){
  .main_second{
    padding: 80px;
  }
  
  .cover{
    padding: 80px;
  }
}

.courses{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card{
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  cursor: pointer;
}

.card:hover{
  box-shadow: 1px 8px 20px rgba(0,0,0,0.08);
}

.card img{
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3{
  margin: 15px;
}

.card p{
  margin: 0 15px 20px;
  color: #555;
}

.companies{
  background: #f3f3f3;
  padding: 60px 20px;
  text-align: center;
  justify-content: center;
}

.logo-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 4px auto;
}

.logo-card{
  background: #fff;
  border-radius: 14px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.logo-card img{
  max-width: 80%;
  max-height: 40px;
  object-fit: contain;
}

.main_third{
  background: linear-gradient(90deg, #f3f3f3f3, #fff);
  padding: 60px 20px;
  text-align: center;
  justify-content: center;
}

.third_grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.third_card{
  background: grey;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.icon_circles{
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.01);
}

.third_card h3{
  font-size: 20px;
}

.third_card p{
  font-size: 12px;
  color: #c8c8c8;
}

.main_last{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  width: 100%;
  margin: 4px auto;
  padding: 40px;
}

.main_last div{
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.main_last a{
  color: grey;
  text-decoration: none;
}

.footer{
  justify-content: center;
  align-items: center;
  height: 80px;
  width: 100%;
  display: flex;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
}

/* Modal */
.account-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  width: 90%;
  max-width: 380px;
  border-radius: 12px;
  padding: 16px;
  display: none;
  animation: popup 0.3s ease;
}

@keyframes popup {
  from {opacity: 0; transform: translate(-50%, -60%) scale(0.8);}
  to {opacity: 1; transform: translate(-50%, -50%) scale(1);}
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close {
  font-size: 22px;
  cursor: pointer;
}

.sub {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  width: 100%;
}

.tabs button {
  flex: 1;
  background: #f1f5f9;
  color: black;
  height: 45px;
  width: 45%;
  border-radius: 10px;
  border: none;
  outline: none;
}

.tabs .active {
  background: #e0e7ff;
}

.content h3 {
  margin-bottom: 10px;
}

.email-box {
  background: #f1f5f9;
  padding: 10px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  background: #e5e7eb;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
}

.footer1 {
  text-align: center;
  margin-top: 16px;
  color: #777;
  font-size: 13px;
}