@charset "UTF-8";

/* Color Palette */
:root {
    --primary-dark: #041c2f;
    --primary-light: #0b5f8b;
    --accent-teal: #1689a3;
    --accent-aqua: #8adbd3;
    --accent-coral: #ff9273;
    --sand: #c8b08a;
    --water-light: #e9f8f7;
    --forest: #1d5640;
    --marine-deep: #031726;
    --marine-mid: #093554;
    --marine-brass: #c7a15a;
    --marine-surface: rgba(255, 255, 255, 0.86);
    --marine-border: rgba(6, 37, 59, 0.14);
    --marine-shadow: rgba(6, 37, 59, 0.18);
}

/* Base Styling */
* {
    transition: all 0.2s ease-in-out;
}

body {
    padding-top: 3.5rem;
    font-family: "Lato", sans-serif;
    color: #163042;
    background:
        radial-gradient(circle at top left, rgba(138, 219, 211, 0.18), transparent 32%),
        radial-gradient(circle at 85% 10%, rgba(22, 137, 163, 0.12), transparent 24%),
        linear-gradient(180deg, #f8fcfc 0%, #edf9f8 42%, #ffffff 100%);
    min-height: 100vh;
    position: relative;
    isolation: isolate;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

body::before {
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0) 38%),
        radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.8), transparent 28%);
    opacity: 0.55;
}

body::after {
    background-image:
        linear-gradient(transparent 96%, rgba(6, 37, 59, 0.035) 100%),
        linear-gradient(90deg, transparent 96%, rgba(6, 37, 59, 0.03) 100%);
    background-size: 28px 28px;
    opacity: 0.35;
}

::selection {
    background: var(--accent-teal);
    color: #ffffff;
}

main {
    padding: 2rem 0;
}

img {
    max-width: 100%;
}

a {
    color: var(--primary-light);
    text-decoration: none;
}

a:hover {
    color: var(--accent-teal);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible {
    outline: 3px solid rgba(29, 142, 166, 0.28);
    outline-offset: 3px;
}

.container {
    max-width: 1160px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Raleway", sans-serif;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}

blockquote {
    color: #496372;
    font-size: 1.5rem;
    font-weight: 300;
    margin: 3rem auto;
    width: 80%;
    border-left: 4px solid var(--accent-teal);
    padding-left: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0 18px 18px 0;
    box-shadow: 0 12px 30px rgba(6, 37, 59, 0.08);
}

/* Typography */
.lead {
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.navbar-brand small {
    font-family: "Lato", sans-serif;
    font-size: 75%;
    font-weight: 400;
    margin-left: 0.5rem;
    color: var(--primary-dark);
}

/* Navigation */
.navbar.fixed-top {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(233, 247, 248, 0.86));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(29, 142, 166, 0.24);
    font-family: "Raleway", sans-serif;
    box-shadow: 0 10px 30px rgba(6, 37, 59, 0.1);
}

.navbar.fixed-top .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.navbar.fixed-top .navbar-brand img {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(6, 37, 59, 0.16);
    object-fit: cover;
}

.navbar.fixed-top .navbar-nav {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar.fixed-top .navbar-nav .nav-item {
    margin: 0 0.2rem;
}

.navbar.fixed-top .navbar-nav .nav-link {
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    position: relative;
}

.navbar.fixed-top .navbar-nav .nav-item.active .nav-link,
.navbar.fixed-top .navbar-nav .nav-link:hover {
    color: var(--primary-dark);
    background: linear-gradient(135deg, rgba(127, 212, 207, 0.22), rgba(255, 255, 255, 0.72));
    box-shadow: inset 0 0 0 1px rgba(29, 142, 166, 0.18);
}

.navbar.fixed-top .navbar-nav .nav-item.active .nav-link::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.35rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent-aqua));
}

.navbar.fixed-top .navbar-toggler {
    padding: 0.25rem 0.5rem;
    border-color: rgba(29, 142, 166, 0.32);
    box-shadow: none;
}

.navbar.fixed-top .navbar-toggler .navbar-toggler-icon {
    width: 1em;
    height: 1em;
}

@media (max-width: 767px) {
    .navbar.fixed-top .container {
        max-width: 100%;
    }
}

/* Header/Hero Sections */
header {
    background-position: 50% 50%;
    background-size: cover;
    position: relative;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: var(--marine-mid);
    overflow: hidden;
    border-bottom: 1px solid rgba(29, 142, 166, 0.16);
    height: clamp(17rem, 34vh, 22rem);
    min-height: 17rem;
    display: flex;
    align-items: center;
}

header::before,
header::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

header::before {
    background:
        radial-gradient(circle at 15% 25%, rgba(127, 212, 207, 0.2), transparent 22%),
        radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.12), transparent 18%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(6, 37, 59, 0.08));
}

header::after {
    background: linear-gradient(180deg, rgba(4, 27, 45, 0.14), rgba(4, 27, 45, 0.48));
}

header.has-image::before,
header.has-image::after {
    display: none;
}

header.has-image .dimmer {
    display: none;
}

header .container {
    padding-top: 4rem;
    padding-bottom: 4rem;
    z-index: 2;
}

header h1 {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-wrap: balance;
    margin-bottom: 1rem;
}

header .lead {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.65;
    max-width: 52rem;
    margin: 0 auto;
}

header.has-image {
    color: #ffffff;
    background-blend-mode: normal;
    background-color: transparent;
    text-shadow: 0 1px 3px rgba(6, 37, 59, 0.22);
}

header.has-image h1,
header.has-image .lead,
header.has-image p,
header.has-image a {
    color: #ffffff;
}

header.has-image .lead {
    text-shadow: 0 2px 8px rgba(3, 23, 38, 0.42);
}

header.has-image .container {
    max-width: 980px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Buttons */
.btn.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-teal));
    border: none;
    border-radius: 25px;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 24px rgba(13, 90, 134, 0.26);
}

.btn.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-aqua));
    box-shadow: 0 14px 30px rgba(13, 90, 134, 0.3);
    transform: translateY(-2px);
}

.btn.btn-outline-primary {
    border-color: rgba(13, 90, 134, 0.38);
    color: var(--primary-light);
    border-radius: 25px;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
}

.btn.btn-outline-primary:hover {
    background: rgba(29, 142, 166, 0.12);
    color: var(--primary-dark);
    border-color: rgba(29, 142, 166, 0.64);
}

.btn.btn-secondary {
    background-color: var(--sand);
    border-color: var(--sand);
    color: #fff;
    border-radius: 25px;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
}

.btn.btn-secondary:hover {
    background-color: #b8960d;
    border-color: #b8960d;
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: 1px solid var(--marine-border);
    border-radius: 18px;
    box-shadow: 0 10px 24px var(--marine-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
}

.card:hover {
    box-shadow: 0 16px 34px rgba(6, 37, 59, 0.16);
    transform: translateY(-4px);
}

.card .card-img,
.card .card-img-top {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    height: 250px;
    object-fit: cover;
}

.card-header {
    background: linear-gradient(90deg, var(--primary-light), var(--accent-teal));
    color: white;
    border: none;
}

.card-body {
    padding: 1.5rem;
    background: transparent;
}

.card-title {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-text {
    color: #4f6573;
    line-height: 1.6;
}

.card.bg-light {
    background: linear-gradient(180deg, rgba(232, 247, 246, 0.92), rgba(255, 255, 255, 0.92)) !important;
}

.card.bg-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-teal)) !important;
    color: white;
}

.card.bg-primary .card-title {
    color: white;
}

/* Blocks */
.block {
    padding: 0 0 2rem;
}

.block img {
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(6, 37, 59, 0.16);
}

.block.column-block .col-md:not(:last-child) {
    margin-bottom: 1.5rem;
}

.block.column-block img {
    height: 100%;
    object-fit: cover;
}

.block.image-gallery-block .carousel {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(6, 37, 59, 0.18);
}

.block .container {
    position: relative;
}

.marina-panel,
.marina-panel-soft,
.marina-chip {
    border: 1px solid var(--marine-border);
}

.marina-panel {
    background: var(--marine-surface);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(6, 37, 59, 0.16);
    padding: 1.5rem;
}

.marina-panel-soft {
    background: rgba(232, 247, 246, 0.7);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(6, 37, 59, 0.08);
}

.marina-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.text-sea {
    color: var(--accent-teal);
}

.text-deep {
    color: var(--primary-dark);
}

.marina-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(29, 142, 166, 0.5), transparent);
}

@media (min-width: 768px) {
    .block.column-block .col-md:not(:last-child) {
        margin-bottom: 0;
    }
}

/* Decorative Elements */
.section-divider {
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--marine-brass), var(--primary-light));
    margin: 3rem 0;
    border: none;
    border-top: none;
}

hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
    margin: 2rem 0;
}

/* Post Meta */
.post-meta {
    font-size: 0.875rem;
    color: #6d8190;
}

.post-meta span:not(:last-child)::after {
    content: "◆";
    display: inline-block;
    padding: 0 0.25rem;
    color: var(--accent-teal);
}

/* Archive */
.archive article {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(13, 90, 134, 0.12);
}

.archive article:hover {
    padding-left: 0.5rem;
    border-left: 3px solid var(--accent-teal);
}

/* Comments */
.comments .alert {
    background: linear-gradient(180deg, rgba(232, 247, 246, 0.92), rgba(255, 255, 255, 0.96));
    padding: 2rem 2.5rem;
    border-left: 4px solid var(--accent-teal);
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(6, 37, 59, 0.08);
}

/* Pagination */
.page-link {
    color: var(--primary-light);
    min-width: 2.5rem;
    text-align: center;
    border: 1px solid rgba(29, 142, 166, 0.35);
    border-radius: 999px;
    margin: 0 0.2rem;
    box-shadow: 0 8px 18px rgba(6, 37, 59, 0.06);
}

.page-link:hover {
    color: white;
    background-color: var(--accent-teal);
    border-color: var(--accent-teal);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-teal));
    border-color: var(--primary-light);
}

/* Footer */
footer {
    background:
        radial-gradient(circle at top right, rgba(127, 212, 207, 0.12), transparent 22%),
        linear-gradient(135deg, var(--marine-deep), var(--primary-dark) 52%, var(--primary-light));
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

footer h5 {
    color: var(--marine-brass);
    font-weight: 700;
    margin-bottom: 1rem;
}

footer a {
    color: var(--accent-aqua);
    text-decoration: none;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

footer .footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

/* Decorative Wave/Water Effects */
.water-wave {
    position: relative;
    overflow: hidden;
}

.water-wave::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,18 Q300,-8 600,18 T1200,18 L1200,120 L0,120 Z" fill="%23e8f7f6" opacity="0.72"></path><path d="M0,38 Q300,10 600,38 T1200,38 L1200,120 L0,120 Z" fill="%231d8ea6" opacity="0.22"></path></svg>') repeat-x;
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 1200px 0;
    }
}

/* Section Styling */
section {
    padding: 3rem 0;
}

section.bg-light {
    background: linear-gradient(180deg, rgba(232, 247, 246, 0.9), rgba(255, 255, 255, 0.95));
    border-top: 3px solid var(--accent-teal);
    border-bottom: 3px solid var(--accent-teal);
}

section.bg-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: white;
}

section.bg-primary h2,
section.bg-primary h3,
section.bg-primary h4 {
    color: white;
}

section.bg-primary a {
    color: var(--accent-aqua);
}

/* Badges & Tags */
.badge {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-teal));
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.badge.badge-secondary {
    background: var(--sand);
}

.badge.badge-info {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-aqua));
    color: #073142;
}

/* Form Elements */
.form-control {
    border: 1px solid rgba(29, 142, 166, 0.3);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.92);
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(29, 142, 166, 0.2);
}

/* Alert Styling */
.alert-info {
    background-color: var(--water-light);
    border: 1px solid var(--accent-teal);
    border-left: 4px solid var(--accent-teal);
    color: var(--primary-dark);
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #20c997;
    border-left: 4px solid var(--accent-aqua);
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid var(--sand);
    border-left: 4px solid var(--sand);
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid var(--accent-coral);
    border-left: 4px solid var(--accent-coral);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 3.85rem;
    }

    header.has-image .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        border-radius: 20px;
    }

    .navbar.fixed-top .navbar-nav .nav-link {
        padding: 0.7rem 0.85rem;
    }

    header .container {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }

    header {
        height: 15rem;
        min-height: 15rem;
        background-attachment: scroll;
    }

    header h1 {
        letter-spacing: 0.08em;
    }

    header h1 {
        font-size: 2.2rem;
    }

    section {
        padding: 2rem 0;
    }

    .comments .alert {
        padding: 1.5rem;
    }
}
