/*
Theme Name: Ardee & District A.C. 3
Theme URI: https://ardeedistrictac.com
Author: Ardee & District Athletic Club
Description: Official theme for Ardee & District Athletic Club – Est. 1992. Faithful rebuild of the original Hueman-based design.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: ardee-ac
*/

/* ============================================
   FONT — Titillium Web via Google Fonts
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap');

/* ============================================
   VARIABLES
   ============================================ */
:root {
    --blue:        #3651a3;
    --gold:        #bf945c;
    --white:       #ffffff;
    --bg:          #eaeaea;
    --text:        #000080;
    --border:      #e0e0e0;
    --light:       #f5f5f5;

    --font:        'Titillium Web', 'Helvetica Neue', Arial, sans-serif;
    --wrap:        1380px;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 13px; }
body {
    font-family: var(--font);
    font-weight: 300;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
p { margin-bottom: 0.9em; }
ul, ol { padding-left: 1.4em;     margin-left: 1em;margin-bottom: 1em;}
strong { font-weight: 600; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font); font-weight: 300; line-height: 1.3; }

/* ============================================
   INNER WRAP — centres content inside
   full-width bands
   ============================================ */
.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   1. SITE HEADER — full width BLUE
      Logo left | Site name right of logo, white text
   ============================================ */
#site-header {
    background: var(--blue);
    width: 100%;
}
#site-header .wrap {
    display: flex;
    align-items: center;
  
    gap: 18px;
}
#site-logo img {
    max-height: 175px;
    width: auto;
}
#site-logo a { display: block; }
#site-title {
    font-size: 3.4rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.5px;
}
#site-title a { color: var(--white); }
#site-title a:hover { color: rgba(255,255,255,0.8); text-decoration: none; }

/* ============================================
   2. MAIN NAV — full width gold bar
      ABOVE the blue est. banner (as per original)
   ============================================ */
#main-nav {
    background: var(--gold);
    width: 100%;
    position: relative;
    z-index: 500;
    max-width: var(--wrap);
    margin:auto;
}
#main-nav .wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 0.9rem;
    padding: 10px 20px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: var(--font);
}

/* Top-level list */
#primary-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}
#primary-menu > li { position: relative; }
#primary-menu > li > a {
    display: block;
    color:rgba(255,255,255,0.7);
    padding: 11px 14px;
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s;
    text-decoration: none;
}
#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-page-ancestor > a,
#primary-menu > li.current-menu-ancestor > a {
    background: rgba(0,0,0,0.16);
    color: var(--white);
    text-decoration: none;
}

/* Dropdown arrow */
#primary-menu li.menu-item-has-children > a::after {
    content: ' \25be';
    font-size: 0.75em;
    opacity: 0.85;
}

/* Level-1 sub-menu */
#primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 215px;
    background: var(--blue);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 600;
}
#primary-menu .sub-menu li { position: relative; }
#primary-menu .sub-menu li a {
    display: block;
    color:rgba(255,255,255,0.7);
    padding: 9px 15px;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: background 0.15s;
    white-space: nowrap;
    text-decoration: none;
}
#primary-menu .sub-menu li a:hover,
#primary-menu .sub-menu li.current-menu-item > a { background: rgba(0,0,0,0.2);color: var(--white); }

/* Level-2 sub-menu (fly right) */
#primary-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    background: #2a3d8a;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.25);
}

/* Show on hover / focus-within */
#primary-menu > li:hover > .sub-menu,
#primary-menu > li:focus-within > .sub-menu,
#primary-menu .sub-menu li:hover > .sub-menu,
#primary-menu .sub-menu li:focus-within > .sub-menu { display: block; }

/* ============================================
   3. EST. BANNER — full width blue
      BELOW the nav (as per original)
   ============================================ */
#est-banner {
    background: var(--white);
    width: 100%;
    max-width: var(--wrap);
    margin:auto;
}
#est-banner .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    
}
.est-text {
    font-size:1.3em;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #666;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left:20px;
}
.est-text strong { color: #666; }

/* FOLLOW: + social icons */
.follow-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 17px;
    padding-bottom: 17px;
    background: #3b8dbd;
    width: 240px;
    padding-right:20px;
    padding-left:20px;
}
.follow-bar .follow-label {
    font-size: 1.1rem;
        font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.6);
    margin-right: 4px;
}
.follow-bar a {
    color: var(--white);
    font-size: 0.82rem;
    width: 22px;
    height: 22px;
    border-radius: 2px;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
    text-decoration: none;
}
.follow-bar a:hover { background: rgba(255,255,255,0.35); }

/* ============================================
   4. SITE BODY — narrow white card on grey
   ============================================ */
#site-body {
    max-width: var(--wrap);
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    min-height: 500px;
}

/* Two-column layout inside body */
#content-wrap {
    display: flex;
}
#main-content {
    flex: 1;
    min-width: 0;
    padding: 22px 40px 30px;
    border-right: 1px solid var(--border);
}
#sidebar {
    width: 240px;
    flex-shrink: 0;
    padding: 18px 15px;
    background: var(--white);
}

#main-content h3 {
    font-size: 28px;
    letter-spacing: -0.5px;
}

#main-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 1em;
}
#main-content h5 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 1em;
}


/* ============================================
   5. ENTRY CONTENT
   ============================================ */
.entry-title {
    font-size: 1.5rem;
    color: var(--blue);
    margin-bottom: 14px;
    font-weight: 300;
}
.entry-content h2 { font-size: 3.1rem; color: var(--blue); margin: 20px 0 9px; font-weight: 300; }
.entry-content h3 { font-size: 0.98rem; color: var(--gold); margin: 16px 0 7px; font-weight: 300; }
.entry-content h4 { font-size: 0.92rem; color: var(--blue); margin: 13px 0 5px; }
.entry-content p  { line-height: 1.7; margin-bottom: 0.9em; font-size:18px; }
.entry-content ul,
.entry-content ol { margin-bottom: 0.9em;font-size:18px;  }
.entry-content li { margin-bottom: 0.35em; font-size:18px; }
.entry-content a  { color: var(--gold); }
.entry-content a:hover { color: var(--blue); }
.entry-content img { margin: 12px ; }

/* Dot/star dividers */
.stars-divider {
    text-align: center;
    color: var(--gold);
    font-size: 0.58rem;
    letter-spacing: 4px;
    margin: 16px 0;
}

/* Section headings e.g. "JUVENILE TRAINING :-" */
.section-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 0 8px;
}
/* table */
.entry-content  table { font-size: 14px; margin-bottom: 1.5em; width: 100%; text-align: center; }
.entry-content  table tr.alt { background: #f1f1f1; }
.entry-content  table td { border-bottom: 1px solid #f1f1f1; text-align: center; padding: 5px; vertical-align: middle; }
.entry-content  table th { font-weight: 600; text-align: center; border-top: 1px solid #f1f1f1; border-bottom: 1px solid #f1f1f1; padding: 10px 5px; }
/* ============================================
   6. FRONT PAGE SPECIFIC
   ============================================ */
.home-crest {
    text-align: center;
    margin: 10px auto 5px;
}
.home-crest img {
    max-width: 170px;
    margin: 0 auto;
}
.home-welcome-title {
    text-align: center;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 6px 0 4px;
}
.home-welcome-sub {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gold);
    font-style: italic;
    margin-bottom: 6px;
}
.home-info-line {
    text-align: center;
    font-size: 0.88rem;
    margin-bottom: 3px;
}
.home-contact-line {
    text-align: center;
    font-size: 0.98rem;
    margin: 10px 0;
}
.home-contact-line a.email-link {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 600;
}
.home-contact-line a.contact-link {
    color: var(--gold);
    font-weight: 600;
}

/* Coloured training sub-bullets */
.training-loc {
    color: var(--blue);
    font-weight: 400;
}
.adult-heading {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 0 4px;
}
.adult-subline {
    color: var(--blue);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 10px;
}

/* ============================================
   7. NEWS / BLOG LISTING
   ============================================ */
.post-item { margin-bottom: 25px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.post-item:last-child { border-bottom: none; }
.post-item-title { font-size: 1.18rem; margin-bottom: 5px; }
.post-item-title a { color: var(--blue); }
.post-item-title a:hover { color: var(--gold); text-decoration: none; }
.post-item-meta { font-size: 0.74rem; color: #999; margin-bottom: 7px; }
.post-item-excerpt { font-size: 1.2rem; line-height: 1.6; }
.read-more {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.76rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-decoration: none;
}
.read-more:hover { color: var(--blue); text-decoration: none; }
/* ============================================
   BLOG LISTING - Featured + Grid Layout
   ============================================ */

/* First post - full width */
.post-item--featured {
    margin-bottom: 25px;
    padding-bottom: 22px;
    border-bottom: 2px solid var(--gold);
}
.post-item--featured .post-item-title {
    font-size: 2.3rem;
    font-weight: 600;
}
.post-item--featured img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 12px;
}

/* Grid wrapper for remaining posts - 2 per row */
.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.post-item--grid {
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}
.post-item--grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 8px;
}
.post-item--grid .post-item-title {
    font-size: 1.8rem;
    font-weight: 600;
}
.post-item--grid .post-item-excerpt {
    font-size: 1.2rem;
}

/* Responsive */
@media ( max-width: 600px ) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   8. SIDEBAR WIDGETS
   ============================================ */
.widget { margin-bottom: 22px; }
.widget-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 9px;
    padding-bottom: 0;
    /* No border — matches original plain uppercase label */
}

/* Search widget — blue button, matches original */
.sidebar-search { display: flex; margin-bottom: 16px; }
.sidebar-search input[type="search"] {
    flex: 1;
    border: 1px solid var(--border);
    border-right: none;
    padding: 6px 9px;
    font-size: 0.82rem;
    font-family: var(--font);
    outline: none;
    color: var(--text);
}
.sidebar-search input[type="search"]::placeholder { color: #aaa; }
.sidebar-search button {
    background: var(--blue);
    color: var(--white);
    border: none;
    padding: 6px 13px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: var(--font);
    font-weight: 600;
    transition: background 0.18s;
    white-space: nowrap;
}
.sidebar-search button:hover { background: var(--gold); }

/* Recent posts / generic list widget */
.widget ul { list-style: none; padding: 0; }
.widget ul li {
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    line-height: 1.4;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--blue); }
.widget ul li small { display: block; color: #aaa; font-size: 0.72rem; }

/* Facebook widget label */
.widget-facebook-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 8px;
}

/* Sidebar social icons */
.sidebar-social { display: flex; gap: 6px; margin-top: 6px; }
.sidebar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--blue);
    color: var(--white);
    border-radius: 2px;
    font-size: 0.82rem;
    transition: background 0.18s;
    text-decoration: none;
}
.sidebar-social a:hover { background: var(--gold); }

/* ============================================
   9. PAGINATION
   ============================================ */
.pagination { display: flex; gap: 4px; margin: 16px 0; flex-wrap: wrap; align-items: center; }
.pagination a,
.pagination span {
    display: inline-block;
    padding: 4px 9px;
    font-size: 0.78rem;
    border: 1px solid var(--border);
    color: var(--blue);
}
.pagination .current { background: var(--blue); color: var(--white); border-color: var(--blue); }
.pagination a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); text-decoration: none; }

/* ============================================
   10. POST NAVIGATION
   ============================================ */
.post-nav { display: flex; justify-content: space-between; gap: 14px; margin: 16px 0; font-size: 0.8rem; }
.post-nav a { color: var(--gold); }

/* ============================================
   11. FOOTER — matches original exactly:
       - Light grey upper section (recent posts + sponsor)
       - Blue bottom bar (nav links + social icons)
       - White credit line inside blue bar
   ============================================ */
#site-footer {
    width: 100%;
}

/* Upper section — light grey, matches original */
.footer-upper {
    background: #fff;
    padding: 20px 0 18px;
    border-top: 1px solid #ddd;
}
.footer-top {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.footer-recent { flex: 1;max-width: 500px;}
.footer-recent h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #444;
    margin-bottom: 9px;
    font-weight: 700;
}
.footer-recent ul { list-style: none; padding: 0; }
.footer-recent ul li { font-size: 15px; padding: 10px 0;border-bottom: 1px solid #e4e4e4;}
.footer-recent ul li::before { content: '\25e6  '; color: #999; }
.footer-recent ul li a { color: #555; }
.footer-recent ul li a:hover { color: var(--blue); text-decoration: none; }

.footer-sponsor { flex: 0 0 auto; text-align: right; }
.footer-sponsor .sponsor-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 7px;
}
.footer-sponsor img { max-width: 130px; }
.footer-sponsor a { color: #444; font-size: 1rem; font-weight: 600; }
.footer-sponsor a:hover { color: var(--blue); text-decoration: none; }
.footer-middle {
    background: #fff;
}
/* Blue bottom bar — matches original */
.footer-bottom {
    background: var(--blue);
    padding: 10px 0;
}
.footer-bottom-inner {
    /*display: flex;*/
    /*justify-content: space-between;*/
    /*align-items: center;*/
    flex-wrap: wrap;
    gap: 8px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0;justify-content: center; }
.footer-nav li a {
    color: #999;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}
.footer-nav li a:hover { color: var(--white); }

.footer-social { display: flex; gap: 6px; justify-content: flex-end;}
.footer-social a {
    color: var(--white);
    font-size: 0.88rem;
    width: 26px;
    height: 26px;
    border-radius: 2px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
    text-decoration: none;
}
.footer-social a:hover { background: rgba(255,255,255,0.3); }

/* Credit line inside blue bar */
.footer-credit {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 6px 0 4px;
    background: var(--blue);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-credit a { color: rgba(255,255,255,0.65); }
.footer-credit a:hover { color: var(--white); text-decoration: none; }

/* ============================================
   MISC
   ============================================ */
.tag-link { display: inline-block; background: var(--light); color: var(--text) !important; font-size: 0.72rem; padding: 2px 7px; margin: 2px; border: 1px solid var(--border); border-radius: 2px; }
.tag-link:hover { background: var(--gold); color: var(--white) !important; text-decoration: none; }
.entry-footer { margin-top: 10px; font-size: 0.74rem; }
.edit-link a { color: #aaa; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px) {
    #sidebar { width: 100%; border-top: 1px solid var(--border); }
    #content-wrap { flex-direction: column; }
    #main-content { border-right: none; }
    
    #site-title {
    font-size: 2.4rem;
}
}

@media (max-width: 680px) {
    .menu-toggle { display: block; }
    #main-nav .wrap{padding:0;}
    #primary-menu { display: none; flex-direction: column;width: 100%; }
    #primary-menu.toggled { display: flex; }
    #primary-menu > li > a { padding: 10px 18px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    #primary-menu .sub-menu { display: block !important; position: static; box-shadow: none; background: rgba(0,0,0,0.13); min-width: 0; }
    #primary-menu .sub-menu .sub-menu { background: rgba(0,0,0,0.13); left: auto; top: auto; }
    #primary-menu .sub-menu li a { padding-left: 28px; }
    #primary-menu .sub-menu .sub-menu li a { padding-left: 42px; }
    #primary-menu li.menu-item-has-children > a::after { display: none; }
    #est-banner .wrap { flex-direction: column; align-items: flex-start; gap: 5px; }
    #site-header .wrap { flex-direction: column; gap: 6px; }
    .home-welcome-title { font-size: 1.2rem; }
    .footer-top { flex-direction: column; }
    .footer-sponsor { text-align: left; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    
     #site-title {
        font-size: 2rem;
    }
    
    .est-text {font-size: 1em;}
    .follow-bar {display: none;}
}

@media (max-width: 480px) {
    #main-content { padding: 14px; }
    .wrap { padding-left: 12px; padding-right: 12px; }
}
