/* =========================================================
   CoolMo Home Notices — Base Styles
   Purpose: Clean, mockup-accurate, mobile-friendly layout
========================================================= */

.coolmo-notices-wrapper {
    margin: 2rem 0;
}

/* =========================================================
   SECTION — CARD APPEARANCE
========================================================= */

.coolmo-notice {
    background: #f7f5f2; /* soft warm off-white */
    border: 1px solid #b7c6c7; /* subtle teal-gray border */
    border-radius: 14px;
    padding: 35px 40px;
    margin: 40px 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.coolmo-notice:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Featured notice style (larger & more emphasized) */
.coolmo-notice.coolmo-notice-featured {
    border-width: 2px;
    padding: 42px 46px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.16);
}

/* =========================================================
   SECTION — COLOR SCHEMES
========================================================= */

.coolmo-notice.coolmo-notice-color-default {
    background: linear-gradient(135deg, #f7f5f2, #f1ede7);
    border-color: #b7c6c7;
}

.coolmo-notice.coolmo-notice-color-blue {
    background: linear-gradient(135deg, #eef4f7, #ddeaf2);
    border-color: #4f7a8a;
}

.coolmo-notice.coolmo-notice-color-gold {
    background: linear-gradient(135deg, #faf4e5, #f5e3c2);
    border-color: #c89a3c;
}

.coolmo-notice.coolmo-notice-color-red {
    background: linear-gradient(135deg, #fbeaea, #f6d4d4);
    border-color: #c65b4b;
}

.coolmo-notice.coolmo-notice-color-green {
    background: linear-gradient(135deg, #e7f5ed, #d5ecdF);
    border-color: #4c8b5f;
}

/* =========================================================
   SECTION — TITLE ABOVE ENTIRE NOTICE
========================================================= */

.coolmo-notice .coolmo-notice-header {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.coolmo-notice h3.coolmo-notice-title {
    font-size: 2rem;
    margin: 0;
    font-weight: 600;
    color: #2d4e4f; /* JSS teal */
}

/* Slightly larger title for featured */
.coolmo-notice.coolmo-notice-featured h3.coolmo-notice-title {
    font-size: 2.15rem;
}

/* =========================================================
   SECTION — FLEX LAYOUT (Image + Text)
========================================================= */

.coolmo-notice .coolmo-notice-inner {
    display: flex;
    align-items: center;     /* vertical center */
    justify-content: center; /* horizontal center */
    gap: 50px;
}

/* Image position controlled by class */
.coolmo-notice-inner.coolmo-img-left {
    flex-direction: row;
}

.coolmo-notice-inner.coolmo-img-right {
    flex-direction: row-reverse;
}

/* Image block */
.coolmo-notice .coolmo-notice-image {
    flex: 0 0 auto;
    max-width: 320px;
}

.coolmo-notice .coolmo-notice-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* Text block */
.coolmo-notice .coolmo-notice-content {
    flex: 0 0 50%;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
}

/* =========================================================
   SECTION — RESPONSIVE (Mobile)
========================================================= */

@media (max-width: 768px) {

    .coolmo-notice h3.coolmo-notice-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .coolmo-notice .coolmo-notice-inner,
    .coolmo-notice-inner.coolmo-img-left,
    .coolmo-notice-inner.coolmo-img-right {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .coolmo-notice .coolmo-notice-content {
        width: 100%;
        text-align: left; /* more readable on phones */
    }

    .coolmo-notice .coolmo-notice-image {
        max-width: 80%;
    }
}

/* =========================================================
   SECTION — ADMIN METABOX / PREVIEW
========================================================= */

.post-type-coolmo_notice #coolmo_notice_settings label {
    font-weight: 600;
}

.post-type-coolmo_notice .coolmo-notice-preview-wrapper {
    margin-top: 20px;
}

.post-type-coolmo_notice .coolmo-notice-preview {
    margin-top: 10px;
    max-width: 100%;
    font-size: 0.9rem;
}