/* ===========================================================
GOOGLE FONT & RESET
=========================================================== */

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
scroll-behavior:smooth;
}

:root{

--primary:#00C853;
--secondary:#009245;
--dark:#111111;
--white:#ffffff;
--light:#f8f9fa;
--border:#e5e7eb;
--text:#666666;

}

body{

background:var(--light);
color:var(--dark);
overflow-x:hidden;

}

.container{

width:90%;
max-width:1350px;
margin:auto;

}

/* ===========================================================
TOP BAR
=========================================================== */

.top-bar{

background:linear-gradient(90deg,#00C853,#009245);
color:#fff;
padding:10px 0;
font-size:15px;

}

.top-bar p{

display:flex;
justify-content:center;
align-items:center;
gap:18px;

}

/* ===========================================================
HEADER
=========================================================== */

header{

position:sticky;
top:0;
z-index:999;
background:#fff;
box-shadow:0 5px 20px rgba(0,0,0,.08);

}

header .container{

height:90px;
display:flex;
justify-content:space-between;
align-items:center;

}

.logo img{

height:80px;
transition:.3s;

}

.logo img:hover{

transform:scale(1.05);

}

nav ul{

display:flex;
gap:35px;
list-style:none;

}

nav ul li a{

text-decoration:none;
font-weight:600;
color:#111;
transition:.3s;

}

nav ul li a:hover,
nav ul li a.active{

color:var(--primary);

}

.login-btn{

background:var(--primary);
color:#fff;
padding:13px 28px;
border-radius:40px;
text-decoration:none;
font-weight:600;
transition:.3s;

}

.login-btn:hover{

background:#009245;

}

/* ===========================================================
PROFILE DROPDOWN
=========================================================== */

.profile-dropdown{
    position:relative;
    display:inline-block;
}

.profile-btn{
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:#00C853;
    color:#fff;
    font-size:26px;
    cursor:pointer;
}


.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 170px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: none;
    overflow: hidden;
    z-index: 9999;
}

/* Keep the menu open while the cursor enters the dropdown */
.profile-dropdown:hover .dropdown-content,
.profile-dropdown:focus-within .dropdown-content {
    display: block;
}


.profile-dropdown:hover .dropdown-content{
    display:block;
}

.dropdown-content a{
    display:block;
    padding:15px;
    color:#111;
    text-decoration:none;
    font-weight:600;
}

.dropdown-content a:hover{
    background:#f5f5f5;
}

/* ===========================================================
HERO
=========================================================== */

.course-hero{

padding:80px 0;
background:linear-gradient(135deg,#ffffff,#e9fff2);

}

.course-hero h1{

font-size:55px;
text-align:center;
margin-bottom:20px;

}

.course-hero h1 span{

color:var(--primary);

}

.course-hero p{

text-align:center;
font-size:18px;
max-width:800px;
margin:auto;
line-height:1.8;
color:#666;

}

.search-box{

margin:45px auto 0;
display:flex;
max-width:700px;
background:#fff;
border-radius:60px;
overflow:hidden;
box-shadow:0 10px 25px rgba(0,0,0,.08);

}

.search-box input{

flex:1;
padding:18px;
border:none;
outline:none;
font-size:16px;

}

.search-box button{

padding:18px 35px;
border:none;
background:var(--primary);
color:#fff;
cursor:pointer;
font-size:16px;

}

/* ===========================================================
SECTION TITLE
=========================================================== */

.section-title{

text-align:center;
margin:80px 0 50px;

}

.section-title h2{

font-size:42px;
margin-bottom:15px;

}

.section-title p{

color:#666;
font-size:17px;

}

/* ===========================================================
COURSE GRID
=========================================================== */

.course-grid{

display:grid;
grid-template-columns:repeat(2,1fr);
gap:35px;
align-items:start;

}
/* ===========================================================
COURSE CARD
=========================================================== */

.course-card{

background:#fff;
border-radius:22px;
overflow:hidden;
box-shadow:0 15px 40px rgba(0,0,0,.08);
transition:.35s;
display:flex;
flex-direction:column;
height:100%;

}

.course-card:hover{

transform:translateY(-10px);
box-shadow:0 25px 60px rgba(0,200,83,.18);

}

/* ===========================================================
COURSE IMAGE
=========================================================== */

.course-image{

position:relative;
overflow:hidden;

}

.course-image img{

width:100%;
height:240px;
object-fit:cover;
display:block;
transition:.5s;

}

.course-card:hover .course-image img{

transform:scale(1.08);

}

/* ===========================================================
DISCOUNT BADGE
=========================================================== */

.offer{

position:absolute;
top:18px;
right:18px;

background:#ff3b30;
color:#fff;

padding:8px 16px;

border-radius:30px;

font-size:13px;
font-weight:700;

box-shadow:0 8px 20px rgba(0,0,0,.15);

}

/* ===========================================================
COURSE BODY
=========================================================== */

.course-body{

padding:30px;
display:flex;
flex-direction:column;
flex:1;

}

.category{

display:inline-block;

background:#e9fff2;

color:#00C853;

padding:8px 18px;

border-radius:30px;

font-size:13px;

font-weight:700;

margin-bottom:18px;

width:max-content;

}

.course-body h3{

font-size:28px;

margin-bottom:15px;

line-height:1.3;

}

.course-body p{

color:#666;

line-height:1.8;

font-size:15px;

margin-bottom:25px;

}

/* ===========================================================
COURSE INFO
=========================================================== */

.course-info{

display:flex;

justify-content:space-between;

margin-bottom:25px;

padding:18px 0;

border-top:1px solid #eee;

border-bottom:1px solid #eee;

}

.course-info span{

display:flex;

align-items:center;

gap:8px;

font-size:14px;

font-weight:600;

}

.course-info i{

color:#00C853;

}

/* ===========================================================
PRICE
=========================================================== */

.price{

margin-top:auto;

}

.price h2{

font-size:36px;

color:#00C853;

margin-bottom:8px;

}

.price p{

font-size:15px;

margin-bottom:25px;

}

.price del{

color:#999;

margin-right:12px;

}

/* ===========================================================
BUTTONS
=========================================================== */

.buttons{

display:flex;

gap:15px;

}

.buttons button,
.buttons a{

flex:1;

padding:15px;

border:none;

border-radius:12px;

font-size:15px;

font-weight:600;

cursor:pointer;

text-align:center;

text-decoration:none;

transition:.35s;

}

.buttons button{

background:#fff;

border:2px solid #00C853;

color:#00C853;

}

.buttons button:hover{

background:#00C853;

color:#fff;

}

.buttons a{

background:#00C853;

color:#fff;

}

.buttons a:hover{

background:#009245;

}
/* ===========================================================
RIGHT SIDE DESCRIPTION PANEL
=========================================================== */

.description-panel{

position:fixed;

top:0;

right:-520px;

width:500px;

height:100vh;

background:#ffffff;

box-shadow:-10px 0 40px rgba(0,0,0,.15);

z-index:9999;

padding:35px;

overflow-y:auto;

transition:.4s ease;

}

.description-panel.active{

right:0;

}

.close-panel{

width:100%;

padding:15px;

border:none;

background:#00C853;

color:#fff;

font-size:16px;

font-weight:600;

border-radius:12px;

cursor:pointer;

margin-bottom:30px;

transition:.3s;

}

.close-panel:hover{

background:#009245;

}

#panelContent h2{

font-size:30px;

margin-bottom:20px;

color:#111;

}

#panelContent h3{

margin:25px 0 15px;

color:#00C853;

}

#panelContent p{

line-height:1.8;

color:#666;

margin-bottom:20px;

}

#panelContent ul{

padding-left:22px;

}

#panelContent ul li{

margin-bottom:12px;

line-height:1.7;

color:#444;

}

/* ===========================================================
FOOTER
=========================================================== */

footer{

margin-top:100px;

background:#111;

color:#fff;

padding:70px 0 20px;

}

.footer-container{

display:grid;

grid-template-columns:2fr 1fr 1fr 1fr;

gap:40px;

}

.footer-box img{

height:80px;

margin-bottom:20px;

background:#fff;

padding:8px;

border-radius:10px;

}

.footer-box h3{

margin-bottom:20px;

font-size:22px;

}

.footer-box p{

color:#ccc;

line-height:1.8;

margin-bottom:12px;

}

.footer-box ul{

list-style:none;

}

.footer-box ul li{

margin-bottom:12px;

}

.footer-box ul li a{

text-decoration:none;

color:#ccc;

transition:.3s;

}

.footer-box ul li a:hover{

color:#00C853;

}

.social-icons{

display:flex;

gap:15px;

margin-top:20px;

}

.social-icons a{

width:45px;

height:45px;

display:flex;

justify-content:center;

align-items:center;

background:#00C853;

color:#fff;

border-radius:50%;

text-decoration:none;

transition:.3s;

}

.social-icons a:hover{

transform:translateY(-5px);

}

.copyright{

margin-top:50px;

padding-top:20px;

text-align:center;

border-top:1px solid rgba(255,255,255,.1);

color:#bbb;

}

/* ===========================================================
WHATSAPP BUTTON
=========================================================== */

.live-chat{

position:fixed;

bottom:90px;

right:25px;

width:65px;

height:65px;

background:#25D366;

color:#fff;

display:flex;

justify-content:center;

align-items:center;

border-radius:50%;

font-size:30px;

text-decoration:none;

box-shadow:0 10px 25px rgba(0,0,0,.2);

transition:.3s;

z-index:999;

}

.live-chat:hover{

transform:scale(1.1);

}

/* ===========================================================
SCROLL TOP
=========================================================== */

.scroll-top{

position:fixed;

bottom:15px;

right:25px;

width:55px;

height:55px;

background:#111;

color:#fff;

display:flex;

justify-content:center;

align-items:center;

border-radius:50%;

text-decoration:none;

font-size:22px;

transition:.3s;

z-index:999;

}

.scroll-top:hover{

background:#00C853;

}

/* ===========================================================
RESPONSIVE
=========================================================== */

@media(max-width:1100px){

.course-grid{

grid-template-columns:1fr;

}

.footer-container{

grid-template-columns:1fr 1fr;

}

.description-panel{

width:100%;

right:-100%;

}

}

@media(max-width:768px){

.course-hero h1{

font-size:38px;

}

.search-box{

flex-direction:column;

border-radius:15px;

}

.search-box input{

width:100%;

}

.search-box button{

width:100%;

}

.buttons{

flex-direction:column;

}

.course-info{

flex-direction:column;

gap:12px;

}

.footer-container{

grid-template-columns:1fr;

text-align:center;

}

.social-icons{

justify-content:center;

}

.logo img{

height:65px;

}

nav{

display:none;

}

.login-btn{

display:none;

}

.top-bar p{

font-size:13px;

flex-direction:column;

gap:6px;

}

.description-panel{

padding:20px;

}

}
/* ===========================================================
COURSE REGISTRATION FORM
=========================================================== */

.registration-section{

padding:80px 0;
background:#f5f7fb;

}

.registration-card{

max-width:1100px;
margin:auto;
background:#fff;
padding:50px;
border-radius:20px;
box-shadow:0 15px 40px rgba(0,0,0,.08);

}

.registration-card h1{

font-size:40px;
text-align:center;
margin-bottom:15px;
color:#111;

}

.registration-card>p{

text-align:center;
color:#666;
margin-bottom:45px;
font-size:17px;

}

/* ===========================================================
FORM GRID
=========================================================== */

.form-grid{

display:grid;
grid-template-columns:repeat(2,1fr);
gap:25px;

}

.form-grid div{

display:flex;
flex-direction:column;

}

.form-grid label{

font-weight:600;
margin-bottom:10px;
color:#222;

}

.form-grid input,
.form-grid select,
.form-grid textarea{

padding:15px;
border:1px solid #dcdcdc;
border-radius:10px;
font-size:15px;
outline:none;
transition:.3s;
background:#fff;

}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus{

border-color:#00C853;
box-shadow:0 0 0 4px rgba(0,200,83,.12);

}

.form-grid textarea{

resize:vertical;

}

/* ===========================================================
PAYMENT SUMMARY
=========================================================== */

.payment-summary{

margin-top:45px;
padding:30px;
background:#f8f9fa;
border-radius:15px;
border:1px solid #e5e7eb;

}

.payment-summary h2{

margin-bottom:25px;
font-size:28px;

}

.summary-row{

display:flex;
justify-content:space-between;
align-items:center;
padding:15px 0;
border-bottom:1px solid #ddd;
font-size:17px;

}

.summary-row:last-child{

border-bottom:none;

}

.total{

font-size:22px;
font-weight:700;
color:#00C853;

}

/* ===========================================================
TERMS
=========================================================== */

.terms{

margin-top:30px;
font-size:15px;

}

.terms label{

display:flex;
align-items:center;
gap:10px;
cursor:pointer;

}

.terms input{

width:18px;
height:18px;

}

/* ===========================================================
BUY BUTTON
=========================================================== */

.buy-section{

margin-top:35px;
text-align:center;

}

.buy-btn{

background:linear-gradient(135deg,#00C853,#009245);
color:#fff;
border:none;
padding:18px 60px;
font-size:18px;
font-weight:600;
border-radius:50px;
cursor:pointer;
transition:.35s;

}

.buy-btn:hover{

transform:translateY(-4px);
box-shadow:0 15px 35px rgba(0,200,83,.35);

}

.buy-btn i{

margin-left:10px;

}

/* ===========================================================
RESPONSIVE
=========================================================== */

@media(max-width:768px){

.registration-card{

padding:30px 20px;

}

.registration-card h1{

font-size:30px;

}

.form-grid{

grid-template-columns:1fr;

}

.payment-summary{

padding:20px;

}

.summary-row{

font-size:15px;

}

.buy-btn{

width:100%;

}

}






.description-panel.active{

right:0;

}


.close-panel{

background:#111;

color:white;

border:none;

padding:12px 20px;

border-radius:8px;

cursor:pointer;

margin-bottom:30px;

}


#panelContent h2{

color:#111;

margin-bottom:15px;

}


#panelContent h3{

margin-top:25px;

}


#panelContent li{

margin:10px 0;

}
.buy-btn{

display:inline-block;
margin-top:30px;
padding:14px 35px;
background:#00C853;
color:#fff;
text-decoration:none;
border-radius:10px;
font-weight:600;
transition:.3s;

}

.buy-btn:hover{

background:#009245;
transform:translateY(-3px);

}
/* ===========================================
POPUP BUY NOW BUTTON
=========================================== */

.popup-buy-btn{

display:inline-block;
padding:15px 40px;
background:#00C853;
color:#fff;
text-decoration:none;
font-size:17px;
font-weight:600;
border-radius:10px;
transition:0.3s;

}

.popup-buy-btn:hover{

background:#009245;
transform:translateY(-3px);

}

/* ===========================================================
   ADDED: shared header (mobile menu, logout button), catalogue
   filters, course details page, registration messages
=========================================================== */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
.menu-btn{display:none;background:none;border:0;font-size:28px;cursor:pointer;color:#111;}
.header-buttons{display:flex;align-items:center;}
.dropdown-content form{margin:0;}
.dropdown-content button{display:block;width:100%;text-align:left;padding:15px;background:none;border:0;font:inherit;font-weight:600;color:#111;cursor:pointer;}
.dropdown-content button:hover{background:#f5f5f5;}
.course-body h3 a{color:inherit;text-decoration:none;}
.course-body h3 a:hover{color:var(--primary);}
.course-noimage{display:flex;align-items:center;justify-content:center;height:100%;min-height:200px;background:linear-gradient(135deg,#e9fff2,#d1fae5);color:#00A94A;font-size:48px;}
.buttons a.btn-outline{background:#fff;color:#111;border:2px solid #111;}
.category-filter{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:0 0 30px;}
.category-filter a{padding:8px 18px;border-radius:30px;border:1px solid var(--border);background:#fff;color:#111;text-decoration:none;font-weight:600;font-size:14px;}
.category-filter a.active,.category-filter a:hover{background:var(--primary);border-color:var(--primary);color:#fff;}
.no-result{text-align:center;padding:40px 16px;font-size:20px;font-weight:600;}
.no-result a{display:inline-block;margin-top:10px;font-size:16px;color:var(--secondary);}
.cd-section{padding:50px 0 70px;background:#f5f7fb;}
.cd-back a{color:var(--secondary);text-decoration:none;font-weight:600;}
.cd-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:30px;align-items:start;}
.cd-main,.cd-side{background:#fff;border-radius:16px;padding:30px;box-shadow:0 10px 30px rgba(0,0,0,.06);}
.cd-main h1{font-size:32px;margin:10px 0;color:#111;}
.cd-main h2{font-size:22px;margin:26px 0 10px;color:#111;}
.cd-lead{color:#555;font-size:17px;}
.cd-image{max-width:100%;border-radius:12px;margin:16px 0;}
.cd-list{padding-left:22px;line-height:1.9;}
.cd-side{position:sticky;top:110px;}
.cd-facts{list-style:none;padding:0;margin:18px 0;}
.cd-facts li{padding:6px 0;border-bottom:1px solid var(--border);}
.cd-facts i{width:22px;color:var(--primary);}
.cd-off{color:#d32f2f;font-weight:700;}
.cd-btn{display:block;width:100%;text-align:center;padding:14px;border:0;border-radius:40px;background:var(--primary);color:#fff;font:inherit;font-weight:700;text-decoration:none;cursor:pointer;}
.cd-btn:hover{background:var(--secondary);}
.cd-btn-light{background:#fff;color:#111;border:2px solid #111;}
.cd-note{font-size:13px;color:#666;margin-top:10px;}
.cd-enrolled{color:#065f46;font-weight:600;}
.cd-alert{padding:12px 16px;border-radius:8px;margin:0 0 16px;border:1px solid transparent;}
.cd-alert-success{background:#ecfdf5;border-color:#a7f3d0;color:#065f46;}
.cd-alert-error{background:#fef2f2;border-color:#fecaca;color:#991b1b;}
.cd-alert-info{background:#eff6ff;border-color:#bfdbfe;color:#1e40af;}
.registration-card .buy-btn{display:inline-block;text-decoration:none;}
.form-grid label{display:block;}
@media(max-width:992px){
    .menu-btn{display:block;}
    header .container{position:relative;}
    header nav{display:none;position:absolute;top:100%;left:0;width:100%;background:#fff;box-shadow:0 15px 25px rgba(0,0,0,.12);padding:20px 0;}
    header nav.active{display:block;}
    header nav ul{flex-direction:column;align-items:center;gap:20px;}
    .header-buttons{flex:1;justify-content:flex-end;margin-right:14px;}
    .cd-layout{grid-template-columns:1fr;}
    .cd-side{position:static;}
}
@media(max-width:600px){
    .login-btn{padding:10px 18px;}
    .cd-main,.cd-side{padding:20px;}
    .cd-main h1{font-size:25px;}
}
/* Course Video Link*/
.course-info .course-video-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.course-info .course-video-link:hover {
    color: #00C853;
}