/* 1. CONFIGURATION & VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    /* Colors */
    --primary-green: #15803d;    /* green-700 - Titles/Borders */
    --secondary-green: #16a34a;  /* green-600 - Highlights/Buttons */
    --accent-orange: #f97316;    /* orange-500 - Accents */
    --soft-orange: #fdba74;      /* orange-300 - Separators */
    --bg-light: #f3f4f6;         /* gray-100 - Page Background */
    --text-main: #374151;        /* gray-700 - Body Text */
    --text-muted: #4b5563;       /* gray-600 - Subtitles */

    /* Layout */
    --header-height: 7rem;
}

#headerPlaceholder {
  min-height: 7rem; /* Or whatever your header height is */
  display: block;
}

/* 2. GLOBAL STYLES */
html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

main {
    flex-grow: 1;
}

section[id] {
    scroll-margin-top: var(--header-height);
}

/* 3. TYPOGRAPHY & TITLES */
.headingHome {
    color: var(--primary-green);
    font-weight: 700;
    line-height: 1.1; /* Tighter leading often looks better for large responsive text */
    margin-bottom: 1.5rem;

    /* clamp(MIN, PREFERRED, MAX) */
    /* This scales fluidly between 2.5rem and 5rem based on screen width */
    font-size: clamp(2.5rem, 8vw, 3rem);
}

.homeText {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    color: #374151; /* gray-700 */
    md:max-width: 45ch; /* Limits line length for better readability */
}

.mainTitleButtons {
    text-align: center;
    font-weight: 700;
    color: var(--primary-green);
    font-size: 2.25rem;
    padding-top: 6rem;
    margin-bottom: 0;
}

.mainTitle {
    color: var(--primary-green);
    font-weight: 700;
    line-height: 1.2; /* Slightly tighter for larger text */
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;

    /* clamp(MIN, PREFERRED, MAX) */
    /* This scales fluidly from 2rem (32px) to 3.5rem (56px) */
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.columnHeading{
  color: var(--primary-green);
  font-weight: 700;    /* Same as font-extrabold */
  margin-bottom: 1rem; /* Same as mb-4 (16px) */
  line-height: 1.2;

  /* Mobile styles (Default) */
  font-size: 1.35rem;
}

.titleParagraph {
    text-align: center;
    color: var(--text-muted);
    margin-top: 0.5rem;

    /* clamp(MIN, PREFERRED, MAX) */
    /* Scales from 1.125rem (18px) on mobile to 1.5rem (24px) on large screens */
    font-size: clamp(1.1rem, 2vw, 1.25rem);

    /* Ensure line height stays comfortable as text grows */
    line-height: 1.25;
}

.sectionHeading {
    color: var(--primary-green);
    font-weight: 700;    /* Same as font-extrabold */
    margin-bottom: 1rem; /* Same as mb-4 (16px) */
    line-height: 1.2;

    /* Mobile styles (Default) */
    font-size: 1.5rem;   /* text-2xl for phones */
}

.subHeading {
    color: var(--primary-green);
    font-weight: 600;    /* Same as font-semibold */
    margin-top: 1.5rem;  /* Same as mt-6 */
    margin-bottom: 0.75rem; /* Same as mb-3 */
    line-height: 1.3;

    /* Mobile styles (Default) */
    font-size: 1.125rem; /* Same as text-lg */
}

.subSubheading {
    color: var(--primary-green);
    font-weight: 600;       /* Same as font-semibold */
    margin-top: 1rem;       /* Same as mt-4 */
    margin-bottom: 0.5rem;  /* Same as mb-2 */
    line-height: 1.4;

    /* Mobile styles (Default) */
    font-size: 1rem;        /* Standard size for mobile */
}

.sidebarHeading {
    color: var(--primary-green);
    font-weight: 700;    /* Same as font-extrabold */
    margin-bottom: 0.5rem; /* Same as mb-2 */
    padding-left: 0.75rem; /* Same as pl-3 */
    line-height: 1.2;
    font-size: 1.125rem; /* Standardizes it for mobile sidebars */
}

.bodyText {
    color: var(--text-main);
    /* Fluid line height for readability: 1.625 on mobile, 1.5 on desktop */
    line-height: clamp(1.5, 1.7 - 0.2vw, 1.625);
    margin-bottom: 1.25rem;

    /* Perfect Fluid Scale: 16px to 18px */
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);

    /* The "Safety Net" */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Ensure italic highlights still respect the fluid size */
.bodyText.italic {
    font-style: italic;
}

.imageCaption {
    display: block;
    text-align: center;
    color: #6b7280;
    font-style: italic;
    margin-top: 0.5rem;

    /* Mobile Size */
    font-size: clamp(0.65rem, 2vw, 0.75rem);
}

.highlightGreen {
    color: var(--secondary-green);
    font-weight: 600;
}

.sidebarText {
    display: block;                        /* Same as block */
    color: var(--text-main);               /* Same as text-gray-700 */
    padding-left: 0.75rem;                 /* Same as pl-3 */
    padding-top: 0.25rem;                  /* Same as py-1 */
    padding-bottom: 0.25rem;               /* Same as py-1 */
    text-decoration: none;
    border-left: 2px solid transparent;    /* Same as border-l-2 border-transparent */
    transition: all 0.15s ease-in-out;    /* Same as transition-colors duration-150 */
    font-size: 0.875rem;                   /* Standard small size for sidebars */
}

.sidebarText:hover {
    color: var(--secondary-green);         /* Same as hover:text-green-600 */
    border-left-color: var(--accent-orange); /* Same as hover:border-orange-500 */
}

.linkGreen {
    color: var(--secondary-green);       /* Same as text-green-600 */
    font-weight: 600;                    /* Same as font-semibold */
    transition: color 0.15s ease-in-out; /* Same as transition-colors */
    text-decoration: none;               /* Removes default underline */
    display: inline-block;               /* Helps with spacing and alignment */
}

.linkGreen:hover {
    color: var(--primary-green);         /* Same as hover:text-green-700 */
}

.sitemapLink {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sitemapLink:hover {
    color: var(--secondary-green);
    padding-left: 0px;       /* Subtle hover effect */
}

.tableHighlight {
    color: var(--secondary-green); /* Matches your green-700 theme */
    font-weight: 700;           /* Same as font-bold */
}

/* Card Heading Class */
.cardTitle {
    color: var(--text-main); /* gray-800 */
    font-weight: 700;
    margin-bottom: 0.75rem; /* mb-3 */
    line-height: 1.2;

    /* Responsive font: scales between 1.1rem and 1.25rem */
    font-size: clamp(1.1rem, 2vw, 1.25rem);
}

/* Card Body Text Class */
.cardDescription {
    color: var(--text-muted); /* gray-600 */
    margin-bottom: 1rem;      /* mb-4 */

    /* Responsive font: scales between 0.9rem and 1rem */
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.5;
}

.orangeItalic {
    color: var(--accent-orange); /* Uses your orange-500 variable */
    font-style: italic;

    /* Responsive font: scales between 0.75rem (12px) and 0.875rem (14px) */
    font-size: clamp(0.875rem, 1.5vw, 1rem);

    line-height: 1.4;
    display: block; /* Ensures it behaves like a caption or small note */
}

/* 4. REUSABLE COMPONENTS */
/* Update the container holding your 4 cards */
.azImage {
    width: 100%;
    /* Remove height: 250px; */
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.gridColsResponsive {
    display: grid;
    gap: 2rem;
    width: 100%;
    /* Default: 1 column (Mobile) */
    grid-template-columns: 1fr;
}
/* Update your card class to handle internal height */
.homeCard {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;

    /* This is the standard CSS version of Tailwind's shadow-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* This replaces 'transition-shadow duration-300' */
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);

    height: 100%;
}

/* This replaces 'hover:shadow-xl' */
.homeCard:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* This pushes the "Read More" link to the very bottom of the card */
.homeCard a {
    margin-top: auto;
}

.homeCard div:first-of-type {
    flex-grow: 1; /* Pushes the button to the bottom */
}
.visualSeparator {
    background-color: var(--soft-orange);
    height: 3px;
    margin: 2rem 0;
    border-radius: 9999px;
    border: none;
}

.sectionAccent {
    border-left: 4px solid var(--accent-orange);
    padding-left: 1rem;
    color: var(--primary-green);
}

.contentBox {
      background-color: white;
      padding: 2rem;               /* Same as p-8 (32px) */
      border-radius: 0.75rem;      /* Same as rounded-xl */
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                  0 4px 6px -2px rgba(0, 0, 0, 0.05); /* Same as shadow-lg */
      border-left: 8px solid var(--primary-green); /* border-l-8 and green-700 */
    }

    .plainBox {
          background-color: white;
          padding: 2rem;               /* Same as p-8 (32px) */
          border-radius: 0.75rem;      /* Same as rounded-xl */
          box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                      0 4px 6px -2px rgba(0, 0, 0, 0.05); /* Same as shadow-lg */
        }

    .contentList {
        list-style-type: disc;
        list-style-position: outside;
        margin-left: 1.5rem;  /* Same as ml-6 */
        padding: 0;
    }

    /* Make the list items match bodyText exactly */
    .contentList li {
        color: var(--text-main);
        line-height: 1.625;   /* Matches bodyText leading-relaxed */
        margin-bottom: 0.75rem; /* Same as space-y-3 */

        /* Responsive font size matching bodyText */
        font-size: 1rem;      /* Mobile */
    }

    /* Bullet Point Color */
    .contentList li::marker {
        color: var(--accent-orange);
    }

    .contentListHollow {
    list-style: none;
    padding-left: 0;
    margin-left: 0.5rem; /* Slight nudge for alignment */
}

.contentListHollow li {
    color: var(--text-main);
    line-height: 1.625;
    margin-bottom: 0.75rem;
    font-size: 1rem; /* Mobile default */
}

/* Creating the hollow orange circle */
.contentListHollow li::before {
    content: "";
    display: inline-block;
    width: 0.5em;
    height: 0.5em;
    border: 2px solid var(--soft-orange);
    border-radius: 50%;
    margin-right: 0.75em;
    vertical-align: middle;
}

.sitemapList {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;             /* space-y-2 equivalent */
    list-style: none;
    padding: 0;
}

.textLeft {
    text-align: left !important;
}

.textRight{
    text-align: right !important;
}

.textCenter {
    text-align: center !important;
}

/* Generic Table Container */
.tableContainer {
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden; /* Prevents corners from poking out */
}

.table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}

.table th {
    background-color: var(--primary-green);
    color: #ffffff;
    text-align: left;
    padding: 15px;
    font-size: 1.1rem;
}

.table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    line-height: 1.6;
    color: var(--text-main);
    vertical-align: top;
}

/* Specific Column Styling using attribute-friendly logic */
.table td:first-child {
    font-weight: bold;
    color: var(--accent-orange);
    background-color: #fff6ee;
    width: 30%;
}

.bulletPoint {
    align-items: flex-start;
    gap: 0.75rem;          /* Adds space between the bullet and text */
    margin-bottom: 0.5rem; /* Equivalent to mb-2 */
    line-height: 1.625;    /* Matches your bodyText for perfect alignment */
}

/* Optional: If you want to style the bullet/icon specifically */
.bulletPoint i,
.bulletPoint span:first-child {
    flex-shrink: 0;        /* Prevents the bullet from squishing */
    margin-top: 0.25rem;   /* Tiny nudge to center it with the first line of text */
}

.bulletPoint::before {
    content: '•';           /* This generates the dot */
    color: var(--accent-orange); /* Use your variable #f97316 */
    margin-right: 0.5rem;
    font-weight: bold;
    font-size: 1.25rem;      /* Scaled down slightly to match your 'smaller' request */
    flex-shrink: 0;
}

/* Apply this to the container of each card (the white box) */
.infoCard {
    display: flex;
    flex-direction: column;
    height: 100%; /* Important: makes cards in a row the same height */
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* The base class for the button */
.backTopButton {
    position: fixed;
    bottom: 2rem; /* matches bottom-8 */
    right: 1.5rem;  /* matches right-6 */
    background-color: #fdba74; /* matches bg-orange-300 */
    color: white;
    padding: 1rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    transition: opacity 0.3s duration, background-color 0.3s;
    border: none;
    cursor: pointer;
    outline: none;

    /* Default hidden state */
    opacity: 0;
    pointer-events: none;
}

.backTopButton:hover {
    background-color: #f97316; /* matches hover:bg-orange-500 */
}

/* The state class triggered by JavaScript */
.backTopButton.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* This targets your "Read More" or "Take the Quiz" links */
.cardLink {
    margin-top: auto; /* The magic line: pushes the link to the bottom */
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;  /* px-6 mobile safety */
    padding-right: 1.5rem;
}

/* Tablet: 90% width for a "Premium" breathable look */
@media (min-width: 768px) {
    .container {
        max-width: 90%;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Desktop: Cap the width so text doesn't stretch too far */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px; /* The "Sweet Spot" for modern web layouts */
    }
}

/* Mobile Responsiveness (No Scrolling) */
@media (max-width: 768px) {
    /* Force the table to stop behaving like a table */
    .table, .table thead, .table tbody, .table th, .table td, .table tr {
        display: block;
        width: 100% !important;
    }

    /* Hide the header row (the green bar) on mobile */
    .table thead {
        display: none;
    }

    .table tr {
        margin-bottom: 1rem;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
    }

    .table td {
        text-align: left;
        padding: 12px;
        border-bottom: none;
    }

    /* Make the 'Myth' column look like a header for each card */
    .table td:first-child {
        background-color: #fff6ee;
        color: var(--accent-orange);
        font-size: 1rem;
        border-bottom: 1px dashed var(--soft-orange);
    }
}

.irishismCard {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    height: 100%; /* Ensures all cards in a row match height */
}

.irishismCard:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* This is the magic part: it pushes the example to the bottom */
.irishismCard .orangeItalic {
    margin-top: auto;
    padding-top: 1rem; /* Adds a little breathing room above the example */
}

.cardMainContent {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* This centers the text vertically */
    margin: 1rem 0;          /* Adds consistent spacing from heading/example */
}

/* Custom styles for the quiz buttons after an answer is chosen */
.quizButtonDisabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
    filter: grayscale(20%);
    /* Prevents any hover effects from firing */
    transform: none !important;
    box-shadow: none !important;
}

.roundButton {
    display: inline-block;
    margin-top: 1.5rem;      /* mt-6 */
    background-color: #16a34a; /* bg-green-600 */
    color: #ffffff;           /* text-white */
    font-weight: 600;         /* font-semibold */
    padding: 0.75rem 2rem;    /* py-3 px-8 */
    border-radius: 9999px;    /* rounded-full */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); /* shadow-lg */
    transition: background-color 0.3s, box-shadow 0.3s; /* transition-colors */
    text-decoration: none;
}

.roundButton:hover {
    background-color: #15803d; /* bg-green-700 */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); /* shadow-xl */
}

.aboutImage {
  width: 45%;
  max-width: 800px;
  float: right;
  margin: 0 0 1rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  object-fit:cover;
}
@media (max-width: 768px) {
  .aboutImage {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.5rem 0;
  }
}


/* 5. RESPONSIVE DESIGN (Desktop) */
@media (max-width: 768px) {
  .aboutContent {
    display: flex;
    flex-direction: column;
  }

  .aboutImage {
    float: none;
    order: 2;            /* image after text */
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0 0;
  }

  .aboutText {
    order: 1;
  }
}

@media (min-width: 768px) {
    .mainTitleButtons {
        font-size: 3rem;
        padding-top: 5rem;
    }

    .contentBox {
        padding: 2.5rem;         /* Same as md:p-10 (40px) */
    }

    .sectionHeading {
        font-size: 1.875rem; /* text-3xl for tablets/desktops */
    }

    .subHeading {
        font-size: 1.25rem; /* Same as text-xl */
    }

    .contentList li {
        font-size: 1.125rem; /* Matches bodyText text-lg */
      }

    .contentListHollow li {
        font-size: 1.125rem; /* Matches bodyText text-lg */
    }

    .subSubheading {
        font-size: 1.125rem; /* Same as text-lg (18px) */
    }
}

/* 6. RESPONSIVE DESIGN (Mobile adjustments) */
@media (max-width: 768px) {
    h2 { font-size: 1.5rem; }
}

/* Utility Classes */
@media (max-width: 767px) {
    .hiddenMobile {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .hiddenDesktop {
        display: none !important;
    }
}

/* Tablet: Force exactly 2 columns */
@media (min-width: 640px) {
    .gridColsResponsive {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: Force exactly 4 columns */
@media (min-width: 1024px) {
    .gridColsResponsive {
        grid-template-columns: repeat(4, 1fr);
    }
}
