@charset "utf-8";
/* CSS Document */

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
}

/* Navbar Styles */
.navbar {
    background-color: #075F72;
    padding: 1rem 0;
}

.navbar-brand {
    color: white;
    font-weight: 500;
}

.navbar-brand span {
    font-weight: 600;
}

.custom-navbar .nav-link {
    color: white !important;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.custom-navbar .nav-link.active {
    color: #FFD700 !important;
    font-weight: 600;
}

/* Hover effect for non-active links in the nav bar */
.custom-navbar .nav-link:not(.active):hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Navbar toggler customization */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section Styles */
.hero-section {
    background-color: #F8F9FA;
    padding: 4rem 0 2rem; /* Add bottom padding */
    text-align: center;
    width: 100%;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.hero-section .highlight {
    color: #0A9EB1;
}

.hero-section p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Search Container Styles */
.search-container {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-container .input-group {
    border-radius: 4px;
    overflow: hidden;
}

.search-container .input-group-text {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 0.5rem 1rem;
}

.search-container .form-control {
    border-left: none;
    border-radius: 0;
    padding: 0.5rem 1rem;
}

.search-container .btn-search {
    background-color: #006D77;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0.5rem 1.5rem;
}

/* Alphabet Filter Styles */
.alphabet-filter {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.alphabet-filter .btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.btn-alpha {
    border: 1px solid #006D77;
    color: #006D77;
    background-color: transparent;
    border-radius: 4px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-alpha:hover, 
.btn-alpha:focus, 
.btn-alpha.active {
    background-color: #006D77;
    color: white;
}

/* Post Filter Styles */
.post-filter {
    display: flex;
    justify-content: flex-end;
    margin: 1rem auto;  /* Reduce margin */
    max-width: 1320px;
    padding: 0 1rem;
}

.post-filter .dropdown {
    width: auto;
}

.post-filter .dropdown-toggle {
    width: 100%;
    text-align: left;
    background-color: #fff;
    color: #333;
    border: 1px solid #ced4da;
}

.post-filter .dropdown-toggle::after {
    float: right;
    margin-top: 0.5em;
}

.post-filter .dropdown-menu {
    min-width: 160px;
    border-radius: 4px;
    background-color: #F8F9FA; /* Match hero section background */
    margin-top: 0.5rem !important; /* Force dropdown to appear below */
    transform: none !important; /* Prevent Bootstrap's default transform */
    top: 100% !important; /* Ensure dropdown appears below */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.post-filter .dropdown-item {
    padding: 0.5rem 1rem;
    color: #333;
}

.post-filter .dropdown-item:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .search-container,
    .alphabet-filter,
    .post-filter {
        max-width: 100%;
    }
}

/* Responsive Adjustments */
@media (max-width: 1400px) {
    .post-filter {
        max-width: 1140px;
    }
}

@media (max-width: 1200px) {
    .post-filter {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .post-filter {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .post-filter {
        max-width: 540px;
    }
}

/* Countries Section Styles */
.countries-section {
    background-color: #0A9EB1;
    padding: 4rem 0;
}

.countries-section h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
}

.country-card {
    background: white;
    border-radius: 1rem;
    height: 100%;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.country-card:hover {
    transform: translateY(-5px);
}

/* Country Name and Code Styling */
.country-card .country-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.country-card .country-code {
    font-size: 0.875rem;
    color: #6c757d;
    margin-left: 0.5rem;
}

/* Flag Image Container */
.country-flag {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

/* Description Text */
.country-card .country-description {
    color: #4A4A4A;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 1rem 0;
}

/* Metrics Styling */
.country-metrics {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #4A4A4A;
}

.country-metrics img {
    opacity: 0.7;
    margin-right: 0.5rem;
}

/* More Countries Button */
.countries-section .btn-light {
    background-color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    margin-top: 2rem;
}

.countries-section .btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

/* Load More Button */
.btn-load-more {
    background-color: transparent;
    border: 2px solid #006D77;
    color: #006D77;
    padding: 0.75rem 2rem;
    font-weight: 500;
}

.btn-load-more:hover {
    background-color: #006D77;
    color: white;
}

/* Footer Styles */
footer {
    background-color: #075F72;
    color: rgba(255, 255, 255, 0.9);
    padding: 4rem 0;
}

footer p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

footer h5 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer .list-unstyled li {
    margin-bottom: 1rem;
}

footer .list-unstyled a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

footer .list-unstyled a:hover {
    color: #fff;
}

/* Newsletter Form */
footer .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

footer .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

footer .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: none;
    border: none;
}

footer .btn-light {
    background-color: #6DE4EA;
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

footer .btn-light:hover {
    background-color: #6DE4EA;
}

/* Social Media Icons */
footer .gap-3 {
    margin-top: 1rem;
}

footer .gap-3 a {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

footer .gap-3 a:hover {
    opacity: 1;
}

/* Newsletter h5 styles */
.col-lg-4 h5 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* Input and button styles */
.input-group .form-control,
.input-group .btn-light {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}

/* Adjusting the layout for larger screens */
@media (min-width: 992px) {
    .col-lg-4 {
        max-width: 400px;
    }
}
/* Divider Line */
footer hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

/* Copyright Text */
footer .text-center {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Logo Section */
footer .h5 {
    color: #fff;
    font-weight: 600;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .countries-section h2 {
        font-size: 2rem;
    }
    
    .country-card {
        margin-bottom: 1.5rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    footer {
        padding: 3rem 0;
    }
    
    footer .col-lg-4,
    footer .col-lg-2 {
        margin-bottom: 2rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}


