/**
 * EveryWoman Resource Hub - Frontend Styles
 * Responsive design with modern UI components
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --primary-color: #c41e3a;
  --primary-dark: #a01830;
  --primary-light: #e84d60;
  --accent-color: #333333;
  --accent-light: #666666;
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #2387cf;
  --bg-color: #f5f5f5;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --border-color: #e5e7eb;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 0px;
  --sidebar-width: 272px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: var(--font-body);
  background-color: #f5f5f5;
  color: var(--text-color);
  line-height: 1.6;
}

/* Typography - Oswald for headings and labels */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
}

label {
  font-family: var(--font-heading);
  font-weight: 500;
}

/* Roboto for body text */
p, span, div, button {
  font-family: var(--font-body);
}

/* Main container */
#eworg-app {
  height: auto;
  padding: 0;
  background: #ffffff;
}

/* Global Loader - Displayed while page loads */
#eworg-global-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.99);
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
  visibility: visible;
  pointer-events: auto;
}

/* Hide loader when app is initialized */
#eworg-app.eworg-initialized #eworg-global-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Loader content container */
.eworg-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Spinner animation */
.eworg-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: eworg-spin 1s linear infinite;
}

/* Loader text */
.eworg-loader-text {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color);
}

@keyframes eworg-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Hide p tag before #eworg-app */
.eworg-hidden-p-tag {
  display: none !important;
}

/* Pages - Hidden until app is initialized */
[data-page] {
  display: none !important;
  opacity: 0;
  animation: none;
}

/* Show current page only after app is initialized */
#eworg-app.eworg-initialized [data-page] {
  opacity: 1;
  animation: fadeIn 0.3s ease;
}

#eworg-app.eworg-initialized [data-page][style*="display: block"] {
  display: block !important;
}

/* Login Page */
.eworg-page-login {
  display: flex;
  height: auto;
  background: white;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.eworg-login-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1400px;
  width: 100%;
  align-items: center;
  margin: 0 auto;
  padding-top: 100px;
  padding-bottom: 100px;
}

.eworg-login-content {
  padding-right: 40px;
}

.eworg-login-breadcrumb {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}

.eworg-login-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-color);
  margin-bottom: 20px;
  max-width: 500px;
}

.eworg-login-description {
  font-family: var(--font-body);
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  max-width: 500px;
  margin: 0;
}

/* Register Page */
.eworg-page-register {
  display: flex;
  background: white;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.eworg-register-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1400px;
  width: 100%;
  align-items: center;
  margin: 0 auto;
  padding-top: 100px;
  padding-bottom: 100px;
}

.eworg-register-content {
  padding-right: 40px;
}

.eworg-register-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-color);
  margin-bottom: 20px;
  max-width: 560px;
}

.eworg-register-description {
  font-family: var(--font-body);
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  max-width: 560px;
  margin: 0;
}

.eworg-register-form-wrapper {
  background: #e8e8e8;
  padding: 50px 40px;
  border-radius: 0;
  width: 749px;
  max-width: 100%;
}

.eworg-register-form {
  width: 100%;
}

.eworg-register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 24px;
}

.eworg-register-submit {
  width: 100%;
  padding: 14px 16px;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.eworg-register-signin {
  text-align: center;
  font-size: 14px;
  color: var(--text-color);
  margin: 0;
}

/* Signup Pending Page */
.eworg-page-signup-pending {
  display: flex;
  background: white;
  align-items: center;
  justify-content: center;
  padding-top: 110px !important;
  padding-bottom: 110px !important;
}

.eworg-signup-pending-container {
  max-width: 900px;
  width: 100%;
  text-align: center;
  margin: 0px auto;
}

.eworg-signup-pending-icon {
  font-size: 36px;
  /* margin-bottom: 20px; */
}

.eworg-signup-pending-icon>img{
  max-width: 4%;
    width: 4%;
}

.eworg-signup-pending-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 16px;
}

.eworg-signup-pending-description {
  font-family: var(--font-body);
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 28px;
}

.eworg-signup-pending-btn {
  padding: 10px 28px;
  text-transform: none;
  letter-spacing: 0;
  color: #ffffff !important;
}

.eworg-login-form-wrapper {
  background: #e8e8e8;
  padding: 50px 40px;
  border-radius: 0;
  width: 100%;
  max-width: 600px;
}

.eworg-login-form {
  width: 100%;
}

.eworg-form-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.eworg-form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.eworg-form-group label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
  text-transform: capitalize;
  letter-spacing: 0px;
}

.eworg-form-group input {
  font-family: var(--font-body);
  padding: 12px 16px;
  border: none;
  border-radius: 0 !important;
  background: white;
  font-size: 14px;
  color: var(--text-color);
  width: 100%;
}

.eworg-form-group input::placeholder {
  color: #999;
}

.eworg-form-group input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.eworg-login-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 12px;
}

.eworg-forgot-password {
  color: var(--info-color);
  text-decoration: none;
  font-size: 14px;
  text-align: right;
  align-self: flex-end;
}

.eworg-forgot-password:hover {
    cursor: pointer;
  opacity: 0.88;
    color: #2387cf;
}

.eworg-btn-primary {
  font-family: var(--font-body);
  background: #000000;
  color: white;
  padding: 14px 32px;
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  transition: background 0.3s ease;
  width: 100%;
}

.eworg-btn-primary:hover {
  background: #000000;
  opacity: 0.6;
  color: #ffffff !important;
  text-decoration: none !important;
}

.eworg-btn-secondary {
  font-family: var(--font-body);
  background: #f3f4f6;
  color: #111827;
  /* padding: 10px 24px; */
  border: 1px solid #d1d5db;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  transition: background 0.3s ease;
}

.eworg-btn-secondary:hover {
  background: #e5e7eb;
  color: #111827;
  text-decoration: none;
}

.eworg-login-divider {
  font-family: var(--font-body);
  text-align: center;
  color: #999;
  font-size: 14px;
  position: relative;
}

.eworg-login-divider::before,
.eworg-login-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: #ddd;
  display: none;
}

.eworg-login-divider::before {
  left: 0;
}

.eworg-login-divider::after {
  right: 0;
}

.eworg-login-divider span {
  background: #e8e8e8;
  color: #000000;
  padding: 0 15px;
  display: inline-block;
  position: relative;
  z-index: 1;
  font-weight: 600;
  margin-bottom: 6px;
}

.eworg-login-signup {
  text-align: center;
  font-size: 14px;
  color: var(--text-color);
  margin: 0;
}

.eworg-signup-link {
  color: var(--info-color);
  text-decoration: none;
  font-weight: 600;
}

.eworg-signup-link:hover {
    cursor: pointer;
  opacity: 0.88;
    color: #2387cf;
}


  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Alert Container */
#eworg-alerts {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  width: fit-content;
        margin: 0 auto;
}

.eworg-alert {
  padding: 15px 20px;
  border-radius: 0px;
  animation: slideIn 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: fit-content;
        margin: 0 auto;
            margin-bottom: 12px;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.eworg-alert-success {
  background-color: #d1fae5;
  border-left: 4px solid var(--success-color);
  color: #065f46;
}

.eworg-alert-error {
  background-color: #fee2e2;
  border-left: 4px solid var(--error-color);
  color: #991b1b;
}

.eworg-alert-info {
  background-color: #dbeafe;
  border-left: 4px solid var(--info-color);
  color: #1e3a8a;
}

.eworg-alert-warning {
  background-color: #fef3c7;
  border-left: 4px solid var(--warning-color);
  color: #92400e;
}

.eworg-alert-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: inherit;
  padding: 0;
  margin-left: 10px;
}

/* Loading Spinner */
#eworg-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.loader {
  display: flex;
  gap: 8px;
}

.loader span {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.loader span:nth-child(1) {
  animation-delay: -0.32s;
}

.loader span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

.container-small {
  max-width: 500px;
  margin: 0 auto;
}

/* Typography */
h1 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--text-color);
}

h2 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 15px;
  color: var(--text-color);
}

h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text-color);
}

p {
  color: var(--text-light);
  margin-bottom: 10px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  cursor: pointer;
  opacity: 0.88;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
  font-family: var(--font-body);
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

input[type="text"].error,
input[type="email"].error,
input[type="password"].error,
input[type="tel"].error,
textarea.error {
  border-color: var(--error-color);
  background-color: #fef2f2;
}

.error-message {
  color: var(--error-color);
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.checkbox-group,
.radio-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* EWOrg Form Styles */
.eworg-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eworg-form-group label {
  font-weight: 500;
  color: var(--text-color);
}

.eworg-form-group input,
.eworg-form-group select,
.eworg-form-group textarea {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.eworg-form-group input:focus,
.eworg-form-group select:focus,
.eworg-form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.eworg-subtitle {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 20px;
}

.eworg-text-center {
  text-align: center;
  margin-top: 15px;
}

.eworg-text-center a {
  color: var(--primary-color);
  font-weight: 500;
}

.eworg-link {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.eworg-link:hover {
  color: var(--primary-dark);
    cursor: pointer;
  opacity: 0.88;
}

.eworg-page {
  padding: 0;
  background: #ffffff;
}

/* Buttons */
button,
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary,
.eworg-btn-primary {
  margin-top: 0;
  flex-grow: 0;
  background: #000000;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 0;
    font-weight: 600;
    border: none;
    margin-top: auto;
    align-self: flex-start;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-primary:hover,
.eworg-btn-primary:hover {
  transform: none;
  box-shadow: none;
   color: #ffffff !important;
  text-decoration: none !important;
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-color);
  border-color: var(--text-color);
}

.btn-danger {
  background-color: var(--error-color);
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-success {
  background-color: var(--success-color);
  color: white;
}

.btn-success:hover {
  background-color: #059669;
}

button:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Cards */
.card {
  background: white;
  border-radius: 4px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.eworg-card {
  border-radius: 4px;
  background: white;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.eworg-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.card-header {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.card-body {
  padding: 0;
}

.card-footer {
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  margin-top: 15px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Grid */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 950;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 8px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: none !important;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  padding: 0;
}

.modal-close:hover {
  color: #000000 !important;
  background: none !important;
}

.modal-body {
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-footer .eworg-btn-primary,
.modal-footer .eworg-btn-secondary {
  width: auto;
}

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background: #f5f5f5;
}

.auth-card {
  background: white;
  border-radius: 4px;
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  width: 100%;
  max-width: 450px;
}

.auth-card h1 {
  text-align: center;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-size: 32px;
  font-weight: 700;
}

.auth-card p {
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-light);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.auth-footer a {
  color: var(--primary-color);
  font-weight: 500;
}

/* Dashboard */
.eworg-header {
  background: white;
  padding: 20px 30px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.eworg-header h1 {
  color: var(--primary-color);
  font-size: 32px;
  margin-bottom: 0;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 30px;
}

.welcome-message {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 50px 30px;
  border-radius: 0;
  margin-bottom: 0;
  text-align: center;
}

.welcome-message h1 {
  color: white;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.welcome-message h2 {
  color: white;
  margin-bottom: 10px;
  font-size: 36px;
}

.welcome-message p {
  color: white;
  font-size: 16px;
}

.dashboard-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.info-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.info-card h3 {
  color: var(--text-light);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.status {
  font-size: 18px;
  font-weight: 600;
}

.status.active {
  color: var(--success-color);
}

.status.pending {
  color: var(--warning-color);
}

/* Resources */
.resources-grid,
.eworg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 30px;
}

.resource-card,
.eworg-card {
  background: white;
  padding: 24px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.resource-card:hover,
.eworg-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.resource-card h3,
.eworg-card h3 {
  color: var(--primary-color);
  margin-bottom: 12px;
  font-size: 18px;
}

.eworg-card {
  cursor: default;
}

.eworg-card:hover {
  transform: none;
}

.no-resources {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

/* Profile */
.profile-container {
  max-width: 600px;
  margin: 0 auto;
}

.profile-section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.profile-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
}

/* Pending Page */
.pending-container {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px;
}

.pending-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.pending-message {
  background: #fef3c7;
  border-left: 4px solid var(--warning-color);
  padding: 20px;
  border-radius: 6px;
  margin: 20px 0;
  color: #92400e;
}

.checklist {
  text-align: left;
  margin: 20px 0;
  padding: 20px;
  background: var(--bg-color);
  border-radius: 6px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px;
  background: white;
  border-radius: 4px;
}

.checklist-item::before {
  content: '✓';
  font-weight: bold;
  color: var(--success-color);
  font-size: 18px;
  min-width: 20px;
}

/* Navigation */
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--primary-color);
  cursor: pointer;
  font-weight: 500;
}

.nav-back:hover {
  /* text-decoration: underline; */
    cursor: pointer;
  opacity: 0.88;
}

/* Hero Banner */
.eworg-hero-banner {
  background: #000000;
  padding: 0;
  text-align: center;
  margin-bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.eworg-hero-content {
  flex: 1;
  padding: 60px 0px;
  text-align: left;
  z-index: 2;
  padding-left: 180px;
}

.eworg-hero-content h1 {
  font-family: var(--font-heading);
  color: #ffffff !important;
  font-size: 60px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  line-height: 70px !important;
  margin: 0;
}

.eworg-hero-image {
  flex: 1;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.eworg-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.eworg-hero-banner> .eworg-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: right;
}

/* Resource Hero Banner */
.eworg-resource-hero {
  background: #000000;
  padding: 0;
  margin-bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.eworg-resource-hero-content {
  flex: 1;
  padding: 60px 0;
  text-align: left;
  z-index: 2;
  padding-left: 180px;
}

.eworg-resource-hero-content h1 {
  font-family: var(--font-heading) !important;
  color: #ffffff !important;
  font-size: 60px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  line-height: 70px !important;
  margin: 0;
}

.eworg-resource-hero-image {
  flex: 1;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.eworg-resource-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: left;
}

/* Feature Grid */
.eworg-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  padding: 100px 30px;
  background: #ffffff;
  max-width: 1400px;
  margin: 0 auto;
}

.eworg-dashboard-template {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px 100px;
  background: #ffffff;
}

.eworg-feature-card {
  background: #E9E9E9;
  padding: 50px;
  border-radius: 0;
  text-align: center;
  transition: var(--transition);
  width: 100%;
  max-width: 680px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
}

.eworg-feature-card:hover {
  transition: var(--transition);
  background: #000000;
  color: #ffffff;
}

.eworg-feature-card:hover h2,
.eworg-feature-card:hover p {
  color: #ffffff;
}

.eworg-feature-card:hover button{
  color: #000000;
  background: #ffffff;
}
.eworg-feature-card:hover button:hover{
  opacity: 1 !important;
color: #000000 !important;
background: #ffffff !important;
}

.eworg-feature-card h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--text-color);
  margin: 0;
  font-weight: 700;
}

.eworg-feature-card p {
  font-family: var(--font-body);
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  font-size: 15px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eworg-feature-icon {
  max-width: 80px;
  width: 80px;
  height: 80px;
  margin: 0;
  display: block;
}

.eworg-feature-card .eworg-btn-primary {
  width: 237px;
  height: 45px;
  padding: 15px 30px;
  gap: 10px;
  background: #000000;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  margin: 0 auto;
}

/* Dashboard Info Section */
.eworg-dashboard-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 40px 30px;
  background: white;
  max-width: 1400px;
  margin: 0 auto;
}

.eworg-info-card {
  background: #f9f9f9;
  padding: 24px;
  border-radius: 4px;
  border-left: 4px solid var(--primary-color);
}

.eworg-info-card h3 {
  color: var(--text-color);
  font-size: 18px;
  margin-bottom: 15px;
}

.eworg-info-card p {
  color: var(--text-light);
  margin-bottom: 10px;
}

.eworg-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 15px;
}

.eworg-stat-item {
  background: white;
  padding: 15px;
  border-radius: 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eworg-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.eworg-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
}

/* Resource Page Hero */
.eworg-resource-hero {
  text-align: left;
  width: 100%;
}

.eworg-resource-hero-content h1 {
  font-family: var(--font-heading) !important;
  color: #ffffff !important;
  font-size: 60px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  line-height: 70px !important;
}

/* Resource Container */
.eworg-resource-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 30px;
  padding-top: 50px;
  background: white;
}

.eworg-resource-container .eworg-filters button:active,
.eworg-resource-container .eworg-filters button:focus,
.eworg-resource-container .eworg-filters button:hover {
  background: transparent !important; 
}

/* Allow filter chips to have their themed background */
.eworg-resource-container .eworg-filters .eworg-filter-chip:hover,
.eworg-resource-container .eworg-filters .eworg-filter-chip:active,
.eworg-resource-container .eworg-filters .eworg-filter-chip:focus {
  background: var(--info-color) !important;
}

.eworg-resource-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-top: 24px;
}

/* Breadcrumb */
.eworg-breadcrumb {
  font-family: var(--font-heading) !important;
  margin-bottom: 30px;
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
}

.eworg-breadcrumb a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
}

.eworg-breadcrumb a:hover {
  color: var(--primary-color);
    cursor: pointer;
  opacity: 0.88;
}

.eworg-breadcrumb span {
  color: var(--primary-color);
  font-weight: 500;
}

/* Resource Heading */
.eworg-resource-heading {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-color);
}

/* ============================================================
   SIDEBAR FILTERS — Theme-Matched
   Text: #000  |  BG: #fff  |  Muted: --accent-light (#666)
   Interactive/accent: --info-color (#2387cf)
   Border-radius: 0 throughout
   ============================================================ */

/* ── Sidebar container ── */
.eworg-filters {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: sticky;
  top: 32px;
  align-self: flex-start;
}

/* ── Skeleton placeholders ── */
.eworg-filters-skeleton {
  background: #ffffff;
  /* border: 1px solid var(--border-color); */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 3px solid var(--border-color);
  border-radius: 0;
  padding: 16px;
  margin-bottom: 0;
}

.eworg-filters-skeleton-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.eworg-filters-skeleton-label {
  flex: 1 1 auto;
}

.eworg-filters-skeleton-button {
  width: 110px;
}

.eworg-filters-skeleton-chip {
  flex: 0 0 60px;
  height: 20px;
}

.eworg-filters-skeleton-line {
  flex: 1 1 auto;
}

/* ── Filters content wrapper ── */
.eworg-filters-content {
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ── Filters bar (header with title + sort) ── */
.eworg-filters-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--border-color);
  border-bottom: none;
  border-radius: 0;
  padding: 12px 14px;
}

/* ── Toggle button ("Filters" label) ── */
.eworg-filters-toggle {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: transparent;
  border: none;
  color: #000000;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.eworg-filters-toggle::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 10px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 68% 50%, 68% 100%, 32% 100%, 32% 50%);
  flex-shrink: 0;
}

.eworg-filters-toggle:hover,
.eworg-filters-toggle:active,
.eworg-filters-toggle:focus {
  color: var(--info-color);
}

/* ── Sort row ── */
.eworg-filters-actions {
  display: none;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.eworg-filters-sort-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--accent-light);
  margin: 0;
  white-space: nowrap;
}

.eworg-filters-sort {
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 28px 7px 10px;
  border: 1px solid var(--border-color);
  border-radius: 0;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  font-size: 12px;
  font-family: var(--font-body);
  color: #000000;
  cursor: pointer;
  transition: border-color 0.2s;
  max-width: 160px;
}

.eworg-filters-sort:focus {
  outline: none;
  border-color: var(--info-color);
  box-shadow: 0 0 0 3px rgba(35, 135, 207, 0.15);
}

#eworg-filters select {
  border-radius: 0;
}

/* ── Reset filters button ── */
.eworg-filters-reset {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  width: 100%;
  padding: 9px 14px;
  margin: 0;
  background: transparent;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--border-color);
  border-radius: 0;
  color: var(--accent-light);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  text-align: left;
}

.eworg-filters-reset:not([disabled]):hover {
  border-color: var(--border-color);
  border-left-color: var(--border-color);
  color: var(--info-color);
  background: rgba(35, 135, 207, 0.04);
}

.eworg-filters-reset[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── Filters panel (accordion container) ── */
.eworg-filters-panel {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--border-color);
  border-top: none;
  border-radius: 0;
  padding: 4px 0 8px;
}

/* ── Grid inside panel ── */
.eworg-filters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

/* ── Individual filter group ── */
.eworg-filter-group {
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.eworg-filter-group:last-child {
  border-bottom: none;
}

/* ── Group header button ── */
.eworg-filter-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 16px;
  margin: 0;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.15s;
}

.eworg-filter-group-header:hover {
  background: rgba(35, 135, 207, 0.04);
}

.eworg-filter-group--multi > .eworg-filter-group-header[aria-expanded="true"] {
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ── Group title ── */
.eworg-filter-group-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #000000;
  display: inline-block;
  transition: color 0.15s;
}

.eworg-filter-group-header:hover .eworg-filter-group-title {
  color: var(--info-color);
}

.eworg-filter-group--multi .eworg-filter-group-title {
  color: #000000;
  border-bottom: none;
  padding-bottom: 0;
}

.eworg-filter-group--single .eworg-filter-group-title {
  color: #000000;
  border-bottom: none;
  padding-bottom: 0;
}

/* ── Toggle icon (square ± button) ── */
.eworg-filter-group-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 0;
  border: 1.5px solid var(--border-color);
  font-size: 15px;
  line-height: 1;
  color: var(--accent-light);
  transition: border-color 0.15s, color 0.15s;
}

.eworg-filter-group-header:hover .eworg-filter-group-toggle-icon {
  border-color: var(--info-color);
  color: var(--info-color);
}

/* ── Collapsed state ── */
.eworg-filter-group.is-collapsed .eworg-filter-options,
.eworg-filter-group.is-collapsed .eworg-filter-single-body {
  display: none;
}

/* ── Checkbox options list ── */
.eworg-filter-options {
  max-height: 186px;
  overflow-y: auto;
  padding: 4px 16px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.eworg-filter-options::-webkit-scrollbar {
  width: 4px;
}

.eworg-filter-options::-webkit-scrollbar-track {
  background: transparent;
}

.eworg-filter-options::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 0;
}

/* ── Single checkbox option row ── */
.eworg-filter-option {
  display: flex;
  /* gap: 9px; */
  align-items: center;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: #000000;
  padding: 3px 0;
  cursor: pointer;
  transition: color 0.15s;
  /* line-height: 1.4; */
  font-weight: 400 !important;
  margin: 0px;
}

.eworg-filter-option:hover {
  color: var(--info-color);
}

/* ── Custom checkbox ── */
.eworg-filter-option input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  min-width: 15px;
  border: 1.5px solid #cbd5e1;
  border-radius: 0;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  margin-top: 2px;
  transition: border-color 0.15s, background 0.15s;
}

.eworg-filter-option input[type="checkbox"]:hover {
  border-color: var(--info-color);
}

.eworg-filter-option input[type="checkbox"]:checked {
  background: var(--info-color);
  border-color: var(--info-color);
}

.eworg-filter-option input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.eworg-filter-option input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--info-color);
  outline-offset: 2px;
}

/* ── Single-select dropdown body ── */
.eworg-filter-single-body {
  padding: 4px 16px 12px;
}

/* ── Custom styled select ── */
.eworg-filter-select {
  width: 100%;
  padding: 9px 32px 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: 0;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: #000000;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.eworg-filter-select:focus {
  outline: none;
  border-color: var(--info-color);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(35, 135, 207, 0.15);
}

.eworg-filter-select:hover {
  border-color: var(--info-color);
}

/* ── Active filter chips bar ── */
.eworg-active-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  min-height: 24px;
  padding: 10px 14px 6px;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--border-color);
}

/* ── Single chip ── */
.eworg-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(35, 135, 207, 0.06);
  border: 1px solid rgba(35, 135, 207, 0.3);
  color: #000000;
  padding: 4px 8px 4px 9px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-body);
  border-radius: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1.4;
}

.eworg-filter-chip:hover {
  background: var(--info-color);
  border-color: var(--info-color);
  color: #ffffff;
}

.eworg-filter-chip-label {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--accent-light);
}

.eworg-filter-chip-value {
  font-size: 12px;
  font-weight: 500;
  color: #000000;
}

.eworg-filter-chip-x {
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: var(--accent-light);
  margin-left: 1px;
}

.eworg-filter-chip:hover .eworg-filter-chip-label,
.eworg-filter-chip:hover .eworg-filter-chip-value,
.eworg-filter-chip:hover .eworg-filter-chip-x {
  color: #ffffff;
}

.eworg-filter-chip:hover .eworg-filter-chip {
  background: #ffffff;
}

.eworg-filter-empty {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--accent-light);
  font-style: italic;
  padding: 4px 0;
}

/* Resources Grid */
.eworg-resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.eworg-resource-main {
  flex: 1 1 auto;
  min-width: 0;
}

/* ── Resources Topbar (record count + sort) ── */
.eworg-resources-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-right: 4px solid var(--border-color);
  padding: 12px 16px;
  margin-bottom: 24px;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.eworg-topbar-left {
  flex: 1;
}

.eworg-records-count {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--accent-light);
  font-weight: 500;
}

.eworg-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.eworg-sort-label-main {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-light);
  white-space: nowrap;
  margin: 0;
}

.eworg-sort-select-main {
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 28px 7px 10px;
  border: 1px solid var(--border-color);
  border-radius: 0;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  font-size: 12px;
  font-family: var(--font-body);
  color: #000000;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 150px;
  text-transform: lowercase;
}

.eworg-sort-select-main:focus {
  outline: none;
  border-color: var(--info-color);
  box-shadow: 0 0 0 3px rgba(35, 135, 207, 0.15);
}

.eworg-sort-select-main:hover {
  border-color: var(--accent-light);
}

@media (max-width: 1024px) {
  .eworg-resource-layout {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .eworg-resource-layout {
    flex-direction: column;
  }
  .eworg-filters {
    width: 100%;
    position: static;
    margin-bottom: 20px;
  }
  .eworg-filters-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .eworg-filters-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .eworg-filters-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .eworg-filters-sort {
    max-width: 100%;
    width: 100%;
  }
  .eworg-filters-reset {
    width: 100%;
  }
  .eworg-filter-chip {
    font-size: 11px;
  }
  
  /* Responsive topbar */
  .eworg-resources-topbar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .eworg-topbar-left,
  .eworg-topbar-right {
    width: 100%;
  }
  
  .eworg-topbar-right {
    flex-direction: row;
    justify-content: flex-start;
  }
  
  .eworg-sort-select-main {
    flex: 1;
    min-width: 120px;
  }
}

.eworg-load-more {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.eworg-load-more .eworg-btn-primary {
  width: auto;
  padding: 12px 28px;
}

#resources-load-more-btn{
    padding: 0 !important;
    background: none !important;
    /* color: #2387cf !important; */
    color: #000000 !important;
    font-weight: 400 !important;
}

#resources-load-more-btn:hover{
      cursor: pointer;
  opacity: 0.88;
    color: #000000 !important;}
    #resources-load-more-btn:active,
    #resources-load-more-btn:focus{
      cursor: pointer;
  opacity: 0.88;
    color: #000000 !important;
  }
/* Resource Card */
.eworg-resource-item {
  background: #ffffff;
  border: none;
  border-radius: 0;
  padding: 0;
  text-align: center;
  transition: height 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
  height: auto;
  min-height: 375px;
}

.eworg-resource-item:hover {
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  transform: none;
}

.eworg-resource-logo {
  width: 100%;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.eworg-resource-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eworg-resource-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  margin: 10px;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 20px;
  flex-shrink: 0;
}

.eworg-resource-description {
  font-family: var(--font-body);
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin: 10px;
  text-align: left;
  flex-grow: 1;
}

.eworg-resource-description.collapsed {
  display: block;
}

.eworg-resource-separator {
  height: 1px;
  background-color: #d0d0d0;
  margin: 18px 0 0;
  flex-shrink: 0;
}

.eworg-read-more-link {
  color: #2387cf;
  text-decoration: none;
  font-weight: normal;
  cursor: pointer;
  margin-left: 0;
  display: inline;
}

.eworg-read-more-link:hover {
    cursor: pointer;
  opacity: 0.88;
  color: #2387cf;
}

.eworg-resource-details {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin: 0 20px 15px;
  text-align: left;
  display: none;
}

.eworg-resource-details.show {
  display: block;
}

.eworg-resource-details p {
  margin: 0 0 12px 0;
  color: #666666;
  font-style: italic;
}

.eworg-resource-details p:first-child {
  font-style: italic;
  color: #666666;
}

.eworg-resource-details strong {
  font-weight: 700;
  color: #000000;
  font-style: normal;
}

.eworg-resource-details a {
  color: #2387cf;
  text-decoration: none;
  font-style: normal;
}

.eworg-resource-details a:hover {
   cursor: pointer;
  opacity: 0.88;
}

/* Email Icon in Resource Details */
.eworg-email-icon {
  width: 18px;
  margin-right: 6px;
  vertical-align: middle;
  display: inline-block;
}

.eworg-resource-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  margin-left: 10px;
  margin-right: 10px;
}

.eworg-resource-grant {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 10px;
}

.eworg-resource-grant-label {
  font-family: var(--font-heading);
  font-size: 12px;
  color: #000000;
  font-weight: 600;
  text-align: left;
}

.eworg-resource-grant-amount {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
}

.eworg-resource-status {
  font-family: var(--font-heading);
  display: inline-block;
  padding: 4px 12px;
  background: #008000;
  color: white;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Training card refinements */
.eworg-resource-item--training {
  background: #ffffff;
  box-shadow: none;
}

.eworg-resource-item--training:hover {
  box-shadow: var(--shadow-lg);
}

/* Funding card refinements */
.eworg-resource-item--funding {
  background: #ffffff;
  box-shadow: none;
}

.eworg-resource-item--funding:hover {
    box-shadow: var(--shadow-lg);
}

.eworg-resource-item--funding .eworg-resource-logo {
  background: #f3f3f3;
}

.eworg-resource-item--funding .eworg-resource-title {
  margin: 12px 12px 6px;
}

.eworg-resource-item--funding .eworg-resource-description {
  margin: 0 12px 12px;
}

.eworg-resource-item--funding .eworg-resource-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2px;
  margin: 0 12px 12px;
}

.eworg-resource-item--funding .eworg-resource-grant {
  display: flex;
  gap: 4px;
  padding: 0;
  width: 100%;
}

.eworg-resource-item--funding .eworg-resource-grant-label {
  font-size: 12px;
  color: #000000;
  font-weight: 600;
  text-transform: none;
}

.eworg-resource-item--funding .eworg-resource-grant-amount {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
}

.eworg-resource-item--funding .eworg-resource-status {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 0px;
  text-transform: none;
}

.eworg-resource-item--funding .eworg-btn-primary {
  margin: auto 12px 12px 12px;
}

/* Expert card refinements — match funding card layout */
.eworg-resource-item--expert {
  background: #ffffff;
  box-shadow: none;
}

.eworg-resource-item--expert:hover {
  box-shadow: var(--shadow-lg);
}

.eworg-resource-item--expert .eworg-resource-logo {
  background: #f3f3f3;
}

.eworg-resource-item--expert .eworg-resource-title {
  margin: 12px 12px 2px;
}

.eworg-expert-front-title {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--accent-color, #B30B00);
  font-weight: 500;
  margin: 0 12px 6px;
  text-align: left;
  line-height: 1.4;
  font-style: italic;
}

.eworg-expert-subtitle {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-light);
  font-weight: 400;
  margin: 0 12px 6px;
  text-align: left;
  line-height: 1.4;
  font-style: italic;
}

.eworg-resource-item--expert .eworg-resource-description {
  margin: 0 12px 12px;
}

.eworg-expert-card-tags {
  margin: 0 12px 8px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}

.eworg-expert-card-tag-row {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eworg-expert-card-tag-label {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-color);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.eworg-popup-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-light);
  font-weight: 400;
  font-style: italic;
  margin: -6px 0 8px;
  line-height: 1.4;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 8px;
}

.eworg-popup-subtitle--region {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ececec;
  color: #555;
  font-style: normal;
  font-size: 13px;
}

.eworg-popup-subtitle-label {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #333;
  margin-right: 6px;
}

.eworg-popup-logo {
  background: #f3f3f3;
  max-width: 214px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
}

.eworg-resource-item--expert .eworg-resource-logo {
  height: 250px;
}

.eworg-resource-item--expert .eworg-resource-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2px;
  margin: 0 12px 12px;
}

.eworg-resource-item--expert .eworg-resource-grant {
  display: flex;
  gap: 4px;
  padding: 0;
  width: 100%;
}

.eworg-resource-item--expert .eworg-resource-grant-label {
  font-size: 12px;
  color: #000000;
  font-weight: 600;
  text-transform: none;
}

.eworg-resource-item--expert .eworg-resource-grant-amount {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
}

.eworg-resource-item--expert .eworg-resource-status {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 0px;
  text-transform: none;
}

.eworg-resource-item--expert .eworg-btn-primary {
  margin: auto 12px 12px 12px;
}

/* Expert popup tag chips */
.eworg-expert-popup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eworg-expert-tag {
  display: inline-block;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.3;
  color: #1f2937;
  background: #eaf3ff;
  border: 1px solid #d7e6ff;
  border-radius: 14px;
}

.eworg-popup-section .eworg-expert-popup-tags {
  margin-top: 8px;
}

.eworg-resource-item .eworg-btn-primary {
  background: #000000;
  color: white;
  width: auto;
  padding: 10px 24px;
  border-radius: 0;
  font-weight: 600;
  border: none;
  margin: auto 10px 10px 10px;
  margin-top: auto;
  align-self: flex-start;
  cursor: pointer;
  flex-shrink: 0;
}

.eworg-resource-item .eworg-btn-primary:hover {
  background: #000000;
  opacity: 0.6;
  text-decoration: none !important;
   color: #ffffff !important;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }

  #eworg-app {
    padding: 0;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  .eworg-hero-banner {
    padding: 0px;
  }

  .eworg-hero-content h1 {
    font-size: 36px;
  }

  .eworg-feature-grid {
    grid-template-columns: 1fr;
    padding: 30px 20px;
    gap: 20px;
  }

  .eworg-feature-card {
    padding: 40px 25px;
    height: auto;
    max-width: 100%;
    gap: 15px;
  }

  .eworg-feature-card h2 {
    font-size: 22px;
  }

  .eworg-feature-card p {
    font-size: 14px;
  }

  .eworg-feature-card .eworg-btn-primary {
    width: 100%;
    max-width: 237px;
  }

  .eworg-dashboard-info {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  .eworg-header {
    padding: 15px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .eworg-header h1 {
    font-size: 24px;
  }

  .eworg-grid,
  .resources-grid {
    padding: 20px;
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
    padding: 0 20px;
  }

  .dashboard-header > * {
    width: 100%;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  #eworg-alerts {
    left: 20px;
    right: 20px;
        width: fit-content;
        margin: 0 auto;
    max-width: none;
  }

  button,
  .btn {
    width: 100%;
    justify-content: center;
  }

  .modal-content {
    width: 95%;
  }

  .card {
    padding: 15px;
  }

  .eworg-card {
    padding: 15px;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .eworg-form-group {
    margin-bottom: 12px;
    gap: 0px !important;
  }

  .eworg-form-row{
    gap: 0px !important;
  }

  .eworg-login-footer
 {
    gap: 4px !important;
}

.eworg-register-grid{
  gap: 0px !important;
      margin-bottom: 4px !important;
}

.eworg-signup-pending-icon>img{
  max-width: 9% !important;
  width: 9% !important;
}

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  textarea {
    padding: 10px 12px;
  }

  .welcome-message {
    padding: 30px 20px;
  }

  .welcome-message h2 {
    font-size: 28px;
  }

  .auth-card {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 20px;
  }

  .eworg-hero-banner {
    padding: 0px;
  }

  .eworg-hero-content h1 {
    font-size: 28px;
  }

  .eworg-feature-grid {
    padding: 20px 15px;
  }

  .eworg-feature-card {
    padding: 20px 15px;
  }

  .eworg-feature-card h2 {
    font-size: 20px;
  }

  .eworg-feature-icon {
    font-size: 36px;
  }

  .welcome-message {
    padding: 20px;
  }

  .welcome-message h2 {
    font-size: 24px;
  }

  .resources-grid,
  .eworg-grid {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .dashboard-info {
    grid-template-columns: 1fr;
  }

  .eworg-header {
    padding: 10px 15px;
  }

  .eworg-header h1 {
    font-size: 20px;
  }

  .eworg-dashboard-info {
    padding: 20px 15px;
  }

  .eworg-stats {
    grid-template-columns: 1fr;
  }
}
/* Funding Resource Popup Modal */
.eworg-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eworg-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.eworg-modal-content {
  position: relative;
  background: white;
  border-radius: 0px;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 30px;
  z-index: 2001;
}

.eworg-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none !important;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.eworg-modal-close:hover {
  color: #000 !important;
  background: none !important;
}

/* Share Resource Popup (must sit above Elementor overlays) */
#eworg-share-resource-modal {
  z-index: 100000;
}
#eworg-share-resource-modal .eworg-modal-overlay {
  z-index: 100000;
}
#eworg-share-resource-modal .eworg-modal-content {
  z-index: 100001;
  max-width: 750px;
  padding: 0;
}
#eworg-share-resource-modal .eworg-modal-content .elementor {
  padding: 0;
}

.eworg-popup-header {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

.eworg-popup-badge {
  font-family: var(--font-heading);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 0px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.eworg-popup-badge-label {
  background-color: #636363;
  color: white;
}

.eworg-popup-badge-status {
  color: white;
}

.eworg-popup-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.eworg-popup-description {
  font-family: var(--font-body);
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.eworg-popup-amount {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
    margin-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 16px;
}

.eworg-popup-section {
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 20px;
}

.eworg-popup-section:last-of-type {
  border-bottom: none;
}

.eworg-popup-section h3,
.eworg-popup-contact h3 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.eworg-popup-section p {
  font-family: var(--font-body);
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.eworg-popup-section .eworg-expert-popup-tags {
  margin-top: 8px;
}

.eworg-markdown-content {
  font-family: var(--font-body);
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.eworg-markdown-content p {
  margin: 0 0 10px;
}

.eworg-markdown-content p:last-child {
  margin-bottom: 0;
}

.eworg-markdown-content ul,
.eworg-markdown-content ol {
  margin: 0 0 10px 20px;
  padding: 0;
}

.eworg-markdown-content li {
  margin-bottom: 4px;
}

.eworg-markdown-content h1,
.eworg-markdown-content h2,
.eworg-markdown-content h3 {
  margin: 0 0 8px;
  color: var(--text-color);
}

.eworg-markdown-content h1 {
  font-size: 18px;
}

.eworg-markdown-content h2 {
  font-size: 16px;
}

.eworg-markdown-content h3 {
  font-size: 15px;
}

.eworg-markdown-content code {
  background: #f3f4f6;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 13px;
}

.eworg-markdown-content a {
  color: var(--info-color, #2387cf);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.eworg-markdown-content a:hover,
.eworg-markdown-content a:focus {
  color: var(--info-color, #2387cf);
  opacity: 0.88;
  cursor: pointer;
}

.eworg-markdown-content .eworg-md-button {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--info-color, #2387cf);
  color: var(--info-color, #2387cf);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  background: #f7fcff;
  margin: 3px 0;
}

.eworg-markdown-content .eworg-md-button:hover,
.eworg-markdown-content .eworg-md-button:focus {
  background: var(--info-color, #2387cf);
  color: #fff;
}

.eworg-popup-link {
  color: #2387cf;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ========================================
   SKELETON LOADERS
   ======================================== */

/* Skeleton base styles */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0px;
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: shimmer-slide 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes shimmer-slide {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Skeleton shapes */
.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
  border-radius: 0px;
}

.skeleton-text-lg {
  height: 24px;
  margin-bottom: 12px;
  border-radius: 0px;
}

.skeleton-text-xl {
  height: 32px;
  margin-bottom: 16px;
  border-radius: 0px;
}

.skeleton-title {
  height: 48px;
  margin-bottom: 20px;
  border-radius: 0px;
}

.skeleton-button {
  height: 42px;
  border-radius: 0px;
  width: 180px;
}

.skeleton-icon {
  width: 60px;
  height: 60px;
  border-radius: 0px;
  margin-bottom: 20px;
}

.skeleton-image {
  width: 100%;
  height: 100%;
  border-radius: 0px;
}

/* Dashboard skeleton - 2 column grid */
.skeleton-dashboard {
  padding: 100px 30px;
  background: #ffffff;
  max-width: 1400px;
  margin: 0 auto;
}

.skeleton-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.skeleton-feature-card {
  background: white;
  border-radius: 0px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.skeleton-feature-card .skeleton-icon {
  width: 60px;
  height: 60px;
  border-radius: 0px;
  margin-bottom: 20px;
}

.skeleton-feature-card .skeleton-title {
  height: 32px;
  width: 60%;
  margin-bottom: 16px;
}

.skeleton-feature-card .skeleton-text {
  height: 14px;
  margin-bottom: 10px;
}

.skeleton-feature-card .skeleton-text:last-of-type {
  width: 80%;
  margin-bottom: 24px;
}

.skeleton-feature-card .skeleton-button {
  width: 200px;
  height: 42px;
}

/* Resources skeleton - 4 column grid */
.skeleton-resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
}

.skeleton-resource-card {
  background: white;
  border-radius: 0px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.skeleton-resource-card .skeleton-badge {
  height: 24px;
  width: 80px;
  border-radius: 0px;
  margin-bottom: 16px;
}

.skeleton-resource-card .skeleton-title {
  height: 24px;
  width: 90%;
  margin-bottom: 12px;
}

.skeleton-resource-card .skeleton-text {
  height: 12px;
  margin-bottom: 8px;
}

.skeleton-resource-card .skeleton-text:nth-child(4) {
  width: 75%;
}

.skeleton-resource-card .skeleton-text:last-of-type {
  width: 60%;
  margin-bottom: 20px;
}

.skeleton-resource-card .skeleton-button {
  width: 100%;
  height: 36px;
  margin-top: 16px;
}

/* Resource page header skeleton */
.skeleton-resource-header {
  padding: 40px 0 20px;
}

.skeleton-breadcrumb {
  height: 14px;
  width: 200px;
  margin-bottom: 20px;
  border-radius: 0px;
}

.skeleton-heading {
  height: 40px;
  width: 400px;
  margin-bottom: 30px;
  border-radius: 0px;
}

/* Resources topbar skeleton */
.skeleton-resources-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #ffffff;
  /* border: 1px solid #e5e7eb; */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-right: 4px solid #e5e7eb;
  padding: 12px 16px;
  margin-bottom: 24px;
  border-radius: 0;
}

.skeleton-topbar-left {
  flex: 1;
}

.skeleton-topbar-left .skeleton-text-lg {
  width: 180px;
  margin-bottom: 0;
}

.skeleton-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.skeleton-topbar-right .skeleton-text-lg {
  width: 60px;
  margin-bottom: 0;
}

/* Login/Register form skeleton */
.skeleton-form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1400px;
  width: 100%;
  align-items: center;
  margin: 0 auto;
  padding-top: 100px;
  padding-bottom: 100px;
}

.skeleton-form-content {
  padding-right: 40px;
}

.skeleton-form-content .skeleton-breadcrumb {
  width: 100px;
  margin-bottom: 20px;
}

.skeleton-form-content .skeleton-title {
  height: 56px;
  width: 400px;
  margin-bottom: 20px;
}

.skeleton-form-content .skeleton-text {
  width: 80%;
  margin-bottom: 10px;
}

.skeleton-form-panel {
  background: #e8e8e8;
  border-radius: 0px;
  padding: 60px;
}

.skeleton-form-title {
  height: 32px;
  width: 200px;
  margin-bottom: 30px;
}

.skeleton-input {
  height: 48px;
  margin-bottom: 20px;
  border-radius: 0px;
}

.skeleton-input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.skeleton-checkbox {
  height: 20px;
  width: 250px;
  margin-bottom: 24px;
  border-radius: 0px;
}

.skeleton-divider {
  height: 1px;
  background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin: 24px 0;
}

.skeleton-link {
  height: 16px;
  width: 150px;
  border-radius: 0px;
}

/* Hide skeletons when content is loaded */
.content-loaded .skeleton-dashboard,
.content-loaded .skeleton-resources-grid,
.content-loaded .skeleton-form-container,
.content-loaded .skeleton-resource-header {
  display: none;
}

/* Responsive skeleton adjustments */
@media (max-width: 1200px) {
  .skeleton-resources-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .skeleton-feature-grid {
    grid-template-columns: 1fr;
  }
  
  .skeleton-resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .skeleton-form-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .skeleton-resources-grid {
    grid-template-columns: 1fr;
  }
  
  .skeleton-feature-card {
    padding: 30px;
  }
  
  .skeleton-resource-card {
    padding: 20px;
  }
}

.eworg-popup-link:hover {
    cursor: pointer;
  opacity: 0.88;
  color: #2387cf;
}

.eworg-popup-contact {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 20px;
}

.eworg-popup-deadline {
  font-size: 14px;
  color: #B30B00;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.eworg-popup-footer {
  margin-top: 30px;
  display: flex;
  justify-content: flex-start;
}

.eworg-popup-footer .eworg-btn-primary {
  margin-top: 0;
  flex-grow: 0;
  background: #000000;
    color: white;
    width: auto;
    padding: 10px 24px;
    border-radius: 0;
    font-weight: 600;
    border: none;
    margin-top: auto;
    align-self: flex-start;
    cursor: pointer;
    flex-shrink: 0;
}

/* ========================================
   Mobile-first responsive overrides
   ======================================== */

/* Base (mobile) */
.eworg-login-container,
.eworg-register-container,
.skeleton-form-container {
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.eworg-page-login,
.eworg-page-register,
.eworg-page-signup-pending {
  padding: 0 20px 20px 20px;
}

.eworg-login-footer {
  gap: 16px;
}

.eworg-form-row {
  flex-direction: column;
}

.eworg-forgot-password {
  align-self: flex-start;
  text-align: left;
}

.eworg-register-grid {
  gap: 16px;
}

.eworg-login-form-wrapper,
.eworg-register-form-wrapper {
  padding: 28px 18px;
}

.eworg-signup-pending-container {
  padding: 48px 16px 56px;
}

.modal-content {
  width: 95%;
  padding: 22px;
  border-radius: 0px;
}

.modal-footer {
  flex-direction: column;
  align-items: stretch;
}

.modal-footer .eworg-btn-primary,
.modal-footer .eworg-btn-secondary {
  width: 100%;
}

.eworg-login-content,
.eworg-register-content,
.skeleton-form-content {
  padding-right: 0;
}

.eworg-login-title,
.eworg-register-title,
.eworg-signup-pending-title {
  font-size: 32px;
  line-height: 1.25;
}

.eworg-login-description,
.eworg-register-description,
.eworg-signup-pending-description {
  font-size: 16px;
}

.eworg-login-form-wrapper,
.eworg-register-form-wrapper,
.skeleton-form-panel {
  width: 100%;
  padding: 28px 20px;
}

.eworg-register-grid,
.skeleton-input-group {
  grid-template-columns: 1fr;
}

.eworg-hero-banner,
.eworg-resource-hero {
  flex-direction: column;
  min-height: auto;
}

.eworg-hero-content,
.eworg-resource-hero-content {
  padding: 32px 20px;
  text-align: center;
}

.eworg-hero-content h1,
.eworg-resource-hero-content h1 {
  /* font-size: 36px;
  letter-spacing: 1px; */
}

.eworg-hero-image,
.eworg-resource-hero-image {
  width: 100%;
  height: 200px;
}

.eworg-resource-container {
  padding: 48px 20px;
}

.eworg-feature-grid,
.eworg-dashboard-template,
.eworg-dashboard-info {
  grid-template-columns: 1fr;
  padding: 48px 20px 0px 20px
  /* padding: 48px 20px; */
}

.eworg-resources-grid,
.resources-grid,
.eworg-grid {
  grid-template-columns: 1fr;
  padding: 20px;
}

/* .eworg-resource-item {
  min-height: auto;
} */

.eworg-resource-heading {
  font-size: 28px;
  margin-bottom: 32px;
}

.eworg-breadcrumb {
  font-size: 12px;
  margin-bottom: 20px;
}

/* ≥ 768px (tablets) */
@media (min-width: 768px) {
  .eworg-login-container,
  .eworg-register-container,
  .skeleton-form-container {
    gap: 40px;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .eworg-form-row {
    flex-direction: row;
  }

  .eworg-register-grid,
  .eworg-form-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .eworg-forgot-password {
    align-self: flex-end;
    text-align: right;
  }

  .modal-footer {
    flex-direction: row;
    align-items: center;
  }

  .modal-footer .eworg-btn-primary,
  .modal-footer .eworg-btn-secondary {
    width: auto;
  }

  .eworg-login-title,
  .eworg-register-title,
  .eworg-signup-pending-title {
    font-size: 40px;
  }

  .eworg-hero-content h1,
  .eworg-resource-hero-content h1 {
    font-size: 44px;
  }

  .eworg-hero-image,
  .eworg-resource-hero-image {
    height: 260px;
  }

  .eworg-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .eworg-resources-grid,
  .resources-grid,
  .eworg-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .eworg-page-login,
.eworg-page-register,
.eworg-page-signup-pending {
  padding: 0 80px 0px 80px;
}
}

/* ≥ 1024px (laptops) */
@media (min-width: 1024px) {
  .eworg-login-container,
  .eworg-register-container,
  .skeleton-form-container {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .eworg-login-content,
  .eworg-register-content,
  .skeleton-form-content {
    padding-right: 30px;
  }

  .eworg-login-title,
  .eworg-register-title {
    font-size: 46px;
  }

  .eworg-hero-banner,
  .eworg-resource-hero {
    flex-direction: row;
  }

  .eworg-hero-content,
  .eworg-resource-hero-content {
    text-align: left;
    padding: 60px 0;
    padding-left: 136px;
  }

  .eworg-hero-image,
  .eworg-resource-hero-image {
    height: 300px;
  }

  .eworg-feature-grid {
    padding: 44px 30px;
  }

  .eworg-resource-container {
    padding: 80px 30px;
  }

  .eworg-resources-grid,
  .resources-grid,
  .eworg-grid {
    grid-template-columns: repeat(3, 1fr);
  }

    .eworg-page-login,
.eworg-page-register,
.eworg-page-signup-pending {
  padding: 0 126px 0px 126px;
}
}

/* ≥ 1280px (desktops) */
@media (min-width: 1280px) {
  .eworg-resources-grid,
  .resources-grid,
  .eworg-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .eworg-hero-content h1,
  .eworg-resource-hero-content h1 {
    font-size: 60px !important;
  }

    .eworg-hero-content,
  .eworg-resource-hero-content {
    padding-left: 146px;
  }

      .eworg-page-login,
.eworg-page-register,
.eworg-page-signup-pending {
  padding: 0 170px 0px 170px;
}
}

/* ≥ 1440px (large devices) */
@media (min-width: 1440px) {
      .eworg-hero-content,
  .eworg-resource-hero-content {
    padding-left: 176px;
  }
}

/* Auth banner full-bleed override (keeps existing page styles untouched) */
.eworg-auth-banner {
  width: 100vw;
  max-width: 100vw;
  line-height: 0;
  overflow: hidden;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  flex: 0 0 auto;
}

.eworg-auth-banner img {
  width: 100%;
  height: clamp(140px, 24vw, 360px);
  min-height: 400px;
  display: block;
  object-fit: cover;
  object-position: right;
}