/content/dam/soi/en/web/aging/resources/css/custom.css

/******************Weglot***********************************/

/*Restrict form width to remain within parent container 
   - form set to cover full width of pg. (used for translation purposes)*/
   .guideContainerNode {
    max-width: 100%;
}
/*WeGlot Keyboard Focus*/
.wg-drop.wg-mouse-click>div:focus 
{ 
    outline: 3px solid #1CA6DF; 
}

/****************** GLOBAL ****************************************/

/* Removes width restraints on text components */
.cmp-text {
    max-width: 100%;
}

/* Centers Text in Container */
.text-center {
    text-align: center !important;
}

/* Set attributes for color bar above H1 title text */
.title .cmp-title h1::before {
    width: 5.9375rem;
    content: " ";
    height: .375rem;
    position: absolute;
    top: 0;
    left: 0;
}

/* Set Global Header/Footer Color */
.cmp-global-header, .cmp-global-footer {
    background-color: #56101b;
}

.guideContainerNode .mobileLayout {
    display: none !important;
}

.afCheckBoxItem {
    width: 100%;
}

.guideWidgetLabel.right label,
.guideWidgetLabel.left label {
    line-height: 24px;
}

.guideContainerNode .red {
    color: #E21121;
}

.guideContainerNode .bold {
    font-weight: bold;
}

@media only screen and (min-width : 200px) {}

@media only screen and (min-width : 320px) {}

@media only screen and (max-width : 768px) {
    .afToolbarButton .guidebutton button .iconButton-icon {
        display: none!important;
    }
    .afToolbarButton .guidebutton button .iconButton-label {
        display: block!important;
    }
    .afToolbarButton .guidebutton button.submit {
        margin-right: 0!important;
    }
}

@media only screen and (min-width : 769px) {}

@media only screen and (min-width : 1200px) {}

@media only screen and (min-width : 1600px) {}



/* Fix word-break issue in tables to break on word */
.remove-word-break a {
    word-break: break-word !important;
}

/* Temporary fix for dynamic image sizes in Desktop view for Service Listing component */
@media only screen and (min-width : 769px) {
    .services .cmp-services__card-image img {
        height: 200px;
        width: auto;
    }
    .services .cmp-services__card-image {
        text-align: -webkit-center;
    }
}

/* Rounded corners + border styles */

/* Basic rounded corners */
.rounded-corners {
    border-radius: 12px; /* Adjust value for more or less rounding */
}

/* Fully circular (use for square elements like images or icons) */
.circle-shape {
    border-radius: 50%;
}

/* Rounded corners with border */
.rounded-border {
    border-radius: 12px;
    border: 2px solid #ccc; /* Light gray border */
}

/* Rounded corners with colored border */
.rounded-border-primary {
    border-radius: 12px;
    border: 2px solid #0078d4; /* Example: Microsoft blue */
}

/* Rounded corners with shadow and border */
.rounded-border-shadow {
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Light, subtle border */
.border-light {
  border: 1px solid #ddd;          /* soft gray */
  border-radius: 8px;               /* rounded corners */
  padding: 12px;                    /* breathing room inside the card */
  background: #fff;                 /* optional: keeps image edges clean */
}

/* If the card is clickable, show a strong focus ring */
.border-light:focus,
.border-light:focus-visible {
  outline: 3px solid #1CA6DF;       /* accessible focus */
  outline-offset: 2px;
}

/* Hairline border when you want barely-there separation */
.border-hairline {
  border: 0.5px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 12px;
}

/* Light border with a gentle shadow for depth */
.border-light-shadow {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 14px;
  background: #fff;
}


.img-bounded {
  display: block;
  border-radius: 12px;           /* round the card itself */
  overflow: hidden;              /* clip image to card corners */
  background: #eeeeee;           /* card background */
  padding: 0;                    /* remove white frame */
}

.img-bounded img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;             /* ensures image fills space */
  border-radius: 0;              /* let parent handle rounding */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08); /* subtle depth */
}

/* Thin, light gray border */
.border-thin {
  border: 1px solid #ccc;
}

/* Medium border for emphasis */
.border-md {
  border: 2px solid #bbb;
}

/* Darker neutral border */
.border-dark {
  border: 1px solid #666;
}

/* No border (to override other styles if needed) */
.border-none {
  border: none !important;
}

/* Faint yellow border (accessible with black text nearby) */
.border-yellow {
  border: 1px solid #FFF4CC; /* pale, soft yellow */
}

/* Brand-friendly soft palette options (pick one you like) */
.border-yellow-cream { border: 1px solid #FFF8DC; }
.border-yellow-warm  { border: 1px solid #FAF3C0; }
.border-beige        { border: 1px solid #FDF6E3; }
.border-pale         { border: 1px solid #FFFBE6; }
}

.rounded-sm { border-radius: 4px; }
.rounded-md { border-radius: 8px; }
.rounded-lg { border-radius: 16px; }
}

.img-pad-0  { padding: 0; }
.img-pad-4  { padding: 4px; }
.img-pad-8  { padding: 8px; }
.img-pad-12 { padding: 12px; }
}

.shadow-none { box-shadow: none; }

.shadow-sm {
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.06);
}

.shadow-md {
  box-shadow: 0 4px 6px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.08);
}

.shadow-lg {
  box-shadow: 0 10px 15px rgba(0,0,0,0.12), 0 4px 6px rgba(0,0,0,0.10);
}

/* Make images scale responsively while preserving aspect ratio */
.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Simple framed style combining border + padding + rounded corners */
.img-frame {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px;
  background: #fff; /* optional: helps the frame pop on colored backgrounds */
}

/* Hover emphasis (subtle) */
.img-hover:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
  transform: translateY(-1px);
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.my-image-border {
  border: 1px solid #ccc;
  border-radius: 4px;
}
/* ===== Brand + neutrals tuned for a page background of #eeeeee ===== */
:root {
  --bg: #ffffff;            /* card background on #eeeeee pages */
  --border: #d9c6ca;        /* light border harmonized with #8c2232 */
  --text: #1f2937;          /* body text */
  --heading: #0f172a;       /* heading text */
  --accent: #8c2232;        /* agency red */
  --focus: rgba(140, 34, 50, 0.55); /* soft red focus ring */
}

/* ===== Shared card base ===== */
.report-abuse,
.report-fraud {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 16px;
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  white-space: pre-line;   /* respect plain-text line breaks */
  position: relative;
}

/* First visual line styled like a heading (works without inner HTML) */
.report-abuse::first-line,
.report-fraud::first-line {
  font-size: clamp(1.25rem, 3.6vw, 1.75rem);
  font-weight: 700;
  color: var(--heading);
}

/* Paragraph spacing (if AEM outputs <p> elements) */
.report-abuse > p,
.report-fraud > p {
  margin: 8px 0;
}

/* ===== Unified button/CTA styling for both cards ===== */
.report-abuse > p:last-child,
.report-fraud > p:last-child,
.report-abuse a[href^="tel:"],
.report-fraud a[href^="tel:"] {
  display: inline-block;
  width: 100%;
  min-height: 48px;               /* ≥44px touch target */
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 10px;

  background: rgba(140, 34, 50, 0.08);  /* subtle red tint */
  color: var(--accent);

  /* Force identical font styling */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700 !important; /* ensure bold */
  font-size: clamp(1.25rem, 6vw, 1.75rem) !important;
  line-height: 1.2;
  letter-spacing: 0.02em;

  border: 1px solid var(--border);
  text-align: center;
  text-decoration: none !important; /* remove underline from links */
}

/* Hover/active/focus states */
.report-abuse > p:last-child:hover,
.report-fraud > p:last-child:hover,
.report-abuse a[href^="tel:"]:hover,
.report-fraud a[href^="tel:"]:hover {
  background: rgba(140, 34, 50, 0.12);
  cursor: pointer;
}
.report-abuse > p:last-child:active,
.report-fraud > p:last-child:active,
.report-abuse a[href^="tel:"]:active,
.report-fraud a[href^="tel:"]:active {
  background: rgba(140, 34, 50, 0.16);
}
.report-abuse a[href^="tel:"]:focus,
.report-fraud a[href^="tel:"]:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Tablet/Desktop refinements */
@media (min-width: 600px) {
  .report-abuse,
  .report-fraud {
    max-width: 720px;
    margin: 24px auto;
    padding: 20px;
  }
  .report-abuse > p:last-child,
  .report-fraud > p:last-child,
  .report-abuse a[href^="tel:"],
  .report-fraud a[href^="tel:"] {
    width: auto;   /* don’t span full width on larger screens */
    padding: 10px 16px;
  }
}

/* Optional: Dark mode tweaks */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111315;
    --border: #3a2a2d;
    --text: #e5e7eb;
    --heading: #ffffff;
  }
  .report-abuse > p:last-child,
  .report-fraud > p:last-child,
  .report-abuse a[href^="tel:"],
  .report-fraud a[href^="tel:"] {
    background: rgba(140, 34, 50, 0.25); /* slightly stronger tint for dark bg */
    border-color: #5b171f;
  }
}