/* =============================
   GLOBAL STYLE
============================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Segoe UI', Arial, sans-serif;
}

body{
background:#f4f7f6;
color:#333;
}



/* =============================
   NAVBAR
============================= */

.navbar{

display:flex;
justify-content:space-between;
align-items:center;

padding:15px 10%;

background:#2c3e50;
color:white;

position:sticky;
top:0;
z-index:1000;

}

.logo{
font-size:22px;
font-weight:bold;
}

.nav-links{
list-style:none;
display:flex;
}

.nav-links li{
margin-left:25px;
}

.nav-links a{
color:white;
text-decoration:none;
cursor:pointer;
font-weight:500;
transition:.3s;
}

.nav-links a:hover{
color:#3498db;
}



/* =============================
   PAGE SECTIONS
============================= */

.page{
display:none;
padding:40px 10%;
animation:fadeIn .4s;
}

.page.active{
display:block;
}

@keyframes fadeIn{
from{opacity:0}
to{opacity:1}
}



/* =============================
   HOME SECTION
============================= */

.hero{

text-align:center;
padding:120px 20px;
background:white;
border-radius:15px;
box-shadow:0px 5px 15px rgba(0,0,0,0.05);

}

.hero h1{

font-size:42px;
color:#2c3e50;
margin-bottom:10px;

}

.hero h2{

color:#7f8c8d;
margin-bottom:25px;

}



/* =============================
   BUTTON
============================= */

.btn{

padding:12px 28px;
background:#3498db;
border:none;
color:white;
border-radius:7px;
font-size:16px;
cursor:pointer;
transition:.3s;

}

.btn:hover{
background:#2980b9;
}



/* =============================
   SECTION TITLE
============================= */

.section-title{

margin-bottom:30px;
font-size:32px;
color:#2c3e50;
text-align:center;

}



/* =============================
   COURSE GRID
============================= */

.course-grid{

display:grid;
grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
gap:25px;

}



/* =============================
   COURSE CARD
============================= */

.course-card{

background:white;
padding:25px;
border-radius:12px;

border-top:6px solid #3498db;

box-shadow:0 5px 12px rgba(0,0,0,0.06);

transition:.3s;

text-align:center;

}

.course-card:hover{

transform:translateY(-6px);
box-shadow:0 8px 18px rgba(0,0,0,0.1);

}

.course-card h3{

font-size:18px;
margin-bottom:20px;
color:#2c3e50;

}



/* =============================
   READ BUTTON
============================= */

.read-btn{

background:#3498db;
color:white;

padding:10px 22px;

border-radius:6px;
border:none;

font-weight:bold;

cursor:pointer;

transition:.3s;

}

.read-btn:hover{

background:#2980b9;

}



/* =============================
   COURSE DETAIL VIEW
============================= */

#course-detail-view{

margin-top:20px;

}



.btn-back{

padding:10px 20px;

background:#7f8c8d;
color:white;

border:none;

border-radius:6px;

cursor:pointer;

margin-bottom:20px;

transition:.3s;

}

.btn-back:hover{

background:#636e72;

}



/* =============================
   DETAIL CONTENT BOX
============================= */

.rich-content{

background:white;

padding:40px;

border-radius:15px;

min-height:400px;

line-height:1.8;

box-shadow:0px 5px 15px rgba(0,0,0,0.05);

}



/* =============================
   COURSE TEXT
============================= */

.course-text{
display:none;
}

.course-text h1{

color:#2c3e50;

margin-bottom:20px;

border-bottom:2px solid #eee;

padding-bottom:10px;

}



/* =============================
   PDF LIST
============================= */

.course-text ul{

list-style:none;
margin-top:20px;

}

.course-text li{

margin:12px 0;

}



/* =============================
   PDF LINKS
============================= */

.course-text a{

display:block;

background:#f8fbff;

border-left:6px solid #3498db;

padding:14px 18px;

border-radius:7px;

text-decoration:none;

color:#2c3e50;

font-weight:500;

transition:.3s;

}



.course-text a:hover{

background:#eaf4fc;

transform:translateX(6px);

}



/* PDF ICON */

.course-text a::before{

content:"📄 ";
margin-right:5px;

}



/* =============================
   MOBILE RESPONSIVE
============================= */

@media(max-width:768px){

.navbar{

flex-direction:column;
gap:10px;

}

.hero{

padding:70px 20px;

}

.section-title{

text-align:center;

}

.course-grid{

grid-template-columns:1fr;

}

}

.profile-img {
    width: 200px;
    height: 230px;
    object-fit: cover;
    border-radius: 12px;   /* small curve edges */
    border: 3px solid #3b82f6;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    margin-bottom: 20px;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}