/* ============================================================
   Custom CSS overrides for Cassiopeia
   File: /media/templates/site/cassiopeia/css/user.css
   ============================================================ */

/* Import better fonts from Google */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Merriweather:wght@700&display=swap');

/* ----------------------------------------
   Article Images
---------------------------------------- */

/* Tighten up article heading image */
figure.item-image {
    margin: 0 0 1rem 0 !important;   /* shrink bottom gap */
    padding: 0 !important;
}

figure.item-image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Remove big gap under homepage images */
figure.item-image.left,
figure.item-image {
    float: none !important;      
    margin: 0 auto 1rem auto !important;
    display: block !important;
    text-align: center;
}

figure.item-image img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Reduce Cassiopeia blog item image spacing */
.blog-item {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.blog-item .item-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Default bottom margin for article images */
.item-page img {
    margin-bottom: 2rem;
    height: auto;
    max-width: 100%;
}

/* ----------------------------------------
   Typography
---------------------------------------- */

/* Old-site style: Helvetica Neue / Arial stack */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #222;
    background-color: #f9f9f9;
}

.container-component {
    background: #fff;
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

.item-page p {
    margin-bottom: 1.25rem;
}

/* ----------------------------------------
   Colours
---------------------------------------- */

/* Override Cassiopeia’s CSS variables */
:root {
    --template-special-color: #1e4834 !important; /* dark green */
    --cassiopeia-color-primary: #1e4834 !important;
}

/* Kill gradient header stripe, make solid dark green */

.header.container-header {
    background: #1e4834 !important;       /* solid */
    background-image: none !important;    /* remove gradient */
}

/* green gradient instead */
/*
.header.container-header {
    background: linear-gradient(90deg, #1e4834 0%, #163626 100%) !important;
}
*/

/* ============================================================
   Custom button overrides
   ============================================================ */

/* Style the Logout button to use the dark green */
form.mod-login-logout .btn,
form.mod-login-logout button {
    background-color: #1e4834 !important; /* dark green */
    border-color: #1e4834 !important;
    color: #ffffff !important;
}

/* Hover/focus state: slightly lighter green */
form.mod-login-logout .btn:hover,
form.mod-login-logout button:hover,
form.mod-login-logout .btn:focus,
form.mod-login-logout button:focus {
    background-color: #246348 !important; /* lighter shade of dark green */
    border-color: #246348 !important;
    color: #ffffff !important;
}

