/*===== FONTS =============*/
@font-face {font-family: 'Franklin Gothic'; src: url('/fonts/franklin-gothic-book.ttf') format('truetype'); font-weight: 400; font-style: normal;}
@font-face {font-family: 'Franklin Gothic'; src: url('/fonts/franklin-gothic-demi.ttf') format('truetype'); font-weight: 600; font-style: normal;}
@font-face {font-family: 'Franklin Gothic'; src: url('/fonts/franklin-gothic-heavy.ttf') format('truetype'); font-weight: 900; font-style: normal;}
@font-face {font-family: 'Franklin Gothic'; src: url('/fonts/franklin-gothic-medium.ttf') format('truetype'); font-weight: 500; font-style: normal;}
@font-face {font-family: 'Franklin Gothic Condensed'; src: url('/fonts/franklin-gothic-medium-cond.ttf') format('truetype'); font-weight: 500; font-style: normal;}

/* ===== MAIN CONTAINER ===== */
.container{
    width:88vw;
    margin:0px auto;
}
/* ===== HERO SECTION ===== */ 
.hero{ 
    height:8vw; 
    display:flex; 
    align-items:center; 
    justify-content:center; text-align:center; 
} 
.hero h1{ 
    background:rgba(0,0,0,0.6); 
    color:var(--white); 
    padding:18px 30px; 
    border-radius:var(--radius-md); 
}
    

/* ===== COURSE CARD STYLE (Matches Your UI) ===== */
.course-wrapper {
    display:grid;
    grid-template-columns: 1fr 2fr;
    gap:25px;
}
.website-wrapper{
    display:grid;
    grid-template-columns: 0.9fr 1.5fr 0.6fr;
    gap:8px;
}

.course-info, .website-info{
    background:var(--white);
    padding:25px;
    border-radius:12px;
    box-shadow: var(--shadow-sm);
    font-size: 12px;
    line-height: 1.8;
}

.course-info i, .website-info i{
    color: var(--primary);
    width: 20px;
}
.course-info h4, .website-info h4{
    color: var(--primary);
    margin-top: 0;
}

.course-info .info-item, .website-info .info-item{
    margin-bottom: 4px;
}

.second .info-item{
    margin-top: 20px;
    font-size: 12px;
}
.btn-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/*========================
/ Ad course card
/=========================
*/
#course-ad-card {
    position: absolute;
    width: 480px;
    height: 480px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 18px;
    overflow: hidden;
    isolation: isolate;
    background: #fff;
    border-radius: 25px;
    text-align: left;
    top:30px;
    z-index: 7;
    left: -10000px;
    /*left: 30px;*/
    pointer-events: none;
    font-family: 'Franklin Gothic', sans-serif;
    font-weight: 400;
    
}
.card-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: fill;
    pointer-events: none;
}
.card-item { position: absolute; z-index: 1; margin: 0; }
.course-stars {
    top: 6.1%;
    left: 37.68%;
    width: 25.36%;
    height: 4.0%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.course-stars img { display: block; width: 15.65%; height: auto; object-fit: contain; }
.course-title {
    font-weight: 600;
    top: 12.9%;
    left: 2.2%;
    width: 95.6%;
    height: 7.0%;
    color: #fff;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.course-description {
    font-weight: 400;
    top: 20.0%;
    left: 5.8%;
    width: 88.4%;
    height: 15.0%;
    color: #fff;
    font-size: 13px;
    line-height: 1.28;
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow-wrap: anywhere;
}
.course-cta {
    font-weight: 500;
    top: 56.85%;
    left: 25.78%;
    width: 49.3%;
    height: 4.3%;
    color: #c7940a;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .1px;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modules-heading, .scanner-heading {
    font-weight: 500;
    top: 64.2%;
    font-size: 9px;
    line-height: 1.1;
    font-weight: 800;
    color: #111;
    white-space: nowrap;
}
.modules-heading { left: 12.46%; }
.scanner-heading { left: 65.5%; }
.course-modules {
    font-weight: 500;
    top: 68.2%;
    left: 12.7%;
    width: 49.5%;
    height: 22.2%;
    padding: 0;
    margin: 0;
    list-style-type: decimal;
    color: #17121a;
    font-size: 9px;
    line-height: 1.22;
    overflow: hidden;
    text-align: left;
}
.course-modules li {
    display: flex;
    gap: 4px;
    min-height: 11px;
    max-height: 11px;
    overflow: hidden;
    white-space: nowrap;
}
.course-modules .module-number { flex: 0 0 12px; }
.course-modules .module-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.course-qr {
    top: 70%;
    left: 66.5%;
    width: 17.3%;
    height: auto;
    display: block;
    object-fit: contain;
    image-rendering: pixelated;
}
.card-footer {
    font-weight: 500;
    top: 91.3%;
    left: 0;
    width: 100%;
    height: 5.0%;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
}
.brand-name { color: #c7940a; margin-right: 4px; }
.brand-department { color: #3e2a7b; }
.download-button:disabled { opacity: .65; cursor: wait; }
.help-text { color: #625968; font-size: 12px; margin: 12px 0 0; }
.status { min-height: 18px; margin: 10px 0 0; font-size: 13px; color: #3B0A45;  }

/* REGISTER BUTTON */
.btn{
    display:block;
    text-align:center;
    background:var(--primary);
    color:white;
    padding:8px;
    border-radius:8px;
    text-decoration:none;
    margin-top:20px;
    font-weight:bold;
    cursor: pointer;
    border: none;
}

/* REFER AND EARN */
.refer-btn {
    position: relative;
    display: block;
    border: none;
    margin-left: auto;
    cursor: pointer;
    background: #f8f6fc;
    border-left: 4px solid #c7940a;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    overflow: hidden;
}

/* Referral information */
.refer-info {
    transition: opacity 0.2s ease;
}

/* Hidden share buttons overlay */
.share-buttons {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f8f6fc;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* Show buttons on hover */
.refer-btn:hover .share-buttons,
.refer-btn:focus-within .share-buttons {
    opacity: 1;
    visibility: visible;
}

/* Hide referral information while hovering */
.refer-btn:hover .refer-info {
    opacity: 0;
}

/* Share button appearance */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 3px;
    color: white;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.share-btn:hover {
    transform: scale(1.12);
}

.whatsapp { background: #25D366; }
.facebook { background: #1877F2; }
.instagram { background: #C13584; }
.copy-link { background: #3B0A45; }
.download-button { background: #3B0A45; }

.affiliate img{
    width: 18px;
    height: auto;
}

#share-message {
    display: block;
    margin-top: 10px;
    font-size: 12px;
}

#referForm {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 10px;
}

#referForm > label:not(.terms-check) {
    font-size: 14px;
    font-weight: 600;
    color: #3B0A45;
}

#referForm input[type="text"],
#referForm input[type="email"],
#referForm input[type="tel"],
#referForm input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

#referForm input:focus {
    outline: none;
    border-color: #c7940a;
    box-shadow: 0 0 0 2px rgba(199, 148, 10, 0.12);
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 45px !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #3B0A45;
    cursor: pointer;
    padding: 5px;
}

.strength-track {
    height: 5px;
    background: #e5e0eb;
    border-radius: 5px;
    overflow: hidden;
}

#strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.2s ease, background 0.2s ease;
}

.password-strength small,
#confirm-feedback {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.6;
    color: #555;
}

.terms-check input {
    margin-top: 4px;
    flex-shrink: 0;
}

.terms-check a,
.login-prompt a {
    color: #3B0A45;
    font-weight: 600;
}

.generate-referral {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.generate-referral:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-prompt {
    text-align: center;
    font-size: 13px;
    margin: 5px 0;
}

#register-message {
    font-size: 13px;
    overflow-wrap: anywhere;
}

#register-message.error {
    color: #b42318;
}

#register-message.success {
    color: #16803c;
}


/* RIGHT SIDE */
.learning-area{
    background:white;
    padding:25px;
    border-radius:12px;
    box-shadow:0 6px 18px rgba(0,0,0,0.1);
}

.learning-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap:8px;
}

/* MINI COURSE CARDS */
.area-card{
    background:#fafafa;
    padding:0px 10px;
    border-radius:10px;
    transition:0.3s;
    border:1px solid #eee;
}

.area-card:hover{
    transform:translateY(-5px);
}

.area-card h5{
    margin-top:6px;
    color:var(--primary);
    margin-bottom:8px;
}

.area-card i{
    color:var(--accent);
    margin-right:6px;
}

.sub{
    font-size:12px;
    margin:4px 15px;
}

/* ===== MOBILE ===== */
@media(max-width:768px){
    .course-wrapper, .website-wrapper{
        grid-template-columns:1fr;
    }

    .hero{
        height:220px;
    }
}
