/* IPAN Main Stylesheet */
/* Created: 2026-02-18 by Manus AI */
/* Updated: 2026-02-20 - Changed header color to match IPAN logo */
/* Design: Clean, professional, accessible */

/* ===== CSS Variables ===== */
:root {
    --color-primary: #14B8A6;
    /* ===== CUSTOM COLOR UPDATE - Task: Match Logo Color ===== */
    /* Purpose: Update header background to match IPAN logo blue */
    /* Changed: 2026-02-20 by Manus */
    /* Previous value: #1E3A8A (dark blue) */
    /* New value: #85b2c6 (IPAN logo background blue) */
    /* Extracted from: IPAN logo image RGB(133, 178, 198) */
    /* To revert: Change back to #1E3A8A */
    --color-secondary: #85b2c6;
    /* ===== END CUSTOM COLOR UPDATE ===== */
    
    --color-accent: #F59E0B;
    --color-text: #1F2937;
    --color-text-light: #6B7280;
    --color-bg: #FFFFFF;
    --color-bg-light: #F9FAFB;
    --color-border: #E5E7EB;
    
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--color-secondary);
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== Header ===== */
.site-header {
    background: var(--color-secondary);
    color: white;
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    height: 70px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 0.6rem;
    list-style: none;
}

.main-nav a {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    padding: var(--spacing-xs) 0.4rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

/* ===== Hero Section ===== */
/* ===== HERO SECTION FIX - Task: Remove green background above hero =====
 * Purpose: Eliminate padding-top to make hero image flush with header
 * Changed: 2026-02-20 by Manus
 * To revert: Change padding back to 'var(--spacing-2xl) 0'
 * ===== END HERO SECTION FIX ===== */
.hero {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 0 0 var(--spacing-2xl) 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* ===== Page Header (inner pages) =====
 * Task: IPAN News Page Header Contrast Fix
 * Added: 2026-03-12 by Manus AI
 * Purpose: Provides teal gradient background for page-header sections on inner pages
 *          (News, Campaigns, Documents, Events) so title text is visible
 * To revert: Remove this block
 * ===== END PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
}
.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: #0D9488;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: #D97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-link {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== Feature Boxes ===== */
.feature-boxes {
    padding: var(--spacing-2xl) 0;
    background: var(--color-bg-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.feature-box {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.2s;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-secondary);
}

.feature-box p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

/* ===== Latest Updates ===== */
.latest-updates {
    padding: var(--spacing-2xl) 0;
}

.latest-updates h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--color-secondary);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.post-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s;
}

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

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: var(--spacing-lg);
}

.post-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-secondary);
}

.post-date {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.post-excerpt {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

/* ===== Newsletter Signup ===== */
.newsletter-signup {
    padding: var(--spacing-2xl) 0;
    background: var(--color-primary);
    color: white;
    text-align: center;
}

.newsletter-signup h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--color-secondary);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--color-secondary);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-column h3 {
    margin-bottom: var(--spacing-md);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--spacing-xs);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-column a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
}

.acknowledgement {
    font-size: 0.875rem;
    font-style: italic;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.copyright {
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    /* Hide desktop nav and show hamburger button */
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* ===== MOBILE MENU FIX - Task: Mobile Hamburger Menu =====
     * Purpose: Show the nav when .is-open is toggled by main.js
     * Added: 2026-03-15 by Manus AI
     * Root cause: .main-nav.is-open rule was missing — JS toggled the class
     *             but CSS never responded to it, so menu stayed hidden.
     * To revert: Remove this entire block (lines below until END comment)
     * ===== END MOBILE MENU FIX ===== */

    /* Show nav when hamburger is clicked */
    .main-nav.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-primary, #2B7A78);
        padding: var(--spacing-md, 1rem) 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }

    .main-nav.is-open ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-nav.is-open ul li a {
        display: block;
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1rem;
    }

    .main-nav.is-open ul li:last-child a {
        border-bottom: none;
    }

    /* Show Sign In button inside the open mobile menu */
    .main-nav.is-open + .nav-auth {
        display: none; /* Keep hidden in header row — shown below instead */
    }

    /* Append Sign In link into the open menu via a separate mobile-nav-auth div */
    .mobile-nav-auth {
        display: none;
        padding: 0.75rem 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .main-nav.is-open ~ .mobile-nav-auth {
        display: block;
    }

    /* Animate hamburger spans to X when open */
    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* ===== Get Involved Page Styles =====
 * Task: IPAN Get Involved Page Redesign
 * Added: 2026-03-09 by Manus AI
 * Purpose: Card-grid layout for the Get Involved page using the site's
 *          native CSS variable system. Replaces Tailwind utility classes
 *          that were not being compiled/loaded.
 * To remove: Delete this block and revert page content in DB
 * ===== END Get Involved Page Styles ===== */

/* Page header section */
.gi-header {
    text-align: center;
    padding: var(--spacing-xl) 0 var(--spacing-2xl);
}

.gi-header h1 {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
}

.gi-header p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Main card grid - 3 columns on desktop, 2 on tablet, 1 on mobile */
.gi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

@media (max-width: 1024px) {
    .gi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gi-grid {
        grid-template-columns: 1fr;
    }
}

/* Individual action card */
.gi-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid var(--color-primary);
    display: flex;
    flex-direction: column;
}

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

/* Card colour variants */
.gi-card--blue  { border-top-color: #2563eb; }
.gi-card--green { border-top-color: #16a34a; }
.gi-card--red   { border-top-color: #dc2626; }
.gi-card--purple{ border-top-color: #9333ea; }
.gi-card--amber { border-top-color: #d97706; }
.gi-card--indigo{ border-top-color: #4f46e5; }
.gi-card--teal  { border-top-color: var(--color-primary); }
.gi-card--sky   { border-top-color: var(--color-secondary); }

/* Card icon */
.gi-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: var(--spacing-sm);
    flex-shrink: 0;
}

.gi-card--blue   .gi-card__icon { color: #2563eb; }
.gi-card--green  .gi-card__icon { color: #16a34a; }
.gi-card--red    .gi-card__icon { color: #dc2626; }
.gi-card--purple .gi-card__icon { color: #9333ea; }
.gi-card--amber  .gi-card__icon { color: #d97706; }
.gi-card--indigo .gi-card__icon { color: #4f46e5; }
.gi-card--teal   .gi-card__icon { color: var(--color-primary); }
.gi-card--sky    .gi-card__icon { color: var(--color-secondary); }

/* Card heading */
.gi-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

/* Card body text */
.gi-card p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

/* Card bullet list - no double bullets */
.gi-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-sm) 0;
}

.gi-card ul li {
    color: var(--color-text-light);
    font-size: 0.875rem;
    padding: 0.25rem 0 0.25rem 1.25rem;
    position: relative;
    line-height: 1.5;
}

.gi-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* Card CTA link - pushed to bottom */
.gi-card__link {
    margin-top: auto;
    padding-top: var(--spacing-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-primary);
    transition: gap 0.2s;
}

.gi-card__link:hover {
    gap: 0.625rem;
    color: var(--color-secondary);
}

/* Secondary 2-column grid for supporting cards */
.gi-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

@media (max-width: 640px) {
    .gi-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Secondary card (lighter background) */
.gi-card--light {
    background: var(--color-bg-light);
    border-top-color: var(--color-secondary);
    box-shadow: var(--shadow-sm);
}

/* Call to action banner */
.gi-cta {
    background: var(--color-secondary);
    color: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl) var(--spacing-xl);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.gi-cta h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.gi-cta p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.gi-cta .btn-primary {
    background: white;
    color: var(--color-secondary);
    font-size: 1.0625rem;
    padding: 0.875rem 2.5rem;
}

.gi-cta .btn-primary:hover {
    background: var(--color-bg-light);
    color: var(--color-secondary);
    transform: translateY(-2px);
}

/* Page wrapper */
.gi-page {
    padding: var(--spacing-xl) 0;
}

/* ===== CONTACT PAGE - State Contacts & Committee Members =====
   Task: IPAN State Contacts & Committee Members - 2026-03-09
   ===== END CONTACT PAGE CSS ===== */

.state-contacts-section {
  margin: 2.5rem 0;
}
.state-contacts-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color, #2d6a8a);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color, #2d6a8a);
}
.state-contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.state-contact-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.state-contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color, #2d6a8a);
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.state-contact-person {
  margin-bottom: 0.4rem;
}
.state-contact-person .contact-name {
  font-weight: 600;
  color: #2d3748;
  font-size: 0.9rem;
}
.state-contact-person .contact-phone {
  color: #718096;
  font-size: 0.85rem;
}
.state-contact-person.vacant .contact-name {
  font-style: italic;
  color: #a0aec0;
  font-weight: 400;
}

.committee-section {
  margin: 2.5rem 0;
}
.committee-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color, #2d6a8a);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color, #2d6a8a);
}
.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.committee-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.committee-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  display: block;
  border: 3px solid var(--primary-color, #2d6a8a);
}
.committee-card .member-name {
  font-weight: 700;
  color: #2d3748;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.committee-card .member-role {
  color: var(--primary-color, #2d6a8a);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.committee-card .member-state {
  color: #718096;
  font-size: 0.8rem;
}

/* ===== Get Involved Page Styles =====
 * Task: IPAN Get Involved Page Redesign
 * Added: 2026-03-09 by Manus AI
 * Purpose: Card-grid layout for the Get Involved page using the site's
 *          native CSS variable system. Replaces Tailwind utility classes
 *          that were not being compiled/loaded.
 * To remove: Delete this block and revert page content in DB
 * ===== END Get Involved Page Styles ===== */

/* Page header section */
.gi-header {
    text-align: center;
    padding: var(--spacing-xl) 0 var(--spacing-2xl);
}

.gi-header h1 {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
}

.gi-header p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Main card grid - 3 columns on desktop, 2 on tablet, 1 on mobile */
.gi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

@media (max-width: 1024px) {
    .gi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gi-grid {
        grid-template-columns: 1fr;
    }
}

/* Individual action card */
.gi-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid var(--color-primary);
    display: flex;
    flex-direction: column;
}

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

/* Card colour variants */
.gi-card--blue  { border-top-color: #2563eb; }
.gi-card--green { border-top-color: #16a34a; }
.gi-card--red   { border-top-color: #dc2626; }
.gi-card--purple{ border-top-color: #9333ea; }
.gi-card--amber { border-top-color: #d97706; }
.gi-card--indigo{ border-top-color: #4f46e5; }
.gi-card--teal  { border-top-color: var(--color-primary); }
.gi-card--sky   { border-top-color: var(--color-secondary); }

/* Card icon */
.gi-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: var(--spacing-sm);
    flex-shrink: 0;
}

.gi-card--blue   .gi-card__icon { color: #2563eb; }
.gi-card--green  .gi-card__icon { color: #16a34a; }
.gi-card--red    .gi-card__icon { color: #dc2626; }
.gi-card--purple .gi-card__icon { color: #9333ea; }
.gi-card--amber  .gi-card__icon { color: #d97706; }
.gi-card--indigo .gi-card__icon { color: #4f46e5; }
.gi-card--teal   .gi-card__icon { color: var(--color-primary); }
.gi-card--sky    .gi-card__icon { color: var(--color-secondary); }

/* Card heading */
.gi-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

/* Card body text */
.gi-card p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

/* Card bullet list - no double bullets */
.gi-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-sm) 0;
}

.gi-card ul li {
    color: var(--color-text-light);
    font-size: 0.875rem;
    padding: 0.25rem 0 0.25rem 1.25rem;
    position: relative;
    line-height: 1.5;
}

.gi-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* Card CTA link - pushed to bottom */
.gi-card__link {
    margin-top: auto;
    padding-top: var(--spacing-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-primary);
    transition: gap 0.2s;
}

.gi-card__link:hover {
    gap: 0.625rem;
    color: var(--color-secondary);
}

/* Secondary 2-column grid for supporting cards */
.gi-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

@media (max-width: 640px) {
    .gi-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Secondary card (lighter background) */
.gi-card--light {
    background: var(--color-bg-light);
    border-top-color: var(--color-secondary);
    box-shadow: var(--shadow-sm);
}

/* Call to action banner */
.gi-cta {
    background: var(--color-secondary);
    color: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl) var(--spacing-xl);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.gi-cta h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.gi-cta p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.gi-cta .btn-primary {
    background: white;
    color: var(--color-secondary);
    font-size: 1.0625rem;
    padding: 0.875rem 2.5rem;
}

.gi-cta .btn-primary:hover {
    background: var(--color-bg-light);
    color: var(--color-secondary);
    transform: translateY(-2px);
}

/* Page wrapper */
.gi-page {
    padding: var(--spacing-xl) 0;
}

/* ===== SPREAD THE WORD PAGE - Task: IPAN Spread the Word Page =====
   Purpose: Styles for /spread-the-word page content
   Added: 2026-03-11 by Manus AI
   ================================================================= */

/* Page wrapper */
.stw-page {
    max-width: 860px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

/* Intro block */
.stw-intro {
    background: var(--color-bg-light);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem 2rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin-bottom: var(--spacing-xl);
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Individual section */
.stw-section {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--color-border);
}

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

/* Section icon */
.stw-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--color-primary-light, oklch(0.92 0.04 200));
    color: var(--color-primary);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.stw-section-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-primary);
}

/* Section headings */
.stw-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-heading, #1a2e3b);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.stw-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Section body text */
.stw-section p {
    color: var(--color-text, #374151);
    line-height: 1.75;
    margin-bottom: 1rem;
}

/* Section lists */
.stw-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.stw-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.625rem;
    color: var(--color-text, #374151);
    line-height: 1.7;
}

.stw-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* Tip callout */
.stw-tip {
    background: oklch(0.96 0.02 200);
    border-left: 3px solid var(--color-secondary, #3ABFBF);
    padding: 0.875rem 1.25rem;
    border-radius: 0 0.375rem 0.375rem 0;
    margin-top: 1.25rem;
    font-size: 0.9375rem;
    color: var(--color-text-muted, #4b5563);
    line-height: 1.65;
}

.stw-tip strong {
    color: var(--color-secondary, #3ABFBF);
}

/* Where to send / contact list */
.stw-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.stw-contact-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    color: var(--color-text, #374151);
    line-height: 1.6;
}

.stw-contact-list li:last-child {
    border-bottom: none;
}

/* CTA footer */
.stw-cta {
    background: var(--color-primary);
    color: white;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: 0.75rem;
    margin-top: var(--spacing-xl);
}

.stw-cta h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.stw-cta p {
    font-size: 1.0625rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: white;
}

.stw-cta .stw-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stw-cta .btn-outline-white {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 2px solid white;
    color: white;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.stw-cta .btn-outline-white:hover {
    background: white;
    color: var(--color-primary);
}

.stw-cta .btn-white {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: white;
    color: var(--color-primary);
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.stw-cta .btn-white:hover {
    background: var(--color-bg-light);
    transform: translateY(-2px);
}

/* ===== END SPREAD THE WORD PAGE ===== */

/* ===== MOBILE NAV AUTH DESKTOP HIDE - Task: Mobile Hamburger Menu Fix =====
 * Purpose: Hide the mobile-only Sign In div on desktop.
 *          It is only revealed inside the @media (max-width: 768px) block
 *          when .main-nav.is-open is active.
 * Added: 2026-03-15 by Manus AI
 * To revert: Remove this rule
 * ===== END MOBILE NAV AUTH DESKTOP HIDE ===== */
.mobile-nav-auth {
    display: none;
}

/* ===== MEMBER AUTH NAV BUTTON - Task: IPAN Five-Tier Role System ===== */
/* Purpose: Sign In or Register button in the site navigation header */
/* Added: 2026-03-12 by Manus AI */
.nav-auth {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    flex-shrink: 0;
}
.nav-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ffffff;
    color: var(--color-primary, #2B7A78) !important;
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    border: 2px solid #ffffff;
}
.nav-auth-btn:hover {
    background: var(--color-primary, #2B7A78);
    color: #ffffff !important;
    border-color: #ffffff;
}
.nav-auth-member {
    background: #ffffff;
    border: 2px solid #ffffff;
    color: var(--color-primary, #2B7A78) !important;
}
.nav-auth-member:hover {
    background: var(--color-primary, #2B7A78);
    color: #ffffff !important;
}
@media (max-width: 768px) {
    .nav-auth { display: none; }
}
/* ===== END MEMBER AUTH NAV BUTTON ===== */


/* ===== PROFILE DROPDOWN MENU - Task: Profile Dropdown Nav =====
 * Purpose: Dropdown menu from the profile button showing My Profile,
 *          Admin/Editor Panel (role-dependent), and Sign Out.
 * Added: 2026-03-15 by Manus AI
 * To remove: Delete this block and the corresponding blade changes in app.blade.php
 * ===== END PROFILE DROPDOWN MENU ===== */

.nav-auth-dropdown {
    position: relative;
    display: inline-flex;
}
.nav-auth-chevron {
    margin-left: 0.15rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.nav-auth-dropdown.is-open .nav-auth-chevron {
    transform: rotate(180deg);
}
.nav-auth-menu {
    /* Hidden by default using visibility+opacity so CSS transitions work correctly.
       display:none with animation causes the menu to flash visible before hiding. */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 2000;
    overflow: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.nav-auth-menu.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}
.nav-auth-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    /* Explicit dark colour with !important to override inherited teal from .nav-auth-btn */
    color: #1f2937 !important;
    text-decoration: none !important;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.4;
}
.nav-auth-menu-item:hover {
    background: #f0fafa;
    color: var(--color-primary, #14B8A6) !important;
}
.nav-auth-menu-item svg {
    flex-shrink: 0;
    color: #9ca3af;
    transition: color 0.15s;
}
.nav-auth-menu-item:hover svg {
    color: var(--color-primary, #2B7A78);
}
/* ===== Nav Unread Badge - Task: Nav Dropdown Unread Counts =====
   Purpose: Small pill badge showing unread count on hub dropdown items.
   Added: 2026-04-02 by Manus AI. To remove: Delete this block.
===== END Nav Unread Badge ===== */
.nav-unread-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 9999px;
    background: var(--color-primary, #14B8A6);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    flex-shrink: 0;
}

.nav-auth-menu-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 0.25rem 0;
}
.nav-auth-menu-signout {
    color: #6b7280;
}
.nav-auth-menu-signout:hover {
    background: #fef2f2;
    color: #dc2626;
}
.nav-auth-menu-signout:hover svg {
    color: #dc2626;
}
.mobile-nav-auth-links {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}
.mobile-nav-auth-link {
    display: block;
    width: 100%;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
    font-family: inherit;
}
.mobile-nav-auth-link:hover {
    background: rgba(255,255,255,0.15);
}
.mobile-nav-auth-signout {
    color: rgba(255,255,255,0.75);
}
/* ===== END PROFILE DROPDOWN MENU ===== */

/* ===== Hub Archive Feature ===== */
.ch-thread-row { display: flex; align-items: center; gap: 0.5rem; }
.ch-thread-row .ch-thread-card { flex: 1; }
.ch-archive-form { flex-shrink: 0; }
.ch-archive-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.25rem 0.6rem; font-size: 0.72rem; font-weight: 500;
    color: #6b7280; background: #f3f4f6; border: 1px solid #d1d5db;
    border-radius: 0.375rem; cursor: pointer; white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.ch-archive-btn:hover { background: #e5e7eb; color: #374151; }
.ch-archive-btn--restore { color: #0d9488; border-color: #0d9488; background: #f0fdfa; }
.ch-archive-btn--restore:hover { background: #ccfbf1; }
.ch-archive-section { margin-top: 1.5rem; border-top: 1px dashed #d1d5db; }
.ch-archive-toggle {
    display: flex; align-items: center; gap: 0.4rem; width: 100%;
    padding: 0.75rem 0; font-size: 0.8rem; font-weight: 600; color: #6b7280;
    background: none; border: none; cursor: pointer; text-align: left;
}
.ch-archive-toggle:hover { color: #374151; }
.ch-archive-chevron { transition: transform 0.2s; }
.ch-archive-section--open .ch-archive-chevron { transform: rotate(180deg); }
.ch-archive-list { display: none; }
.ch-archive-section--open .ch-archive-list { display: block; }
.ch-thread-card--archived { opacity: 0.65; }
.ch-archived-badge {
    display: inline-block; padding: 0.1rem 0.4rem; font-size: 0.65rem;
    font-weight: 600; color: #6b7280; background: #f3f4f6;
    border: 1px solid #d1d5db; border-radius: 0.25rem; text-transform: uppercase;
    letter-spacing: 0.04em;
}
/* ===== End Hub Archive Feature ===== */
