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

body {
    font-family: 'Cormorant Garamond', serif;
    background-color: #faf8f5;
}

.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: clamp(15px, 2vw, 20px) clamp(20px, 5vw, 60px);
    background-color: #faf8f5;
    border-bottom: 1px solid #e8dcc8;
    gap: clamp(15px, 2vw, 20px);
}

.logo {
    font-size: clamp(22px, 4vw, 32px);
    font-style: italic;
    color: #2c2c2c;
    font-weight: 300;
    flex-shrink: 0;
}

.logo-subtitle {
    font-size: clamp(8px, 1.2vw, 10px);
    letter-spacing: clamp(2px, 0.4vw, 3px);
    text-transform: uppercase;
    margin-top: -5px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(12px, 2.5vw, 35px);
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: min(100%, 300px);
}

.nav a {
    text-decoration: none;
    color: #c85a1a;
    font-size: clamp(14px, 1.8vw, 16px);
    transition: color 0.3s;
    white-space: nowrap;
}

.nav a:hover {
    color: #d97a2f;
}

.phone {
    color: #c85a1a;
    font-size: clamp(14px, 1.8vw, 16px);
    white-space: nowrap;
}

.page-hero {
    background: linear-gradient(135deg, #f4a442 0%, #c85a1a 50%, #8b3a0e 100%);
    padding: clamp(50px, 8vw, 100px) clamp(20px, 5vw, 60px) clamp(40px, 6vw, 80px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L35 25L60 30L35 35L30 60L25 35L0 30L25 25Z' fill='%23ffd89c' opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(32px, 7vw, 64px);
    color: white;
    font-weight: 400;
    margin-bottom: clamp(12px, 2vw, 20px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.page-subtitle {
    font-size: clamp(15px, 2.2vw, 22px);
    color: #fff5e6;
    font-style: italic;
    margin-bottom: clamp(18px, 2.5vw, 30px);
    line-height: 1.4;
}

.breadcrumb {
    color: #fff5e6;
    font-size: clamp(12px, 1.6vw, 14px);
    letter-spacing: clamp(0.5px, 0.1vw, 1px);
    text-transform: uppercase;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.filter-section {
    background-color: white;
    padding: clamp(18px, 2.5vw, 30px) clamp(20px, 5vw, 60px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.filter-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: clamp(15px, 2.5vw, 30px);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 1.5vw, 15px);
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-width: min(100%, 250px);
}

.filter-label {
    font-size: clamp(13px, 1.7vw, 15px);
    color: #8b3a0e;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.filter-btn {
    background-color: #fff5e6;
    color: #c85a1a;
    border: 2px solid transparent;
    padding: clamp(8px, 1.2vw, 10px) clamp(14px, 2.2vw, 25px);
    font-size: clamp(12px, 1.6vw, 14px);
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cormorant Garamond', serif;
    border-radius: 25px;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.filter-btn:hover {
    background-color: #ffeacc;
}

.filter-btn.active {
    background-color: #d97a2f;
    color: white;
    border-color: #d97a2f;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #fff5e6;
    border-radius: 25px;
    padding: clamp(6px, 1vw, 8px) clamp(12px, 1.8vw, 20px);
    gap: clamp(8px, 1vw, 10px);
    width: 100%;
    max-width: clamp(200px, 40vw, 350px);
    min-width: min(200px, 100%);
    flex: 1 1 auto;
}

.search-box input {
    border: none;
    background: transparent;
    font-size: clamp(12px, 1.6vw, 14px);
    font-family: 'Cormorant Garamond', serif;
    color: #2c2c2c;
    outline: none;
    width: 100%;
    min-width: 0;
}

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

.blog-list-section {
    padding: clamp(35px, 6vw, 80px) clamp(20px, 5vw, 60px);
    max-width: 1400px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(25px, 3.5vw, 40px);
    margin-bottom: clamp(35px, 5vw, 60px);
}

.blog-card {
    background: white;
    border-radius: clamp(8px, 1.2vw, 12px);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    width: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(200, 90, 26, 0.15);
}

.blog-image {
    width: 100%;
    height: clamp(180px, 25vw, 280px);
    overflow: hidden;
    position: relative;
}

.blog-image svg,
.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: clamp(18px, 2.8vw, 30px);
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(12px, 1.5vw, 15px);
    font-size: clamp(11px, 1.4vw, 13px);
    color: #999;
    text-transform: uppercase;
    letter-spacing: clamp(0.5px, 0.1vw, 1px);
    gap: clamp(8px, 1vw, 10px);
}

.blog-category {
    background: #ffeacc;
    color: #c85a1a;
    padding: clamp(4px, 0.6vw, 5px) clamp(10px, 1.4vw, 12px);
    border-radius: 4px;
    font-weight: 600;
    font-size: clamp(10px, 1.3vw, 12px);
}

.blog-card-title {
    font-size: clamp(18px, 2.6vw, 24px);
    color: #2c2c2c;
    margin-bottom: clamp(12px, 1.5vw, 15px);
    line-height: 1.4;
    font-weight: 600;
}

.blog-excerpt {
    color: #666;
    line-height: 1.7;
    font-size: clamp(13px, 1.7vw, 15px);
    margin-bottom: clamp(15px, 2vw, 20px);
}

.blog-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: clamp(12px, 1.5vw, 15px);
    border-top: 1px solid #ffeacc;
    gap: clamp(10px, 1vw, 15px);
}

.blog-read-more {
    color: #d97a2f;
    text-decoration: none;
    font-size: clamp(13px, 1.7vw, 15px);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.blog-read-more:hover {
    color: #c85a1a;
}

.read-time {
    color: #999;
    font-size: clamp(11px, 1.4vw, 13px);
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.5vw, 5px);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 1.2vw, 15px);
    margin-top: clamp(35px, 5vw, 60px);
}

.page-btn {
    background-color: white;
    color: #c85a1a;
    border: 2px solid #ffeacc;
    padding: clamp(9px, 1.4vw, 12px) clamp(14px, 1.8vw, 20px);
    font-size: clamp(13px, 1.6vw, 15px);
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cormorant Garamond', serif;
    border-radius: 8px;
    min-width: clamp(38px, 5vw, 45px);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.page-btn:hover {
    background-color: #fff5e6;
    border-color: #d97a2f;
}

.page-btn.active {
    background-color: #d97a2f;
    color: white;
    border-color: #d97a2f;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.no-results {
    text-align: center;
    padding: clamp(50px, 8vw, 100px) clamp(15px, 2vw, 20px);
    color: #c85a1a;
    grid-column: 1 / -1;
}

.no-results-icon {
    font-size: clamp(42px, 7vw, 64px);
    margin-bottom: clamp(15px, 2vw, 20px);
    opacity: 0.3;
}

.no-results-text {
    font-size: clamp(18px, 2.8vw, 24px);
    margin-bottom: clamp(8px, 1vw, 10px);
}

.no-results-subtext {
    font-size: clamp(14px, 1.8vw, 16px);
    color: #999;
}

/* Category Dropdown - Fully Responsive */
.category-dropdown {
    position: relative;
    display: inline-block;
    flex: 1 1 auto;
    min-width: min(180px, 100%);
    max-width: 100%;
}

.category-dropdown select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    border: 2px solid #d4b896;
    border-radius: 25px;
    padding: clamp(8px, 1.2vw, 10px) clamp(35px, 5vw, 40px) clamp(8px, 1.2vw, 10px) clamp(15px, 2vw, 20px);
    font-size: clamp(12px, 1.6vw, 14px);
    font-weight: 500;
    color: #5a4a3a;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Cormorant Garamond', serif;
}

.category-dropdown select:hover {
    border-color: #a67c52;
    background-color: #faf8f5;
}

.category-dropdown select:focus {
    border-color: #a67c52;
    box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.1);
}

.category-dropdown::after {
    content: '▼';
    position: absolute;
    right: clamp(12px, 1.5vw, 15px);
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #a67c52;
    font-size: clamp(8px, 1.2vw, 10px);
}

.category-dropdown select option:checked {
    background-color: #d4b896;
    color: #fff;
}

.category-dropdown select option {
    padding: clamp(8px, 1.2vw, 10px);
    color: #5a4a3a;
}

/* Ensure proper grid behavior on all screens */
@supports (grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr))) {
    .blog-grid {
        /* Modern browsers will use the grid above */
    }
}

/* Fallback for very old browsers - uses flexbox */
@supports not (grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr))) {
    .blog-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .blog-card {
        flex: 1 1 min(280px, 100%);
        max-width: 450px;
    }
}