/*
Theme Name: Etude Education
Theme URI: https://github.com/rizky-davit-nugroho/etude-education
Author: Key Davit
Author URI: http://linkedin.com/in/rizky-davit-nugroho
Description: A modern and clean WordPress theme designed for educational institutions, online courses, and learning platforms.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: etude-education
Tags: education, e-learning, blog, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* =========================================
   TABLE OF CONTENTS
   1. Reset & Base
   2. Typography
   3. Layout
   4. Header
   5. Navigation
   6. Hero Section
   7. Content
   8. Sidebar
   9. Footer
   10. Widgets
   11. Buttons
   12. Forms
   13. Comments
   14. Media
   15. Utility
   ========================================= */

/* -----------------------------------------
   1. Reset & Base
   ----------------------------------------- */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
	font-size: 1rem;
	line-height: 1.7;
	color: #2d3748;
	background-color: #ffffff;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: #3b82f6;
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: #1d4ed8;
}

ul, ol {
	padding-left: 1.5rem;
}

/* -----------------------------------------
   2. Typography
   ----------------------------------------- */
h1, h2, h3, h4, h5, h6 {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-weight: 700;
	line-height: 1.3;
	color: #1a202c;
	margin-bottom: 0.75rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
	margin-bottom: 1.25rem;
}

blockquote {
	border-left: 4px solid #3b82f6;
	padding: 1rem 1.5rem;
	margin: 1.5rem 0;
	background-color: #eff6ff;
	border-radius: 0 0.5rem 0.5rem 0;
	font-style: italic;
	color: #4a5568;
}

blockquote cite {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.875rem;
	font-style: normal;
	color: #718096;
}

pre, code {
	font-family: 'Fira Code', 'Courier New', Courier, monospace;
	font-size: 0.875rem;
	background-color: #f7fafc;
	border-radius: 0.25rem;
}

code {
	padding: 0.125rem 0.375rem;
	color: #e53e3e;
}

pre {
	padding: 1.25rem;
	overflow-x: auto;
	border: 1px solid #e2e8f0;
	margin-bottom: 1.25rem;
}

pre code {
	padding: 0;
	color: inherit;
	background: none;
}

/* -----------------------------------------
   3. Layout
   ----------------------------------------- */
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-content {
	flex: 1;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.content-area {
	width: 68%;
	float: left;
	padding-right: 2rem;
}

.widget-area {
	width: 32%;
	float: right;
}

.site-main::after {
	content: '';
	display: table;
	clear: both;
}

.full-width .content-area {
	width: 100%;
	padding-right: 0;
	float: none;
}

/* -----------------------------------------
   4. Header
   ----------------------------------------- */
.site-header {
	background-color: #ffffff;
	border-bottom: 1px solid #e2e8f0;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.site-logo img {
	height: 48px;
	width: auto;
}

.site-title {
	font-size: 1.5rem;
	font-weight: 800;
	margin: 0;
	line-height: 1;
}

.site-title a {
	color: #1a202c;
}

.site-title a:hover {
	color: #3b82f6;
}

.site-description {
	font-size: 0.8125rem;
	color: #718096;
	margin: 0;
}

/* -----------------------------------------
   5. Navigation
   ----------------------------------------- */
.main-navigation {
	display: flex;
	align-items: center;
}

.main-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 0.25rem;
}

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

.main-navigation ul li a {
	display: block;
	padding: 0.5rem 0.875rem;
	color: #4a5568;
	font-size: 0.9375rem;
	font-weight: 500;
	border-radius: 0.375rem;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
	color: #3b82f6;
	background-color: #eff6ff;
}

/* Dropdown */
.main-navigation ul ul {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	min-width: 200px;
	display: none;
	flex-direction: column;
	z-index: 999;
}

.main-navigation ul li:hover > ul {
	display: flex;
}

.main-navigation ul ul li a {
	padding: 0.625rem 1rem;
	border-radius: 0;
}

.main-navigation ul ul li:first-child a {
	border-radius: 0.5rem 0.5rem 0 0;
}

.main-navigation ul ul li:last-child a {
	border-radius: 0 0 0.5rem 0.5rem;
}

/* Mobile Toggle */
.menu-toggle {
	display: none;
	background: none;
	border: 1px solid #e2e8f0;
	border-radius: 0.375rem;
	padding: 0.5rem;
	cursor: pointer;
	color: #4a5568;
}

/* -----------------------------------------
   6. Hero Section
   ----------------------------------------- */
.hero-section {
	background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
	color: #ffffff;
	padding: 5rem 0;
	text-align: center;
}

.hero-section h1 {
	color: #ffffff;
	font-size: 3rem;
	margin-bottom: 1.25rem;
}

.hero-section p {
	font-size: 1.25rem;
	opacity: 0.9;
	max-width: 600px;
	margin: 0 auto 2rem;
}

/* -----------------------------------------
   7. Content
   ----------------------------------------- */
.site-main {
	padding: 3rem 0;
}

/* Posts */
.post {
	margin-bottom: 3rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid #e2e8f0;
}

.post:last-child {
	border-bottom: none;
}

.entry-header {
	margin-bottom: 1.25rem;
}

.entry-title {
	font-size: 1.75rem;
}

.entry-title a {
	color: #1a202c;
}

.entry-title a:hover {
	color: #3b82f6;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.875rem;
	color: #718096;
	margin-bottom: 1rem;
}

.entry-meta a {
	color: #718096;
}

.entry-meta a:hover {
	color: #3b82f6;
}

.entry-thumbnail {
	margin-bottom: 1.5rem;
	border-radius: 0.75rem;
	overflow: hidden;
}

.entry-thumbnail img {
	width: 100%;
	transition: transform 0.3s ease;
}

.entry-thumbnail img:hover {
	transform: scale(1.02);
}

.entry-content {
	font-size: 1rem;
	line-height: 1.8;
}

.entry-content > * + * {
	margin-top: 1.25rem;
}

.entry-footer {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid #f0f4f8;
	font-size: 0.875rem;
	color: #718096;
}

/* Pagination */
.navigation.pagination {
	margin: 2rem 0;
	text-align: center;
}

.nav-links {
	display: inline-flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: center;
}

.nav-links a,
.nav-links span {
	display: inline-block;
	padding: 0.5rem 0.875rem;
	border: 1px solid #e2e8f0;
	border-radius: 0.375rem;
	color: #4a5568;
	font-size: 0.9375rem;
	transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links span.current {
	background-color: #3b82f6;
	border-color: #3b82f6;
	color: #ffffff;
}

/* Single post navigation */
.post-navigation {
	display: flex;
	gap: 1.5rem;
	margin: 2.5rem 0;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	flex: 1;
}

.post-navigation a {
	display: block;
	padding: 1.25rem;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	color: #4a5568;
	transition: all 0.2s ease;
}

.post-navigation a:hover {
	border-color: #3b82f6;
	color: #3b82f6;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

/* -----------------------------------------
   8. Sidebar
   ----------------------------------------- */
.widget-area .widget {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: #f8fafc;
	border-radius: 0.75rem;
	border: 1px solid #e2e8f0;
}

.widget-title {
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #4a5568;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #3b82f6;
}

.widget ul {
	list-style: none;
	padding: 0;
}

.widget ul li {
	padding: 0.375rem 0;
	border-bottom: 1px solid #edf2f7;
}

.widget ul li:last-child {
	border-bottom: none;
}

.widget ul li a {
	color: #4a5568;
	font-size: 0.9375rem;
}

.widget ul li a:hover {
	color: #3b82f6;
}

/* -----------------------------------------
   9. Footer
   ----------------------------------------- */
.site-footer {
	background-color: #1a202c;
	color: #a0aec0;
	padding: 3rem 0 1.5rem;
	margin-top: auto;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2rem;
	margin-bottom: 2.5rem;
}

.footer-widgets .widget {
	background: none;
	border: none;
	padding: 0;
	margin-bottom: 0;
}

.footer-widgets .widget-title {
	color: #e2e8f0;
	border-bottom-color: #3b82f6;
}

.footer-widgets .widget a {
	color: #a0aec0;
}

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

.footer-widgets .widget ul li {
	border-bottom-color: rgba(255, 255, 255, 0.06);
}

.site-info {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.875rem;
}

.site-info a {
	color: #a0aec0;
}

.site-info a:hover {
	color: #ffffff;
}

/* -----------------------------------------
   10. Buttons
   ----------------------------------------- */
.btn,
.button,
input[type="submit"],
button[type="submit"] {
	display: inline-block;
	padding: 0.6875rem 1.5rem;
	background-color: #3b82f6;
	color: #ffffff;
	border: 2px solid transparent;
	border-radius: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	line-height: 1.5;
	text-align: center;
}

.btn:hover,
.button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
	background-color: #1d4ed8;
	color: #ffffff;
}

.btn-outline {
	background-color: transparent;
	border-color: #3b82f6;
	color: #3b82f6;
}

.btn-outline:hover {
	background-color: #3b82f6;
	color: #ffffff;
}

/* -----------------------------------------
   11. Forms
   ----------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
	width: 100%;
	padding: 0.625rem 0.875rem;
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
	font-size: 1rem;
	color: #2d3748;
	background-color: #ffffff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

textarea {
	min-height: 140px;
	resize: vertical;
}

label {
	display: block;
	margin-bottom: 0.375rem;
	font-size: 0.9375rem;
	font-weight: 500;
	color: #4a5568;
}

.form-group {
	margin-bottom: 1.25rem;
}

/* Search Form */
.search-form {
	display: flex;
	gap: 0.5rem;
}

.search-form input[type="search"] {
	flex: 1;
}

.search-form input[type="submit"] {
	flex-shrink: 0;
}

/* -----------------------------------------
   12. Comments
   ----------------------------------------- */
.comments-area {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 2px solid #e2e8f0;
}

.comments-title {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
}

.comment-list {
	list-style: none;
	padding: 0;
}

.comment-body {
	padding: 1.5rem;
	background: #f8fafc;
	border-radius: 0.75rem;
	margin-bottom: 1.25rem;
	border: 1px solid #e2e8f0;
}

.comment-author .fn {
	font-weight: 700;
	color: #1a202c;
}

.comment-metadata {
	font-size: 0.8125rem;
	color: #718096;
	margin-bottom: 0.75rem;
}

.comment-content {
	font-size: 0.9375rem;
}

.reply {
	margin-top: 0.75rem;
}

.reply a {
	font-size: 0.875rem;
	color: #3b82f6;
}

.children {
	list-style: none;
	padding-left: 2rem;
}

/* Comment Form */
.comment-respond {
	margin-top: 2.5rem;
}

.comment-reply-title {
	font-size: 1.375rem;
	margin-bottom: 1.25rem;
}

.comment-form .form-group,
.comment-form p {
	margin-bottom: 1.25rem;
}

/* -----------------------------------------
   13. Media
   ----------------------------------------- */
.alignleft {
	float: left;
	margin: 0.25rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.25rem 0 1rem 1.5rem;
}

.aligncenter {
	margin: 1.25rem auto;
	display: block;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: 0.875rem;
	color: #718096;
	text-align: center;
	margin-top: 0.5rem;
}

/* -----------------------------------------
   14. Utility
   ----------------------------------------- */
.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: #f1f5f9;
	border-radius: 0.25rem;
	clip: auto !important;
	clip-path: none;
	color: #1a202c;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 0.5rem;
	line-height: normal;
	padding: 0.875rem 1.25rem;
	text-decoration: none;
	top: 0.5rem;
	width: auto;
	z-index: 100000;
}

.skip-link {
	position: absolute;
}

/* -----------------------------------------
   15. Responsive
   ----------------------------------------- */
@media (max-width: 900px) {
	.content-area {
		width: 100%;
		float: none;
		padding-right: 0;
	}

	.widget-area {
		width: 100%;
		float: none;
	}
}

@media (max-width: 768px) {
	h1 { font-size: 1.875rem; }
	h2 { font-size: 1.5rem; }
	h3 { font-size: 1.25rem; }

	.hero-section h1 { font-size: 2rem; }

	.main-navigation ul {
		display: none;
		flex-direction: column;
		gap: 0;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #ffffff;
		border-top: 1px solid #e2e8f0;
		padding: 0.5rem;
		box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	}

	.main-navigation.toggled ul {
		display: flex;
	}

	.menu-toggle {
		display: block;
	}

	.site-info {
		flex-direction: column;
		text-align: center;
	}

	.post-navigation {
		flex-direction: column;
	}
}
