/*
Theme Name: Caring Alliance
Theme URI: https://www.caringalliance.co.uk
Author: Caring Alliance
Description: A clean, responsive WordPress theme based on the Caring Alliance design. Features a sticky menu, scroll-to-top button, rounded white content card on a blue background, lime-green footer accents, and Oswald menu typography.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: caringalliance
Tags: custom-background, custom-header, custom-menu, featured-images, sticky-menu, responsive, translation-ready
*/

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.5em;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
}

body {
    color: #474747;
    font: 12px/25px Arial, Helvetica, sans-serif;
    background: #538cc6;
    margin: 0;
    padding: 0;
}

/* ===== Layout Container ===== */
.featured {
    margin: 30px auto;
    max-width: 1100px;
}

.nyameni {
    width: 100%;
    max-width: 1060px;
    position: relative;
    margin: 0 auto;
    padding: 0;
}

.nyameni::after {
    content: "\0020";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.dogface {
    background: #ffffff;
    border-radius: 35px;
    padding: 20px;
    height: 100%;
}

/* ===== Grid System ===== */
.row {
    display: flex;
    flex-wrap: wrap;
}

.row::before, .row::after {
    content: '';
    display: block;
    overflow: hidden;
    visibility: hidden;
    width: 0;
    height: 0;
}

.row::after { clear: both; }

.wrap-col { margin: 30px; }

.col-full { width: 100%; }
.col-1-4 { width: 25%; }
.col-3-4 { width: 75%; }
.col-1-3 { width: 33.333%; }
.col-2-3 { width: 66.666%; }
.col-1-2 { width: 50%; }

.f-left { float: left; }
.f-right { float: right; }

/* ===== Header ===== */
.site-header {
    padding: 0;
    margin: 0;
}

.site-header .row {
    align-items: center;
}

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

.paright {
    text-align: right;
}

.paright h2 {
    color: #000000;
    font-size: 22px;
    font-family: Tahoma, Geneva, sans-serif;
    margin: 0;
    font-weight: normal;
}

.paright h6 {
    color: #000000;
    font-size: 14px;
    font-family: Tahoma, Geneva, sans-serif;
    margin: 4px 0 0 0;
    font-weight: normal;
    letter-spacing: -0.5px;
}

/* ===== Sticky Menu ===== */
.menu-wrapper {
    background: #85ccd9;
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: box-shadow 0.3s ease;
}

.menu-wrapper.is-stuck {
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

#cssmenu {
    width: auto;
    display: block;
    text-align: center;
    font-family: 'Oswald', sans-serif;
}

#cssmenu > ul {
    width: auto;
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

#cssmenu li {
    display: inline-block;
    position: relative;
    font-size: 0;
    margin: 0;
    padding: 0;
}

#cssmenu > ul > li > span,
#cssmenu > ul > li > a {
    font-size: 18px;
    color: #000000;
    text-decoration: none;
    padding: 14px 20px;
    display: block;
    cursor: pointer;
}

#cssmenu li:hover > span,
#cssmenu li:hover > a {
    color: #333333;
    background-color: #F3F3F3;
}

#cssmenu .current-menu-item > a,
#cssmenu .current-menu-item > span {
    color: #1c7c7c;
}

#cssmenu .dropdown {
    text-align: left;
    left: 0;
    font-family: Helvetica, Arial, sans-serif;
    color: #333333;
    background: #ffffff;
    display: none;
    position: absolute;
    min-width: 220px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
}

#cssmenu li:hover > .dropdown {
    display: block;
}

#cssmenu .dropdown li {
    display: block;
}

#cssmenu .dropdown li > span,
#cssmenu .dropdown li > a {
    font-size: 14px;
    font-weight: 400;
    font-family: inherit;
    margin: 0;
    padding: 8px 20px;
    color: #333333;
    text-decoration: none;
    display: block;
    background: #F3F3F3;
    transition: all 0.3s;
}

#cssmenu .dropdown li:hover > span,
#cssmenu .dropdown li:hover > a {
    color: #333333;
    background-color: #DDDDDD;
}

#cssmenu li.full-width {
    position: static;
}

#cssmenu li.full-width > .dropdown {
    width: 100%;
    left: 0;
    right: 0;
}

#cssmenu .dropdown .clm {
    display: inline-block;
    vertical-align: top;
    width: 240px;
    padding: 10px 15px;
    text-align: left;
}

#cssmenu .clm h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 5px 0;
    color: #333333;
}

#cssmenu .clm a {
    font-size: 14px;
    font-weight: 400;
    padding: 6px 0;
    color: #333333;
    text-decoration: none;
    display: block;
    background: transparent;
}

#cssmenu .clm a:hover {
    color: #1c7c7c;
    transition: color 0.2s;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #333;
    padding: 8px 14px;
    font-size: 16px;
    cursor: pointer;
    margin: 8px auto;
    text-align: center;
    color: #000;
    font-family: 'Oswald', sans-serif;
}

/* ===== Content Area ===== */
.hug {
    margin: 0 auto;
    padding: 30px 0;
    width: 100%;
    max-width: 1040px;
    overflow: hidden;
}

.hug_wrapper {
    background: #e6f2ff;
    padding: 30px;
    border-radius: 12px;
}

.site-main {
    padding: 30px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: "Open Sans", Georgia, Times, serif;
    color: #333333;
    margin: 0 0 15px 0;
}

.entry-content h1 { font-size: 28px; }
.entry-content h2 { font-size: 24px; }
.entry-content h3 { font-size: 20px; }

.entry-content p {
    margin-bottom: 24px;
    line-height: 25px;
}

.entry-content a {
    color: #1c7c7c;
    text-decoration: none;
}

.entry-content a:hover {
    text-decoration: underline;
}

.entry-title {
    font-family: "Open Sans", Georgia, Times, serif;
    font-size: 28px;
    margin-bottom: 15px;
    color: #333333;
}

.entry-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
}

/* ===== Icon Boxes ===== */
.icon-box {
    position: relative;
    margin-bottom: 30px;
    text-align: center;
    padding: 25px 20px;
    border-radius: 12px;
}

.icon-box .icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    margin: 0 auto 15px auto;
    text-align: center;
    font-size: 48px;
    border-radius: 50%;
}

.icon-box .icon-box-body {
    overflow: hidden;
    position: relative;
}

.icon-box .icon-box-body h2 {
    margin-bottom: .75em;
    font-size: 20px;
}

.icon-box.icon-box-color__primary .icon {
    color: #fff;
    background: #fc8a58;
}
.icon-box.icon-box-color__primary.boxed {
    background: #fc8a58;
    color: #fff;
}
.icon-box.icon-box-color__primary.boxed .icon-box-body h2 {
    color: #fff;
}

.icon-box.icon-box-color__secondary .icon {
    color: #fff;
    background: #7fdbfd;
}
.icon-box.icon-box-color__secondary.boxed {
    background: #7fdbfd;
    color: #fff;
}
.icon-box.icon-box-color__secondary.boxed .icon-box-body h2 {
    color: #fff;
}

.icon-box.icon-box-color__tertiary .icon {
    color: #fff;
    background: #c4d208;
}
.icon-box.icon-box-color__tertiary.boxed {
    background: #c4d208;
    color: #fff;
}
.icon-box.icon-box-color__tertiary.boxed .icon-box-body h2 {
    color: #fff;
}

/* ===== Footer ===== */
.site-footer {
    text-align: center;
    padding: 20px 0;
    background: #99cc00;
    border-radius: 0 0 35px 35px;
    color: #000000;
}

.site-footer .footer-links {
    padding: 10px 0;
}

.site-footer .footer-links a {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
}

.site-footer .footer-links a:hover {
    color: #474747;
    text-decoration: underline;
}

.site-footer .pasi {
    font: 12px Tahoma, Geneva, sans-serif;
    color: #eeeeee;
    padding: 8px 0;
}

/* ===== Scroll-to-Top Button ===== */
#scroll-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #99cc00;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 10000;
    transition: background 0.3s ease, transform 0.3s ease;
}

#scroll-to-top:hover {
    background: #85b300;
    transform: translateY(-3px);
}

#scroll-to-top svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

/* ===== Posts & Comments ===== */
.post, .page {
    margin-bottom: 40px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sticky { display: block; }

/* ===== Responsive ===== */
@media only screen and (max-width: 959px) {
    .nyameni { max-width: 768px; }
    .wrap-col { margin: 15px; }
}

@media only screen and (max-width: 767px) {
    .nyameni, .col-1-2, .col-1-3, .col-2-3, .col-1-4, .col-3-4 {
        width: 100%;
    }

    .row { flex-direction: column; }

    .wrap-col { margin: 10px; }

    .dogface {
        border-radius: 15px;
        padding: 10px;
    }

    .paright { text-align: center; }

    #cssmenu ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: left;
    }

    #cssmenu li {
        display: block;
        width: 100%;
    }

    #cssmenu > ul > li > span,
    #cssmenu > ul > li > a {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    #cssmenu .dropdown {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
    }

    #cssmenu li.open > .dropdown {
        display: block;
    }

    #cssmenu li.full-width > .dropdown {
        width: 100%;
    }

    #cssmenu .dropdown .clm {
        display: block;
        width: 100%;
        padding: 5px 15px;
    }

    .menu-toggle {
        display: block;
    }

    .site-footer {
        border-radius: 0 0 15px 15px;
    }

    #scroll-to-top {
        width: 42px;
        height: 42px;
        line-height: 42px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}
