/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Heading Styles */
h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
}

.background-container {
    background: url('files/images/backgrounds/bermuda-coast-background.jpg') center top;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
    padding-bottom: 80px;
}

.background-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 55, 90, 0.5);
    z-index: 1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 1px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Navigation Styles */
.navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #333;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: white;
    background: #20B2AA;
    border-radius: 4px;
}

.nav-link.active::after {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 1px;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 2;
    padding: 0;
}

/* Page Content (for non-home pages) */
.page-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.section {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Section */
.welcome-section {
    padding: 40px 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 80px);
    box-sizing: border-box;
}

.content-wrapper {
    background-color: rgba(22, 55, 90, 0.5);
    background-image: unset;
    border: 2px solid white;
    border-radius: 1px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 900px;
    max-width: calc(100vw - 40px);
    margin: 0;
    text-align: left;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.main-title,
.welcome-section h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 35px;
    font-weight: 700;
    color: white;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.lead-text {
    font-size: 1rem;
    font-style: normal;
    color: white;
    margin-bottom: 1.2rem;
    font-weight: 400;
    line-height: 1.4;
}

.story-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: white;
    text-align: left;
    font-weight: 300;
}

.story-content p:last-child {
    margin-bottom: 0;
}

/* Intro Content - Dynamic home content */
.intro-content {
    color: white;
}

.intro-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: white;
    text-align: left;
    font-weight: 300;
}

.intro-content p.lead-text {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 1.2rem;
}

/* Links in home page content - white to match text */
.intro-content a,
.story-content a,
.main-content-area a {
    color: white;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    text-underline-offset: 2px;
    transition: all 0.3s ease;
}

.intro-content a:hover,
.story-content a:hover,
.main-content-area a:hover {
    color: #becedd;
    text-decoration-color: #becedd;
}

.intro-content a:visited,
.story-content a:visited,
.main-content-area a:visited {
    color: rgba(255, 255, 255, 0.9);
}

.tagline {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.tagline p {
    color: white;
    font-style: italic;
    text-align: left;
    margin: 0;
    font-size: 0.84rem;
}

/* Home Layout */
.home-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.main-content-area {
    flex: 1;
    max-width: 520px;
}

.recent-posts-sidebar {
    width: 280px;
    flex-shrink: 0;
    margin-top: calc(-4.2rem + 10px);
}

.recent-posts-sidebar h3 {
    color: white;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.recent-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.recent-post-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-link {
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
}

.recent-post-link:hover .recent-post-title {
    color: #20B2AA;
}

.recent-post-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    line-height: 1.4;
    font-family: 'Noto Sans', sans-serif;
    transition: color 0.2s ease;
}

.recent-post-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    font-family: 'Noto Sans', sans-serif;
}

.loading-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: white;
    font-style: italic;
}

/* Contact Section */
.contact-section .content-wrapper,
.privacy-section .content-wrapper,
.terms-section .content-wrapper {
    text-align: left;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    width: 90%;
    max-width: none;
    margin: 2rem auto;
}

.contact-section h2,
.privacy-section h2,
.terms-section h2 {
    font-size: 2.2rem;
    color: #163759;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-item h3 {
    color: #163759;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: #666;
    font-size: 1rem;
}

/* Contact Form */
.contact-form {
    background: rgba(22, 55, 90, 0.05);
    padding: 2rem;
    border-radius: 1px;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #163759;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(22, 55, 90, 0.2);
    border-radius: 1px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #163759;
    box-shadow: 0 0 0 3px rgba(22, 55, 90, 0.1);
}

.submit-btn {
    background: #163759;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 1px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #0f2a42;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 55, 90, 0.3);
}

/* Policy Content */
.policy-content h3,
.terms-content h3 {
    color: #163759;
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
}

.policy-content p,
.terms-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #555;
}

.policy-content ul,
.terms-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-content li,
.terms-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #555;
}

.last-updated {
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-note {
    margin-top: 1rem;
    text-align: center;
}

.form-note small {
    color: #666;
    font-style: italic;
}

.manual-email-info {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.manual-email-info h4 {
    color: #163759;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(22, 55, 90, 0.2);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info p {
    margin: 0;
    color: #666;
}

.footer-info .tagline {
    font-style: italic;
    color: #163759;
    margin-top: 0;
    padding-top: 0;
    border: none;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #163759;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0f2a42;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-radius: 1px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(22, 55, 90, 0.1);
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .welcome-section {
        padding: 30px 0;
        min-height: calc(100vh - 60px);
    }
    
    .content-wrapper {
        padding: 1.5rem;
        margin: 0 1rem;
        width: auto;
        max-width: calc(100vw - 2rem);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    /* Mobile layout for recent posts */
    .home-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .recent-posts-sidebar {
        width: 100%;
        margin-top: 0;
    }
    
    .recent-posts-grid {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        padding: 0.75rem 15px;
    }
    
    .logo {
        gap: 10px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .tagline-header {
        font-size: 11px;
    }
    
    .main-title {
        font-size: 1.75rem;
    }
    
    .lead-text {
        font-size: 1.1rem;
    }
    
    .welcome-section {
        padding: 25px 0;
        min-height: calc(100vh - 50px);
    }
    
    .content-wrapper {
        padding: 1.2rem;
        margin: 0 0.5rem;
        width: auto;
        max-width: calc(100vw - 1rem);
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Logo Styling */
.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

/* Header Tagline */
.tagline-header {
    color: #becedd;
    font-family: 'Noto Sans', sans-serif;
    font-size: 15px;
    white-space: nowrap;
}