/*!
Theme Name: LMS Master
Theme URI: https://www.linkedin.com/in/jahidulwd/
Author: Menfia
Author URI: https://www.linkedin.com/in/jahidulwd/
Description: A clean and modern WordPress LMS theme built for Learning Management Systems.
Version: 1.0.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: lms-master
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, lms, education, learning
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
# Layouts
# Components
	- Navigation
	- Posts and pages
	- Widgets
	- Media
# Utilities
	- Accessibility
	- Alignments
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

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

/* Base
--------------------------------------------- */
body {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	background: #fff;
}

main {
	display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	line-height: 1.3;
	margin: 0 0 1rem;
}

p {
	margin: 0 0 1.5em;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

embed,
iframe,
object {
	max-width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #4169e1;
	text-decoration: none;
}

a:visited {
	color: #666;
}

a:hover,
a:focus,
a:active {
	color: #191970;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
	cursor: pointer;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 8px 12px;
	width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus {
	color: #111;
	outline: none;
	border-color: #4169e1;
}

select {
	border: 1px solid #ccc;
	padding: 6px 10px;
	border-radius: 3px;
}

textarea {
	width: 100%;
	resize: vertical;
}

/* Layout
--------------------------------------------- */
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.site-main {
	padding: 60px 0;
}

/* Posts & Pages
--------------------------------------------- */
.post-title {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 1rem;
}

.post-title a {
	color: inherit;
	text-decoration: none;
}

.post-title a:hover {
	color: #4169e1;
}

.post-meta {
	font-size: 14px;
	color: #888;
	margin-bottom: 1rem;
}

.post-content {
	line-height: 1.8;
}

/* Pagination
--------------------------------------------- */
.pagination {
	margin-top: 40px;
	text-align: center;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 2px;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #333;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: #4169e1;
	color: #fff;
	border-color: #4169e1;
}

/* Search
--------------------------------------------- */
.page-header {
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #eee;
}

.page-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0;
}

.page-title span {
	color: #4169e1;
}

/* Accessibility
--------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Alignments
--------------------------------------------- */
.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* LMS / Tutor LMS Compatibility
--------------------------------------------- */
.tutor-template-segment.tutor-login-wrap {
	padding-top: 0 !important;
	margin-top: 60px;
	margin-bottom: 50px;
}

.tutor-template-segment.tutor-login-wrap input.tutor-form-control {
	padding: 12px;
}

/* Mobile Responsive
--------------------------------------------- */
@media (max-width: 768px) {
	.container {
		padding: 0 15px;
	}

	.site-main {
		padding: 40px 0;
	}

	.post-title {
		font-size: 22px;
	}
}

/* ---------------------------------------------------------------
   FOOTER
--------------------------------------------------------------- */
.footer-meta {
    background: var(--footer-bg, #0E1628);
    color: var(--footer-text, #ffffff);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px 30px;
}

/* Footer Top Grid */
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Brand Column */
.footer-brand { max-width: 350px; }

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--footer-text, #fff);
}

.footer-logo span { color: var(--footer-accent, #E8601C); }

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

/* Social Links */
.social-links { display: flex; gap: 12px; flex-wrap: wrap; }

.social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--footer-accent, #E8601C);
    border-color: var(--footer-accent, #E8601C);
    color: #fff;
    transform: translateY(-3px);
}

/* Footer Columns */
.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--footer-text, #fff);
}

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

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

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-column ul li a:visited { color: rgba(255, 255, 255, 0.5); }

.footer-column ul li a:hover {
    color: var(--footer-accent, #E8601C);
    transform: translateX(4px);
}

.footer-no-menu {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    font-style: italic;
}

.footer-no-menu a { color: rgba(255,255,255,0.5); }

/* Contact Info */
.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.contact-info a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info a:hover { color: var(--footer-accent, #E8601C); }

.contact-info i {
    width: 20px;
    color: var(--footer-accent, #E8601C);
    flex-shrink: 0;
    padding-top: 2px;
}

/* Quick Contact Cards */
.footer-quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.quick-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.quick-card:hover {
    background: rgba(232, 96, 28, 0.1);
    border-color: var(--footer-accent, #E8601C);
    transform: translateY(-2px);
}

.quick-card-icon { font-size: 24px; margin-bottom: 6px; }

.quick-card-name {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom > p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.footer-bottom-links ul {
    display: flex;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.footer-bottom-links ul li a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links ul li a:hover { color: var(--footer-accent, #E8601C); }

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-top { grid-template-columns: repeat(2, 1fr); gap: 35px; }
}

@media (max-width: 768px) {
    .footer-container { padding: 45px 20px 25px; }
    .footer-top { grid-template-columns: 1fr; gap: 35px; }
    .footer-brand { max-width: 100%; text-align: center; }
    .social-links { justify-content: center; }
    .footer-column { text-align: center; }
    .footer-column ul li a { justify-content: center; }
    .contact-info p { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-links ul { justify-content: center; }
}

@media (max-width: 480px) {
    .footer-container { padding: 35px 16px 20px; }
    .footer-logo { font-size: 24px; }
}
