:root {
	--brown-dark: #3C2D16;
	--brown-medium: #C4A77D;
	--brown-light: #E6C592;
    --blue-dark: #022851;
    --blue-medium: #0d3b66;
    --blue-light: #2196f3;
    --gold: #d4a017;
    --gold-light: #e0b53d;
    --gray-light: #f5f5f5;
    --gray-dark: #333;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
}

/* Header Customization */

body.layout-wide .header-main,
body.layout-rightside .header-main {
    background-image: url(https://jaycountysheriff.com/e107_themes/jay_county_sheriff/images/JCS-Flag_dark.png);
    background-size: cover;
}
body.layout-home .header-main {
    background-color: var(--blue-dark);
}
.header-main {
    color: var(--white);
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    letter-spacing: 1px;
}

.logo-text span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gold);
}

.emergency-btn {
    background-color: #b71c1c;
    color: white;
    font-weight: 700;
    transition: var(--transition);
    border: none;
}

.emergency-btn:hover {
    transform: scale(1.05);
    background-color: #d32f2f;
    color: white;
}

/* Navigation Customization */
.navbar-custom {
    background-color: var(--blue-medium);
    padding: 0;
}

.navbar-custom .navbar-nav .nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-custom .navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
}

.navbar-custom .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--gold);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.navbar-custom .navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-custom .dropdown-menu {
    background-color: var(--blue-medium);
    border: none;
    border-radius: 0 0 4px 4px;
    margin-top: 0;
}

.navbar-custom .dropdown-item {
    color: var(--white);
    transition: var(--transition);
}

.navbar-custom .dropdown-item:hover {
    background-color: rgba(255,255,255,0.1);
    padding-left: 1.5rem;
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(2, 40, 81, 0.8), rgba(2, 40, 81, 0.9)), center/cover;
    min-height: 50vh;
    color: var(--white);
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    /*text-shadow: 0 2px 8px rgba(0,0,0,0.5);*/
    text-shadow:
    -1px -1px 0 black, /* Top-left shadow */
    1px -1px 0 black,  /* Top-right shadow */
    -1px 1px 0 black,  /* Bottom-left shadow */
    1px 1px 0 black;   /* Bottom-right shadow */
}

.hero p {
    font-size: 1.4rem;
    /*text-shadow: 0 2px 4px rgba(0,0,0,0.9);*/
    text-shadow:
    -1px -1px 0 black, /* Top-left shadow */
    1px -1px 0 black,  /* Top-right shadow */
    -1px 1px 0 black,  /* Bottom-left shadow */
    1px 1px 0 black;   /* Bottom-right shadow */
}

.btn-custom-gold {
    background-color: var(--gold);
    color: var(--blue-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    transition: var(--transition);
    border: none;
}

.btn-custom-gold:hover {
    background-color: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.2);
    color: var(--blue-dark);
}

.btn-custom-outline {
    background-color: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    transition: var(--transition);
}

.btn-custom-outline:hover {
    background-color: var(--gold);
    color: var(--blue-dark);
    border-color: var(--gold);
}

/* Quick Links Section */
.quick-links {
    background-color: var(--blue-medium);
    color: var(--white);
}

.quick-link-card {
    background-color: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
    backdrop-filter: blur(4px);
    border: none;
}

.quick-link-card:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-10px);
}

.quick-link-card i {
    font-size: 2.5rem;
    color: var(--gold);
}

/* Services Section */
.section-title {
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--gold);
}

.service-card {
    transition: var(--transition);
    border: none;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.learn-more {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.learn-more:hover {
    color: var(--gold-light);
    padding-left: 5px;
}

/* News Section */
.news-date {
    color: var(--gold);
    font-weight: 600;
}

.read-more {
    color: var(--blue-medium);
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.read-more::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--gold);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.read-more:hover::after {
    width: 100%;
}

/* Alert Banner */
.alert-banner {
    background-color: #ffcd3c;
    color: var(--blue-dark);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.alert-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(0,0,0,0.05),
        rgba(0,0,0,0.05) 10px,
        rgba(0,0,0,0.1) 10px,
        rgba(0,0,0,0.1) 20px
    );
}

/* Menu */

.text-primary {
  color: var(--brown-dark) !important;
}

.btn-primary{
	background-color: var(--brown-dark);
	border-color: var(--brown-dark); /* e.g., #0056b3 */
	color: #ffffff; /* e.g., #ffffff */
		/* You might also want to remove or modify the box-shadow */
		box-shadow: none;
}

.btn-primary:hover{
	background-color: var(--gold);
	border-color: var(--brown-dark); /* e.g., #0056b3 */
	color: #ffffff; /* e.g., #ffffff */
		/* You might also want to remove or modify the box-shadow */
		box-shadow: none;
}

/* Content */

.content {
    font-size: 20px;
}

/* Footer */
.footer-custom {
    background-color: var(--blue-dark);
    color: var(--white);
}

.footer-heading {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--gold);
}

.footer-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-link:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--gold);
    transform: translateY(-5px);
    color: var(--white);
}

.mycleverai {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
}

.mycleverai:hover {
    text-decoration: underline;
    color: var(--gold);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--gold);
    color: var(--blue-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--gold-light);
    transform: translateY(-3px);
    color: var(--blue-dark);
}

.alerts_list {
    /*border: 2px solid var(--gray-dark);
    border-radius: 0.375rem;*/
    padding: 10px;
    /*background:var(--gray-light);*/
}
/*
.alerts_list .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--gray-dark);
}
*/
.alerts_list li {
    border-bottom: 1px solid var(--gray-dark);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero {
        min-height: auto;
    }
}