/* /assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Poppins:wght@400;600;700&display=swap');

:root {
    --bs-primary: #0A2540;      /* Deep Blue */
    --bs-secondary: #425466;    /* Gray */
    --bs-light: #F6F9FC;        /* Light Background Gray */
    --bs-accent: #009688;       /* Refined Teal */
    --bs-accent-secondary: #FFC107; /* Amber/Gold for highlights */
    --bs-primary-soft: rgba(0, 150, 136, 0.1);

    --bs-body-font-family: 'Poppins', sans-serif;
    --bs-heading-font-family: 'Montserrat', sans-serif;
    --bs-body-color: #425466;
    --bs-body-bg: #FFFFFF;
}

body {
    font-family: var(--bs-body-font-family);
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bs-heading-font-family);
    font-weight: 700;
    color: var(--bs-primary);
}

.text-accent {
    color: var(--bs-accent) !important;
}

.bg-primary-soft {
    background-color: var(--bs-primary-soft);
}

.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}

.btn-accent {
    background-color: var(--bs-accent);
    color: white;
    border-color: var(--bs-accent);
}

.btn-accent:hover {
    background-color: #00796b;
    color: white;
    border-color: #00796b;
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, .1), 0 3px 6px rgba(0, 0, 0, .08);
}

.btn-primary {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}
.btn-primary:hover {
     background-color: #081e33;
     border-color: #081e33;
     transform: translateY(-3px);
     box-shadow: 0 7px 14px rgba(50, 50, 93, .1), 0 3px 6px rgba(0, 0, 0, .08);
}


.link-secondary {
    font-weight: 600;
    color: var(--bs-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.link-secondary:hover {
    color: var(--bs-primary);
}

.section-padding {
    padding: 120px 0;
}

.bg-light-custom {
    background-color: var(--bs-light);
}

/* Override for Bootstrap's default primary background */
.bg-primary {
    background-color: var(--bs-primary) !important;
}

.navbar {
     box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #ffffff;
}

.navbar-brand {
    font-family: var(--bs-heading-font-family);
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-logo {
    height: 36px; /* Controls the height of the logo in the navbar */
    width: auto;  /* Maintains aspect ratio */
}

.card {
    border: 1px solid #e6e6e6;
    box-shadow: 0 4px 6px rgba(50, 50, 93, .05), 0 1px 3px rgba(0, 0, 0, .03);
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(50, 50, 93, .1), 0 6px 6px rgba(0, 0, 0, .05);
    border-color: var(--bs-accent);
}

.dropdown-header {
    font-family: var(--bs-heading-font-family);
    font-size: .8rem;
    letter-spacing: .5px;
    color: var(--bs-accent);
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bs-primary);
    color: white;
    padding: 16px 0;
    z-index: 1050;
    border-top: 3px solid var(--bs-accent);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-consent-banner .cookie-link {
    color: var(--bs-accent);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-consent-banner .cookie-link:hover {
    color: #00e5cc;
    text-decoration: underline;
}

.cookie-consent-banner .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.cookie-consent-banner .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

@media (max-width: 768px) {
    .cookie-consent-banner .col-md-7,
    .cookie-consent-banner .col-md-5 {
        text-align: center !important;
    }

    .cookie-consent-banner .col-md-5 {
        margin-top: 12px;
    }
}

/* Tooltip System */
.definition-term {
    position: relative;
    border-bottom: 2px dashed var(--bs-accent);
    cursor: help;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease;
}

.definition-term:hover {
    border-bottom-color: var(--bs-primary);
    color: var(--bs-primary);
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bs-primary);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.4;
    max-width: 320px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(-8px);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-weight: 400;
    text-align: left;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--bs-primary);
}

.definition-term:hover .tooltip-content,
.definition-term:focus .tooltip-content,
.definition-term.tooltip-active .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Mobile-specific tooltip adjustments */
@media (max-width: 768px) {
    .tooltip-content {
        max-width: 280px;
        left: 0;
        right: 0;
        margin: 0 auto;
        transform: none;
        position: fixed;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        background: rgba(10, 37, 64, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.9rem;
        padding: 16px 20px;
    }

    .tooltip-content::after {
        display: none;
    }

    .definition-term:hover .tooltip-content,
    .definition-term:focus .tooltip-content,
    .definition-term.tooltip-active .tooltip-content {
        transform: translate(-50%, -50%) scale(1);
    }

    .tooltip-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .tooltip-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

