/* ============================================
   BLOG PAGE - CSS STYLES
   ============================================ */

/* ============================================
   HEADER SOLID (Blue Background)
   ============================================ */
.header-solid {
    position: relative;
    background: var(--primary);
}

.header-solid .nav {
    padding: 40px 180px;
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-section {
    padding: 60px 0 80px;
}

.blog-layout {
    display: flex;
    gap: 100px;
}

.blog-main {
    flex: 1;
    max-width: 963px;
}

.blog-main .section-title {
    margin-bottom: 24px;
}

.blog-divider {
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 34px;
}

/* ============================================
   BLOG POST
   ============================================ */
.blog-post {
    margin-bottom: 56px;
}

.blog-image {
    width: 100%;
    height: 722px;
    overflow: hidden;
    margin-bottom: 32px;
}

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

.blog-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 56px;
    color: var(--black);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 32px;
}

.blog-excerpt {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 24px;
    color: var(--grey);
    line-height: 1.5;
    margin-bottom: 32px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-date {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 24px;
    color: #a3a3a3;
}

.blog-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--white);
    color: var(--primary);
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 24px;
    border: 1px solid var(--primary);
    border-radius: 24px;
    height: 50px;
    transition: all 0.3s;
}

.btn-continue:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-share {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 25px;
    transition: background 0.3s;
}

.btn-share svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.btn-share:hover {
    background: #003d6d;
}

/* ============================================
   PAGINATION
   ============================================ */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 34px 0;
}

.pagination-text,
.pagination-current,
.pagination-total {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: var(--grey);
}

.pagination-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    transition: all 0.3s;
}

.pagination-btn.prev {
    background: var(--white);
    border: 2px solid var(--primary);
}

.pagination-btn.next {
    background: var(--primary);
}

.pagination-btn svg {
    width: 24px;
    height: 24px;
}

.pagination-btn.prev svg {
    stroke: var(--primary);
}

.pagination-btn.next svg {
    stroke: var(--white);
}

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

.pagination-btn:not(:disabled):hover {
    transform: scale(1.05);
}

/* ============================================
   SIDEBAR
   ============================================ */
.blog-sidebar {
    width: 366px;
    flex-shrink: 0;
    padding-top: 88px;
}

/* Search */
.sidebar-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid var(--primary);
    border-radius: 32px;
    margin-bottom: 76px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 20px;
    color: var(--grey);
    background: transparent;
}

.search-input::placeholder {
    color: var(--grey);
}

.sidebar-search-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.sidebar-search-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

/* Sidebar Search - make wrapper relative for dropdown positioning */
.sidebar-search {
    position: relative;
}

/* Sidebar Search Suggestions Dropdown */
.sidebar-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ddd;
    max-height: 300px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar-suggestions.active {
    display: block;
}

.sidebar-suggestion-item {
    padding: 10px 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: var(--black);
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

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

.sidebar-suggestion-item:hover,
.sidebar-suggestion-item.active {
    background: #f0f5fa;
    color: var(--primary);
}

.sidebar-suggestion-empty {
    padding: 10px 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: var(--grey);
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 56px;
}

.sidebar-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--black);
    margin-bottom: 20px;
}

.sidebar-divider {
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 16px;
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.recent-posts li a {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 24px;
    color: var(--grey);
    line-height: 1.4;
    transition: color 0.3s;
}

.recent-posts li a:hover {
    color: var(--primary);
}

/* Archives Dropdown */
.archives-dropdown {
    position: relative;
}

.archives-select {
    width: 100%;
    padding: 10px 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 24px;
    color: var(--grey);
    background: var(--white);
    border: 2px solid var(--grey);
    border-radius: 25px;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23575656' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

.archives-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ============================================
   MOBILE STYLES - 768px and below
   ============================================ */
@media screen and (max-width: 768px) {
    /* HEADER SOLID - MOBILE */
    .header-solid {
        height: 122px;
    }

    .header-solid .nav {
        padding: 32px 16px;
    }

    /* BLOG SECTION - MOBILE */
    .blog-section {
        padding: 32px 0 60px;
    }

    .blog-layout {
        flex-direction: column;
        gap: 0;
    }

    .blog-main {
        max-width: 100%;
    }

    .blog-main .section-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .blog-divider {
        margin-bottom: 24px;
    }

    /* BLOG POST - MOBILE */
    .blog-post {
        margin-bottom: 40px;
    }

    .blog-image {
        height: 306px;
        margin-bottom: 24px;
    }

    .blog-title {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 24px;
    }

    .blog-excerpt {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .blog-meta {
        flex-wrap: wrap;
        gap: 16px;
    }

    .blog-date {
        font-size: 14px;
    }

    .blog-actions {
        gap: 12px;
    }

    .btn-continue {
        font-size: 16px;
        padding: 10px 20px;
        height: auto;
        font-family: 'Outfit', sans-serif;
    }

    .btn-share {
        width: 40px;
        height: 40px;
    }

    /* PAGINATION - MOBILE */
    .blog-pagination {
        padding: 24px 0;
        gap: 24px;
    }

    .pagination-text,
    .pagination-current,
    .pagination-total {
        font-size: 16px;
    }

    .pagination-btn {
        width: 37.5px;
        height: 37.5px;
    }

    .pagination-btn svg {
        width: 18px;
        height: 18px;
    }

    /* SIDEBAR - MOBILE (Hidden) */
    .blog-sidebar {
        display: none;
    }
}
