/* =========================================
   MOORE B&R INTELLIGENCE - MAIN STYLES
   ========================================= */

:root {
    --primary: #02212E;
    --primary-light: #39bef6;
    --secondary: #5C0696;
    --secondary-light: #7a08c7;
    --accent: #00AEEF;
    --accent-green: #B6E635;
    --white: #fff;
    --black: #000;
    --grey-light: #ededed;
    --grey-mid: #b1b1b1;
    --grey-dark: #383838;
    --prussian: #004C6C;
    --primary-gradient: linear-gradient(109.01deg, #552E91 40.11%, #2CAAE1 102.55%);
    --secondary-gradient: linear-gradient(106.01deg, #D64352 16.53%, #552E91 81.83%);
    --tertiary-gradient: linear-gradient(109.01deg, #004C6C 40.11%, #17B585 102.55%);
    --site-header-height: 70px;
    --font: 'Montserrat', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--primary);
    background: #fff;
    margin: 0;
    padding-top: var(--site-header-height);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--secondary); }

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font);
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 1rem;
}

img { max-width: 100%; height: auto; }

/* ---- HERO ---- */
.intelligence-hero {
    background: var(--tertiary-gradient);
    position: relative;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
}

.intelligence-hero::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 50%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 600 400' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='450' cy='200' rx='300' ry='250' fill='rgba(0,174,239,0.08)'/%3E%3Cellipse cx='550' cy='100' rx='200' ry='150' fill='rgba(183,230,53,0.05)'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0 60px;
}

.hero-content h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.hero-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    overflow: hidden;
    max-width: 500px;
    backdrop-filter: blur(10px);
}

.hero-search-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 24px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    font-family: var(--font);
}

.hero-search-form input::placeholder { color: rgba(255,255,255,0.6); }

.hero-search-form button {
    background: transparent;
    border: none;
    padding: 14px 20px;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.hero-search-form button:hover { color: var(--accent-green); }

/* ---- SECTION TITLE ---- */
.section-title {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    font-weight: 700;
    display: inline;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #D9D9D9;
}

.view-all-link {
    font-size: 0.95rem;
    color: var(--primary);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    font-weight: 500;
}
.view-all-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}
.view-all-link:hover::after { width: 60%; }

/* ---- CAROUSEL SECTION ---- */
.carousel-section {
    background: var(--primary);
    padding: 2.5rem 0 0;
    overflow: hidden;
}

.carousel-section .section-title { color: #fff; }
.carousel-section .section-title-wrap { border-color: rgba(255,255,255,0.2); }

/* ---- POST CARD ---- */
.post-card {
    display: flex;
    flex-direction: column;
    background: rgba(2,33,46,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    position: relative;
    transition: transform 0.3s ease;
    height: 100%;
}

.post-card:hover { transform: translateY(-8px); }

.post-card__image {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
}

.post-card__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card__image img { transform: scale(1.05); }

.post-card__image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 60%;
    background: linear-gradient(to bottom, transparent, var(--primary));
}

.post-card__meta {
    padding: 1.25rem 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.post-card__category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-card__category::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    flex-shrink: 0;
}

.post-card__title {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
    margin-bottom: auto;
    padding-bottom: 1rem;
    transition: color 0.2s;
}

.post-card:hover .post-card__title { color: var(--accent-green); }

.post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.post-card__author { font-size: 12px; color: rgba(255,255,255,0.7); }
.post-card__date { font-size: 12px; color: rgba(255,255,255,0.6); }

/* ---- SWIPER STYLES ---- */
.posts-swiper { padding: 1rem 0 2.5rem !important; overflow: visible !important; }
.posts-swiper .swiper-slide { height: auto; }

.swiper-pagination-bullet {
    background: rgba(255,255,255,0.4) !important;
    opacity: 1 !important;
}
.swiper-pagination-bullet-active { background: #fff !important; }

.slider-nav {
    display: flex;
    align-items: center;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 0 0 0 1rem;
}

.slider-btn {
    background: rgba(255,255,255,0.08);
    border: none;
    width: 50px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1.1rem;
}

.slider-btn:hover { background: var(--accent); }

.slider-count {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    padding: 0 1rem;
    font-variant-numeric: tabular-nums;
}

/* ---- INTELLIGENCE FEED (dark bg) ---- */
.intelligence-feed-section {
    background: var(--primary);
    padding: 2rem 0 3rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

/* ---- POST CARD SMALL (feed cards) ---- */
.post-card-small {
    display: flex;
    flex-direction: column;
    background: rgba(2,33,46,0.5);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    transition: transform 0.3s;
    height: 100%;
}

.post-card-small:hover { transform: translateY(-6px); }

.post-card-small__image {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.post-card-small__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card-small:hover .post-card-small__image img { transform: scale(1.05); }

.post-card-small__body {
    padding: 1rem 1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-small__cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.post-card-small__cat::before {
    content: '';
    width: 5px; height: 5px;
    background: var(--accent-green);
    border-radius: 50%;
}

.post-card-small__title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
    margin-bottom: auto;
    padding-bottom: 0.75rem;
    transition: color 0.2s;
}

.post-card-small:hover .post-card-small__title { color: var(--accent-green); }

.post-card-small__excerpt {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-small__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: auto;
}

.post-card-small__author, .post-card-small__date {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
}

/* ---- FEED FILTERS ---- */
.feed-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.25);
    background: transparent;
    color: rgba(255,255,255,0.75);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
    text-decoration: none;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ---- RESULTS META ---- */
.results-meta {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    text-align: right;
    margin-bottom: 1rem;
}

/* ---- PAGINATION ---- */
.pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(3,48,66,0.6);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.page-btn:hover, .page-btn.current {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: var(--primary);
}

.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ---- CTA BAR ---- */
.cta-bar {
    background: var(--primary-gradient);
    padding: 2rem 0;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.cta-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    transform: skewY(-0.8deg);
    transform-origin: left top;
    z-index: -1;
}

.cta-bar h2 {
    color: #fff;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: 0;
    font-weight: 500;
}

.btn-cta {
    background: #5C0696;
    border: 3px solid #5C0696;
    color: #fff;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    font-family: var(--font);
}

.btn-cta:hover {
    background: #7E0FC8;
    border-color: #7E0FC8;
    color: #fff;
}

/* ---- NO POSTS ---- */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255,255,255,0.6);
}

.no-posts i { font-size: 3rem; margin-bottom: 1rem; display: block; opacity: 0.4; }

/* ---- ALERT ---- */
.alert { border-radius: 0; border: none; }

/* ---- CATEGORY PAGE ---- */
.cat-hero {
    background: var(--primary);
    padding: 100px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cat-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cat-hero p { color: rgba(255,255,255,0.7); }
.cat-badge {
    background: var(--accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

/* ---- TAGS ---- */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s;
    margin: 2px;
}
.tag:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- UTILITIES ---- */
.text-accent { color: var(--accent) !important; }
.text-accent-green { color: var(--accent-green) !important; }
.bg-primary-dark { background: var(--primary) !important; }
.divider { border-color: rgba(255,255,255,0.15); }
.fw-600 { font-weight: 600; }

@media (max-width: 767px) {
    .hero-content { padding: 60px 0 40px; }
    .section-title-wrap { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ==========================================
   FOOTER
========================================== */

.site-footer{
    background:#022B3A !important;
    color:#fff;
    width:100%;
    margin:0;
    padding:0;
}

.footer-top{
    background:#022B3A;
    padding:70px 0;
}

.footer-bottom{
    background:#022B3A;
    border-top:1px solid rgba(255,255,255,.15);
    padding:24px 0;
}

.footer-logo img{
    max-width:280px;
    height:auto;
}

.footer-links{
    list-style:none;
    padding:0;
    margin:0;
}

.footer-links li{
    margin-bottom:18px;
}

.footer-links a{
    color:#fff;
    font-size:1.1rem;
    font-weight:400;
    text-decoration:none;
    transition:.3s;
}

.footer-links a:hover{
    color:#38BDF8;
}

.footer-social{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:18px;
}

.footer-social a{
    color:#fff;
    font-size:2rem;
    transition:.3s;
}

.footer-social a:hover{
    color:#38BDF8;
}

.footer-bottom-links{
    list-style:none;
    display:flex;
    gap:40px;
    padding:0;
    margin:0;
}

.footer-bottom-links a{
    color:#fff;
    text-decoration:none;
    font-size:1rem;
}

.footer-copy{
    color:#fff;
    display:block;
    text-align:right;
}

/* Responsive */

@media(max-width:991px){

.footer-top{
    text-align:center;
}

.footer-social{
    justify-content:center;
    margin-top:30px;
}

.footer-bottom-links{
    justify-content:center;
    margin-bottom:15px;
}

.footer-copy{
    text-align:center;
}

}