/*
Theme Name: Yiontech LMS
Theme URI: https://yiontech.com/
Author: Yiontech Team
Author URI: https://yiontech.com/
Description: A Learning Management System theme by Yiontech
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yiontech-lms
Tags: lms, education, e-learning, blog, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    overflow: hidden;
    width: 100%;
}

/* Custom Logo Size */
.custom-logo {
    max-height: 36px;
    width: auto;
}

/* Header Adjustments */
.site-header {
    padding: 0;
    border: none;
    box-shadow: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.site-branding img {
    max-height: 36px;
    width: auto;
}

/* Navigation Menu */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border: none;
}

.main-navigation ul li {
    position: relative;
    border: none;
}

.main-navigation ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    border: none;
}

.main-navigation ul li a:hover {
    color: rgba(255, 255, 255, 0.8);
    border: none;
}

/* Mobile Menu Toggle */
#mobile-menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

#mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Sidebar */
#mobile-menu-sidebar {
    width: 80%;
    max-width: 320px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

#mobile-menu-sidebar.translate-x-full {
    transform: translateX(100%);
    margin-right: -15px;
}

#mobile-menu-sidebar:not(.translate-x-full) {
    transform: translateX(0);
    margin-right: -15px;
}

#mobile-menu-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border: none;
}

#mobile-menu-sidebar ul li {
    margin-bottom: 0.5rem;
}

#mobile-menu-sidebar ul li a {
    color: #4B5563;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
    border: none;
    transition: color 0.3s ease;
}

#mobile-menu-sidebar ul li a:hover {
    color: #2563EB;
    border: none;
}

/* Mobile Menu Sections */
#mobile-menu-sidebar .border-b {
    border-bottom: 1px solid #E5E7EB;
}

#mobile-menu-sidebar h3 {
    color: #1F2937;
    font-weight: 600;
}

/* Mobile Menu Overlay */
#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* Course Card Adjustments */
.course-thumbnail {
    height: 180px;
    border: none;
}

/* Pagination Adjustments */
.page-numbers {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    background-color: #f3f4f6;
    color: #4b5563;
    text-decoration: none;
    border: none;
}

.page-numbers.current {
    background-color: #2563eb;
    color: white;
    border: none;
}

.page-numbers:hover {
    background-color: #e5e7eb;
    border: none;
}

.page-numbers.current:hover {
    background-color: #1d4ed8;
    border: none;
}

/* Footer Adjustments */
footer {
    border: none;
    box-shadow: none;
}

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

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
    border: none;
    display: inline-block;
}

footer ul li a:hover {
    color: white;
    border: none;
}

/* Newsletter Form */
.newsletter-form input[type="email"] {
    background-color: #1F2937;
    border: 1px solid #374151;
}

.newsletter-form input[type="email"]:focus {
    border-color: #3B82F6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.newsletter-form button {
    background-color: #2563EB;
    border: none;
}

.newsletter-form button:hover {
    background-color: #1D4ED8;
}

/* Mobile Menu Newsletter Form */
#mobile-menu-sidebar form input[type="email"] {
    border: 1px solid #D1D5DB;
}

#mobile-menu-sidebar form input[type="email"]:focus {
    border-color: #3B82F6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#mobile-menu-sidebar form button {
    background-color: #2563EB;
    border: none;
}

#mobile-menu-sidebar form button:hover {
    background-color: #1D4ED8;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.preloader-spinner {
    width: 80px;
    height: 80px;
    position: relative;
    display: block !important;
}

.spinner {
    width: 80px !important;
    height: 80px !important;
    border: 8px solid rgba(30, 64, 175, 0.2) !important;
    border-top: 8px solid #1e40af !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    display: block !important;
    box-sizing: border-box !important;
    background-color: transparent !important;
}

.spinner::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #3b82f6;
    animation: spin 2s linear infinite;
}

.spinner::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #60a5fa;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Back to top button */
.back-to-top {
    position: fixed !important;
    bottom: 80px !important;
    right: 30px !important;
    background-color: #1e40af !important;
    color: white !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 99999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s !important;
    transform: translateY(20px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    pointer-events: none !important;
}

.back-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.back-to-top:hover {
    background-color: #1e3a8a !important;
    transform: translateY(-5px) !important;
    text-decoration: none !important;
    color: white !important;
}

.back-to-top svg {
    width: 24px !important;
    height: 24px !important;
    pointer-events: none !important;
}

/* Sticky header styles */
.site-header.sticky {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Ensure body can scroll if needed */
html, body {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
}
mark{
    background: transparent !important;
    color: initial !important;
}

/* Cookie consent banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e293b;
    color: white;
    padding: 15px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    flex-direction: row;
}

.cookie-consent-content {
    flex: 1;
    margin-right: 15px;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
}

.cookie-consent-buttons .button {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.cookie-consent-accept {
    background: #3b82f6;
    color: white;
}

.cookie-consent-accept:hover {
    background: #2563eb;
}

.cookie-consent-learn {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-consent-learn:hover {
    background: rgba(255,255,255,0.1);
}