/*
Theme Name: Rihle Akademi Modern
Theme URI: https://rihleakademi.shop
Author: Mahsum Ulaş
Author URI: https://rihleakademi.shop
Description: Rihle Akademi dini eğitim platformu için Tutor LMS ve WooCommerce uyumlu bağımsız tema. Copyright © 2026 Mahsum Ulaş.
Version: 3.6.6
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: student-nexus-modern
*/

:root { --snm-primary: #3867d6; --snm-primary-soft: #e8edff; --snm-ink: #172033; --snm-muted: #728096; --snm-border: #e7ebf1; --snm-bg: #f8fafc; --snm-radius: 14px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; color: var(--snm-ink); background: var(--snm-bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: var(--snm-primary); }
img { max-width: 100%; height: auto; }
.snm-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.snm-site-header { position: relative; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--snm-border); box-shadow: 0 4px 20px rgba(17,35,66,.04); }
.snm-site-header-inner { display: flex; align-items: center; min-width: 0; min-height: 76px; gap: 28px; }
.snm-site-logo { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; gap: 10px; color: var(--snm-ink); font-size: 19px; font-weight: 800; white-space: nowrap; overflow: hidden; }
.snm-site-logo-link { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; gap: 10px; color: inherit; text-decoration: none; overflow: hidden; }
.snm-site-logo-link > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snm-site-logo .custom-logo-link, .snm-site-logo .custom-logo { display: block; max-height: 42px; width: auto; }
.snm-site-logo-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #3867d6, #6c5ce7); font-weight: 800; }
.snm-site-nav { margin-left: auto; }
.snm-site-nav > ul, .snm-site-nav .menu, .snm-menu-fallback { display: flex; align-items: center; gap: 5px; margin: 0; padding: 0; list-style: none; }
.snm-site-nav a, .snm-menu-fallback a { display: block; padding: 10px 13px; border-radius: 9px; color: #4a566a; text-decoration: none; font-size: 14px; font-weight: 650; }
.snm-site-nav a:hover, .snm-site-nav .current-menu-item > a, .snm-menu-fallback a:hover { color: var(--snm-primary); background: var(--snm-primary-soft); }
.snm-public-actions { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; white-space: nowrap; }
.snm-public-action, .snm-public-profile { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--snm-border); border-radius: 10px; color: #516077; text-decoration: none; background: #fff; }
.snm-public-action { position: relative; cursor: pointer; font: inherit; padding: 0; }
.snm-public-action .snm-tool-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; }
.snm-public-action .snm-tool-icon svg { display: block; width: 18px; height: 18px; }
.snm-public-action:hover, .snm-public-notification-toggle[aria-expanded="true"] { color: var(--snm-primary); border-color: #9eb2ed; background: #eef2ff; }
.snm-public-action b { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #f04d65; color: #fff; font-size: 10px; line-height: 17px; text-align: center; }
.snm-public-notification-wrap { position: relative; z-index: 10020; flex: 0 0 auto; }
.snm-notification-panel { position: absolute; top: calc(100% + 12px); right: 0; z-index: 10050; width: min(310px, calc(100vw - 30px)); padding: 17px; border: 1px solid #dfe6f0; border-radius: 13px; background: #fff; color: var(--snm-ink); box-shadow: 0 18px 44px rgba(10,24,48,.18); text-align: left; }
.snm-notification-panel[hidden] { display: none !important; }
.snm-notification-panel::before { content: ''; position: absolute; top: -7px; right: 16px; width: 12px; height: 12px; border-top: 1px solid #dfe6f0; border-left: 1px solid #dfe6f0; background: #fff; transform: rotate(45deg); }
.snm-notification-panel-title { position: relative; font-size: 15px; font-weight: 750; margin-bottom: 8px; }
.snm-notification-panel p { position: relative; margin: 0 0 13px; color: var(--snm-muted); font-size: 13px; }
.snm-notification-panel-link { position: relative; display: inline-flex; align-items: center; padding: 8px 11px; border-radius: 8px; background: var(--snm-primary-soft); color: var(--snm-primary); font-size: 12px; font-weight: 700; text-decoration: none; }
.snm-notification-panel-link:hover { background: #dfe7ff; }
.snm-public-notification-wrap .snm-notification-panel { top: calc(100% + 12px); right: 0; }
.snm-public-profile img { width: 30px; height: 30px; border-radius: 50%; }
.snm-login-btn, .snm-primary-btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 17px; border-radius: 10px; color: #fff; background: var(--snm-primary); text-decoration: none; font-size: 14px; font-weight: 700; }
.snm-mobile-toggle { display: none; border: 1px solid var(--snm-border); border-radius: 9px; padding: 8px 10px; background: #fff; color: var(--snm-ink); }
.snm-hero { padding: 86px 0 82px; background: linear-gradient(135deg, #eef2ff 0%, #fafbff 56%, #fff 100%); border-bottom: 1px solid var(--snm-border); }
.snm-hero h1 { max-width: 680px; margin: 12px 0; font-size: clamp(34px, 5vw, 60px); line-height: 1.08; letter-spacing: -.045em; }
.snm-hero p { max-width: 600px; margin: 0; color: var(--snm-muted); font-size: 18px; }
.snm-eyebrow { color: var(--snm-primary); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.snm-course-section { padding: 54px 0 80px; }
.snm-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.snm-section-heading h2 { margin: 7px 0 2px; font-size: 32px; letter-spacing: -.03em; }
.snm-section-heading p { margin: 0; color: var(--snm-muted); }
.snm-site-main .tutor-course-loop { gap: 20px; }
.snm-site-main .tutor-card { border: 1px solid var(--snm-border); border-radius: var(--snm-radius); box-shadow: 0 8px 22px rgba(17,35,66,.05); overflow: hidden; }
.snm-site-footer { border-top: 1px solid var(--snm-border); background: #fff; }
.snm-site-footer-inner { display: flex; justify-content: space-between; gap: 20px; padding: 30px 0; color: var(--snm-muted); font-size: 14px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
@media (max-width: 800px) {
		html, body { max-width: 100%; overflow-x: hidden; }
		.snm-site-header-inner { width: 100%; min-width: 0; min-height: 66px; gap: 8px; overflow: visible; }
		.snm-site-logo { flex: 1 1 auto; max-width: calc(100% - 48px); }
		.snm-mobile-toggle { display: block; flex: 0 0 auto; margin-left: auto; }
		.snm-site-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; width: 100%; max-width: 100vw; padding: 10px 20px 18px; border-bottom: 1px solid var(--snm-border); background: #fff; box-shadow: 0 15px 30px rgba(17,35,66,.1); overflow: hidden; }
	.snm-site-nav.is-open { display: block; }
	.snm-site-nav > ul, .snm-site-nav .menu, .snm-menu-fallback { display: grid; gap: 2px; }
	.snm-site-nav a, .snm-menu-fallback a { padding: 12px 10px; }
		.snm-public-actions { margin-left: 0; }
		.snm-public-actions .snm-public-action { display: none; }
		.snm-public-actions .snm-public-notification-wrap { display: block; }
		.snm-public-actions .snm-public-notification-wrap .snm-public-action { display: inline-grid; }
	.snm-hero { padding: 58px 0 54px; }
	.snm-course-section { padding: 38px 0 58px; }
	.snm-section-heading { align-items: start; flex-direction: column; }
	.snm-site-footer-inner { flex-direction: column; }
}
@media (max-width: 520px) {
	.snm-container { width: min(100% - 28px, 1180px); }
	.snm-site-logo { font-size: 16px; }
	.snm-site-logo-mark { width: 34px; height: 34px; }
			.snm-public-actions { margin-left: 0; }
		.snm-public-notification-wrap .snm-notification-panel { position: fixed; top: 72px; right: 12px; }
		.snm-hero h1 { font-size: 38px; }
}

.snm-login-required,
.snm-shell-content-card {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 28px;
	border: 1px solid var(--snm-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(17,35,66,.05);
	overflow: hidden;
}
.snm-login-required h1,
.snm-shell-content-card .snm-post-title { margin: 0 0 10px; color: var(--snm-ink); font-size: clamp(21px, 3vw, 30px); line-height: 1.2; }
.snm-login-required p { margin: 0 0 20px; color: var(--snm-muted); }
.snm-tutor-login-form { width: 100%; max-width: 520px; }
.snm-primary-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 18px; border-radius: 10px; background: var(--snm-primary); color: #fff; font-weight: 700; text-decoration: none; }
.snm-primary-btn:hover { background: #2e56b8; color: #fff; }
.snm-shell-content-page .snm-shell-content-card .snm-post-content { min-width: 0; max-width: 100%; overflow-x: auto; }
@media (max-width: 580px) {
	.snm-login-required, .snm-shell-content-card { padding: 20px 16px; border-radius: 12px; }
	.snm-shell-content-page .snm-shell-content-card .snm-post-content { overflow-x: auto; }
}

/* Rihle Akademi brand assets */
.snm-brand-logo-link { display: inline-flex; align-items: center; max-width: 320px; }
.snm-brand-logo { display: block; width: auto; max-width: 300px; max-height: 78px; object-fit: contain; }
@media (max-width: 800px) {
	.snm-brand-logo-link { max-width: 245px; }
	.snm-brand-logo { max-width: 230px; max-height: 68px; }
}
@media (max-width: 520px) {
	.snm-brand-logo-link { max-width: 210px; }
	.snm-brand-logo { max-width: 198px; max-height: 60px; }
}

/* Stronger Rihle Akademi visibility on compact headers */
@media (max-width: 800px) {
	.snm-brand-logo { max-width: 235px; max-height: 72px; }
}
@media (max-width: 520px) {
	.snm-brand-logo { max-width: 215px; max-height: 66px; }
}

/* Mobile Rihle Akademi positioning and scale */
@media (max-width: 800px) {
	.snm-site-header-inner { width: 100%; padding-left: 6px; padding-right: 6px; }
	.snm-site-logo { max-width: calc(100% - 42px); }
	.snm-brand-logo-link { max-width: 255px; }
	.snm-brand-logo { max-width: 245px; max-height: 76px; }
}
@media (max-width: 520px) {
	.snm-site-header-inner { padding-left: 4px; padding-right: 4px; }
	.snm-brand-logo-link { max-width: 225px; }
	.snm-brand-logo { max-width: 215px; max-height: 68px; }
}

/* Final responsive logo containment: never overflow header on public pages */
.snm-brand-logo-link { display: flex; align-items: center; min-width: 0; max-width: 100%; overflow: hidden; }
.snm-brand-logo { display: block; width: auto; height: auto; max-width: 100%; max-height: 58px; object-fit: contain; object-position: left center; }
@media (max-width: 800px) {
	.snm-site-header-inner { display: flex; align-items: center; min-width: 0; }
	.snm-site-logo { flex: 1 1 auto; min-width: 0; max-width: calc(100% - 58px); overflow: hidden; }
	.snm-brand-logo-link { width: min(220px, 100%); }
	.snm-brand-logo { width: 100%; height: auto; max-width: 220px; max-height: 54px; }
}
@media (max-width: 520px) {
	.snm-site-logo { max-width: calc(100% - 52px); }
	.snm-brand-logo-link { width: min(190px, 100%); }
	.snm-brand-logo { max-width: 190px; max-height: 48px; }
}
