/* FISP - Custom Styles
   Colour palette:
   Primary navy:     #2d3e6d
   Accent steel:     #4a90b8
   Orange CTA:       #e8734a
   Background grey:  #f5f5f5
   Text:             #333333
   Footer bg:        #2d3e6d
*/

:root {
    --fisp-navy: #2d3e6d;
    --fisp-steel: #4a90b8;
    --fisp-orange: #e8734a;
    --fisp-grey: #f5f5f5;
    --fisp-text: #333333;
}

body {
    color: var(--fisp-text);
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Navbar */
.navbar-fisp {
    background-color: var(--fisp-navy);
}

.navbar-fisp .navbar-brand,
.navbar-fisp .nav-link {
    color: #ffffff;
}

.navbar-fisp .nav-link:hover,
.navbar-fisp .nav-link:focus {
    color: var(--fisp-steel);
}

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

.navbar-fisp .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%28255,255,255,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Sections */
.section-light {
    background-color: #ffffff;
    padding: 4rem 0;
}

.section-grey {
    background-color: var(--fisp-grey);
    padding: 4rem 0;
}

.section-title {
    color: var(--fisp-navy);
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Hero / Header */
.hero-section {
    background-color: var(--fisp-navy);
    color: #ffffff;
    padding: 5rem 0 4rem;
    text-align: center;
}

.hero-section h1 {
    font-weight: 700;
    font-size: 2.5rem;
}

.hero-section p.lead {
    color: rgba(255, 255, 255, 0.85);
}

/* Buttons */
.btn-fisp {
    background-color: var(--fisp-orange);
    border-color: var(--fisp-orange);
    color: #ffffff;
}

.btn-fisp:hover,
.btn-fisp:focus {
    background-color: #d4623c;
    border-color: #d4623c;
    color: #ffffff;
}

.btn-outline-fisp {
    border-color: var(--fisp-navy);
    color: var(--fisp-navy);
}

.btn-outline-fisp:hover,
.btn-outline-fisp:focus {
    background-color: var(--fisp-navy);
    color: #ffffff;
}

/* Cards */
.card-fisp {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

.card-fisp:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Society logos */
.society-logo {
    max-height: 80px;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.2s ease;
}

.society-logo:hover {
    filter: grayscale(0%);
}

/* Issue cover */
.issue-cover {
    max-height: 300px;
    object-fit: cover;
    border-radius: 0.375rem;
}

/* Congress cards */
.congress-date {
    color: var(--fisp-steel);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer */
.footer-fisp {
    background-color: var(--fisp-navy);
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 0 1.5rem;
}

.footer-fisp a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.footer-fisp a:hover {
    color: #ffffff;
}

.footer-fisp h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.85rem;
}

/* Contact form */
.form-control:focus {
    border-color: var(--fisp-steel);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 184, 0.25);
}

/* Document list */
.doc-item {
    border-left: 3px solid var(--fisp-steel);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

/* Article page */
.article-body {
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Legal footer strip (light background, dark text for contrast) */
.footer-legal {
    background-color: #f5f5f5;
    color: #333333;
    border-top: 1px solid #e0e0e0;
    padding: 0.85rem 0;
    font-size: 0.85rem;
    text-align: center;
}

.footer-legal a {
    color: #2d3e6d;
    text-decoration: underline;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background-color: #2d3e6d;
    color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
}

.cookie-banner a {
    color: #ffffff;
    text-decoration: underline;
}

/* Language switcher flags */
.flag-icon {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* Fixed width so the navbar doesn't shift when the language code changes */
#langSwitcher {
    min-width: 5rem;
    justify-content: flex-start;
}

/* Scroll offset for anchor navigation */
:target::before {
    content: "";
    display: block;
    height: 80px;
    margin-top: -80px;
}
