/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: rgb(234, 217, 196);
    margin: 0;
    padding: 0;
    font-family: 'Georgia', serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Typography */
h1 {
    font-family: 'Tangerine', cursive;
    font-size: 5em;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin: 0.5em 0;
}

p {
    margin: 1em 0;
    line-height: 1.7;
}

a {
    color: #d45d79;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

a:hover {
    color: #b34a63;
    text-decoration: underline;
}

a:focus {
    outline: 2px solid #d45d79;
    outline-offset: 2px;
}

.wrap_1 {
    background-color: white;
    margin: 0 0 2em 0;
    padding: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5em 3em;
    border-bottom: 3px solid #d45d79;
    background-image: url('png1.png');
}

.logo img {
    width: 40px;
    height: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1em;
    margin: 0;
    padding: 0;
}

nav li {
    display: inline;
}

nav a {
    color: #000000;
    font-weight: 1000;
    font-size: 1.1em;
    padding: 0.5em 1em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    background-color: #f0f0f0;
}

nav a:hover {
    text-decoration: none;
}

/* Main Content - Hero Section */
main {
    text-align: center;
    padding: 2em 2em 3em 2em;
    position: relative;
}

/* Images in main section */
main img {
    display: inline-block;
    vertical-align: middle;
}

main img[aria-hidden="true"] {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

main img:nth-of-type(2) {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 5px solid #333;
    object-fit: cover;
    margin: 0 2em;
}

.accessibility-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-top: 2em;
}

main p {
    max-width: 600px;
    margin: 1.5em auto;
    text-align: center;
}


/* Border - Wavy Divider */
.border {
    height: 30px;
    background-color: rgb(234, 217, 196);
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            #333 20px,
            #333 22px
        );
    background-size: 100% 2px;
    background-position: center;
    background-repeat: repeat-x;
    margin: 0;
    position: relative;
}

.border::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10px 15px, rgb(234, 217, 196) 8px, transparent 8px),
        radial-gradient(circle at 30px 15px, rgb(234, 217, 196) 8px, transparent 8px),
        radial-gradient(circle at 50px 15px, rgb(234, 217, 196) 8px, transparent 8px);
    background-size: 40px 30px;
    background-repeat: repeat-x;
}

/* Wrap 2 - Volunteering Section */
.wrap_2 {
    background-color: white;
    padding: 3em 2em;
    margin: 2em 0;
}

.wrap_2 > .box_1 > h1 {
    font-family: 'Playwrite IN Guides', cursive;
    font-size: 2.5em;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5em;
}

/* Volunteering Boxes */
.box_1,
.box_2,
.box_3 {
    max-width: 900px;
    margin: 0 auto 2.5em auto;
    padding: 2em;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.box_1,
.box_3 {
    background-color: #ffe6f0;
}

.box_2 {
    background-color: #e6f5ff;
}

.content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    align-items: center;
}

.content p {
    margin: 0;
}

.content img {
    width: 100%;
    max-width: 300px;
    height: auto;
    background-color: #e8e8e8;
    border: 2px solid #ccc;
    border-radius: 5px;
    padding: 1em;
    min-height: 150px;
}

/* Alternate layout for box_2 */
.box_2 .content {
    grid-template-columns: 1fr 1fr;
}

.box_2 .content img {
    order: -1; /* Move image to left */
}

/* Wrap 3 - Contact Section */
.wrap_3 {
    background-color: white;
    padding: 3em 2em 4em 2em;
    margin: 2em 0 0 0;
}

.wrap_3 .box {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5em;
    border: 3px solid #d45d79;
    border-radius: 8px;
    background-color: #fff9fa;
    position: relative;
}

/* Diagonal lines background for contact box */
.wrap_3 .box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(212, 93, 121, 0.05) 10px,
            rgba(212, 93, 121, 0.05) 20px
        );
    border-radius: 5px;
    z-index: 0;
    pointer-events: none;
}

.wrap_3 .box > * {
    position: relative;
    z-index: 1;
}

.wrap_3 h1 {
    font-family: 'Playwrite IN Guides', cursive;
    font-size: 2.5em;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8em;
}

.wrap_3 p {
    text-align: center;
    font-size: 1.1em;
}

/* Contact Form Styles */
#contactForm {
    margin-top: 2em;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 1.5em;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #333;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75em;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-family: 'Georgia', serif;
    font-size: 1em;
    background-color: white;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d45d79;
}

.form-group textarea {
    resize: vertical;
}

#contactForm button {
    background-color: #333;
    color: white;
    padding: 0.8em 2.5em;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    display: block;
    margin: 0 auto;
}

#contactForm button:hover {
    background-color: #555;
    transform: translateY(-2px);
}

#contactForm button:active {
    transform: translateY(0);
}

#contactForm button:focus {
    outline: 2px solid #d45d79;
    outline-offset: 2px;
}

#formMessage {
    text-align: center;
    font-weight: 600;
}

.hidden {
    display: none;
}

.success-message {
    display: block;
    margin-top: 1em;
    padding: 1em;
    border-radius: 5px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1em;
        padding: 1.5em;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5em;
        text-align: center;
    }
    
    h1 {
        font-size: 3.5em;
    }
    
    main img:first-of-type,
    main img:last-of-type {
        width: 50px;
        height: 50px;
        margin: 0 1em;
    }
    
    main img:nth-of-type(2) {
        width: 180px;
        height: 180px;
        margin: 1em;
    }
    
    .content {
        grid-template-columns: 1fr;
    }
    
    .box_2 .content img {
        order: 0;
    }
    
    .wrap_3 .box {
        padding: 1.5em;
    }
}