/*
 * Streamlined GWS.css - Cleaned from Webflow boilerplate.
 * Focus on foundational resets, core layout, and custom GWS styles.
 */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Oswald:wght@200..700&family=Vollkorn:ital,wght@0,400..700;1,400..700&display=swap');


/* --- CSS Reset / Base Styles --- */
html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    font-family: sans-serif;
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    color: #333;
    background-color: #fff;
    font-family: 'Montserrat', sans-serif; /* Primary font for the site */
    font-size: 16px; /* Base font size */
    line-height: 1.6; /* Improved line height */
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
    display: block;
}

audio, canvas, progress, video {
    display: inline-block;
    vertical-align: baseline;
}

audio:not([controls]) {
    height: 0;
    display: none;
}

[hidden], template {
    display: none;
}

a {
    background-color: transparent;
    text-decoration: none;
    color: inherit;
}

a:active, a:hover {
    outline: 0;
}

a:focus-visible { /* For accessibility, provides clear focus indicator */
    outline: 2px solid var(--medium-aquamarine);
    outline-offset: 2px;
}

abbr[title] {
    border-bottom: 1px dotted;
}

b, strong {
    font-weight: bold;
}

dfn {
    font-style: italic;
}

mark {
    background: #ff0;
    color: #000;
}

small {
    font-size: 80%;
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -.5em;
}

sub {
    bottom: -.25em;
}

img {
    border: 0;
    max-width: 100%;
    vertical-align: middle;
    display: inline-block;
}

svg:not(:root) {
    overflow: hidden;
}

figure {
    margin: 0 0 10px;
}

figcaption {
    margin-top: 5px;
    text-align: center;
}

hr {
    box-sizing: content-box;
    height: 0;
}

pre {
    overflow: auto;
}

code, kbd, pre, samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

button, input, optgroup, select, textarea {
    color: inherit;
    font: inherit;
    margin: 0;
}

button {
    overflow: visible;
}

button, select {
    text-transform: none;
}

button, input[type="button"], input[type="reset"] {
    cursor: pointer;
    border: 0;
}

button[disabled], input[disabled] {
    cursor: default;
}

button::-moz-focus-inner, input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

input {
    line-height: normal;
}

input[type="checkbox"], input[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

legend {
    border: 0;
    padding: 0;
}

textarea {
    overflow: auto;
}

optgroup {
    font-weight: bold;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

td, th {
    padding: 0;
}

ul, ol {
    margin-top: 0;
    margin-bottom: 10px;
    padding-left: 40px;
}

/* Basic utility classes */
.block {
    display: block;
}

.inline-block {
    max-width: 100%;
    display: inline-block;
}

.clearfix:before, .clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.hidden {
    display: none;
}

/* Basic Form Styles */
.form-done {
    text-align: center;
    background-color: #ddd;
    padding: 20px;
    display: none;
}

.form-fail {
    background-color: #ffdede;
    margin-top: 10px;
    padding: 10px;
    display: none;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
    display: block;
}

.input-field, .select-field {
    width: 100%;
    height: 38px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.42857;
    display: block;
}

.input-field:-moz-placeholder, .select-field:-moz-placeholder {
    color: #999;
}

.input-field::-moz-placeholder, .select-field::-moz-placeholder {
    color: #999;
    opacity: 1;
}

.input-field::-webkit-input-placeholder, .select-field::-webkit-input-placeholder {
    color: #999;
}

.input-field:focus, .select-field:focus {
    border-color: var(--medium-aquamarine);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(126, 196, 189, 0.4);
}

.input-field[disabled], .select-field[disabled], .input-field[readonly], .select-field[readonly], fieldset[disabled] .input-field, fieldset[disabled] .select-field {
    cursor: not-allowed;
}

.input-field[disabled]:not(.input-field-disabled), .select-field[disabled]:not(.input-field-disabled), .input-field[readonly], .select-field[readonly], fieldset[disabled]:not(.input-field-disabled) .input-field, fieldset[disabled]:not(.input-field-disabled) .select-field {
    background-color: #eee;
}

textarea.input-field, textarea.select-field {
    height: auto;
}

.select-field {
    background-color: #f3f3f3;
}

.select-field[multiple] {
    height: auto;
}

.form-label {
    cursor: pointer;
    margin-bottom: 0;
    font-weight: normal;
    display: inline-block;
}

.radio {
    margin-bottom: 5px;
    padding-left: 20px;
    display: block;
}

.radio:before, .radio:after {
    content: " ";
    display: table;
}

.radio:after {
    clear: both;
}

.radio-input {
    float: left;
    margin: 3px 0 0 -20px;
    line-height: normal;
}

/* Base grid layout */
.container {
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
}

.container:before, .container:after {
    content: " ";
    display: table;
}

.container:after {
    clear: both;
}

.row {
    margin-left: -10px;
    margin-right: -10px;
}

.row:before, .row:after {
    content: " ";
    display: table;
}

.row:after {
    clear: both;
}

.row .row {
    margin-left: 0;
    margin-right: 0;
}

.col {
    float: left;
    width: 100%;
    min-height: 1px;
    padding-left: 10px;
    padding-right: 10px;
    position: relative;
    box-sizing: border-box;
}

.col .col {
    padding-left: 0;
    padding-right: 0;
}

/* Basic column widths */
.col-1 { width: 8.33333%; }
.col-2 { width: 16.6667%; }
.col-3 { width: 25%; }
.col-4 { width: 33.3333%; }
.col-5 { width: 41.6667%; }
.col-6 { width: 50%; }
.col-7 { width: 58.3333%; }
.col-8 { width: 66.6667%; }
.col-9 { width: 75%; }
.col-10 { width: 83.3333%; }
.col-11 { width: 91.6667%; }
.col-12 { width: 100%; }

/* --- Custom GWS Styles --- */

/* Global Variables */
:root {
    --gws-purple: #3b0b4c; /* Original dark purple */
    --gws-green: #8da585;
    --gws-light-purple: #9d85a5; /* This is the light purple for sections */
    --gws-dark-purple-footer: #2a0836; /* Slightly darker purple for footer */
    --medium-aquamarine: #7ec4bd;
    --white-smoke: whitesmoke;

    /* New variables for text colors on colored backgrounds */
    --text-on-green: var(--gws-purple); /* Dark purple text on green sections */
    --text-on-light-purple: var(--gws-dark-purple-footer); /* Darker purple text on light purple sections */
    --text-on-dark-purple: #ddd; /* Light grey text on dark purple backgrounds */
    --dark-green-text: #5e7a57; /* A darker shade of green for text */
}

/* Headings */
h1 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 44px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gws-purple);
}

h2 {
    margin-top: 20px;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    color: var(--gws-purple);
}

h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gws-purple);
}

h4, h5, h6 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.5;
    color: var(--gws-purple);
}
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }


p {
    margin-top: 0;
    margin-bottom: 1.5em;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

blockquote {
    font-family: 'Vollkorn', serif; /* Distinct serif for quotes */
    font-style: italic;
    font-size: 1.1em;
    line-height: 1.6;
    border-left: 5px solid var(--medium-aquamarine);
    margin: 20px 0;
    padding: 10px 20px;
    color: #555;
}

/* Custom Button Styles */
.button {
    color: var(--gws-purple);
    text-align: center;
    background-color: transparent;
    border: 1px solid var(--gws-purple);
    border-bottom-width: 2px;
    padding: 15px 33px;
    font-family: 'Vollkorn', serif; /* Retain italic serif for buttons */
    font-size: 19px;
    font-style: italic;
    text-decoration: none;
    transition: background-color .3s, color .3s;
    display: inline-block;
    cursor: pointer;
    border-radius: 5px;
}

.button:hover, .button:focus {
    background-color: var(--gws-light-purple);
    color: white;
    outline: 2px solid var(--gws-light-purple);
    outline-offset: 2px;
}

.button.form {
    border-width: 1px;
    border-color: var(--gws-purple);
    color: var(--gws-purple);
    margin-top: 23px;
    margin-bottom: 24px;
    padding-left: 54px;
    padding-right: 54px;
}

.button.form:hover, .button.form:focus {
    background-color: var(--medium-aquamarine);
    color: white;
    outline: 2px solid var(--medium-aquamarine);
    outline-offset: 2px;
}

/* Header Section */
.header {
    color: #fff;
    text-align: center;
    background-image: linear-gradient(rgba(132, 53, 160, .55), rgba(132, 53, 160, .55)), url('./logo.png');
    background-position: 0 0, center center;
    background-repeat: repeat, no-repeat;
    background-size: auto, cover;
    background-attachment: scroll, scroll;
    padding: 0 10px 40px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.header.project-page {
    background-image: linear-gradient(rgba(100, 209, 198, .55), rgba(100, 209, 198, .55)), url('./ttrpg_items.jpg');
    padding-top: 77px;
    padding-bottom: 77px;
}

/* Navbar */
.navbar {
    background-color: var(--gws-green);
    padding: 18px 0;
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.container-4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
    padding: 0 10px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-title {
    color: var(--gws-purple);
    margin: 0;
    font-size: 20px;
    font-family: 'Montserrat', sans-serif; /* Uniform with nav links */
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-link, .nav-link-copy { /* Apply styles to both classes for uniformity */
    color: var(--gws-purple);
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    transition: border-color .3s, color .3s;
    display: inline-block;
}

.nav-link:hover, .nav-link:focus, .nav-link-copy:hover, .nav-link-copy:focus {
    border-bottom-color: var(--gws-light-purple);
    color: var(--gws-light-purple);
    outline: none;
}

.nav-link.current, .nav-link-copy.current {
    color: var(--gws-purple);
    border-bottom-color: var(--gws-purple);
}

/* Mobile Menu Button */
.menu-button {
    display: none;
    cursor: pointer;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-left: auto;
}

.menu-button:hover {
    background-color: rgba(0,0,0,0.1);
}

.icon-nav-menu {
    width: 24px;
    height: 2px;
    background-color: var(--gws-purple);
    position: relative;
    transition: all 0.3s ease;
}

.icon-nav-menu::before,
.icon-nav-menu::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--gws-purple);
    transition: all 0.3s ease;
}

.icon-nav-menu::before {
    top: -8px;
}

.icon-nav-menu::after {
    top: 8px;
}

/* Mobile Menu Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 999;
}

/* Sections */
.section {
    padding: 80px 20px;
    border-bottom: 1px solid #eee;
}

#About {
    background-color: var(--gws-green);
    color: var(--gws-purple); /* Text color: Darker purple */
}
#About h2, #About p, #About .about-text {
    color: var(--gws-purple); /* Explicitly set text color to darker purple */
}

#Groups {
    background-color: var(--gws-light-purple); /* Light purple for Groups */
    color: white; 
}
#Groups h2, #Groups h3, #Groups p, #Groups .paragraph-2 {
    color: white; 
}

#Workshops {
    background-color: var(--gws-green);
    color: var(--gws-purple); /* Default text for this section */
}
#Workshops h2 {
    color: var(--gws-purple); /* Workshops heading is dark purple */
}
/* Note: Text inside .project-wrapper (cards) is handled within their own rules below */

#Talks {
    background-color: var(--gws-light-purple); /* Light purple for Talks */
    color: white; 
}
#Talks h2, #Talks h3, #Talks .team-title, #Talks .role {
    color: white; 
}

#Contact { /* "Get in Touch" section - set to green */
    background-color: var(--gws-green);
    color: var(--gws-purple); /* Text color: Darker purple */
}
#Contact h2, #Contact h3, #Contact p, #Contact a, #Contact .social-link-text {
    color: var(--gws-purple); /* Explicitly set text color to darker purple */
}


/* Dividers */
.divider {
    width: 80px;
    height: 2px;
    background-color: var(--gws-purple);
    margin: 20px auto 40px auto;
}

.divider.grey {
    background-color: #ccc;
}

/* About Section Specifics */
.about-section {
    padding: 60px 20px;
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 16px;
    line-height: 1.8;
    /* Color handled by #About rule */
}

.team-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

.member {
    text-align: center;
    margin: 20px;
    width: 250px;
}

.team-image {
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.team-title {
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 600;
    text-transform: capitalize;
    /* Color handled by the parent section rules */
}

.role {
    font-size: 14px;
    /* Color handled by the parent section rules */
}

/* Groups Section Specifics */
.container-3 {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 10px;
}

.grey-icon-wrapper {
    margin-bottom: 20px;
    text-align: center;
}

/* --- Align Group Columns --- */
#Groups .row {
    display: flex;
    flex-wrap: wrap; /* Ensures columns wrap correctly on smaller screens */
}

.big-icon {
    width: 100%;        /* Make image fill the column's width */
    height: 350px;      /* Set a fixed height for both images */
    object-fit: cover;  /* Scale image to fill the space, cropping excess */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.push-top {
    margin-top: -30px;
}

.paragraph-2 {
    font-style: italic;
    text-align: center;
    /* Color handled by #Groups rule above */
}

/* Workshops Section Specifics */
.container-2 {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
}

.project-wrapper {
    background-color: var(--gws-light-purple); /* Light purple background for the cards */
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: block;
}

.project-wrapper:hover, .project-wrapper:focus {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    outline: none;
}

.project-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.project-info {
    padding: 20px;
    text-align: left;
}

.project-title {
    font-size: 18px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--gws-purple); /* Dark text for contrast on light purple card */
}

.text-block, .text-block-2, .text-block-3 {
    font-size: 16px;
    line-height: 1.7;
    color: #333; /* Dark grey text for legibility on light purple card */
}

/* Contact Section Specifics */
.contact-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    /* Color handled by #Contact rule above */
}

.icon-wrapper {
    margin-bottom: 20px;
}

.icon-wrapper img {
    max-width: 70px;
    height: auto;
}

.heading-10, .heading-11 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    /* Color handled by #Contact rule above */
}

.social-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    transition: opacity 0.2s;
}

.social-wrapper:hover, .social-wrapper:focus {
    opacity: 0.8;
}

.social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.social-link-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    text-decoration: underline;
    /* Color handled by #Contact rule above */
}

.link {
    text-decoration: underline;
    transition: opacity 0.2s;
    /* Color handled by #Contact rule above */
}

.link:hover, .link:focus {
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: var(--gws-dark-purple-footer); /* Darker purple for footer */
    padding: 40px 20px;
    text-align: center;
    color: #ddd;
}

.footer-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.footer-text {
    font-size: 14px;
    color: #aaa;
    font-family: 'Montserrat', sans-serif;
}

/* --- Responsive Adjustments (Media Queries) --- */

/* Tablet and smaller screens (up to 991px wide) */
@media screen and (max-width: 991px) {
    .container {
        max-width: 728px;
    }

    /* Mobile navigation overrides */
    .nav-menu {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below the navbar */
        left: 0;
        right: 0;
        background-color: var(--gws-green); /* Match navbar background */
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        padding: 20px;
        text-align: center;
        z-index: 990; /* Below navbar, above content */
        overflow-y: auto;
        height: calc(100vh - 69px); /* Adjust 69px to your navbar's height */
    }

    .nav-menu.open { /* Class toggled by JS to show menu */
        display: flex;
    }

    /* nav-link and nav-link-copy uniformity for mobile menu */
    .nav-link, .nav-link-copy {
        margin: 10px 0;
        padding: 10px 0;
        border-bottom: none; /* No underline on mobile links */
        width: 100%; /* Full width for tap target */
    }

    .nav-link:hover, .nav-link:focus, .nav-link-copy:hover, .nav-link-copy:focus {
        background-color: rgba(0,0,0,0.1);
    }

    .menu-button {
        display: block;
    }

    /* Column adjustments for tablets */
    .col-small-6 {
        width: 50%;
    }
    .col-small-small-stack { /* Force elements to stack on very small tablets */
        width: 100%;
        float: none;
    }

    .header h1 {
        font-size: 36px;
        line-height: 45px;
    }

    .main-subtitle {
        font-size: 14px;
        line-height: 20px;
    }

    .member {
        width: 45%;
    }

    .project-wrapper {
        margin-bottom: 20px;
    }
}

/* Mobile landscape and smaller (up to 767px wide) */
@media screen and (max-width: 767px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .col { /* All columns stack on mobile */
        width: 100%;
        float: none;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .row .col {
        margin-bottom: 0;
    }

    .team-row {
        flex-direction: column;
        align-items: center;
    }

    .member {
        width: 80%;
        margin: 20px auto;
    }

    .header h1 {
        font-size: 30px;
        line-height: 40px;
    }

    .logo-title {
        font-size: 18px;
    }

    .project-wrapper {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .big-icon {
        width: 90%;
        margin: 0 auto;
    }
}

/* Mobile portrait (up to 479px wide) */
@media screen and (max-width: 479px) {
    .section {
        padding: 40px 15px;
    }

    .header {
        padding: 40px 15px;
    }

    .header h1 {
        font-size: 26px;
        line-height: 35px;
    }

    .main-subtitle {
        font-size: 13px;
        line-height: 18px;
    }

    .logo-title {
        font-size: 16px;
    }

    .button {
        font-size: 16px;
        padding: 12px 25px;
    }
}