/*
Theme Name: Sunil English Hub
Author: Sunil
Version: 1.0

*/
* {
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial, sans-serif;
}
html, body{
overflow-x:hidden;
max-width:100%;
}
/* HEADER */

.site-search {
    max-width:100%;
    overflow:hidden;
    display:flex;
    align-items:center;
    gap:5px;
}

.site-search input {
    padding:6px 10px;
    border:1px solid #ccc;
    border-radius:4px;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
}

.header{
  background:white;
  padding:15px 0;
  border-bottom:1px solid #eee;
}
.header{
  position:sticky;
  top:0;
  z-index:1000;
}
.site-header{
background:#ffffff;
border-bottom:1px solid #eee;
position:sticky;
top:0;
z-index:999;
box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

/* Container */
.nav-container{
  width:90%;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.header-container{
max-width:1200px;
margin:auto;
padding:10px 20px;
display:flex;
align-items:center;
justify-content:space-between;
gap:20px;
position:relative;
}

.nav-menu li.current-menu-item a{
color:#FF5A2C;
font-weight:600;
}
.nav-menu li a{
text-decoration:none;
color:#0A1F44;
font-weight:500;
font-size:16px;
transition:0.3s;
}
.nav-menu li a:hover{
color:#FF5A2C;
}
/* LOGO */

.site-logo img{
height:60px;
width:auto;
display:block;
}

.logo h2{
  color:#0a4a7a;
}

/* Navigation menu */

.main-navigation{
position:relative;
display:flex;
align-items:center;
}
/* DESKTOP MENU ONLY */

@media (min-width:769px){

.main-navigation ul{
display:flex;
flex-direction:row;
align-items:center;
gap:20px;
}
}

/* MENU LIST */

.nav-menu{
list-style:none;
display:flex;
gap:20px;
margin:0;
padding:0;
}
.nav-menu li{
display:block;
}
.nav-menu li a{
text-decoration:none;
color:#0A1F44;
font-weight:500;
font-size:16px;
}
.nav-menu li a:hover{
color:#FF5A2C;
}

/* HAMBURGER BUTTON */

.menu-toggle{
display:none;
padding: 6px;
font-size:32px;
background:none;
border:none;
cursor:pointer;
}
/* DESKTOP MENU */



/* Search Box */
.search-box input{
  padding:7px 10px;
  border:1px solid #ccc;
  border-radius:4px;
}
/* BUTTON */

.join-btn{
background:#FF5A2C;
color:white;
padding:9px 18px;
border-radius:6px;
text-decoration:none;
font-weight:600;
transition:0.3s;
}
.join-btn:hover{
background:#e24a22;
}

/* Buttons */
.nav-buttons a{
  text-decoration:none;
  margin-left:10px;
  padding:7px 15px;
  border-radius:4px;
  font-size:14px;
}
.login{
  color:#0a4a7a;
}
.signup{
  background:#0a4a7a;
  color:white;
}
/* HERO SECTION */

.hero{
background:linear-gradient(rgba(10,74,122,0.85),rgba(10,74,122,0.85)),
url("https://images.unsplash.com/photo-1524995997946-a1c2e315a42f");
background-size:cover;
background-position:center;
color:white;
padding:30px 20px;
text-align:center;
}

.hero-container{
margin:auto;
}
.hero h1{
font-size:42px;
margin-bottom:20px;
line-height:1.3;
}
.hero h1 span{
color:#ffd24d;
}
.hero p{
font-size:18px;
line-height:1.6;
margin-bottom:10px;
color:white;
}


/* HERO BUTTONS */

.hero-buttons{
display:flex;
justify-content:center;
gap:20px;
flex-wrap:wrap;
}

.btn-secondary,.btn-primary {
border:2px solid white;
color:white;
padding:12px 26px;
border-radius:5px;
text-decoration:none;
font-weight:600;
}

.btn-secondary:hover,.btn-primary:hover {
background:white;
color:#0a4a7a;
}

/* LEARNING CATEGORIES */

.learning-categories{
padding:20px 20px;
background:#f7f9fc;
text-align:center;
}
.section-title{
font-size:32px;
margin-top:0px;
color:#0a4a7a;
text-align: center;
margin-bottom: 20px;
}
.categories-container{
max-width:1100px;
margin:auto;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:30px;
}
.category-card:hover{
transform:translateY(-6px);
}
.category-card h3{
margin-bottom:15px;
color:#0a4a7a;
}
.category-card p{
font-size:15px;
line-height:1.6;
margin-bottom:20px;
}
.category-card a{
text-decoration:none;
font-weight:600;
color:#0a4a7a;
}
/* TWO COLUMN ARTICLE SECTION */

.dual-lessons{
padding:20px 20px;
background:#ffffff;
}
.dual-container{
max-width:1100px;
margin:auto;
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
}
.column-title{
font-size:22px;
margin-bottom:25px;
color:#0a4a7a;
}
.lesson-card{
background:#f7f7f7;
padding:18px;
border-radius:6px;
margin-bottom:25px;
box-shadow:0 4px 10px rgba(0,0,0,0.07);
}
.lesson-card a{
text-decoration:none;
color:#333;
}
.lesson-card h4{
margin:10px 0;
font-size:17px;
color:#0a4a7a;
}
.lesson-card p{
font-size:14px;
line-height:1.6;
}
.lesson-image img{
width:100%;
height:auto;
border-radius:5px;

}

.menu-toggle.active{
transform:rotate(90deg);
transition:0.3s;
}

/* LESSON PAGE */

.lesson-page{
max-width:1200px;
margin:auto;
padding:60px 20px;
display:grid;
grid-template-columns:2fr 1fr;
gap:40px;
}
.lesson-title{
font-size:34px;
margin-bottom:10px;
color:#0a4a7a;
}
.lesson-meta{
font-size:14px;
color:#777;
margin-bottom:20px;
}
.lesson-featured-image img{
width:100%;
border-radius:6px;
margin-bottom:25px;
}
.lesson-text{
font-size:17px;
line-height:1.8;
}

/* SIDEBAR */

.lesson-sidebar{
background:#f7f9fc;
padding:25px;
border-radius:6px;
}
.lesson-sidebar h3{
margin-bottom:15px;
color:#0a4a7a;
}
.grammar-list{
list-style:none;
}
.grammar-list li{
margin-bottom:10px;
}
.grammar-list a{
text-decoration:none;
color:#333;
}
.grammar-list a:hover{
color:#FF5A2C;
}

.breadcrumb{
font-size:14px;
margin-bottom:20px;
color:#777;
}
.breadcrumb a{
text-decoration:none;
color:#0a4a7a;
}

/* TOP BAR */

.top-bar{
background:#0a4a7a;
color:white;
font-size:14px;
}
.top-bar-container{
max-width:1200px;
margin:auto;
padding:8px 20px;
display:flex;
justify-content:space-between;
align-items:center;
}
.top-links a{
color:white;
margin-left:15px;
text-decoration:none;
}
.top-links a:hover{
text-decoration:underline;
}

/* LATEST LESSONS */

.latest-lessons{
padding:80px 20px;
background:#f7f9fc;
}
.lessons-grid{
max-width:1100px;
margin:auto;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;
}
.table-of-contents{
background:#f7f9fc;
padding:20px;
border-left:4px solid #0a4a7a;
margin-bottom:30px;
}
.table-of-contents ul{
margin-top:10px;
padding-left:20px;
}
.table-of-contents a{
text-decoration:none;
color:#0a4a7a;
}
.exercise-box{
background:#fff7e6;
border-left:4px solid #ffb400;
padding:20px;
margin:25px 0;
}
.exercise-box h3{
margin-bottom:10px;
}
.lesson-navigation{
display:flex;
justify-content:space-between;
margin-top:40px;
}
.lesson-navigation a{
text-decoration:none;
color:#0a4a7a;
font-weight:600;
}
.lesson-progress{
background:#f7f9fc;
border-left:4px solid #0a4a7a;
padding:15px;
margin:15px 0 25px 0;
font-size:15px;
}

/* MEGA MENU */

.main-navigation ul li{
position:relative;
}

/* dropdown container */

.main-navigation ul li ul{
position:absolute;
top:100%;
left:0;
display:none;
background:white;
padding:25px;
width:600px;
box-shadow:0 8px 20px rgba(0,0,0,0.15);
grid-template-columns:repeat(2,1fr);
gap:20px;
}

/* show on hover */

.main-navigation ul li:hover ul{
display:grid;
}

/* submenu items */

.main-navigation ul li ul li{
width:100%;
list-style:none;
}
.main-navigation ul li ul li a{
display:block;
padding:6px 0;
font-size:15px;
color:#333;
}

.main-navigation ul li ul li a:hover {
    color: #FF5A2C;
}

/* mega menu titles */

.main-navigation ul li ul li.menu-title{
font-weight:700;
color:#0a4a7a;
margin-bottom:8px;
}
/* mega menu titles */

.main-navigation ul li ul li.menu-title{
font-weight:700;
color:#0a4a7a;
margin-bottom:8px;
}


/* Quiz */
.quiz-box{
background:#f7f9fc;
padding:25px;
border-radius:6px;
margin:30px 0;
}
.quiz-question{
margin-bottom:20px;
}
.quiz-question p{
font-weight:600;
margin-bottom:10px;
}

.quiz-result{
margin-top:20px;
font-weight:600;
color:#0a4a7a;
}
.quiz-btn{
background:#FF5A2C;
color:white;
padding:10px 18px;
border:none;
border-radius:5px;
cursor:pointer;
}
.courses-page{
max-width:1100px;
margin:auto;
padding:80px 20px;
}
.course-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;
}
.course-card{
background:white;
padding:30px;
border-radius:6px;
box-shadow:0 5px 15px rgba(0,0,0,0.08);
}
.course-card h3{
color:#0a4a7a;
margin-bottom:10px;
}
.course-card a{
text-decoration:none;
color:#FF5A2C;
font-weight:600;
}
.lesson-progress-bar{
width:100%;
height:8px;
background:#eee;
margin:20px 0;
border-radius:5px;
overflow:hidden;
}

/* FEATURED COURSES */

.featured-courses{
padding:80px 20px;
background:#ffffff;
text-align:center;
}
.course-grid{
max-width:1100px;
margin:auto;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;
}
.course-card{
background:white;
padding:35px 25px;
border-radius:8px;
box-shadow:0 8px 20px rgba(0,0,0,0.08);
transition:0.3s;
}
.course-card:hover{
transform:translateY(-6px);
}
.course-card h3{
color:#0a4a7a;
margin-bottom:10px;
}
.course-card p{
color:#666;
margin-bottom:20px;
}
.start-course-btn{
background:#FF5A2C;
color:white;
padding:10px 20px;
border-radius:5px;
text-decoration:none;
font-weight:600;

}
.start-course-btn:hover{
background:#e14a22;
}
.lesson-container{
max-width:800px;
margin:auto;
padding:40px 20px;
}
.lesson-content{
font-size:18px;
line-height:1.8;
margin-top:20px;
}
.lesson-content p{
margin-bottom:18px;
}
.breadcrumb{
font-size:14px;
color:#777;
margin-bottom:15px;
}
.breadcrumb a{
color:#0a4a7a;
text-decoration:none;
}

/* TABLE OF CONTENTS */

.toc-box{
background:#f7f9fc;
border-left:4px solid #FF5A2C;
padding:20px;
margin-bottom:30px;
border-radius:6px;
}
.toc-box h3{
margin-bottom:15px;
color:#0a4a7a;
}
.toc-box ul{
list-style:none;
padding-left:0;
}
.toc-box li{
margin-bottom:8px;
}
.toc-box a{
text-decoration:none;
color:#333;
}
.toc-box a:hover{
color:#FF5A2C;
}
.lesson-highlight{
background:#fff4e8;
border-left:4px solid #FF5A2C;
padding:18px;
margin:25px 0;
border-radius:6px;
font-weight:500;
}
.exercise-box{
background:#f7f9fc;
border:1px solid #e2e6ee;
padding:20px;
margin:30px 0;
border-radius:6px;
}
.exercise-box h3{
color:#0a4a7a;
margin-bottom:15px;
}
.lesson-summary{
background:#eef7ff;
border-left:4px solid #0a4a7a;
padding:20px;
margin-top:30px;
border-radius:6px;
}
.glossary-page{
max-width:900px;
margin:auto;
padding:80px 20px;
}
.glossary-list{
columns:3;
list-style:none;
padding:0;
}
.glossary-list li{
margin-bottom:12px;
}
.glossary-list a{
text-decoration:none;
color:#0a4a7a;
font-weight:500;
}
.glossary-list a:hover{
color:#FF5A2C;
}

.search-page{
max-width:900px;
margin:auto;
padding:80px 20px;
}
.search-item{
margin-bottom:30px;
padding-bottom:20px;
border-bottom:1px solid #eee;
}
.search-item h3{
margin-bottom:10px;
}
.search-item a{
text-decoration:none;
color:#0a4a7a;
}
.search-item a:hover{
color:#FF5A2C;
}
.lesson-progress{
margin:15px 0;
font-size:14px;
}


/* Related Lessons */

.related-lessons{
margin-top:40px;
padding-top:20px;
border-top:1px solid #eee;
}
.related-lessons h3{
margin-bottom:15px;
color:#0a4a7a;
}
.related-lessons ul{
list-style:none;
padding:0;
}
.related-lessons li{
margin-bottom:8px;
}
.related-lessons a{
text-decoration:none;
color:#FF5A2C;
}
.related-lessons a:hover{
text-decoration:underline;
}

/* Sidebar */

.course-sidebar{
background:#f7f9fc;
padding:20px;
border-radius:6px;
margin-bottom:25px;
}
.course-sidebar h3{
font-size:18px;
margin-bottom:15px;
color:#0a4a7a;
}
.course-sidebar ul{
list-style:none;
padding:0;
}
.course-sidebar li{
margin-bottom:8px;
font-size:14px;
}
.course-sidebar li a{
text-decoration:none;
color:#333;
}
.course-sidebar li a:hover{
color:#FF5A2C;
}
.current-lesson{
font-weight:600;
color:#FF5A2C;
}

/* Lesson Header*/
.lesson-header{

margin-bottom:25px;
padding-bottom:15px;
border-bottom:1px solid #eee;
}
.lesson-meta-info{
font-size:14px;
color:#666;
margin-top:8px;
display:flex;
gap:20px;
}
.lesson-title{
font-size:34px;
line-height:1.3;
color:#0A1F44;
}

/* Content Typography */

.lesson-text{
font-size:18px;
line-height:1.7;
color:#333;
}
.lesson-text h2{
margin-top:35px;
margin-bottom:10px;
color:#0a4a7a;
font-size:26px;
}
.lesson-text h3{
margin-top:25px;
color:#333;
}
.lesson-text p{
margin-bottom:18px;
}

/* Take awaya */
.key-takeaway{
background:#f7f9fc;
border-left:4px solid #FF5A2C;
padding:18px;
margin:25px 0;
}

/* Course Page */

.course-page{
max-width:900px;
margin:auto;
padding:60px 20px;
}
.course-title{
font-size:38px;
margin-bottom:10px;
color:#0a4a7a;
}
.course-description{
font-size:18px;
margin-bottom:40px;
color:#555;
}
.course-lessons{
display:grid;
gap:20px;
}
.course-lesson{
background:#f7f9fc;
padding:20px;
border-radius:6px;
box-shadow:0 4px 10px rgba(0,0,0,0.05);
}
.lesson-number{
font-size:13px;
color:#FF5A2C;
font-weight:600;
}
.course-lesson h3{
margin-top:5px;
font-size:20px;
}
.course-lesson a{
text-decoration:none;
color:#333;
}
.course-lesson a:hover{
color:#FF5A2C;
}

/* All Lessons */

.all-lessons-page{
max-width:1000px;
margin:auto;
padding:60px 20px;
}
.lesson-category{
margin-bottom:40px;
}
.lesson-category h2{
color:#0a4a7a;
margin-bottom:10px;
}
.lesson-category ul{
list-style:none;
padding:0;
}
.lesson-category li{
margin-bottom:6px;
}
.lesson-category a{
text-decoration:none;
color:#333;
}
.lesson-category a:hover{
color:#FF5A2C;
}

/* Featured-course */

.featured-course{
background:#f7f9fc;
padding:10px 20px;
text-align:center;
}

.course-highlight{
margin:auto;
}

.course-only {
  margin-top:20px;
  display:inline-block;
}
.home-intro {
    /* margin-left:20px;*/
}
.course-card a {
    color: #fff;
}

/* Start-here */

.start-here{
background:#f7f9fc;
padding:60px 20px;
text-align:center;
}
.start-intro{
margin-bottom:30px;
font-size:18px;
color:#555;
}
.start-lessons{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:25px;
}
.start-card{
background:white;
padding:20px;
border-radius:6px;
box-shadow:0 4px 12px rgba(0,0,0,0.08);
}
.step-number{
font-size:13px;
color:#FF5A2C;
font-weight:600;
}
.start-card h3{
margin-top:10px;
font-size:18px;
}
.start-card a{
text-decoration:none;
color:#333;
}
.start-card a:hover{
color:#FF5A2C;
}

/* Popular */

.popular-lessons{
padding:60px 20px;
background:#fff;
}
.popular-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:25px;
}
.popular-card{
background:#f7f9fc;
padding:20px;
border-radius:6px;
box-shadow:0 4px 10px rgba(0,0,0,0.08);
position:relative;
}
.popular-badge{
position:absolute;
top:10px;
right:10px;
background:#FF5A2C;
color:white;
font-size:12px;
padding:4px 8px;
border-radius:4px;
}
.popular-card h3{
margin-top:20px;
font-size:18px;
}
.popular-card a{
text-decoration:none;
color:#333;
}
.popular-card a:hover{
color:#FF5A2C;
}

/* Category-card */

.category-card,
.lesson-card,
.popular-card,
.course-card {
  transition: all 0.3s ease;
}

.category-card:hover,
.lesson-card:hover,
.popular-card:hover,
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* Page Course */

.course-page {
  max-width: 900px;
  margin: auto;
}
.course-progress {
  margin: 30px 0;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: orange;
  transition: 0.4s;
}
.course-lesson {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid #eee;
  margin-bottom: 10px;
  border-radius: 8px;
}
.lesson-number {
  background: orange;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  margin-right: 10px;
}
.mark-complete-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 5px;
}
.course-lesson.completed {
  opacity: 0.6;
}
.course-lesson.completed .lesson-number {
  background: green;
}
.course-lesson.locked {
  opacity: 0.4;
  pointer-events: none;
}
.category-page{
max-width:1100px;
margin:auto;
padding:60px 20px;
}
.category-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;
}
.category-card:hover{
transform:translateY(-5px);
}
.category-card h3{
color:#0a4a7a;
margin:10px 0;
}
.category-card p{
font-size:14px;
color:#555;
}
.category-card a{
text-decoration:none;
color:#333;
}
.category-image img{
width:100%;
border-radius:6px;
}

.view-all{
margin-top:15px;
text-align:right;
}

.view-all a{
text-decoration:none;
font-weight:600;
color:#FF5A2C;
}

.glossary-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
gap:20px;
max-width:1100px;
margin:auto;
}

.glossary-card{
background:#f7f9fc;
padding:20px;
border-radius:6px;
text-align:center;
box-shadow:0 4px 10px rgba(0,0,0,0.08);
}

.glossary-card h3{
color:#0a4a7a;
font-size:16px;
}
.glossary-card a {
    text-decoration: none;
}

.bangla {
     font-family: 'SolaimanLipi', 'Nikosh', Arial, sans-serif !important;
}

.lesson-intro{
background:#eef7ff;
padding:20px;
border-left:4px solid #0a4a7a;
margin-bottom:25px;
font-size:17px;
}

.lesson-objectives{
background:#f7f9fc;
padding:20px;
margin-bottom:25px;
border-radius:6px;
}
.lesson-objectives ul{
padding-left:20px;
}

.lesson-example{
background:#f0fff4;
padding:15px;
border-left:4px solid #28a745;
margin:20px 0;
}

.lesson-highlight{
background:#fff4e8;
border-left:4px solid #FF5A2C;
padding:18px;
margin:25px 0;
border-radius:6px;
font-weight:500;
}

.lesson-summary{
background:#eef7ff;
border-left:4px solid #0a4a7a;
padding:20px;
margin-top:30px;
border-radius:6px;
}

/* SIDEBAR LEARNING SYSTEM */

.course-sidebar-box{
background:#ffffff;
padding:20px;
border-radius:8px;
box-shadow:0 5px 15px rgba(0,0,0,0.08);
margin-bottom:25px;
}

.course-title{
font-size:18px;
color:#0a4a7a;
margin-bottom:15px;
}

/* Progress */

.course-progress{
margin-bottom:20px;
}

.progress-bar{
width:100%;
height:10px;
background:#eee;
border-radius:5px;
overflow:hidden;
margin-top:6px;
margin-bottom:6px;
}

.progress-text{
font-size:13px;
color:#666;
}

/* Lesson list */

.course-lessons-list{
list-style:none;
padding:0;
}

.course-lessons-list li{
margin-bottom:10px;
font-size:14px;
}

.course-lessons-list li a{
text-decoration:none;
color:#333;
}

.course-lessons-list li a:hover{
color:#FF5A2C;
}

/* Current lesson */

.course-lessons-list li.current{
font-weight:600;
color:#FF5A2C;
}

/* Locked lesson */

.course-lessons-list li.locked a{
color:#aaa;
pointer-events:none;
cursor:not-allowed;
}

/* SMART NAVIGATION */

.smart-navigation{
display:flex;
justify-content:space-between;
margin-top:40px;
padding-top:20px;
border-top:1px solid #eee;
}

.smart-navigation a{
text-decoration:none;
font-weight:600;
color:#0a4a7a;
background:#f7f9fc;
padding:10px 16px;
border-radius:5px;
transition:0.3s;
}

.smart-navigation a:hover{
background:#FF5A2C;
color:#fff;
}

.smart-navigation .disabled{
color:#aaa;
font-weight:500;
}

/* CONTINUE LEARNING - IMPROVED DESIGN */

#continue-learning-box {
    display: flex;
    justify-content: center;   /* center horizontally */
    margin-top: 20px;
}
/*
.continue-card {
    background: #ffd24d; /* soft yellow */
   /* padding: 20px 25px;
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    text-align: center; /* center text */
  /*  position: relative;
   box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    display: inline-block;
    max-width: 350px;
}*/

.continue-card {
border:2px solid white;
color:white;
padding:12px 26px;
border-radius:5px;
text-decoration:none;
font-weight:600;
background: #23085a;
max-width: 350px;
}

.continue-label {
    font-size: 14px;
    color: #000;
    margin-bottom: 8px;
}

.continue-btn {
    display: inline-block;
    font-size: 17px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
}

.continue-btn:hover {
    text-decoration: underline;
}

/* Close button (top right) */
.close-continue {
    position: absolute;
    top: 8px;
    right: 12px;
    cursor: pointer;
    font-size: 18px;
    color: #888;
}

.close-continue:hover {
    color: #000;
}

/* ===== CATEGORY PAGE CLEAN DESIGN ===== */

.category-page {
    padding: 40px 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* GRID LAYOUT */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

/* CARD DESIGN */
.category-card {
    background: #ffffff;
    padding:20px;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* IMAGE */
.category-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* CONTENT */
.category-content {
    padding: 15px;
}

.category-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.category-content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

/* READ MORE */
.read-more {
    font-size: 14px;
    font-weight: bold;
    color: #0073aa;
}

/* PAGINATION */
.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 5px;
    padding: 8px 14px;
    background: #f1f1f1;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
}

.pagination .current {
    background: #0073aa;
    color: #fff;
}

/* ===== MOBILE RESPONSIVE ===== */

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-image img {
        height: 200px;
    }
}


/* ===== GLOBAL MOBILE FIX ===== */


#continue-learning-box {
    text-align: center;
    margin-top: 20px;
}

.continue-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.menu-item a[href="#"]{
    font-weight:700;
    color:#0a4a7a;
    cursor:default;
}

/* ===== TRUST SECTION IMPROVED ===== */

.trust-section{
padding:80px 20px;
background:#f7f9fc;
text-align:center;
}

.trust-section .section-title{
margin-bottom:40px;
}

.trust-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:30px;
max-width:1000px;
margin:auto;
}

.trust-box{
background:#ffffff;
padding:30px 25px;
border-radius:10px;
box-shadow:0 8px 20px rgba(0,0,0,0.08);
text-align:center;
transition:0.3s;
}

.trust-box:hover{
transform:translateY(-5px);
}

/* FIX TEXT LOOK */

.trust-box h3{
color:#0a4a7a;
margin-bottom:12px;
font-size:20px;
}

.trust-box p{
color:#555;
font-size:15px;
line-height:1.7;
max-width:260px;
margin:auto;
}

/* ===== GLOSSARY IMPROVED ===== */

.glossary-preview{
padding:70px 20px;
background:#ffffff;
text-align:center;
}

.glossary-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:25px;
max-width:900px;
margin:auto;
margin-top:30px;
}

.glossary-card{
background:#f7f9fc;
padding:20px;
border-radius:8px;
box-shadow:0 4px 12px rgba(0,0,0,0.08);
transition:0.3s;
}

.glossary-card:hover{
transform:translateY(-5px);
}

.glossary-card h3{
color:#0a4a7a;
font-size:16px;
line-height:1.4;
}

/* REMOVE UNDERLINE */
.glossary-card a{
text-decoration:none;
color:inherit;
}

.glossary-card h3:hover{
color:#FF5A2C;
}
.course-only {
    background: #e14a22;
}

/* ===== SEARCH PAGE UPGRADE ===== */

.search-page{
max-width:1100px;
margin:auto;
padding:60px 20px;
}

.search-results-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:25px;
margin-top:30px;
}

.search-card{
background:#fff;
border-radius:12px;
overflow:hidden;
box-shadow:0 4px 12px rgba(0,0,0,0.08);
transition:0.3s;
}

.search-card:hover{
transform:translateY(-5px);
box-shadow:0 10px 24px rgba(0,0,0,0.12);
}

.search-card-link{
display:block;
text-decoration:none;
color:inherit;
}

.search-card-image img{
width:100%;
height:180px;
object-fit:cover;
display:block;
}

.search-card-content{
padding:18px;
}

.search-card-title{
font-size:20px;
line-height:1.4;
color:#0a4a7a;
margin-bottom:10px;
}

.search-card-excerpt{
font-size:15px;
line-height:1.7;
color:#555;
margin-bottom:12px;
}

.search-read-more{
font-size:14px;
font-weight:600;
color:#FF5A2C;
}

.no-results{
text-align:center;
padding:40px 20px;
}



/* ===== PAGE TEMPLATE ===== */

.page-container{
max-width:900px;
margin:auto;
padding:60px 20px;
}

.page-title{
font-size:34px;
color:#0a4a7a;
margin-bottom:20px;
text-align:center;
}

.page-content{
font-size:17px;
line-height:1.8;
color:#333;
}

.page-content p{
margin-bottom:18px;
}

/* ===== CONTACT FORM ===== */

.contact-form{
max-width:500px;
margin-top:20px;
}

.contact-form input,
.contact-form textarea{
width:100%;
padding:10px;
border:1px solid #ccc;
border-radius:6px;
margin-top:5px;
}

.contact-form button{
background:#FF5A2C;
color:white;
padding:10px 18px;
border:none;
border-radius:6px;
cursor:pointer;
}

.contact-form button:hover{
background:#e24a22;
}

.contact-notice{
max-width:500px;
margin:20px 0;
padding:12px 15px;
border-radius:6px;
font-weight:600;
}

.contact-notice.success{
background:#eaf7ea;
color:#1f6b2a;
border-left:4px solid #28a745;
}

.contact-notice.error{
background:#fdeaea;
color:#8a1f1f;
border-left:4px solid #dc3545;
}

.required{
color:#e53935;
font-weight:bold;
margin-left:3px;
}

.form-note{
font-size:14px;
color:#666;
margin-bottom:15px;
}

/* ===== FOOTER FIX ===== */

.site-footer{
background:#0a4a7a;
color:#fff;
margin-top:60px;
}

.footer-container{
max-width:1200px;
margin:auto;
padding:20px;
text-align:center;
}

.site-footer p{
margin:0;
font-size:14px;
}

/* ===== STICKY FOOTER FIX ===== */

html, body{
height:100%;
}

body{
display:flex;
flex-direction:column;
min-height:100vh;
}

.site-main{
flex:1;
}
/* ===== HOMEPAGE WIDTH FIX FINAL ===== */

/* Hero stays full width */
.hero{
width:100%;
max-width:none;
margin:0;
}

/* Homepage sections: same outer width as header */

.featured-course,
.home-intro,
.start-here,
.learning-categories,
.popular-lessons,
.dual-lessons,
.glossary-preview,
.trust-section{
width:min(1200px, calc(100% - 40px));
margin-left:auto;
margin-right:auto;
}

/* Same inner content width for homepage sections */
.course-highlight,
.home-intro p,
.start-lessons,
.categories-container,
.popular-grid,
.dual-container,
.glossary-grid,
.trust-grid{
max-width:1100px;
margin-left:auto;
margin-right:auto;
}

/* Optional: keep titles aligned with the same content width */
.home-intro h2,
.start-here .section-title,
.learning-categories .section-title,
.popular-lessons .section-title,
.dual-lessons .section-title,
.glossary-preview .section-title,
.trust-section .section-title{
max-width:1100px;
margin-left:auto;
margin-right:auto;
}


img,
iframe,
video{
max-width:100%;
height:auto;
}

@media(max-width:768px){
body {
font-size: 16px;
}
.site-main {
padding: 0 15px;
}
h1 {
font-size: 24px;
line-height: 1.3;
}
h2 {
font-size: 20px;
}
p {
font-size: 15px;
line-height: 1.6;
}
.main-navigation ul li ul{
position:relative;
width:100%;
padding:10px;
display:block;
box-shadow:none;
}
.hero{
padding:90px 20px;
text-align: center;
}
.hero h1{
font-size:32px;
}
.hero p {
        font-size: 15px;
    }

.hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }

.hero-buttons a {
        width: 100%;
        text-align: center;
    }
.category-grid,
.popular-grid,
.glossary-grid {
grid-template-columns: 1fr;
}
.category-card,
.popular-card,
.glossary-card {
margin-bottom: 15px;
    }
.lesson-page{
grid-template-columns:1fr;
}
.dual-container{
grid-template-columns:1fr;
}
.start-lessons {
display: flex;
flex-direction: column;
gap: 15px;
}
.start-card {
padding: 15px;
}
.lesson-page {
display: block;
}
.lesson-content {
        width: 100%;
}
.lesson-sidebar {
margin-top: 30px;
}
.search-results-grid{
grid-template-columns:1fr;
}
.header-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 12px;
    min-height:90px;
    gap:10px;
  }

  .site-logo{
    flex:1 1 auto;
    min-width: 40px;
    display:flex;
    align-items:center;
  }

  .site-logo a{
    display:flex;
    align-items:center;
  }

  .site-logo img,
  .site-logo .custom-logo{
    height:82px;
    width:auto;
    display:block;
    max-width:none;
  }

  .site-search{
    flex:0 0 96px;
    max-width:96px;
    display:flex;
    align-items:center;
    overflow:hidden;
  }

  .site-search input{
    width:100%;
    height:34px;
    font-size:13px;
    padding:6px 8px;
    box-sizing:border-box;
  }

  .menu-toggle{
    display:block;
    flex-shrink:0;
    font-size:30px;
    line-height:1;
    padding:5px;
    background:none;
    border:none;
    cursor:pointer;
  }

  .nav-menu{
    display:none;
    flex-direction:column;
    align-items:center;
    position:absolute;
    top:68px;
    left:50%;
    width:92vw;
    max-width:320px;
    background:white;
    padding:20px;
    border-radius:8px;
    box-shadow:0 8px 20px rgba(0,0,0,0.15);
    box-sizing:border-box;
    opacity:0;
    transform:translateY(-10px);
    transition:all 0.3s ease;
    max-height:75vh;      /* 👈 key fix */
    overflow-y:auto;
    padding:16px 16px;
  }

  .nav-menu.active{
    display:flex;
    opacity:1;
    transform:translateX(-50%) translateY(0);
  }

  .nav-menu li{
    width:100%;
    text-align:center;
    margin-bottom: 2px;
  }
  .nav-menu li a{
    display:block;
    width:100%; 
    padding:5px 0;
  }
  .nav-menu li:last-child{
    margin-bottom:0;
}
}

/* ===== MENU OVERLAY ===== */

/* ===== MENU OVERLAY ===== */

.menu-overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.25);
    backdrop-filter:blur(6px);
    opacity:0;
    visibility:hidden;
    transition:all 0.3s ease;
    z-index:1000;
}

.menu-overlay.active{
    opacity:1;
    visibility:visible;
}

/* Header must stay above overlay */
.site-header{
    position:sticky;
    top:0;
    z-index:1002;
}

/* Header container above overlay */
.header-container{
    position:relative;
    z-index:1003;
}

/* Mobile menu above everything */
@media(max-width:768px){

  .nav-menu{
    display:none;
    flex-direction:column;
    align-items:center;
    position:absolute;
    top:68px;
    left:50%;
    transform:translateX(-50%) translateY(-10px);
    width:92vw;
    max-width:320px;
    max-height:75vh;
    overflow-y:auto;
    background:white;
    padding:16px;
    border-radius:8px;
    box-shadow:0 8px 20px rgba(0,0,0,0.15);
    box-sizing:border-box;
    opacity:0;
    transition:all 0.3s ease;
    z-index:1004;
  }

  .nav-menu.active{
    display:flex;
    opacity:1;
    transform:translateX(-50%) translateY(0);
  }

  .nav-menu li{
    width:100%;
    text-align:center;
    margin-bottom:6px;
  }

  .nav-menu li:last-child{
    margin-bottom:0;
  }

  .nav-menu li a{
    display:block;
    width:100%;
    padding:8px 0;
  }
}

@media(max-width:768px){

  .nav-menu{
    display:none;
    flex-direction:column;
    align-items:center;
    position:absolute;
    top:68px;
    left:50%;
    transform:translateX(-50%) translateY(-10px);
    width:92vw;
    max-width:320px;
    max-height:75vh;
    overflow-y:auto;
    background:white;
    padding:16px;
    border-radius:8px;
    box-shadow:0 8px 20px rgba(0,0,0,0.15);
    box-sizing:border-box;
    opacity:0;
    transition:all 0.3s ease;
    z-index:1004;
  }

  .nav-menu.active{
    display:flex;
    opacity:1;
    transform:translateX(-50%) translateY(0);
  }

}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.lesson-page {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(280px, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    align-items: start;
}

.lesson-content {
    background: #ffffff;
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.breadcrumb {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 22px;
    line-height: 1.7;
    word-break: break-word;
}

.breadcrumb a {
    color: #0b57d0;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.lesson-header {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.lesson-title {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 14px;
    color: #111827;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lesson-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 18px;
    align-items: center;
}

.lesson-meta-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lesson-featured-image {
    margin-bottom: 30px;
}

.lesson-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.lesson-text {
    font-size: 18px;
    line-height: 1.9;
    color: #1f2937;
}

.lesson-text > *:first-child {
    margin-top: 0;
}

.lesson-text h2 {
    font-size: 31px;
    line-height: 1.3;
    margin-top: 42px;
    margin-bottom: 16px;
    color: #0f2f63;
    font-weight: 700;
}

.lesson-text h3 {
    font-size: 24px;
    line-height: 1.4;
    margin-top: 30px;
    margin-bottom: 12px;
    color: #17448c;
    font-weight: 600;
}

.lesson-text p {
    margin-bottom: 20px;
}

.lesson-text ul,
.lesson-text ol {
    margin-bottom: 22px;
    padding-left: 24px;
}

.lesson-text li {
    margin-bottom: 10px;
}

.lesson-text strong {
    color: #111827;
    font-weight: 700;
}

.lesson-text a {
    color: #0b57d0;
    text-decoration: none;
    text-underline-offset: 2px;
}

.lesson-text a:hover {
    color: #083b8a;
}

.lesson-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.lesson-text blockquote {
    margin: 28px 0;
    padding: 18px 20px;
    border-left: 4px solid #0b57d0;
    background: #f8fbff;
    color: #374151;
    border-radius: 8px;
}

.lesson-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 16px;
}

.lesson-text th,
.lesson-text td {
    border: 1px solid #dbe3ea;
    padding: 12px 14px;
    text-align: left;
}

.lesson-text th {
    background: #f4f8fc;
    font-weight: 600;
    color: #111827;
}

.lesson-text code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.95em;
}

.lesson-text pre {
    background: #111827;
    color: #f9fafb;
    padding: 18px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
}

@media (max-width: 900px) {
    .lesson-page {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .lesson-content {
        padding: 28px;
    }

    .lesson-title {
        font-size: 32px;
    }

    .lesson-text h2 {
        font-size: 27px;
    }

    .lesson-text h3 {
        font-size: 22px;
    }
}

@media (max-width: 600px) {
    .lesson-page {
        margin: 24px auto;
        padding: 0 14px;
    }

    .lesson-content {
        padding: 20px;
        border-radius: 12px;
    }

    .breadcrumb {
        font-size: 13px;
    }

    .lesson-title {
        font-size: 27px;
    }

    .lesson-meta-info {
        font-size: 13px;
        gap: 10px 14px;
    }

    .lesson-text {
        font-size: 17px;
        line-height: 1.8;
    }

    .lesson-text h2 {
        font-size: 24px;
        margin-top: 34px;
    }

    .lesson-text h3 {
        font-size: 20px;
    }

    .lesson-text table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.category-page {
    padding: 40px 20px 60px;
    background: #f8fbff;
}

.category-page .container {
    max-width: 1200px;
    margin: 0 auto;
}

.category-header {
    margin-bottom: 32px;
    text-align: center;
}

.category-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0b57d0;
    margin-bottom: 10px;
}

.section-title {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 14px;
    color: #111827;
}

.category-description {
   /* max-width: 760px;*/
    margin: 0 auto;
    font-size: 18px;
    text-align:justify;
    line-height: 1.8;
    color: #4b5563;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.category-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
}

.category-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.category-image {
    background: #eaf2ff;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.category-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
}

.category-content {
    padding: 22px;
}

.category-card-title {
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 12px;
    color: #111827;
}

.category-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 16px;
}

.read-more {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: #0b57d0;
}

.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    background: #ffffff;
    color: #0b57d0;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pagination .page-numbers.current {
    background: #0b57d0;
    color: #ffffff;
}

.no-posts-found {
    text-align: center;
    background: #ffffff;
    padding: 40px 20px;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
}

.no-posts-found h2 {
    margin-bottom: 10px;
    color: #111827;
}

.no-posts-found p {
    color: #6b7280;
    font-size: 16px;
}

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-title {
        font-size: 34px;
    }
}

@media (max-width: 640px) {
    .category-page {
        padding: 28px 14px 40px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .category-description {
        font-size: 16px;
    }

    .category-content {
        padding: 18px;
    }

    .category-card-title {
        font-size: 20px;
    }
}

.search-page {
    padding: 40px 20px 60px;
    background: #f8fbff;
}

.search-page .container {
    max-width: 1200px;
    margin: 0 auto;
}

.search-header {
    text-align: center;
    margin-bottom: 32px;
}

.search-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0b57d0;
    margin-bottom: 10px;
}

.search-header .section-title {
    font-size: 38px;
    line-height: 1.25;
    margin-bottom: 12px;
    color: #111827;
}

.search-header .section-title span {
    color: #0b57d0;
}

.search-result-count {
    font-size: 16px;
    color: #6b7280;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.search-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.search-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
}

.search-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.search-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eaf2ff;
}

.search-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
}

.search-card-content {
    padding: 22px;
}

.search-card-title {
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 12px;
    color: #111827;
}

.search-card-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 16px;
}

.search-read-more {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: #0b57d0;
}

.no-results {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    background: #ffffff;
    padding: 40px 24px;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
}

.no-results h2 {
    margin-bottom: 12px;
    color: #111827;
}

.no-results p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 20px;
}

.search-form-wrap {
    max-width: 520px;
    margin: 0 auto;
}

.search-form-wrap form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.search-form-wrap input[type="search"] {
    flex: 1;
    min-width: 240px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 16px;
}

.search-form-wrap input[type="submit"] {
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background: #0b57d0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    background: #ffffff;
    color: #0b57d0;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pagination .page-numbers.current {
    background: #0b57d0;
    color: #ffffff;
}

@media (max-width: 992px) {
    .search-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-header .section-title {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    .search-page {
        padding: 28px 14px 40px;
    }

    .search-results-grid {
        grid-template-columns: 1fr;
    }

    .search-header .section-title {
        font-size: 26px;
    }

    .search-result-count {
        font-size: 15px;
    }

    .search-card-content {
        padding: 18px;
    }

    .search-card-title {
        font-size: 20px;
    }
}

.custom-search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.custom-search-field {
    flex: 1;
    min-width: 240px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 16px;
    background: #ffffff;
    color: #111827;
}

.custom-search-field:focus {
    outline: none;
    border-color: #0b57d0;
    box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.12);
}

.custom-search-submit {
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background: #0b57d0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.custom-search-submit:hover {
    background: #0847ad;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

/* Extra Links */

a.link_dec {
  color: #007bff; /* A nice professional blue */
  text-decoration: none; /* Removes the default underline */
  font-weight: bold; /* Makes it stand out in the text */
  transition: color 0.3s ease; /* Smoothly changes color when hovering */
}

.link_dec:hover {
  color: #0056b3; /* Darker blue on hover */
  text-decoration: underline; /* Adds the underline back only when hovering */
}

.answer-key {
    margin-top: 20px;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f9fa;
}

.answer-key summary {
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #0d47a1;
}

.answer-key summary:hover {
    color: #ff6f00;
}

html,
body,
.site-main,
.lesson-page,
.lesson-content{
  overflow-y: visible !important;
}

/* ===== ALL LESSONS LIBRARY ===== */

.all-lessons-library{
max-width:1200px;
margin:auto;
padding:60px 20px;
}

.library-intro{
max-width:800px;
margin:0 auto 40px auto;
text-align:center;
font-size:17px;
line-height:1.7;
color:#555;
}

.library-section{
margin-bottom:60px;
}

.library-section h2{
font-size:28px;
color:#0a4a7a;
margin-bottom:25px;
border-left:5px solid #FF5A2C;
padding-left:12px;
}

.library-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
}

.library-card{
background:#ffffff;
border-radius:10px;
padding:22px;
box-shadow:0 5px 15px rgba(0,0,0,0.08);
transition:0.3s;
}

.library-card:hover{
transform:translateY(-5px);
box-shadow:0 10px 24px rgba(0,0,0,0.12);
}

.library-card a{
text-decoration:none;
color:inherit;
}

.library-card h3{
font-size:18px;
line-height:1.4;
color:#0a4a7a;
margin-bottom:10px;
}

.library-card p{
font-size:14px;
line-height:1.6;
color:#555;
}

@media(max-width:768px){
.all-lessons-library{
padding:40px 15px;
}

.library-section h2{
font-size:22px;
}

.library-grid{
grid-template-columns:1fr;
}
}

.category-label {
    display: none;
}

.category-image {
    background: #eaf2ff;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
