/*
 Theme Name:   Cotlas News
 Template:     generatepress
 Description:  Child theme for Cotlas News website. Contains design tokens,
               layout primitives, and reusable components shared across all
               CWS news portals.
 Author:       Vinay
 Version:      1.5.0
*/

/* =========================================================================
   TABLE OF CONTENTS
   -------------------------------------------------------------------------
   1. DESIGN TOKENS          — CSS variables (colors, fonts, spacing, radii)
   2. CONTAINERS & WRAPPERS  — max-width limiters
   3. BASE TYPOGRAPHY        — body, headings, links, paragraphs
   4. NEWS UTILITY CLASSES   — card, headline, excerpt, meta
   5. ACCESSIBILITY / RESETS — img, focus states
   6. LAYOUT PRIMITIVES      — section, container, row, col, grid, visibility
   7. COMPONENTS             — logo, ad slot, topbar, menu, copyright
   8. CONTACT FORM           — Cotlas form plugin override
   9. GRIEVANCE FORM         — Cotlas form plugin override
  10. RELATED POSTS          — injected .cws-related-posts block
  11. SOCIAL SHARE           — injected share icons
  12. UTILITIES              — misc one-off helpers
  13. NEWS CONTENT BLOCKS    — structure for homepage/archive patterns

   GeneratePress native-class overrides (header, navigation, content area,
   sidebars, widgets, search form, buttons/inputs, entry meta, post
   navigation) live in assets/css/gp-overrides.css and load after this file.
   -------------------------------------------------------------------------
   NAMING CONVENTION (BEM-inspired, prefix "cws-")
   -------------------------------------------------------------------------
   .cws-block            → base component or primitive
   .cws-block--modifier  → a variant of the base (e.g. cws-row--between)
   .cws-block__element   → a child part of the component (e.g. cws-logo__text)

   RULES:
   - Layout classes (row, col, grid, section, container) are REUSED
     everywhere. Do NOT create new layout classes per section.
   - Only create a NEW class when the visual appearance is genuinely new
     (e.g. cws-card, cws-ad-slot).
   - Site-specific tweaks (brand colors, spacing changes) go in custom.css,
     NOT here. Override tokens instead of writing new classes.
   ========================================================================= */


/* =========================================================================
   1. DESIGN TOKENS
   -------------------------------------------------------------------------
   All values in :root are variables. Use var(--cws-*) everywhere instead
   of hardcoding values. To re-theme a site, override these variables in
   custom.css — do NOT edit this file per site.
   ========================================================================= */
:root {
  /* --- Colors --- */
  /* Primary: Deep Blue-Charcoal (extracted from logo text) */
  --cws-color-primary: #14213d;  
  
  /* Secondary: Deep Palm Green (from logo foliage) */
  --cws-color-secondary: #000000;  
  
  /* Accent: Bright Sunrise Yellow (from the sun) */
  --cws-color-accent: #fca311;  

  /* Link Colors: A slightly brighter green for better readability on white */
  --cws-color-link: #fca311;
  --cws-color-link-hover: #e08e0b; /* Darker green on hover */

  --cws-color-text: #000000;         /* Pure black for high contrast body text */
  --cws-color-bg: #ffffff;           /* Pure white background */
  --cws-color-alt-bg: #e5e5e5;       /* Light grey (from the 2nd color) for alternate sections */
  --cws-color-muted: #666666;        /* For meta text, dates, etc. */
  --cws-color-border: #e5e5e5;       /* Light grey borders */
  --cws-color-red: #d32f2f;      /* For error messages, required fields, etc. */
  --cws-color-green: #388e3c;    /* For success messages, confirmations, etc. */
  --cws-color-yellow: #fbc02d;   /* For warnings, alerts, etc. */
  --cws-color-blue: #1976d2;     /* For info messages, links, etc. */
  /* --- Typography Families --- */
  /* The first font is the active one, the rest are fallbacks */
  --cws-font-heading: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --cws-font-body: 'Nunito Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* --- Fluid Typography (clamp: min, preferred, max) --- */
  --cws-font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);       /* 16 → 18px */
  --cws-font-size-sm: clamp(0.8125rem, 0.79rem + 0.12vw, 0.875rem);    /* 13 → 14px */
  --cws-font-size-excerpt: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem); /* 14 → 15px */
  /* NEW TOKEN: Bridges the gap between 14px and 18px */
  --cws-font-size-body-sm: clamp(0.875rem, 0.83rem + 0.2vw, 1rem);     /* 14 → 16px */
  --cws-font-size-xs: 13px;
  /* Mobile is 1rem (16px), Desktop maxes out at 1.25rem (20px) */
  --cws-font-size-md: clamp(1rem, 0.85rem + 0.75vw, 1.25rem);     
  /* Large: 17px mobile → 22px desktop */
  /* Mobile is 1.0625rem (17px), Desktop maxes out at 1.375rem (22px) */
  --cws-font-size-lg: clamp(1.125rem, 0.85rem + 1vw, 1.375rem);  

  /* Headings */
  --cws-font-size-h6: clamp(0.875rem, 0.85rem + 0.15vw, 1rem);         /* 14 → 16px */
  --cws-font-size-h5: clamp(0.9375rem, 0.9rem + 0.25vw, 1.125rem);     /* 15 → 18px */
  --cws-font-size-h4: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);         /* 18 → 22px */
  --cws-font-size-h3: clamp(1.25rem, 1.1rem + 0.75vw, 2rem);           /* 20 → 32px */
  --cws-font-size-h2: clamp(1.5rem, 1.25rem + 1.25vw, 2.5rem);         /* 24 → 40px */
  --cws-font-size-h1: clamp(1.75rem, 1.35rem + 2vw, 3.5rem);           /* 28 → 56px */

  /* --- Line heights --- */
  --cws-line-height-body: 1.6;
  --cws-line-height-heading: 1.2;

  /* --- Container --- */
  --cws-container-width: 1280px;
  --cws-container-padding: clamp(16px, 2vw, 24px);

  /* --- Fluid Spacing --- */
  --cws-space-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
  --cws-space-sm: clamp(0.75rem, 0.65rem + 0.5vw, 1rem);
  --cws-space-md: clamp(1.25rem, 1rem + 1.25vw, 2rem);
  --cws-space-lg: clamp(2rem, 1.5rem + 2.5vw, 4rem);
  --cws-space-xl: clamp(3rem, 2rem + 5vw, 6rem);

  /* --- Borders --- */
  --cws-radius-sm: 4px;
  --cws-radius-md: 8px;
  --cws-radius-lg: 12px;
  --cws-radius-xlg: 16px;
  --cws-radius-rounded: 25px;
  --cws-radius-circle: 50%;

    /* --- Layout Widths --- */
  --cws-content-width-single: 70%;
  --cws-sidebar-width-single: 30%;
  
  --cws-content-width-both: 60%;
  --cws-sidebar-left-both: 15%;
  --cws-sidebar-right-both: 25%;

  /* NEW: Reduce gap when 2 sidebars are active */
  --cws-gap-both-sidebars: var(--cws-space-sm); 

    /* --- Component Padding --- */
  --cws-padding-widget: var(--cws-space-md);
  --cws-padding-card: var(--cws-space-sm);
  
  /* Compact padding used ONLY when 2 sidebars are active */
  --cws-padding-widget-compact: var(--cws-space-sm);
  --cws-padding-card-compact: var(--cws-space-sm);

  /* --- Widget Heading --- */
  --cws-widget-heading-font-size: var(--cws-font-size-h6);
  --cws-widget-heading-font-weight: 700;
  --cws-widget-heading-margin-bottom: var(--cws-space-sm);
  
  --cws-widget-heading-color: var(--cws-color-text);        /* Dark text looks better on yellow */
  --cws-widget-heading-background-color: var(--cws-color-accent);
  
  /* New Padding Tokens */
  --cws-widget-heading-padding-y: 8px;                       /* Top padding */
  --cws-widget-heading-padding-x: var(--cws-space-sm);       /* Left/Right padding (uses fluid spacing) */
  
  /* Fixed the radius token name */
  --cws-widget-heading-radius: var(--cws-radius-rounded); /* Rounded corners for widget heading */  
}


/* =========================================================================
   2. CONTAINERS & WRAPPERS
   -------------------------------------------------------------------------
   .cws-container         — max-width centering wrapper. Put this INSIDE a
                            .cws-section to constrain content width.
   .cws-content-wrapper   — narrower (800px) wrapper for single post body.
   .cws-section-padding   — vertical padding helper for content sections.

   USAGE EXAMPLE
   -------------
   [Container  .cws-section]        ← full-width background band
     [Container  .cws-container]    ← max-width centerer
       ...your row/grid/columns...  ← content
   ========================================================================= */
.cws-container {
  width: 100%;
  max-width: var(--cws-container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--cws-container-padding);
  padding-right: var(--cws-container-padding);
  box-sizing: border-box;
}

.cws-content-wrapper {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cws-section-padding {
  padding-top: var(--cws-space-lg);
  padding-bottom: var(--cws-space-lg);
}


/* =========================================================================
   3. BASE TYPOGRAPHY
   -------------------------------------------------------------------------
   Global defaults applied to HTML tags (body, h1, h2, ... a, p).
   Do NOT add classes to use these — they apply automatically.
   Override per-site by changing the --cws-font-* tokens in custom.css.
   ========================================================================= */
body {
    font-family: var(--cws-font-body);
    font-size: var(--cws-font-size-base);
    color: var(--cws-color-text);
    background-color: var(--cws-color-bg);
    line-height: var(--cws-line-height-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    border: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--cws-font-heading);
  color: var(--cws-color-text);
  line-height: var(--cws-line-height-heading);
  margin-top: 0;
  margin-bottom: 0.5em;
  text-wrap: auto; /* Prevents single-word widow lines in headlines */
}

h1 { font-size: var(--cws-font-size-h1); font-weight: 700;}
h2 { font-size: var(--cws-font-size-h2); font-weight: 700;}
h3 { font-size: var(--cws-font-size-h3); font-weight: 700;}
h4 { font-size: var(--cws-font-size-base); font-weight: 700; }
h5 { font-size: var(--cws-font-size-sm); font-weight: 700; }
h6 { font-size: var(--cws-font-size-sm); font-weight: 600; }

p {
  margin-top: 0;
  margin-bottom: 1em;
}

a {
  color: var(--cws-color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--cws-color-link-hover);
}


/* =========================================================================
   4. NEWS UTILITY CLASSES
   -------------------------------------------------------------------------
   Apply these to GenerateBlocks containers or Gutenberg blocks via
   "Advanced → Additional CSS class(es)".

   .cws-card            — bordered/padded card wrapper (add to a Container)
   .cws-card__image     — image inside a card (add to an Image block)
   .cws-heading-card    — card headline (add to a Heading block)
   .cws-headline-excerpt— muted excerpt text (add to a Paragraph block)
   .cws-meta            — date/category/author line (Paragraph block)
   ========================================================================= */
.cws-card {
  background: var(--cws-color-bg);
  border: 1px solid var(--cws-color-border);
  border-radius: var(--cws-radius-md);
  padding: var(--cws-space-sm);
  overflow: hidden;
}

.cws-card__image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: var(--cws-space-xs);
  border-radius: var(--cws-radius-sm);
}

.cws-heading-card {
  font-size: var(--cws-font-size-h3);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--cws-space-xs);
}

.cws-heading-card a {
  color: inherit;
}

.cws-heading-card a:hover {
  color: var(--cws-color-link-hover);
}

.cws-headline-excerpt {
  font-size: var(--cws-font-size-excerpt);
  color: var(--cws-color-muted);
  line-height: 1.5;
  margin: 0;
}

.cws-meta {
  font-size: var(--cws-font-size-sm);
  color: var(--cws-color-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--cws-space-xs);
}


/* =========================================================================
   5. ACCESSIBILITY / RESETS
   ========================================================================= */
img {
  max-width: 100%;
  height: auto;
}


/* =========================================================================
   6. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------
   THE HEART OF THE SYSTEM. These are the ONLY layout classes you need.
   Reuse them everywhere. Do NOT invent new layout classes per section.

   .cws-section     — full-width horizontal band (topbar, header mid, menu,
                      footer row, hero band, etc.)
   .cws-container   — max-width centerer (defined in section 2)
   .cws-row         — horizontal flex layout with wrapping
   .cws-col         — vertical stack
   .cws-grid        — 2/3/4-column card grid
   .cws-grow        — child of .cws-row that fills remaining space
   .cws-shrink      — child of .cws-row that keeps its natural size
   .cws-hide-mobile — element is HIDDEN on mobile (visible on desktop)
   .cws-hide-desktop— element is HIDDEN on desktop (visible on mobile)
   ========================================================================= */

/* ---------- SECTION: full-width horizontal band ---------- */
/* Example: <Container class="cws-section cws-header__topbar"> */
.cws-section {
  width: 100%;
  padding-top: var(--cws-space-sm);
  padding-bottom: var(--cws-space-sm);
  box-sizing: border-box;
}

.cws-section--flush  { padding-top: 0; padding-bottom: 0; }
.cws-section--pad-md { padding-top: var(--cws-space-md); padding-bottom: var(--cws-space-md); }
.cws-section--pad-lg { padding-top: var(--cws-space-lg); padding-bottom: var(--cws-space-lg); }

/* ---------- ROW: horizontal flex layout ---------- */
/* Example: <Container class="cws-row cws-row--between cws-row--middle"> */
.cws-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cws-space-sm);
  width: 100%;
}

/* Horizontal alignment modifiers */
.cws-row--between { justify-content: space-between; }
.cws-row--center  { justify-content: center; }
.cws-row--end     { justify-content: flex-end; }
.cws-row--start   { justify-content: flex-start; }
.cws-row--nowrap  { flex-wrap: nowrap; }

/* Vertical alignment modifiers */
.cws-row--top    { align-items: flex-start; }
.cws-row--middle { align-items: center; }
.cws-row--bottom { align-items: flex-end; }

/* ---------- COLUMN: vertical stack ---------- */
/* Example: <Container class="cws-col"> */
.cws-col {
  display: flex;
  flex-direction: column;
  gap: var(--cws-space-xs);
}

/* ---------- Flexible children inside a row ---------- */
/* Add to a child Container inside .cws-row */
.cws-grow   { flex: 1 1 auto; min-width: 0; }
.cws-shrink { flex: 0 0 auto; }

/* ---------- GRID: card grids and footer columns ---------- */
/* Example: <Container class="cws-grid cws-grid--3"> */
.cws-grid {
  display: grid;
  gap: var(--cws-space-md);
  width: 100%;
}
.cws-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cws-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cws-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Auto-collapse grids on mobile + allow nowrap rows to wrap */
@media (max-width: 768px) {
  .cws-grid--2,
  .cws-grid--3,
  .cws-grid--4 { grid-template-columns: 1fr; }
  .cws-row--nowrap { flex-wrap: wrap; }
}

/* ---------- HIDE / SHOW helpers ---------- */
/*
   .cws-hide-mobile  → hide on mobile (visible on desktop 769px+)
   .cws-hide-desktop → hide on desktop (visible on mobile ≤768px)
   !important ensures we win against GenerateBlocks inline styles.
*/
.cws-hide-mobile  { display: none !important; }
.cws-hide-desktop { display: block; }

@media (min-width: 769px) {
  .cws-hide-mobile  { display: block !important; }
  .cws-hide-desktop { display: none !important; }
}


/* =========================================================================
   7. COMPONENTS
   -------------------------------------------------------------------------
   Visual skins. Add these classes to GenerateBlocks containers where the
   specific look is needed. Each has a clear, single purpose.
   ========================================================================= */

/* ---------- LOGO ---------- */
/* <Container class="cws-logo">  →  Image + optional Heading.cws-logo__text */
.cws-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--cws-space-xs);
  text-decoration: none;
  color: var(--cws-color-text);
}
.cws-logo img {
  max-height: 60px;
  width: auto;
}
.cws-logo__text {
  font-family: var(--cws-font-heading);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 800;
  line-height: 1;
  margin: 0;
}

/* ---------- AD SLOT ---------- */
/* <Container class="cws-ad-slot">  →  Image block or custom HTML ad */
.cws-ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 728px;                 /* prefer 728px, shrink if needed */
  min-height: 90px;
  background: #f5f5f5;
  border: 1px dashed var(--cws-color-border);
  border-radius: var(--cws-radius-sm);
  color: var(--cws-color-muted);
  font-size: var(--cws-font-size-sm);
  text-align: center;
  overflow: hidden;
}
.cws-ad-slot img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- TOPBAR ---------- */
/* <Container class="cws-topbar">  →  Paragraph/links inside */
.cws-topbar {
  font-size: var(--cws-font-size-sm);
  color: var(--cws-color-muted);
}
.cws-topbar a {
  color: inherit;
  text-decoration: none;
}
.cws-topbar a:hover {
  color: var(--cws-color-link-hover);
}

/* ---------- MENU ---------- */
/* <Container class="cws-menu">  →  Navigation block or UL inside */
.cws-menu {
  width: 100%;
}
.cws-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cws-space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}
.cws-menu a {
  color: var(--cws-color-text);
  font-weight: 600;
  font-size: var(--cws-font-size-base);
  text-decoration: none;
  padding: 0.5em 0;
  display: inline-block;
}
.cws-menu a:hover {
  color: var(--cws-color-link-hover);
}
/* ---------- COPYRIGHT BAR ---------- */
.cws-copyright {
  display: inline-block;
  font-size: var(--cws-font-size-sm);
  line-height: 1.5;
  color: var(--cws-color-muted);
  text-wrap: balance;      /* prevents awkward wrapping on mobile */
}
/* Credit link */
.cws-copyright .cws-credit {
  display: inline-block;
  color: var(--cws-color-link);
  font-size: var(--cws-font-size-sm)!important;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cws-copyright .cws-credit:hover,
.cws-copyright .cws-credit:focus {
  color: var(--cws-color-link-hover);
}
/* =========================================================================
   8. CONTACT FORM (Cotlas Form Plugin Override)
   ========================================================================= */

/* 1. The Outer Wrapper */
.cws-contact-form {
  background-color: var(--cws-color-bg);
  border: 1px solid var(--cws-color-border);
  border-radius: var(--cws-radius-md);
  padding: var(--cws-space-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02); /* Optional: adds a subtle card shadow */
}

/* 2. The Form Layout (CSS Grid) */
.cws-contact-form .cotlas-form-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns for Name, Email, Mobile */
  gap: var(--cws-space-sm);
}

/* 3. The Field Wrapper */
.cws-contact-form .cotlas-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px; /* Space between label and input */
}

/* 4. Make Subject and Message span full width */
.cws-contact-form .cotlas-form-field:nth-of-type(4), /* Subject */
.cws-contact-form .cotlas-form-field:nth-of-type(5) { /* Message */
  grid-column: 1 / -1;
}

/* 5. Form Labels */
.cws-contact-form label {
  font-weight: 600;
  font-size: var(--cws-font-size-sm);
  color: var(--cws-color-text);
}

/* 6. Form Inputs & Textareas */
.cws-contact-form input[type="text"],
.cws-contact-form input[type="email"],
.cws-contact-form input[type="tel"],
.cws-contact-form textarea {
  width: 100%;
  background-color: #f9f9f9;
  border: 1px solid var(--cws-color-border);
  border-radius: var(--cws-radius-sm);
  padding: 10px 14px;
  font-family: var(--cws-font-body);
  font-size: var(--cws-font-size-base);
  color: var(--cws-color-text);
  transition: all 0.2s ease;
  box-sizing: border-box; /* Ensures padding doesn't break the grid width */
}

/* Input Focus State */
.cws-contact-form input:focus,
.cws-contact-form textarea:focus {
  outline: none;
  border-color: var(--cws-color-primary);
  background-color: var(--cws-color-bg);
  box-shadow: 0 0 0 3px rgba(3, 81, 137, 0.1); /* Soft glow using your primary color */
}

/* 7. Submit Button Row */
.cws-contact-form .cotlas-form-actions {
  grid-column: 1 / -1; /* Spans full width */
  margin-top: var(--cws-space-sm);
  text-align: right; /* Pushes the button to the right side */
}

/* 8. Responsive: Stack everything on mobile */
@media (max-width: 768px) {
  .cws-contact-form .cotlas-form-form {
    grid-template-columns: 1fr; /* Changes grid to a single column */
  }
}

/* =========================================================================
   9. GRIEVANCE FORM (Cotlas Form Plugin Override)
   ========================================================================= */
.cws-grievance-form {
  background-color: var(--cws-color-bg);
  border: 1px solid var(--cws-color-border);
  border-radius: var(--cws-radius-md);
  padding: var(--cws-space-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02); /* Optional: adds a subtle card shadow */
}
/* 1. The Form Layout (CSS Grid) */
.cws-grievance-form .cotlas-form-form {
  display: grid;
  /* Create a 6-column grid base */
  grid-template-columns: repeat(4, 1fr);
  gap: var(--cws-space-sm);
}

/* 2. The Field Wrapper */
.cws-grievance-form .cotlas-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 3. Grid Placement for Fields */

/* Row 1: Name, Email, Phone (Take up 2 columns each out of 6 = 3 columns total) */
.cws-grievance-form .cotlas-form-field:nth-of-type(1),
.cws-grievance-form .cotlas-form-field:nth-of-type(2) {
  grid-column: span 2;
}
.cws-grievance-form .cotlas-form-field:nth-of-type(3) {
  grid-column: span 4;
}
.cws-grievance-form .cotlas-form-field:nth-of-type(4) {
  grid-column: span 4;
}
/* Row 2: URL, Subject (Take up 3 columns each out of 6 = 2 columns total) */
.cws-grievance-form .cotlas-form-field:nth-of-type(5) {
  grid-column: span 4;
}

/* Row 3: Message (Take up all 6 columns = full width) */
.cws-grievance-form .cotlas-form-field:nth-of-type(6) {
  grid-column: 1 / -1;
}

/* 4. Labels & Inputs (Same as contact form) */
.cws-grievance-form label {
  font-weight: 600;
  font-size: var(--cws-font-size-sm);
  color: var(--cws-color-text);
}

.cws-grievance-form input[type="text"],
.cws-grievance-form input[type="email"],
.cws-grievance-form input[type="tel"],
.cws-grievance-form input[type="url"],
.cws-grievance-form textarea {
  width: 100%;
  background-color: #f9f9f9;
  border: 1px solid var(--cws-color-border);
  border-radius: var(--cws-radius-sm);
  padding: 10px 14px;
  font-family: var(--cws-font-body);
  font-size: var(--cws-font-size-base);
  color: var(--cws-color-text);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.cws-grievance-form input:focus,
.cws-grievance-form textarea:focus {
  outline: none;
  border-color: var(--cws-color-primary);
  background-color: var(--cws-color-bg);
  box-shadow: 0 0 0 3px rgba(3, 81, 137, 0.1);
}

/* 5. Submit Button Row */
.cws-grievance-form .cotlas-form-actions {
  grid-column: 1 / -1; /* Spans full width */
  margin-top: var(--cws-space-sm);
  text-align: right; 
}

/* 6. Mobile Responsive (Stack everything on mobile) */
@media (max-width: 768px) {
  .cws-grievance-form .cotlas-form-form {
    /* Change grid to a single column on mobile */
    grid-template-columns: 1fr; 
  }
  
  /* Force all fields to take full width on mobile */
  .cws-grievance-form .cotlas-form-field {
    grid-column: 1 / -1 !important; 
  }
}
.cotlas-form-required {
    color: var(--cws-color-red);
}
/* =========================================================================
   10. RELATED POSTS
   ========================================================================= */
.cws-related-posts h5 {
    font-size: var(--cws-font-size-h4);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: var(--cws-space-md);
}
/* ---------- GRID & CARD DESIGN ---------- */

/* 1. The Grid Container */
.cws-posts-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 Columns */
  gap: var(--cws-space-md);
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 2. The Individual Card */
.cws-posts-list li {
  display: flex;
  flex-direction: column;
  background-color: var(--cws-color-bg);
  border: 1px solid var(--cws-color-border);
  border-radius: var(--cws-radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  margin: 0; /* Reset default WP margins */
}

/* Card Hover Effect */
.cws-posts-list li:hover {
  border-color: var(--cws-color-border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* 3. The Featured Image Wrapper */
.cws-posts-list .wp-block-latest-posts__featured-image {
  margin: 0;
  width: 100%;
  overflow: hidden;
}

/* 4. The Featured Image */
.cws-posts-list .wp-block-latest-posts__featured-image img {
  width: 100%;
  aspect-ratio: 3 / 2; /* Your preferred 3:2 ratio */
  object-fit: cover;
  display: block;
  border-radius: 0; /* Remove rounded corners since card is rounded */
  transition: transform 0.3s ease;
}

/* Optional: Image zoom on hover */
.cws-posts-list li:hover .wp-block-latest-posts__featured-image img {
  transform: scale(1.03);
}

/* 5. The Card Content Wrapper (Title, Author, Date) */
/* We use a negative margin to pull the text up into the padding area */
.cws-posts-list .wp-block-latest-posts__post-title,
.cws-posts-list .wp-block-latest-posts__post-author,
.cws-posts-list .wp-block-latest-posts__post-date {
  padding-left: var(--cws-space-sm);
  padding-right: var(--cws-space-sm);
}

/* 6. The Post Title */
.cws-posts-list .wp-block-latest-posts__post-title {
  font-family: var(--cws-font-heading);
  font-size: var(--cws-font-size-h5);
  font-weight: 700;
  color: var(--cws-color-text);
  text-decoration: none;
  line-height: 1.4;
  margin-top: var(--cws-space-sm);
  margin-bottom: var(--cws-space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Max 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.cws-posts-list .wp-block-latest-posts__post-title:hover {
  color: var(--cws-color-primary);
}

/* 7. The Author & Date Meta */
.cws-posts-list .wp-block-latest-posts__post-author,
.cws-posts-list .wp-block-latest-posts__post-date {
  font-size: var(--cws-font-size-sm);
  color: var(--cws-color-muted);
  line-height: 1.4;
  display: block;
}

/* Adjust author margin to bring it closer to the title */
.cws-posts-list .wp-block-latest-posts__post-author {
  margin-top: 0;
  margin-bottom: 4px;
}

/* Add bottom padding to the date so the card has a nice bottom edge */
.cws-posts-list .wp-block-latest-posts__post-date {
  margin-bottom: var(--cws-space-sm);
}

/* =========================================================================
   RESPONSIVE (Tablet & Mobile)
   ========================================================================= */

/* Tablet: 2 Columns */
@media (max-width: 1024px) {
  .cws-posts-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 Column */
@media (max-width: 768px) {
  .cws-posts-list {
    grid-template-columns: 1fr;
  }
}
/* ---------- ENTRY META (plugin-injected header meta) ---------- */
.cws-entry-meta {
    font-size: var(--cws-font-size-sm);
    margin-top: var(--cws-space-xs);
    line-height: 1.5;
}

/* =========================================================================
   11. SOCIAL SHARE
   ========================================================================= */
.cws-social-share {
    display: inline-flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    justify-content: center;
    padding-top: var(--cws-space-sm);
    padding-bottom: var(--cws-space-sm);
}
.cws-social-share.top .cws-social-share__label {
    display: inline-flex;
    gap: .5em;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.cws-social-share.top .cws-social-share__label .cws-social-share__icon svg{
    width: 1.2em;
    height: 1.2em;
}
.cws-social-share.top .cws-social-share__label .cws-social-share__text{
    font-size: var(--cws-font-size-sm);
    padding-top: var(--cws-space-xs);
    padding-bottom: var(--cws-space-xs);
}
.cws-social-share.top .cws-social-share__label .cws-social-share__icon {
    margin-bottom: 0px;
    padding-top: var(--cws-space-xs);
    /* padding-bottom: var(--cws-space-xs); */
}
.cws-social-share.top {
    padding-top: 0;
    padding-bottom: 0;
}
.cws-social-share .cotlas-social-share-footer {
    padding: 2px 15px;
}
.cws-social-share .cws-social-share__title{
  display: flex;
  flex-direction: row;
  margin-top: 0.5em;
  margin-bottom: 0;
  gap: 0.8em;
  align-items: center;
}
.cws-social-share .cws-social-share__title .cws-social-share__label {
  font-size: var(--cws-font-size-sm);
  margin-bottom: 0;
}
.cws-social-share .cws-social-share__title .cws-social-share__icon svg{
  font-size: var(--cws-font-size-sm);
  width:1.2em;
  height:1.2em;
}
@media (max-width: 768px) {
    .cws-social-share {
        display: inline-flex;
        flex-direction: row;
        gap: .5em;
        align-content: start;
        align-items: center;
        justify-content: start;
        padding-top: var(--cws-space-xs);
        padding-bottom: var(--cws-space-xs);
    }
    .cws-social-share .cotlas-social-share-footer {
        padding: 2px 0px;
    }
}
hr.ocp-seprater {
    margin-bottom: var(--cws-space-sm);
    margin-top: var(--cws-space-sm);
}
.cws-ofc-menu ul{
    align-items: var(--navigation-layout-align, initial);
    display: flex;
    flex-direction: var(--navigation-layout-direction, initial);
    flex-wrap: var(--navigation-layout-wrap, wrap);
    justify-content: var(--navigation-layout-justify, initial);
    list-style: none;
    margin: 0;
    padding-left: 0;
    position: relative;
}
.ctc-form__footer {
    margin-top: var(--cws-space-sm);
    margin-bottom: var(--cws-space-sm);
}
.ctc-empty {
    color: var(--cws-color-red);
}
/* =========================================================================
   AUTHOR BOX (Element Below Single Post)
   ========================================================================= */

/* 1. Main Wrapper (Two Columns: Avatar Left, Info Right) */
.cws-author {
  display: grid;
  grid-template-columns: auto 1fr; /* Avatar takes natural size, info takes rest */
  gap: var(--cws-space-md);
  background-color: var(--cws-color-bg);
  border: 1px solid var(--cws-color-border);
  border-radius: var(--cws-radius-md);
  padding: var(--cws-space-md);
  margin-top: var(--cws-space-lg);
  margin-bottom: var(--cws-space-lg);
  align-items: center;
}

/* 2. Avatar Styling */
.cws-avatar {
  flex-shrink: 0;
}
.cws-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: var(--cws-radius-circle);
  object-fit: cover;
  border: 3px solid var(--cws-color-alt-bg); /* Subtle ring around image */
}

/* 3. Info Wrapper */
.cws-author-info {
  display: flex;
  flex-direction: column;
  gap: var(--cws-space-sm);
  min-width: 0; /* Prevents flex/grid overflow */
}

/* 4. Top Row (Name Left, Social Right) */
.cws-author-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--cws-space-sm);
  border-bottom: 1px solid var(--cws-color-border);
  padding-bottom: var(--cws-space-xs);
}

/* 5. Author Name */
.cws-author-name {
  font-family: var(--cws-font-heading);
  font-size: var(--cws-font-size-h4);
  font-weight: 700;
  color: var(--cws-color-text);
  margin: 0;
}
.cws-author-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.cws-author-name a:hover {
  color: var(--cws-color-primary);
}

/* 6. Social Icons */
.cws-author-social {
  display: flex;
  align-items: center;
}
.cws-author-social .cws-social-links {
  display: flex;
  gap: var(--cws-space-sm);
}
.cws-author-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cws-color-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}
.cws-author-social a:hover {
  color: var(--cws-color-primary);
  transform: translateY(-2px); /* Slight bounce on hover */
}

/* Brand Colors (Targeting the SVG path directly) */
.cws-author-social a.facebook svg path { fill: #1877F2; }  /* Facebook Blue */
.cws-author-social a.twitter svg path { fill: #000000; }   /* X Black */
.cws-author-social a.instagram svg path { fill: #E4405F; } /* Instagram Pink/Red */
.cws-author-social a.linkedin svg path { fill: #0A66C2; }  /* LinkedIn Blue */
.cws-author-social a.youtube svg path { fill: #FF0000; }   /* YouTube Red */
.cws-author-social a.email svg path { fill: #EA4335; }     /* Email Red (Gmail color) */
.cws-author-social a.website svg path { fill: #4CAF50; }   /* Website Green */
.cws-author-social a.pinterest svg path { fill: #E60023; }  /* Pinterest Red */

/* Hover Effect: Fade to your theme's primary color and bounce */
.cws-author-social a:hover {
  transform: translateY(-3px);
}
.cws-author-social a:hover svg path {
  fill: var(--cws-color-primary); /* Changes to your theme's dark blue/green on hover */
}

.cws-author-social a svg {
  width: 1.2em;
  height: 1.2em;
}

/* 7. Bottom Row (Bio & Link) */
.cws-author-bottom {
  display: block; /* Overrides any default flex */
  font-size: var(--cws-font-size-body-sm);
  line-height: 1.6;
  color: var(--cws-color-muted);
}

/* 8. Bio Text */
.cws-author-bio {
  display: inline;
}

/* 9. The "View all Post" Link */
.cws-author-link {
  display: inline-block;
  color: var(--cws-color-primary);
  font-weight: 700;
  text-decoration: none;
  margin-left: 5px;
  white-space: nowrap; /* Keeps the link from breaking into two lines */
}
.cws-author-link:hover {
  color: var(--cws-color-link-hover);
  text-decoration: underline;
}

/* =========================================================================
   RESPONSIVE (Mobile)
   ========================================================================= */
@media (max-width: 768px) {
  /* Stack avatar on top of info */
  .cws-author {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cws-avatar {
    margin: 0 auto;
  }
  
  .cws-author-top {
    justify-content: center;
    flex-direction: column;
  }
  
  .cws-author-link {
    display: block;
    margin-left: 0;
    margin-top: var(--cws-space-xs);
  }
}

/* =========================================================================
   13. NEWS CONTENT BLOCKS
   -------------------------------------------------------------------------
   STRUCTURE ONLY. These classes define how patterns and homepage sections
   are laid out: grids, aspect ratios, gaps, line clamps, responsive collapses.

   Colours, fonts, radii, shadows and hover skin live in the active demo
   stylesheet (assets/css/demo/styleN.css) so one structure serves every demo.
   ========================================================================= */

/* ---------- SECTION WRAPPER SYSTEM ---------- */
/* Outermost band: full width, vertical rhythm. Background lives in the demo. */
.cws-section-block {
    width: 100%;
}

/* Max-width centre limiter */
.cws-section-wrapper {
  width: 100%;
  max-width: var(--cws-container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--cws-container-padding);
  padding-right: var(--cws-container-padding);
}

/* Column/grid holder */
.cws-inner-container {
  width: 100%;
  display: grid;
  gap: var(--cws-space-md);
  margin-top: var(--cws-space-lg);
  margin-bottom: var(--cws-space-md);
  /* padding-bottom: var(--cws-space-lg); */
}

.cws-inner-container.cols-hero { grid-template-columns: 45fr 27.5fr 27.5fr; }
.cws-inner-container.cols-5    { grid-template-columns: repeat(5, 1fr); }
.cws-inner-container.cols-4    { grid-template-columns: repeat(4, 1fr); }
.cws-inner-container.cols-3    { grid-template-columns: repeat(3, 1fr); }
.cws-inner-container.cols-2    { grid-template-columns: repeat(2, 1fr); }

.cws-card-grid {
  width: 100%;
  display: grid;
  gap: var(--cws-space-sm);
}
.cws-card-grid.cols-5    { grid-template-columns: repeat(5, 1fr); }
.cws-card-grid.cols-4    { grid-template-columns: repeat(4, 1fr); }
.cws-card-grid.cols-3    { grid-template-columns: repeat(3, 1fr); }
.cws-card-grid.cols-2    { grid-template-columns: repeat(2, 1fr); }

/* Tablet: hero lead spans full width, other grids drop to 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
  .cws-inner-container.cols-hero { grid-template-columns: repeat(2, 1fr); }
  .cws-inner-container.cols-hero > *:nth-child(1) { grid-column: 1 / -1; }

  .cws-inner-container.cols-5,
  .cws-inner-container.cols-4,
  .cws-inner-container.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: single column */
@media (max-width: 768px) {
  .cws-inner-container.cols-hero,
  .cws-inner-container.cols-5,
  .cws-inner-container.cols-4,
  .cws-inner-container.cols-3,
  .cws-inner-container.cols-2 { grid-template-columns: 1fr; }
}
.cws-main-container {
  width: 100%;
}
/* ---------- SECTION HEADING ---------- */
.cws-section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  column-gap: 15px;
  row-gap: 15px;
  width: 100%;
  padding-bottom: 20px;
}

.cws-section-heading .heading {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
  padding: var(--cws-space-xs) var(--cws-space-md);
  text-decoration: none;
  cursor: pointer;
}

/* ---------- VIDEO EMBED (16:9) ---------- */
.cws-yt-video,
.cws-video-wrapper iframe {
  width: 100%;
}

.cws-yt-video {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.cws-yt-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ---------- HERO POST CARD ---------- */
.cws-post-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

.cws-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: var(--cws-space-sm);
}

.cws-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cws-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--cws-space-sm);
}

.cws-card-category {
  margin-bottom: var(--cws-space-xs);
}

.cws-card-category a {
  display: inline-block;
  padding: 4px 16px;
  text-decoration: none;
}

.cws-card-title {
  margin-top: 0;
  margin-bottom: var(--cws-space-xs);
}

.cws-card-title a {
  text-decoration: none;
}

.cws-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--cws-space-sm);
}

.cws-card-meta {
  display: flex;
  align-items: center;
  gap: var(--cws-space-md);
  margin-top: auto;
}

.cws-meta-author,
.cws-meta-date {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cws-meta-author a {
  color: inherit;
  text-decoration: none;
}

.cws-card-meta svg {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
}

/* ---------- HORIZONTAL POST LIST CARD ---------- */
.cws-post-list-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: var(--cws-space-sm);
  padding: var(--cws-space-xs);
  text-decoration: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.cws-post-list-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.cws-post-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cws-post-list-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.cws-post-list-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.cws-post-list-title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

@media (max-width: 480px) {
  .cws-post-list-item {
    grid-template-columns: 100px 1fr;
  }

  .cws-post-list-title {
    -webkit-line-clamp: 2;
  }
}

/* ---------- SIMPLE VERTICAL POST CARD ---------- */
.cws-post-card--simple {
  display: flex;
  flex-direction: column;
  gap: var(--cws-space-xs);
  height: auto;
  padding: var(--cws-space-xs);
  margin-bottom: var(--cws-space-sm);
}

.cws-post-card--simple .cws-simple-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: var(--cws-space-xs);
}

.cws-post-card--simple .cws-simple-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cws-post-card--simple .cws-simple-title {
  margin-bottom: var(--cws-space-xs);
}

.cws-post-card--simple .cws-simple-title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.cws-post-card--simple .cws-simple-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--cws-space-xs);
  margin-top: auto;
}

.cws-post-card--simple .cws-simple-meta span,
.cws-post-card--simple .cws-simple-meta p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  color: inherit;
  text-decoration: none;
}

.cws-post-card--simple .cws-simple-meta a {
  color: inherit;
  text-decoration: none;
}

.cws-post-card--simple .cws-simple-meta svg {
  width: 0.8em;
  height: 0.8em;
  fill: currentColor;
}

/* ---------- FOOTER SHELL ---------- */
.cws-footer {
  width: 100%;
}

.cws-footer__top {
  padding-top: var(--cws-space-lg);
  padding-bottom: var(--cws-space-lg);
}

.cws-footer__bottom {
  padding-top: var(--cws-space-sm);
  padding-bottom: var(--cws-space-sm);
}

.cws-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cws-footer ul li {
  margin-bottom: var(--cws-space-xs);
}

.cws-footer__bottom .copyright-bar {
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
}

/* =========================================================================
   14. POST LIST STYLES (.style-two / .style-three variants)
   ========================================================================= */

.cws-post-list .style-three, 
.cws-post-list .style-two {
    border: 1px solid var(--cws-color-border);
    border-radius: 0;
    margin-bottom: 0;
    list-style: none;
    padding: var(--cws-space-xs);
    width: 100%;
}

.cws-post-list .style-three .style-three-title, 
.cws-post-list .style-two .style-two-title {
    margin-bottom: 0 !important;
    padding-top: 0;
    font-size: inherit;
    /* Remove the fixed line-height here to let the font scale naturally */
}

.cws-post-list .style-three .style-three-title a, 
.cws-post-list .style-two .style-two-title a {
    color: var(--cws-color-text);
    font-size: var(--cws-font-size-h5);
    font-weight: 700;
    text-decoration: none;
    
    /* 2. Apply the clamp directly to the link */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* Default to 3 lines, adjust if needed */
    -webkit-line-clamp: 4; 
    line-clamp: 4;
    
    /* Ensure line-height is applied here for accurate clamping */
    line-height: 1.4; 
}

.cws-post-list .style-two .style-two-title a {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* =========================================================================
   15. SECTION TITLE SQUARE
   Pill heading with gradient + shimmer. Base look lives here so it renders
   with no demo stylesheet active; the demo may restyle it.
   ========================================================================= */

.cotlas-section-heading .section-title-square {
    padding: var(--cws-space-xs) var(--cws-space-sm);
    border-radius: var(--cws-radius-rounded);
    display: flex;
    margin-bottom: 0;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    color: var(--cws-color-bg);
    font-size: var(--cws-font-size-h5);
    font-weight: 700;
    line-height: 24px;
    text-decoration: none;
}

.section-title-square {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, var(--cws-color-primary), var(--cws-color-secondary));
    color: var(--cws-color-bg);
    border: none;
    padding: var(--cws-space-xs) var(--cws-space-md);
    cursor: pointer;
}

.section-title-square::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);
    animation: 2s infinite shimmer
}

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

    100% {
        left: 100%
    }
}

/* =========================================================================
   16. COMMENT BUTTONS (Cotlas comment system)
   ========================================================================= */

.ctc-reply-btn {
    background: none!important;
    border: none!important;
    font-size: 0.78rem!important;
    font-weight: 700!important;
    color: var(--cws-color-green)!important;
    cursor: pointer!important;
    padding: 0!important;
    font-family: inherit!important;
    transition: color 0.15s!important;
}

.ctc-edit-btn {
    background: none!important;
    border: none!important;
    font-size: 0.78rem!important;
    font-weight: 700!important;
    color: var(--cws-color-blue)!important;
    cursor: pointer!important;
    padding: 0!important;
    font-family: inherit!important;
    transition: color 0.15s!important;
}

.ctc-reply-btn:hover, .ctc-edit-btn:hover {
    color: var(--cws-color-link-hover)!important;
}

.ctc-submit {
    background: var(--cws-color-blue)!important;
    border: none!important;
    border-radius: 20px!important;
    padding: 8px 22px!important;
    font-size: 0.88rem!important;
    font-weight: 700!important;
    font-family: inherit!important;
    color: #fff!important;
    cursor: pointer!important;
    transition: background 0.15s!important;
    letter-spacing: 0.01em!important;
}

.ctc-comment__bubble {
    width: 100%;
}

.ctc-cancel-reply {
    background: var(--cws-color-red)!important;
    border: none!important;
    border-radius: 20px!important;
    padding: 8px 22px!important;
    font-size: 0.88rem!important;
    font-weight: 700!important;
    font-family: inherit!important;
    color: #fff!important;
    cursor: pointer!important;
    transition: background 0.15s!important;
    letter-spacing: 0.01em!important;
}

/* =========================================================================
   17. FOOTER COMPONENT
   ========================================================================= */

.cws-footer-col .cws-about-logo {
    width:150px;
}

.cws-footer-col .cws-about-text {
    font-size: var(--cws-font-size-body-sm);
    line-height: 1.6;
    color: var(--cws-color-text);
}

.cws-footer-col {
  width: 100%;
}

.cws-footer-col ul.menu,
.cws-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  
  /* The Magic: Split into 2 columns */
  column-count: 2;
  column-gap: var(--cws-space-md); /* Space between the two columns */
}

.cws-footer-col li {
  margin-bottom: 0!important;
  /* Prevent items from breaking across columns */
  break-inside: avoid;
}

.cws-footer-col a {
  color: var(--cws-color-text); /* Or var(--cws-color-text) depending on your footer background */
  text-decoration: none;
  font-size: var(
  --cws-font-size-h6);
  line-height: 1;
  transition: color 0.2s ease;
}

.cws-footer-col a:hover {
  color: var(--cws-color-primary);
}

@media (max-width: 768px) {
  .cws-footer-col ul.menu,
  .cws-footer-col ul {
    column-count: 2;
  }
}

.cws-footer-col h2 {
    font-size: var(--cws-font-size-h5);
}

.cws-footer-col .cws-social-links .cotlas-social-footer .social-icons-list {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: var(--cws-space-sm);
    margin-top: var(--cws-space-sm);
    margin-bottom: var(--cws-space-sm);
}

.cws-footer-col .cws-newsletter {
    background-color: var(--cws-color-primary);
    padding: var(--cws-space-sm);
    border: 1px solid var(--cws-color-border);
    border-radius: var(--cws-radius-md);
    color: var(--cws-color-bg);
}

.cws-footer-col .cws-newsletter .cotlas-form-form {
    display: flex;
    flex-direction: column;
    gap: var(--cws-space-xs);
    align-items: flex-start;
}

.cws-footer-col .cws-newsletter .cotlas-form-form .cotlas-form-field {
    display: flex;
    margin-top: var(--cws-space-xs);
    margin-bottom: var(--cws-space-xs);
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
}

.cws-footer-col .cws-newsletter .cotlas-form-form .cotlas-form-field input{
    display: flex;
    margin-top: var(--cws-space-xs);
    margin-bottom: var(--cws-space-xs);
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
}

.cws-footer-col .cws-newsletter .cotlas-form-newsletter .cotlas-form-actions {
    margin-top: var(--cws-space-sm);
    margin-bottom: var(--cws-space-sm);
}

@media (max-width: 768px) {
  .cws-footer-col .cws-newsletter .cotlas-form-form {
      margin-top: var(--cws-space-sm); 
      padding: var(--cws-space-sm); 
  }
  .cws-footer-col .cws-newsletter {
      margin: var(--cws-space-md);
  }
  .cws-footer-col h2 {
      font-size: var(--cws-font-size-h4);
  }
}

/* =========================================================================
   18. TOP BAR SOCIAL + DATE/TIME
   ========================================================================= */

.cws-date-time .cotlas-local-datetime {
    font-size: var(--cws-font-size-sm);
    color: var(--cws-color-bg);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--cws-color-text);
    font-weight: 700;
    font-size: var(--cws-font-size-sm);
    /* line-height: var(--cws-font-size-lg); */
    padding: 5px 8px;
    background-color: var(--cws-color-accent);
}

.cws-top-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--cws-space-sm);
}

.cws-top-social .cotlas-social-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--cws-space-sm);
}

.cws-top-social .cotlas-social-links  .social-icons-list {
    display: flex;
    gap: var(--cws-space-sm);
}

.cws-top-social .cotlas-social-links  .social-icons-list .social-link a{
    display: flex;
    gap: var(--cws-space-sm);
}

.cws-top-social .cotlas-social-links  .social-icons-list .social-link a svg{
    width: 1.2em;
    height: 1.2em;
}

.cws-off-canvas-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--cws-space-sm);
    flex-direction: row;
    align-content: center;
}

.cws-off-canvas-social  .social-icons-list {
    display: flex;
    flex-direction: row;
    gap: var(--cws-space-sm);
}

.cws-off-canvas-social  .social-icons-list .social-link{
    display: flex;
    flex-direction: row;
    gap: var(--cws-space-sm);
}

.cws-off-canvas-social .social-icons-list .social-link a {
    display: flex;
    gap: var(--cws-space-sm);
}

.cws-off-canvas-social .social-icons-list .social-link a svg{
    width: 1.6em;
    height: 1.6em;
}

/* =========================================================================
   20. NEWS TICKER
   ========================================================================= */

.cws-news-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999; /* Ensures it stays above headers, popups, and overlays */
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1); /* Optional: subtle shadow at the top edge */
}

.cws-news-ticker .cws-ticker-main {
    align-items: center;
    align-self: center;
    background-color: var(--cws-color-primary);
    bottom: 0px;
    box-shadow: 0px 6px 10px 5px rgba(0, 0, 0, 0.3);
    color: var(--cws-color-bg);
    column-gap: 0px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    font-family: var(--cws-font-body);
    justify-items: center;
    padding-left: 20px;
    padding-right: 20px;
    position: fixed;
    width: 100%;
    z-index: 999;
    margin: 0px auto;
}

@media (max-width: 767px) {
    .cws-news-ticker .cws-ticker-main {
        align-items: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-radius: 5px;
        padding: 5px 10px;
    }
}

.cws-news-ticker .cws-ticker-main .ticker-label {
    align-items: center;
    align-self: center;
    color: var(--cws-color-bg);
    display: flex;
    justify-items: center;
    justify-self: center;
    padding-bottom: 5px;
    padding-top: 5px;
    width: 16%;
    border-right: 2px dotted var(--cws-color-border);
}

@media (max-width: 767px) {
    .cws-news-ticker .cws-ticker-main .ticker-label {
        display:none;
    }
}

.cws-news-ticker .cws-ticker-main .ticker-label .breaking-header-text {
    align-items: center;
    color: var(--cws-color-bg);
    column-gap: 0.5em;
    display: inline-flex;
    font-family: var(--cws-font-body);
    font-size: 18px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    text-transform: uppercase;
    margin: 0px;
    padding: 0px;
}

.cws-news-ticker .cws-ticker-main .ticker-label .breaking-header-text svg {
    width: .8em;
    height: .8em;
    fill: currentColor;
    animation: 1s ease-in-out 0s infinite normal none running blink;
}

@keyframes blink {
    0%,100% {
        opacity: 1
    }

    50% {
        opacity: .3
    }
}

.cws-news-ticker .cws-ticker-main .ticker-label .breaking-header-text .gb-text {
    color: var(--cws-color-bg);
    width: 0px;
    overflow: hidden;
    white-space: nowrap;
    animation: 4s ease 0s infinite normal none running typing;
}

@keyframes typing {
    0%,100% {
        width: 0
    }

    50% {
        width: 180px
    }
}

.cws-news-ticker .cws-ticker-main .ticker-content {
    align-items: center;
    border-bottom-right-radius: 35px;
    border-top-right-radius: 35px;
    display: flex;
    flex-direction: row;
    height: 45px;
    justify-content: flex-start;
    width: 84%;
    padding: 8px 20px;
}

@media (max-width: 767px) {
    .cws-news-ticker .cws-ticker-main .ticker-content {
        border-bottom-right-radius: 0px;
        border-top-right-radius: 0px;
        height: auto;
        width: 100%;
    }
}

/* Mobile ticker spacing */
@media (max-width: 768px) {
  .cws-news-ticker .cws-ticker-main {
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

/* Reserve space for the fixed ticker, only on pages where it renders. */
body:has(.cws-news-ticker) {
  padding-bottom: 45px;
}

/* =========================================================================
   19. HEADER SHELL (used by the header-classic pattern)
   Structure only: spacing and sizing. Colours live in the demo stylesheet.
   ========================================================================= */
.cws-header__mid {
  padding-top: var(--cws-space-sm);
  padding-bottom: var(--cws-space-sm);
}

.cws-logo__img {
  height: auto;
  max-width: 180px;
}

.cws-footer h3,
.cws-footer h4 {
  margin-bottom: var(--cws-space-sm);
}
