/*
Theme Name: Creative Blog Responsive
Author: Dessign.net (modified by ChatGPT)
Version: 3.1
Description: Fully responsive theme with uniform image sizes for Zaat Hayfa.
*/

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #fff;
    color: #222;
}

a {
    color: #8a3b8f;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    margin: 0 0 10px;
    color: #333;
    font-weight: 600;
}

/* Header */
header {
    width: 100%;
    background: #fff;
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

header img {
    max-width: 180px;
    height: auto;
}

/* Navigation */
.menu-toggle {
    display: none;
    background-color: #8a3b8f;
    color: #fff;
    padding: 12px 18px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
}

.main-navigation {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 15px 0;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}
.main-navigation li {
    display: inline;
}

/* Slideshow */
#slideshow_cont {
    position: relative;
    width: 100%;
    max-width: 1140px;
    overflow: hidden;
    margin: 0 auto 30px auto;
}

#slideshow_cont .slide_box {
    display: none;
}
#slideshow_cont .slide_box_first {
    display: block;
}

#slideshow_cont img,
#slideshow_cont iframe {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 8px;
}

.slide_prev,
.slide_next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    cursor: pointer;
}

.slide_prev { left: 10px; }
.slide_next { right: 10px; }

img.slide_prev,
img.slide_next {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
    max-width: 40px;
    max-height: 40px;
}

/* Content */
#content {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Top 3 Posts Layout */
.top-posts-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 2%;
    margin: 30px auto;
    max-width: 1140px;
    padding: 0 10px;
}

.home_box {
    flex: 0 1 calc(33.333% - 14px);
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.home_box:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.home_box img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.home_box h3 {
    margin-top: 10px;
    font-size: 18px;
    color: #8a3b8f;
    text-align: center;
}

/* Wide Posts Layout */
.home_wide_box {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.home_wide_box_img {
    width: 40%;
    margin-right: 20px;
}

.home_wide_box_img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.home_wide_box_right {
    width: 60%;
    display: flex;
    justify-content: space-between;
}

.home_wide_box_right .left {
    flex: 1;
    padding-right: 10px;
}

.home_wide_box_right .right {
    display: flex;
    align-items: center;
}

.link_cont {
    background: #8a3b8f;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link_inside_cont {
    color: #fff;
    font-size: 16px;
    margin: 0;
}

/* Page Content Styling */
.single_left {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto 40px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

.single_title {
    font-size: 28px;
    color: #8a3b8f;
    text-align: center;
    margin-bottom: 20px;
}

.single_inside_content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

/* Footer */
footer {
    padding: 20px;
    background: #f9f9f9;
    color: #666;
    text-align: center;
    font-size: 14px;
}

/* Load More */
.load_more_cont {
    text-align: center;
    padding: 30px;
}
.load_more_cont a {
    display: inline-block;
    padding: 10px 25px;
    background: #8a3b8f;
    color: #fff;
    border-radius: 5px;
    text-transform: uppercase;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .top-posts-row {
        flex-wrap: wrap;
    }
    .home_box {
        flex: 0 1 calc(50% - 10px);
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 768px) {
    .top-posts-row {
        flex-direction: column;
    }
    .home_box {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }
    .home_wide_box {
        flex-direction: column;
    }
    .home_wide_box_img,
    .home_wide_box_right {
        width: 100%;
        margin: 0;
    }
    .menu-toggle {
        display: block;
    }
    .main-navigation ul {
        display: none;
        flex-direction: column;
        background: #fff;
        border: 1px solid #ccc;
        padding: 10px;
        position: absolute;
        right: 10px;
        top: 50px;
        width: 220px;
    }
    .main-navigation.toggled ul {
        display: flex;
    }
    #slideshow_cont img,
    #slideshow_cont iframe {
        height: 280px;
    }
}

@media screen and (max-width: 480px) {
    #slideshow_cont img,
    #slideshow_cont iframe {
        height: 200px;
    }
    .home_box img,
    .home_wide_box_img img {
        height: 180px;
    }
}

/* === Custom Signup Section Styling === */

.signup-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #8a3b8f;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.signup-link:hover {
    color: #5e2761;
    text-decoration: underline;
}

.signup-link svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    fill: currentColor;
}

.signup-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 10px auto 0 auto;
}
