/* General Modal Styling */
.modal-body {
    background: var(--color1);
    margin: 17%;
    padding: 5% 8%;
}

.modal-header {
    border-bottom: none;
    padding: 10px 15px;
    text-align: center;
	display: block;
    padding-bottom: 50px;
}

.modal-title {
    font-size: 30px;
    font-weight: bold;
    color: #000;
	text-align-last: center;
}

/* Close Button */
.custom-modal-close-button {
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 40px;
    color: #3C3C3C;
    position: absolute;
}

.custom-search-bar .close-text {
    font-size: 14px;
    line-height: 14px;
}

.custom-modal-close-button span:nth-child(2) {
    font-size: 18px;
}

/* Popular Topics Section */
.popular-topics {
    margin-top: 30px;
}

.header_search {
	max-width: 780px;
}


.section-title {
    font-size: 18px;
    font-weight: normal;
    color: #3C3C3C;
    text-align-last: center;
    margin-bottom: 50px !important;
    margin-top: 80px !important;
}

.screen-reader-text {
	color:#f4f3f1;
}

/* Topic Box Styling */
.custom-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    height: 180px!important; 
    background-color: var(--color3);
    text-decoration: none;
    padding: 15px;
	line-height: 1.2em;
    transition: background-color 0.3s ease;
    width: 190px;
    height: 130px !important;
}

.custom-box:hover {
	background: #555555;
    background-color: var(--color6) !important;
}

.custom-box i {
    font-size: 1.5em; 
    margin-bottom: 10px;
    color: var(--color10)!important;
}

.search-blocks a:hover {
	font-style: normal!important;
	text-decoration: none!important;
}

.custom-topp-nav {
	background: var(--color3)!important;
}

.custom-box span {
    font-size: 20px;
    font-weight: bold;
    color: var(--color7);
}
.boxtext:hover {
	font-style: normal!important;
	text-decoration: none!important;
}

.search-bar-wrapper {
    width: 50%
}

.search-bar-wrapper a {
    background: var(--color7);
    color: transparent;
    border-right: none;
    padding-right: 0;
    border-right-width: 0;
    border-color: transparent;
}

.search-bar-wrapper a i {
    color: var(--color2);
    transition: color 0.3s ease;
    font-size: 30px;
}

.search-bar-wrapper a i:hover {
    color: #004658;
}

.search-bar-wrapper {
    background: var(--color7);
    padding: 10px 20px;
}

.search-bar-wrapper .fa-search:before {
    vertical-align: middle;
}

.center-content {
    align-content: center;
    display: grid !important;
}

.center-content {
    align-content: center;
}

@media screen and (min-width: 1024px) and (max-width: 1024px) {
    .center-content {
        display: flex;
        align-content: center;
        display: grid !important;
    }
}

.search-bar input {
    width: 94%;
    border: none;
}

.search-bar {
    line-height: 0px;
    margin-bottom: 0px;
    display: flex;
	justify-content: center;
    align-items: center;
}

.boxtext {
    text-align: center !important;
    font-size: 18px !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    line-height: 1.2em !important;
}

.custom-box .text-center {
    text-align: center;
}


.custom-box i {
    font-size: 1.5em; 
    margin-bottom: 10px;
    color: var(--color4);
}

.custom-box span {
    font-size: 20px;
    font-weight: bold;
    color: var(--color7);
}

.custom-box .text-center {
    text-align: center;
}

.custom-box:hover {
    background-color: var(--color8);
}

.custom-box i {
    transition: none;
}

.custom-box:hover i {
    color: inherit;
}

i.fa.fa-external-link.external-link {
    font-size: 1em;
    display: flex;
    width: 100%;
    float: right;
    text-align: right;
    justify-content: end;
	position: static;
}

/* External Link Icon */
.external-link {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 12px;
    color: #F8F8F5;
}

@media (max-width: 768px) {
    .row {
        flex-direction: column;
        align-items: center;
    }
    
    .custom-box {
        width: 90%;
    }
}

.search-blocks {
    width: 820px;
    margin: 0 auto;
}

p.boxtext {
	margin-block-end: 0px!important
}

.search-blocks p {
	text-align-last: center;
}

.modal-body .input-group>.form-control {
	height: 60px;
    border: 1px solid #999999 !important;
}

.custom_header_search .search-submit i {
    color: var(--color2);
    font-size: 33px;
}

/* Tablet-friendly (768px and up) */
@media (max-width: 1024px) and (min-width: 768px) {
    .custom-box i {
        margin-bottom: 8px; 
		font-size: 1.5em;
    }
}

/* Mobile-friendly (less than 768px) */
@media (max-width: 767px) {
    .custom-box i {
        margin-bottom: 6px; 
        text-align: center; 
        display: block!important; 
		font-size: 1.5em!important;
    }
}

/* Tablet-friendly (768px and up) */
@media (max-width: 1024px) and (min-width: 768px) {
    .boxtext {
        font-size: 14px !important; /* Slightly smaller font size for tablets */
    }
}

/* Mobile-friendly (less than 768px) */
@media (max-width: 767px) {
    .boxtext {
        font-size: 24px !important; 
        padding: 10px;
    }
}

@media screen and (max-width: 1024px) {
	.modal-body {
		margin: 7%;
		overflow-y: scroll;
        max-height: 90vh;
	}
}

@media (max-width: 600px) {
    .search-form {
        padding: 0;
    }
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .search-blocks {
        width: 100%;
		flex-direction: column!important;
        align-items: center!important;
        text-align: center!important;
        text-align-last: center;
    }

    .input-group {
        flex-direction: row;
        width: 100%;
    }

    .search-field {
        font-size: 14px;
    }

    .row {
        flex-direction: column;
        align-items: center;
    }
    
    .custom-box {
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 20px;
    }
	
	.search-blocks .col-md-3.col-12.mb-3{
		padding: 0px!important;
	}
}


/* Search placeholder font */
input::placeholder {
  font-family: "Atkinson Hyperlegible", sans-serif;
}

/* Only target the placeholder with this exact text */
input[placeholder="What can we help you find?"]::placeholder {
  font-family: "Atkinson Hyperlegible", sans-serif;
}