/* Basic Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    background-color: #f5f5f5;
    color: #222;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #e84545;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Layout */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

.topbar {
    background-color: #111;
    color: #fff;
    font-size: 13px;
}

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

.topbar-nav li {
    margin-right: 15px;
}

.topbar-nav a {
    color: #fff;
}

.header-main {
    padding: 15px 0;
}

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding .site-title {
    font-weight: 700;
    font-size: 24px;
}

.site-branding .site-description {
    display: block;
    font-size: 13px;
    color: #777;
}

.header-ads {
    min-height: 60px;
    text-align: right;
}

/* Navigation */
.nav-wrapper {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.primary-nav .primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.primary-menu > li {
    position: relative;
    margin-right: 20px;
}

.primary-menu > li > a {
    display: block;
    padding: 12px 0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

.primary-menu li ul {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 220px;
    background-color: #fff;
    border: 1px solid #eee;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .2s ease;
    z-index: 999;
}

.primary-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu li ul li {
    margin: 0;
}

.primary-menu li ul a {
    padding: 8px 15px;
    display: block;
    font-size: 13px;
}

/* Mobile nav */
.mobile-nav-toggle {
    display: none;
    width: 40px;
    height: 32px;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    margin-bottom: 6px;
    background-color: #333;
    transition: all .2s ease;
}

.mobile-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -260px;
    width: 260px;
    background-color: #111;
    color: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: left .25s ease;
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav .mobile-menu {
    list-style: none;
    margin: 60px 0 0 0;
    padding: 0;
}

.mobile-nav .mobile-menu li a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Content */
.site-content {
    padding: 30px 0;
}

.content-area.with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
    grid-gap: 30px;
}

.single-post .entry-title {
    margin-top: 0;
}

.entry-header {
    margin-bottom: 15px;
}

.entry-meta {
    font-size: 13px;
    color: #777;
}

.entry-meta span {
    margin-right: 10px;
}

.entry-thumbnail {
    margin-bottom: 15px;
}

.entry-summary {
    font-size: 15px;
}

.widget {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #eee;
}

.widget-title {
    margin-top: 0;
    font-size: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* Footer */
.site-footer {
    background-color: #111;
    color: #eee;
    margin-top: 30px;
}

.footer-widgets-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-gap: 20px;
    padding: 30px 0;
}

.site-footer .widget {
    background: none;
    border: 0;
    padding: 0;
}

.site-footer a {
    color: #fff;
}

.site-info {
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    padding: 10px 0;
    text-align: center;
}

/* Ajax search */
.header-search {
    position: relative;
}

.search-form {
    position: relative;
}

.search-field {
    padding: 6px 30px 6px 10px;
    border-radius: 3px;
    border: 1px solid #ddd;
    font-size: 13px;
}

.search-submit {
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 100%;
    border: 0;
    background: none;
    cursor: pointer;
}

.fp-ajax-search-results {
    position: absolute;
    top: 110%;
    right: 0;
    width: 320px;
    background-color: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    z-index: 999;
    display: none;
}

.fp-ajax-search-results.active {
    display: block;
}

.fp-ajax-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fp-ajax-result {
    display: flex;
    padding: 8px;
    border-bottom: 1px solid #f1f1f1;
}

.fp-ajax-result img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 8px;
}

.fp-ajax-result-title {
    font-size: 13px;
}

/* Mega menu results container */
.fp-mega-container {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #eee;
    display: none;
    z-index: 998;
}

.fp-mega-container.active {
    display: block;
}

.fp-mega-posts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-gap: 15px;
    padding: 15px;
}

.fp-mega-title {
    font-size: 14px;
    margin: 8px 0 0 0;
}

/* Weather widget */
.fp-weather {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fp-weather-main {
    display: flex;
    align-items: center;
}

.fp-weather-icon {
    width: 48px;
    height: 48px;
    margin-right: 10px;
}

.fp-weather-temp {
    font-size: 24px;
    font-weight: 700;
}

.fp-weather-meta {
    text-align: right;
    font-size: 13px;
}

/* Social icons */
.fp-social-icons {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fp-social-icons li {
    margin-bottom: 8px;
}

.fp-social-icons a {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 3px;
    background-color: #f5f5f5;
}

/* TOC */
.fp-toc {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fffef5;
    border: 1px solid #f2e9c9;
    font-size: 14px;
}

.fp-toc ul {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
}

.fp-toc li {
    margin-bottom: 5px;
}

/* Front page hero */
.front-page-hero {
    padding: 20px 0;
}

.fp-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-gap: 15px;
}

.fp-hero-item {
    position: relative;
    overflow: hidden;
}

.fp-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.1));
    color: #fff;
}

.fp-hero-title {
    margin: 0;
    font-size: 16px;
}

.fp-hero-meta {
    font-size: 12px;
    margin-bottom: 5px;
}

.fp-hero-meta a {
    color: #fff;
}

/* Select & Share overlay */
.fp-select-share {
    position: absolute;
    background-color: #111;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: none;
    z-index: 9999;
}

.fp-select-share a {
    color: #fff;
    margin: 0 4px;
}

/* Responsive */
@media (max-width: 991px) {
    .content-area.with-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .header-main-inner {
        flex-wrap: wrap;
    }

    .header-ads {
        display: none;
    }

    .primary-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .fp-hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fp-mega-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .fp-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-widgets-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Dark scheme */
.scheme-dark body {
    background-color: #111;
    color: #ddd;
}

.scheme-dark .site-header,
.scheme-dark .widget,
.scheme-dark .site-footer {
    background-color: #111;
    color: #eee;
}

.scheme-dark .widget,
.scheme-dark .header-main,
.scheme-dark .nav-wrapper {
    border-color: #222;
}
