/* Reset default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.header {
    color: #fff;
    background-color: black;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex; /* Use flexbox for positioning */
    height: 125px;
    position: relative;
}

.header .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Add padding to create space around the logo */
}

.header .logo {
    height: 100px; /* Adjust logo size */
    width: auto;
    margin-left:2em;
    position: absolute;
}

h5 {
    color: #333;
    text-align: center;
    padding: 2%;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
}

.navbar {
    background-color: #000000;
}

.logo {
    width: 100px; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
}

.navbar-brand {
    color: white;
}

#SignIn {
    background-color: black;
    border-color: black;
}

#SignIn:hover {
    background-color: #A7A2A9;
    border-color: #A7A2A9;
}

.card-header {
    color: #BA122B;
}

html body .container {
    max-width: 1200px !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto; /* Center the container horizontally */
    padding: 15px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.row.justify-content-center {
    margin-top: 20px; /* Adjust as needed */
}

.col-md-6 {
    display: flex;
    justify-content: center;
}

.btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #BA122B; /* Default color */
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease-in-out;
}

.btn-back-to-top.blue {
    background-color: black; /* Blue color */
    border-color: black; /* Change border color on click */
}

.btn-back-to-top.blue:hover {
    background-color: #BA122B; /* Blue color */
    border-color: #BA122B; /* Change border color on click */
}

.btn-back-to-top:hover {
    background-color: #BA122B; /* Hover background color */
}

.btn-back-to-top i {
    color: white; /* Arrow icon color */
}


.search-container {
    align-items: center;
    display: flex;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.search-container input[type="text"] {
    flex: 1; /* Take remaining space */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Email Link Color */
.email-link {
    color: #BA122B;
    font-weight: bold;
    text-decoration: none; /* Remove default underline */
    position: relative; /* Position the element for the pseudo-element */
}

/* Email Link Hover State */
.email-link:hover {
    text-decoration: none;
    color: #BA122B; /* Keep the text color the same */
}

.email-link::after {
    content: ''; /* No content */
    position: absolute; /* Position relative to the link */
    left: 0;
    bottom: -2px; /* Adjust the position as needed */
    width: 100%; /* Full width */
    height: 2px; /* Thickness of the underline */
    background-color: black; /* Black underline */
    transform: scaleX(0); /* Start with a scale of 0 (invisible) */
    transition: transform 0.3s ease; /* Smooth transition */
    transform-origin: left; /* Animate from left to right */
}

.email-link:hover::after {
    transform: scaleX(1); /* Scale to full width on hover */
}


.dictation-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #BA122B;
}

.dictation-button:hover {
    color: #A01024;
}

.dictation-button i {
    font-size: 18px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjust min and max width as needed */
    grid-gap: 20px;
    margin-top: 20px;
}


.card {
    position: relative;
    width: 100%;
    min-height: 300px; /* Set a minimum height for the card */
    height: auto; /* Allow it to expand based on content */
    transform-style: preserve-3d; /* Preserve 3D transformations */
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fff;
    border-radius: 8px;
    cursor: pointer;
    perspective: 1000px;
    display: flex;
    flex-direction: column; /* Adjust content layout */
    justify-content: space-between; /* Distribute content vertically */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transition-delay: 0.3s;
    transform: rotateY(180deg);
}

.flipper {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.card.flipped {
    transform: rotateY(180deg);
}

.front,
.back {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    transform-style: preserve-3d;
}

.back {
    transform: rotateY(180deg);
}

.card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.card h3 {
    color: #333;
    margin: 5px 0;
    text-align: center;
}

.card p {
    color: #666;
    margin: 5px 0;
    text-align: center;
    line-height: 1.5; /* Adjust line height for readability */
}

.card-details {
    width: 100%;
    text-align: center;
}

a {
    color: #BA122B; /* Link color */
    text-decoration: none; /* Remove underline */
}

a:hover {
    text-decoration: underline; /* Underline on hover */
}

.no-results {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 20px;
    display: none; /* Initially hide the message */
}

.contact-info-message {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 20px;
}

.col-md-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 20px;
    margin-top: 20px;
}

.no-results {
    text-align: center; /* Center align the text */
    color: #333;
}

.search-message {
    padding-top: 20px;
    align-items: center;
    text-align: center; /* Center align the text */
    color: #333;
}

.container h1 {
    font-size: 3rem; /* Increase font size */
    font-weight: bold; /* Make it bold */
    color: #333; /* Set a neutral color */
    text-transform: uppercase; /* Convert text to uppercase for emphasis */
    margin-bottom: 20px; /* Add some bottom margin for spacing */
    text-align: center; /* Center align the title */
    letter-spacing: 2px; /* Add letter spacing for clarity */
    border-bottom: 3px solid #BA122B; /* Add a bottom border for emphasis */
    padding-bottom: 10px; /* Add padding to separate the border from text */
}