* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f8fafc;
  color: #1e293b;
}

/* NAVBAR */
.navbar {
  background: #0f172a;
  padding: 15px 0;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: white;
}

.logo span {
  color: #38bdf8;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #cbd5e1;
  font-weight: 500;
}

.nav-links a:hover {
  color: #38bdf8;
}

.search-box {
  display: flex;
}

.search-box input {
  padding: 7px 10px;
  border: none;
  outline: none;
  border-radius: 5px 0 0 5px;
}

.search-box button {
  padding: 7px 10px;
  border: none;
  background: #38bdf8;
  color: #0f172a;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: white;
  padding: 100px 20px;
}

.hero-content {
  max-width: 700px;
  margin: auto;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.btn-primary {
  background: white;
  color: #2563eb;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* FEATURES */
.features {
  padding: 80px 20px;
}

.features-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  padding: 35px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.feature-card i {
  font-size: 38px;
  color: #2563eb;
  margin-bottom: 15px;
}

.feature-card h3 {
  margin-bottom: 10px;
}
/* FOOTER */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 70px 20px 20px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  margin-bottom: 15px;
  color: white;
  font-size: 16px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-logo {
  font-size: 22px;
  color: white;
  margin-bottom: 10px;
}

.footer-logo span {
  color: #38bdf8;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-col ul li a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: #38bdf8;
}

.footer-col i {
  margin-right: 8px;
  color: #38bdf8;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 40px;
  padding-top: 15px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}
/* PAGE HEADER */
.page-header {
  padding: 70px 20px;
  text-align: center;
  background: #f1f5f9;
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.page-header p {
  color: #64748b;
}

/* COURSES */
.courses-section {
  padding: 80px 20px;
}

.courses-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.course-card-pro {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease; 
  cursor: pointer;
}
.course-card-pro:hover {
  transform: translateY(-10px); /* Lifts the card up */
  box-shadow: 0 15px 30px rgba(0,0,0,0.1); /* Adds a deeper shadow */
}
.course-icon {
  width: 50px;
  height: 50px;
  background: #e0f2fe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.course-icon i {
  color: #2563eb;
  font-size: 22px;
}

.course-card-pro h3 {
  margin-bottom: 10px;
}

.course-card-pro p {
  font-size: 14px;
  color: #475569;
  flex-grow: 1;
}

.course-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-outline {
  flex: 1;
  text-align: center;
  padding: 10px;
  border: 1px solid #2563eb;
  color: #2563eb;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}

.btn-solid {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: #2563eb;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}

/* TUTORIALS */
.tutorials-section {
  padding: 80px 20px;
}

.tutorials-container {
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tutorial-row {
  background: white;
  padding: 20px 25px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.tutorial-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.tutorial-info i {
  font-size: 26px;
  color: #dc2626;
}

.tutorial-info span {
  font-size: 13px;
  color: #64748b;
}
/* Tutorials Section */
.tutorials-section {
    padding: 70px 20px;
    background: #f4f6fb;
}

.tutorials-container {
    max-width: 950px;
    margin: auto;
}

/* Card Style */
.tutorial-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.tutorial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

/* Left Side */
.tutorial-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pdf-icon {
    font-size: 26px;
    color: #e63946;
    background: #ffe6e9;
    padding: 14px;
    border-radius: 12px;
}

.tutorial-details h3 {
    margin: 0;
    font-size: 18px;
    color: #1d3557;
}

.tutorial-details p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #6c757d;
}

/* Download Button */
.download-btn {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.download-btn i {
    margin-right: 6px;
}

.download-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.page-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.about-section h1 {
  margin-bottom: 15px;
}

.about-section p {
  line-height: 1.6;
  margin-bottom: 10px;
}

.about-section ul {
  margin-left: 20px;
}
.about-wrapper {
  background: #f4f6fb;
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.about-card {
  background: #fff;
  max-width: 850px;
  width: 100%;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

.about-card h1 {
  text-align: center;
  margin-bottom: 15px;
}

.intro {
  text-align: center;
  color: #555;
  margin-bottom: 30px;
}

.about-block {
  margin-bottom: 25px;
}

.about-block h3 {
  color: #0d6efd;
  margin-bottom: 10px;
}

.about-block p {
  line-height: 1.6;
  color: #444;
}

.about-block ul {
  margin-left: 20px;
}

.about-block li {
  margin-bottom: 6px;
}
.about-hero {
  background: linear-gradient(to right,#0d1b2a,#1b263b);
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.about-wrapper {
  background: #f4f6fb;
  padding: 50px 20px;
}

.about-card {
  max-width: 900px;
  margin: auto;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0,0,0,.1);
}

.intro {
  text-align: center;
  margin-bottom: 40px;
  color: #555;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.about-item {
  text-align: center;
}

.about-item i {
  font-size: 35px;
  color: #0d6efd;
  margin-bottom: 10px;
}

.about-block ul {
  margin-left: 20px;
}

.stats {
  margin-top: 40px;
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stats h2 {
  color: #0d6efd;
}
/* Center nav links on index.php */
.nav-container.center-links {
    justify-content: center; /* centers everything inside */
}

.nav-container.center-links .logo {
    margin-right: 30px; /* optional spacing between logo and links */
}

.nav-container.center-links .nav-links {
    gap: 40px; /* more spacing if needed for centered links */
}

/* Hide search box by default on other pages (optional safety) */
.nav-container:not(.center-links) .search-box {
    display: flex; /* only shows on courses.php */
}
/* Container for the user section */
.user-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* User name and icon styling */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff; /* White text for contrast */
    font-weight: 500;
    font-size: 0.95rem;
}

.user-info i {
    font-size: 1.2rem;
    color: #4f46e5; /* Matching your login theme purple/blue */
}

/* USER PROFILE IN NAVBAR */
.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1e293b; /* dark background */
    padding: 6px 12px;
    border-radius: 25px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    cursor: default;
    transition: background 0.3s;
}

.user-info i {
    font-size: 20px;
    color: #38bdf8;
}

.user-info:hover {
    background: #334155; /* subtle hover effect */
}

.nav-divider {
    width: 1px;
    height: 25px;
    background: #64748b;
}

.logout-btn, .login-btn {
    background: #38bdf8;
    color: #0f172a;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
}

.logout-btn:hover, .login-btn:hover {
    background: #22c55e;
    color: #fff;
}

.user-profile .login-btn {
    padding: 6px 16px;
}
/* NAVBAR USER PROFILE */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1e293b; /* dark pill */
    color: #fff;
    padding: 6px 12px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.user-info i {
    color: #38bdf8;
}

.user-info:hover {
    background: #334155;
}

.logout-btn, .login-btn {
    background: #38bdf8;
    color: #0f172a;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
}

.logout-btn:hover, .login-btn:hover {
    background: #22c55e;
    color: #fff;
}

/* ===== USER PROFILE (NAME + LOGOUT) ===== */

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* User name badge */
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 30px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
}

.user-info i {
  font-size: 18px;
  color: #38bdf8;
}

.user-info span {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Logout button */
.logout-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 6px 16px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(220,38,38,0.3);
}

.logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(220,38,38,0.45);
}

/* Login button (when logged out) */
.login-btn {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: white;
  padding: 6px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(37,99,235,0.3);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(37,99,235,0.45);
}
/* ===== USER PROFILE SECTION ===== */

.user-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Username Badge */
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e293b; /* solid dark pill */
  padding: 7px 16px;
  border-radius: 30px;
  border: 1px solid #334155;
}

.user-info i {
  font-size: 18px;
  color: #38bdf8;
}

.user-info span {
  color: #f1f5f9;  /* brighter text */
  font-size: 14px;
  font-weight: 600; /* stronger weight */
  letter-spacing: 0.4px;
}

/* Professional Logout Button */
.logout-btn {
  background: transparent;
  color: #e2e8f0;
  padding: 7px 16px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid #475569;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* Login button (if logged out) */
.login-btn {
  background: #38bdf8;
  color: #0f172a;
  padding: 7px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: #0ea5e9;
  color: #fff;
}
/* ===== FINAL NAVBAR USER STYLE (OVERRIDES EVERYTHING ABOVE) ===== */

.navbar .user-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.navbar .user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e293b;
  padding: 7px 16px;
  border-radius: 30px;
  border: 1px solid #334155;
}

.navbar .user-info i {
  font-size: 18px;
  color: #38bdf8;
}

.navbar .user-info span {
  color: #ffffff;  /* BRIGHT USERNAME */
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.navbar .logout-btn {
  background: transparent;
  color: #e2e8f0;
  padding: 7px 16px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid #475569;
  transition: all 0.3s ease;
}

.navbar .logout-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}
/* ===== COURSE SEARCH BAR ===== */
.course-search-section {
  background: #f8fafc;
  padding: 30px 0;
  text-align: center;
}

.course-search-form {
  display: inline-flex;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-radius: 50px;
  overflow: hidden;
}

.course-search-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  outline: none;
  font-size: 14px;
}

.course-search-form button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0 22px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}

.course-search-form button:hover {
  background: #1d4ed8;
}
/* ===== HERO HEADER ===== */
.page-hero {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: white;
  text-align: center;
  padding: 70px 20px 60px;
}

.page-hero h1 {
  font-size: 36px;
  margin-bottom: 12px;
  font-weight: 700;
}

.page-hero p {
  font-size: 16px;
  opacity: 0.9;
}

/* ===== COURSES GRID ===== */
.courses-container {
  width: 90%;
  max-width: 1200px;
  margin: 50px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* ===== COURSE CARD PRO DESIGN ===== */
.course-card-pro {
  background: white;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.course-card-pro:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

.course-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.course-icon {
  background: #2563eb;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.course-tag {
  font-size: 12px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.course-card-pro h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #0f172a;
}

.course-card-pro p {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 18px;
}

/* ===== BUTTONS ===== */
.course-actions {
  display: flex;
  gap: 10px;
}

.btn-outline, .btn-solid {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn-outline {
  border: 1px solid #2563eb;
  color: #2563eb;
}

.btn-outline:hover {
  background: #2563eb;
  color: white;
}

.btn-solid {
  background: #2563eb;
  color: white;
}

.btn-solid:hover {
  background: #1e40af;
}
/* ===== SEARCH BAR ABOVE COURSES ===== */
.course-search-wrapper {
  width: 90%;
  max-width: 600px;
  margin: 40px auto 10px;
  text-align: center;
}

.course-search-form {
  display: flex;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  background: white;
}

.course-search-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  outline: none;
  font-size: 14px;
}

.course-search-form button {
  width: 60px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.course-search-form button:hover {
  transform: scale(1.05);
}
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;

    color: #0d6efd;
    background-color: #ffffff;

    border: 1.8px solid #0d6efd;
    border-radius: 8px;

    text-decoration: none;
    cursor: pointer;

    transition: all 0.25s ease;
}

/* Hover */
.btn-download:hover {
    background-color: #0d6efd;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.25);
    transform: translateY(-1px);
}

/* Active */
.btn-download:active {
    transform: scale(0.97);
    box-shadow: none;
}
.feature-card:hover {
  transform: translateY(-10px); /* Lifts the card up */
  box-shadow: 0 15px 30px rgba(0,0,0,0.1); /* Adds a deeper shadow */
  transition: all 0.35s ease;
}
/* 1. Define the Keyframe */
@keyframes revealUp {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* 2. Apply initial state to elements */
.nav-container, 
.hero-content, 
.about-card, 
.course-card-pro, 
.contact-box,
.footer-container {
  opacity: 0;
  animation: revealUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 3. Stagger the timing (The "Professional" Secret) */
.nav-container { animation-delay: 0.1s; }
.hero-content  { animation-delay: 0.3s; }

/* If on the courses or about page, stagger the children */
.course-card-pro:nth-child(1) { animation-delay: 0.2s; }
.course-card-pro:nth-child(2) { animation-delay: 0.3s; }
.course-card-pro:nth-child(3) { animation-delay: 0.4s; }

.about-item:nth-child(1) { animation-delay: 0.4s; }
.about-item:nth-child(2) { animation-delay: 0.5s; }
.about-item:nth-child(3) { animation-delay: 0.6s; }

.footer-container { animation-delay: 0.7s; }
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #4f46e5; /* EduTech Theme Color */
  z-index: 9999;
  pointer-events: none;
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}


body.is-loading .page-transition {
  transform: translateY(0);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: white;
  border-radius: 5px;
}


@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: #0f172a;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-container {
    padding: 0 20px;
  }

  .user-profile {
    display: none;
  }
}
@media (max-width: 768px) {
  .nav-container {
    max-width: 100%;
    padding: 0 16px;
  }

  .logo {
    font-size: 20px;
    white-space: nowrap; 
  }

  .navbar {
    padding: 12px 0;
  }
}
.nav-container {
  width: 100%;
}
@media (max-width: 768px) {
  .hamburger {
    padding: 6px;
  }
}
/* ===== FORCE FULL-WIDTH NAVBAR ON MOBILE (FINAL FIX) ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Keep it hidden by default */
    position: absolute;
    top: 60px; /* Adjust based on your navbar height */
    left: 0;
    width: 100%;
    background: #0f172a;
    flex-direction: column;
    padding: 20px;
    text-align: center;
    z-index: 1000;
    border-top: 1px solid #1e293b;
  }

  /* This is the class the JavaScript toggles */
  .nav-links.active {
    display: flex; 
    animation: fadeInDown 0.3s ease forwards;
  }

  .hamburger {
    display: flex; /* Show the bars on mobile */
  }
}

/* Smooth dropdown animation */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  .navbar {
    width: 100%;
  }

  .nav-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 16px !important;
  }
}
.navbar {
  position: relative;
}
/* Blog Feed Layout */
.blog-container { max-width: 1200px; margin: 60px auto; padding: 0 20px; }
.blog-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
}

/* The Card Design */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0; /* Starts hidden for animation */
    animation: revealUp 0.8s forwards;
}

.blog-card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(79,70,229,0.15); }

.blog-image { position: relative; height: 220px; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.5s; }
.blog-card:hover .blog-image img { scale: 1.1; }

.blog-tag {
    position: absolute; top: 15px; left: 15px;
    background: #4f46e5; color: white;
    padding: 6px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}

.blog-content { padding: 25px; }
.blog-meta { color: #888; font-size: 0.85rem; margin-bottom: 10px; }
.blog-content h3 { font-size: 1.4rem; color: #1e293b; margin-bottom: 12px; line-height: 1.3; }
.blog-content p { color: #64748b; line-height: 1.6; margin-bottom: 20px; font-size: 0.95rem; }

.read-more { 
    color: #4f46e5; text-decoration: none; font-weight: 700; 
    display: flex; align-items: center; gap: 8px; transition: 0.3s;
}
.read-more:hover { gap: 15px; }

/* Full Article View */
.full-blog-container { max-width: 850px; margin: 120px auto; padding: 0 25px; }
.back-link { text-decoration: none; color: #666; font-size: 0.9rem; margin-bottom: 20px; display: block; }
.blog-header h1 { font-size: 3rem; color: #1e293b; margin: 15px 0; }
.post-info { color: #94a3b8; margin-bottom: 40px; }
.main-featured-image { border-radius: 24px; overflow: hidden; margin-bottom: 50px; box-shadow: 0 30px 60px rgba(0,0,0,0.1); }
.main-featured-image img { width: 100%; display: block; }
.article-body { font-size: 1.2rem; line-height: 1.9; color: #334155; }

/* Staggered Delay for List */
.blog-card:nth-child(1) { animation-delay: 0.2s; }
.blog-card:nth-child(2) { animation-delay: 0.4s; }
.blog-card:nth-child(3) { animation-delay: 0.6s; }
/* Blog Feed Layout */
.blog-container { max-width: 1200px; margin: 60px auto; padding: 0 20px; }
.blog-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
}

/* The Card Design */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0; /* Starts hidden for animation */
    animation: revealUp 0.8s forwards;
}

.blog-card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(79,70,229,0.15); }

.blog-image { position: relative; height: 220px; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.5s; }
.blog-card:hover .blog-image img { scale: 1.1; }

.blog-tag {
    position: absolute; top: 15px; left: 15px;
    background: #4f46e5; color: white;
    padding: 6px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}

.blog-content { padding: 25px; }
.blog-meta { color: #888; font-size: 0.85rem; margin-bottom: 10px; }
.blog-content h3 { font-size: 1.4rem; color: #1e293b; margin-bottom: 12px; line-height: 1.3; }
.blog-content p { color: #64748b; line-height: 1.6; margin-bottom: 20px; font-size: 0.95rem; }

.read-more { 
    color: #4f46e5; text-decoration: none; font-weight: 700; 
    display: flex; align-items: center; gap: 8px; transition: 0.3s;
}
.read-more:hover { gap: 15px; }

/* Full Article View */
.full-blog-container { max-width: 850px; margin: 120px auto; padding: 0 25px; }
.back-link { text-decoration: none; color: #666; font-size: 0.9rem; margin-bottom: 20px; display: block; }
.blog-header h1 { font-size: 3rem; color: #1e293b; margin: 15px 0; }
.post-info { color: #94a3b8; margin-bottom: 40px; }
.main-featured-image { border-radius: 24px; overflow: hidden; margin-bottom: 50px; box-shadow: 0 30px 60px rgba(0,0,0,0.1); }
.main-featured-image img { width: 100%; display: block; }
.article-body { font-size: 1.2rem; line-height: 1.9; color: #334155; }

/* Staggered Delay for List */
.blog-card:nth-child(1) { animation-delay: 0.2s; }
.blog-card:nth-child(2) { animation-delay: 0.4s; }
.blog-card:nth-child(3) { animation-delay: 0.6s; }
/* ===== GLOBAL RESPONSIVE PATCH ===== */

@media (max-width: 768px) {
    /* 1. Hero Section Adjustments */
    .hero {
        padding: 60px 20px;
    }
    .hero h1 {
        font-size: 28px; /* Smaller title for mobile */
    }
    .hero p {
        font-size: 16px;
    }

    /* 2. Blog Reader Adjustments */
    .full-blog-container {
        margin: 80px auto; /* Less top margin on mobile */
    }
    .blog-header h1 {
        font-size: 2rem; /* Was 3rem - way too big for mobile */
    }
    .main-featured-image {
        margin-bottom: 25px;
        border-radius: 12px;
    }
    .article-body {
        font-size: 1rem; /* Better reading size for phones */
        line-height: 1.7;
    }

    /* 3. Tutorial Rows (Flex to Column) */
    .tutorial-card {
        flex-direction: column; /* Stack the download button below text */
        align-items: flex-start;
        gap: 15px;
    }
    .download-btn {
        width: 100%; /* Full width button on mobile */
        justify-content: center;
    }

    /* 4. Stats & Grid Adjustments */
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    /* 5. Course & Blog Grid padding */
    .blog-grid, .courses-container {
        grid-template-columns: 1fr; /* Force 1 column on small phones */
        padding: 0 10px;
    }

    /* 6. Footer Adjustments */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col ul {
        padding: 0;
    }
}

/* Extra Small Devices (Phones under 400px) */
@media (max-width: 400px) {
    .logo {
        font-size: 18px;
    }
    .btn-primary {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* ================= MOBILE RESPONSIVE GLOBAL FIX ================= */
img, video {
  max-width: 100%;
  height: auto;
}

.container, .nav-container, .features-container, .blog-container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Tablet */
@media (max-width: 992px){
  .hero h1{
    font-size:32px;
  }
  .hero p{
    font-size:16px;
  }
}

/* Mobile */
@media (max-width: 768px){

  body{
    overflow-x:hidden;
  }

  .hero{
    padding:70px 16px;
  }

  .hero h1{
    font-size:26px;
    line-height:1.3;
  }

  .hero p{
    font-size:15px;
  }

  .btn-primary{
    padding:10px 20px;
    font-size:14px;
  }

}
/* ===== CLEAN NAVBAR SYSTEM (FINAL) ===== */

.navbar{
  background:#0f172a;
  position:relative;
  z-index:1000;
}

.nav-container{
  max-width:1200px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 20px;
}

/* LOGO */
.logo{ color:white; font-weight:700; font-size:22px; }
.logo span{ color:#38bdf8; }

/* LINKS DESKTOP */
.nav-links{
  list-style:none;
  display:flex;
  gap:30px;
}

.nav-links a{
  text-decoration:none;
  color:#cbd5e1;
  font-weight:500;
}

.nav-links a:hover{ color:#38bdf8; }

/* USER SECTION */
.user-profile{
  display:flex;
  align-items:center;
  gap:12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f8fafc;
  color: #1e293b;
}

/* NAVBAR */
.navbar {
  background: #0f172a;
  padding: 15px 0;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: white;
}

.logo span {
  color: #38bdf8;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #cbd5e1;
  font-weight: 500;
}

.nav-links a:hover {
  color: #38bdf8;
}

.search-box {
  display: flex;
}

.search-box input {
  padding: 7px 10px;
  border: none;
  outline: none;
  border-radius: 5px 0 0 5px;
}

.search-box button {
  padding: 7px 10px;
  border: none;
  background: #38bdf8;
  color: #0f172a;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: white;
  padding: 100px 20px;
}

.hero-content {
  max-width: 700px;
  margin: auto;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.btn-primary {
  background: white;
  color: #2563eb;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* FEATURES */
.features {
  padding: 80px 20px;
}

.features-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  padding: 35px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.feature-card i {
  font-size: 38px;
  color: #2563eb;
  margin-bottom: 15px;
}

.feature-card h3 {
  margin-bottom: 10px;
}
/* FOOTER */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 70px 20px 20px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  margin-bottom: 15px;
  color: white;
  font-size: 16px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-logo {
  font-size: 22px;
  color: white;
  margin-bottom: 10px;
}

.footer-logo span {
  color: #38bdf8;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-col ul li a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: #38bdf8;
}

.footer-col i {
  margin-right: 8px;
  color: #38bdf8;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 40px;
  padding-top: 15px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}
/* PAGE HEADER */
.page-header {
  padding: 70px 20px;
  text-align: center;
  background: #f1f5f9;
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.page-header p {
  color: #64748b;
}

/* COURSES */
.courses-section {
  padding: 80px 20px;
}

.courses-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.course-card-pro {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease; 
  cursor: pointer;
}
.course-card-pro:hover {
  transform: translateY(-10px); /* Lifts the card up */
  box-shadow: 0 15px 30px rgba(0,0,0,0.1); /* Adds a deeper shadow */
}
.course-icon {
  width: 50px;
  height: 50px;
  background: #e0f2fe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.course-icon i {
  color: #2563eb;
  font-size: 22px;
}

.course-card-pro h3 {
  margin-bottom: 10px;
}

.course-card-pro p {
  font-size: 14px;
  color: #475569;
  flex-grow: 1;
}

.course-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-outline {
  flex: 1;
  text-align: center;
  padding: 10px;
  border: 1px solid #2563eb;
  color: #2563eb;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}

.btn-solid {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: #2563eb;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}

/* TUTORIALS */
.tutorials-section {
  padding: 80px 20px;
}

.tutorials-container {
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tutorial-row {
  background: white;
  padding: 20px 25px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.tutorial-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.tutorial-info i {
  font-size: 26px;
  color: #dc2626;
}

.tutorial-info span {
  font-size: 13px;
  color: #64748b;
}
/* Tutorials Section */
.tutorials-section {
    padding: 70px 20px;
    background: #f4f6fb;
}

.tutorials-container {
    max-width: 950px;
    margin: auto;
}

/* Card Style */
.tutorial-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.tutorial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

/* Left Side */
.tutorial-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pdf-icon {
    font-size: 26px;
    color: #e63946;
    background: #ffe6e9;
    padding: 14px;
    border-radius: 12px;
}

.tutorial-details h3 {
    margin: 0;
    font-size: 18px;
    color: #1d3557;
}

.tutorial-details p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #6c757d;
}

/* Download Button */
.download-btn {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.download-btn i {
    margin-right: 6px;
}

.download-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.page-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.about-section h1 {
  margin-bottom: 15px;
}

.about-section p {
  line-height: 1.6;
  margin-bottom: 10px;
}

.about-section ul {
  margin-left: 20px;
}
.about-wrapper {
  background: #f4f6fb;
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.about-card {
  background: #fff;
  max-width: 850px;
  width: 100%;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

.about-card h1 {
  text-align: center;
  margin-bottom: 15px;
}

.intro {
  text-align: center;
  color: #555;
  margin-bottom: 30px;
}

.about-block {
  margin-bottom: 25px;
}

.about-block h3 {
  color: #0d6efd;
  margin-bottom: 10px;
}

.about-block p {
  line-height: 1.6;
  color: #444;
}

.about-block ul {
  margin-left: 20px;
}

.about-block li {
  margin-bottom: 6px;
}
.about-hero {
  background: linear-gradient(to right,#0d1b2a,#1b263b);
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.about-wrapper {
  background: #f4f6fb;
  padding: 50px 20px;
}

.about-card {
  max-width: 900px;
  margin: auto;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0,0,0,.1);
}

.intro {
  text-align: center;
  margin-bottom: 40px;
  color: #555;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.about-item {
  text-align: center;
}

.about-item i {
  font-size: 35px;
  color: #0d6efd;
  margin-bottom: 10px;
}

.about-block ul {
  margin-left: 20px;
}

.stats {
  margin-top: 40px;
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stats h2 {
  color: #0d6efd;
}
/* Center nav links on index.php */
.nav-container.center-links {
    justify-content: center; /* centers everything inside */
}

.nav-container.center-links .logo {
    margin-right: 30px; /* optional spacing between logo and links */
}

.nav-container.center-links .nav-links {
    gap: 40px; /* more spacing if needed for centered links */
}

/* Hide search box by default on other pages (optional safety) */
.nav-container:not(.center-links) .search-box {
    display: flex; /* only shows on courses.php */
}
/* Container for the user section */
.user-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* User name and icon styling */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff; /* White text for contrast */
    font-weight: 500;
    font-size: 0.95rem;
}

.user-info i {
    font-size: 1.2rem;
    color: #4f46e5; /* Matching your login theme purple/blue */
}

/* USER PROFILE IN NAVBAR */
.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1e293b; /* dark background */
    padding: 6px 12px;
    border-radius: 25px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    cursor: default;
    transition: background 0.3s;
}

.user-info i {
    font-size: 20px;
    color: #38bdf8;
}

.user-info:hover {
    background: #334155; /* subtle hover effect */
}

.nav-divider {
    width: 1px;
    height: 25px;
    background: #64748b;
}

.logout-btn, .login-btn {
    background: #38bdf8;
    color: #0f172a;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
}

.logout-btn:hover, .login-btn:hover {
    background: #22c55e;
    color: #fff;
}

.user-profile .login-btn {
    padding: 6px 16px;
}
/* NAVBAR USER PROFILE */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1e293b; /* dark pill */
    color: #fff;
    padding: 6px 12px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.user-info i {
    color: #38bdf8;
}

.user-info:hover {
    background: #334155;
}

.logout-btn, .login-btn {
    background: #38bdf8;
    color: #0f172a;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
}

.logout-btn:hover, .login-btn:hover {
    background: #22c55e;
    color: #fff;
}

/* ===== USER PROFILE (NAME + LOGOUT) ===== */

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* User name badge */
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 30px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
}

.user-info i {
  font-size: 18px;
  color: #38bdf8;
}

.user-info span {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Logout button */
.logout-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 6px 16px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(220,38,38,0.3);
}

.logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(220,38,38,0.45);
}

/* Login button (when logged out) */
.login-btn {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: white;
  padding: 6px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(37,99,235,0.3);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(37,99,235,0.45);
}
/* ===== USER PROFILE SECTION ===== */

.user-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Username Badge */
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e293b; /* solid dark pill */
  padding: 7px 16px;
  border-radius: 30px;
  border: 1px solid #334155;
}

.user-info i {
  font-size: 18px;
  color: #38bdf8;
}

.user-info span {
  color: #f1f5f9;  /* brighter text */
  font-size: 14px;
  font-weight: 600; /* stronger weight */
  letter-spacing: 0.4px;
}

/* Professional Logout Button */
.logout-btn {
  background: transparent;
  color: #e2e8f0;
  padding: 7px 16px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid #475569;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* Login button (if logged out) */
.login-btn {
  background: #38bdf8;
  color: #0f172a;
  padding: 7px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: #0ea5e9;
  color: #fff;
}
/* ===== FINAL NAVBAR USER STYLE (OVERRIDES EVERYTHING ABOVE) ===== */

.navbar .user-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.navbar .user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e293b;
  padding: 7px 16px;
  border-radius: 30px;
  border: 1px solid #334155;
}

.navbar .user-info i {
  font-size: 18px;
  color: #38bdf8;
}

.navbar .user-info span {
  color: #ffffff;  /* BRIGHT USERNAME */
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.navbar .logout-btn {
  background: transparent;
  color: #e2e8f0;
  padding: 7px 16px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid #475569;
  transition: all 0.3s ease;
}

.navbar .logout-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}
/* ===== COURSE SEARCH BAR ===== */
.course-search-section {
  background: #f8fafc;
  padding: 30px 0;
  text-align: center;
}

.course-search-form {
  display: inline-flex;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-radius: 50px;
  overflow: hidden;
}

.course-search-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  outline: none;
  font-size: 14px;
}

.course-search-form button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0 22px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}

.course-search-form button:hover {
  background: #1d4ed8;
}
/* ===== HERO HEADER ===== */
.page-hero {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: white;
  text-align: center;
  padding: 70px 20px 60px;
}

.page-hero h1 {
  font-size: 36px;
  margin-bottom: 12px;
  font-weight: 700;
}

.page-hero p {
  font-size: 16px;
  opacity: 0.9;
}

/* ===== COURSES GRID ===== */
.courses-container {
  width: 90%;
  max-width: 1200px;
  margin: 50px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* ===== COURSE CARD PRO DESIGN ===== */
.course-card-pro {
  background: white;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.course-card-pro:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

.course-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.course-icon {
  background: #2563eb;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.course-tag {
  font-size: 12px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.course-card-pro h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #0f172a;
}

.course-card-pro p {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 18px;
}

/* ===== BUTTONS ===== */
.course-actions {
  display: flex;
  gap: 10px;
}

.btn-outline, .btn-solid {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn-outline {
  border: 1px solid #2563eb;
  color: #2563eb;
}

.btn-outline:hover {
  background: #2563eb;
  color: white;
}

.btn-solid {
  background: #2563eb;
  color: white;
}

.btn-solid:hover {
  background: #1e40af;
}
/* ===== SEARCH BAR ABOVE COURSES ===== */
.course-search-wrapper {
  width: 90%;
  max-width: 600px;
  margin: 40px auto 10px;
  text-align: center;
}

.course-search-form {
  display: flex;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  background: white;
}

.course-search-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  outline: none;
  font-size: 14px;
}

.course-search-form button {
  width: 60px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.course-search-form button:hover {
  transform: scale(1.05);
}
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;

    color: #0d6efd;
    background-color: #ffffff;

    border: 1.8px solid #0d6efd;
    border-radius: 8px;

    text-decoration: none;
    cursor: pointer;

    transition: all 0.25s ease;
}

/* Hover */
.btn-download:hover {
    background-color: #0d6efd;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.25);
    transform: translateY(-1px);
}

/* Active */
.btn-download:active {
    transform: scale(0.97);
    box-shadow: none;
}
.feature-card:hover {
  transform: translateY(-10px); /* Lifts the card up */
  box-shadow: 0 15px 30px rgba(0,0,0,0.1); /* Adds a deeper shadow */
  transition: all 0.35s ease;
}
/* 1. Define the Keyframe */
@keyframes revealUp {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* 2. Apply initial state to elements */
.nav-container, 
.hero-content, 
.about-card, 
.course-card-pro, 
.contact-box,
.footer-container {
  opacity: 0;
  animation: revealUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 3. Stagger the timing (The "Professional" Secret) */
.nav-container { animation-delay: 0.1s; }
.hero-content  { animation-delay: 0.3s; }

/* If on the courses or about page, stagger the children */
.course-card-pro:nth-child(1) { animation-delay: 0.2s; }
.course-card-pro:nth-child(2) { animation-delay: 0.3s; }
.course-card-pro:nth-child(3) { animation-delay: 0.4s; }

.about-item:nth-child(1) { animation-delay: 0.4s; }
.about-item:nth-child(2) { animation-delay: 0.5s; }
.about-item:nth-child(3) { animation-delay: 0.6s; }

.footer-container { animation-delay: 0.7s; }
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #4f46e5; /* EduTech Theme Color */
  z-index: 9999;
  pointer-events: none;
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}


body.is-loading .page-transition {
  transform: translateY(0);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: white;
  border-radius: 5px;
}


@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: #0f172a;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-container {
    padding: 0 20px;
  }

  .user-profile {
    display: none;
  }
}
@media (max-width: 768px) {
  .nav-container {
    max-width: 100%;
    padding: 0 16px;
  }

  .logo {
    font-size: 20px;
    white-space: nowrap; 
  }

  .navbar {
    padding: 12px 0;
  }
}
.nav-container {
  width: 100%;
}
@media (max-width: 768px) {
  .hamburger {
    padding: 6px;
  }
}
/* ===== FORCE FULL-WIDTH NAVBAR ON MOBILE (FINAL FIX) ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Keep it hidden by default */
    position: absolute;
    top: 60px; /* Adjust based on your navbar height */
    left: 0;
    width: 100%;
    background: #0f172a;
    flex-direction: column;
    padding: 20px;
    text-align: center;
    z-index: 1000;
    border-top: 1px solid #1e293b;
  }

  /* This is the class the JavaScript toggles */
  .nav-links.active {
    display: flex; 
    animation: fadeInDown 0.3s ease forwards;
  }

  .hamburger {
    display: flex; /* Show the bars on mobile */
  }
}

/* Smooth dropdown animation */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  .navbar {
    width: 100%;
  }

  .nav-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 16px !important;
  }
}
.navbar {
  position: relative;
}
/* Blog Feed Layout */
.blog-container { max-width: 1200px; margin: 60px auto; padding: 0 20px; }
.blog-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
}

/* The Card Design */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0; /* Starts hidden for animation */
    animation: revealUp 0.8s forwards;
}

.blog-card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(79,70,229,0.15); }

.blog-image { position: relative; height: 220px; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.5s; }
.blog-card:hover .blog-image img { scale: 1.1; }

.blog-tag {
    position: absolute; top: 15px; left: 15px;
    background: #4f46e5; color: white;
    padding: 6px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}

.blog-content { padding: 25px; }
.blog-meta { color: #888; font-size: 0.85rem; margin-bottom: 10px; }
.blog-content h3 { font-size: 1.4rem; color: #1e293b; margin-bottom: 12px; line-height: 1.3; }
.blog-content p { color: #64748b; line-height: 1.6; margin-bottom: 20px; font-size: 0.95rem; }

.read-more { 
    color: #4f46e5; text-decoration: none; font-weight: 700; 
    display: flex; align-items: center; gap: 8px; transition: 0.3s;
}
.read-more:hover { gap: 15px; }

/* Full Article View */
.full-blog-container { max-width: 850px; margin: 120px auto; padding: 0 25px; }
.back-link { text-decoration: none; color: #666; font-size: 0.9rem; margin-bottom: 20px; display: block; }
.blog-header h1 { font-size: 3rem; color: #1e293b; margin: 15px 0; }
.post-info { color: #94a3b8; margin-bottom: 40px; }
.main-featured-image { border-radius: 24px; overflow: hidden; margin-bottom: 50px; box-shadow: 0 30px 60px rgba(0,0,0,0.1); }
.main-featured-image img { width: 100%; display: block; }
.article-body { font-size: 1.2rem; line-height: 1.9; color: #334155; }

/* Staggered Delay for List */
.blog-card:nth-child(1) { animation-delay: 0.2s; }
.blog-card:nth-child(2) { animation-delay: 0.4s; }
.blog-card:nth-child(3) { animation-delay: 0.6s; }
/* Blog Feed Layout */
.blog-container { max-width: 1200px; margin: 60px auto; padding: 0 20px; }
.blog-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
}

/* The Card Design */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0; /* Starts hidden for animation */
    animation: revealUp 0.8s forwards;
}

.blog-card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(79,70,229,0.15); }

.blog-image { position: relative; height: 220px; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.5s; }
.blog-card:hover .blog-image img { scale: 1.1; }

.blog-tag {
    position: absolute; top: 15px; left: 15px;
    background: #4f46e5; color: white;
    padding: 6px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}

.blog-content { padding: 25px; }
.blog-meta { color: #888; font-size: 0.85rem; margin-bottom: 10px; }
.blog-content h3 { font-size: 1.4rem; color: #1e293b; margin-bottom: 12px; line-height: 1.3; }
.blog-content p { color: #64748b; line-height: 1.6; margin-bottom: 20px; font-size: 0.95rem; }

.read-more { 
    color: #4f46e5; text-decoration: none; font-weight: 700; 
    display: flex; align-items: center; gap: 8px; transition: 0.3s;
}
.read-more:hover { gap: 15px; }

/* Full Article View */
.full-blog-container { max-width: 850px; margin: 120px auto; padding: 0 25px; }
.back-link { text-decoration: none; color: #666; font-size: 0.9rem; margin-bottom: 20px; display: block; }
.blog-header h1 { font-size: 3rem; color: #1e293b; margin: 15px 0; }
.post-info { color: #94a3b8; margin-bottom: 40px; }
.main-featured-image { border-radius: 24px; overflow: hidden; margin-bottom: 50px; box-shadow: 0 30px 60px rgba(0,0,0,0.1); }
.main-featured-image img { width: 100%; display: block; }
.article-body { font-size: 1.2rem; line-height: 1.9; color: #334155; }

/* Staggered Delay for List */
.blog-card:nth-child(1) { animation-delay: 0.2s; }
.blog-card:nth-child(2) { animation-delay: 0.4s; }
.blog-card:nth-child(3) { animation-delay: 0.6s; }
/* ===== GLOBAL RESPONSIVE PATCH ===== */

@media (max-width: 768px) {
    /* 1. Hero Section Adjustments */
    .hero {
        padding: 60px 20px;
    }
    .hero h1 {
        font-size: 28px; /* Smaller title for mobile */
    }
    .hero p {
        font-size: 16px;
    }

    /* 2. Blog Reader Adjustments */
    .full-blog-container {
        margin: 80px auto; /* Less top margin on mobile */
    }
    .blog-header h1 {
        font-size: 2rem; /* Was 3rem - way too big for mobile */
    }
    .main-featured-image {
        margin-bottom: 25px;
        border-radius: 12px;
    }
    .article-body {
        font-size: 1rem; /* Better reading size for phones */
        line-height: 1.7;
    }

    /* 3. Tutorial Rows (Flex to Column) */
    .tutorial-card {
        flex-direction: column; /* Stack the download button below text */
        align-items: flex-start;
        gap: 15px;
    }
    .download-btn {
        width: 100%; /* Full width button on mobile */
        justify-content: center;
    }

    /* 4. Stats & Grid Adjustments */
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    /* 5. Course & Blog Grid padding */
    .blog-grid, .courses-container {
        grid-template-columns: 1fr; /* Force 1 column on small phones */
        padding: 0 10px;
    }

    /* 6. Footer Adjustments */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col ul {
        padding: 0;
    }
}

/* Extra Small Devices (Phones under 400px) */
@media (max-width: 400px) {
    .logo {
        font-size: 18px;
    }
    .btn-primary {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* ================= MOBILE RESPONSIVE GLOBAL FIX ================= */
img, video {
  max-width: 100%;
  height: auto;
}

.container, .nav-container, .features-container, .blog-container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Tablet */
@media (max-width: 992px){
  .hero h1{
    font-size:32px;
  }
  .hero p{
    font-size:16px;
  }
}

/* Mobile */
@media (max-width: 768px){

  body{
    overflow-x:hidden;
  }

  .hero{
    padding:70px 16px;
  }

  .hero h1{
    font-size:26px;
    line-height:1.3;
  }

  .hero p{
    font-size:15px;
  }

  .btn-primary{
    padding:10px 20px;
    font-size:14px;
  }

}
/* ===== CLEAN NAVBAR SYSTEM (FINAL) ===== */

.navbar{
  background:#0f172a;
  position:relative;
  z-index:1000;
}

.nav-container{
  max-width:1200px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 20px;
}

/* LOGO */
.logo{ color:white; font-weight:700; font-size:22px; }
.logo span{ color:#38bdf8; }

/* LINKS DESKTOP */
.nav-links{
  list-style:none;
  display:flex;
  gap:30px;
}

.nav-links a{
  text-decoration:none;
  color:#cbd5e1;
  font-weight:500;
}

.nav-links a:hover{ color:#38bdf8; }

/* USER SECTION */
.user-profile{
  display:flex;
  align-items:center;
  gap:12px;
}

/* HAMBURGER */
.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}

.hamburger span{
  width:25px;
  height:3px;
  background:white;
  border-radius:5px;
  transition:0.3s;
}

/* ANIMATION */
.hamburger.open span:nth-child(1){
  transform:rotate(45deg) translateY(8px);
}
.hamburger.open span:nth-child(2){
  opacity:0;
}
.hamburger.open span:nth-child(3){
  transform:rotate(-45deg) translateY(-8px);
}

/* MOBILE */
@media (max-width:768px){

  .hamburger{ display:flex; }

 .nav-links{
  display:none;
  flex-direction:column;
  width:100%;
  background:#0f172a;
  position:absolute;
  top:100%;
  left:0;
  padding:20px 20px;   /* adds left spacing */
  text-align:left;     /* ✅ align text to left */
}


  .nav-links.active{ display:flex; }

  .user-profile{ display:none; }
}
/* FORCE NAVBAR ABOVE ALL ANIMATED CONTENT */
.navbar {
  position: relative;
  z-index: 9999;
}
.blog-container,
.blog-grid,
.blog-card {
  position: relative;
  z-index: 1;
}

/* ===== FIX: LEFT-ALIGN HAMBURGER MENU ITEMS ===== */
@media (max-width: 768px) {
  .nav-links {
    align-items: flex-start !important;
    text-align: left !important;
    padding: 20px 24px !important;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
  }
}


