/* =========================
GLOBAL PAGE BACKGROUND
========================= */
body, .site {
    background: #fafbfc;
}

/* =========================
CATEGORY BLOG (WORKING VERSION)
========================= */
body.view-category.layout-blog .blog-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
    align-items: stretch;
}

/* CARD */
body.view-category.layout-blog .blog-item {
    background: #f9faff;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e0e5f0;
}

/* CLICKABLE */
body.view-category.layout-blog .blog-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* HOVER */
body.view-category.layout-blog .blog-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.22);
}

/* HERO */
body.view-category.layout-blog .blog-item:first-child {
    grid-column: span 2;
    border: 2px solid #cce0ff;
    background: #f7f9ff;
}

body.view-category.layout-blog .blog-item:first-child:hover {
    transform: scale(1.01);
}

/* IMAGE */
body.view-category.layout-blog .blog-item img {
    width: calc(100% - 16px);
    margin: 0 auto 1rem auto;
    border-radius: 14px;
    border: 2px solid #e0e5f0;
    padding: 4px;
    display: block;
}

/* HERO IMAGE */
body.view-category.layout-blog .blog-item:first-child img {
    height: 260px;
}

/* CONTENT */
body.view-category.layout-blog .item-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* TITLE */
body.view-category.layout-blog .blog-item h2 {
    font-size: 1.2rem;
    margin: 0.25rem 0 0.5rem;
    min-height: 3em;
}

/* INTRO TEXT */
body.view-category.layout-blog .blog-item p {
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* READ MORE */
body.view-category.layout-blog .readmore a {
    margin-top: 10px;
    padding: 6px 12px;
    background: #2a7ae2;
    color: #fff;
    border-radius: 6px;
}

/* MOBILE */
@media (max-width: 768px) {
    body.view-category.layout-blog .blog-item:first-child {
        grid-column: span 1;
    }

    body.view-category.layout-blog .blog-item:first-child img {
        height: 180px;
    }
}

/* =========================
FRONT PAGE FEATURED ARTICLE
========================= */

/* Container adjustments */
body.view-featured .blog-item {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* Images */
body.view-featured .blog-item img {
    width: auto !important;
    max-width: 90%;
    height: auto !important;
    border-radius: 14px;
    padding: 6px;
    margin: 1rem auto;
    display: block;
}

/* Text */
body.view-featured .blog-item h1,
body.view-featured .blog-item h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

body.view-featured .blog-item p {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
}

/* Intro image alignment */
body.view-featured .item-image {
    float: none !important;
    margin: 0 0 1rem 0 !important;
    text-align: center;
}

/* Remove hover pop & grid styling */
body.view-featured .blog-item:hover {
    transform: none !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
}

body.view-featured .blog-items {
    display: block !important;
}

/* MOBILE */
@media (max-width: 768px) {
    body.view-featured .blog-item img {
        max-width: 100%;
        height: auto;
    }

    body.view-featured .blog-item p {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 1rem;
    }
}

/* =========================
ARTICLE (MAGAZINE STYLE)
========================= */
.item-page {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ARTICLE IMAGES */
.item-page img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    padding: 6px;
    margin: 1rem 0;
}

/* LINKS */
.item-page a {
    text-decoration: none;
}

.item-page a:hover {
    text-decoration: underline;
}

/* MAP */
coastal-map {
    min-height: 700px !important;
    width: 100% !important;
}

/* TABLES / FLOATS */
table.mystyle1 td { background-color: red; }
table.mystyle1 td:hover { background-color: green; }

table.mystyle2 td { background-color: rgb(52, 73, 94); }
table.mystyle2 td:hover { background-color: green; }

.img-left { float: left; margin-right: 20px !important; }
.img-right { float: right; margin-left: 20px !important; }

table.mystyle1 a {
    text-decoration: none;
}
table.mystyle2 a {
    text-decoration: none;
}