/* ================================================================
   Ekiti Council of Elders — Custom Overrides
   Applied on top of the Kingster template (style-core.css)
   ================================================================ */

/* ── Brand colours ────────────────────────────────────────────── */
:root {
    --brand-navy:  #192f59;
    --brand-green: #3db166;
    --brand-light: #f5f5f5;
}

/* ── Top bar ───────────────────────────────────────────────────── */
.kingster-top-bar {
    background-color: var(--brand-navy) !important;
}
.kingster-top-bar-left,
.kingster-top-bar-left a,
.kingster-top-bar-right a {
    color: #c0c8d8 !important;
}
.kingster-top-bar-right-button {
    background-color: var(--brand-green) !important;
    border-color: var(--brand-green) !important;
    color: #ffffff !important;
    border-radius: 3px;
    padding: 6px 18px;
    font-weight: 600;
}
.kingster-top-bar-right-button:hover {
    background-color: #30a057 !important;
}

/* ── Sticky header shadow ──────────────────────────────────────── */
.kingster-header-wrap.kingster-style-fixed {
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

/* ── Navigation active state ───────────────────────────────────── */
.sf-menu > li.current-menu-item > a,
.sf-menu > li > a:hover {
    color: var(--brand-green) !important;
}

/* ── Page title banner ─────────────────────────────────────────── */
/* Background + overlay handled by kingster-style-custom.css line 1
   (.kingster-page-title-wrap { background-image: url(../upload/page-title.jpg) })
   and the skin colour rules at the bottom of kingster-style-custom.css.
   We only add small tweaks here. */

/* Increase banner height — override kingster-style-custom.css (was 60px each) */
.kingster-page-title-wrap.kingster-style-custom .kingster-page-title-content {
    padding-top:    120px !important;
    padding-bottom: 110px !important;
}
/* Slightly larger title text for the taller banner */
.kingster-page-title-wrap.kingster-style-custom .kingster-page-title {
    font-size: 50px !important;
}
/* Responsive — keep reasonable on small screens */
@media (max-width: 767px) {
    .kingster-page-title-wrap.kingster-style-custom .kingster-page-title-content {
        padding-top:    70px !important;
        padding-bottom: 60px !important;
    }
    .kingster-page-title-wrap.kingster-style-custom .kingster-page-title {
        font-size: 32px !important;
    }
}

.kingster-breadcrumbs-item a:hover {
    color: var(--brand-green);
}

/* ── Buttons ───────────────────────────────────────────────────── */
.gdlr-core-button-color.gdlr-core-button-solid,
.gdlr-core-button-color.gdlr-core-button-solid:visited {
    background-color: var(--brand-green) !important;
    border-color: var(--brand-green) !important;
    color: #ffffff !important;
    text-decoration: none;
    display: inline-block;
}
.gdlr-core-button-color.gdlr-core-button-solid:hover {
    background-color: #30a057 !important;
    border-color: #30a057 !important;
}

/* ── Footer ────────────────────────────────────────────────────── */
.kingster-footer-wrapper {
    background-color: var(--brand-navy) !important;
    padding: 60px 0 30px !important;
}
.kingster-widget-title {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px !important;
}
.kingster-widget-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--brand-green);
    margin-top: 8px;
}
.gdlr-core-custom-menu-widget li a {
    color: #a0aec0 !important;
    font-size: 14px !important;
    line-height: 2 !important;
}
.gdlr-core-custom-menu-widget li a:hover {
    color: var(--brand-green) !important;
}
.kingster-copyright-wrapper {
    background-color: #111c2e !important;
    padding: 18px 0 !important;
}
.kingster-copyright-left {
    color: #7a8a9e !important;
    font-size: 13px !important;
}
.gdlr-core-social-network-icon {
    color: #7a8a9e !important;
    margin-left: 12px;
    font-size: 16px;
    transition: color 0.2s;
}
.gdlr-core-social-network-icon:hover {
    color: var(--brand-green) !important;
}

/* ── Blog grid cards ───────────────────────────────────────────── */
.gdlr-core-blog-modern {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    background: #fff;
    transition: box-shadow 0.25s, transform 0.25s;
}
.gdlr-core-blog-modern:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}
.gdlr-core-blog-title a {
    color: #192f59 !important;
}
.gdlr-core-blog-title a:hover {
    color: var(--brand-green) !important;
}
.news-article-content p {
    margin: 0 0 18px;
}
.news-article-content h1,
.news-article-content h2,
.news-article-content h3 {
    color: var(--brand-navy);
    line-height: 1.35;
    margin: 24px 0 12px;
}
.news-article-content ul,
.news-article-content ol {
    margin: 0 0 18px 24px;
    padding-left: 20px;
}
.news-article-content a {
    color: var(--brand-green);
    text-decoration: underline;
}

/* ── Gallery lightbox + hover overlay ─────────────────────────── */
.gdlr-core-gallery-list {
    border-radius: 4px;
    overflow: hidden;
    position: relative;           /* needed for overlay positioning */
    display: block;
}
.gdlr-core-gallery-list a {
    display: block;
    position: relative;
    overflow: hidden;
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(25, 47, 89, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.gdlr-core-gallery-list a:hover .gallery-overlay {
    opacity: 1;
}
.gdlr-core-gallery-list a img {
    display: block;
    width: 100%;
    transition: transform 0.4s ease;
}
.gdlr-core-gallery-list a:hover img {
    transform: scale(1.05);
}

/* ── Contact form inputs ───────────────────────────────────────── */
.input1:focus,
form textarea:focus,
form input:focus {
    outline: none;
    border-color: var(--brand-green) !important;
    box-shadow: 0 0 0 3px rgba(61, 177, 102, 0.15);
}

/* ── Revolution Slider container full-width fix ────────────────── */
.rev_slider_wrapper {
    width: 100% !important;
}

/* ── Mobile hamburger — white bars on navy header ──────────────── */
.kingster-mobile-header .kingster-mobile-button-hamburger:before,
.kingster-mobile-header .kingster-mobile-button-hamburger:after,
.kingster-mobile-header .kingster-mobile-button-hamburger span {
    background-color: #ffffff;
}

/* ── Mobile header ─────────────────────────────────────────────── */
.kingster-mobile-header {
    background-color: var(--brand-navy) !important;
}

/* ── Responsive tweaks ─────────────────────────────────────────── */
@media (max-width: 767px) {
    .gdlr-core-pbf-column { padding-left: 15px !important; padding-right: 15px !important; }
    .kingster-page-title { font-size: 26px !important; }
}

/* ── Scroll to Top button ──────────────────────────────────────── */
#elders-scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--brand-green);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
    z-index: 9999;
}
#elders-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#elders-scroll-top:hover {
    background-color: var(--brand-navy);
}
@media (max-width: 767px) {
    #elders-scroll-top {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 17px;
    }
}

/* ── Project cards ─────────────────────────────────────────────── */
.elders-project-card {
    background: #ffffff;
    border-radius: 4px;
    padding: 28px 26px 24px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.07);
    width: 100%;
    height: 100%;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.elders-project-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}
.elders-project-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.elders-project-card__status {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.elders-project-card__year {
    font-size: 12px;
    color: #999;
}
.elders-project-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #192f59;
    line-height: 1.4;
    margin-bottom: 12px;
}
.elders-project-card__info {
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}
.elders-project-card__desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-top: 12px;
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* Responsive: 2 cols on tablet, 1 on mobile */
@media (max-width: 999px) {
    .elders-project-card__col { width: 50% !important; }
}
@media (max-width: 600px) {
    .elders-project-card__col { width: 100% !important; }
}
