/* --- Generel Styling --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    max-width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(180deg, #e3eef5 0%, #cde0ed 25%, #b8d4e3 50%, #cde0ed 75%, #e3eef5 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 0;
    max-width: 100vw;
}

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

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    color: #1a365d;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.5px;
}

/* --- Header --- */
header {
    background: linear-gradient(135deg, #0c4a6e 0%, #164e63 100%);
    color: #fff;
    width: 100%;
    padding: 1rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: visible;
}

/* Ship's wheel decoration */
header::before {
    content: '';
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    height: 220px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='none' stroke='white' stroke-width='3'/%3E%3Ccircle cx='50' cy='50' r='35' fill='none' stroke='white' stroke-width='2'/%3E%3Ccircle cx='50' cy='50' r='12' fill='none' stroke='white' stroke-width='3'/%3E%3Cline x1='50' y1='5' x2='50' y2='38' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3Cline x1='50' y1='62' x2='50' y2='95' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3Cline x1='5' y1='50' x2='38' y2='50' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3Cline x1='62' y1='50' x2='95' y2='50' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3Cline x1='18' y1='18' x2='41' y2='41' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3Cline x1='59' y1='59' x2='82' y2='82' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3Cline x1='82' y1='18' x2='59' y2='41' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3Cline x1='41' y1='59' x2='18' y2='82' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='50' cy='5' r='4' fill='white'/%3E%3Ccircle cx='50' cy='95' r='4' fill='white'/%3E%3Ccircle cx='5' cy='50' r='4' fill='white'/%3E%3Ccircle cx='95' cy='50' r='4' fill='white'/%3E%3Ccircle cx='18' cy='18' r='4' fill='white'/%3E%3Ccircle cx='82' cy='82' r='4' fill='white'/%3E%3Ccircle cx='82' cy='18' r='4' fill='white'/%3E%3Ccircle cx='18' cy='82' r='4' fill='white'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
    z-index: 10;
    animation: wheel-rotate 60s linear infinite;
}

@keyframes wheel-rotate {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.header-nav {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 1.5rem;
}

.header-nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: #fff;
}

header h1 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
}

header .tagline {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

.header-wave {
    position: absolute;
    bottom: -49px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.header-wave svg {
    width: 100%;
    height: 50px;
    display: block;
}

.header-wave svg path {
    fill: #0c4a6e;
}


/* --- Compass Rose --- */
#boat-clubs-section {
    position: relative;
}

.compass-rose {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    pointer-events: none;
    z-index: 0;
    color: #1a365d;
    opacity: 0.08;
    animation: compass-rotate 120s linear infinite;
}

.compass-rose svg {
    width: 100%;
    height: 100%;
}

@keyframes compass-rotate {
    from {
        transform: translateX(-50%) rotate(0deg);
    }
    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

#boat-clubs-section h2,
#boat-clubs-section .search-container,
#boat-clubs-section .clubs-grid {
    position: relative;
    z-index: 1;
}

#boat-clubs-section h2 {
    font-size: 2rem;
    color: #2c5282;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.5px;
}

/* --- Search Box --- */
.search-container {
    max-width: 500px;
    margin: 0 auto 2rem;
    text-align: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #0e7490;
    box-shadow: 0 4px 20px rgba(14, 116, 144, 0.25);
}

.search-icon {
    color: #718096;
    font-size: 1rem;
    margin-right: 0.75rem;
    transition: color 0.3s;
}

.search-box:focus-within .search-icon {
    color: #0e7490;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #333;
    background: transparent;
}

.search-box input::placeholder {
    color: #a0aec0;
}

.search-clear {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.search-clear:hover {
    color: #e53e3e;
}

.search-hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #718096;
}

.search-results {
    margin-top: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.search-results.active {
    display: flex;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.search-result-item:hover {
    background: #e0f2f1;
    border-color: #0e7490;
    transform: translateX(5px);
}

.search-result-item i {
    color: #0e7490;
    font-size: 1.25rem;
}

.search-result-item span {
    font-weight: 500;
    color: #2c3e50;
}

.search-no-results {
    text-align: center;
    padding: 1.5rem;
    color: #718096;
}

.search-no-results i {
    font-size: 2rem;
    color: #cbd5e0;
    margin-bottom: 0.5rem;
    display: block;
}

/* --- Boat Clubs Grid --- */
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.clubs-grid .post-card {
    grid-column: 1 / -1;
}

.club-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    padding-bottom: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #0e7490;
    box-shadow: 0 2px 8px rgba(14, 116, 144, 0.15);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

/* Wave decoration at bottom of card */
.club-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0,10 Q25,0 50,10 T100,10 L100,20 L0,20 Z' fill='%230e7490' opacity='0.1'/%3E%3C/svg%3E") repeat-x;
    background-size: 50px 20px;
    transition: all 0.3s ease;
}

/* Anchor icon indicator */
.club-card::after {
    content: '\f13d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.7rem;
    color: #0e7490;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.club-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 15px 40px rgba(14, 116, 144, 0.35),
        0 0 20px rgba(14, 116, 144, 0.15),
        inset 0 0 20px rgba(14, 116, 144, 0.05);
    border-color: #0c4a6e;
    background: linear-gradient(135deg, #fff 0%, #e0f2f1 100%);
}

/* Animated wave on hover */
.club-card:hover::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0,10 Q25,0 50,10 T100,10 L100,20 L0,20 Z' fill='%230c4a6e' opacity='0.2'/%3E%3C/svg%3E") repeat-x;
    background-size: 50px 20px;
    animation: wave-flow 2s linear infinite;
}

/* Show anchor on hover */
.club-card:hover::after {
    opacity: 0.6;
    transform: translateY(0);
}

@keyframes wave-flow {
    from {
        background-position-x: 0;
    }
    to {
        background-position-x: 50px;
    }
}

.club-card:active {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 15px 40px rgba(14, 116, 144, 0.35),
        0 0 20px rgba(14, 116, 144, 0.15),
        inset 0 0 20px rgba(14, 116, 144, 0.05);
    border-color: #0c4a6e;
    background: linear-gradient(135deg, #fff 0%, #e0f2f1 100%);
}

.club-icon {
    font-size: 2.5rem;
    color: #0e7490;
    margin-bottom: 15px;
    display: block;
    transition: all 0.3s ease;
}

.club-card:hover .club-icon {
    color: #0c4a6e;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(14, 116, 144, 0.5));
}

.club-card p {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* --- Network Highlight Card (From the Network) --- */
.network-highlight-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.85) 100%);
    border-radius: 8px;
    border: 2px solid #a0c4e8;
    overflow: visible;
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    padding: 0;
    padding-bottom: 16px;
}

/* Wave decoration at bottom */
.network-highlight-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0,10 Q25,0 50,10 T100,10 L100,20 L0,20 Z' fill='%231a365d' opacity='0.08'/%3E%3C/svg%3E") repeat-x;
    background-size: 50px 16px;
    transition: all 0.3s ease;
}

/* Anchor icon indicator */
.network-highlight-card::after {
    content: '\f13d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.7rem;
    color: #1a365d;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.network-highlight-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 15px 40px rgba(14, 116, 144, 0.35),
        0 0 20px rgba(14, 116, 144, 0.15),
        inset 0 0 20px rgba(14, 116, 144, 0.05);
    border: 2px solid #0c4a6e;
    background: linear-gradient(135deg, #fff 0%, #e0f2f1 100%);
}

/* Animated wave on hover */
.network-highlight-card:hover::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0,10 Q25,0 50,10 T100,10 L100,20 L0,20 Z' fill='%232980b9' opacity='0.15'/%3E%3C/svg%3E") repeat-x;
    background-size: 50px 16px;
    animation: wave-flow 2s linear infinite;
}

/* Show anchor on hover */
.network-highlight-card:hover::after {
    opacity: 0.5;
    transform: translateY(0);
}

.network-highlight-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #1a365d;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 10;
}

.network-highlight-image {
    flex: 0 0 180px;
    height: 90px;
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0.5rem 1rem;
    margin-right: 0;
}

.network-highlight-content {
    flex: 1;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 80px;
}

.network-highlight-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c5282;
    margin: 0;
    line-height: 1.3;
    text-align: left;
    flex-shrink: 0;
}

.network-highlight-card:hover .network-highlight-title {
    color: #1a365d;
}

.network-highlight-summary {
    color: #718096;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.network-highlight-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(160, 174, 192, 0.15);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.network-highlight-arrow svg {
    width: 14px;
    height: 14px;
    color: #718096;
    transition: all 0.2s ease;
}

.network-highlight-card:hover .network-highlight-arrow {
    background: rgba(14, 116, 144, 0.15);
}

.network-highlight-card:hover .network-highlight-arrow svg {
    color: #0e7490;
    transform: translateX(2px);
}

/* --- Text Card (SEO Content) - Original version --- */
.text-card {
    grid-column: 1 / -1;
    background: #f8fafc;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.text-card h2,
.text-card h3 {
    font-size: 1.1rem;
    color: #1a365d;
    margin-bottom: 0.75rem;
    text-align: left;
    font-weight: 600;
}

.text-card p {
    font-size: 0.9rem;
    color: #2c3e50;
    line-height: 1.5;
}

/* --- About Content (Full Page Content for about.html) --- */
.about-content {
    background: #f8fafc;
    border-radius: 8px;
    padding: 3rem 3rem;
    border: 1px solid #e2e8f0;
    box-shadow: none;
    min-height: 70vh;
}

.about-content h2,
.about-content h3 {
    font-size: 1.1rem;
    color: #1a365d;
    margin-bottom: 0.75rem;
    text-align: left;
    font-weight: 600;
}

.about-content p {
    font-size: 0.9rem;
    color: #2c3e50;
    line-height: 1.5;
}

/* --- Helm List (Ship's Wheel Bullets) --- */
.helm-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.helm-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: #64748b;
    line-height: 1.6;
}

.helm-list li::before {
    content: '\f1e0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #0e7490;
    font-size: 0.9rem;
}

.helm-list a {
    color: #0e7490;
    text-decoration: none;
    transition: color 0.2s ease;
}

.helm-list a:hover {
    color: #0c4a6e;
    text-decoration: underline;
}

/* --- BoatBuddy Network Card --- */
.boatbuddy-network {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(15, 32, 39, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 180px;
}

.boatbuddy-network::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(72, 187, 120, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.boatbuddy-network::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(49, 130, 206, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.network-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 100%;
}

.network-section {
    display: flex;
    align-items: center;
}

.network-text {
    flex: 1;
    gap: 1.25rem;
}

.network-text-inner {
    display: flex;
    flex-direction: column;
}

.network-text-inner h3 {
    margin-bottom: 0.75rem;
}

.network-text-inner .text-with-line {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.network-text-inner .text-with-line::before {
    content: '';
    width: 3px;
    height: 40px;
    background: linear-gradient(180deg, #48bb78, #38a169);
    border-radius: 2px;
    flex-shrink: 0;
}

.network-video {
    flex: 0 0 280px;
    justify-content: center;
}

.video-container {
    width: 280px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.video-container iframe {
    width: 100%;
    height: 100%;
}

.network-cta {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.boatbuddy-network h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.boatbuddy-network p {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
    font-style: italic;
}

.network-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #fff;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.network-link:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.5);
    background: linear-gradient(135deg, #68d391 0%, #48bb78 100%);
}

.network-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* --- Blog Posts Section --- */
.posts-section {
    margin-top: 4rem;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.for-sale-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2c5282;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-image {
    flex: 0 0 300px;
    min-height: 200px;
    background-color: #e2e8f0;
    background-size: cover;
    background-position: center;
}

.post-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.post-meta {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    text-align: left;
}

.post-summary {
    color: #4a5568;
    font-size: 0.9375rem;
    flex: 1;
    margin-bottom: 1rem;
}

.post-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c5282;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.2s;
    width: fit-content;
}

.post-link:hover {
    color: #1a365d;
}

.post-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.post-link:hover svg {
    transform: translateX(3px);
}

/* --- Wave Dividers --- */
.wave-divider {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin: 2rem 0;
}

.wave-divider svg {
    width: 100%;
    height: 50px;
    display: block;
}

.wave-divider.wave-top {
    transform: rotate(180deg);
}

.wave-divider.wave-blue svg path {
    fill: #3498db;
    opacity: 0.15;
}

.wave-divider.wave-dark svg path {
    fill: #1a365d;
    opacity: 0.1;
}

/* --- Footer --- */
footer {
    background: linear-gradient(135deg, #164e63 0%, #0c4a6e 100%);
    color: #fff;
    width: 100%;
    padding: 2rem 0;
    margin-top: 0;
    position: relative;
}

.footer-wave {
    position: absolute;
    top: -49px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    width: 100%;
    height: 50px;
    display: block;
}

.footer-wave svg path {
    fill: #0c4a6e;
}

footer p {
    opacity: 0.8;
    font-size: 0.875rem;
}

footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

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

.footer-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-nav i {
    font-size: 0.85rem;
}

/* --- Contact Profile --- */
.contact-profile {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 20px;
}

.contact-profile-image {
    flex: 0 0 300px;
}

.contact-profile-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.contact-profile-text h2 {
    margin-top: 0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .clubs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Contact profile mobile */
    .contact-profile {
        flex-direction: column;
    }

    .contact-profile-image {
        flex: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Hide ship's wheel decoration on mobile */
    header::before {
        display: none;
    }

    /* Make compass rose smaller on mobile */
    .compass-rose {
        width: 200px;
        height: 200px;
    }

    .container {
        padding: 1rem;
    }

    .header-nav {
        position: static;
        transform: none;
        justify-content: center;
        margin-bottom: 0.75rem;
    }

    .publisher-content,
    .footer-content {
        padding: 0 1rem;
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
    }

    .clubs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .post-card {
        flex-direction: column;
    }

    .post-image {
        flex: none;
        width: 100%;
        height: 200px;
    }

    /* Network Highlight Card mobile */
    .network-highlight-card {
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .network-highlight-image {
        flex: none;
        width: 100px;
        height: 70px;
        margin: 0;
        position: absolute;
        top: 8px;
        right: 8px;
    }

    .network-highlight-label {
        position: relative;
        top: auto;
        left: auto;
        align-self: flex-start;
    }

    .network-highlight-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 0;
        padding-right: 90px;
        min-height: auto;
        gap: 0.5rem;
    }

    .network-highlight-arrow {
        position: absolute;
        bottom: 12px;
        right: 12px;
    }

    .network-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .network-section {
        justify-content: center;
    }

    .network-text {
        flex-direction: column;
        text-align: center;
    }

    .network-text::before {
        width: 50px;
        height: 3px;
    }

    .network-video {
        flex: 0 0 auto;
    }

    .video-container {
        width: 100%;
        max-width: 300px;
        height: 160px;
    }

    .network-cta {
        justify-content: center;
    }

    .boatbuddy-network h3 {
        text-align: center;
    }

    .boatbuddy-network p {
        text-align: center;
    }
}