/*
Theme Name: JD Editions Custom Theme
Theme URI: http://jdeditions.com
Author: JD Editions
Author URI: http://jdeditions.com
Description: Custom theme matching the original JD Editions website design
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jd-custom-theme
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    background-color: #fff;
}

body.custom-background {
    background-image: url("http://jdeditions.com/wp-content/uploads/2023/07/Anglais-3e-2021-new-scaled.jpg");
    background-position: center top;
    background-size: auto;
    background-repeat: repeat;
    background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    padding-bottom: 18px;
    color: #12a1d6;
    font-weight: normal;
    font-family: 'Lato', sans-serif;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 24px;
}

/* Links */
a {
    color: #e83d12;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #000000002f0000;
}

/* Layout Structure */
#page {
    max-width: 100%;
    margin: 0 auto;
}

.inner-wrap {
    max-width: 1218px;
    margin: 0 auto;
    padding: 0 20px;
}

#main {
    padding: 40px 0;
    min-height: 400px;
}

#content {
    width: 100%;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* Header */
.site-header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#header-text-nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

#header-left-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

#header-logo-image img {
    max-width: 100px;
    height: auto;
}

#site-title {
    margin: 0;
    padding: 0;
}

#site-title a {
    color: #111;
    font-size: 28px;
    font-weight: bold;
}

#site-title a:hover {
    color: #e83d12;
}

#site-description {
    color: #888;
    font-size: 14px;
    margin: 0;
}

/* Navigation */
.main-navigation {
    background: transparent;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.main-navigation li {
    position: relative;
    margin: 0 15px;
}

.main-navigation a {
    color: #111;
    display: block;
    padding: 10px 0;
    font-size: 14px;
    text-transform: uppercase;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    color: #e83d12;
}

.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-top: 2px solid #e83d12;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    display: none;
    min-width: 200px;
    z-index: 999;
}

.main-navigation li:hover > ul {
    display: block;
}

.main-navigation ul ul li {
    margin: 0;
    border-bottom: 1px solid #eee;
}

.main-navigation ul ul a {
    padding: 10px 15px;
    text-transform: none;
}

/* Blog Posts */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.post-item {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.post-thumbnail {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 3px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.entry-title {
    margin: 0 0 10px;
    padding: 0;
}

.entry-title a {
    color: #111;
    font-size: 22px;
}

.entry-title a:hover {
    color: #e83d12;
}

.entry-meta {
    color: #888;
    font-size: 13px;
    margin-bottom: 15px;
}

.entry-meta a {
    color: #888;
}

.entry-meta a:hover {
    color: #e83d12;
}

.entry-summary {
    color: #444;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more-link {
    display: inline-block;
    background-color: #e83d12;
    color: #fff;
    padding: 8px 20px;
    border-radius: 3px;
    font-size: 13px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.read-more-link:hover {
    background-color: #000000002f0000;
    color: #fff;
}

/* Single Post */
.single-post-content {
    background: #fff;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.single .entry-title {
    font-size: 36px;
    color: #12a1d6;
    margin-bottom: 15px;
}

.single .entry-meta {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.single .entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.single .entry-content p {
    margin-bottom: 20px;
}

.single .entry-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* Pagination */
.pagination {
    text-align: center;
    padding: 40px 0;
    clear: both;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 5px;
    background: #fff;
    color: #5e5e5e;
    border: 1px solid #bbbbbb;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: #e83d12;
    color: #fff;
    border-color: #e83d12;
}

/* Footer */
.site-footer {
    background: #333;
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-widgets-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e83d12;
    padding-bottom: 10px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #ccc;
}

.footer-widget a:hover {
    color: #e83d12;
}

.footer-socket {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 20px;
    color: #999;
    font-size: 13px;
}

.footer-socket a {
    color: #999;
}

.footer-socket a:hover {
    color: #e83d12;
}

/* Buttons */
.spacious-button,
input[type="reset"],
input[type="button"],
input[type="submit"],
button {
    background-color: #e83d12;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.spacious-button:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
button:hover {
    background-color: #000000002f0000;
}

/* Blockquotes */
blockquote {
    border-left: 3px solid #e83d12;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    #header-text-nav-wrap {
        flex-direction: column;
    }

    .main-navigation ul {
        flex-direction: column;
    }

    .main-navigation li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .blog-posts {
        grid-template-columns: 1fr;
    }

    .single-post-content {
        padding: 20px;
    }

    .footer-widgets-area {
        grid-template-columns: 1fr;
    }
}

/* WordPress Core Classes */
.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 12px;
    color: #888;
    text-align: center;
    padding: 5px 0;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
