/* Base styles */
/* Root variables & font-face now provided by base.css */

/* Reset/body/container provided by base.css */

/* Shared header/nav/logo/button styles removed (now provided by base.css). */

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4), 0px 0px 20px rgba(188, 108, 37, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), rgba(188, 108, 37, 0.5));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, rgba(249, 245, 235, 0.95) 0%, rgba(249, 245, 235, 0.98) 100%);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(188, 108, 37, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(188, 108, 37, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    min-width: 240px;
    padding: 20px 0;
    margin-top: 20px;
    overflow: hidden;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    opacity: 0.6;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 18px;
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(188, 108, 37, 0.1);
    position: relative;
    background: transparent;
    font-weight: 500;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(188, 108, 37, 0.1) 0%, rgba(188, 108, 37, 0.05) 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.dropdown-item:hover::before {
    width: 100%;
}

.dropdown-item:hover {
    background: transparent;
    color: #97501E;
    transform: translateX(8px);
    text-shadow: 0px 2px 8px rgba(188, 108, 37, 0.2);
    font-weight: 600;
}

.dropdown-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 28px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(188, 108, 37, 0.3) 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item:hover::after {
    width: calc(100% - 56px);
}

/* Button styles */
.btn-primary {
    background-color: #97501E;
    color: var(--text-color);
    border: none;
    padding: 0 30px;
    height: 65px;
    border-radius: 36px;
    cursor: pointer;
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
    font-size: 32px;
    line-height: 65px;
    transition: background-color 0.3s;
    white-space: nowrap;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.27);
}

/* Burger Menu Styles */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        height: calc(100vh - 90px);
        background: linear-gradient(135deg, var(--background-color) 0%, #1e2d2b 100%);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 30px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .nav.active {
        transform: translateX(0);
    }

    /* Show location button in mobile nav */
    .nav.active::after {
        content: '';
        display: block;
        width: 100%;
        height: 1px;
        background: rgba(188, 108, 37, 0.2);
        margin: 20px 0;
    }

    /* Style the original location button for mobile */
    .header .btn-primary {
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
        font-size: 20px;
        height: 45px;
        padding: 0 20px;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    /* Location button is now hidden when mobile nav is active (controlled in base.css) */
    /* body.menu-open .header .btn-primary {
        opacity: 1;
        pointer-events: auto;
    } */

    .nav-link {
        font-size: 28px;
        text-align: center;
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid rgba(188, 108, 37, 0.2);
        margin: 0;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(249, 245, 235, 0.1);
        box-shadow: none;
        border-radius: 8px;
        margin-top: 10px;
        width: 100%;
        max-height: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 15px 20px;
        font-size: 24px;
        border-bottom: 1px solid rgba(188, 108, 37, 0.1);
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    /* Dropdown arrow animation */
    .dropdown-arrow {
        display: inline-block;
        transition: transform 0.3s ease;
        font-size: 20px;
    }

    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Hide regular nav items on mobile */
    .header .nav {
        display: none;
    }

    .header .nav.active {
        display: flex;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Hero section */
.hero {
    background-image: url('../assets/homepage-hero-image.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(40, 61, 59, 0.7) 0%, rgba(40, 61, 59, 0.95) 100%);
    backdrop-filter: blur(5px);
}

/* Footer styles moved to base.css */

/* Blog Page Specific Styles */
.blog-main {
    margin-top: 90px;
    /* min-height: calc(100vh + 400px); */
    /* Increased min-height to accommodate taller cards */
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 60px;
    /* Additional bottom padding for better spacing */
}

/* Blog Header Bar */
.blog-header-bar {
    display: flex;
    align-items: stretch;
    margin-bottom: 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
    height: 60px;
    /* Reduced height for more compact design */
}

.blog-title-section {
    background: #8B4513;
    /* Deep brown/dark rust-brown */
    padding: 15px 30px;
    display: flex;
    align-items: center;
    /* justify-content: center; */
    width: 50%;
    /* Exactly half - one grid space */
    flex-shrink: 0;
}

.blog-title {
    font-size: 24px;
    color: white;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-search-section {
    background: #F5F5DC;
    /* Light beige */
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: right;
    /* Center the search bar in the second half */
    width: 50%;
    /* Exactly half - one grid space */
}

.blog-header {
    text-align: center;
    margin-bottom: 60px;
    
}

.blog-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    
}

/* Search Controls in Header Bar - Centered in second grid space */
.blog-search-section .search-container {
    position: relative;
    width: 300px;
    /* Appropriate width for centered search in 50% section */
    max-width: 350px;
    display: none
}

.blog-search-section .search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 2px solid #D2B48C;
    border-radius: 20px;
    background: white;
    color: #333;
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.blog-search-section .search-input:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.2);
}

.blog-search-section .search-input::placeholder {
    color: #999;
}

.blog-search-section .search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #8B4513;
    opacity: 0.7;
}

/* Remove category filter - no longer needed */
.blog-search-section .filter-container {
    display: none;
}

/* Legacy controls (hidden or removed) */
.blog-controls {
    display: none;
}

/* Blog Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    padding: 0;
    /* border: 1px solid #D2B48C; */
    /* background: #F5F5DC; */
    /* Ensure perfect alignment with header bar */
    width: 100%;
    box-sizing: border-box;
    min-height: 560.84px;
    /* Reduced from 730px for more compact design */
    overflow: visible;
    /* Allow content to be fully visible */
}

/* Blog Card Styles */
.blog-card {
    background: #F5F5DC;
    /* Light beige background */
    border: 2px solid #D2B48C;
    /* Stronger border for clear separation */
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    /* Stronger shadow for better separation */
    height: 560.84px;
    min-height: 560.84px;
    max-height: 560.84px;
    box-sizing: border-box;
    /* Include borders in height calculation */
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

/* Alternating card layout - Cards 1&3 have large images, Cards 2&4 have large text areas */

/* Cards 1 and 3 - Large image areas (65%), adequate text areas (35%) */
.blog-card.card-type-1 .card-image,
.blog-card.card-type-3 .card-image {
    height: 55%;
    min-height: 286px;
    /* Updated for 440px total height */
}

.blog-card.card-type-1 .card-content,
.blog-card.card-type-3 .card-content {
    height: 45%;
    min-height: 154px;
    /* Updated for 440px total height - compact but adequate */
    padding: 18px 16px 9px 16px;
}

/* Cards 2 and 4 - Smaller image areas (40%), larger text areas (60%) */
.blog-card.card-type-2 .card-image,
.blog-card.card-type-4 .card-image {
    height: 45%;
    min-height: 176px;
    /* Updated for 440px total height */
}

.blog-card.card-type-2 .card-content,
.blog-card.card-type-4 .card-content {
    height: 55%;
    min-height: 264px;
    /* Updated for 440px total height - good text space */
    padding: 18px 16px 9px 16px;
}

.card-image {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    flex-shrink: 0;
    border-bottom: 2px solid #D2B48C;
    /* Stronger separator between image and content */
    transition: all 0.3s ease;
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.2) 30%,
            transparent 100%);
}

.card-content {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #F5F5DC;
    /* Light beige background */
    overflow: visible;
    /* Ensure content is not clipped */
    /* Don't use justify-content: space-between to allow natural flow */
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-category {
    background: #8B4513;
    /* Dark brown */
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.blog-card:hover .card-category {
    background: #A0522D;
    transform: translateY(-1px);
}

.draft-badge {
    background: #FFC107;
    color: #2F1B14;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    display: inline-block;
}

.card-date {
    color: #8B4513;
    /* Dark brown for readability */
    font-size: 0.8rem;
    background: rgba(139, 69, 19, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 19, 0.2);
    transition: all 0.3s ease;
}

.blog-card:hover .card-date {
    background: rgba(139, 69, 19, 0.15);
    border-color: rgba(139, 69, 19, 0.3);
}

.card-title {
    font-size: 1.25rem;
    color: #2F1B14;
    /* Dark brown/black for high readability */
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 600;
    /* Remove truncation - display full title */
    display: block;
    overflow: visible;
    transition: all 0.3s ease;
    flex-shrink: 0;
    /* Don't let title shrink */
}

.blog-card:hover .card-title {
    color: #1A0F0A;
}

.card-excerpt {
    color: #5D4037;
    /* Slightly lighter brown for content */
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 0.9rem;
    flex: 1;
    /* Take remaining space after title and author */
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: pre-line !important; 
    /* Truncate text when space runs out */
    /* max-height: calc(1.5em * 4) */
}

.blog-card:hover .card-excerpt {
    color: #4A2C20;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-top: 1px solid #D2B48C;
    margin-top: auto;
    position: relative;
    transition: border-color 0.3s ease;
    flex-shrink: 0;
}

.blog-card:hover .card-author {
    border-top-color: #C8A882;
}

.card-author::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #8B4513;
    transition: width 0.3s ease;
}

.blog-card:hover .card-author::before {
    width: 100%;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #8B4513;
    padding: 2px;
    border: 1px solid #D2B48C;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-card:hover .author-avatar {
    transform: scale(1.05);
    border-color: #8B4513;
}

.author-name {
    color: #8B4513;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.blog-card:hover .author-name {
    color: #5D4037;
}

/* Add New Post Card Styles */
.add-new-post-card {
    background: #F5F5DC;
    /* Light beige background to match other cards */
    border: 2px dashed #8B4513;
    /* Dark brown dashed border */
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    order: -1;
    /* Ensures it appears first in the grid */
}

.add-new-post-card:hover {
    background: #F0F0DC;
    /* Slightly darker beige on hover */
    border-color: #A0522D;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.add-post-content {
    text-align: center;
    padding: 40px;
}

.add-post-icon {
    font-size: 3.5rem;
    color: #8B4513;
    /* Dark brown */
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1;
    transition: all 0.3s ease;
}

.add-new-post-card:hover .add-post-icon {
    transform: scale(1.05);
    color: #5D4037;
}

.add-post-title {
    font-size: 1.4rem;
    color: #2F1B14;
    /* Dark brown/black for readability */
    margin-bottom: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-new-post-card:hover .add-post-title {
    color: #1A0F0A;
}

.add-post-description {
    font-size: 0.95rem;
    color: #5D4037;
    /* Medium brown for description */
    line-height: 1.5;
    transition: all 0.3s ease;
}

.add-new-post-card:hover .add-post-description {
    color: #4A2C20;
}

/* Blog Card Wrapper for Admin Delete Button */
.blog-card-wrapper {
    position: relative;
    display: flex;
    height: 560.84px;
    min-height: 560.84px;
    max-height: 560.84px;
    /* Exact height to match cards */
}

.delete-post-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(151, 80, 30, 0.95) 0%, rgba(188, 108, 37, 0.9) 100%);
    border: 1px solid rgba(188, 108, 37, 0.4);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(151, 80, 30, 0.2),
        inset 0 1px 0 rgba(249, 245, 235, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.delete-post-btn:hover {
    background: linear-gradient(135deg, rgba(188, 108, 37, 1) 0%, rgba(212, 149, 58, 0.95) 100%);
    border-color: rgba(188, 108, 37, 0.6);
    transform: scale(1.05) translateY(-1px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 3px 12px rgba(188, 108, 37, 0.4),
        inset 0 1px 0 rgba(249, 245, 235, 0.2);
    color: #fff;
}

.delete-post-btn:active {
    transform: scale(0.95);
}

.delete-icon {
    line-height: 1;
    font-size: 20px;
    margin-top: -2px;
}

.edit-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    background: rgba(40, 167, 69, 0.9);
    border: 2px solid rgba(40, 167, 69, 0.6);
    border-radius: 50%;
    color: white;
    font-size: 14px;
    cursor: pointer;
    z-index: 9;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.edit-indicator:hover {
    background: rgba(40, 167, 69, 1);
    border-color: rgba(40, 167, 69, 0.8);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.5);
}

/* Ensure blog card wrapper maintains grid layout */
.blog-grid .blog-card-wrapper {
    display: flex;
    position: relative;
    height: 100%;
    /* Full height of grid cell */
    flex-direction: column;
}

/* Messages and States */
.loading-message,
.no-posts-message,
.error-message {
    text-align: center;
    padding: 60px 30px;
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(249, 245, 235, 0.08) 0%, rgba(188, 108, 37, 0.05) 100%);
    border: 2px solid rgba(188, 108, 37, 0.2);
    border-radius: 20px;
    margin: 20px 0;
    backdrop-filter: blur(8px);
    position: relative;
}

.loading-message::before,
.no-posts-message::before,
.error-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    opacity: 0.6;
}

.loading-message p,
.no-posts-message h3,
.error-message h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 0px 2px 8px rgba(188, 108, 37, 0.3);
}

.loading-message p,
.no-posts-message p,
.error-message p {
    color: rgba(249, 245, 235, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
}

.load-file-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #97501E 100%);
    color: var(--text-color);
    border: 2px solid rgba(188, 108, 37, 0.3);
    padding: 15px 30px;
    border-radius: 25px;
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 15px rgba(188, 108, 37, 0.3);
}

.load-file-btn:hover {
    background: linear-gradient(135deg, #97501E 0%, var(--primary-color) 100%);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0px 8px 25px rgba(188, 108, 37, 0.5);
}

.no-results {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, rgba(249, 245, 235, 0.08) 0%, rgba(188, 108, 37, 0.05) 100%);
    border: 2px solid rgba(188, 108, 37, 0.2);
    border-radius: 20px;
    margin: 40px 20px;
    backdrop-filter: blur(8px);
    position: relative;
}

.no-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    opacity: 0.6;
}

.no-results h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 0px 2px 8px rgba(188, 108, 37, 0.3);
}

.no-results p {
    color: rgba(249, 245, 235, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1200px) {
    /* .header {
        padding: 18px 30px;
        height: 80px;
    } */
    
    /* .logo {
        width: 55px;
        height: 44px;
    }
    
    .logo-text {
        font-size: 22px;
    } */
    
    /* .nav {
        gap: 45px;
    } */
    
    /* .nav-link {
        font-size: 22px;
    } */
    
    .header .btn-primary {
        padding: 10px 20px;
        font-size: 22px;
    }
    
    .blog-main {
        margin-top: 80px;
        padding-left: 35px;
        padding-right: 35px;
    }
    
    .footer-content {
        gap: 25px;
        padding: 35px 40px 40px;
    }
    
    .footer-section {
        min-height: 200px;
        padding: 25px 20px 20px 20px;
    }
    
    /* .footer-section h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .footer-section p {
        font-size: 16px;
    }
    
    .footer-nav a {
        font-size: 16px;
    } */
    
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        min-height: 560.84px;
    }

    .blog-header-bar {
        flex-direction: row;
        height: 60px;
    }

    .blog-title-section {
        width: 50%;
        padding: 15px 20px;
    }

    .blog-search-section {
        width: 50%;
        justify-content: center;
        padding: 15px 20px;
    }

    .blog-search-section .search-container {
        width: 250px;
        max-width: 90%;
    }
}

@media (max-width: 900px) {
    /* .header {
        padding: 15px 25px;
        height: 70px;
    } */
    
    /* .logo {
        width: 50px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 20px;
    } */
    
    /* .nav {
        gap: 35px;
    } */
    
    /* .nav-link {
        font-size: 20px;
    } */
    
    .header .btn-primary {
        padding: 8px 18px;
        font-size: 20px;
    }
    
    .blog-main {
        margin-top: 70px;
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 30px 25px 35px;
    }
    
    .footer-section {
        min-height: 180px;
        padding: 25px 20px 20px 20px;
    }
    
    /* .footer-section h3 {
        font-size: 20px;
        margin-bottom: 18px;
    }
    
    .footer-section p {
        font-size: 15px;
    }
    
    .footer-nav a {
        font-size: 15px;
    }
    
    .footer-logo {
        width: 220px;
        height: 220px;
    } */
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        min-height: 560.84px;
    }

    .blog-card:not(.add-new-post-card) {
        height: 560.84px;
        min-height: 560.84px;
        max-height: 560.84px;
        box-sizing: border-box;
    }

    .blog-card.card-type-1 .card-image,
    .blog-card.card-type-3 .card-image {
        height: 55%;
        min-height: 234px;
    }

    .blog-card.card-type-1 .card-content,
    .blog-card.card-type-3 .card-content {
        height: 45%;
        min-height: 156px;
        padding: 14px 16px;
    }

    .blog-card.card-type-2 .card-image,
    .blog-card.card-type-4 .card-image {
        height: 45%;
        min-height: 136px;
    }

    .blog-card.card-type-2 .card-content,
    .blog-card.card-type-4 .card-content {
        height: 55%;
        min-height: 254px;
        padding: 18px 16px;
    }

    .blog-header-bar {
        flex-direction: row;
        height: 60px;
    }

    .blog-title-section {
        width: 50%;
        padding: 12px 15px;
    }

    .blog-search-section {
        width: 50%;
        justify-content: center;
        padding: 12px 15px;
    }

    .blog-search-section .search-container {
        width: 220px;
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .blog-main {
        margin-top: 90px;
        padding-left: 25px;
        padding-right: 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px;
    }
    
    /* .footer-section {
        min-height: 160px;
        padding: 20px 20px 15px 20px;
    }
    
    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .footer-section p {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .footer-nav {
        gap: 12px;
    }
    
    .footer-nav a {
        font-size: 14px;
        padding: 6px 0;
    }
    
    .social-icons {
        gap: 15px;
        margin-top: 20px;
    }
    
    .social-icons img {
        width: 40px;
        height: 40px;
        padding: 6px;
    }
    
    .footer-logo {
        width: 180px;
        height: 180px;
    } */
    
    .map {
        height: 300px;
    }

    .blog-header-bar {
        flex-direction: row;
        height: 60px;
    }

    .blog-title {
        font-size: 18px;
    }

    .blog-title-section {
        width: 50%;
        padding: 12px 10px;
    }

    .blog-search-section {
        width: 50%;
        padding: 12px 10px;
        justify-content: center;
    }

    .blog-search-section .search-container {
        width: 180px;
        max-width: 95%;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        min-height: 560.84px;
    }

    .blog-card:not(.add-new-post-card) {
        height: 560.84px;
        min-height: 560.84px;
        max-height: 560.84px;
        box-sizing: border-box;
    }

    .blog-card.card-type-1 .card-image,
    .blog-card.card-type-3 .card-image {
        height: 55%;
        min-height: 204px;
    }

    .blog-card.card-type-1 .card-content,
    .blog-card.card-type-3 .card-content {
        height: 45%;
        min-height: 166px;
        padding: 14px 16px;
    }

    .blog-card.card-type-2 .card-image,
    .blog-card.card-type-4 .card-image {
        height: 30%;
        min-height: 111px;
    }

    .blog-card.card-type-2 .card-content,
    .blog-card.card-type-4 .card-content {
        height: 70%;
        min-height: 259px;
        padding: 16px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-excerpt {
        font-size: 0.85rem;
    }

    .card-author {
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .dropdown-arrow {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .blog-main {
        margin-top: 90px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* .footer-section {
        min-height: 140px;
        padding: 18px 18px 15px 18px;
    }
    
    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 14px;
    }
    
    .footer-section p {
        font-size: 13px;
        margin-bottom: 14px;
    }
    
    .footer-nav a {
        font-size: 13px;
    }
    
    .social-icons img {
        width: 35px;
        height: 35px;
    }
    
    .footer-logo {
        width: 150px;
        height: 150px;
    } */
    
    .map {
        height: 250px;
    }

    .blog-title {
        font-size: 16px;
    }

    .blog-title-section {
        padding: 12px 15px;
    }

    .blog-search-section {
        padding: 10px 12px;
    }

    .blog-search-section .search-input,
    .blog-search-section .category-filter {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .blog-card:not(.add-new-post-card) {
        height: 560.84px;
        min-height: 560.84px;
        max-height: 560.84px;
        box-sizing: border-box;
    }

    .blog-card.card-type-1 .card-image,
    .blog-card.card-type-3 .card-image {
        height: 50%;
        min-height: 175px;
    }

    .blog-card.card-type-1 .card-content,
    .blog-card.card-type-3 .card-content {
        height: 50%;
        min-height: 175px;
        padding: 12px;
    }

    .blog-card.card-type-2 .card-image,
    .blog-card.card-type-4 .card-image {
        height: 25%;
        min-height: 88px;
    }

    .blog-card.card-type-2 .card-content,
    .blog-card.card-type-4 .card-content {
        height: 75%;
        min-height: 262px;
        padding: 14px 12px;
    }

    .card-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .card-excerpt {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    .card-category {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .card-date {
        font-size: 0.75rem;
    }

    .author-name {
        font-size: 0.8rem;
    }
}

.add-new-post-card {
    min-height: 560.84px;
}

.add-post-content {
    padding: 30px;
}

.add-post-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.add-post-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.add-post-description {
    font-size: 0.95rem;
}

.delete-post-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
    top: 8px;
    right: 8px;
}

.delete-icon {
    font-size: 18px;
}

.edit-indicator {
    width: 26px;
    height: 26px;
    font-size: 12px;
    top: 8px;
    left: 8px;
}


/* Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Blog page specific styles (legacy inline styles formerly in blogpage.html have been consolidated here) */
.logo {
    background-image: url('../assets/new-logo.png');
}

.google-map-iframe {
    border: 0;
}

.card-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Pagination Styles */
.pagination-controls {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    grid-column: 1 / -1; /* Span across all columns */
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-light);
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
}

.pagination-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-gold);
    background: transparent;
    color: var(--accent-gold);
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Ponomar', 'Times New Roman', 'DejaVu Serif', Georgia, serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover {
    background: var(--accent-gold);
    color: white;
}

.pagination-btn.active {
    background: var(--accent-gold);
    color: white;
    font-weight: bold;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn:disabled:hover {
    background: transparent;
    color: var(--accent-gold);
}

@media (max-width: 768px) {
    .pagination-buttons {
        gap: 0.25rem;
    }
    
    .pagination-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-width: 35px;
    }
}