/*
Theme Name: Kuleos UI Theme
Author: Elluminet Press Ltd
Version: 1.0
*/

/* =========================
   DESIGN TOKENS (Kuleos System)
========================= */

:root {
    --bg: #f9fafb;
    --surface: #ffffff;
    --border: #e5e7eb;
    --text: #111827;
    --text-muted: #6b7280;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --header: #0f172a;
}

/* =========================
   RESET
========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    display: flex;
    flex-direction: column; 
}

.tutor-wrap {
    flex: 1;
}

@font-face {
    font-family: 'tutor';
    src: url('/wp-content/plugins/tutor/assets/fonts/tutor.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'tutor-v2';
    src: url('/wp-content/plugins/tutor/assets/fonts/tutor-v2.woff') format('woff');
    font-display: swap;
}


/* =========================
   HEADER (Kuleos Style)
========================= */

.kuleos-header {
    background: var(--header);
    color: white;
    border-bottom: 1px solid #020617;
    position: sticky;
    top: 0;
    z-index: 100;
}

.kuleos-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;

    height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* Nav */
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav a {
    font-size: 14px;
    color: #cbd5f5;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.nav a:hover {
    color: #ffffff;
}

/* Active link style */
.nav a.active::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

/* Privacy Policy formatting fix */
.kuleos-main ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.kuleos-main li {
    margin-bottom: 0.25rem;
}

.kuleos-main h2 {
    margin-top: 2rem;
}

.kuleos-main h3 {
    margin-top: 1rem;
}

/* =========================
   MAIN CONTENT WRAPPER
========================= */

.kuleos-main {
    max-width: 1200px;
    margin: 32px auto; 
    padding: 32px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;

    box-shadow:
        0 1px 2px rgba(0,0,0,0.05),
        0 4px 12px rgba(0,0,0,0.03);
}



/* =========================
   TYPOGRAPHY
========================= */

h1, h2, h3 {
    margin-top: 0;
    font-weight: 600;
}

h1 {
    font-size: 28px;
}

p {
    color: var(--text-muted);
}

/* =========================
   BUTTONS (for Tutor LMS UI alignment)
========================= */

button,
.wp-block-button__link {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover,
.wp-block-button__link:hover {
    background: var(--primary-hover);
}

/* =========================
   LINKS
========================= */

a {
    text-decoration: none;
}



/* =========================
   TUTOR LMS ALIGNMENT
========================= */



/* Make LMS UI feel integrated */
.tutor-dashboard,
.tutor-wrap {
    background: transparent;
}

/* Course cards */
.tutor-course-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Inputs */
input,
select,
textarea {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
}

/* =========================
   SCROLLBAR (optional polish)
========================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.tutor-quiz-header{
	position: relative;
	
}

.logo img {
    height: 88px;  
    width: auto;
    display: block;
}

.tutor-wrap {
    margin-top: 44px;
}

.site-title {
    color: #000;
    margin: 0;
}

body[data-theme="dark"] .site-title {
    color: #fff;
}

/* Limit overall preview size */
.tutor-pro-certificate-preview-wrapper {
    max-width: 800px;   /* adjust as needed */
    margin: 0 auto;
}

/* Scale image properly */
#tutor-pro-certificate-preview {
    width: 100%;
    height: auto;
    display: block;
}

/*
.tutor-row {
  display: flex;
  align-items: flex-start; 
}
*/

.tutor-wrap .tutor-row {
  display: flex;
  align-items: flex-start;
}

.tutor-course-sidebar {
  margin-top: 0 !important;
}

.kuleos-courses-intro {
    max-width: 100%;
    margin: 40px auto 20px;
    padding: 0 20px;
}

.kuleos-courses-intro h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.kuleos-courses-intro p {
    color: var(--text-muted);
    max-width: 100%;
}

.kuleos-courses-hero {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.kuleos-hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.kuleos-hero-text p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
}

.kuleos-hero-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.tutor-container.course-archive-page {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px;
}

body[data-tutor-theme="light"] a.glossaryLink,
body[data-tutor-theme="light"] a.glossaryLink:link,
body[data-tutor-theme="light"] a.glossaryLink:visited,
body[data-tutor-theme="light"] a.glossaryLink:hover,
body[data-tutor-theme="light"] a.glossaryLink:active {
    color: #000 !important;
    border-bottom-color: #000 !important;
}

body[data-tutor-theme="dark"] a.glossaryLink,
body[data-tutor-theme="dark"] a.glossaryLink:link,
body[data-tutor-theme="dark"] a.glossaryLink:visited,
body[data-tutor-theme="dark"] a.glossaryLink:hover,
body[data-tutor-theme="dark"] a.glossaryLink:active {
    color: #fff !important;
    border-bottom-color: #fff !important;
}


.cmtt-backlink, cmtt-backlink-top, .cmtt-backlink, cmtt-backlink-bottom {
    visibility: hidden;

}


/* Light mode (default) */
body[data-tutor-theme="light"] .site-title {
    color: #000;
}

/* Dark mode */
body[data-tutor-theme="dark"] .site-title {
    color: #fff;
}

body[data-tutor-theme="dark"] svg {
    color: #fff;
}


/* =========================
   FOOTER (Kuleos Style)
========================= */

.kuleos-footer {
    background: #0f172a;
    color: #e5e7eb;
    margin-top: 30vh;
    font-size: 14px;
    width: 100%;
}

/* MAIN CONTAINER */
.kuleos-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;

    display: flex;
    justify-content: flex-start;   /* FIXED */
    align-items: flex-start;       /* FIXED */
    gap: 80px;                     /* CONTROLLED spacing */
}

/* LEFT SIDE (logo + tagline) */
.kuleos-footer-left {
    flex: 1;
}

.kuleos-footer-logo {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.kuleos-footer-tagline {
    max-width: 400px;
    color: #9ca3af;
    line-height: 1.6;
}

/* RIGHT SIDE (links) */
.kuleos-footer-links {
    display: flex;
    gap: 60px; /* REDUCED */
}

/* COLUMN STRUCTURE */
.footer-column h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 6px;
}

/* LINKS */
.footer-column a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #ffffff;
}

/* BOTTOM BAR */
.kuleos-footer-bottom {
    border-top: 1px solid #1f2937;
    text-align: center;
    padding: 12px 15px;
    color: #6b7280;
}

.kuleos-footer-bottom p {
    margin: 0; /* REMOVE default spacing */
}

.kuleos-footer-bottom a {
    color: #6b7280;
    text-decoration: none;
    margin: 0 8px;
}

.kuleos-footer-bottom a:hover {
    color: #9ca3af;
}




/* =========================
   RESPONSIVE
========================= */
/*

/* Keep 2-column layout below 1200px */
@media (max-width: 1200px) {
  .tutor-col-xl-8 {
    flex: 0 0 65%;
    max-width: 65%;
  }

  .tutor-col-xl-4 {
    flex: 0 0 35%;
    max-width: 35%;
  }

    .tutor-single-course-sidebar {
    margin-top: 0 !important;
  }


}

/* Stack only on tablet/mobile */
@media (max-width: 991px) {
  .tutor-col-xl-8,
  .tutor-col-xl-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .kuleos-hero-content {
   grid-template-columns: 1fr;
    }  


    .kuleos-footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .kuleos-footer-left {
        text-align: center;
    }

    .kuleos-footer-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}



.wp-block-media-text__media {
    border-radius: 12px;
    overflow: hidden;
}