/* Cancer Help Preston Website Styles */

/* Import Museo font from exljbris foundry */
@import url('https://fonts.cdnfonts.com/css/museo');

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

body {
    font-family: 'Museo', sans-serif;
    color: #000;
    line-height: 1.6;
}

.page-wrapper {
    min-height: 100vh;
    background: linear-gradient(to bottom, #FFE5CC 0%, #FFFFE0 100%);
}

.page-wrapper.homepage {
    background-image: url('../images/image_2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Header and Navigation */
header {
    background-color: #ffffff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.translate-widget {
    margin-left: auto;
    display: flex;
    align-items: center;
}

/* Google Translate widget styling */
#google_translate_element {
    display: inline-block;
    min-width: 150px;
}

.goog-te-combo {
    background-color: #fff !important;
    border: 2px solid #D2691E !important;
    border-radius: 6px !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem !important;
    color: #333 !important;
    cursor: pointer !important;
    outline: none !important;
    width: 100% !important;
}

.goog-te-combo:hover {
    background-color: #fff3e0 !important;
}

.goog-te-combo:focus {
    border-color: #B8571A !important;
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1) !important;
}

/* Hide Google Translate attribution */
.goog-te-banner-frame {
    display: none !important;
}

.goog-te-gadget {
    font-family: inherit !important;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

body {
    top: 0 !important;
}

.logo {
    height: 60px;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav > ul > li {
    position: relative;
}

nav a {
    color: #000;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    font-weight: 500;
    transition: background-color 0.3s;
}

nav > ul > li > a {
    padding: 0.75rem 1.25rem;
    background-color: #ffffff;
    border: 2px solid #D2691E;
    border-radius: 8px;
    color: #000;
}

nav > ul > li > a:hover,
nav > ul > li > a:focus {
    background-color: #D2691E;
    color: #ffffff;
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
    border-radius: 4px;
    padding: 0.5rem 0;
    border: 1px solid #D2691E;
}

nav > ul > li:hover .dropdown,
nav > ul > li:focus-within .dropdown {
    display: block;
}

.dropdown li {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.dropdown li:last-child {
    border-bottom: none;
}

.dropdown a {
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
}

.dropdown a:hover,
.dropdown a:focus {
    background-color: #FFE5CC;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.content {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.homepage .content {
    background-color: rgba(255, 255, 255, 0.9);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #000;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #000;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #000;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: #000;
}

ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
    color: #000;
}

a {
    color: #d35400;
    text-decoration: underline;
}

a:hover {
    color: #e67e22;
}

/* Images */
.content-image {
    width: 50%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 2rem 0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Social Media */
.homepage-actions {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    margin: 2rem 0;
    padding: 2rem 1rem;
}

.donate-section {
    text-align: center;
}

.donate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background-color: #D2691E;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(210, 105, 30, 0.3);
}

.donate-button:hover {
    background-color: #B8571A;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(210, 105, 30, 0.4);
}

.donate-button span {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.social-media {
    text-align: center;
    padding: 1rem;
}

.social-media p {
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icon {
    display: inline-block;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon img {
    width: 48px;
    height: 48px;
}

/* Embeds */
.embed-container {
    margin: 2rem 0;
    text-align: center;
}

.facebook-feed {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
}

.facebook-feed .fb-page {
    width: 100%;
    max-width: 800px;
}

.calendar-container {
    margin: 3rem 0 2rem 0;
}

.calendar-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.calendar-wrapper iframe {
    display: block;
    width: 100%;
    min-height: 600px;
}

.calendar-mobile-note {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.calendar-mobile-note a {
    color: #D2691E;
    text-decoration: none;
    font-weight: 600;
}

.calendar-mobile-note a:hover {
    text-decoration: underline;
}

.calendar-help-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff3e0;
    border: 2px solid #D2691E;
    border-radius: 8px;
}

.calendar-help-box h3 {
    color: #D2691E;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.calendar-help-box p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.calendar-help-box ul {
    margin: 1rem 0 1rem 1.5rem;
    line-height: 1.8;
}

.calendar-help-box ul li {
    margin-bottom: 0.5rem;
}

.calendar-help-box a {
    color: #D2691E;
    text-decoration: none;
}

.calendar-help-box a:hover {
    text-decoration: underline;
}

.calendar-help-box strong {
    font-weight: 600;
}

/* Footer */
footer {
    background-color: #ffffff;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 3px solid #D2691E;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    color: #000;
}

.footer-contact h3 {
    color: #D2691E;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.footer-contact a {
    color: #D2691E;
    text-decoration: none;
}

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

.footer-info {
    text-align: right;
}

.footer-info p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.sitemap-link {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.sitemap-link a {
    color: #D2691E;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.sitemap-link a:hover {
    text-decoration: underline;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .translate-widget {
        order: 3;
        width: 100%;
        text-align: center;
        margin: 0.5rem 0 0 0;
    }
    
    .logo {
        order: 1;
    }
    
    .nav-toggle {
        display: block;
        order: 2;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: #ffffff;
        transition: left 0.3s;
        overflow-y: auto;
        z-index: 2000;
        padding-top: 60px;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    nav > ul > li > a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .dropdown {
        position: static;
        display: none;
        box-shadow: none;
        background-color: #FFE5CC;
        padding-left: 1rem;
        border: none;
    }
    
    nav > ul > li.active .dropdown {
        display: block;
    }
    
    .dropdown a {
        padding: 0.75rem 1.5rem;
    }
    
    .content-image {
        width: 80%;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-info {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .content-image {
        width: 100%;
    }
    
    .social-icons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .homepage-actions {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .donate-button {
        padding: 1.25rem 1.75rem;
    }
    
    /* Mobile calendar fixes for iPhone */
    .calendar-wrapper {
        -webkit-overflow-scrolling: touch;
    }
    
    .calendar-wrapper iframe {
        min-height: 500px;
        max-width: 100%;
    }
    
    .calendar-mobile-note {
        display: block;
        padding: 1rem;
        background: #f5f5f5;
        border-radius: 4px;
        margin-top: 1rem;
    }
}
