/* ======================================================
   FW TRAINING - TUTORIALS PAGE (INDEPENDENT VERSION)
   ====================================================== */

/* ================= ROOT COLORS ================= */

:root{
  --navy:#010D35;
  --blue:#0075FF;
  --orange:#FE951C;
  --soft-bg:#f1f5fb;
}

/* ================= GENERAL ================= */

body{
  font-family:'Segoe UI', sans-serif;
  background:#eef3f9;
  padding-top:90px;
}

.section-padding{
  padding:100px 0;
}

.bg-soft{
  background:var(--soft-bg);
}

/* ================= NAVBAR ================= */

.custom-navbar{
  background:white;
  padding:20px 0;
  box-shadow:0 5px 20px rgba(0,0,0,0.05);
}

.nav-link{
  font-weight:500;
  color:#1e1e1e !important;
  transition:0.3s ease;
}

.nav-link:hover{
  color:var(--blue) !important;
}

.active-link{
  color:var(--blue) !important;
  font-weight:600;
}

.nav-icon{
  font-size:20px;
  color:#1e1e1e;
  transition:0.3s ease;
}

.nav-icon:hover{
  color:var(--blue);
}

.mobile-page-title{
  font-weight:600;
  font-size:18px;
  letter-spacing:1px;
}

/* ================= HERO ================= */

.tutorials-hero{
  padding:120px 0 70px;
  background:linear-gradient(135deg, var(--navy), var(--blue));
  color:white;
  text-align:center;
}

.tutorials-hero h2{
  font-weight:800;
  font-size:42px;
  margin-bottom:15px;
}

.tutorials-hero p{
  opacity:0.9;
  max-width:600px;
  margin:0 auto;
}

/* ================= TUTORIAL CARDS ================= */

.tutorial-item{
  margin-bottom:100px;
}

.tutorial-card{
  display:block;
  background:white;
  border-radius:30px;
  overflow:hidden;
  box-shadow:0 20px 50px rgba(0,0,0,0.08);
  transition:all 0.4s ease;
  text-decoration:none;
  color:inherit;
  position:relative;
}

.tutorial-card:hover{
  transform:translateY(-12px);
  box-shadow:0 30px 70px rgba(0,0,0,0.15);
}

/* IMAGE */

.tutorial-img{
  height:350px;
  overflow:hidden;
}

.tutorial-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform 0.5s ease;
}

.tutorial-card:hover img{
  transform:scale(1.08);
}

/* OVERLAY TITLE */

.tutorial-title{
  position:absolute;
  bottom:0;
  width:100%;
  padding:25px;
  background:linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color:white;
}

.tutorial-title h4{
  font-weight:700;
  font-size:24px;
  margin:0;
}

/* DESCRIPTION */

.tutorial-description{
  padding:30px 40px;
}

.tutorial-description h5{
  font-weight:700;
  color:var(--navy);
  margin-bottom:15px;
}

.tutorial-description p{
  color:#555;
  font-size:16px;
  line-height:1.6;
}

/* ================= FOOTER ================= */

.footer-section{
  background:var(--navy);
  color:white;
  padding:70px 0;
}

.footer-section a{
  color:#ddd;
  text-decoration:none;
  transition:0.3s;
}

.footer-section a:hover{
  color:white;
}

/* ================= ANIMATIONS ================= */

.reveal{
  opacity:0;
  transform:translateY(40px);
  transition:opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active{
  opacity:1;
  transform:translateY(0);
}

/* ================= ALTERNATING LAYOUT PC ================= */

@media(min-width:992px){

  .tutorial-item:nth-child(even) .col-lg-6:first-child{
    order:2;
  }

  .tutorial-item:nth-child(even) .col-lg-6:last-child{
    order:1;
  }

}

/* ================= RESPONSIVE ================= */

@media(max-width:992px){

  .section-padding{
    padding:70px 0;
  }

  .tutorials-hero h2{
    font-size:30px;
  }

  .tutorial-img{
    height:260px;
  }

  .tutorial-description{
    padding:25px 10px;
    text-align:center;
  }

}
/* ================= HERO FULL WIDTH ================= */

.tutorials-hero{
  height:100vh;
  background:
    linear-gradient(rgba(1,13,53,0.75), rgba(0,117,255,0.65)),
    url('https://images.unsplash.com/photo-1571019614242-c5c5dee9f50b?q=80&w=1920&auto=format&fit=crop');
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
}

.tutorials-hero h1{
  font-weight:800;
  font-size:52px;
}

.tutorials-hero p{
  max-width:650px;
  margin:0 auto;
  font-size:20px;
  opacity:0.95;
}
@media(max-width:768px){

  .tutorials-hero{
    height:80vh;
    background-attachment:scroll;
  }

  .tutorials-hero h1{
    font-size:32px;
  }

  .tutorials-hero p{
    font-size:16px;
  }

}
.tutorial-card{
  display:block;
  text-decoration:none;
  border-radius:25px;
  overflow:hidden;
  cursor:pointer;
  transition:0.4s ease;
}

.tutorial-img{
  position:relative;
  height:350px;
  overflow:hidden;
}

.tutorial-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:0.5s ease;
}

.tutorial-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:30px;
  color:white;
  transition:0.4s ease;
}

.tutorial-tag{
  background:var(--orange);
  padding:5px 12px;
  border-radius:20px;
  font-size:12px;
  width:fit-content;
  margin-bottom:10px;
}

.tutorial-overlay h4{
  font-weight:700;
  margin-bottom:8px;
}

.tutorial-hint{
  font-size:14px;
  opacity:0.9;
  margin-bottom:15px;
}

.tutorial-btn{
  background:var(--blue);
  padding:10px 18px;
  border-radius:30px;
  font-weight:600;
  font-size:14px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:fit-content;
  transition:0.3s ease;
}

.tutorial-card:hover img{
  transform:scale(1.08);
}

.tutorial-card:hover .tutorial-btn{
  background:var(--orange);
  transform:translateX(5px);
}