/* Alphabet Navigation */
.container {
    max-width: 1170px;
    margin: 0 auto;
}

.alphabet-nav {
    margin: 20px 0;
    text-align: center;
}

.alphabet-btn {
    display: inline-block;
    padding: 10px 15px;
    margin: 5px 3px;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #495057;
}

.alphabet-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.alphabet-btn.active {
    background-color: #007cba;
    border-color: #007cba;
    color: white;
}

/* Country Dropdown */
#country-dropdown-container {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dropdown-header label {
    font-weight: bold;
    color: #495057;
    margin: 0;
}

.back-btn {
    padding: 8px 15px;
    background-color: #6c757d;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.back-btn:hover {
    background-color: #5a6268;
}

.country-dropdown {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    background-color: white;
    font-size: 16px;
    color: #495057;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.country-dropdown:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.country-dropdown:hover {
    border-color: #007cba;
}

/* Country Header */
.country-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #e3f2fd;
    border-left: 4px solid #007cba;
}

.country-header h3 {
    margin: 0;
    color: #007cba;
}

.single-country-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #d4edda;
    border-left: 4px solid #28a745;
}

.single-country-info h3 {
    margin: 0;
    color: #155724;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.post-item {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    overflow: hidden;
    height: 200px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-title {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    text-decoration: none;
}

.post-title a:hover {
    color: #007cba;
}

.post-categories {
    margin-bottom: 15px;
}

.category-tag {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px;
    background-color: #007cba;
    color: white;
    font-size: 0.8em;
}

.post-excerpt {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.5;
}

.post-meta {
    color: #999;
    font-size: 0.9em;
}

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

.alphabet-pagination a,
.alphabet-pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 3px;
    text-decoration: none;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
    color: #495057;
}

.alphabet-pagination a:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.alphabet-pagination .current {
    background-color: #007cba;
    color: white;
    border-color: #007cba;
}

/* Loading Indicator */
#loading-indicator {
    text-align: center;
    padding: 40px;
    color: #666;
}

#loading-indicator p {
    margin: 0;
    font-size: 1.1em;
}

button.alphabet-btn {
    padding: 10px 10px 10px 10px !important;
    background-color: #fff !important;
    color: #000 !important;
    border: 0px solid !important;
    border-radius: 0px 0px 0px 0px !important;
}

button#back-to-alphabet {
    background-color: #f2f2f2 !important;
    color: #000 !important;
    border: 1px solid !important;
    border-radius: 0px 0px 0px 0px !important;
}

button#back-to-countries {
    background-color: #f2f2f2 !important;
    color: #000 !important;
    border: 1px solid !important;
    border-radius: 0px 0px 0px 0px !important;
}

button.alphabet-btn.active {
    background-color: #f2f2f2 !important;
}

button.alphabet-btn:hover {
    background-color: #f2f2f2 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dropdown-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .country-dropdown {
        max-width: 100%;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .alphabet-btn {
        padding: 8px 12px;
        margin: 3px 2px;
        font-size: 14px;
    }
}




















/* last */


.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 40px 8px 12px;
    /* Padding right gives room for arrow + space */
    font-size: 14px;

    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    /* <- This gives space after arrow */
    background-size: 34px !important;
    cursor: pointer;
}