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

body {
    font-family: 'Inter', sans-serif;
    background-color: #faf9f7;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
.header {
    position: relative;
    width: 100%;
}

.top-bar {
    height: 8px;
    background-color: #8B0000;
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background-color: #faf9f7;
    position: relative;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #000;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-style: italic;
}

/* Header Social Icon */
.header-social {
    display: flex;
    align-items: center;
}

.instagram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #8B0000;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.instagram-link:hover {
    color: #A00000;
    background-color: rgba(139, 0, 0, 0.1);
    transform: scale(1.1);
}

.instagram-link svg {
    width: 24px;
    height: 24px;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 2px 0;
    transition: 0.3s;
}

.search-icon {
    cursor: pointer;
    z-index: 1001;
}

.search-icon svg {
    width: 24px;
    height: 24px;
    color: #000;
}

/* Main Content */
.main-content {
    padding: 60px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    text-align: center;
    margin-bottom: 80px;
}

.main-heading {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    line-height: 1.2;
}

.sub-heading {
    font-size: 1.2rem;
    color: #000;
    margin-bottom: 40px;
    font-weight: 400;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    background-color: #fff;
    font-size: 1rem;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
}

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

.search-button {
    background-color: #FFD700;
    border: none;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #FFC700;
}

.search-button svg {
    width: 20px;
    height: 20px;
    color: #000;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Blog Card Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.8), rgba(139, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.blog-card:hover .card-overlay {
    opacity: 1;
}

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

.overlay-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.overlay-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
    line-height: 1.4;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #fff;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    background-color: #fff;
    color: #8B0000;
}

.card-image {
    width: 100%;
    height: 100%;
    position: relative;
}

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

.card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    padding: 30px 20px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    padding: 80px 0 0 0;
}

.nav-menu.active {
    left: 0;
}

.nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
}

.nav-list {
    list-style: none;
    padding: 0 30px;
}

.nav-list li {
    margin-bottom: 20px;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: #8B0000;
}

/* Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Latest Blogs Section */
.latest-blogs {
    padding: 80px 0;
    background-color: #fafafa;
}

.latest-blogs .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #8B0000;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
    margin-top: 25px;
}

.latest-blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.latest-blog-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.latest-blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.latest-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.latest-blog-category {
    display: none; /* Kategori etiketleri gizlendi */
}

.latest-blog-content {
    padding: 25px;
}

.latest-blog-title {
    font-family: 'Times New Roman', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    line-height: 1.3;
}

.latest-blog-excerpt {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.8em; /* 3 lines * 1.6 line-height */
}

.latest-blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.latest-blog-date {
    font-weight: 500;
}

.latest-blog-read-time {
    font-style: italic;
}

.view-all-container {
    text-align: center;
}

.view-all-btn {
    display: inline-block;
    background-color: #8B0000;
    color: #fff;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.view-all-btn:hover {
    background-color: #A00000;
    transform: translateY(-2px);
}

.loading-message,
.no-blogs,
.error-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.error-message {
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 15px 20px;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 40px 20px;
    }
    
    .main-heading {
        font-size: 2.5rem;
    }
    
    .sub-heading {
        font-size: 1rem;
    }
    
    .search-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-input {
        margin-right: 0;
        width: 100%;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-menu {
        width: 100%;
        left: -100%;
    }
}

@media (max-width: 480px) {
    .main-heading {
        font-size: 2rem;
    }
    
    .site-title {
        font-size: 1.8rem;
    }
    
    .card-label {
        font-size: 1rem;
        padding: 25px 15px 15px;
    }
    
    /* Latest Blogs Mobile - Same as Blog Page */
    .latest-blogs {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .latest-blogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .latest-blog-image {
        height: 200px;
    }
    
    .latest-blog-content {
        padding: 20px;
    }
    
    .latest-blog-title {
        font-size: 1.2rem;
    }
    
    .latest-blog-excerpt {
        font-size: 1rem;
    }
    
    .latest-blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        font-size: 0.9rem;
    }
    
    .view-all-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .latest-blogs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .latest-blog-image {
        height: 180px;
    }
    
    .latest-blog-content {
        padding: 15px;
    }
    
    .latest-blog-title {
        font-size: 1.2rem;
    }
    
    .latest-blog-excerpt {
        font-size: 1rem;
    }
    
    .latest-blog-meta {
        font-size: 0.9rem;
    }
    
    .view-all-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}
