/*
Theme Name: Connected Social Mobile
Theme URI: https://connectedsocialmedia.com
Description: A clean, mobile-only theme with one-column layout for audio, video, and PDF posts.
Version: 1.0
Author: Connected Social Media
*/
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #000;
}
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1em;
}
header, footer {
  text-align: center;
  padding: 1em;
}
.post {
  border-bottom: 1px solid #ddd;
  padding-bottom: 1em;
  margin-bottom: 1em;
}

.post-img {
  width: 100%;
  height: auto;
  margin-bottom: 0.5em;
  border-radius:20px; 
  border: 1px solid lightgray;
}
.duration {
  font-size: 0.9em;
  color: #666;
  margin-top: 0.5em;
}

/* === Global Desktop Typography Override === */
body, h1, h2, h3, h4, h5, h6,
p, ul, ol, li, a, div, span {
    font-family: Verdana, "BitStream Vera Sans", Helvetica, sans-serif !important;
}



/* === Post Separators === */
.post {
    border-bottom: 1px solid #CCC;
    padding-bottom: 1em;
    margin-bottom: 1em;
}

/* === Links and Footer Consistency === */
a {
    color: #2970A6;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* === Global Desktop Typography Override === */
body, h1, h2, h3, h4, h5, h6,
p, ul, ol, li, a, div, span {
    font-family: Verdana, "BitStream Vera Sans", Helvetica, sans-serif !important;
}

/* === Mobile Header with Logo and Gradient Background === */
#mobile-header {
    background: linear-gradient(to bottom, #444, #222);
    text-align: center;
    padding: 5px 0;
    margin-bottom: 1em;
}
#mobile-header #logo img {
    max-height: 80px;
    width: auto;
}

/* === Post Separators === */
.post {
    border-bottom: 1px solid #CCC;
    padding-bottom: 1em;
    margin-bottom: 1em;
}

/* === Links and Footer Consistency === */
a {
    color: #2970A6;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* === Mobile Navigation Bar === */
#mobile-navigation {
  background-color: #222;
  padding: 0.25em 0 0; /* reduced top padding */
  text-align: center;
}
#mobile-navigation .mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
#mobile-navigation .mobile-menu li {
  display: inline-block;
  margin: 0 0.5em;
}
#mobile-navigation .mobile-menu li a {
  color: #fff;
  text-decoration: none;
  font-family: Verdana, "BitStream Vera Sans", Helvetica, sans-serif !important;
}
#mobile-navigation #searchbox {
  margin-top: 0.5em;
}
#mobile-navigation #searchbox input[type="search"],
#mobile-navigation #searchbox input[type="text"] {
  width: 70%;
  max-width: 200px;
  padding: 0.3em;
}
#mobile-navigation #searchbox button {
  padding: 0.3em 0.6em;
  background-color: #555;
  color: #fff;
  border: none;
}


/* === Mobile Dropdown Menu Styles === */
#mobile-navigation .menu-item-has-children {
  position: relative;
}


/* === Desktop-Style Dropdown Menus on Mobile === */
#mobile-navigation {
    background-color: #222;
    border-bottom: 1px solid #444;
    position: relative;
}
#mobile-navigation .mobile-menu {
    display: flex;
    justify-content: center;
align-items: flex-start;
    list-style: none;
    margin: 0;
    padding: 0.5em 0;
}
#mobile-navigation .mobile-menu li {
    position: relative;
}
#mobile-navigation .mobile-menu li a {
    color: #fff;
    padding: 0.5em 1em;
    display: block;
}
#mobile-navigation 
#mobile-navigation .mobile-menu li.submenu-open > a:after {
    content: '\25B4';
}
#mobile-navigation .mobile-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}
#mobile-navigation .mobile-menu li.submenu-open > .sub-menu {
    display: block;
}
#mobile-navigation .sub-menu li a {
    color: #333;
    padding: 0.5em 1em;
    white-space: nowrap;
    border-bottom: 1px solid #eee;
}
#mobile-navigation .sub-menu li a:hover {
    background: #f5f5f5;
}
#mobile-navigation .submenu-toggle {
    display: none;
}

/* Left-align submenu items */
#mobile-navigation .mobile-menu .sub-menu {
    text-align: left !important;
}
#mobile-navigation .mobile-menu .sub-menu li a {
    padding-left: 1em !important;
}


/* Show caret only on items with submenus */
#mobile-navigation .mobile-menu li.menu-item-has-children > a:after {
    content: '\25BE';
    margin-left: 0.5em;
}
#mobile-navigation .mobile-menu li.menu-item-has-children.submenu-open > a:after {
    content: '\25B4';
}
/* Remove any gap between header and nav */
header#mobile-header {
    margin-bottom: 0 !important;
}
#mobile-navigation {
    background-color: #222 !important;
    margin-top: 0 !important;
    padding-top: 0.5em !important;
}


/* === Adjust vertical spacing === */
header#mobile-header {
    margin-bottom: 0.2em !important;
}
#mobile-navigation {
    padding-top: 0.2em !important;
}
#mobile-navigation #searchbox {
    margin-bottom: 0.5em !important;
}


/* === Remove gap between header and nav === */
header#mobile-header {
    margin-bottom: 0 !important;
    border-bottom: none !important;
}
#mobile-navigation {
    margin-top: 0 !important;
    border-top: none !important;
    padding-top: 0.1em !important; /* tighten top padding */
}

/* === Further tighten space between logo and menu === */
header#mobile-header img {
    margin-bottom: 0.1em !important;
}

/*–– Force submenu items to stack vertically ––*/
#mobile-navigation .mobile-menu .sub-menu {
  display: block !important;      /* ensure the submenu itself shows as a block */
  position: absolute;             /* you already want it absolutely positioned */
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 180px;               /* or whatever width you prefer */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  list-style: none;
  margin: 0;
  padding: 0;
}

#mobile-navigation .mobile-menu .sub-menu li {
  display: block !important;      /* each <li> takes a full line */
  width: 100%;                    /* fill the container */
}

#mobile-navigation .mobile-menu .sub-menu li a {
  display: block !important;      /* make the links fill their <li> */
  white-space: nowrap;            /* prevent wrapping of the text itself */
  padding: 0.5em 1em;             /* your existing padding */
  border-bottom: 1px solid #eee;  /* your existing separator */
}

/*–– Hide all sub-menus by default ––*/
#mobile-navigation .mobile-menu .sub-menu {
  display: none !important;
}

/*–– Only show when parent has .submenu-open ––*/
#mobile-navigation .mobile-menu li.submenu-open > .sub-menu {
  display: block !important;
}

.post-divider {
  border: none;
  border-top: 1px solid #cccccc;   /* same as the index page HR */
  margin: 0.5em 0;
}

.archive-label h2 {
  font-size: 1.25em;
  margin: 1em 0;
  text-align: center;
  color: #555;        /* dark gray */
  font-style: italic; /* italic text */
}