/*
Theme Name: Endangered Wildlife Trust 2026 Ocean Theme
Theme URI: https://ewt.org/
Template: oceanwp
Author: EWT
Author URI: https://ewt.org/
Description: Theme for Endangered Wildlife Trust based on OceanWP
Tags: two-columns,right-sidebar,footer-widgets,blog,news,custom-background,custom-menu,post-formats,rtl-language-support,sticky-post,editor-style,threaded-comments,translation-ready,buddypress,custom-colors,featured-images,full-width-template,theme-options,e-commerce,block-styles,wide-blocks,accessibility-ready
Version: 1.0.0.1790139567
Updated: 2026-09-23 04:59:27

*/

/* ==========================================================================
   EWT DESIGN SYSTEM - CORE VARIABLES & UTILITIES
   ========================================================================== */

:root {
  /* ------------------------------------------------------------------------
     1. BRAND COLORS
     ------------------------------------------------------------------------ */
  /* Primary Palette */
  --ewt-color-primary-dark: #002730;    /* Darkest Navy/Teal - Navigation, Holding Shapes */
  --ewt-color-primary-teal: #153541;    /* Slate Teal - Card Backgrounds, Secondary Panels */
  --ewt-color-accent-red: #ED1C24;      /* Deep Red - Donate, Fundraising, Primary CTAs */
  --ewt-color-neutral-light: #DCE2DD;   /* Light Grey/Sage - Alternate Backgrounds, Cards */

  /* Functional & UI Colors */
  --ewt-color-black: #000000;           /* Pure Black - Footer Background */
  --ewt-color-white: #FFFFFF;           /* White - Text, Default Buttons, Lines */
  --ewt-color-indicator-red: #ED1024;   /* Bright Red - Nav Indicators, Active Lines */
  --ewt-color-card-hover: #185062;      /* Hover State - Interactive Cards */
  --ewt-color-btn-hover: #E5E5E5;       /* Hover State - Default Buttons */

  /* ------------------------------------------------------------------------
     2. TYPOGRAPHY (FONTS & SIZES)
     ------------------------------------------------------------------------ */
  /* Font Families */
  --ewt-font-primary: 'Roboto', sans-serif;         /* Main Body & Subheadings */
  --ewt-font-heading: 'Oswald', sans-serif;         /* Hero, Section Headings, Eyebrows */

  /* Typography Scale */
  --ewt-text-hero: 104px;          /* Hero Main Heading */
  --ewt-text-h1: 72px;            /* Main Section Headings */
  --ewt-text-h2: 50px;            /* Secondary Headings */
  --ewt-text-intro-lg: 22px;      /* Hero Intro Copy */
  --ewt-text-intro-md: 20px;      /* Section Intro Copy */
  --ewt-text-body-lg: 18px;       /* Primary Body / Hero Body / Eyebrow Text */
  --ewt-text-body-md: 16px;       /* Standard Body Copy */
  --ewt-text-body-sm: 15px;       /* Small Body / Compact Card Copy */

  /* Line Heights & Letter Spacing */
  --ewt-lh-hero: 1.05;
  --ewt-lh-heading: 1.15;
  --ewt-lh-body: 1.5;
  --ewt-ls-eyebrow: 6px;

  /* ------------------------------------------------------------------------
     3. LAYOUT & SPACING
     ------------------------------------------------------------------------ */
  --ewt-container-max-width: 1320px; /* Overall Text & Visual Area */
  --ewt-grid-columns: 12;            /* 12-Column Grid */
  --ewt-grid-column-width: 88px;     /* Desktop Column Width */
  --ewt-grid-gutter: 24px;           /* Desktop Gutter Width */

  /* Border Radii & Card Padding */
  --ewt-radius-sm: 8px;
  --ewt-radius-md: 12px;           /* Holding Shapes, Nav Shapes */
  --ewt-card-padding: 36px;         /* Standard Interactive Card Padding */
}


/* ==========================================================================
   TYPOGRAPHY UTILITY CLASSES
   ========================================================================== */

.ewt-heading-hero h1 {
  font-family: var(--ewt-font-heading);
  font-size: var(--ewt-text-hero);
  font-weight: 400;
  line-height: var(--ewt-lh-hero);
  text-transform: uppercase;
  color: var(--ewt-color-white);
}

.ewt-heading-section h1 {
  font-family: var(--ewt-font-heading);
  font-size: var(--ewt-text-h1);
  font-weight: 400;
  line-height: var(--ewt-lh-heading);
  text-transform: uppercase;
}

.ewt-heading-secondary h2 {
  font-family: var(--ewt-font-heading);
  font-size: var(--ewt-text-h2);
  font-weight: 400;
  line-height: var(--ewt-lh-heading);
}

.ewt-eyebrow {
  font-family: var(--ewt-font-heading);
  font-size: var(--ewt-text-body-lg);
  letter-spacing: var(--ewt-ls-eyebrow);
  text-transform: uppercase;
  display: inline-block;
  position: relative;
}

/* Decorative Line above Eyebrow Headings */
.ewt-eyebrow-with-line {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ewt-eyebrow-line {
  width: 122px;
  height: 6px;
  background-color: var(--ewt-color-white);
  display: block;
}

/* Body Typography */
.ewt-intro-lg {
  font-family: var(--ewt-font-heading);
  font-size: var(--ewt-text-intro-lg);
  line-height: 1.4;
  color: var(--ewt-color-white);
}

.ewt-intro-md {
  font-family: var(--ewt-font-primary);
  font-size: var(--ewt-text-intro-md);
  line-height: 1.4;
  color: var(--ewt-color-white);
}

.ewt-body-lg {
  font-family: var(--ewt-font-primary);
  font-size: var(--ewt-text-body-lg);
  line-height: var(--ewt-lh-body);
}

.ewt-body-md {
  font-family: var(--ewt-font-primary);
  font-size: var(--ewt-text-body-md);
  line-height: var(--ewt-lh-body);
}

.ewt-body-sm {
  font-family: var(--ewt-font-primary);
  font-size: var(--ewt-text-body-sm);
  line-height: var(--ewt-lh-body);
}

/* ==========================================================================
   BUTTON SYSTEM
   ========================================================================== */

/* Base Button */
.ewt-btn a {
  font-family: var(--ewt-font-primary);
  font-weight: 400;
  font-size: 16px;
  padding: 8px 18px;
  border-radius: var(--ewt-radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Primary Default State (White Button) */
.ewt-btn-default a {
  background-color: var(--ewt-color-white);
  color: var(--ewt-color-primary-dark);
}

.ewt-btn-default a:hover {
  background-color: var(--ewt-color-btn-hover);
}

.ewt-btn-default a:active {
  background-color: var(--ewt-color-accent-red);
  color: var(--ewt-color-white);
}

/* Primary CTA / Transactional State (EWT Red - Donate / Shop) */
.ewt-btn-primary-cta a {
  background-color: var(--ewt-color-accent-red);
  color: var(--ewt-color-white) !important;
}

.ewt-btn-primary-cta a:hover {
  background-color: #8c0729;
}

.ewt-btn-primary-cta a:active {
  background-color: var(--ewt-color-black);
}

/* Secondary / Dark Background State (Outline) */
.ewt-btn-secondary a {
  background-color: transparent;
  border-color: var(--ewt-color-white);
  color: var(--ewt-color-white);
}

.ewt-btn-secondary a:hover {
  background-color: var(--ewt-color-white);
  color: var(--ewt-color-primary-dark);
}

.ewt-btn-secondary a:active {
  background-color: var(--ewt-color-black);
  border-color: var(--ewt-color-black);
  color: var(--ewt-color-white);
}

/* Inactive / Disabled State */
.ewt-btn-disabled a,
.ewt-btn a:disabled {
  background-color: #E0E0E0;
  color: #888888;
  cursor: not-allowed;
  border-color: transparent;
}

/* Docked Left "Ways to Give" Side Button */
.ewt-btn-ways-to-give a {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  border-radius: 0 var(--ewt-radius-md) var(--ewt-radius-md) 0;
}

/* ==========================================================================
   CARDS & CONTAINERS
   ========================================================================== */

/* Interactive Content Card */
.ewt-card {
  background-color: var(--ewt-color-primary-teal);
  color: var(--ewt-color-white);
  padding: var(--ewt-card-padding);
  border-radius: var(--ewt-radius-md);
  transition: background-color 0.25s ease;
  cursor: pointer;
}

.ewt-card:hover {
  background-color: var(--ewt-color-card-hover);
}

/* Navigation Holding Box */
#site-header {
  background-color: transparent !important;
  border: none !important;
  left: 50%;
  margin-top: 20px;
  max-width: 1520px;
  position: absolute;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  z-index: 999;
}

.header-bg {
  background-color: rgba(12, 39, 48, 0.6) !important;
  mix-blend-mode: multiply;
  isolation: isolate;
}

/* Global Footer Base */
.ewt-footer-base {
  background-color: var(--ewt-color-black);
  color: var(--ewt-color-white);
}



/* ==========================================================================
   SHOPPING CART ICON IN HEADER
   ========================================================================== */

/* Cart Icon Wrapper */
.ewt-cart-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  top: 4px;
  padding-bottom: 8px; /* Adds physical hover area below the button */
}

.ewt-cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ewt-color-primary-dark);
}

.ewt-cart-link:hover .ewt-cart-icon {
  transform: scale(1.05);
}

/* Hide badge automatically when cart is empty */
.ewt-cart-badge:empty,
.ewt-cart-badge[data-count="0"] {
  display: none;
}

/* NEW */
/* Cart Wrapper & Positioning Anchor */
/* Ensure wrapper is the relative boundary */
.ewt-cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Ensure custom SVG keeps native size */
.ewt-cart-icon {
  width: 25.522px;
  height: 26.573px;
  display: block;
  fill: currentColor;
  transition: transform 0.2s ease;
}

/* Red Indicator Badge */
.ewt-cart-badge {
  position: absolute;
  top: -4px;
  right: -9px;
  background-color: var(--ewt-color-indicator-red, #ED1024);
  color: #ffffff;
  font-family: var(--ewt-font-primary, 'Roboto',);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Hide badge if empty */
.ewt-cart-badge:empty,
.ewt-cart-badge[style*="display: none"] {
  display: none !important;
}

/* Semi-Transparent Mini-Cart Dropdown Background */
.ewt-cart-wrapper .current-shop-items-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  
  /* 85% opacity dark background (matches primary brand dark #002730) */
  background-color: rgba(0, 39, 48, 0.85) !important; 
  
  /* Glassmorphism blur effect for the underlying hero image */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
  border: 1px solid rgba(255, 255, 255, 0.15); /* Subtle light border definition */
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  border-radius: var(--ewt-radius-md, 12px);
  padding: 18px;
  z-index: 9999;
  
  /* Transition states */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

/* Ensure text inside the dark semi-transparent dropdown remains readable */
.ewt-cart-wrapper .widget_shopping_cart .mini_cart_item a,
.ewt-cart-wrapper .widget_shopping_cart .total,
.ewt-cart-wrapper .widget_shopping_cart .total strong {
  color: #ffffff !important;
}

.ewt-cart-wrapper .widget_shopping_cart .quantity {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Adjust borders inside mini-cart to match dark glass theme */
.ewt-cart-wrapper .widget_shopping_cart_content .buttons,
.ewt-cart-wrapper .widget_shopping_cart .total {
  border-top-color: rgba(255, 255, 255, 0.15) !important;
}


/* Prevent button text wrapping in mini-cart dropdown */
.ewt-cart-wrapper .widget_shopping_cart_content .buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px; /* Slightly reduced gap to preserve space */
}

.ewt-cart-wrapper .widget_shopping_cart_content .buttons a {
  flex: 1 1 auto; /* Allow buttons to expand based on text size */
  white-space: nowrap; /* Forces text to stay on a single line */
  padding: 10px 12px; /* Compact horizontal padding */
  font-size: 13px; /* Slightly tighter font size if needed */
  text-align: center;
}

/* Display states */
.ewt-cart-wrapper:hover .current-shop-items-dropdown,
.ewt-cart-wrapper.active .current-shop-items-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.ewt-cart-wrapper .current-shop-items-dropdown::before {
  content: "";
  position: absolute;
  top: -20px; /* Extends hover region upward to meet the cart button */
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

.remove.remove_from_cart_button:hover {
  border-color: #ed1c24 !important;
}

/* ==========================================================================
   EWT Mini-Cart Button Overrides
   ========================================================================== */

/* Container layout for buttons */
.ewt-cart-wrapper .widget_shopping_cart_content .buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Base button reset inside mini-cart */
.ewt-cart-wrapper .widget_shopping_cart_content .buttons a {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  font-family: var(--ewt-font-primary, sans-serif);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--ewt-radius-md, 12px);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  display: inline-block;
  line-height: 1.2;
}

/* View Cart Button - Thin White Border & Enhanced Separation */
.ewt-cart-wrapper .widget_shopping_cart_content .buttons a.wc-forward:not(.checkout) {
  background-color: rgba(0, 0, 0, 0.25) !important; /* Slightly darker fill for better contrast */
  color: #ffffff !important;
  border: 1px solid #ffffff !important; /* Crisp thin white outline */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle drop shadow for depth */
}

.ewt-cart-wrapper .widget_shopping_cart_content .buttons a.wc-forward:not(.checkout):hover {
  background-color: #ffffff !important;
  color: var(--ewt-color-primary-dark, #002730) !important;
  border-color: #ffffff !important;
}

/* 2. Checkout Button (Primary CTA Accent Red Style) */
.ewt-cart-wrapper .widget_shopping_cart_content .buttons a.checkout {
  background-color: var(--ewt-color-indicator-red, #ED1024);
  color: #ffffff;
  border: 1.5px solid var(--ewt-color-indicator-red, #ED1024);
}

.ewt-cart-wrapper .widget_shopping_cart_content .buttons a.checkout:hover {
  background-color: #c40a1c; /* Slightly darker shade on hover */
  border-color: #c40a1c;
}

/* Mini-Cart Item Titles & Prices */
.ewt-cart-wrapper .widget_shopping_cart .mini_cart_item a {
  color: var(--ewt-color-primary-dark, #002730);
  font-weight: 600;
}

.ewt-cart-wrapper .widget_shopping_cart .quantity {
  color: #666666;
  font-size: 13px;
}

/* Force Total Subtotal label left and Amount flush right */
.ewt-cart-wrapper .widget_shopping_cart .total {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background-color: transparent;
}

/* Reset float and inline behaviors on the price tags */
.ewt-cart-wrapper .widget_shopping_cart .total strong {
  float: none !important;
  margin-right: auto; /* Keeps "Subtotal:" locked to the far left */
}

.ewt-cart-wrapper .widget_shopping_cart .total .amount,
.ewt-cart-wrapper .widget_shopping_cart .total .woocommerce-Price-amount {
  float: none !important;
  margin-left: auto !important; /* Pushes the price flush to the far right */
  text-align: right !important;
}


/* ==========================================================================
   Max Mega Menu - Typography & 5px Underline State
   ========================================================================== */

/* Default State: Roboto Regular 18px, No Underline */
#mega-menu-wrap-main_menu #mega-menu-main_menu > li.mega-menu-item > a.mega-menu-link,
.mega-sub-menu .mega-menu-item a 
{
  position: relative !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 18px !important;
  font-weight: 300 !important; /* Roboto Regular */
  text-decoration: none !important;
  height: unset;
  line-height: 2;
  padding: 0 0 5px 0;
  margin: 0 12px;
	border-bottom: 5px solid transparent;
	letter-spacing: 0.05px;
}


.mega-sub-menu .mega-menu-item a {
  display: inline-block !important;
  padding: 0 !important;
  background-color: #fff !important;
  line-height: 3;
}

/* Hover & Active States: Roboto Bold + 5px Red Underline Appears */
#mega-menu-wrap-main_menu #mega-menu-main_menu > li.mega-menu-item:hover > a.mega-menu-link,
#mega-menu-wrap-main_menu #mega-menu-main_menu > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link,
#mega-menu-wrap-main_menu #mega-menu-main_menu > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link,
#mega-menu-wrap-main_menu #mega-menu-main_menu > li.mega-menu-item.mega-current-menu-parent > a.mega-menu-link,
.mega-sub-menu .mega-current_page_item a,
.mega-sub-menu .mega-menu-item a:hover
{
  font-weight: 600 !important; /* Roboto Bold */
	border-bottom: 5px solid #ed1c24 !important;
	letter-spacing: unset !important;
}

.mega-sub-menu .mega-menu-item a:hover {
  background-color: unset !important;
}

.mega-sub-menu {
  padding: 20px !important;
  border-radius: 0 0 18px 18px !important;
  background: linear-gradient( to bottom, transparent 0px, transparent 16px, #fff 16px, #fff 100% ) !important;
}


/* ==========================================================================
   RESET THEME LAYOUT
   ========================================================================== */

#main #content-wrap {
  padding: 0;
}

.container {
  width: 100% !important;
  max-width: 1920px;
}

