/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;
    width: 100%;
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: white;
    color: #333;
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
}

.logo .tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: #666;
}

/* Navigation Styles */
.navbar {
    background: #f4f1ec;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: flex-start;
    padding: .7rem 0;
}

.nav-menu li {
    margin: 0 0.1rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #333;
    transform: translateY(-2px);
}

/* Theme Toggle Button */
.nav-actions {
    display: flex;
    align-items: center;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    padding: 3rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 850px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Content Area */
.content {
    padding: 0;
}

.post {
    display: flex;
    gap: 0;
    padding: 0;
    margin-bottom: 2rem;
    background: white;
    border-radius: 0;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
    height: 300px;
    box-sizing: border-box;
    width: 100%;
}

.post:last-child {
    margin-bottom: 0;
}


.post-image {
    flex: 0 0 400px;
    height: 100%;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1rem;
}

.post-category {
    display: inline-block;
    background: #f4f1ec;
    color: #666;
    padding: 0.25rem 0.8rem 0.2rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    max-width: fit-content;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-category:hover {
    color: #333;
    border-color: #333;
}

.post-title {
    margin-bottom: 0.5rem;
}

.post-title a {
    text-decoration: none;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #333;
}

.post-summary {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.pagination-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.pagination-link:hover {
    color: #667eea;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-right: none;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #667eea;
}

.search-button {
    background: #f4f1ec;
    color: #666;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: #e9e5d6;
    color: #333;
}

/* Latest Posts */
.latest-posts {
    display: flex;
    flex-direction: column;
}

.latest-post {
    padding: .5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.latest-post:last-child {
    border-bottom: none;
}

.latest-post a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    line-height: 1.5;
    display: block;
    transition: color 0.3s ease;
}

.latest-post a:hover {
    color: #333;
}

/* Pages */
.pages {
    list-style: none;
}

.pages a {
    text-decoration: none;
    color: #666;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.pages a:hover {
    color: #333;
}


/* Post Detail Styles */
.post-detail {
    margin-bottom: 2rem;
}

.post-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.post-title-main {
    font-size: 2.2rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin: 1rem 0;
}

.post-meta-detail {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-body {
    padding: 2rem;
    line-height: 1.7;
    color: #333;
}


.post-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-top:1rem;
    line-height:1.2;
}

.post-body h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0 1rem;
}

.post-body p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.post-body ul, .post-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body img {
    max-width:100%;
    width:100%;
}

.post-excerpt {
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    font-style: italic;
    border-left: 4px solid #f4f1ec;
    padding-left: 1rem;
    margin-bottom: 2rem;
}

blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 0;
}


.post-share {
    padding: 1.5rem 2rem;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 500;
    color: #666;
}

.share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }

/* Related Posts */
.related-posts {
    padding: 2rem;
}

.related-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.related-post {
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateY(-2px);
}

.related-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: 1rem;
}

.related-category {
    font-size: 0.8rem;
    background: #f4f1ec;
    color: #666;
    padding: 0.2rem 0.6rem;
    border: 1px solid #ddd;
    border-radius: 0;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.related-post-title {
    margin-bottom: 0.5rem;
}

.related-post-title a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #333;
}

.related-date {
    font-size: 0.8rem;
    color: #888;
}

/* Footer */
.footer {
    background: #f4f1ec;
    color: #666;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: left;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: none;
    }

    .navbar .container {
        padding: 0 15px;
        max-width: none;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        border-radius: 0;
    }

    .nav-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .content-wrapper {
        display: block;
        gap: 1rem;
    }

    .post {
        flex-direction: column;
        height: auto;
    }

    .post-image {
        flex: none;
        width: 100%;
        height: 250px;
    }

    .post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .post-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .page-numbers {
        order: 1;
    }

    .prev,
    .next {
        order: 2;
    }
}

@media (max-width: 480px) {

    .container {
        padding: 0 12px;
        max-width: none;
    }

    .navbar .container {
        padding: 0 12px;
        max-width: none;
    }

    .header {
        padding: 1.5rem 0;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .content,
    .sidebar-widget {
        padding: .5rem;
    }

    .post {
        padding: 0;
        height: auto;
        flex-direction: column;
        margin-bottom: 1rem;
    }

    .post-image {
        width: 100%;
        height: 200px;
    }

    .post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .post-content {
        padding: 1rem;
    }

    .post-title a {
        font-size: 1.3rem;
    }

    /* Post Detail Mobile */
    .post-header {
        padding: 1.5rem 1rem 1rem;
    }

    .post-title-main {
        font-size: 1.8rem;
    }

    .post-meta-detail {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .post-featured-image {
        height: 250px;
    }

    .post-body {
        padding: 1.5rem 1rem;
    }

    .post-body h2 {
        font-size: 1.3rem;
    }
    
    .post-share {
        padding: 1rem;
    }

    .related-posts {
        padding: 1.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }


    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Contact Form Mobile */
    .contact-form-container {
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-item {
        display: block;
        padding: 0.5rem;
        margin: 0.3rem 0;
        width: 100%;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-form h2 {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Contact Form Styles */
.contact-form-container {
    padding: 2rem;
}

.contact-form h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-info h2 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #666;
    margin: 2rem 0 1rem;
    text-align: left;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 1.5rem 0.5rem 0;
    padding: 0.5rem 1rem;
    background: #f4f1ec;
    border-radius: 0;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e9e5d6;
}

.contact-item i {
    font-size: 1rem;
    color: #666;
    width: 16px;
    text-align: center;
}

.contact-item h3 {
    display: none;
}

.contact-item p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
    font-weight: 400;
}

.contact-form {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 0;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: #333;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
}

.submit-btn:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post,
.sidebar-widget {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Print Styles */
@media print {
    .navbar,
    .sidebar,
    .footer,
    .pagination {
        display: none;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .post {
        break-inside: avoid;
        margin-bottom: 2rem;
    }
}
