body {
    background-color: #f9f9f9;
    color: #000039;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 1.1rem;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.3;
    z-index: -1;
}

.navbar {
    background-color: #000039;
}

.navbar .navbar-brand {
    color: #B4B4D8 !important; /* Using a light brand color for contrast */
}
.navbar-brand {
    font-weight: bolder;
}
.nav-link {
    color: #ffffff !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.header {
    background-color: #4848BD;
    color: #ffffff;
    padding: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    flex-shrink: 0;
    object-fit: contain;
}

.header-text {
    text-align: center; 
    flex-grow: 1;
}

.header-text h1 {
    font-size: calc(1.5rem + 1vw);
    margin: 0;
}

.header-text p {
    font-size: calc(0.9rem + 0.3vw);
    margin: 0;
}

/* Media query for very small screens */
@media (max-width: 576px) {
    .header {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    
    .header-text h1 {
        font-size: 1.5rem;
    }
    
    .header-text p {
        font-size: 0.9rem;
    }
}

.section-title {
    color: #090949;
    margin-top: 40px;
    margin-bottom: 20px;
}

.card {
    border: none;
    background-color: #f1f2f5;
    margin-bottom: 20px;
    height: 100%;
}

/* Add touch-friendly spacing for mobile */
@media (max-width: 768px) {
    .card {
        padding: 15px !important;
    }
    
    .card-body {
        padding: 15px;
    }
    
    /* Improve tap target sizes */
    .nav-link, .social a, footer a {
        padding: 10px 5px;
        display: inline-block;
    }
    
    /* Additional spacing for content */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

html, body {
  height: 100%;
}

.container {
  flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    padding: 20px 0;
    background-color: #000039;
    color: #ffffff;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    margin-bottom: 0;
}

.social-icons a {
    margin-right: 15px;
}

.social-icons svg {
    width: 20px;
    height: 20px;
    fill: #4848BD; 
}

.social {
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.social svg {
    width: 24px;
    height: 24px;
    margin: 5px;
    fill: #4848BD;
}

@media (min-width: 768px) {
    .social {
        flex-direction: column;
    }
}

.shrewd-text {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #000039 !important;
    margin: 1rem 0 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1 !important;
}

@media (max-width: 768px) {
    .shrewd-text {
        font-size: 2rem !important;
    }
}

#shrewd-subtext {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    height: 2em;
    line-height: 2em;
    display: block;
    font-size: 1.3rem;
    font-weight: 500;
    width: 100%;
    margin: 0;
}

.shrewd-subtext-card {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 50%, #ddeeff 100%) !important;
    border: 1px solid #c8e0f0 !important;
    box-shadow: 0 2px 8px rgba(72, 72, 189, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 80px !important;
}

.scrolling-text {
    position: absolute;
    width: 100%;
    animation: scroll-left 6s linear;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 1;
    }
}
