/* ==========================================
   GWALNET CHAPTER TUTORIAL CSS
========================================== */

*{
    margin:20;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Segoe UI',sans-serif;
    background:#f4f7fb;
    color:#333;
    line-height:1.7;
}

/* ==========================================
PAGE CONTAINER
========================================== */
.mainbox{
    margin-left:20%;
}
}
.page-content{
    width:80%;
    margin-left:20%;
    padding:30px;
}

/* ==========================================
BREADCRUMB
========================================== */

.breadcrumb{
    background:#fff;
    padding:15px 20px;
    border-radius:10px;
    margin-bottom:25px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
	
}

.breadcrumb a{
    color:#2563eb;
    text-decoration:none;
    font-weight:600;
	
}

.breadcrumb span{
    margin:0 8px;
    color:#666;
}

/* ==========================================
HERO
========================================== */

.chapter-hero{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    background:linear-gradient(135deg,#2563eb,#06b6d4);
    color:#fff;
    padding:15px;
    border-radius:10px;
    margin-bottom:8px;
	
}

.hero-left{
    flex:1;
}

.hero-right{
    flex:1;
    text-align:center;
}

.hero-right img{
    max-width:100%;
    height:300px;
    object-fit:contain;
}

.chapter-tag{
    display:inline-block;
    background:#fff;
    color:#2563eb;
    padding:6px 15px;
    border-radius:50px;
    font-size:14px;
    font-weight:bold;
    margin-bottom:20px;
	
}

.chapter-hero h1{
    font-size:20px;
    margin-bottom:20px;
}

.chapter-hero p{
    font-size:15px;
    margin-bottom:25px;
}

.hero-buttons{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.hero-buttons a{
    background:#fff;
    color:#2563eb;
    text-decoration:none;
    padding:12px 24px;
    border-radius:40px;
    font-weight:bold;
    transition:.3s;
}

.hero-buttons a:hover{
    transform:translateY(-4px);
}

/* ==========================================
INFO CARDS
========================================== */

.chapter-info{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-bottom:30px;
	
}

.info-card{
    background:#fff;
    text-align:center;
    padding:25px;
    border-radius:15px;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
}

.info-card i{
    font-size:40px;
    color:#2563eb;
    margin-bottom:12px;
}

/* ==========================================
COMMON CARDS
========================================== */

.chapter-card,
.progress-card,
.download-card,
.summary-card,
.activity-box,
.fact-box,
.quiz-box,
.quiz-card,
.solution-card{
    background:#fff;
    padding:30px;
    margin-bottom:25px;
    border-radius:15px;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
}

.chapter-card h2,
.progress-card h2,
.download-card h2,
.summary-card h2{
    margin-bottom:18px;
    color:#2563eb;
}

/* ==========================================
PROGRESS BAR
========================================== */

.progress{
    background:#ddd;
    border-radius:40px;
    overflow:hidden;
    height:18px;
}

.progress-bar{
    width:0%;
    height:100%;
    background:#10b981;
    color:#fff;
    text-align:center;
    font-size:12px;
}

/* ==========================================
TOC
========================================== */

.toc{
    background:#fff;
    padding:30px;
    border-radius:15px;
    margin-bottom:30px;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
}

.toc-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:15px;
    margin-top:20px;
}

.toc-grid a{
    text-decoration:none;
    background:#2563eb;
    color:#fff;
    text-align:center;
    padding:12px;
    border-radius:8px;
}

/* ==========================================
GRID BOXES
========================================== */

.example-grid,
.revision-grid,
.properties-grid,
.video-grid,
.related-grid,
.facts-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-top:20px;
}

.example-box,
.revision-card,
.property-card,
.video-card,
.fact-item{
    background:#f8fafc;
    padding:20px;
    border-radius:10px;
    text-align:center;
    border:1px solid #e5e7eb;
}

.video-card i{
    font-size:50px;
    color:#ef4444;
    margin-bottom:10px;
}

/* ==========================================
DEFINITION
========================================== */

.definition-box,
.important-box,
.tip-box,
.formula-box,
.answer-box,
.solution-box{
    background:#eef6ff;
    border-left:5px solid #2563eb;
    padding:18px;
    margin:20px 0;
    border-radius:8px;
}

/* ==========================================
DIAGRAM
========================================== */

.diagram-card{
    background:#fafafa;
    border:1px solid #ddd;
    padding:20px;
    border-radius:10px;
    text-align:center;
    margin:20px 0;
}

.diagram-card pre{
    font-size:18px;
    overflow:auto;
}

/* ==========================================
TABLE
========================================== */

.topic-table{
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
}

.topic-table th{
    background:#2563eb;
    color:#fff;
}

.topic-table th,
.topic-table td{
    border:1px solid #ddd;
    padding:12px;
}

/* ==========================================
MCQ
========================================== */

.mcq-box{
    background:#fff;
    border-left:5px solid #10b981;
    padding:20px;
    margin-bottom:20px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

/* ==========================================
DOWNLOAD
========================================== */

.download-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    margin-top:20px;
}

.download-buttons a{
    text-decoration:none;
    background:#2563eb;
    color:#fff;
    padding:12px 20px;
    border-radius:8px;
}

/* ==========================================
FAQ
========================================== */

.faq-item{
    margin-bottom:20px;
}

.faq-item h3{
    color:#2563eb;
    margin-bottom:8px;
}

/* ==========================================
CHAPTER COMPLETE
========================================== */

.chapter-complete{
    background:linear-gradient(135deg,#10b981,#059669);
    color:#fff;
    text-align:center;
    padding:45px;
    border-radius:18px;
    margin:40px 0;
}

.chapter-complete i{
    font-size:60px;
    margin-bottom:20px;
}

.complete-buttons{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
    margin-top:25px;
}

.complete-buttons a{
    background:#fff;
    color:#10b981;
    text-decoration:none;
    padding:12px 20px;
    border-radius:8px;
    font-weight:bold;
}

/* ==========================================
BOTTOM NAVIGATION
========================================== */

.chapter-navigation{
    display:flex;
    justify-content:space-between;
    gap:15px;
    flex-wrap:wrap;
    margin:30px 0;
}

.chapter-navigation a{
    flex:1;
    text-align:center;
    background:#2563eb;
    color:#fff;
    text-decoration:none;
    padding:15px;
    border-radius:8px;
    font-weight:bold;
}

/* ==========================================
RESPONSIVE
========================================== */

@media(max-width:992px){

.page-content{
    width:100%;
    margin-left:0;
    padding:20px;
}

.chapter-hero{
    flex-direction:column;
    text-align:center;
}

.hero-right img{
    height:220px;
}

.chapter-hero h1{
    font-size:32px;
}

}

@media(max-width:768px){

.hero-buttons,
.download-buttons,
.complete-buttons{
    flex-direction:column;
}

.chapter-navigation{
    flex-direction:column;
}

.topic-table{
    display:block;
    overflow-x:auto;
}

}
.tip-card{
    background:#fff;
    padding:30px;
    margin-bottom:25px;
    border-radius:15px;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
}