/* ------------------------------------------------------------
   FONTS & COLOURS
------------------------------------------------------------ */



.hero-brand img {width:100%; height:auto;}
.hero-tint-layer {
    position: absolute;
    inset: 0; /* top:0, right:0, bottom:0, left:0 */
    background: rgba(69, 58, 45, 0.45); 
    z-index: 2; /* sits ABOVE video but BELOW text */
}


/* Smooth, consistent font rendering */
html, body {
  -webkit-font-smoothing: antialiased;       /* macOS / iOS */
  -moz-osx-font-smoothing: grayscale;        /* macOS Firefox */
  font-smooth: always;                        /* non-standard but helps on some browsers */
}
.fade-in-new {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-new.loaded {
    opacity: 1;
    transform: translateY(0);
}

:root {
    --lightgrey: #EBECE4;
    --white: #ffffff;
    --warmblack: #352F36;
    --darknavy: #252C32;
	--bggrey: #FFFEFD;
}

.lightgrey { color: var(--lightgrey); }
.warmblack { color: var(--warmblack); }
.darknavy  { color: var(--darknavy); }
.white     { color: var(--white); }

.bg_lightgrey { background-color: var(--lightgrey); }
.bg_darknavy  { background-color: var(--darknavy); }
.bg_warmblack { background-color: var(--warmblack); }
.bg_white     { background-color: var(--white); }
.bg_vlightgrey { background-color: var(--vlightgrey); }



body {background-color: var(--bggrey);}


@media (min-width: 992px) {
.increased-gutter {--bs-gutter-x: 4rem !important;}
.increased-gutter2 {--bs-gutter-x: 7rem !important;}
}


@media (max-width: 992px) {

    /* Make the entire content-container go full width */
    .two-col-bg-wrapper .content-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Make rows inside go full width too */
    .two-col-bg-wrapper .content-container .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Make the code-boxes full bleed */
    .code-box {
        padding-left: 20px;
        padding-right: 20px;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ============================================
   RESPONSIVE TYPOGRAPHY SYSTEM (ARGENT + KARLA)
   ============================================ */

/* H1 – Hero headings */
h1,
.hero-title {
    font-family: "argent-cf", serif;
    font-weight: 200;
    font-size: clamp(36px, 4vw + 1rem, 64px);
    line-height: 1.15;
}

/* H2 – Section titles */
h2 {
    font-family: "argent-cf", serif;
    font-weight: 200;
    font-size: clamp(30px, 3vw + 0.5rem, 48px);
    line-height: 1.2;
}

/* H3 – Subsection titles */
h3 {
    font-family: "argent-cf", serif;
    font-weight: 300;
    font-size: clamp(22px, 2vw + 0.5rem, 30px);
    line-height: 1.3;
}

/* H4 – Small headings */
h4 {
    font-family: "Karla", sans-serif;
    font-weight: 400;
    letter-spacing: 1px;
    font-size: clamp(18px, 1.5vw + 0.2rem, 20px);
    line-height: 1.35;
}

/* Body text */
p {
    font-family: "Karla", sans-serif;
    font-size: clamp(17px, 0.6vw + 0.5rem, 18px);
    line-height: 1.6;
}

/* Standfirst / intro paragraph */
p.subheader,
.standfirst {
    font-family: "Karla", sans-serif;
    font-size: clamp(20px, 1vw + 0.6rem, 24px);
    line-height: 1.45;
}


.pullquote p {  font-family: "argent-cf", serif;
    font-weight: 200;

      
	color: var(--lightgrey);
	
	    font-weight: 200;

    font-size: clamp(30px, 3vw + 0.5rem, 48px);
    line-height: 1.2;
}

a {color:black;}

/* Meta text (dates, categories) */
.infotext {
    font-family: "Karla", sans-serif;
    font-size: clamp(18px, 1vw + 0.5rem, 22px);
    line-height: 1.4;
    text-transform: uppercase;
}

/* Quote block text */
.njf-quote .quote-text {
    font-size: clamp(26px, 2vw + 0.8rem, 35px);
    line-height: clamp(38px, 3vw, 50px);
}

/* Quote attribution */
.njf-quote .quote-attribution {
    font-size: clamp(18px, 1vw + 0.3rem, 22px);
}

a.whitebutton {
	border: 1px solid var(--warmblack);  
	color: var(--warmblack);  
	font-family: "Karla", sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px; 
	padding:15px;
	padding-left:25px; padding-right:25px;
	text-decoration:none;
	display:inline-block;
  font-size: clamp(16px, 0.8vw + 0.4rem, 18px);
    transition: all 0.5s ease;
}

a.whitebutton:hover {
    background-color: white !important;
}


a.blackbutton {
	border: 1px solid var(--white);  
	color: var(--white);  
	font-family: "Karla", sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px; 
	padding:15px;
	padding-left:25px; padding-right:25px;
	text-decoration:none;
	display:inline-block;
  font-size: clamp(16px, 0.8vw + 0.4rem, 18px);
    transition: all 0.5s ease;
}

a.blackbutton:hover {
    background-color: var(--warmblack);   !important;
}

.button404 {margin-top:50px;}

/* ------------------------------------------------------------
   HERO HEADER
------------------------------------------------------------ */

.hero-image {
    height: 760px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.hero-header::before {
    content: "";
    position: absolute;
    inset: 0;

    z-index: 1;
}

.hero-overlay,
.hero-inner {
    position: relative;
    z-index: 2;
}





/* Force hero to exact height */
.hero-header {
    position: relative;
    height: 760px;
    overflow: visible;
}

.hero-video,
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay,
.hero-inner,
.navbar {
  position: relative;
  z-index: 3;   /* ensures text appears above video */
}

.hero-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  z-index: 2;
}





/* ------------------------------------------------------------
   RESPONSIVE HERO LOGO

.hero-logo {
	width: 100%; 
    max-height: 100px;
    width: auto;
}


------------------------------------------------------------ */

@media (max-width: 992px) {
    .hero-logo {
       max-height: 90px;
    }
}


@media (max-width: 576px) {
    .hero-logo {
      max-height: 70px;
    }
}



/* Title */
/* Default (NOT centered) */
.hero-centered {text-align:center;}

.hero-title {
    color: #fff;
    font-family: "argent-cf", serif;
     font-weight: 200;
	letter-spacing:2px;
}

.hero-inner .row {
    min-height: 560px;
}
/* Tighten spacing between hero title and subheader */
.hero-inner h1.hero-title {
    margin-top: 0;
    margin-bottom: 0.35rem; /* tweak to taste */
}

.hero-inner p.subheader {
    margin-top: 0;
    margin-bottom: 0; /* or 0.5rem if you want a bit of space below */
	color: var(--white) !important;
}

/* CTA Button */
.button_cta {
    background-color: var(--gold);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 10px;
    display: inline-block;
    width: auto;
    font-weight: 600;
}

/* ------------------------------------------------------------
   NAVIGATION (UNIFIED + CLEANED)
------------------------------------------------------------ */

/* Base navbar layout */
.hero-header .navbar {
    align-items: center;
}

.hero-header .navbar-brand {
    display: flex;
    align-items: center;
}

/* Desktop spacing */
@media (min-width: 992px) {
    #heroMenu2 {
        padding-left: 1rem;
    }
}

/* Hamburger button */
.navbar-toggler {
    padding: 0;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    width: 1.7rem;
    height: 1.7rem;
    filter: brightness(3);
}

/* ------------------------------------------------------------
   COLLAPSE MENU PANEL (mobile)
------------------------------------------------------------ */

#heroMenu2 {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

#heroMenu2 .mobile-menu-wrapper {
    background: rgba(0,0,0,0.65);
    padding: 1rem 1.2rem;
    border-radius: 10px;
    width: 100%;
}

#heroMenu2.collapse.show .mobile-menu-wrapper {
    display: block !important;
    width: 100% !important;
}

/* ------------------------------------------------------------
   NAV LINK TYPOGRAPHY
------------------------------------------------------------ */

.hero-header .navbar-nav .nav-link,
#heroMenu2 .navbar-nav .nav-link {
    font-family: "Karla", sans-serif;
    font-size: 22px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--lightgrey) !important;
    padding: 12px 16px;
    text-decoration: none;
    transition: color .3s ease;
}

.hero-header .navbar-nav .nav-link:hover,
#heroMenu2 .navbar-nav .nav-link:hover {
    color: #ffffff !important;
}

/* Mobile text sizing */
@media (max-width: 991px) {
    #heroMenu2 .navbar-nav .nav-link {
        font-size: 20px;
        padding: 14px 16px;
    }
}

/* ------------------------------------------------------------
   NAVBAR POLISH (Desktop + Mobile)
------------------------------------------------------------ */

/* Keep navbar content aligned and not squashed */
.hero-header .navbar {
    align-items: center;
}

/* Ensure the navbar-brand (logo) is aligned correctly */
.hero-header .navbar-brand {
    display: flex;
    align-items: center;
}

/* Desktop spacing: menu snug to the right */
@media (min-width: 992px) {
    #heroMenu2 {
        padding-left: 1rem;
    }
}



/* ------------------------------------------------------------
   BURGER BUTTON POLISH
------------------------------------------------------------ */

.navbar-toggler {
    padding: 0;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    width: 1.7rem;
    height: 1.7rem;
    filter: brightness(3);
}

/* ------------------------------------------------------------
   COLLAPSED MOBILE MENU PANEL (Mobile Only)
------------------------------------------------------------ */

@media (max-width: 991px) {

    #heroMenu2 {
        background: rgba(0,0,0,0.6);
        padding: 1.25rem 1.5rem;
        border-radius: 14px;
        margin-top: 1rem;
        text-align: left;
    }

    /* Breathing room for each menu item */
    #heroMenu2 .nav-item {
        margin-bottom: 0.4rem;
    }

    #heroMenu2 .nav-link {
        font-size: 20px;
        padding-left: 0;
    }
}

/* ------------------------------------------------------------
   NAV TYPOGRAPHY (Desktop + Mobile)
------------------------------------------------------------ */

.hero-header .navbar-nav .nav-link {
    font-family: "Karla", sans-serif;
    font-size: 22px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--lightgrey) !important;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.hero-header .navbar-nav .nav-link:hover {
    color: #ffffff !important;
}



/* ------------------------------------------------------------
   FOOTER BASE
------------------------------------------------------------ */

.site-footer {
 background-color: var(--darknavy);
    color: var(--lightgrey);
}

.footer-logo {
	height:100px;
    width: auto;
}

/* ------------------------------------------------------------
   FOOTER MENU
------------------------------------------------------------ */

.footer-menu {
    margin: 0;
    padding: 0;
}

.footer-menu li {
    list-style: none;
}

/* Style for all footer links */
.footer-link {
    font-family: "Karla", sans-serif;
    text-transform: uppercase;
    color: var(--lightgrey) !important;
    letter-spacing: 1px;
    text-decoration: none;
    padding: .3rem 0;
    display: inline-block;
    transition: color .2s ease;
	   font-size: clamp(16px, 1vw + 0.5rem, 20px);
}

.footer-link:hover {
    color: #ffffff !important;
	  	   font-size: clamp(16px, 1vw + 0.5rem, 20px);

}

/* Style for all footer links */
.footer-link2 {
    font-family: "Karla", sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--lightgrey) !important;
    letter-spacing: 1px;
    text-decoration: none;
    padding: .3rem 0;
    display: inline-block;
    transition: color .2s ease;
	    font-size: clamp(14px, 0.7vw + 0.4rem, 16px);

}

.footer-link2:hover {
    color: #ffffff !important;
}
.footermenu2 {padding-top:60px; padding-bottom:60px;   font-size: 16px !important;}
.copyright {    font-family: "Karla", sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--lightgrey) !important;
    letter-spacing: 1px;
    text-decoration: none;
    padding: .3rem 0;
    display: inline-block;
    transition: color .2s ease;
    font-size: clamp(14px, 0.7vw + 0.4rem, 16px);
}



/* ------------------------------------------------------------
   MOBILE BEHAVIOUR
------------------------------------------------------------ */

@media (max-width: 991px) {

    /* Menu becomes stacked + centred */
    .footer-menu {
        text-align: center;
    }

    .footer-menu li {
        margin-bottom: 8px;
    }
}

/* Desktop: place menu nicely on the right */
@media (min-width: 992px) {
    .footer-nav {
        text-align: right;
    }
}


/* ------------------------------------------------------------
   GRAVITY FORMS FIX
------------------------------------------------------------ */

.plainpage {padding-top:40px; padding-bottom:80px;}
.plainpage h1 {margin-bottom:60px;}




/* ------------------------------------------------------------
   GRAVITY FORMS FIX
------------------------------------------------------------ */

.gform_required_legend {display: none;}
.gfield_label, .gform-field-label--type-sub {color: var(--warmblack); text-transform:uppercase;  }
.gform_button {	border: 1px solid var(--warmblack);  
	color: var(--warmblack);  
	font-family: "Karla", sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px; 
	padding:15px;
	padding-left:25px; padding-right:25px;
	text-decoration:none; background-color: transparent !important;
    font-size: clamp(16px, 0.8vw + 0.4rem, 18px);
}
body .gform_wrapper .gform_footer {
    text-align: center;
}

body .gform_wrapper .gform_footer input[type="submit"],
body .gform_wrapper .gform_footer button {
    margin: 0 auto;
    display: inline-block;
}

/* Gravity Forms global style overrides */
body .gform_wrapper input[type="text"],
body .gform_wrapper input[type="email"],
body .gform_wrapper input[type="url"],
body .gform_wrapper input[type="number"],
body .gform_wrapper input[type="password"],
body .gform_wrapper input[type="tel"],
body .gform_wrapper textarea,
body .gform_wrapper select {
    border: 1px solid gray !important;
    border-radius: 0 !important;        /* <-- removes rounded corners */
    background-color: #fff;
    padding: 10px 12px;
    box-shadow: none !important;
}

/* Focus state */
body .gform_wrapper input:focus,
body .gform_wrapper textarea:focus,
body .gform_wrapper select:focus {
    border-color: var(--darknavy) !important;
    outline: none;
    box-shadow: none !important;
}


/* ------------------------------------------------------------
   CONTACT
------------------------------------------------------------ */


.contactpage {padding-top:80px; padding-bottom:70px;}
.contactsubheader {padding-bottom:60px; text-align:center; }

/* ------------------------------------------------------------
   PORTFOLIO
------------------------------------------------------------ */

.portfolio-wrapper1 {}
.portfolio-wrapper2 { background-color: var(--lightgrey); }
.portfoliotext {padding:80px;}
.portfolioimg {padding-top:80px; padding-bottom:80px; max-width:100%;}
.portfoliotext h2 {margin-bottom:30px;}
.portfoliotext a.whitebutton {margin-top:30px;}
.portfolioimg img {width: 100%; height:auto;}


/* ------------------------------------------------------------
   PERSPECTIVES
------------------------------------------------------------ */


.perspectivespage {padding-top:80px;}
.perspectivespage h2 {font-size:50px; line-height:60px; margin-bottom:50px;}
.perspectivespageintro {padding-bottom:70px;} 

.perspectivespost h1 {font-size:35px; line-height:45px; margin-bottom:50px; font-weight:300; }
.perspectivespost .standfirst  {margin-bottom:40px; font-size:22px; line-height:32px;   }
.perspectivespost  {padding-bottom:120px;}

.post-cat {font-size:15px; margin-bottom:20px; text-transform:uppercase;}
.post-card {margin-bottom:30px;}
.post-cat a {text-decoration:none; color: var(--warmblack);}
.post-card {
    border: none;
    border-radius: 0;
}

.post-cat {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--warmblack);
    text-decoration: none;
}

.post-cat:hover {
    opacity: 0.7;
}

.post-title-link {
    text-decoration: none;
    color: var(--warmblack);
}

.post-title-link:hover {
    text-decoration: underline;
}

.card-img-top:hover {
    opacity: 0.9;
}


#load-more {
	border: 1px solid var(--warmblack);  
	color: var(--warmblack);  
	font-family: "Karla", sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px; 
	padding:15px;
	padding-left:25px; padding-right:25px;
	text-decoration:none;
	display:block;
	margin: 40px auto;
	background:transparent !important;
    transition: all 0.5s ease;
    font-size: clamp(16px, 0.8vw + 0.4rem, 18px);

}

#load-more:hover {
    background-color: var(--lightgrey) !important;
}

/* ------------------------------------------------------------
   IN-CONTENT QUOTE BLOCK
------------------------------------------------------------ */

.njf-quote {
    position: relative;
    padding-left: 30px;
    margin: 60px 0;
    display: block;
}

.njf-quote::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--warmblack);
}

/* Quote text */
.njf-quote .quote-text {
    display: block;
    font-family: "argent-cf", serif;

    font-weight: 200;

    color: var(--warmblack);
    margin-bottom: 20px;
}

/* Attribution */
.njf-quote .quote-attribution {
    display: block;
    font-family: "Karla", sans-serif;

    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--darknavy);
}


/* ---------------------------------------
   RESPONSIVE VIDEO WRAPPER
---------------------------------------- */

.responsive-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    margin: 30px 0;
}

.responsive-video iframe,
.responsive-video object,
.responsive-video embed,
.responsive-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}



/* ------------------------------------------------------------
   HOMEPAGE MAIN
------------------------------------------------------------ */

.homepage-main {padding-top: 100px; padding-bottom:100px;}
.homecta {padding-top: 50px}
.homepage-main h2 {margin-bottom:20px;}
.homenaincol2 {padding-top:10px;}

/* ------------------------------------------------------------
   HOME SLIDER
------------------------------------------------------------ */
.homepage-slider {margin-bottom:1rem;}



.custom-acf-slider {
  position: relative;
  overflow: hidden;
}

.custom-acf-slider-track {
  display: flex;
  transition: transform 0.7s ease;
}

.custom-acf-slide {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 1rem;  
  box-sizing: border-box;
}

.custom-acf-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* emphasise the centre slide */
.custom-acf-slide.is-center img {
  transform: scale(1.03);
}

/* tweak padding on mobile if you like */
@media (max-width: 768px) {
  .custom-acf-slide {
    padding: 0 0.25rem;
  }
}



/* ------------------------------------------------------------
   CODE BLOCKS
------------------------------------------------------------ */
.two-col-bg-wrapper {
    position: relative;
    width: 100%;
}
/* Split background ALWAYS fills its wrapper */
.two-col-bg {
    position: absolute;
    inset: 0;            /* top:0, right:0, bottom:0, left:0 */
    display: flex;
    z-index: 1;
}

/* Left + right colours */
.two-col-bg::before,
.two-col-bg::after {
    content: "";
    flex: 1;
    display: block;
}

.two-col-bg::before {
    background: var(--lightgrey);
}

.two-col-bg::after {
    background: var(--vlightgrey);
}





.two-col2-bg {
    position: absolute;
    inset: 0;            /* top:0, right:0, bottom:0, left:0 */
    display: flex;
    z-index: 1;
}

/* Left + right colours */
.two-col2-bg::before,
.two-col2-bg::after {
    content: "";
    flex: 1;
    display: block;
}

.two-col2-bg::before {
    background: var(--vlightgrey);
}

.two-col2-bg::after {
    background: var(--lightgrey);
}

.pullquote {background-color: var(--darknavy); text-align:center; padding-top:70px; padding-bottom:70px;}








/* Content sits on top + creates height */
.content-container {
    position: relative;
    z-index: 2;

}

.code-box h3 {margin-bottom:30px;}
.code-box {    padding-top: 80px;   padding-bottom: 80px;}



@media (max-width: 992px) {
  .code-boxgrey {    background: var(--lightgrey);}
  .code-boxlgrey {    background: var(--vlightgrey);}	
	
	
}

.interstitial-banner {
    width: 100%;
    height: 390px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


@media (max-width: 768px) {
    .interstitial-banner {
        height: 260px;
    }
}


/* ---------------------------------------------
   TEXT-ONLY HERO (no background, dark text)
--------------------------------------------- */
/* Remove all background + overlay from text-only hero */
.hero-header.text-only {
    background: transparent !important;
    height: auto !important;

}

/* Kill the overlay used in image heroes */
.hero-header.text-only::before {
    display: none !important;
}

/* Ensure no inherited tint */
.hero-header.text-only .hero-overlay {
    background: none !important;
}
.hero-header.text-only .hero-inner .row {
    min-height: unset !important;
}

.hero-header.text-only .hero-title {
    color: var(--warmblack); /* dark text */
}

.hero-header.text-only .subheader {
    color: var(--darknavy);
}

.hero-header.text-only .navbar,
.hero-header.text-only .navbar a,
.hero-header.text-only .navbar .nav-link {
    color: var(--warmblack) !important;
}

.hero-header.text-only .hero-logo {
    filter: none; /* if you're using a white logo or colour inversion */
}

/* Main image block spacing */
.main-image-block {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* The image itself */
.main-post-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Caption styling */
.main-image-caption {
    text-align: right;
    text-transform: uppercase;
    font-family: "Karla", sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    margin-top: 15px;      /* adds top spacing */
    color: var(--darknavy); /* or any brand colour */
}


.post-tags {
    margin-top: 20px;
}

.post-tag {
    display: inline-block;
    padding: 10px 30px;
    margin: 0 20px 20px 0;
    background: var(--lightgrey);
    color: var(--warmblack);
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
    border-radius: 20px;
    text-decoration: none;
}

.post-tag:hover {
    background: var(--darknavy);
    color: #fff;
}


.share-text {
    text-transform: uppercase;
    font-family: "Karla", sans-serif;
    font-size: 22px;
    letter-spacing: 2px;

}
.tagsheader {padding-top:60px; padding-bottom:20px;}
.datesheader {padding-top:60px; padding-bottom:60px;}

/* Always use custom SVG */
.a2a_dd {
    background-image: url('https://njfholdings.com/wp-content/themes/basetheme/images/Share2.svg') !important;
    background-size: 22px 22px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: inline-block !important;
    border: none !important;
}

/* Remove AddToAny default icon */
.a2a_dd > span,
.a2a_dd img,
.a2a_dd svg {
    display: none !important;
}

/* IMPORTANT: Keep the icon on hover */
.a2a_dd:hover,
.a2a_dd:focus,
.a2a_dd:active {
    background-image: url('https://njfholdings.com/wp-content/themes/basetheme/images/Share2.svg') !important;
    background-size: 22px 22px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;

    opacity: 1 !important;
    filter: none !important;
    box-shadow: none !important;
}

.a2a_menu a {color: #999 !important;}


@media (max-width: 992px) {
.datesheader {padding-top: 10px ; padding-bottom: 10px;}
	
	.portfoliotext {
    padding: 50px; padding-left:15px; padding-right:15px;
}
	
	.col-12 { padding-left:15px; padding-right:15px;
}
	
	
	
}

.share-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
		padding-top:60px; padding-bottom:60px;
}


.perspectivespage h2 {
    font-size: clamp(32px, 3vw + 1rem, 50px);
    line-height: clamp(38px, 3.5vw + 1rem, 60px);
}

.perspectivespost h1 {
    font-size: clamp(28px, 2.5vw + 0.8rem, 35px);
    line-height: clamp(34px, 3vw + 1rem, 45px);
}

.perspectivespost .standfirst {
    font-size: clamp(18px, 1.2vw + 0.4rem, 22px);
    line-height: clamp(26px, 1.5vw + 0.6rem, 32px);
}

.main-image-caption {
    font-size: clamp(14px, 0.8vw + 0.3rem, 16px);
}

.tagsheader,
.datesheader {
    font-size: clamp(16px, 1vw + 0.3rem, 22px); /* if needed */
}


.post-cat {
    font-size: clamp(12px, 0.6vw + 0.3rem, 14px);
}

.share-text {
    font-size: clamp(18px, 1vw + 0.3rem, 22px);
}

.post-tag {
    font-size: clamp(14px, 0.8vw + 0.3rem, 16px);
}




/* ------------------------------------------
   WPML LANGUAGE SWITCHER (Dropdown)
------------------------------------------- */

.language-switcher {
    position: relative;
}

/* The trigger (🌐 or language code) */
.lang-toggle {
    color: var(--lightgrey) !important;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 16px;
}

.lang-toggle:hover {
    color: #ffffff !important;
}

/* Dropdown panel */
.lang-dropdown {
    background: rgba(0,0,0,0.75);
    border: none;
    padding: 0.4rem 0;
    min-width: 140px;
}

/* Make sure all links inside dropdown are light text
   (covers WPML's .wpml-ls-link and Bootstrap .dropdown-item) */
.lang-dropdown a,
.lang-dropdown .dropdown-item,
.lang-dropdown .wpml-ls-link {
    font-family: "Karla", sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 18px;
    color: var(--lightgrey) !important;
    background: transparent !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Flags */
.lang-dropdown img {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

/* Hover state */
.lang-dropdown a:hover,
.lang-dropdown .dropdown-item:hover,
.lang-dropdown .wpml-ls-link:hover {
    background: rgba(255,255,255,0.08) !important;
    color: #ffffff !important;
}

/* ------------------------------------------
   MOBILE BEHAVIOUR
   (Now part of the burger panel)
------------------------------------------- */
@media (max-width: 991px) {
    .language-switcher {
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
    }

    /* Match your mobile panel look if you have a tinted bg */
    #heroMenu {
        /* if you want the whole panel tinted (optional) */
        /* background: rgba(0,0,0,0.6); */
    }

    .lang-toggle {
        padding-left: 0;
    }
}


/* ============================================
   WPML LANGUAGE DROPDOWN — FORCE LIGHT TEXT
   ============================================ */

.lang-dropdown,
.lang-dropdown * {
    color: var(--lightgrey) !important;
}

/* Force links */
.lang-dropdown a,
.lang-dropdown a *,
.lang-dropdown .wpml-ls-link,
.lang-dropdown .wpml-ls-link *,
.lang-dropdown .dropdown-item,
.lang-dropdown .dropdown-item * {
    color: var(--lightgrey) !important;
    background: transparent !important;
}

/* Hover state */
.lang-dropdown a:hover,
.lang-dropdown .wpml-ls-link:hover,
.lang-dropdown .dropdown-item:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1) !important;
}

/* Flag icons shouldn't be tinted */
.lang-dropdown img {
    filter: none !important;
}

/* Ensure WPML dropdown always appears ABOVE hero layers */
.language-switcher .dropdown-menu {
    z-index: 99999 !important;
}

/* Prevent clipping */
.navbar,
#heroMenu,
.language-switcher {
    overflow: visible !important;
    position: relative;
    z-index: 9999;  /* high enough but below dropdown */
}

.hero-overlay { z-index: 9999 !important; }
.headerwrapper {z-index:2}

