/* style.css - Site-wide styling, responsive, hover, animations */

/* ----------------- Basic / Global ----------------- */
* { box-sizing: border-box; }
html,body { margin:0; padding:0; font-family: Arial, sans-serif; color:#222; background:#f8f8f8; }
.container { max-width:1200px; margin:0 auto; padding:20px; }

/* ----------------- Header ----------------- */
.site-header { background:#111; color:#fff; position:sticky; top:0; z-index:1000; }
.header-inner { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.brand .logo { height:42px; display:block; }
nav ul { list-style:none; margin:0; padding:0; display:flex; gap:18px; align-items:center; }
nav ul li a { color:#fff; font-weight:600; padding:8px 6px; display:inline-block; }
.menu-toggle { display:none; color:#fff; font-size:22px; cursor:pointer; }

/* ----------------- Hero ----------------- */
.hero { background: linear-gradient(135deg,#0b66d1 0%,#2aa2ff 100%); color:#fff; text-align:center; padding:80px 20px; animation:fadeIn 800ms ease both; }
.hero h1 { font-size:32px; margin:0 0 10px; }
.hero p { font-size:18px; margin:0 0 20px; max-width:800px; margin-left:auto; margin-right:auto; }

/* Buttons */
.btn { display:inline-block; background:#fff; color:#007bff; padding:10px 18px; border-radius:8px; font-weight:700; text-decoration:none; transition: all 220ms ease; }
.btn.small { padding:8px 12px; font-size:14px; border-radius:6px; }
.btn:hover { transform:translateY(-4px); box-shadow:0 8px 20px rgba(0,0,0,0.12); color:#003a7a; }

/* ----------------- Grids & Cards ----------------- */
.tutorial-grid, .blog-grid, .review-grid { display:flex; gap:20px; flex-wrap:wrap; justify-content:center; margin-top:24px; }
.tutorial-card, .blog-card, .review-card, .card { background:#fff; border-radius:12px; padding:18px; box-shadow:0 6px 18px rgba(13,13,13,0.06); flex:1 1 300px; max-width:320px; transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s;     position: relative; }
.tutorial-card:hover, .blog-card:hover, .review-card:hover, .card:hover { transform: translateY(-8px); box-shadow:0 18px 36px rgba(13,13,13,0.12); }

.tutorial-title {
  cursor: pointer;
  transition: color 0.3s;
}


.read-more {
  color: #067ae6; 
  cursor: pointer;
  font-weight: bold;
  display: inline-block;
  margin-top: 5px;
}

.read-more.read-less {
  color: #FF0000;  /* red for "Read less" */
}


/* stars */
.stars { color:#f5c518; font-size:16px; margin-bottom:8px; }

/* ----------------- Sections ----------------- */
.about-snippet, .reviews-snippet, .blog-list, .featured-tutorials { padding:48px 20px; text-align:center; }
.about-snippet { background:#fff; border-radius:12px; box-shadow:0 6px 18px rgba(0,0,0,0.04); }

/* ----------------- Blog post styles ----------------- */
.blog-post .post-image { width:100%; border-radius:10px; margin:20px 0; display:block; }
.blog-post h1 { font-size:28px; margin-bottom:6px; }
.blog-post .meta { color:#777; margin-bottom:18px; }

/* code block */
pre { background:#0f1724; color:#dbeafe; padding:12px; border-radius:8px; overflow:auto; font-family: "Courier New", monospace; font-size:14px; }

/* ----------------- Footer ----------------- */
.footer-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap:20px; align-items:start; }
.footer-links { list-style:none; padding:0; margin:0; }
.footer-links li { margin-bottom:8px; }

/* ----------------- Animations & Blink ----------------- */
/* blinking utility class (use markup: class="blink") */
.blink { animation:blink 1s linear infinite; }
@keyframes blink { 0%, 50%, 100% { opacity:1; } 25%, 75% { opacity:0; } }

/* helper when JS toggles blink-hidden */
.blink-hidden { visibility:hidden !important; }

/* simple fade in */
@keyframes fadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* ----------------- Responsive ----------------- */
@media (max-width: 900px) {
  .hero h1 { font-size:26px; }
  nav ul { gap:10px; }
}


@media (max-width: 768px) {
  nav ul { display:none; flex-direction:column; background:#111; position:absolute; right:12px; top:64px; padding:12px; border-radius:8px; width:calc(100% - 48px); max-width:320px; }
  nav ul.show { display:flex; }
  .menu-toggle { display:block; }
  .header-inner { align-items:center; }
  .container { padding:14px; }
}
@media (max-width: 480px) {
  .hero { padding:48px 16px; }
  .hero h1 { font-size:20px; }
}



/* ---------------- Courses Style ---------------- */
/* ---------- GLOBAL ---------- */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: Arial, sans-serif; }
a { text-decoration:none; transition:0.3s; }
ul { list-style:none; }

/* ---------- NAVBAR ---------- */
nav { width:100%; background:#2a3d66; color:#fff; }
.nav-top { display:flex; align-items:center; justify-content:space-between; padding:10px 20px; }
.logo { font-size:22px; font-weight:bold; }
.menu-toggle { display:none; font-size:28px; cursor:pointer; }
.main-menu { display:flex; gap:20px; }
.main-menu li a { color:#fff; padding:5px 10px; border-radius:4px; }
.main-menu li a:hover { background: rgba(255,255,255,0.15); transform:scale(1.05); }

/* ---------- SOCIAL ICONS ---------- */
.social-icons {
  display: flex;
  gap: 2px;
  margin: 20px;
}

.social-icons a {
  font-family: "Font Awesome 6 Free"; /* or "Font Awesome 5 Free" depending on version */
  font-weight: 900; /* needed for solid icons */
  font-size: 20px;  /* adjust size */
  color: orange;    /* make icons orange */
  margin-right: 10px;
  text-decoration: none;
}

.social-icons a i {
  color: orange;
  font-size: 20px;
  margin-right: 1px;
  transition: transform 0.3s;
}

.social-icons a i:hover {
  transform: scale(1.2);
}

/* ---------- COURSES MENU ---------- */
#courses-menu { list-style:none; display:flex; font-size: 16px; gap:5px; background:#3a4f7a; padding:5px 5px; flex-wrap:wrap; }
#courses-menu li { position:relative; }
#courses-menu li a { color:#fff; padding:5px 8px; display:block; border-radius:4px; }
#courses-menu li a:hover { background: rgba(255,255,255,0.2); }
#courses-menu li ul {
  position:absolute; left:0; top:100%; background:#f9f9f9; color:#333; list-style:none;
  padding:10px; min-width:180px; display:none; max-height:400px; overflow-y:auto;
  box-shadow:0 2px 8px rgba(0,0,0,0.2); z-index:999;
}
#courses-menu li:hover > ul { display:block; }
#courses-menu li ul li a { color:#333; padding:5px 0; }
#courses-menu li ul li a:hover { color:#2a3d66; transform:translateX(5px); }

/* ---------- MOBILE SIDEBAR ---------- */
.sidebar { position:fixed; top:0; left:-100%; width:280px; height:100%; background:#2a3d66; color:#fff; padding:20px; transition:0.3s; overflow-y:auto; z-index:1000; }
.sidebar.active { left:0; }
.sidebar h4 { margin:15px 0 5px; cursor:pointer; transition:color 0.3s; }
.sidebar h4:hover { color:#f9d342; }
.sidebar ul { list-style:none; margin-left:15px; display:none; }
.sidebar ul li a { color:#fff; padding:5px 0; display:block; transition:all 0.3s; }
.sidebar ul li a:hover { color:#f9d342; transform:translateX(5px); }
.sidebar ul.active { display:block; }

/* ---------- RESPONSIVE ---------- */
@media(max-width:991px){
  .main-menu, #courses-menu { display:none; }
  .menu-toggle { display:block; }
  .social-icons { display:flex; justify-content:center; margin-bottom:15px; }
}


/* Desktop social - visible only on large screens */
.desktop-social { display:flex; gap:5px; }
.sidebar-social { display:none; }

/* Mobile adjustments */
@media(max-width:991px){
  .desktop-social { display:none; } /* hide desktop row on mobile */
  .sidebar-social { display:flex; flex-direction:column; gap:10px; display:block; }
  .sidebar-social a { font-size:20px; color:#fff; text-align:center; }
  .sidebar-social a:hover { color:#f9d342; transform:scale(1.2); }
}

.mobile-social {
  display: none; /* hide by default */
}

@media (max-width: 768px) {
  .desktop-social {
    display: none; /* hide desktop icons */
  }
  .mobile-social {
    display: flex; /* show mobile icons */
    justify-content: center;
    gap: 5px;
  }
}


/* Menu links default */
#courses-menu li a {
  display: block;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

/* Hover effect */
#courses-menu li a:hover {
  color: #f9d342;
  font-size: 1.3em;
}

/* Focus effect - when clicked or tabbed */
#courses-menu li a:focus {
  color: #ff6347; /* Different color when active */
  font-size: 1.3em; /* Bigger font size */
  outline: none; /* remove default outline */
  background-color: #f9d342;
}

/* Optional: active pseudo-class while pressing */
#courses-menu li a:active {
  color: #ff4500;
  font-size: 1.3em;
}

  /*  Animation for moving letters */
  .animated-title {
    font-size: 3rem;
    font-weight: bold;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: 0.2em;
    animation: moveLetters 3s infinite linear;
  }

  @keyframes moveLetters {
    0% { transform: translateX(0); }
    25% { transform: translateX(10px); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(0); }
  }

  /* Optional: Add hover effect for arrows */
  .tutorial-card h3 a:hover {
    color: #ff5722;
    transform: translateX(5px);
    transition: all 0.3s ease;
  }

  /* Arrow hover effect */
.tutorial-card h3 a:hover {
  color: #2196f3;
  transform: translateX(5px);
  transition: all 0.3s ease;
}



/* ========== Carousel ======== */
   /* Carousel Container */
   .carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    height: 80px; /* fixed height */
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Carousel Track */
  .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
  }

  /* Each Item */
  .carousel-item {
    flex: 0 0 100%; /* one item fully visible */
    height: 80px;
    display: flex;
    justify-content: center;  /* horizontal center */
    align-items: center;      /* vertical center */
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    background: #e0e0e0;
    border-right: 2px solid white;
  }

  /* Arrows */
  .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 20px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
  }
  .carousel-arrow.left {
    left: 10px;
  }
  .carousel-arrow.right {
    right: 10px;
  }

  /* Responsive Text */
  @media (max-width: 600px) {
    .carousel-item {
      font-size: 1rem;
    }
  }
 

  /* ======== Text Animation ======= */
   /* Animation only for  h1 */
.animated-title-h1 {
  font-size: 2.5rem;
  font-weight: bold;
  display: inline-block;
  animation: bounce 3s infinite ease-in-out, colorChange 3s infinite linear;
}

/* Bounce up and down */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-10px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(10px); }
}

/* Color animation: green → blue → purple → green */
@keyframes colorChange {
  0% { color: green; }
  33% { color: blue; }
  66% { color: purple; }
  100% { color: green; }
}

/* Optional: slow down animation on small devices */
@media (max-width: 600px) {
  .animated-title {
    animation-duration: 5s, 5s; /* slower bounce and color change */
  }
}


/* ========= Go to top ======== */
#goTopBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  bottom: 30px; /* Distance from bottom */
  right: 30px; /* Distance from right */
  z-index: 99; /* Sit on top of other elements */
  background-color: green; /* Button color */
  color: white; /* Text color */
  border: none;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

#goTopBtn:hover {
  background-color: blue; /* Hover effect */
}


/* Description Container Styling */
.description-container {
  max-width: 900px;       /* Limit width */
  margin: 40px auto;      /* Center horizontally with top/bottom margin */
  padding: 30px;          /* Space inside the container */
  background-color: #ffffff; /* White background */
  border-radius: 15px;    /* Rounded corners */
  box-shadow: 0 8px 20px rgba(0,0,0,0.2); /* Subtle shadow */
  text-align: justify;    /* Align text nicely */
  animation: fadeUp 1.5s ease forwards; /* Animation */
  opacity: 0;             /* Start hidden for animation */
}

/* Fade-in and move up animation */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive for small devices */
@media (max-width: 600px) {
  .description-container {
    padding: 20px;
  }
  .description-container h4 {
    font-size: 1rem;
  }
  .description-container h5 {
    font-size: 0.9rem;
  }
}


/* ========= Contact us ========= */


/* Bounce & Color Animation */
@keyframes bounceColors {
  0%   { transform: translateY(0); color: #2ecc71; }
  25%  { transform: translateY(-10px); color: #3498db; }
  50%  { transform: translateY(0); color: #9b59b6; }
  75%  { transform: translateY(10px); color: #3498db; }
  100% { transform: translateY(0); color: #2ecc71; }
}

/* Container */
.contact-container {
  max-width: 700px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 30px rgba(0,0,0,0.2);
}

/* Paragraph */
.contact-container p {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #555;
  line-height: 1.6;
}

/* Form Labels */
label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: #2c3e50;
}

/* Inputs & Textarea */
input, textarea {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus {
  border-color: #3498db;
  box-shadow: 0 0 8px rgba(52,152,219,0.3);
  outline: none;
}

/* Submit Button */
.contact-button {
  margin-top: 25px;
  padding: 14px 30px;
  background-color: #2ecc71;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

contact-button:hover {
  background-color: #27ae60;
  transform: translateY(-2px);
}

/* Status Message */
#statusMessage {
  margin-top: 20px;
  font-weight: 600;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  .contact-container {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }
  .contact-button {
    width: 100%;
    padding: 12px 20px;
  }
}



/* ===== About ===== */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

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

.card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 15px;
}

/* ====== PrivacyPolicy ===== */
.privacy-wrap{
  max-width:var(--maxw);
  margin:0 auto;
}

.privacy-card{
  background:var(--card);
  border-radius:var(--radius);
  padding:28px;
  box-shadow:0 10px 30px rgba(20,30,60,0.08);
  margin-top:20px;
  overflow:hidden;
}

.meta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:18px;
}
.badge{
  background:linear-gradient(90deg,var(--accent),#27ae60);
  color:#fff;
  padding:6px 10px;
  border-radius:999px;
  font-weight:600;
  font-size:0.9rem;
}
.small{
  color:var(--muted);
  font-size:0.95rem;
}

h2{color:#16232a; margin-top:22px}
h3{margin-top:18px;color:#223}
p{margin:10px 0}
ul{margin:10px 0 18px 20px}
li{margin:8px 0}

/* Table of contents box */
.toc{
  background:#fbfdff;
  border-radius:10px;
  padding:12px 14px;
  border:1px solid rgba(20,30,60,0.04);
  margin-bottom:18px;
  color:var(--muted);
}
.toc a{
  display:inline-block;
  margin:6px 10px 6px 0;
  color:#2b6cb0;
  text-decoration:none;
  font-size:0.95rem;
}

footer{
  margin-top:26px;
  text-align:center;
  color:var(--muted);
  font-size:0.95rem;
}

/* responsive */
@media (max-width:720px){
  .card { padding:20px }
  header p{ font-size:0.95rem }
}


/* Gradient letter animation */
.gradient-text span {
display: inline-block;
font-size: .9rem;
line-height: 2.5rem;  /* Space each letter vertically */
font-weight: bold;
animation: gradientShift 3s infinite alternate;
background: linear-gradient(90deg, rgb(1, 1, 59), blue, dodgerblue, grey);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
box-sizing: border-box; /* Includes padding in width */
}

@keyframes gradientShift {
0% { filter: hue-rotate(0deg); }
100% { filter: hue-rotate(90deg); }
}


/* Growing Letters Animation */
/* Container centered */
.tutor-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  box-sizing: border-box;
}

/* Text styling */
.tutor-text {
  font-family: "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial;
  font-size: 40px;
  font-weight: 700;
  display: inline-block;
  user-select: none;
  white-space: nowrap;
  text-align: center;
  color: black; /* fallback color for visibility */
}

/* Each letter wrapper */
.tutor-text span {
  display: inline-block;
  transform-origin: center bottom;
  will-change: transform, opacity;
  opacity: 1; /* visible by default */
  /* Gradient text in footer "Easy tutor Guide" */
  background: linear-gradient(90deg, #021e3a, #00bfff, #808080);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
 
}

/* Animation */
.tutor-grow-animation {
  animation-name: tutorLetterGrow;
  animation-duration: var(--tutor-total-duration, 3s);
  animation-timing-function: cubic-bezier(.2,.9,.3,1);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

/* Keyframes for letter grow */
@keyframes tutorLetterGrow {
  0% { transform: scale(1); opacity: 0.45; }
  6% { transform: scale(1.85); opacity: 1; }
  14% { transform: scale(1.06); opacity: 1; }
  18% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Space between letters */
.tutor-text .tutor-space {
  width: 0.45em;
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .tutor-grow-animation {
    animation: none !important;
    transform: none !important;
  }
}


/* Animation for moving letters */
.animated-title {
  font-size: 3rem;
  font-weight: bold;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.2em;
  animation: moveLetters 3s infinite linear;
  text-align: center;
  margin-bottom: 30px;
}

.animated-title:hover {
  color: #2196f3; /* Hover color */
  cursor: pointer;
  transition: color 0.3s ease;
}

@keyframes moveLetters {
  0% { transform: translateX(0); }
  50% { transform: translateX(10px); }
  100% { transform: translateX(0); }
}

/* Course card styling */
.tutorial-card {
  margin-bottom: 25px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tutorial-card h3 a:hover {
  color: #2196f3;
  transform: translateX(5px);
  transition: all 0.3s ease;
}


/* search input */
.highlight-tutorial {
    background-color: #ffc107 !important;
  }
  
  



/* ===========================
       GOOGLE TRANSLATE DROPDOWN
    ============================*/
    .translate-box {
      width: 70%;              /* Dropdown width */
      margin: 3px auto;       /* Center under navbar */
      text-align: center;
    }

    .translate-box select {
      width: 100%;
      padding: 8px;
      font-size: 16px;
    }

    /* Limit dropdown height with scrollbar */
    .goog-te-combo {
      max-height: 100px !important;
      overflow-y: auto !important;
    }