/* General Modal Styling */

.modal-body {
    background: var(--color-sidebar);
    margin: 20%!important;
    padding: 5% 5%!important;
}

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

.modal-title {
    font-size: 30px;
    font-weight: bold;
    color: #3C3C3C;
	margin-bottom: 50px!important;
	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;
}

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

.header_search {
	max-width: 820px!important;
}

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

.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: 130px !important;
    background-color: var(--color-cta);
    text-decoration: none;
    padding: 15px;
    line-height: 1.2em;
    transition: background-color 0.3s 
ease;
}


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

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

.custom-topp-nav {
	background: var(--color4)!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: 40%
}

.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;
}

.boxtext {
    text-align: center !important;
    font-size: 18px !important;
	margin-bottom: 0px!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: #005C8F;
}

.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: 845px;
    margin: 0 auto!important;
}

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

/* 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;
	}
}

.site-branding .d-flex {
    display: flex !important;
    justify-content: space-between;
    width: 100%;
}

.custom-modal-close-button .close-text {
    font-size: 14px;
    font-weight: 100;
    margin-right: 4px;
}

.custom-modal-close-button {
    font-size: 18px;
    font-weight: 200;
}
