/*
Theme Name: JM daily
Author: Mostafa Bouh
Author URI: https://jmboy.9esa.com
Description: My first wordpress theme
Version: 1.0
Tested upto: 5.4
*/

html {
    box-sizing: border-box;
}

html *,
html ::after,
html ::before {
    box-sizing: inherit;
}

/* css reset */
body {
    margin: 0;
}

h1,
h2,
h3,
h4,
h5 {
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* global style */
body {
    background: #e9ebee;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
}

/* floating images */
.floating {
    position: relative;
    overflow: hidden;
    outline: 0;
    display: block;
}

.floating .img {
    height: auto;
    min-height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    width: 100%;
}

span.img {
    display: block;
    background: rgb(203, 208, 212);
}

/* style */
#header {
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, .07);
    margin-bottom: 30px;
}

#header h1 a {
    color: white;
}

#header .a {
    background: #017acd;
    padding: 10px 0;
}

#header .b {
    background: white;
}

nav {
    font-size: 0;
    margin: 0 -10px;
}

nav a {
    line-height: 40px;
    height: 40px;
    padding: 0 10px;
    display: inline-block;
    font-size: 16px;
    color: black;
}



h2 {
    margin: 15px 0;
    font-size: 18px;
}

/* LATEST STORIES */
.latest-stories .content {
    margin: 0 -7.5px;
}

.latest-stories .post {
    width: 50%;
    display: inline-block;
    padding: 0 7.5px;
    vertical-align: top;
    margin-bottom: 15px;
}

.latest-stories .helper {
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .22);
    border-radius: 10px;
}

.latest-stories .image-block a {
    padding-top: 120%;
}

.latest-stories .co-block a {
    display: block;
    font-size: 16px;
    line-height: 40px;
    padding: 0 15px;
}

/* LATEST POSTS */
.latest-stories {
    margin-bottom: 30px;
}

/* post */
.latest-eps .post {
    background-color: #fff;
    margin: 15px 0;
    padding: 13px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .22);
    position: relative;
}

.latest-eps .image-block,
.latest-eps .co-block {
    display: table-cell;
    vertical-align: middle;
}

.latest-eps .co-block {
    width: 100%;
    padding-right: 15px;
}

.latest-eps h3 {
    font-size: 16px;
}

.latest-eps .image-block a {
    padding-top: 100%;
    width: 60px;
}

.latest-eps .img {
    border-radius: 50%;
}