@font-face {
  font-family: fs-kim;
  src: url(/fonts/Ahsing-Regular.otf);
}

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

:root {
    --primary-color: #4a6eb5;
    --secondary-color: #1d3557;
    --accent-color: #e63946;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-color: rgb(250, 248, 242);
    --bg-light: #f7f9fc;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --card-color: rgb(251, 238, 233);
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: rgb(218, 242, 247);
}

body::-webkit-scrollbar-track
{
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	background-color: #F5F5F5;
}

body::-webkit-scrollbar
{
	width: 4px;
	background-color: #fff;
}

body::-webkit-scrollbar-thumb
{
	background-color: #000000;
	border: 1px solid #555555;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

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

button, .btn {
    cursor: pointer;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

button:hover, .btn:hover {
    background-color: var(--secondary-color);
}

/* Admin add post & settings buttons */
.admin-add-post-btn {
    margin-left: 0.6rem;
    background-color: var(--accent-color);
    border: none;
    color: white;
}

.admin-add-post-btn:hover {
    opacity: 0.95;
}

.admin-settings-btn {
    margin-left: 0.4rem;
    background-color: #666;
    border: none;
    color: white;
}

.admin-settings-btn:hover {
    opacity: 0.95;
}

.mob {
    display: none;
}

@media (max-width: 768px) {
    .mob {
        display: flex;
    }
    .pc {
        display: none;
    }
}

/* Button variants */
.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    border-radius: 4px;
}

.btn:focus, .btn-small:focus, button:focus {
    outline: 3px solid rgba(74,110,181,0.18);
    outline-offset: 2px;
}

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

section {
    padding: 4rem 0;
}

/* Header styles */
.header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.Blog-list {
    list-style-type: disc;
    margin-left: 20px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.header .container > * {
    flex-shrink: 0;
}

.logo {
    flex: 0 0 auto;
    order: 1;
}

.main-nav {
    flex: 1;
    order: 2;
    display: flex;
    justify-content: center;
}

.admin-buttons {
    display: flex;
    gap: 0.4rem;
    order: 3;
    align-items: center;
}

.mobile-nav-toggle {
    order: 4;
}

.logo, .logoName {
    display: flex;
    align-items: center;
    justify-items: center;
    font-family: 'fs-kim';
    font-weight: 300;
    font-size: 2rem;
    letter-spacing: 3px;
    margin-left: 10px;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.4rem 0.6rem;
    color: var(--text-color);
}

/* Hero section */
.hero {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.hero h1, .hero p {
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.search-container {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
}

.search-container input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-container button {
    border-radius: 0 4px 4px 0;
    padding: 0.75rem 1rem;
}

/* Blog posts section */
.blog-posts-wrapper {
    display: flex;
    gap: 2rem;
}

.blog-posts {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}



.blog-card {
    background-color: var(--card-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    user-select: none;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image svg {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-lighter);
    font-size: 0.9rem;
}

.blog-excerpt {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.read-more {
    display: inline-block;
    font-weight: 500;
}

/* Sidebar */
.sidebar {
    flex: 1;
}

.sidebar > div {
    /* background-color: var(--bg-color); */
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.categories ul {
    margin-top: 1rem;
}

.categories li {
    margin-bottom: 0.5rem;
}

.categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    transition: var(--transition);
    padding: 0.5rem 0;
}

.categories a::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8rem;
}

.categories a:hover, .categories a.active {
    color: var(--primary-color);
}

.popular-post {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.popular-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.popular-post-link {
    display: block;
    color: var(--text-color);
    transition: var(--transition);
}

.popular-post-link:hover {
    color: var(--primary-color);
}

.meta {
    display: flex;
    font-size: 0.8rem;
    color: var(--text-lighter);
}

.meta span {
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.meta i {
    margin-right: 0.25rem;
}

/* Blog detail section */
.blog-detail {
    display: none;
}

.back-to-blogs {
    margin-bottom: 2rem;
}

.back-to-blogs a {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.back-to-blogs a i {
    margin-right: 0.5rem;
}

.blog-post-detail {
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.blog-detail-header {
    margin-bottom: 2rem;
}

.blog-detail-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-detail-meta {
    display: flex;
    color: var(--text-lighter);
    margin-bottom: 1.5rem;
}

.blog-detail-meta span {
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
}

.blog-detail-meta i {
    margin-right: 0.5rem;
}

.blog-detail-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.blog-detail-image svg {
    width: 100%;
    height: auto;
}

.blog-detail-content p {
    margin-bottom: 1.5rem;
}

.blog-detail-content h2, .blog-detail-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-tags {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tag {
    background-color: var(--bg-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.share-post {
    margin-top: 2rem;
    display: flex;
    align-items: center;
}

.share-post span {
    margin-right: 1rem;
    font-weight: 500;
}

.share-icons {
    display: flex;
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-color);
    margin-right: 0.5rem;
    transition: var(--transition);
}

.share-icon:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Comment section */
.comment-section {
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.comment-section h3 {
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;

    transition: var(--transition);
}

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

.comments-container {
    margin-top: 3rem;
}

.comment {
    display: flex;
    margin-bottom: 2rem;
}

.comment-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--primary-color);
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-name {
    font-weight: 500;
}

.comment-date {
    color: var(--text-lighter);
    font-size: 0.9rem;
}

.comment-body {
    color: var(--text-light);
}

/* Style for inline edit textarea inside comments: remove border for a clean inline look */
.comment-body textarea {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    padding: 0;
}

/* Replies styling (nested comments) */
.replies {
    margin-top: 0.75rem;
    margin-left: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.reply {
    background-color: rgba(0,0,0,0.03);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.reply .reply-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.reply .reply-name {
    font-weight: 600;
}

.reply .reply-date {
    color: var(--text-lighter);
    font-size: 0.85rem;
}

.reply-form .form-group input, .reply-form .form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* About section */
.about-section {
    display: none;
}

.about-content {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.about-text {
    flex: 1;
}

.team {
    flex: 1;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.team-member {
    text-align: center;
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
    color: var(--primary-color);
}

.team-member h4 {
    margin-bottom: 0.25rem;
}

.team-member p {
    color: var(--text-light);
}

.developer-profile {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
    background-color: var(--card-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.profile-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.9px solid var(--primary-color);
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details {
    flex: 1;
}

.profile-details h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.profile-title {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.profile-bio {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.profile-links {
    margin-top: 1.5rem;
}

.profile-links p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .developer-profile {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-image {
        margin: 0 auto;
    }
    
    .profile-links .social-icons {
        justify-content: center;
    }
}


/* Contact section */
.contact-section {
    display: none;
}

.contact-content {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-form, .contact-info {
    flex: 1;
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.social-media {
    margin-top: 2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-color);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer .fab {
    color: #000;
}

.footer .fab:hover {
    color: white;
}

.success-message {
    color: white;
    background-color: rgba(40, 167, 69, 0.3);
    border: 1px solid rgba(40, 167, 69, 0.5);
    padding: 10px;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
}

.footer a {
    color: #ddd;
}

.footer a:hover {
    color: white;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
}

.footer-logo svg {
    margin-right: 0.5rem;
}

.footer h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-nav ul, .footer-categories ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-newsletter form {
    display: flex;
    margin-top: 1rem;
}

.footer-newsletter input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.footer-newsletter button {
    border-radius: 0 4px 4px 0;
    padding: 0.75rem 1rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.mob {
    display: none;
}

/* Media Queries */

@media (min-width: 1000px) {
    .calendar {
        display: block;
    }
    .header {
        position: sticky;
    }
}

@media (max-width: 992px) {
    .blog-posts-wrapper {
        flex-direction: column;
    }
    
    .about-content, .contact-content {
        flex-direction: column;
    }

    .calendar {
        display: none;
    }
}

@media (max-width: 992px) {
    .header .container {
        padding: 0.6rem 0.8rem;
    }

    .admin-add-post-btn, .admin-settings-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .header .container {
        padding: 0.5rem 0.6rem;
    }

    .logo {
        flex: 0 0 auto;
    }

    .logoName {
        display: none;
    }

    .main-nav {
        display: none;
        flex: 1 1 100%;
        order: 6;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        padding: 1rem;
        box-shadow: var(--shadow);
    }

    .mob {
        display: block;
    }

    .pc {
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 0.5rem 0;
    }

    .mobile-nav-toggle {
        display: block;
        order: 7;
    }

    .admin-buttons {
        order: 2;
        flex: 1;
        justify-content: center;
        gap: 0.3rem;
    }

    .admin-add-post-btn, .admin-settings-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    .main-nav.active ul {
        flex-direction: column;
    }
    
    .main-nav.active li {
        margin: 0.5rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}


@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
    }

    .logoName {
        display: none;
    }
    
    .team-members {
        grid-template-columns: 1fr;
    }
    
    .footer-newsletter form {
        flex-direction: column;
    }
    
    .footer-newsletter input {
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }
    
    .footer-newsletter button {
        border-radius: 4px;
        width: 100%;
    }
}
.blog-content, .categories, .popular-posts, .comment-section, .contact-form, .contact-info {
    background-color: var(--card-color);
}