/* All your existing frontend CSS */

/* ------------------------------------- */
/* Global and Container Styles */
/* ------------------------------------- */
@font-face {
font-family:"Bold";
font-weight:bold !important;
src: url( "../fonts/Bold.woff" )
format( "woff" ),
format( "truetype" );
}
@font-face {
font-family:"Light";
font-weight:normal !important;
src: url( "../fonts/Light.woff" )
format( "woff" ),
format( "truetype" );
}
body {
    direction: rtl;
    text-align: right;
}

.iran-map-container {
    width: 100%;
    height: auto;
    display: flex; /* Using flexbox for better layout control */
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    margin: 10px auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
	font-family:"Bold";
}

/* ------------------------------------- */
/* Iran Map Section */
/* ------------------------------------- */

.iranmap {
    position: relative;
    width: 48%;
    height: auto;
    padding:0 70px 0 70px;
    overflow: hidden;
}

.iranmap .show-title {
    display: none;
    position: absolute;
    background-color: #333;
    color: #fff;
	font-family:"Light";
    font-size: 14px;
    margin: 0 !important;
    padding: 2px 5px;
    text-align: center;
    border-radius: 2px;
    opacity: 0.8;
    z-index: 10;
}

.iranmap .map {
    display: block;
    width: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.iranmap .map svg {
    height:100%;
    width: 100%; /* Making SVG width responsive */
}

.iranmap .map .border path,
.iranmap .map .island path {
    fill: #ddd;
    transition: all 0.3s ease;
}

.iranmap .map .province path {
    fill: #fff;
    transition: all 0.3s ease;
}

.iranmap .map .sea path,
.iranmap .map .lake path {
    fill: #004adf;
    transition: all 0.3s ease;
}

.iranmap .map .province path:hover,
.iranmap .map .island path:hover,
.iranmap .map .province path.hover,
.iranmap .map .island path.hover {
    fill: #f00 !important;
    cursor: pointer;
    color: #f00;
    transition: all 0.3s ease;
}


/* ------------------------------------- */
/* Posts Section */
/* ------------------------------------- */

.iran-map-posts {
    width: 50%;
    height: auto;
    overflow: hidden;
    position: relative;
    padding-bottom: 10px;
}

.iran-map-post-item {
    width: 100%;
    padding-bottom: 10px;
    margin-top: 10px;
    border-bottom: 1px solid rgba(10, 10, 10, 0.03);
    display: flex; /* Using flexbox for post items */
    gap: 20px; /* Space between elements */
    align-items: center;
    position: relative;
}

.iran-map-post-item:last-child {
    border-bottom: 0;
}

.post-thumb {
    width: 90px;
    height: 70px;
    overflow: hidden;
    border-radius: 5px;
    flex-shrink: 0; /* Prevents shrinking */
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the space without distortion */
}

.post-content {
    flex-grow: 1; /* Allows content to take remaining space */
    display: flex;
    flex-direction: column;
}

.post-title{
    margin-top: 0;
}
.post-title h3 {
    font-size: 16px;
    margin: 0;
	font-family:"Bold";
    line-height: 1.4;
    font-weight: normal;
}

.post-title h3 a {
    color: #333;
    transition: all 0.3s ease;
    text-decoration: none;
}

.post-title h3:hover a {
    color: #0034ff;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.post-date {
    font-size: 14px;
	font-family:"Light";
    color: #999;
    margin-top: 10px;
}

.post-date span {
    margin-left: 10px;
}

a.post-category {
    background: rgba(10, 10, 10, 0.03);
    color: rgba(0, 0, 0, 0.43);
    padding: 2px 5px;
    font-size: 13px;
	font-family:"Light";
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    float: left;
    position: absolute;
    left: 5px;
    bottom: 5px;
}

a.post-category:hover {
    background: #0034ff;
    color: #fff;
}

a.post-more {
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #5fb904b8;
    padding: 3px 8px;
    border-radius: 3px;
    font-family: "Light";
    position: absolute;
    overflow: hidden;
    top: 15px;
    left: 15px;
}

a.post-more:hover {
    color: #fff;
    background: #666;
	transition: all 0.3s ease;
}


/* ------------------------------------- */
/* Titles Section */
/* ------------------------------------- */

.iran-map-title,
.cat-ostan-title {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    margin: 10px auto;
    border-right: 10px solid #0034ff;
    padding-right: 10px;
}

.iran-map-title h3,
.cat-ostan-title h3 {
    font-size: 18px;
	font-family: "Bold";
    padding-top: 0px;
    margin: 10px auto;
    font-weight: normal;
}

.cat-ostan {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

a.ostan {
    background: rgba(10, 10, 10, 0.03);
    color: rgba(0, 0, 0, 0.43);
    padding: 5px 10px;
    font-size: 14px;
	font-family:"Light";
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 3px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

a.ostan:hover {
    background: #0034ff;
    color: #fff;
}

/* ------------------------------------- */
/* Responsive Design (Media Queries) */
/* ------------------------------------- */

/* For screens smaller than 768px (Tablets and Phones) */
@media (max-width: 868px) {
    .iran-map-container {
        flex-direction: column; /* Stacking items vertically */
    }

    .iranmap,
    .iran-map-posts {
        width: 100%; /* Full width for both sections */
        float: none; /* Removing float */
        margin-bottom: 20px;
        padding: 0 10px 0 10px;
    }

    .iranmap .map svg {
        height: auto; /* Adjusting SVG height automatically */
    }
.post-title {
  margin-top: 0;
}    
}

/* For screens smaller than 480px (Phones) */
@media (max-width: 480px) {
    .iranmap,
    .iran-map-posts {
        padding:0;
    }
    .iran-map-title h3,
    .cat-ostan-title h3 {
        font-size: 16px;
    }

    .iranmap .map svg {
        height: auto;
    }

    .iran-map-post-item {
        flex-direction: column; /* Stacking post item content vertically */
        align-items: flex-start;
    }

    .post-thumb {
        width: 100%;
        height: auto;
    }

    .post-title,
    .post-meta {
        width: 100%;
        margin-right: 0;
        margin-top: 10px;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    a.post-category {
        float: none;
        margin-top: 5px;
    }	
}