/*
Theme Name: PC PMII SUKOHARJO DONE
Theme URI: http://example.com
Author: Root
Author URI: http://example.com
Description: A responsive WordPress theme with sticky header, off-canvas sidebar, and flexbox layout.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pc-pmii-sukoharjo
*/

/* Warna Utama */
:root {
    --primary-color: #010483; /* Biru */
    --secondary-color: #ffe302; /* Kuning */
    --background-color: #f9f9f9; /* Latar belakang */
    --text-color: #333; /* Warna teks utama */
    --text-light: #555; /* Warna teks sekunder */
    --white: #fff; /* Putih */
	--black: #000000
}

body {
    font-family: "Alexandria", serif;
    margin: 0;
    padding: 0;
    background: var(--background-color);
	color: var(--text-color);
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .logo img {
    max-height: 50px;
    transition: transform 0.3s ease;
}

header .logo img:hover {
    transform: scale(1.1);
}

/* Primary Menu */
nav.primary-menu {
    position: sticky;
    top: 60px;
    background: var(--secondary-color);
	color: var(--black);
    overflow-x: auto;
    white-space: nowrap;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav.primary-menu ul {
    list-style: none;
    margin: 0;
    padding: 10px;
    display: flex;
}

nav.primary-menu ul li {
    margin: 0 10px;
}

nav.primary-menu ul li a {
    color: var(--black);
    text-decoration: none;
    padding: 5px 10px;
    transition: background 0.3s ease, color 0.3s ease;
}

nav.primary-menu ul li a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
}

nav.primary-menu ul li a:active {
    background-color: #e6b800; /* Kuning lebih gelap */
	color: (--text-color);
	border-radius: 5px;
	transform: scale(0.9)
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background: var(--primary-color);
    transition: right 0.3s ease;
    z-index: 1001;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.open {
    right: 0;
}

.sidebar ul {
    list-style: none;
    padding: 20px;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar ul li a:hover {
    color: var(--black);
	background-color: var(--secondary-color);
	border-radius: 3px;
}

/* Main Content */
.main-content {
    padding: 20px;
}

/* Post Grid (Archive) */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

article.post {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-thumbnail img:hover {
    transform: scale(1.05);
}

.post-excerpt {
    margin: 10px 0;
    color: var(--text-light);
    font-size: 14px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: var(--secondary-color);
    color: var(--text-color);
}

/* Single Post */
.post-content {
    margin: 20px 0;
    line-height: 1.6;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-meta {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.post-navigation a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.post-navigation a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Kolom Komentar */
#comments {
    margin-top: 40px;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#comments h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--text-color);
}

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

.comment-list li {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment-author {
    font-weight: bold;
    color: var(--primary-color);
}

.comment-meta {
    font-size: 12px;
    color: var(--text-light);
}

.comment-content {
    margin-top: 10px;
    color: var(--text-color);
}

.comment-form {
    margin-top: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-color);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.comment-form .submit {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.comment-form .submit:hover {
    background: var(--secondary-color);
    color: var(--text-color);
}

/* Recent Posts */
.recent-posts {
    margin: 40px 0;
}

.recent-posts h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--text-color);
}

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

.recent-posts ul li {
    margin: 10px 0;
}

.recent-posts ul li a {
    color: var(--primary-color);
    text-decoration: none;
}

.recent-posts ul li a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Recent Posts Page */
.page-recent-posts .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.page-recent-posts article.post {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-recent-posts article.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.page-recent-posts .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.page-recent-posts .post-thumbnail img:hover {
    transform: scale(1.05);
}

.page-recent-posts .post-excerpt {
    margin: 10px 0;
    color: var(--text-light);
    font-size: 14px;
}

.page-recent-posts .read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.page-recent-posts .read-more:hover {
    background: var(--secondary-color);
    color: var(--text-color);
}

/* Archive Page (Category) */
.archive .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.archive article.post {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive article.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.archive .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.archive .post-thumbnail img:hover {
    transform: scale(1.05);
}

.archive .post-meta {
    margin: 10px 0;
    font-size: 14px;
    color: var(--text-light);
}

.archive .post-date {
    margin-right: 10px;
}

.archive .post-author {
    font-weight: bold;
    color: var(--primary-color);
}

.archive .post-excerpt {
    margin: 10px 0;
    color: var(--text-light);
    font-size: 14px;
}

footer {
    text-align: center;
    padding: 20px;
    background: var(--primary-color);
    color: #fff;
    margin-top: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Animasi untuk tombol sidebar */
#sidebar-toggle {
    background: #55555500;
    border: none;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

#sidebar-toggle:hover {
    background: #f5c400;
    transform: scale(1.1);
	border-radius: 5px;
}

#sidebar-toggle:active {
    background: #fff;
    transform: scale(0.9);
}