/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4ca5ba;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #ddd;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Header styles */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.btn.primary {
    background: var(--primary-color);
    color: #fff;
}

.btn.primary:hover {
    background: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
}

.btn.secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn.secondary:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Featured Content */
.featured-content {
    padding: 4rem 0;
    background: var(--light-gray);
}

.content-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-news, .featured-resources {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.featured-news:hover, .featured-resources:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-grid {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.news-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.news-item:hover {
    transform: translateX(5px);
}

.news-image img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.news-text h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.view-all {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
}

/* Regions Section */
.regions-section {
    padding: 4rem 0;
    text-align: center;
}

.regions-grid {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.region-item {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.region-item:hover {
    transform: translateY(-5px);
}

.region-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer styles */
footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer .btn.btn-primary:hover,
footer .btn.btn-primary:focus {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
    border-color: var(--secondary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav li {
        margin: 1rem 0;
    }

    .main-nav a {
        display: block;
        padding: 0.5rem 0;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .news-item {
        grid-template-columns: 100px 1fr;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .news-item {
        grid-template-columns: 1fr;
    }

    .news-image {
        display: none;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Resource Item Styles */
.resource-item {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.resource-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.resource-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.resource-item p {
    margin-bottom: 1rem;
    color: #666;
}

.resource-item .btn {
    display: inline-block;
    margin-top: 0.5rem;
}

/* Region Item Icons */
.region-item i {
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.region-item:hover i {
    transform: scale(1.1);
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-form .btn {
    white-space: nowrap;
}

/* Footer Links */
.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* About Page Styles */
.about-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-item p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Custom Styles */
body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Featured Content */
.featured-content {
    background: var(--light-gray);
}

.news-item {
    transition: var(--transition);
}

.news-item:hover {
    transform: translateX(5px);
}

.resource-item {
    transition: var(--transition);
}

.resource-item:hover {
    transform: translateY(-3px);
}

/* Region Items */
.region-item {
    transition: var(--transition);
}

.region-item:hover {
    transform: translateY(-5px);
}

.region-item i {
    color: var(--primary-color);
    transition: var(--transition);
}

.region-item:hover i {
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--secondary-color);
}

.social-links a {
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Custom Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #3a8e9e; /* Slightly darker shade of #4ca5ba */
    border-color: #3a8e9e; /* Slightly darker shade of #4ca5ba */
}

.btn-outline-light:hover {
    color: var(--primary-color);
}

/* Resources Page Styles */
.resources-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.resources-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.resources-section .card-body {
    padding: 1.5rem;
}

.resources-section .btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.resources-section .btn-link:hover {
    color: var(--accent-color);
}

/* News Page Styles */
.news-section .featured-news {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.news-section .featured-news .card-img-top {
    height: 400px;
    object-fit: cover;
}

.news-section .card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-section .card:hover {
    transform: translateY(-5px);
}

.news-section .card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-section .badge {
    padding: 0.5em 1em;
    font-weight: 500;
}

.news-section .btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.news-section .btn-link:hover {
    color: var(--accent-color);
}

/* Newsletter Subscription */
.news-section .bg-light {
    background-color: #f8f9fa !important;
}

.news-section .input-group {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .news-section .featured-news .card-img-top {
        height: 300px;
    }
    
    .news-section .card-img-top {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .news-section .featured-news .card-img-top {
        height: 250px;
    }
    
    .news-section .card-img-top {
        height: 160px;
    }
}

/* Stats Section */
.stats-section {
    background-color: var(--primary-color) !important;
}

.stat-item {
    padding: 1rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    color: rgba(255, 255, 255, 0.9);
}

.stat-item h3 {
    font-weight: 700;
    color: #fff;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.9);
}

/* Service Items */
.service-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

.service-item i {
    transition: transform 0.3s ease;
}

.service-item:hover i {
    transform: scale(1.1);
}

/* Testimonials Section */
.testimonial-item {
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
}

.testimonial-item img {
    border: 3px solid var(--primary-color);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color) !important;
}

.cta-section .btn-light {
    transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stat-item {
        margin-bottom: 1.5rem;
    }
    
    .testimonial-item {
        margin-bottom: 1.5rem;
    }
}

/* News Section Styles */
.featured-news {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-news:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

.news-item {
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item:hover {
    transform: translateX(5px);
}

.news-image {
    overflow: hidden;
    border-radius: 8px;
}

.news-image img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.news-item:hover .news-content h3 {
    color: var(--primary-color);
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
}

.badge.bg-light {
    background-color: #f8f9fa !important;
    border: 1px solid var(--border-color);
}

.news-content .btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-content .btn-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .news-image img {
        height: 100px;
    }
    
    .news-content h3 {
        font-size: 1rem;
    }
    
    .news-content p {
        font-size: 0.875rem;
    }
}

.object-fit-cover {
    object-fit: cover !important;
}

.featured-news .card {
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s;
}

.featured-news .card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.featured-news .card-body {
    padding: 1rem 1rem 0.5rem 1rem;
}

.featured-news .badge {
    font-size: 0.8rem;
    padding: 0.4em 0.7em;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.featured-news .news-image {
    min-height: 120px;
    max-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
}

.featured-news .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-news .card-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.featured-news .card-body p {
    font-size: 0.97rem;
}

.featured-news .card-body .btn-link {
    font-size: 0.97rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.featured-news .card-body .btn-link:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .featured-news .news-image img {
        min-height: 80px;
        max-height: 100px;
    }
    .featured-news .card-body h3 {
        font-size: 1rem;
    }
}

.updates-scrollable {
    min-height: 400px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 8px;
}

.updates-scrollable::-webkit-scrollbar {
    width: 8px;
    background: #f1f1f1;
    border-radius: 8px;
}
.updates-scrollable::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 8px;
}

.featured-news {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-news .card {
    min-width: 0;
    word-break: break-word;
}

.featured-news .card-body {
    min-width: 0;
    word-break: break-word;
}

.author-info {
    min-width: 0;
    flex-wrap: nowrap;
    gap: 0.25rem;
}

.author-info small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    display: inline-block;
}

.featured-news .badge {
    z-index: 2;
}

.featured-resources .btn.btn-primary:hover,
.featured-resources .btn.btn-primary:focus {
    background-color: #212529 !important;
    color: #fff !important;
    border-color: #212529 !important;
} 
/* banner image css  */
.image-container-bg, .banner {
    margin-top: 80px; /* Adjust if your navbar is fixed */
    margin-bottom: 80px; /* Adjust if your navbar is fixed */
    width: 100%;
    height: 400px;
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    background-color: white; /* Optional: fills space if image doesn't cover full height */
  }

  /* Responsive height adjustments for smaller screens */
  @media (max-width: 768px) {
    .image-container-bg, .banner {
      height: 100px;
    }
  }

  @media (max-width: 480px) {
    .image-container-bg, .banner {
      height: 100px;
    }
  }