/* ===========================================================
   FOOTCARE LADY BLOG — GLOBAL STYLESHEET
   Location: /cms/style.css
   Colour palette:
     Blue Primary: #002b5e
     Grey Light:   #f1f5f9
     Grey Border:  #d1d5db
     Grey Text:    #4a5568
=========================================================== */

/* RESET */
* {
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
    background:#ffffff;
    color:#1e293b;
    line-height:1.55;
}

/* -----------------------------------------------------------
   GLOBAL IMAGE RESPONSIVENESS (NON-DESIGN SAFE ADDITION)
   Ensures all images scale correctly on mobile, tablet, desktop
----------------------------------------------------------- */

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

/* Prevent oversized images inside rich content */
.post-body img {
    max-width: 100%;
    height: auto;
}

/* Ensure card images never overflow containers */
.blog-img,
.post-image,
.related-img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* -----------------------------------------------------------
   CONTAINER
----------------------------------------------------------- */
.container {
    width:90%;
    max-width:1100px;
    margin:auto;
}

/* TITLES */
.page-title {
    font-size:34px;
    color:#002b5e;
    font-weight:700;
    margin-bottom:25px;
    letter-spacing:0.02em;
}

.section-title {
    font-size:26px;
    margin:25px 0 15px 0;
    color:#002b5e;
}

/* BUTTONS */
.btn {
    display:inline-block;
    padding:10px 18px;
    background:#002b5e;
    color:#ffffff !important;
    text-decoration:none;
    border-radius:6px;
    font-size:15px;
    transition:0.2s;
}

.btn:hover {
    background:#004089;
}

.btn.small {
    padding:6px 12px;
    font-size:14px;
}

/* BLOG GRID */
.blog-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
    grid-gap:25px;
    margin-top:20px;
}

/* BLOG CARD */
.blog-card {
    border:1px solid #d1d5db;
    border-radius:10px;
    background:#ffffff;
    box-shadow:0 2px 6px rgba(0,0,0,0.05);
    padding:15px;
    display:flex;
    flex-direction:column;
}

.blog-card h2 {
    margin:12px 0;
    font-size:20px;
    color:#002b5e;
}

.blog-card h2 a {
    text-decoration:none;
    color:#002b5e;
}

.blog-card h2 a:hover {
    text-decoration:underline;
}

.blog-img {
    width:100%;
    border-radius:8px;
    margin-bottom:10px;
}

/* EXCERPT */
.excerpt {
    margin-bottom:15px;
    font-size:15px;
    color:#4a5568;
}

/* PAGINATION */
.pagination {
    margin:35px 0;
    display:flex;
    justify-content:left;
    align-items:left;
    gap:15px;
}

.page-btn {
    padding:8px 14px;
    border:1px solid #002b5e;
    border-radius:6px;
    text-decoration:none;
    color:#002b5e;
    font-size:14px;
}

.page-btn:hover {
    background:#002b5e;
    color:#ffffff;
}

.page-num {
    font-size:15px;
    color:#4a5568;
}

/* POST PAGE */
.post-wrapper {
    max-width:800px;
    margin:auto;
}

.post-title {
    font-size:32px;
    font-weight:700;
    margin-bottom:8px;
    color:#002b5e;
}

.post-date {
    font-size:14px;
    color:#4a5568;
    margin-bottom:15px;
}

.post-categories {
    font-size:14px;
    margin-bottom:18px;
}

.post-categories a {
    color:#002b5e;
    text-decoration:none;
}

.post-categories a:hover {
    text-decoration:underline;
}

.post-image {
    width:100%;
    border-radius:10px;
    margin:15px 0 25px;
}

/* POST BODY */
.post-body {
    font-size:17px;
    color:#1e293b;
    line-height:1.7;
}

.post-body p {
    margin-bottom:18px;
}

.post-body h2,
.post-body h3 {
    color:#002b5e;
    margin-top:20px;
    margin-bottom:10px;
}

/* RELATED POSTS */
.related-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(230px, 1fr));
    gap:20px;
    margin-top:20px;
}

.related-card {
    border:1px solid #d1d5db;
    padding:12px;
    background:white;
    border-radius:10px;
    box-shadow:0 2px 6px rgba(0,0,0,0.05);
}

.related-card h3 {
    font-size:18px;
    margin:10px 0;
}

.related-card h3 a {
    color:#002b5e;
    text-decoration:none;
}

.related-card h3 a:hover {
    text-decoration:underline;
}

.related-img {
    width:100%;
    border-radius:6px;
}

/* SIDEBAR LAYOUT HANDLING */
.main-layout {
    display:flex;
    gap:30px;
}

@media (max-width: 1024px) {
    .main-layout {
        flex-direction:column;
    }
}

/* SEARCH PAGE */
.search-form {
    display:flex;
    gap:15px;
    margin-bottom:20px;
}

.search-input {
    flex:1;
    padding:10px;
    border:1px solid #cbd5e1;
    border-radius:6px;
    font-size:15px;
}

/* FOOTER OVERRIDES (FROM TEMPLATE) */
.fcl-footer a {
    font-size:15px;
}

/* GLOBAL LINK STYLE */
a {
    color:#002b5e;
}
