/* Custom styles for the landing page */

/* FS Emeric Font Face Declarations */
@font-face {
    font-family: 'FS Emeric';
    src: url('../../fonts/FSEmeric-Book.woff2') format('woff2'),
         url('../../fonts/FSEmeric-Book.woff') format('woff'),
         url('../../fonts/FSEmeric-Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FS Emeric';
    src: url('../../fonts/FSEmeric-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Bootstrap CSS Custom Properties that can be overridden */
:root {
    /* Theme colors */
    --bs-primary: #004DC3;
    --bs-secondary: #5DE585;
    --bs-link-color-rgb: rgb(0, 77, 195);
    --bs-primary-rgb: rgb(0, 77, 195);
    --bs-secondary-rgb: rgb(93, 229, 133);
    --bs-success-rgb: 93, 229, 133;
    
    --background-green: #4EC409;

    --bs-heading-color: #004DC3;

    /* Body styles */
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: #000;
    --bs-body-bg: #F4F4F4;
    
    /* Font families */
    --bs-font-sans-serif: "FS Emeric", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    
    /* Border radius */
    --bs-border-radius: 0.375rem;
    --bs-border-radius-sm: 0.25rem;
    --bs-border-radius-lg: 0.5rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-2xl: 2rem;
    --bs-border-radius-pill: 50rem;
    
    /* Box shadow */
    --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
}

/* Modal styling */
.modal {
    --bs-modal-bg: #ffffff;
    --bs-modal-header-padding: 1rem 1rem;
    --bs-modal-header-border-width: 0;
    --bs-modal-header-border-color: #dee2e6;
    --bs-modal-inner-border-radius: calc(0.5rem - 1px);
    --bs-modal-padding: 1rem;
    --bs-modal-footer-gap: 0.5rem;
    /* --bs-modal-footer-bg: #ffffff; */
    --bs-modal-footer-border-width: 0;
    --bs-modal-footer-border-color: #dee2e6;
}

/* Modal Footer Styles */
.modal-footer {
    justify-content: center;
}

/* Modal Footer Button Styles */
.modal-footer .btn {
    min-width: 340px;
}

.btn,
:not(.btn-check)+.btn:active {
    /* Button styles */
    --bs-btn-color: var(--bs-primary);
    --bs-btn-bg: var(--bs-secondary);
    --bs-btn-border-color: var(--bs-secondary);
    --bs-btn-font-weight: bold;
    --bs-btn-hover-color: var(--bs-secondary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-active-color: var(--bs-secondary);
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-secondary);
}

/* Header Styles */


.top-banner {
    background-color: var(--bs-primary) !important;
    font-size: 0.875rem;
    font-weight: 400;
}

.main-header {
    color: var(--bs-primary) !important;
}

.logo-image {
    height: auto;
    max-height: 62px;
    width: auto;
    max-width: 100%;
}

/* Contact Information Styles */
.contact-info {
    gap: 1.5rem;
}

.contact-item {
    align-items: center;
}

.contact-icon {
    width: 32px;
    height: 32px;
    background-color: var(--bs-secondary) !important;
    flex-shrink: 0;
}

.contact-link:hover {
    color: #003a9b !important;
    text-decoration: underline !important;
}

/* Header Actions */

.header-actions .border-left {
    border-left: solid 1px var(--bs-secondary);
}

.adverse-event-link {
    justify-content: start;
}

.adverse-event-text {
    line-height: 1.1;
}

.adverse-event-link:hover {
    color: #003a9b !important;
    text-decoration: underline !important;
}
/* Responsive Styles */
@media (max-width: 767.98px) {
    .logo-container {
        text-align: center;
    }
    
    .logo-image {
        max-height: 50px;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .header-actions {
        justify-content: center !important;
    }
    
    .adverse-event-text {
        text-align: center;
        font-size: 0.875rem;
    }
}

@media (max-width: 575.98px) {
    .top-banner {
        font-size: 0.8rem;
        padding: 0.5rem 0;
    }
    
    .main-header {
        padding: 1rem 0;
    }
    
    .logo-image {
        max-height: 40px;
    }
    
    .contact-info {
        margin-top: 1rem;
    }
}

/* Footer Styles */
.footer-gradient {
    background: linear-gradient(90deg, rgba(0, 66, 163, 1) 0%, rgba(0, 40, 90, 1) 100%) !important;
    position: relative;
}

.footer-logo {
    height: auto;
    max-height: 60px;
    width: auto;
    max-width: 100%;
}

.footer-content {
    font-family: "FS Emeric", sans-serif;
}

.footer-copyright {
    font-size: 0.875rem;
    line-height: 1.4;
}

.footer-date {
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.9;
}

.footer-link {
    font-size: 0.875rem;
    font-weight: 400;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.footer-link:hover {
    text-decoration: underline !important;
    color: white !important;
}

.footer-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Footer Responsive Styles */
@media (max-width: 991.98px) {
    .footer-links {
        text-align: center;
        margin-top: 1rem;
    }
    
    .footer-logo {
        max-height: 50px;
    }
}

@media (max-width: 767.98px) {
    .footer-gradient {
        padding: 2rem 0 !important;
    }
    
    .footer-logo {
        max-height: 40px;
        display: block;
        margin: 0 auto 1rem auto;
    }
    
    .footer-content {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-links {
        text-align: center;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 2rem !important;
    }
}

@media (max-width: 575.98px) {
    .footer-copyright {
        font-size: 0.8rem;
    }
    
    .footer-date {
        font-size: 0.8rem;
    }
    
    .footer-link {
        font-size: 0.8rem;
    }
}

/* Main Content Section Styles */
.main-content-section {
    background-color: var(--bs-body-bg);
    overflow: hidden;
}

/* Background circles using dedicated elements */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none; /* Ensures they don't interfere with clicks */
}

/* Green circles */
.bg-circle-1 { /* Large green top-left */
    top: 124px;
    left: -33px;
    width: 67px;
    height: 67px;
    background-color: var(--bs-primary);
    z-index: 0;
}

.bg-circle-2 { /* Large green center-right */
    top: 248px;
    right: -100px;
    width: 400px;
    height: 400px;
    background-color: var(--background-green);
    transform: translateY(-50%);
    z-index: 0;
}

/* Blue circles */
.bg-circle-3 { /* Small blue top-right */
    top: 50px;
    right: calc(50% - 300px);
    width: 120px;
    height: 120px;
    background-color: var(--bs-primary);
    z-index: 1;
}

.bg-circle-4 { /* Medium blue bottom-left */
    top: 470px;
    right: 3%;
    width: 67px;
    height: 67px;
    background-color: var(--bs-primary);
    z-index: 1;
}

.bg-circle-5 { /* Fifth circle - medium green center-left */
    top: 230px;
    left: calc(50% - 330px);
    width: 150px;
    height: 150px;
    background-color: var(--background-green);
    z-index: 1;
}

.main-card {
    position: relative;
    z-index: 2;
    border: none;
    max-width: 500px;
    margin: 0 auto;
}

.main-card .btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--bs-border-radius-lg);
}

.main-card .text-primary {
    color: var(--bs-primary) !important;
}

.main-card .text-muted {
    color: #6c757d !important;
}

.main-card hr {
    border-color: #dee2e6;
    opacity: 0.5;
}

.training-section {
    margin-top: 2rem;
}

.training-section .border-top {
    border-color: var(--bs-secondary) !important;
}

/* Old pseudo-element circles removed - now using dedicated .bg-circle elements */

/* Responsive adjustments for main content */
@media (max-width: 767.98px) {
    .main-content-section::before {
        width: 200px;
        height: 200px;
        left: -100px;
        top: -50px;
    }
    
    .main-content-section::after {
        width: 250px;
        height: 250px;
        right: -125px;
    }
    
    .main-card {
        padding: 2rem !important;
    }
    
    .bg-circle-4,
    .bg-circle-5 {
        display: none; /* Hide some circles on mobile for cleaner look */
    }
}

@media (max-width: 575.98px) {
    .main-card {
        padding: 1.5rem !important;
        margin: 1rem;
    }
    
    .main-card h1 {
        font-size: 1.5rem;
    }
    
    .main-card .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

.abbreviations-section p {
    margin-bottom: 0;
}

.arrow {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 13px;
    top:4px;
}

.arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
}

.arrow::after {
    --size-diff-x:2px;
    --size-diff-y:1px;
    content: '';
    position: absolute;
    top: var(--size-diff-y);
    left: var(--size-diff-x);
    width: calc(100% - calc(2 * var(--size-diff-x)));
    height: calc(100% - calc(2 * var(--size-diff-y)));
    background-color: #000000;
    clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
}

.no-cookies {
    font-style: italic;
}