/* Variables */
:root {
    --primary-color: #1a5f9c;
    --primary-dark: #0d4988;
    --secondary-color: #2e78b7;
    --accent-color: #37bbed;
    --light-color: #f8fbff;
    --dark-color: #2c3e50;
    --text-color: #4a4a4a;
    --light-grey: #f5f7fa;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    padding-top: 76px;
    background-color: var(--light-grey);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--dark-color);
}

/* Navbar Styles */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('backGround1.jpg');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 24px;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Section Styling */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

section h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-intro {
    text-align: center;
    margin-bottom: 60px;
}

.section-intro h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Cards Styling */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: var(--box-shadow);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card-text {
    color: var(--text-color);
}

.card-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    background-color: rgba(26, 95, 156, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    color: var(--primary-color);
}

/* Team Section */
.team-member {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.team-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.team-info {
    background: white;
    padding: 20px;
    border-radius: 0 0 10px 10px;
}

.team-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-info p {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0;
}

/* Testimonials */
.testimonial-section {
    background-color: var(--light-color);
}

.testimonial-card {
    padding: 30px;
    background: white;
    border-radius: 10px;
    position: relative;
    margin-top: 40px;
    margin-bottom: 30px;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: -30px;
    left: 30px;
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: 'Georgia', serif;
}

.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h5 {
    margin-bottom: 0;
    font-size: 1rem;
}

.author-info p {
    color: #888;
    margin-bottom: 0;
    font-size: 0.85rem;
}

/* Contact Section */
.contact-section {
    background-color: white;
}

.contact-info {
    padding: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px;
    height: 100%;
}

.contact-info h4 {
    color: white;
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-info-item i {
    margin-right: 15px;
    font-size: 24px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-control {
    border-radius: 5px;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

/* Badge Container */
.badge-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.counties-list .badge {
    margin: 0 5px 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* News Section */
.news-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-date {
    margin-bottom: 15px;
}

.date-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
}

.footer-bottom a {
    color: var(--accent-color);
}

/* Counter Animation */
.counter {
    display: inline-block;
    font-weight: bold;
}

/* Map Container */
.map-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    section {
        padding: 60px 0;
    }
    .display-4 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    section h2 {
        font-size: 2rem;
    }
    .navbar-nav {
        padding: 20px 0;
    }
    .navbar-nav .nav-link {
        padding: 10px 0;
        margin: 0;
    }
    .card {
        margin-bottom: 20px;
    }
    .testimonial-card {
        padding: 20px;
    }
    .badge-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .counties-list .badge {
        margin-bottom: 10px;
        font-size: 0.8rem;
    }
    .map-container svg {
        height: auto;
        max-width: 100%;
    }
    .display-4 {
        font-size: 2rem;
    }
    .contact-info {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 80vh;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .section-intro h2 {
        font-size: 1.8rem;
    }
    .card-body {
        padding: 1.5rem;
    }
    .display-4 {
        font-size: 1.8rem;
    }
    .footer {
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
}