
/* main colourway i want the site to use. */

:root {
    --purple: #42145b;
    --purple-light: #eee2f7;
    --purple-mid: #694487;
    --mint: #e1f3ea;
    --text: #352d48;
    --white: #ffffff;
}


/* getting rid of the deafult spacing*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}




body {
    font-family: Arial, sans-serif;
    color: var(--text);
    background-color: var(--white);

     min-height: 100vh;
    display: flex;
    flex-direction: column;

}

main {
    flex: 1;
}


/* for links */

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


/* now images */

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


/* 6. now for the skip link */

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    padding: 12px 18px;
    background-color: var(--purple);
    color: var(--white);
    z-index: 1000;
}

.skip-link:focus {
    top: 10px;
}


/* header background */

.site-header {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 63px;
    background-color: var(--purple-light);
    box-shadow: 0 2px 5px rgba(66, 20, 91, 0.1);
}


/* content of the header */

.header-inner {
    max-width: 1170px;
    height: 100%;
    margin: 0 auto;

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


/* Happy Flow Lucky name */

.wordmark {
    font-family: "Nunito Sans", Arial, sans-serif;
    font-size: 27px;
    font-weight: 700;
    color: var(--purple);
    letter-spacing: -1px;
}


/* layout of navigation */

.primary-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}


/* links for nav*/

.primary-nav a {
    font-family: "Nunito Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--purple);
    transition: opacity 0.2s ease;
}


/* making text effect when hovering */

.primary-nav a:hover {
    opacity: 0.65;
}


/* hide menu unless they click (will add with js later)*/

.menu-toggle {
    display: none;
}

.hero {
    position: relative;
    width: 100%;
    height: 450px;
    background-color: var(--mint);
    overflow: hidden;
}

/* now for the photo */

.hero-image {
    position: absolute;
    top: 0;
    right: 0;

    width: 55%;
    height: 100%;

}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 45%;
}

.hero-content {
    position: relative;
    z-index: 3;

    max-width: 1170px;
    height: 100%;
    margin: 0 auto;

    padding-top: 35px;
}

.hero-content h1 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 62px;
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -2px;

    color: var(--purple);
    max-width: 520px;
}

/* now styling the paragraph */

.hero-content p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.43;

    max-width: 430px;
    margin-top: 16px;

    color: var(--text);

}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    margin-top: 16px;
    padding: 12px 38px;
    background-color: var(--purple-mid);
    color: var(--white);

    font-size: 16px;
    font-weight: 600;

    border-radius: 30px;
}

/* now for button animation */

.primary-button:hover {
    background-color: var(--purple);

}

/* arrow for button */

.primary-button span {
    font-size: 21px;
    font-weight: 400;
}


.hero-curve {
    position: absolute;
    top: 0;
    left: 0;

    width: 56%;
    height: 100%;

    z-index: 1;
    pointer-events: none;
}

/* information cards section now */

.information-section {
    width: 100%;
    background-color: var(--white);
    padding: 14px 0;
}

.cards-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.card-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 9px;
}

/* want to give the cards background and curved edges too */

.info-card {
    border-radius: 12px;
    overflow: hidden;
    min-height: 300px;
}

/* now for the our mission and join us cards */

.mission-card, .join-card {
    background-color: var(--mint);
}

/* our projects */

.projects-card {
    background-color: var(--purple-light);
}

/* make the entire card clickable for users */

.card-link {
    display: block;
    height: 100%;
    padding: 10px;
}

/* Space around the card text */

.card-content {
    padding: 14px 10px 12px;
}

/* card headings bit */

.card-content h2 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.1;

    color: var(--purple);
    margin-bottom: 8px;

}

/* card descriptions for under */

.card-content p {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text);
}

/* soap section for the bottom of the page */

.soap-section {
    position: relative;
    width: 100%;
    height: 250px;
    background-color: var(--purple-light);
    overflow: hidden;
    margin-top: 0px;
}

/* left image bit */

.soap-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 52%;
    height: 100%;
    z-index: 1;
}

.soap-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

/* right content with text */

.soap-content {
    position: relative;
    z-index: 3;
    margin-left: 59%;
    padding-top: 32px;
    padding-right: 48px;
    max-width: 500px;
}

.soap-content h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.05;
    color: var(--purple);
    margin-bottom: 10px;
}

.soap-content p {
    font-size: 16px;
    line-height: 1.4;
    color: var(--text);
    max-width: 470px;
    margin-bottom: 18px;
}

/* outlined button */

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    padding: 10px 34px;
    border: 2px solid #8d6aac;
    border-radius: 30px;

    background-color: transparent;
    color: var(--purple);
    font-size: 16px;
    font-weight: 600;
}

.secondary-button:hover {
    background-color: rgba(141, 106, 172, 0.08);
}

.secondary-button span {
    font-size: 22px;
    line-height: 1;
}

/* curve */

.soap-curve {
    position: absolute;
    top: 0;
    left: 44%;
    width: 12%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.soap-curve-fill {
    fill: var(--purple-light);
}

.soap-curve-line {
    fill: none;
    stroke: #d9c3ef;
    stroke-width: 30;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.95;
}

/* footer */

.site-footer {
    width: 100%;
    background-color: var(--purple-mid);
    color: var(--white);
    padding: 22px 0;
    flex-shrink: 0;

}

/* the 3 column footer layout i want */

.footer-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.2fr 1.05fr 1.45fr;
    gap: 35px;

    align-items: stretch;
}

/* footer charity info */

.footer-about h2 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-about p {
    font-size: 13px;
    line-height: 2.3;
}

/* footer contact deetz */

.footer-socials, .footer-links  {
    border-left: 1px solid rgba(255, 255, 255, 0.45);
    padding-left: 35px;

}

.footer-socials p {
    font-size: 13px;
    line-height: 1.8;
}

.footer-socials strong {
    font-weight: 600;
}

.footer-socials a:hover {
    text-decoration: underline;
}

/* footer quick links sec for socials etc */


.footer-links h2 {
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;

    list-style: none;
}

.footer-links a {
    font-size: 12px;
    white-space: nowrap;
}

.footer-links a:hover {
    text-decoration: underline;
}   

/* all the decor */



.hero-blob-top {
    top: 45px;
}

.hero-blob-bottom {
    bottom: 25px;
    transform: scaleY(-1);
}


/* 2. HERO BOTANICAL SPRIG */

.hero-sprig {
    position: absolute;
    left: 425px;
    bottom: 22px;

    width: 115px;
    height: auto;
    object-fit: contain;

    z-index: 4;
    opacity: 0.85;

    transform: rotate(-6deg);
    transform-origin: bottom left;

    pointer-events: none;
}


/* 3. CARD DECORATIVE LEAVES */

.card-link {
    position: relative;
}

.card-link img.card-decoration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 65px;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    z-index: 2;
    opacity: 0.45;
    pointer-events: none;
}


/* 4. SOAP SECTION BOTANICAL SPRIG */

/* Lavender botanical decoration */

.soap-sprig {
    position: absolute;

    right: 25px;
    bottom: 5px;
    top: auto;

    width: 150px;
    height: 235px;

    object-fit: contain;
    object-position: center bottom;

    z-index: 2;
    opacity: 0.8;

    pointer-events: none;
}


/* going to use the same header proportions for consistency */

.support-hero-content .primary-button {
    margin-top: 20px;
}

.support-hero-curve {
    position: absolute;
    top: 0;
    left: 0;

    width: 56%;
    height: 100%;

    z-index: 1;
    pointer-events: none;
}



/* .hero-curve {
    position: absolute;
    top: 0;
    left: 0;

    width: 56%;
    height: 100%;

    z-index: 1;
    pointer-events: none;
}

*/

/* Support Us hero section */

.support-hero {
    position: relative;
    width: 100%;
    height: 450px;
    background-color: var(--purple-light);
    overflow: hidden;
    
}

/* Right side photograph */

.support-hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
}

.support-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Left side text content */

.support-hero-content {
    position: relative;
    left: -60px;
    z-index: 3;

    max-width: 1170px;
    height: 100%;
    margin: 0 auto;
    padding-top: 65px;
}

/* Main hero heading */

.support-hero-content h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 58px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;

    color: var(--purple);
    max-width: 550px;
}

/* Supporting paragraph */

.support-hero-content p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;

    max-width: 430px;
    margin-top: 18px;
    color: var(--text);
}

/* support our mission section now */

.support-mission {
    position: relative;
    background-color: var(--white);
    padding: 48px 24px 65px;
    text-align: center;
    z-index: 1;
}

/* now for the main contents section */

.support-section-inner {
    width: min(1170px, 100%);
    margin: 0 auto;
}

/* decorative heading (font etc i do dashes later) */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-bottom: 18px;

}

.section-heading h2 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--purple);
}

.support-bottom-wave {
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 35px;

    display: block;
    z-index: 4;
    pointer-events: none;
}

/* now the 3 dashes */


/* three symmetrical decorative rays */

.heading-rays {
position: relative;
display: inline-block;
flex: 0 0 36px;

width: 36px;
height: 42px;

/* middle straigjt line*/
background: linear-gradient(
    #b98cd9,
    #b98cd9
    ) 10px center / 17px 2px no-repeat;
}

/* for both top and bottom ones */

.heading-rays::before,
.heading-rays::after {
    content: "";
    position: absolute;

    left: 10px;
    width: 17px;
    height: 2px;

    background-color: #b98cd9;
    border-radius: 2px;
}

/* top ray */

.heading-rays::before {
    top: 9px;
    transform: rotate(35deg);
}

/* bottom ray */

.heading-rays::after {
    bottom: 9px;
    transform: rotate(-35deg);
}

/* mirror the right-hand decoration */

.heading-rays:last-child {
    transform: scaleX(-1);
}




.support-mission p {
    max-width: 790px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
}

/* mission section now */

.mission-bottom-wave {
    position: absolute;
    left: 0;
    bottom: -34px;

    width: 100%;
    height: 35px;

    display: block;
    z-index: 2;
    pointer-events: none;
}

/* green background */

.support-ways {
    position: relative;
    width: 100%;
    background-color: var(--mint);

    padding: 85px 24px 60px;

    text-align: center;
}

.ways-intro {
    max-width: 660px;
    margin: 0 auto 28px;

    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
}



.support-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--white);
    z-index: 5;
    pointer-events: none;
}

/* now section for the 3 cards */

.support-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 24px;

    width: 100%;
    max-width: 1100px;
    margin: 36px auto 0;
}

/* now the invididual whiter cards */

.support-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-height: 320px;
    padding: 30px 28px;

    background-color: var(--white);
    border-radius: 14px;

    text-align: center;
    box-shadow: 0 3px 12px rgba(66, 20, 91, 0.06);


}

/* now for the circular backgrounds for icons etc */

.support-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 70px;
    height: 70px;
    margin-bottom: 20px;

    border-radius: 50%;
    color: var(--purple);
}

/* make sure icon sizes should be good */

.support-icon svg {
    width: 35px;
    height: 35px;
}

/* pastel-ish motif background for each of the icons */

.shop-icon {
    background-color: var(--purple-light);
}

.share-icon {
    background-color: var(--mint);
}

.partner-icon {
    background-color: #f3e5ee;
}

/* now the headings of each card */

.support-card h3 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;

    color: var(--purple);
    margin-bottom: 14px;
}

/* now for card contents (paras etc) */

.support-card p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);

    margin-bottom: 24px;
}

/* buttons which go inside the cards */

.support-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin-top: auto;
    padding: 11px 27px;

    background-color: var(--purple-mid);
    color: var(--white);

    font-size: 14px;

    font-weight: 600;

    border-radius: 30px;
    transition: background-color 0.2s ease;
}

/* now for hover effect */

.support-card:hover {
    background-color: var(--purple-light);
}

/* arrows which are inside the buttons */

.support-card-button span {
    font-size: 19px;
    line-height: 1;
}

/* main contact section- gonna use the same sort of logic for spacing and rule of 3rds etc ive used in previous pages*/

.contact-section {
    position: relative;
    width: 100%;
    min-height: 760px;
    background-color: var(--mint);
    overflow: hidden;
}

/* photograph on the right side */

.contact-image {
    position: absolute;
    top: 0;
    right: 0;

    width: 55%;
    height: 100%;
    z-index: 0;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* curved boundary between content and photograph */

.contact-curve {
    position: absolute;
    top: 0;
    left: 0;

    width: 56%;
    height: 100%;

    z-index: 1;
    pointer-events: none;
}

/* left content containing heading and form */

.contact-content {
    position: relative;
    left: -60px;
    z-index: 3;

    width: min(1170px, calc(100% - 48px));
    margin: 0 auto;

    padding-top: 48px;
    padding-bottom: 85px;
}

.contact-heading {
    display: flex;
    align-items: center;
    gap: 18px;

    max-width: 600px;
    margin-bottom: 18px;
}

.contact-heading h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 53px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;

    color: var(--purple);
}

/* short paragraph under the heading */

.contact-intro {
    max-width: 535px;
    margin-bottom: 28px;

    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;

    width: 100%;
    max-width: 535px;
}

/* first and last name side by side */

.contact-name-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* individual fields */

.contact-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

/* labels above inputs */

.contact-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* text inputs and message box */

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;

    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;

    color: var(--text);
    background-color: rgba(255, 255, 255, 0.65);

    border: 1px solid #d5c1e7;
    border-radius: 8px;

    outline: none;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

/* placeholder text */

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #898091;
}

/* input appearance when selected */

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--purple-mid);
    box-shadow: 0 0 0 3px rgba(105, 68, 135, 0.12);
}

/* message box */

.contact-form textarea {
    min-height: 115px;
    resize: vertical;
}

/* send message button */

.contact-submit {
    align-self: flex-start;

    margin-top: 3px;
    border: none;
    cursor: pointer;

    font-family: Arial, sans-serif;
    font-size: 16px;
}

/* keyboard focus on submit button */

.contact-submit:focus-visible {
    outline: 3px solid #b98cd9;
    outline-offset: 3px;
}

.contact-bottom-wave {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 35px;

    display: block;
    z-index: 4;
    pointer-events: none;
}

.contact-bottom-wave path {
    fill: var(--purple-mid);
}

/* prevent thin image line beneath the wave */

.contact-section::after {
    content: "";
    position: absolute;

    bottom: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background-color: var(--purple-mid);
    z-index: 5;
    pointer-events: none;
}


/* now for the projects introduction section */

.projects-hero {
    position: relative;
    width: 100%;
    height: auto;

    background-color: var(--white);
    padding: 30px 24px 35px;

    text-align: center;
}

/* centred content */

.projects-hero-content {
    width: min(1170px, 100%);
    margin: 0 auto;
}

/* heading and 3 line ray design */

.projects-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;

    margin-bottom: 16px;
}

.projects-heading h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;

    color: var(--purple);
}

/* projects opening introduction paragraph */

.projects-hero-content p {

    position: relative;
    top: 12px;
    
    max-width: 790px;
    margin: 0 auto;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;

    color: var(--text);
}

/* to stop that thin photo line thing which happened before */



/* whitish kind of backgrounds for behind the 4 stages */

.projects-process {
    width: 100%;
    background-color: var(--white);

    padding: 38px 0 40px;
}

/* now to keep it all aligned with the rest of the web */

.projects-container {
    width: min(1170px, calc(100% - 48px));
    margin: 0 auto;
}

/* now to make the four cards go in a row */

.projects-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
}

/* each individual stage */

.process-card {
    min-width: 0;
}

/* container for the photo and the icon */

.process-image {
    position: relative;
    width: 100%;
    margin-bottom: 26px;
}

/* now to make all of the images the same size */

.process-image img {
    width: 100%;
    height: 165px;
    object-fit: cover;

    border-radius: 12px;
}

/* circular icons which overlap the bottom of the photograph */

.process-icon {
    position: absolute;
    left: 0;
    bottom: -16px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;

    border-radius: 50%;
    color: var(--white)


}

/* now the icons */

.process-icon svg {
    width: 30px;
    height: 30px;
}

/* alternating circle background */

.process-icon.purple-icon {
    background-color: #b47ac5;
}

.process-icon.green-icon {
    background-color: #8dbda6;
}


/* now for the headings and cards */

.process-card h2 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.15;

    color: var(--purple);
    margin-bottom: 8px;
}

/* project descriptions etc */

.process-card p {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;

    color: var(--text)
}

/* Team and soap section */


/* Team section */


/* mint background for final section */

.projects-features {
    width: 100%;
    background-color: var(--mint);
    padding: 20px 0;
}

/* photograph on left and text on right */

.projects-features-container {
    width: min(1000px, calc(100% - 48px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    align-items: center;
    gap: 50px;
}

/* team photograph */

.project-feature-image {
    width: 100%;
    min-width: 0;
}

.project-feature-image img {
width: 100%;
max-width: 380px;
height: auto;

object-fit: contain;

border-radius: 12px;
}


/* team text */

.project-feature-content {
    min-width: 0;
}

.project-feature-content h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;

    color: var(--purple);
    margin-bottom: 16px;
}

.project-feature-content p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;

    max-width: 460px;
    color: var(--text);
}


.process-card {
    position: relative;
}

/* arrows between cards but not after the last one */

.process-card:not(:last-child)::after {
    content: "";
    position: absolute;

    top: 70px;
    right: -33px;

    width: 26px;
    height: 24px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24'%3E%3Cpath d='M2 12H25 M17 4L25 12L17 20' fill='none' stroke='%23b47ac5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    pointer-events: none;
}


/* upcoming events hero section */

.events-hero {
    position: relative;
    width: 100%;
    height: 300px;

    background-color: var(--mint);
    overflow: hidden;
}

/* right side photograph */

.events-hero-image {
    position: absolute;
    top: 0;
    right: 0;

    width: 52%;
    height: 100%;

    z-index: 0;
}

.events-hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

/* left side introductory content */

.events-hero-content {
    position: relative;
    z-index: 3;

    left: -100px;
    bottom: -20px;

    width: min(1170px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;

    padding-top: 38px;
}

/* heading and decorative rays */

.events-heading {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 15px;
}

.events-heading h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 55px;
    font-weight: 700;
    line-height: 1.1;

    color: var(--purple);
}

/* introductory paragraph */

.events-hero-content p {
    max-width: 480px;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;

    color: var(--text);
    margin-left: 55px;
}

/* curved boundary between mint background and photograph */

.events-hero-curve {
    position: absolute;
    top: 0;
    left: 43%;

    width: 17%;
    height: 100%;

    z-index: 1;
    pointer-events: none;
}

/* upcoming events bit of it */

.events-section {
    width: 100%;
    background-color: var(--white);
    padding: 55px 0 40px;
}

/* container for the events */

.events-container {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
}

/* four event cards in a row */

.events-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* individual event cards */

.event-card {
    min-width: 0;
    background-color: var(--white);

    border: 1px solid #eee6f2;
    border-radius: 12px;
    overflow: hidden;

    box-shadow: 0 3px 12px rgba(66, 20, 91, 0.04);
}

/* photograph at the top of each card */

.event-card-image {
    width: 100%;
    height: 130px;

    object-fit: cover;
    object-position: center;
}

/* information below each photograph */

.event-card-content {
    padding: 14px 16px 18px;
}

/* date box and event heading side by side */

.event-card-top {
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 16px;

    align-items: start;
    margin-bottom: 18px;
}

/* lavender date box */

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 80px;
    padding: 7px;

    background-color: var(--purple-light);
    border-radius: 10px;

    color: var(--purple);
    text-align: center;
}

.event-date-month {
    font-size: 12px;
    font-weight: 600;
}

.event-date-day {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 31px;
    font-weight: 700;
    line-height: 1.1;
}

.event-date-weekday {
    font-size: 12px;
}

/* event title */

.event-card-top h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.15;

    color: var(--purple);
    margin-bottom: 10px;
}

/* event category label */

.event-category {
    display: inline-block;

    padding: 6px 15px;
    border-radius: 20px;

    background-color: var(--mint);
    color: var(--purple);

    font-size: 12px;
    font-weight: 600;
}

/* event time and location */

.event-card-details {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin-bottom: 15px;
}

.event-card-details p {
    font-size: 14px;
    line-height: 1.45;
    color: var(--text);
}

/* dividing line above event description */

.event-card-description {
    border-top: 1px solid #e8ddec;
    padding-top: 12px;

    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
}

/* loading message while getting calendar events */

#events-status {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;

    font-size: 16px;
    color: var(--text);
}





/* getting involved section at bottom of events page */

.events-involved {
    width: 100%;
    background-color: var(--white);
    padding: 0 24px 18px;
}

/* mint banner with icon, text and button */

.events-involved-container {
    position: relative;

    width: min(1380px, 100%);
    margin: 0 auto;
    padding: 22px 40px;

    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    align-items: center;
    gap: 23px;

    background-color: var(--mint);
    border-radius: 12px;
    overflow: hidden;
}

/* circle behind the calendar icon */

.events-involved-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 70px;
    height: 70px;

    background-color: var(--purple-light);
    color: var(--purple-mid);

    border-radius: 50%;
}

/* make calendar svg the correct size */

.events-involved-icon svg {
    display: block;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

/* text beside calendar icon */

.events-involved-content {
    position: relative;
    z-index: 2;
    max-width: 590px;
}

.events-involved-content h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;

    color: var(--purple);
    margin-bottom: 8px;
}

.events-involved-content p {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;

    color: var(--text);
}

/* contact button on the right */

.events-involved-button {
    position: relative;
    z-index: 2;

    margin-top: 0;
    padding: 11px 30px;

    font-size: 14px;
    white-space: nowrap;
}


/* coming soon event card placeholders */

.event-card-placeholder {
    min-height: 355px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 25px;
    text-align: center;

    background-color: var(--mint);
    border: 1px solid #d2e7dc;
}

/* purple calendar icon in each placeholder */

.event-placeholder-icon {
    width: 52px;
    height: 52px;

    color: var(--purple-mid);
    margin-bottom: 8px;
}

/* coming soon heading */


/* coming soon event card placeholders */

.event-card-placeholder {
    position: relative;
    min-height: 385px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 65px 25px 30px;
    text-align: center;

    background: linear-gradient(
        to bottom,
        var(--purple-mid) 0px,
        var(--purple-mid) 45px,
        var(--white) 45px,
        var(--white) 100%
    );

    border: 3px solid var(--purple-mid);
    border-radius: 20px;
    overflow: visible;

    box-shadow: 0 4px 14px rgba(66, 20, 91, 0.05);
}


/* two raised calendar rings at the top */

.event-card-placeholder::before,
.event-card-placeholder::after {
    content: "";

    position: absolute;
    top: -23px;

    width: 19px;
    height: 43px;

    background-color: var(--purple-mid);

    border: 3px solid var(--white);
    border-radius: 15px;

    z-index: 2;
}


/* left calendar ring */

.event-card-placeholder::before {
    left: 15%;
}


/* right calendar ring */

.event-card-placeholder::after {
    right: 15%;
}


/* purple calendar icon in each placeholder */

.event-placeholder-icon {
    width: 52px;
    height: 52px;

    color: var(--purple-mid);
    background: none;

    padding: 0;
    margin-bottom: 8px;

    border-radius: 0;
}


/* coming soon heading */



/* coming soon event card placeholders */

.event-card-placeholder {
    position: relative;
    min-height: 385px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 65px 25px 30px;
    text-align: center;

    background: linear-gradient(
        to bottom,
        var(--purple-mid) 0px,
        var(--purple-mid) 45px,
        var(--white) 45px,
        var(--white) 100%
    );

    border: 3px solid var(--purple-mid);
    border-radius: 20px;
    overflow: visible;

    box-shadow: 0 4px 14px rgba(66, 20, 91, 0.05);
}


/* two raised calendar rings at the top */

.event-card-placeholder::before,
.event-card-placeholder::after {
    content: "";

    position: absolute;
    top: -23px;

    width: 19px;
    height: 43px;

    background-color: var(--purple-mid);

    border: 3px solid var(--white);
    border-radius: 15px;

    z-index: 2;
}


/* left calendar ring */

.event-card-placeholder::before {
    left: 15%;
}


/* right calendar ring */

.event-card-placeholder::after {
    right: 15%;
}


/* purple calendar icon in each placeholder */

.event-placeholder-icon {
    width: 52px;
    height: 52px;

    color: var(--purple-mid);
    background: none;

    padding: 0;
    margin-bottom: 8px;

    border-radius: 0;
}


/* coming soon heading */

.event-card-placeholder h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 28px;
    font-weight: 700;

    color: var(--purple);
}


/* small text underneath */

.event-card-placeholder p {
    font-size: 15px;
    line-height: 1.5;

    color: var(--text);
}

/* link for the full google calendar */

.events-calendar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: fit-content;
    margin: 28px auto 0;
    padding: 12px 28px;

    font-size: 14px;
    font-weight: 600;

    color: var(--purple-mid);
    background-color: var(--white);

    border: 1.5px solid var(--purple-mid);
    border-radius: 30px;

    transition: background-color 0.2s ease;
}

.events-calendar-link:hover {
    background-color: var(--purple-light);
}


/* filled event cards using the same calendar shape */

.event-card-filled {
    position: relative;
    min-height: 325px;

    display: flex;
    flex-direction: column;

    padding-top: 32px;

    background: linear-gradient(
        to bottom,
        var(--purple-mid) 0px,
        var(--purple-mid) 32px,
        var(--white) 32px,
        var(--white) 100%
    );

    border: 2px solid var(--purple-mid);
    border-radius: 20px;
    overflow: visible;
}


/* raised calendar rings on filled cards */

.event-card-filled::before,
.event-card-filled::after {
    content: "";

    position: absolute;
    top: -18px;

    width: 16px;
    height: 34px;

    background-color: var(--purple-mid);
    border: 2px solid var(--white);
    border-radius: 15px;

    z-index: 2;
}

.event-card-filled::before {
    left: 15%;
}

.event-card-filled::after {
    right: 15%;
}


/* photograph inside filled calendar card */

.event-card-filled .event-card-image {
    width: calc(100% - 20px);
    height: 120px;

    margin: 10px 10px 0;

    object-fit: cover;
    border-radius: 8px;
}


/* compact event information */

.event-card-filled .event-card-content {
    padding: 14px 14px 18px;
}

.event-card-filled .event-card-top {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;

    margin-bottom: 12px;
}

.event-card-filled .event-card-top h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.event-card-filled .event-date {
    min-height: 70px;
    padding: 5px;
}

.event-card-filled .event-date-day {
    font-size: 27px;
}

.event-card-filled .event-card-details {
    gap: 7px;
    margin-bottom: 12px;
}

.event-card-filled .event-card-details p,
.event-card-filled .event-card-description {
    font-size: 13px;
}


/* message if the calendar connection fails */

#calendar-error {
    margin: 15px auto 0;
    text-align: center;

    font-size: 13px;
    color: var(--purple-mid);
}
