/*
Theme Name:   In The City
Theme URI:    https://fultonlabs.net/themes/in-the-city
Description:  A portable Divi 5 child theme designed for hyperlocal community news sites. Provides a configurable post-grid homepage, RSS-driven sidebar widget, customizable navy navigation, boxed magazine layout, and a copyright-aware footer. Originally migrated from the Admiral theme on thecity1.com.
Author:       Fulton Labs Designs
Author URI:   https://fultonlabs.net
Template:     Divi
Version:      1.1.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  in-the-city
Tags:         news, magazine, community, hyperlocal, divi-child, three-columns, custom-menu, custom-colors, custom-logo, featured-images
*/

/* =========================================================================
   IN THE CITY DIVI CHILD THEME - CUSTOM STYLES
   =========================================================================
   All color values referenced in this file can be overridden by Customizer
   settings via :root CSS variables defined dynamically in inc/customizer.php.

   Variable defaults (used as fallbacks):
     --itc-primary       : #000080  (navy)
     --itc-accent        : #3c87de  (link blue)
     --itc-bg            : #dcdcdc  (page background)
     --itc-content-bg    : #ffffff  (content card background)
     --itc-container-max : 960px    (boxed layout width)
   ========================================================================= */

:root {
    --itc-primary: #000080;
    --itc-accent: #3c87de;
    --itc-bg: #dcdcdc;
    --itc-content-bg: #ffffff;
    --itc-container-max: 960px;
    --itc-text: #222222;
    --itc-muted: #666666;
}


/* =========================================================================
   1. GLOBAL LAYOUT
   ========================================================================= */

body #page-container {
    max-width: var(--itc-container-max) !important;
    margin: 0 auto !important;
    background-color: var(--itc-content-bg);
    border: 1px solid #000000;
    box-sizing: content-box;
}

#main-content {
    background-color: var(--itc-bg) !important;
}

.page h1.entry-title.page-title.itc-hide-title {
    /* Opt-in: add class "itc-hide-title" to body or page to hide its title */
    display: none;
}


/* =========================================================================
   2. HEADER
   ========================================================================= */

#main-header,
.et_header_style_left #main-header {
    background-color: var(--itc-content-bg);
    border-bottom: 0 !important;
    box-shadow: none;
}

/* Legacy class kept for sites migrating from Admiral - styles a custom header
   banner if one is rendered directly in markup. Configure via customizer. */
.itc-header-banner {
    background-color: var(--itc-content-bg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: auto;
    max-width: 100%;
    margin: 0 auto 5px;
    border: 3px solid var(--itc-content-bg);
    border-bottom: 6px solid var(--itc-bg);
    display: block;
}

.itc-header-banner.itc-clickable {
    cursor: pointer;
}


/* =========================================================================
   3. PRIMARY NAVIGATION
   ========================================================================= */

#et-top-navigation,
.et_header_style_left #et-top-navigation {
    background-color: var(--itc-primary);
}

.site-header {
    background-color: var(--itc-primary) !important;
    border-bottom: 0 !important;
}

#top-menu li a {
    text-transform: capitalize;
    font-family: Arial, "Helvetica Light", Helvetica, Verdana, sans-serif;
    font-weight: 900;
    font-size: 16.32px;
    line-height: 22px;
    color: var(--itc-content-bg);
    padding: 0 9px !important;
}

#top-menu li a:hover {
    background: transparent;
    opacity: 1;
}

#top-menu {
    padding-top: 10px;
    padding-bottom: 2px;
}


/* =========================================================================
   4. CONTENT - POST LIST (HOMEPAGE / ARCHIVES)
   ========================================================================= */

.post-wrapper {
    background: var(--itc-content-bg);
    border: 1px solid gray;
    margin: 0 8px 20px;
    box-shadow: 0 0 3px 5px gray;
    overflow: hidden;
    padding: 10px;
}

.post-wrapper .inside {
    padding: 10px;
}

.post-wrapper .home-post-link {
    font-weight: bold;
    margin-bottom: 6px;
}

.post-wrapper .home-post-link a {
    color: var(--itc-accent);
    font-size: 18px;
    text-decoration: none;
}

.post-wrapper .home-post-link a:hover {
    text-decoration: underline;
}

.post-wrapper p {
    margin: 8px 0;
}

/* Divi Blog module styled to match the [homeposts] visual */
.et_pb_blog_grid .et_pb_post,
.et_pb_posts .et_pb_post {
    background: var(--itc-content-bg);
    border: 1px solid gray;
    box-shadow: 0 0 3px 5px gray;
    padding: 10px;
    margin-bottom: 20px;
}

.et_pb_post h2.entry-title a,
.et_pb_blog_grid h2.entry-title a {
    color: var(--itc-accent);
}

.et_pb_post h2.entry-title a:hover,
.et_pb_blog_grid h2.entry-title a:hover {
    text-decoration: underline;
}

/* Pagination */
.navigation.pagination,
.wp-pagenavi {
    text-align: center;
    margin: 20px 0;
}

.navigation.pagination .page-numbers,
.wp-pagenavi a,
.wp-pagenavi span {
    display: inline-block;
    padding: 4px 10px;
    margin: 0 2px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    color: var(--itc-accent);
    text-decoration: none;
}

.navigation.pagination .page-numbers.current,
.wp-pagenavi span.current {
    background: var(--itc-primary);
    color: var(--itc-content-bg);
    border-color: var(--itc-primary);
}


/* =========================================================================
   5. CONTENT - SINGLE POST
   ========================================================================= */

body.single-post .entry-title,
.et_pb_post_title h1 {
    color: var(--itc-primary);
    font-family: Arial, Helvetica, sans-serif;
}

.share-options {
    margin: 10px 0;
}


/* =========================================================================
   6. SIDEBAR + RSS WIDGET
   ========================================================================= */

#sidebar,
.et_pb_widget_area {
    background-color: var(--itc-content-bg);
    padding: 10px;
}

.widget {
    margin-bottom: 20px;
}

.widget .widget-header {
    background-color: var(--itc-primary);
    padding: 6px 10px;
}

.widget .widget-header .widget-title {
    color: var(--itc-content-bg);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    margin: 0;
    font-size: 14px;
    text-transform: uppercase;
}

/* RSS feed widget (legacy class .ws-wrapper kept for back-compat) */
.itc-rss-widget,
.ws-wrapper {
    background: #f5f5f5;
    padding: 15px;
    border: 1px solid #ddd;
}

.itc-rss-widget h4,
.ws-wrapper h4 {
    margin: 0 0 8px 0;
    color: var(--itc-primary);
    font-size: 14px;
}

.itc-rss-widget a,
.ws-wrapper a {
    color: var(--itc-accent);
    font-weight: bold;
    font-size: 16px;
}

.itc-rss-widget span,
.ws-wrapper span {
    display: block;
    font-size: 11px;
    color: var(--itc-muted);
    margin-top: 3px;
}

.itc-rss-widget p,
.ws-wrapper p {
    margin: 8px 0 0;
    font-size: 13px;
    font-style: italic;
}


/* =========================================================================
   7. FOOTER
   ========================================================================= */

#footer,
.footer-wrap,
#main-footer,
.itc-footer {
    background-color: var(--itc-primary);
    color: var(--itc-content-bg);
    padding: 20px 0;
}

.itc-footer-text {
    text-align: center;
    color: var(--itc-content-bg);
    font-size: 12px;
    padding: 6px 0;
    line-height: 1.5;
}

.itc-footer-text a {
    color: var(--itc-content-bg);
    text-decoration: underline;
}

.itc-footer-text a:hover {
    color: #aac8e8;
}

.itc-footer-menu {
    text-align: center;
    margin-top: 10px;
}

.itc-footer-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.itc-footer-menu ul li {
    display: inline-block;
    margin: 0 10px;
}

.itc-footer-menu ul li a {
    color: var(--itc-content-bg);
    font-size: 12px;
    text-decoration: none;
}

.itc-footer-menu ul li a:hover,
.itc-footer-menu ul li a.active {
    color: #aac8e8;
    text-decoration: underline;
}


/* =========================================================================
   8. CATEGORY SLIDER (above-archive Smart Slider)
   ========================================================================= */
/* Wraps the [itc_category_slider] shortcode output. Matches the homepage
   slider visual treatment — full width, modest bottom margin. */

.itc-category-slider {
    margin: 0 0 15px 0;
    padding: 0;
}

.itc-category-slider .n2-ss-slider {
    margin: 0 auto;
}


/* =========================================================================
   9. SEARCH FORM
   ========================================================================= */

.itc-searchform input[type="text"],
#searchform input[type="text"] {
    padding: 5px 8px;
    border: 1px solid #ccc;
    font-family: Arial, sans-serif;
}

.itc-searchform input[type="submit"],
#searchform input[type="submit"],
#searchsubmit {
    background-color: var(--itc-primary);
    color: var(--itc-content-bg);
    border: 0;
    padding: 5px 12px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-weight: bold;
}


/* =========================================================================
   10. RESPONSIVE FALLBACK
   ========================================================================= */

@media (max-width: 980px) {
    body #page-container {
        max-width: 100% !important;
        border: 0;
    }

    .post-wrapper {
        margin: 0 4px 16px;
        box-shadow: 0 0 3px 2px gray;
    }

    #top-menu li a {
        font-size: 14px;
        padding: 0 6px !important;
    }
}
