/* Using @font-face to ensure Avenir loads */
@font-face {
    font-family: 'Avenir';
    src: url('https://fonts.cdnfonts.com/s/15391/AvenirNextLTPro-Black.woff') format('woff');
    font-weight: 900;
}

/* Override Bootstrap defaults with custom brand colors */
:root {
    --bs-primary: #4e1f50;
    --bs-secondary: #adf1b3;
    --bs-accent: #96c93d;
}

body {
    font-family: Avenir, Arial, sans-serif;
    background-color: #4e1f50;
    color: #333;
}

a {
    color: #adf1b3;
}

a:hover {
    color: #96c93d;
}

/* Navigation Styles */
.navbar {
    background-color: rgba(78, 31, 80, 0.95) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar-brand img {
    width: 240px;
}

.navbar-nav .nav-link {
    color: #adf1b3 !important;
    font-weight: 900;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #96c93d !important;
}

.navbar-nav .nav-link.active {
    color: #96c93d !important;
    border-bottom: 2px solid #96c93d;
}

.navbar-toggler {
    border-color: #adf1b3;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23adf1b3' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main content area */
.main-content {
    position: relative;
    z-index: 1;
}

.main-header {
    font-size: 1.5rem;
    color: #adf1b3;
    line-height: 1.5;
    padding: 20px 0;
}

.page-title {
    font-size: 2rem;
    color: #adf1b3;
    line-height: 1.5;
    padding: 20px 0;
    font-weight: 900;
}

/* Content containers */
.mission-container,
.content-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #4e1f50;
    margin-bottom: 20px;
}

.mission-container {
    font-size: 1.3rem;
}

.mission-title {
    font-weight: 900;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.mission-text {
    line-height: 1.5;
    margin-bottom: 10px;
}

.content-container h2 {
    font-weight: 900;
    font-size: 1.6rem;
    color: #4e1f50;
    margin-top: 20px;
    margin-bottom: 10px;
}

.content-container h3 {
    font-weight: 900;
    font-size: 1.3rem;
    color: #ee785d;
    margin-top: 15px;
    margin-bottom: 10px;
}

.content-container p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Custom bullet lists */
.mission-list,
.content-list {
    list-style: none;
    padding: 0;
}

.mission-list li,
.content-list li {
    position: relative;
    margin: 10px 0;
    padding-left: 20px;
}

.content-list li {
    font-size: 1.1rem;
    line-height: 1.6;
}

.mission-list li::before,
.content-list li::before {
    content: '\2022';
    color: #4e1f50;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Decorative images */
.decorative-image {
    width: 150px;
    height: 150px;
    margin: 20px auto;
    display: block;
}

/* Contact box */
.contact-box {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.contact-box h3 {
    margin-top: 0;
}

/* CTA Buttons */
.cta-btn {
    background-color: #adf1b3;
    color: #4f1c4d !important;
    text-decoration: none;
    font-weight: 900;
    padding: 15px 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: inline-block;
    border: none;
    transition: background-color 0.3s;
}

.cta-btn:hover {
    background-color: #96c93d;
    color: #4f1c4d !important;
}

/* Watermark */
.watermark {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 414px;
    z-index: 0;
    background-image: url("images/CDT_Cropped-Watermark_full-col.png");
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Footer */
.footer {
    font-size: 0.8rem;
    color: #ddd;
    padding: 20px 0;
}

.footer a {
    color: #adf1b3;
}

.footer a:hover {
    color: #96c93d;
}

/* JustGiving donate button styling */
.donate-btn-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.donate-btn-container script + div {
    display: inline-block;
}

.donate-btn-container a div {
    border-radius: 5px !important;
    line-height: 48px !important;
    color: #4f1c4d !important;
    padding: 0 20px !important;
    text-decoration: none !important;
    text-align: center !important;
    font-family: Avenir, sans-serif !important;
    font-size: 18px !important;
    font-weight: 900;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .watermark {
        width: 200px;
        height: 207px;
    }
    
    .navbar-brand img {
        width: 180px;
    }
    
    .main-header {
        font-size: 1.2rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .mission-container,
    .content-container {
        font-size: 1.1rem;
        padding: 20px;
    }
    
    .content-container h2 {
        font-size: 1.3rem;
    }
    
    .content-container h3 {
        font-size: 1.1rem;
    }
    
    .content-container p,
    .content-list li {
        font-size: 1rem;
    }
    
    .decorative-image {
        width: 100px;
        height: 100px;
    }
}
