/* =====================================================================
 *  GOLWEL SECURITY SERVICES  -  Content Modules Stylesheet
 *  Blog, gallery + lightbox, tips, clients, testimonials grid
 * =================================================================== */

/* ----------  TWO-COLUMN CONTENT LAYOUT  ---------------------------- */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}
.content-layout.reverse { grid-template-columns: 320px 1fr; }

/* ----------  SIDEBAR  ---------------------------------------------- */
.sidebar-block {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
.sidebar-block h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}
.cat-list li { margin-bottom: 4px; }
.cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--slate);
    font-weight: 600;
    font-size: 0.92rem;
}
.cat-list a:hover, .cat-list a.active {
    background: var(--green-050);
    color: var(--green);
}
.cat-list .count {
    background: var(--green-050);
    color: var(--green);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
}
.cat-list a:hover .count, .cat-list a.active .count {
    background: var(--gold);
    color: var(--green-900);
}

.recent-post {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.recent-post:last-child { border-bottom: 0; padding-bottom: 0; }
.recent-post .rp-thumb {
    width: 64px; height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--green-050);
}
.recent-post .rp-thumb-ph {
    width: 64px; height: 64px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--green), var(--green-900));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(236,164,52,.5);
    font-size: 1.2rem;
}
.recent-post .rp-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ink);
    line-height: 1.35;
}
.recent-post .rp-title:hover { color: var(--green); }
.recent-post .rp-date { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

/* ----------  BLOG CARDS  ------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-card .bc-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: var(--green-900);
}
.blog-card .bc-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.blog-card:hover .bc-img img { transform: scale(1.05); }
.blog-card .bc-img-ph {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green), var(--green-900));
    color: rgba(236,164,52,.4);
    font-size: 2.6rem;
}
.bc-category {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--gold);
    color: var(--green-900);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.blog-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.bc-meta {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 10px;
}
.bc-meta span { display: flex; align-items: center; gap: 5px; }
.blog-card h3 {
    font-size: 1.22rem;
    margin-bottom: 10px;
    line-height: 1.3;
}
.blog-card h3 a { color: var(--green); }
.blog-card h3 a:hover { color: var(--gold-700); }
.blog-card .bc-excerpt { flex: 1; font-size: 0.93rem; }

/* ----------  BLOG SINGLE  ------------------------------------------ */
.post-hero {
    aspect-ratio: 21 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 28px;
    background: var(--green-900);
}
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-hero-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--green), var(--green-900));
    color: rgba(236,164,52,.4);
    font-size: 4rem;
}
.post-body {
    font-size: 1.04rem;
    line-height: 1.8;
    color: var(--slate);
}
.post-body h2, .post-body h3 { margin: 28px 0 12px; }
.post-body p { margin-bottom: 18px; }
.post-body img { border-radius: var(--radius); margin: 20px 0; }
.post-body ul, .post-body ol { margin: 0 0 18px 22px; }
.post-body ul li { list-style: disc; margin-bottom: 8px; }
.post-body ol li { list-style: decimal; margin-bottom: 8px; }
.post-body blockquote {
    border-left: 4px solid var(--gold);
    background: var(--green-050);
    padding: 16px 22px;
    margin: 20px 0;
    font-style: italic;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.post-tags .tag {
    background: var(--green-050);
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
}
.post-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.post-share a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--green-050);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-share a:hover { background: var(--green); color: #fff; }

/* ----------  GALLERY GRID  ----------------------------------------- */
.gallery-filter {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.gallery-filter button {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 8px 18px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--slate);
    cursor: pointer;
    transition: all .2s ease;
}
.gallery-filter button:hover { border-color: var(--green); color: var(--green); }
.gallery-filter button.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--green-900);
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gi-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 55%, rgba(0,42,0,.85));
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity .25s ease;
}
.gallery-item:hover .gi-overlay { opacity: 1; }
.gallery-item .gi-caption {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}
.gallery-item .gi-zoom {
    position: absolute;
    top: 14px; right: 14px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(.8);
    transition: all .25s ease;
}
.gallery-item:hover .gi-zoom { opacity: 1; transform: scale(1); }

/* ----------  LIGHTBOX  --------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 20, 0, 0.94);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 90vw;
    max-height: 82vh;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}
.lightbox-caption {
    position: absolute;
    bottom: 28px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.9);
    font-size: 0.95rem;
    text-align: center;
    max-width: 80vw;
}
.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255,255,255,.12);
    border: 0;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: var(--gold); color: var(--green-900); }
.lightbox-close {
    top: 24px; right: 24px;
    width: 48px; height: 48px;
    font-size: 1.5rem;
}
.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px; height: 52px;
    font-size: 1.7rem;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ----------  TIP CARDS  -------------------------------------------- */
.tip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.tip-card {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 26px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.tip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tip-card .tip-cat {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-700);
}
.tip-card h3 { font-size: 1.16rem; margin: 8px 0 10px; }
.tip-card p { font-size: 0.93rem; margin-bottom: 0; }
.tip-card .tip-icon {
    float: right;
    font-size: 1.4rem;
    color: var(--green-300);
}

/* ----------  CLIENTS PAGE  ----------------------------------------- */
.client-sector {
    margin-bottom: 44px;
}
.client-sector-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.client-sector-head h3 {
    font-size: 1.3rem;
    white-space: nowrap;
}
.client-sector-head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.client-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.client-tile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 130px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.client-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
    border-color: var(--gold-300);
}
.client-tile img { max-height: 60px; width: auto; margin-bottom: 8px; }
.client-tile .ct-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--green-050);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.client-tile .ct-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--ink);
    line-height: 1.3;
}

/* ----------  RESPONSIVE  ------------------------------------------- */
@media (max-width: 992px) {
    .content-layout,
    .content-layout.reverse { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .client-grid { grid-template-columns: repeat(3, 1fr); }
    .tip-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .client-grid { grid-template-columns: repeat(2, 1fr); }
    .lightbox { padding: 16px; }
    .lightbox-nav { width: 42px; height: 42px; }
}

/* End of content.css */
