/* =====================
   GLOBAL RESET
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f6f7fb;
  color: #1f2937;
  line-height: 1.6;
  min-height: 100vh;
}

/* =====================
   CONTAINER
===================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* =====================
   TOP HEADER
===================== */
.topbar {
  background: #0f172a;
  color: white;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 5000;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.logo span {
  font-weight: 600;
}

/* DESKTOP NAV */
.desktop-nav {
  display: flex;
  gap: 15px;
}

.desktop-nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.desktop-nav a:hover {
  color: #38bdf8;
}

/* HAMBURGER */
.sidebar-toggle {
  display: none;
  font-size: 20px;
  cursor: pointer;
}

/* =====================
   SIDEBAR
===================== */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 250px;
  height: 100%;
  background: #0f172a;
  color: white;
  padding: 20px;
  transition: 0.3s ease;
  z-index: 4000;
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  text-align: center;
  margin-bottom: 20px;
}

.sidebar-header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
}

/* LINKS */
.sidebar-nav a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 12px;
  border-radius: 6px;
  margin: 5px 0;
}

.sidebar-nav a:hover {
  background: #38bdf8;
  color: #0f172a;
}

/* OVERLAY */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 3000;
}

.sidebar-overlay.active {
  display: block;
}

/* =====================
   MOBILE VIEW
===================== */
@media (max-width: 768px) {

  .desktop-nav {
    display: none;
  }

  .sidebar-toggle {
    display: block;
  }
}
/* =====================
   HERO
===================== */
.page-hero,
.hero {
  text-align: center;
  padding: 50px 0;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
}

.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 20px;
  border: 4px solid #38bdf8;
}

/* =====================
   SECTION
===================== */
.section {
  padding: 60px 0;
}

.section.dark {
  background: #e2e8f0;
}

.center {
  text-align: center;
}
.edu-switch {
  position: fixed;
  top: 80px;          /* adjust based on your header height */
  right: 20px;
  z-index: 999;
}

.edu-switch-inner {
  display: inline-flex;
  background: #e5e7eb;
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.switch-link {
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
}

.switch-link.active {
  background: #0f172a;
  color: #fff;
}

/* =====================
   GRID SYSTEM
===================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* =====================
   CARDS
===================== */
.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card h3 {
  margin-top: 10px;
  margin-bottom: 6px;
}

.card p {
  font-size: 14px;
  margin: 3px 0;
  line-height: 1.4;
}
.card p:last-of-type {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
}

/* =====================
   BUTTONS
===================== */
.btn {
  display: inline-block;
  background: #0f172a;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 10px;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #38bdf8;
  color: #0f172a;
}

.btn-outline {
  border: 2px solid #38bdf8;
  color: #38bdf8;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  background: #38bdf8;
  color: white;
}

/* =====================
   SOCIAL ICONS
===================== */
.socials a {
  color: white;
  margin: 0 5px;
  font-size: 18px;
}

/* =====================
   FOOTER
===================== */
footer {
  background: #0f172a;
  color: white;
  text-align: center;
  padding: 25px 10px;
  bottom: 0; left: 0; 
  width: 100%;
}

.developer a {
  color: #38bdf8;
  text-decoration: none;
}

/* =====================
   FORM
===================== */
/* =====================
   FORM GROUP
===================== */
.form-group {
  margin-bottom: 15px;
}

/* LABELS */
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #1f2937;
  font-size: 14px;
}

/* INPUT + TEXTAREA + SELECT */
input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
  background: #f9fafb;
}

/* FOCUS EFFECT */
input:focus,
textarea:focus,
select:focus {
  border-color: #38bdf8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* =====================
   TEXTAREA
===================== */
textarea {
  resize: vertical;
  min-height: 120px;
}

/* =====================
   CERTIFICATES
===================== */
.certificate-img {
  width: 100%;
  height: 220px;        /* fixed height */
  object-fit: cover;    /* crops nicely */
  border-radius: 10px;
}

.certificate-img:hover {
  transform: scale(1.03);
}
.cert-hint {
  margin-top: auto; /* pushes it to bottom */
  font-size: 12px;
  color: #64748b;
}
/* =====================
   LIGHTBOX
===================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: white;
  cursor: pointer;
}

/* =====================
   VIDEO CARDS
===================== */
#videoGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 20px;
}

.video-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-card iframe {
  width: 100%;
  height: 180px;
  border: none;
}

.video-card h3 {
  font-size: 14px;
  padding: 10px;
}
/* =====================
   VIDEO preveiw
===================== */
#videoPreview.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.thumb-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  font-size: 18px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.link {
  display: inline-block;
  margin-top: 20px;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
}

.link:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .thumb-wrapper {
    height: 200px;
  }

  .section h2 {
    font-size: 20px;
  }
}

/* BLOG CARD IMAGE */
.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* BLOG CARD STYLE */
.blog-card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-date {
  font-size: 12px;
  color: gray;
  margin-bottom: 8px;
}