/* ========================================
   Reset and Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #fafafa;
    color: #262626;
    line-height: 1.5;
}

.container {
    max-width: 935px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ========================================
   Header Styles
   ======================================== */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #dbdbdb;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 935px;
    margin: 0 auto;
    position: relative;
}

.logo a {
    text-decoration: none;
    color: #262626;
    font-size: 24px;
    font-weight: 600;
}

.logo h1 {
    margin: 0;
    font-size: 24px;
}

.logo img {
    max-height: 40px;
    width: auto;
    max-width:180px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #262626;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    color: #0095f6;
}

/* Search Bar */
.search-bar {
    flex: 0 0 200px;
}

.search-bar input[type="search"] {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    background-color: #efefef;
    font-size: 14px;
}

.search-bar input[type="search"]:focus {
    outline: none;
    background-color: #fff;
    border-color: #a8a8a8;
}

/* Header Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Primary Menu Wrapper */
.primary-menu-wrapper {
    display: block;
}

/* Primary Menu (Text Links) */
.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.primary-menu li {
    position: relative;
    margin: 0;
}

.primary-menu a {
    color: #262626;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    display: block;
    transition: color 0.3s ease;
}

.primary-menu a:hover {
    color: #0095f6;
}

.primary-menu li.current-menu-item > a,
.primary-menu li.current_page_item > a {
    color: #0095f6;
    font-weight: 600;
}

/* Primary Menu - Dropdown */
.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.primary-menu li:hover > .sub-menu {
    display: block;
}

.primary-menu .sub-menu li {
    width: 100%;
}

.primary-menu .sub-menu a {
    padding: 10px 16px;
    white-space: nowrap;
}

.primary-menu .sub-menu a:hover {
    background-color: #fafafa;
}

/* Icon Navigation */
.nav-icons {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-icons li {
    margin: 0;
}

.nav-icons a {
    color: #262626;
    font-size: 24px;
    text-decoration: none;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
}

.nav-icons a:hover {
    transform: scale(1.1);
    color: #0095f6;
}

/* ========================================
   Instagram Grid
   ======================================== */
.site-main {
    min-height: calc(100vh - 200px);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 30px 0;
}

.grid-item {
    position: relative;
    background-color: #fff;
}

.grid-link {
    text-decoration: none;
    display: block;
}

.grid-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #000;
    position: relative;
}

.grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.grid-item:hover .grid-image img {
    transform: scale(1.05);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-item:hover .grid-overlay {
    opacity: 1;
}

.overlay-stats {
    display: flex;
    gap: 30px;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.overlay-stats i {
    margin-right: 8px;
}

/* Grid Caption (Below Image) */
.grid-caption {
    padding: 16px 12px;
    background-color: #fff;
}

.grid-caption .post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #262626;
}

.post-author img {
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.post-author strong {
    font-weight: 600;
}

.grid-caption .post-title {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.grid-caption .post-title a {
    color: #262626;
    text-decoration: none;
    display: block;
}

.grid-caption .post-title a:hover {
    color: #8e8e8e;
}

/* No Image Fallback */
.no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image-content {
    padding: 20px;
    text-align: center;
}

.no-image-content .post-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

/* ========================================
   Single Post Layout
   ======================================== */
.single-post {
    padding: 30px 0;
}

.single-post .post-container {
    display: flex;
    background-color: #fff;
    border: 1px solid #dbdbdb;
    margin: 30px auto;
    max-width: 1000px;
    align-items: flex-start;
}

/* Post Image Section */
.post-image-wrapper {
    flex: 1;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    align-self: flex-start;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
}

.post-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.no-featured-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 500px;
    color: #8e8e8e;
    font-size: 80px;
}

/* Post Sidebar */
.post-sidebar {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #dbdbdb;
    background-color: #fff;
}

/* Post Header with Title */
.post-header {
    padding: 16px;
    border-bottom: 1px solid #efefef;
    flex-shrink: 0;
}

/* Post Title */
.post-title-header {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 16px 0;
    color: #262626;
}

/* Author Info */
.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-info img {
    border-radius: 50%;
    flex-shrink: 0;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    font-size: 14px;
    color: #262626;
}

.post-date {
    font-size: 12px;
    color: #8e8e8e;
}

/* Post Content Wrapper */
.post-content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    max-height: 500px;
}

/* Custom Scrollbar */
.post-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.post-content-wrapper::-webkit-scrollbar-track {
    background: #fafafa;
}

.post-content-wrapper::-webkit-scrollbar-thumb {
    background: #dbdbdb;
    border-radius: 4px;
}

.post-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: #c7c7c7;
}

.post-description {
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
    color: #262626;
}

.post-description p {
    margin-bottom: 12px;
}

.post-description p:last-child {
    margin-bottom: 0;
}

.post-description strong {
    font-weight: 600;
}

.post-description a {
    color: #0095f6;
    text-decoration: none;
}

.post-description a:hover {
    text-decoration: underline;
}

.post-description h1,
.post-description h2,
.post-description h3,
.post-description h4,
.post-description h5,
.post-description h6 {
    margin: 16px 0 8px 0;
    font-weight: 600;
    color: #262626;
}

.post-description ul,
.post-description ol {
    margin: 12px 0;
    padding-left: 20px;
}

.post-description li {
    margin-bottom: 6px;
}

.post-description blockquote {
    border-left: 3px solid #dbdbdb;
    padding-left: 16px;
    margin: 16px 0;
    color: #8e8e8e;
    font-style: italic;
}

/* Post Meta */
.post-meta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #efefef;
    font-size: 13px;
}

.post-categories,
.post-tags {
    margin-bottom: 8px;
}

.meta-label {
    color: #8e8e8e;
    font-weight: 600;
    margin-right: 4px;
}

.post-meta a {
    color: #0095f6;
    text-decoration: none;
    margin-right: 8px;
}

.post-meta a:hover {
    text-decoration: underline;
}

/* Comments List */
.post-comments-list {
    margin-top: 24px;
}

.comments-heading {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #efefef;
    color: #262626;
}

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #efefef;
}

.comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comment-avatar img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.comment-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-content strong {
    font-weight: 600;
    color: #262626;
}

.comment-time {
    font-size: 12px;
    color: #8e8e8e;
}

.comment-content p {
    margin: 0;
    color: #262626;
}

/* Post Actions */
.post-actions {
    padding: 12px 16px;
    border-top: 1px solid #efefef;
    flex-shrink: 0;
}

.action-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.action-buttons button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    padding: 8px;
    transition: transform 0.2s ease;
}

.action-buttons button:hover {
    transform: scale(1.1);
}

.action-buttons i {
    color: #262626;
}

.action-buttons .like-button.liked i {
    color: #ed4956;
}

.like-count {
    font-size: 14px;
    margin: 8px 0;
}

/* Comment Form */
.post-comment-form {
    padding: 16px;
    border-top: 1px solid #efefef;
    flex-shrink: 0;
}

.comment-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.comment-input-wrapper textarea {
    flex: 1;
    border: 1px solid #dbdbdb;
    border-radius: 20px;
    resize: none;
    font-size: 14px;
    padding: 8px 12px;
    font-family: inherit;
    outline: none;
    background-color: #fff;
}

.comment-input-wrapper textarea:focus {
    border-color: #0095f6;
}

.comment-input-wrapper button {
    background: none;
    border: none;
    color: #0095f6;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
}

.comment-input-wrapper button:hover {
    color: #00376b;
}

.post-comment-form .comment-form-comment {
    margin: 0;
}

.post-comment-form label {
    display: none;
}

/* ========================================
   Footer Styles
   ======================================== */
.site-footer {
    background-color: #fff;
    border-top: 1px solid #dbdbdb;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-info {
    text-align: center;
}

.footer-info p {
    margin: 0;
    color: #8e8e8e;
    font-size: 12px;
}

/* Footer Navigation */
.footer-navigation {
    width: 100%;
}

.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: #8e8e8e;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #262626;
}

.footer-menu li.current-menu-item > a {
    color: #0095f6;
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: #8e8e8e;
    font-size: 20px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #262626;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #dbdbdb;
    text-decoration: none;
    color: #262626;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background-color: #efefef;
}

.pagination .current {
    background-color: #0095f6;
    color: #fff;
    border-color: #0095f6;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 935px) {
    .header-content {
        padding: 0 20px;
    }
    
    .primary-menu {
        gap: 15px;
    }
    
    .primary-menu a {
        padding: 8px;
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .site-header {
        position: relative;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .logo {
        flex: 1;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 2;
    }
    
    .search-bar {
        order: 4;
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .header-nav {
        order: 3;
        flex: 0 0 auto;
    }
    
    /* Hide text menu on mobile by default */
    .primary-menu-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        border-top: 1px solid #dbdbdb;
        border-bottom: 1px solid #dbdbdb;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 10px 0;
    }
    
    /* Show menu when active */
    .primary-menu-wrapper.mobile-active {
        display: block;
    }
    
    .primary-menu {
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
    }
    
    .primary-menu li {
        width: 100%;
        border-bottom: 1px solid #efefef;
    }
    
    .primary-menu li:last-child {
        border-bottom: none;
    }
    
    .primary-menu a {
        padding: 15px 10px;
        display: block;
        width: 100%;
    }
    
    /* Mobile Dropdown */
    .primary-menu .sub-menu {
        position: static;
        display: none;
        border: none;
        box-shadow: none;
        background-color: #fafafa;
        padding: 0;
        margin: 0;
    }
    
    .primary-menu li.menu-item-has-children > a::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        float: right;
        transition: transform 0.3s ease;
    }
    
    .primary-menu li.menu-item-has-children.sub-menu-open > a::after {
        transform: rotate(180deg);
    }
    
    .primary-menu li.menu-item-has-children.sub-menu-open > .sub-menu {
        display: block;
    }
    
    .primary-menu .sub-menu a {
        padding-left: 30px;
        font-size: 13px;
    }
    
    .nav-icons {
        gap: 15px;
    }
    
    .nav-icons a {
        font-size: 20px;
    }
    
    /* Grid Layout */
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .overlay-stats {
        font-size: 14px;
        gap: 20px;
    }
    
    .grid-caption {
        padding: 12px;
    }
    
    .grid-caption .post-title {
        font-size: 13px;
    }
    
    /* Single Post */
    .single-post .post-container {
        flex-direction: column;
    }
    
    .post-image-wrapper {
        position: relative;
        top: 0;
        max-height: 500px;
        width: 100%;
    }
    
    .post-sidebar {
        flex: 1;
        width: 100%;
        border-left: none;
        border-top: 1px solid #dbdbdb;
    }
    
    .post-content-wrapper {
        max-height: none;
        overflow-y: visible;
    }
    
    .post-title-header {
        font-size: 20px;
    }
    
    /* Footer */
    .footer-content {
        gap: 15px;
    }
    
    .footer-menu {
        gap: 15px;
        font-size: 11px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }
    
    .nav-icons {
        gap: 12px;
    }
    
    .nav-icons a {
        font-size: 18px;
    }
    
    .instagram-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .grid-caption .post-title {
        font-size: 15px;
    }
    
    .single-post .post-container {
        margin: 0;
        border-left: none;
        border-right: none;
    }
    
    .post-image-wrapper {
        max-height: 400px;
    }
    
    .post-title-header {
        font-size: 18px;
    }
    
    .footer-menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}



/* ========================================
   WordPress Comment Section Styling
   ======================================== */

/* Comment List */
.post-comments-list {
    margin-top: 24px;
}

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

.comment {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #efefef;
}

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

.comment-body {
    display: flex;
    gap: 12px;
}

.comment-author {
    flex-shrink: 0;
}

.comment-author .avatar {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.comment-content-wrapper {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-author-name {
    font-weight: 600;
    font-size: 14px;
    color: #262626;
    text-decoration: none;
}

.comment-author-name:hover {
    text-decoration: underline;
}

.comment-metadata {
    font-size: 12px;
    color: #8e8e8e;
}

.comment-metadata a {
    color: #8e8e8e;
    text-decoration: none;
}

.comment-metadata a:hover {
    text-decoration: underline;
}

.comment-content {
    font-size: 14px;
    line-height: 1.5;
    color: #262626;
    margin: 0;
}

.comment-content p {
    margin: 0 0 8px 0;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    margin-top: 8px;
}

.comment-reply-link {
    font-size: 12px;
    color: #8e8e8e;
    text-decoration: none;
    font-weight: 600;
}

.comment-reply-link:hover {
    color: #262626;
}

/* Nested Comments (Replies) */
.children {
    list-style: none;
    margin: 16px 0 0 44px;
    padding: 0;
}

.children .comment {
    padding-left: 0;
}

/* Comment awaiting moderation */
.comment-awaiting-moderation {
    font-size: 12px;
    color: #8e8e8e;
    background-color: #fffbe6;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 8px 0;
}

/* Comment Navigation */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 12px 0;
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
}

.comment-navigation a {
    color: #0095f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.comment-navigation a:hover {
    text-decoration: underline;
}

/* No Comments Message */
.no-comments {
    text-align: center;
    padding: 20px;
    color: #8e8e8e;
    font-size: 14px;
}

/* ========================================
   Comment Form Styling (Instagram Style)
   ======================================== */

.comment-respond {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #efefef;
}

.comment-reply-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #262626;
}

.comment-reply-title small {
    font-size: 12px;
    font-weight: 400;
}

.comment-reply-title small a {
    color: #0095f6;
    text-decoration: none;
}

.comment-reply-title small a:hover {
    text-decoration: underline;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Comment Form Fields */
.comment-form-comment {
    margin: 0;
}

.comment-form-comment label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #262626;
}

.comment-form-comment textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: #0095f6;
}

/* Author, Email, URL Fields */
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin: 0;
}

.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #262626;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dbdbdb;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: #0095f6;
}

/* Required Indicator */
.required {
    color: #ed4956;
}

/* Cookies Consent */
.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.comment-form-cookies-consent label {
    font-size: 13px;
    color: #8e8e8e;
    cursor: pointer;
    margin: 0;
}

/* Submit Button */
.form-submit {
    margin: 8px 0 0 0;
}

.submit {
    background-color: #0095f6;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit:hover {
    background-color: #1877f2;
}

.submit:active {
    transform: scale(0.98);
}

/* Logged In Message */
.logged-in-as {
    font-size: 13px;
    color: #8e8e8e;
    margin-bottom: 12px;
}

.logged-in-as a {
    color: #0095f6;
    text-decoration: none;
}

.logged-in-as a:hover {
    text-decoration: underline;
}

/* Comment Notes */
.comment-notes,
.form-allowed-tags {
    font-size: 12px;
    color: #8e8e8e;
    margin-bottom: 12px;
    line-height: 1.5;
}

.comment-notes code,
.form-allowed-tags code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

/* ========================================
   Responsive Comment Styling
   ======================================== */

@media (max-width: 768px) {
    .children {
        margin-left: 24px;
    }
    
    .comment-form-comment textarea {
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .children {
        margin-left: 12px;
    }
    
    .comment-body {
        gap: 8px;
    }
    
    .comment-author .avatar {
        width: 28px;
        height: 28px;
    }
    
    .submit {
        width: 100%;
    }
}



/* ========================================
   Page Template Styles
   ======================================== */

.page-template {
    padding: 40px 0;
}

.page-content {
    background-color: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    padding: 40px;
    margin: 0 auto;
    max-width: 800px;
}

/* Page Featured Image */
.page-featured-image {
    margin: -40px -40px 40px -40px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Page Header */
.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #efefef;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 16px 0;
    color: #262626;
}

.page-excerpt {
    font-size: 18px;
    line-height: 1.6;
    color: #8e8e8e;
    margin: 16px 0 0 0;
}

/* Page Body Content */
.page-body {
    font-size: 16px;
    line-height: 1.8;
    color: #262626;
}

.page-body p {
    margin-bottom: 20px;
}

.page-body p:last-child {
    margin-bottom: 0;
}

.page-body h1,
.page-body h2,
.page-body h3,
.page-body h4,
.page-body h5,
.page-body h6 {
    font-weight: 600;
    margin: 32px 0 16px 0;
    color: #262626;
}

.page-body h1 {
    font-size: 28px;
}

.page-body h2 {
    font-size: 24px;
}

.page-body h3 {
    font-size: 20px;
}

.page-body h4 {
    font-size: 18px;
}

.page-body h5,
.page-body h6 {
    font-size: 16px;
}

.page-body ul,
.page-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.page-body li {
    margin-bottom: 10px;
}

.page-body blockquote {
    border-left: 4px solid #0095f6;
    padding: 20px;
    margin: 24px 0;
    background-color: #fafafa;
    font-style: italic;
    color: #8e8e8e;
}

.page-body blockquote p:last-child {
    margin-bottom: 0;
}

.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.page-body a {
    color: #0095f6;
    text-decoration: none;
    font-weight: 500;
}

.page-body a:hover {
    text-decoration: underline;
}

.page-body code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    font-family: 'Courier New', Courier, monospace;
    color: #e83e8c;
}

.page-body pre {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.page-body pre code {
    background: none;
    padding: 0;
    color: #262626;
}

.page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.page-body table th,
.page-body table td {
    padding: 12px;
    border: 1px solid #dbdbdb;
    text-align: left;
}

.page-body table th {
    background-color: #fafafa;
    font-weight: 600;
}

.page-body hr {
    border: none;
    border-top: 1px solid #dbdbdb;
    margin: 32px 0;
}

/* Page Links (Pagination) */
.page-links {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #efefef;
    font-size: 14px;
    color: #8e8e8e;
}

.page-links a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background-color: #f5f5f5;
    border-radius: 4px;
    color: #262626;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.page-links a:hover {
    background-color: #0095f6;
    color: #fff;
}

.page-links .current {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background-color: #0095f6;
    color: #fff;
    border-radius: 4px;
}

/* Page Footer */
.page-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #efefef;
}

.edit-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #f5f5f5;
    color: #262626;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.edit-link a:hover {
    background-color: #0095f6;
    color: #fff;
}

.edit-link a::before {
    content: '\f304';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

/* Page Comments */
.page-comments {
    background-color: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    padding: 40px;
    margin: 40px auto 0;
    max-width: 800px;
}

/* ========================================
   Responsive Page Styles
   ======================================== */

@media (max-width: 768px) {
    .page-template {
        padding: 20px 0;
    }
    
    .page-content {
        padding: 30px 20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .page-featured-image {
        margin: -30px -20px 30px -20px;
        border-radius: 0;
    }
    
    .page-header {
        margin-bottom: 30px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-excerpt {
        font-size: 16px;
    }
    
    .page-body {
        font-size: 15px;
    }
    
    .page-comments {
        padding: 30px 20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 20px 16px;
    }
    
    .page-featured-image {
        margin: -20px -16px 20px -16px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .page-excerpt {
        font-size: 15px;
    }
    
    .page-body {
        font-size: 14px;
    }
    
    .page-body h1 {
        font-size: 24px;
    }
    
    .page-body h2 {
        font-size: 20px;
    }
    
    .page-body h3 {
        font-size: 18px;
    }
    
    .page-comments {
        padding: 20px 16px;
    }
}




/* ========================================
   Enhanced Index/Grid Styles
   ======================================== */

/* Page Header for Blog Page */
.page-header {
    text-align: center;
    padding: 40px 0 20px;
    border-bottom: 1px solid #dbdbdb;
    margin-bottom: 30px;
}

.page-header .page-title {
    font-size: 32px;
    font-weight: 700;
    color: #262626;
    margin: 0;
}

/* Grid Caption - Enhanced */
.grid-caption {
    padding: 16px 12px;
    background-color: #fff;
}

.grid-caption .post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #262626;
}

.post-author img {
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.post-author strong {
    font-weight: 600;
}

.post-date {
    font-size: 12px;
    color: #8e8e8e;
}

.grid-caption .post-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.grid-caption .post-title a {
    color: #262626;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grid-caption .post-title a:hover {
    color: #0095f6;
}

.post-categories {
    margin-top: 8px;
}

.post-categories a {
    display: inline-block;
    font-size: 12px;
    color: #0095f6;
    text-decoration: none;
    margin-right: 8px;
}

.post-categories a:hover {
    text-decoration: underline;
}

/* No Image Fallback - Enhanced */
.no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.no-image-content {
    text-align: center;
    color: #fff;
}

.no-image-content .post-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #fff;
}

.no-image-content .post-excerpt {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0;
}

/* Overlay Content - Enhanced */
.overlay-content {
    text-align: center;
    width: 100%;
    padding: 20px;
}

.overlay-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.overlay-stats {
    display: flex;
    gap: 30px;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    justify-content: center;
}

.overlay-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.overlay-stats i {
    font-size: 18px;
}

/* Enhanced Pagination */
.pagination {
    text-align: center;
    margin: 50px 0 30px;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #fff;
    border: 1px solid #dbdbdb;
    text-decoration: none;
    color: #262626;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #0095f6;
    border-color: #0095f6;
    color: #fff;
    transform: translateY(-2px);
}

.pagination .current {
    background-color: #0095f6;
    color: #fff;
    border-color: #0095f6;
}

.pagination .dots {
    background: none;
    border: none;
    color: #8e8e8e;
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

/* No Posts Found */
.no-posts-found {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 60px 20px;
}

.no-posts-content {
    text-align: center;
    max-width: 500px;
}

.no-posts-content i {
    font-size: 80px;
    color: #dbdbdb;
    margin-bottom: 20px;
}

.no-posts-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #262626;
}

.no-posts-content p {
    font-size: 16px;
    color: #8e8e8e;
    margin-bottom: 24px;
    line-height: 1.6;
}

.no-posts-content a {
    color: #0095f6;
    text-decoration: none;
    font-weight: 600;
}

.no-posts-content a:hover {
    text-decoration: underline;
}

.no-posts-content .search-form {
    margin-top: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.no-posts-content .search-form input[type="search"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    font-size: 14px;
}

.no-posts-content .search-form input[type="submit"] {
    margin-top: 12px;
    width: 100%;
    padding: 12px 24px;
    background-color: #0095f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.no-posts-content .search-form input[type="submit"]:hover {
    background-color: #1877f2;
}

/* ========================================
   Responsive Enhancements
   ======================================== */

@media (max-width: 768px) {
    .page-header {
        padding: 30px 0 15px;
    }
    
    .page-header .page-title {
        font-size: 24px;
    }
    
    .grid-caption .post-meta {
        font-size: 13px;
    }
    
    .overlay-title {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    
    .overlay-stats {
        font-size: 14px;
        gap: 20px;
    }
    
    .overlay-stats i {
        font-size: 16px;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .no-posts-content i {
        font-size: 60px;
    }
    
    .no-posts-content h2 {
        font-size: 24px;
    }
    
    .no-posts-content p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .page-header .page-title {
        font-size: 20px;
    }
    
    .grid-caption {
        padding: 12px 8px;
    }
    
    .grid-caption .post-title {
        font-size: 14px;
    }
    
    .post-categories a {
        font-size: 11px;
    }
    
    .pagination {
        margin: 40px 0 20px;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .no-posts-content {
        padding: 40px 20px;
    }
    
    .no-posts-content i {
        font-size: 50px;
    }
    
    .no-posts-content h2 {
        font-size: 20px;
    }
}