* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
   -webkit-tap-highlight-color: transparent; /*Stops default flash*/
}

/*Stops default flash*/
/* সব elements এর tap highlight বন্ধ */
/* {-webkit-tap-highlight-color: transparent;}*/

/* button, link click flash বন্ধ */
button,
a,
input,
textarea,
select {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* active/focus state remove */
button:focus,
button:active,
a:focus,
a:active {
  outline: none;
  box-shadow: none;
}







body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f0 100%);
  color: #333;
  line-height: 1.6;
  user-select: none;           /* ???? ???? ?????? ??????? ??? ???? ?? */
}



/* ==================== MAIN HEADER ==================== */
.header {
    position: relative;
    width: 100%;
    min-height: 320px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65) contrast(1.1);
    z-index: 1;
}

/* Overlay & Content Wrapper */
.header-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.header-inner {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 320px;
    box-sizing: border-box;
}

/* Left Side - Logo & Title */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: white;
    z-index: 4;
}


.header p {
  font-size: 1.1rem;
  opacity: 0.95;
}



.academy-link {
    text-decoration: none;
    color: inherit;
}

.academy-link:hover .academy-title,
.academy-link:focus .academy-title {
    opacity: 0.95;
}

.academy-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2.6rem;
    font-weight: 800;
    margin: 0 0 12px 0;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.logo {
    height: 85px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.header-content p {
    font-size: 1.18rem;
    max-width: 520px;
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

/* Right Side - Controls */
.header-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
    z-index: 4;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .header-inner {
        min-height: 280px;
        padding: 35px 20px;
    }
    
    .academy-title {
        font-size: 2.3rem;
    }
    
    .logo {
        height: 72px;
    }
}

@media (max-width: 768px) {
    .header {
        min-height: auto;
    }
    
    .header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 35px;
        padding: 40px 15px 50px;
        min-height: auto;
    }
    
    .header-content {
        align-items: center;
    }
    
    .academy-title {
        font-size: 2.1rem;
        justify-content: center;
    }
    
    .header-content p {
        font-size: 1.05rem;
        text-align: center;
    }
    
    .header-controls {
        width: 100%;
        justify-content: center;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .academy-title {
        font-size: 1.9rem;
    }
    .logo {
        height: 65px;
    }
}




/* Learning Control Panel */
.control-box {
  background: #f8fafc;
  padding: 18px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 12px;
  margin-bottom: 20px;
  border-left: 0px solid #00b4d8;
}

.control-item {
  margin-bottom: 12px;
}

.control-item strong {
  color: #1e3a8a;
  margin-right: 8px;
}

.mini-btn {
  padding: 6px 12px;
  font-size: 13px;
  background: #0077b6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 8px;
}

.mini-btn:hover {
  background: #005f8e;
}


.save-btn {
  padding: 8px 16px;
  background: #00b4d8;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}



.cancel-btn {
  background-color: #f44336; /* লাল রং */
  color: white;
  padding: 6px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

/* মাউস হোভার করলে রঙ একটু গাঢ় হবে */
.cancel-btn:hover {
  background-color: #d32f2f;
}

/* বাটনটি যখন ক্লিক করা হবে */
.cancel-btn:active {
  transform: scale(0.98);
}
.control-input {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none; /* ডিফল্ট নীল বর্ডার সরানোর জন্য */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100px; /* আপনার প্রয়োজন অনুযায়ী পরিবর্তন করুন */
  color: #333;
  background-color: #fff;
}

/* যখন ইউজার ইনপুট বক্সে ক্লিক করবে (Focus) */
.control-input:focus {
  border-color: #4A90E2; /* নীল রঙের বর্ডার */
  box-shadow: 0 0 5px rgba(74, 144, 226, 0.3); /* হালকা গ্লো ইফেক্ট */
}

/* ইনপুট টাইপ যদি নাম্বার হয় তবে অ্যারো বাটনগুলো সুন্দর দেখাবে */
.control-input::-webkit-inner-spin-button, 
.control-input::-webkit-outer-spin-button {
  opacity: 1;
}





h1 {
	font-size: 2.2rem;
  margin-bottom: 8px;
  margin: 0;
  font-weight: 700;
  letter-spacing: 1px;
}

h1 a {
  text-decoration: none;
  font-family: "Inter", Arial, sans-serif;
  transition: all 0.3s ease;

  color: #ffffff; /* fallback */

  background: linear-gradient(90deg, #ffffff, #cceeff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hover effect */
h1 a:hover {
  letter-spacing: 2px;
  opacity: 0.85;
}








.card {
  background: white;
  margin: 15px auto;
  padding: 20px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  /*transition: transform 0.3s ease;*/
}

/* .card:hover {
  transform: translateY(-5px);
} */





/* মেইন কার্ড ডিজাইন */
#vocab-section.card {
  background: #ffffff;
  border-radius: 15px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 2px solid #eef2f7;
  max-width: 100%;
  margin: 5px auto;
}

/* লার্নিং বোর্ড এরিয়া - যেখানে শব্দগুলো দেখাবে */
#word-learning-board {
  background: #fdfdfd;
  border: 2px dashed #cbd5e0; /* ড্যাশ বর্ডার বোর্ড লুক দেয় */
  border-radius: 12px;
  min-height: 200px;
  padding: 6px;
  position: relative;
  transition: all 0.3s ease;
  background-image: radial-gradient(#e1e1e1 1px, transparent 1px);
  background-size: 6px 6px; /* ডটেড পেপার ইফেক্ট */
}




/* ==================== START BUTTON ==================== */
.start-learning-btn {
  background: linear-gradient(135deg, #0077b6, #00b4d8); /* clean modern blue */
  color: #fff;
  border: none;
  padding: 14px 40px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;

  box-shadow: 0 6px 18px rgba(0, 183, 216, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover = lift + slight zoom */
.start-learning-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 25px rgba(0, 183, 216, 0.45);
}

/* Click effect */
.start-learning-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(0, 183, 216, 0.3);
}



/* ==================== BACK BUTTON ==================== */
.back-learning-btn {
  background: linear-gradient(135deg, #6c757d, #adb5bd); /* soft grey theme */
  color: #fff;
  border: none;
  padding: 14px 40px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;

  box-shadow: 0 6px 18px rgba(108, 117, 125, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover = lift + slight zoom */
.back-learning-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 25px rgba(108, 117, 125, 0.35);
}

/* Click effect */
.back-learning-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
}








/* স্ট্যাটাস টেক্সট ডিজাইন */
#status-text {
  text-align: center;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 10px;
  font-style: italic;
}

/* হেডার ডিজাইন */
#vocab-section h2 {
  color: #2d3748;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 5px;
}





h2 {
  color: #1e3a8a;
  margin-bottom: 15px;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-desc {
  color: #555;
  margin-bottom: 20px;
  font-size: 1.05rem;
}









/*NOT FOUND
Learning section* /
.vocab-settings {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.vocab-settings label {
  font-weight: 600;
  color: #1e3a8a;
}

#word-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}


*/

/* ==================== WORD GRID ==================== */
.word-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* একটু বড় card look */
  gap: 12px;
  padding: 10px;
}

/* ==================== WORD CARD ==================== */
.word-card {
  background: #ffffff; /* clean white (PHP inline এর সাথে match করবে) */
  padding: 18px 14px;
  border-radius: 14px;
  text-align: center;
  border: 1px solid #f0f0f0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);

  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* unified hover */
.word-card:hover {
  transform: translateY(-8px);
  background: #f8fbff;
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

/* unified hover (no duplicate, no !important) */
.word-card:hover {
  transform: translateY(-8px);
  background: #e0f2fe;
}



/* ==================== WORD (inside বা simple version) ==================== */
/* .word {
  padding: 28px 20px;
  background: #f0f9ff;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.05);* /
  transition: transform 0.2s ease, background 0.2s ease;
} */


.word {
  padding: 28px 20px;
  background: #f0f9ff;
  border-radius: 10px;
  text-align: center;
  font-weight: 400;

  letter-spacing: 0.3px;
  color: #0f172a;
  
  
  /* 👉 bigger + learning-friendly font */
  font-size: 20px;
  line-height: 1.4;

  /* 👉 clean modern font stack */
  font-family: "Inter", "Poppins", "Segoe UI", Roboto, Arial, sans-serif;

  transition: transform 0.2s ease, background 0.2s ease;
}




.word:hover {
  background: #e0f2fe;
  transform: scale(1.03);
}



/* ==================== ICON BUTTON ==================== */
.btn-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 8px 0;
  border-radius: 8px;
  background: #f8f9fa;
  color: #5f6368;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-icon span {
  font-size: 16px;
  margin-bottom: 4px;
}

.btn-icon small {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-icon:hover {
  background: #eef5ff;
  color: #1a73e8;
  border-color: #d2e3fc;
}

/* ==================== MOBILE ==================== */
@media (max-width: 600px) {
  .word-card {
    width: 100%;
  }
}


.word-card h2 {
  border-bottom: 2px solid #e5e7eb;
  position: relative;
}

.word-card h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;

  background: rgba(0, 0, 0, 0.12); /* soft light grey */
  border-radius: 2px;
}





/* ==================== TRUSTED SOURCES ==================== */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.source-item {
  background: #f8fafc;
  padding: 22px 20px;
  border-radius: 12px;
  border-left: 5px solid #00b4d8;
  transition: all 0.3s ease;
}

.source-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.source-item h3 {
  font-size: 1.25rem;
  color: #1e3a8a;
  margin-bottom: 10px;
}

.source-item p {
  color: #555;
  font-size: 1.02rem;
  line-height: 1.55;
}

/* ==================== BENEFITS + TIPS ==================== */
.tips-grid,
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.tip-item,
.benefit-item {
  background: #f8fafc;
  padding: 22px 20px;
  border-radius: 14px;
  border-left: 5px solid #00b4d8;
  transition: all 0.3s ease;
}

.benefit-item:hover,
.tip-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.benefit-item i {
  font-size: 2.2rem;
  color: #0077b6;
  margin-bottom: 12px;
  display: block;
}

.benefit-item h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: #1e3a8a;
}

.benefit-item p,
.tip-item p {
  color: #555;
  font-size: 1.02rem;
  line-height: 1.5;
}

/* ==================== SOURCE LIST ==================== */
.sources-list {
  padding-left: 20px;
  margin-top: 12px;
}

.sources-list li {
  margin-bottom: 8px;
  color: #444;
}

/* Tutor Section */
.tutor-section {
  background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.tutor-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.tutor-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.tutor-image img {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border: 6px solid #fff;
}

.tutor-info {
  flex: 2;
  min-width: 300px;
}

.tutor-info h3 {
  font-size: 2rem;
  color: #1e3a8a;
  margin-bottom: 6px;
}

.tutor-title {
  font-size: 1.15rem;
  color: #00b4d8;
  font-weight: 600;
  margin-bottom: 18px;
}

.tutor-bio p {
  color: #444;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 22px;
}

.tutor-ventures h4 {
  margin-bottom: 12px;
  color: #1e3a8a;
  font-size: 1.1rem;
}

.ventures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.ventures-grid a {
  display: block;
  padding: 10px 14px;
  background: #f1f5f9;
  color: #1e40af;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.98rem;
  transition: all 0.3s;
}

.ventures-grid a:hover {
  background: #e0f2fe;
  color: #0077b6;
  transform: translateX(4px);
}



/* Social Section */
.social-section {
  background: #f8fafc;
}

.social-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.facebook-plugin {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.facebook-plugin h3 {
  margin-bottom: 12px;
  color: #1877f2;
}

.share-buttons h3 {
  margin-bottom: 12px;
  color: #1e3a8a;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: all 0.3s;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter  { background: #1da1f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.whatsapp { background: #25d366; }

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.youtube-section a.youtube-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: all 0.3s;
}

.youtube-section a.youtube-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.15);
}

.youtube-section a i {
  font-size: 2.8rem;
  color: #ff0000;
}




/*footer*/
.footer {
  text-align: center;
  padding: 30px 20px;
  background: #1f2937;
  color: #9ca3af;
  margin-top: 40px;
}

.footer a {
  color: #60a5fa;
  cursor: pointer;
}

/* ==================== MODAL STYLES ==================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  margin: 20px;
  padding: 25px 30px;
  border-radius: 12px;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  position: relative;
  animation: modalPop 0.3s ease;
}

@keyframes modalPop {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
}

.modal-close:hover {
  color: #e11d48;
}

.modal-body {
  margin-top: 15px;
  line-height: 1.7;
  color: #444;

  max-height: 60vh;     /* modal এর ভিতরে সীমা রাখবে */
  overflow-y: auto;     /* vertical scroll enable */
  padding-right: 8px;   /* scrollbar space */
}

/* optional: smooth scrollbar (modern browsers) */
.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.modal-body ul {
  padding-left: 22px;
  margin-top: 12px;
}

.modal-body li {
  margin-bottom: 10px;
}



/* ==================== USER CURRENT LOCAL TIME ==================== */
#user-current-local-time-box {
  text-align: center;
  padding: 14px 18px;
  margin: 15px 0 25px 0;

  background: linear-gradient(135deg, #00b4d8, #2ecc71);
  color: #fff;

  border-radius: 14px;
  border: none;

  font-size: 15px;
  font-weight: 600;

  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
  transition: all 0.3s ease;
}
#user-current-local-time-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}


/*Progrees bar*/
/* Wrapper */
#learning-progress-wrapper {
  width: 100%;
  height: 10px;
  background: #e9ecef;
  border-radius: 50px;
  overflow: hidden;
  margin: 10px 0 20px 0;
}

/* Progress bar */
#learning-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00b4d8, #2ecc71);
  border-radius: 50px;
  transition: width 0.4s ease;
}
