/* Exact bottom sections: articles, videos, testimonials, subscribe, footer */

.cm-bottom {
    padding: 1.5rem 0 2rem;
}

.cm-bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.cm-box {
    background: #0b1220;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    padding: 1.25rem 1.2rem 1.1rem;
    min-height: 100%;
}

.cm-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.cm-box-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.cm-box-head a {
    color: #3b82f6;
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
}

.cm-box-head a:hover { color: #60a5fa; }
.cm-box-head a span { margin-left: 0.15rem; }

.cm-box-list {
    display: flex;
    flex-direction: column;
}

/* Articles */
.cm-a-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.9rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: inherit;
}

.cm-a-item:first-child {
    border-top: 0;
    padding-top: 0.2rem;
}

.cm-a-item:hover { color: inherit; }
.cm-a-item:hover h4 { color: #93c5fd; }

.cm-a-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #111827;
    border: 1px solid rgba(148, 163, 184, 0.14);
    display: grid;
    place-items: center;
}

.cm-a-item h4 {
    margin: 0 0 0.28rem;
    font-size: 0.94rem;
    line-height: 1.3;
    color: #f8fafc;
}

.cm-a-item p {
    margin: 0 0 0.35rem;
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-a-item small {
    color: #64748b;
    font-size: 0.74rem;
}

/* Videos */
.cm-v-item {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 0.85rem;
    align-items: center;
    padding: 0.9rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: inherit;
}

.cm-v-item:first-child {
    border-top: 0;
    padding-top: 0.2rem;
}

.cm-v-item:hover { color: inherit; }
.cm-v-item:hover h4 { color: #93c5fd; }

.cm-v-thumb {
    width: 104px;
    height: 68px;
    border-radius: 10px;
    position: relative;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.35rem;
    overflow: hidden;
}

.cm-v-thumb em {
    position: absolute;
    right: 6px;
    bottom: 6px;
    font-style: normal;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    border-radius: 4px;
    padding: 0.1rem 0.3rem;
    line-height: 1;
}

.cm-v-item h4 {
    margin: 0 0 0.35rem;
    font-size: 0.94rem;
    line-height: 1.35;
    color: #f8fafc;
}

.cm-v-item small {
    color: #64748b;
    font-size: 0.74rem;
}

/* Testimonials */
.cm-say {
    display: flex;
    flex-direction: column;
}

.cm-say-glass {
    flex: 1;
    margin-top: 0.2rem;
    margin-bottom: 1rem;
    padding: 1.1rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 28px rgba(0, 0, 0, 0.18);
}

.cm-say-quote {
    margin: 0 0 1.1rem;
    color: #e2e8f0;
    font-size: 0.98rem;
    line-height: 1.7;
}

.cm-say-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
}

.cm-say-user img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.45);
}

.cm-say-user strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
}

.cm-say-user span {
    display: block;
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 0.1rem;
}

.cm-say-join {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.cm-say-join > span {
    color: #94a3b8;
    font-size: 0.84rem;
}

.cm-say-avatars {
    display: flex;
    align-items: center;
}

.cm-say-avatars img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #0b1220;
    margin-left: -8px;
    object-fit: cover;
}

.cm-say-avatars img:first-child { margin-left: 0; }

/* Subscription */
.cm-subscribe {
    padding: 0.5rem 0 2.25rem;
}

.cm-sub-banner {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 1.6rem 1.5rem;
    background: linear-gradient(105deg, #1d4ed8 0%, #3730a3 48%, #5b21b6 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.cm-sub-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cm-sub-stars i {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.cm-sub-stars i:nth-child(1) { top: 18%; left: 22%; }
.cm-sub-stars i:nth-child(2) { top: 28%; left: 38%; width: 3px; height: 3px; }
.cm-sub-stars i:nth-child(3) { top: 62%; left: 18%; }
.cm-sub-stars i:nth-child(4) { top: 22%; right: 42%; }
.cm-sub-stars i:nth-child(5) { bottom: 20%; right: 28%; width: 3px; height: 3px; }

.cm-sub-left {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1;
}

.cm-sub-mail {
    width: 92px;
    height: 92px;
    flex-shrink: 0;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}

.cm-sub-mail svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cm-sub-copy h3 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    color: #fff;
}

.cm-sub-copy p {
    margin: 0;
    color: #ddd6fe;
    font-size: 0.95rem;
    max-width: 34rem;
    line-height: 1.5;
}

.cm-sub-form {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(2, 6, 23, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 0.35rem 0.35rem 0.35rem 1rem;
    min-width: min(100%, 380px);
    flex-shrink: 0;
}

.cm-sub-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 0.92rem;
    padding: 0.55rem 0.25rem;
}

.cm-sub-form input::placeholder { color: #cbd5e1; }

.cm-sub-form button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1.05rem;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.cm-sub-form button:hover { filter: brightness(1.05); }

/* Footer */
.cm-footer {
    background: #030712;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding: 3.25rem 0 1.25rem;
    color: #94a3b8;
}

.cm-ft-top {
    display: grid;
    grid-template-columns: minmax(230px, 0.95fr) 2.4fr;
    gap: 2.5rem;
}

.cm-ft-logo {
    display: inline-flex;
    align-items: center;
    color: #fff !important;
    margin-bottom: 0.9rem;
}

.cm-ft-logo:hover { color: #fff !important; }

.cm-ft-brand p {
    margin: 0 0 1rem;
    max-width: 22rem;
    line-height: 1.6;
    font-size: 0.92rem;
}

.cm-ft-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cm-ft-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: #0b1220;
    color: #94a3b8;
    display: inline-grid;
    place-items: center;
}

.cm-ft-social a:hover {
    color: #fff;
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.12);
}

.cm-ft-cols {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.25rem 1rem;
}

.cm-ft-cols h6 {
    margin: 0 0 0.85rem;
    color: #fff;
    font-size: 0.92rem;
}

.cm-ft-cols a {
    display: block;
    color: #94a3b8;
    font-size: 0.86rem;
    margin-bottom: 0.48rem;
}

.cm-ft-cols a:hover { color: #fff; }

.cm-ft-bottom {
    margin-top: 2.1rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.cm-ft-bottom i {
    font-style: normal;
    color: #f43f5e;
}

/* Responsive */
@media (max-width: 1199px) {
    .cm-ft-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cm-sub-banner {
        flex-wrap: wrap;
    }
    .cm-sub-form {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 991px) {
    .cm-bottom-grid { grid-template-columns: 1fr; }
    .cm-ft-top { grid-template-columns: 1fr; gap: 2rem; }
    .cm-profile-card { grid-template-columns: 1fr; }
    .cm-search-wrap { min-width: 100%; margin: 0.75rem 0; }
}

@media (max-width: 767px) {
    .cm-ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cm-sub-banner {
        padding: 1.25rem;
        border-radius: 16px;
    }
    .cm-sub-left {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    .cm-sub-copy p { margin-inline: auto; }
    .cm-sub-form {
        flex-direction: column;
        border-radius: 16px;
        padding: 0.75rem;
        align-items: stretch;
    }
    .cm-sub-form input { text-align: center; }
    .cm-v-item { grid-template-columns: 88px 1fr; }
    .cm-v-thumb { width: 88px; height: 60px; }
}

@media (max-width: 575px) {
    .cm-hero-stat { min-width: calc(50% - 0.4rem); }
    .cm-a-item { grid-template-columns: 42px 1fr; }
    .cm-a-icon { width: 42px; height: 42px; }
    .cm-ft-bottom {
        flex-direction: column;
        text-align: center;
    }
}
