@font-face {
  font-family: "Crypto";
  font-weight: 700;
	font-display: swap;
  src: url("../fonts/fm-ar-bold.woff") format("woff");
}

@font-face {
  font-family: "Crypto";
  font-weight: 400;
	font-display: swap;
  src: url("../fonts/fm-ar-medium.woff") format("woff");
}

body {
	font-family: "Crypto", sans-serif !important;
}

.container {
	max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* ===== General Layout ===== */
.container.single-container {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 30px;
    padding: 0 20px;
}

.content-area {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ===== Post Content ===== */
.post-thumbnail img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 20px;
}

.post-meta {
    color: #777;
    font-size: 14px;
    margin-bottom: 10px;
}

.post-meta .post-date {
    margin-left: 15px;
}

.post-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #222;
}

/* ===== Share Buttons ===== */
.post-share {
    margin: 15px 0;
}

.post-share span {
    font-weight: bold;
    margin-left: 10px;
    color: #b8860b; /* ذهبى */
}

.post-share a {
    display: inline-block;
    margin-left: 10px;
    text-decoration: none;
    color: #fff;
    background: #b8860b; /* دهبي */
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    transition: 0.3s;
}

.post-share a:last-child {
    margin-left: 0;
}

.post-share a:hover {
    background: #daa520; /* دهبي أفتح */
}

/* ===== Sidebar Widgets ===== */
.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    margin: 0 0 15px;
    border-bottom: 2px solid #b8860b;
    padding-bottom: 5px;
    color: #333;
}

.sidebar .single-widgets img {
    width: 100%;
    border-radius: 10px;
}

.latest-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-posts li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.latest-posts li img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-left: 10px;
}

.latest-posts li span {
    font-size: 14px;
    color: #333;
}

.latest-posts li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.latest-posts li a:hover span {
    color: #b8860b;
}

/* Categories */
.categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories li {
    margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.categories li:last-child {
	border-bottom: 0;
}

.categories li a {
    text-decoration: none;
    color: #444;
    transition: 0.3s;
}

.categories li a:hover {
    color: #b8860b;
}

.newsletter-form input[type="email"], #mailpoet_form_3 .mailpoet_text, #mailpoet_form_3 .mailpoet_textarea {
    padding: 10px !important;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.newsletter-form button, #mailpoet_form_3 .mailpoet_submit {
    padding: 10px !important;
    background: #c79e50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover, #mailpoet_form_3 .mailpoet_submit:hover {
    background: #daa520;
}

#mailpoet_form_3 .mailpoet_paragraph {
    margin-bottom: 10px !important;
}

#mailpoet_form_3 form.mailpoet_form {
    padding: 0 !important;
}

/* ===== Related Posts ===== */
.related-posts {
    margin-top: 40px;
}

.related-posts h3 {
    margin-bottom: 20px;
    color: #222;
    border-bottom: 2px solid #b8860b;
    padding-bottom: 5px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-item img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
}

.related-item h4 {
    font-size: 16px;
    color: #333;
    transition: 0.3s;
	margin: 0;
}

.related-item a {
    text-decoration: none;
}

.related-item a:hover h4 {
    color: #b8860b;
}

/* ===== Comments ===== */
.comments-area {
    margin-top: 40px;
}

.comments-title {
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #b8860b;
    padding-bottom: 5px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list li {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.comment-list li .children {
    background: #f7f7f7;
    padding: 25px;
    width: 90%;
    margin: 0 auto 10px;
    border-radius: 10px;
}

.comment-list li .children li {
    border-bottom: none;
    margin: 0;
}

.comment-author {
    font-weight: bold;
    color: #b8860b;
}

.comment-author img {
    border-radius: 50px;
}

.comment-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.comment-content {
    font-size: 15px;
    color: #333;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.comment-form button, .comment-form input[type="button"], .comment-form input[type="reset"], .comment-form input[type="submit"] {
    background: #c79e50;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.comment-form button:hover, .comment-form input[type="button"]:hover, .comment-form input[type="reset"]:hover, .comment-form input[type="submit"]:hover {
    background: #daa520;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .container.single-container {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .post-title {
		font-size: 18px;
	}
	.post-share {
		text-align: center;
		background: #f5f5f5;
		padding: 10px;
		border-radius: 5px;
	}
	.post-share span {
		margin-left: 0;
		display: block;
		margin-bottom: 5px;
	}
	
}

@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== Hoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooome ===== */

/* ===========================
   CryptoNews — Homepage Styles
   Matches classes from homepage.php:
   .news-section .section-title
   .section-grid-1, .big-post, .small-post
   .grid-3, .list-h, .grid-2-big, .carousel
   .newsletter-cta, .masonry, .headline-list
   .spotlight-wrap, .grid-2, .grid-4
   =========================== */

:root{
  --gold: #d4af37;
  --bg: #ffffff;
  --muted: #6b7280;
  --text: #111827;
  --border: #e9e9e9;
  --card-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

/* ========== Base ========== */
body { 
	background: #f5f5f5;
	margin:0;
}

/* Container for each section */
.news-section { padding: 48px 20px; max-width:1200px; margin:0 auto; }
.section-title {
  font-size:1.6rem;
  font-weight:700;
  margin-bottom:18px;
  padding-right:12px;
  border-right:6px solid #c79e50;
}

/* Generic article card rules */
.news-section article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
	margin-bottom: 4px;
}
.news-section article a {
	color: #000;
}
.news-section article:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(15,23,42,0.08); }

.news-section img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.binance-widget {
	margin-top: 30px;
}

/* ========== SECTION 1 : 5-post layout ========== */
/* HTML container: <div class="section-grid-1"> with 5 article children
   DOM order from your PHP: small(1), small(2), big(3), small(4), small(5) */
.section-grid-1 {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  grid-template-rows: repeat(2, minmax(160px, auto));
  gap: 16px;
  align-items: stretch;
}

/* Big center post */
.section-grid-1 > article.big-post {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 420px;
}

/* Left column smalls: first two articles */
.section-grid-1 > article.small-post:nth-child(1) { grid-column: 1; grid-row: 1; min-height: 200px; }
.section-grid-1 > article.small-post:nth-child(2) { grid-column: 1; grid-row: 2; min-height: 200px; }

/* Right column smalls: fourth & fifth children */
.section-grid-1 > article.small-post:nth-child(4) { grid-column: 3; grid-row: 1; min-height: 200px; }
.section-grid-1 > article.small-post:nth-child(5) { grid-column: 3; grid-row: 2; min-height: 200px; }

/* Overlay text block for posts (if you want a dark gradient caption) */
.section-grid-1 .post-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
}
.section-grid-1 article { position: relative; }

/* Title inside posts */
.section-grid-1 .title-wrapper { 
	font-size:1.05rem; 
	color: #fff; 
	padding: 40px 15px 15px;
    position: absolute;
    bottom: 0;
    margin: 0;
    background: linear-gradient(360deg, black, transparent);
	width: 100%;
}

.section-grid-1 .title-wrapper h3 { 
    margin: 0 0 10px;
}

span.post-date {
    font-size: 1rem;
}

/* Ensure the big post's title is larger */
.section-grid-1 > article.big-post .title-wrapper { 
	font-size:1.45rem; 
	font-weight:700; 
	padding: 40px 20px 20px;
    position: absolute;
    bottom: 0;
    margin: 0;
    background: linear-gradient(360deg, black, transparent);
	width: 100%;
}

.section-grid-1 .title-wrapper h3, .section-grid-1 > article.big-post .title-wrapper h3 {
    margin: 0 0 10px;
}


/* Mobile responsiveness */
@media (max-width: 768px) {
	.section-grid-1 {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
	}
	
	/* Reset all grid positioning for mobile */
	.section-grid-1 > article {
		grid-column: 1 !important;
        	grid-row: auto !important;
            min-height: auto !important;
            width: 49%;
            display: grid;
        }
	/* Big post comes first on mobile */
	.section-grid-1 > article.big-post {
		order: 3;
		width: 100%;
	}
	
	/* Then small posts in order */
            
	.section-grid-1 > article.small-post:nth-child(1) {
		order: 1;
		width: 47%;
	}
	
	.section-grid-1 > article.small-post:nth-child(2) {
		order: 2;
		width: 48%;
	}
	
	.section-grid-1 > article.small-post:nth-child(4) {
		order: 4;
		width: 48%;
	}
	
	.section-grid-1 > article.small-post:nth-child(5) {
		order: 5;
		width: 47%;
	}
	
	.section-grid-1 .post-img {
		height: 140px;
	}
	
	.section-grid-1 .big-post .post-img {
		height: 200px;
	}
	.section-grid-1 .big-post h2 {
		font-size: 1.5rem;
	}
	.section-grid-1 .title-wrapper h3 { 
		font-size: 14px;
	}
	.section-grid-1 > article.big-post .title-wrapper h3 {
		font-size: 22px;
	}
	span.post-date {
		font-size: 12px;
	}
}


/* ========== SECTION 2 : 3-column grid ========== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.grid-4 article img { height: 200px; }
.grid-4 .title-wrapper { 
	padding: 12px; 
	font-size:1.05rem;
	margin: 0;
}

.grid-4 .title-wrapper h3 { 
	margin: 0 0 10px;
}

/* ========== SECTION 4 : two-column large images ========== */
.grid-2-big {
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:18px;
}
.grid-2-big article img { height: 260px; }
.grid-2-big .title-wrapper { padding:12px; font-size:1.05rem; }
.grid-2-big h3 { margin: 0 0 10px; }
@media (max-width: 768px) {
	.grid-2-big article img {
		height: 120px;
	}
	.grid-2-big h3 {
		padding: 10px;
		font-size: 0.9rem;
		margin: 0;
	}
	.grid-4 .title-wrapper h3 { 
		font-size: 14px;
	}
}

/* ========== SECTION 5 : carousel (horizontal scroll) ========== */



/* ========== NEWSLETTER CTA (after section 5) ========== */
.newsletter-cta {
  margin: 36px auto;
  background: linear-gradient(180deg, rgba(212,175,55,0.12), rgba(212,175,55,0.06));
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 12px;
  padding: 28px;
  text-align:center;
}
.newsletter-cta h2 { color: #c79e50; font-size:1.6rem; margin:0 0 8px; }
.newsletter-cta p { color: var(--muted); margin:0 0 14px; }
.newsletter-cta form { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }
.newsletter-cta input[type="email"]{
  padding:12px 14px; border-radius:8px; border:1px solid var(--border); min-width:260px;
}
.newsletter-cta button, #mailpoet_form_1 .mailpoet_submit {
  background: #c79e50; color:#fff; border:none; padding:11px 18px !important; border-radius:8px; cursor:pointer; line-height: normal;
}
.newsletter-cta button:hover { opacity:0.95; transform: translateY(-2px); }

/* ========== SECTION 7 : headline list ========== */
.headline-list { list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.headline-list li {
  display:flex;
  gap:12px;
  align-items:center;
  padding:10px;
  border-radius:8px;
  border:1px solid var(--border);
}
.headline-list img { width:90px; height:60px; object-fit:cover; border-radius:6px; }

/* ========== SECTION 8 : spotlight (main + side) ========== */
.spotlight-wrap { display:grid; grid-template-columns: 2fr 1fr; gap:18px; align-items:start; }
.spotlight-main img { width:100%; height:100%; min-height:280px; border-radius:12px; }
.spotlight-side article a { display:flex; gap:12px; align-items:center; padding:10px; border-bottom:1px solid var(--border); }
.spotlight-side img { width:80px; height:60px; border-radius:6px; }
.spotlight-side h4, .spotlight-side h3  {
	font-size: 1rem;
	margin: 0 0 10px;
}
.spotlight-main a {
    position: relative;
	overflow: hidden;
	display: block;
	width: 100%;
}
.spotlight-main .title-wrapper {
    font-size: 1.5rem;
    color: #fff;
    padding: 40px 15px 15px;
    position: absolute;
    bottom: 0;
	right: 0;
    margin: 0;
    background: linear-gradient(360deg, black, transparent);
    left: 0;
	display: block;
}
.spotlight-main .title-wrapper h3 {
    margin: 0 0 10px;
}

/* ========== SECTION 10 : 4-column gallery ========== */
.grid-4 { display:grid; grid-template-columns: repeat(4, 1fr); gap:12px; }
.grid-4 article img { height:140px; border-radius:10px; }

/* ========== SMALL SCREENS ========== */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .masonry { column-count: 2; }
  .spotlight-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .section-grid-1 { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .section-grid-1 > article.big-post { grid-column:auto; grid-row:auto; min-height:320px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .masonry { column-count: 1; }
  .carousel article { min-width: 240px; }
  .list-h article { min-width: 260px; }
  .headline-list li { flex-direction: row; }
  .news-section { padding:28px 14px; }
	.spotlight-main .title-wrapper h3 {
		font-size: 18px;
	}

}


/* ===== Foooooooooooooooooooooooooooooooooooooooooteeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeer ===== */

/* ===== Footer General ===== */
.site-footer {
    background: #111;
    color: #ddd;
    margin-top: 40px;
}

/* ===== Newsletter Section ===== */
.footer-newsletter {
    background: #1a1a1a;
    text-align: center;
    padding: 40px 20px;
}

.footer-newsletter h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
}

.footer-newsletter p {
    color: #aaa;
    margin-bottom: 20px;
}

.footer-newsletter form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
	flex-wrap: wrap;
}

.footer-newsletter input[type="email"] {
    padding: 12px 15px !important;
    border: none;
    border-radius: 4px;
    font-size: 14px;
}

.footer-newsletter button, #mailpoet_form_2 .mailpoet_submit {
    padding: 12px 20px !important;
    border: none;
    background: #c79e50;
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
	line-height: normal;
}

#mailpoet_form_2 .mailpoet_paragraph {
    margin-bottom: 0 !important;
}

#mailpoet_form_2 .mailpoet_message {
    display: block !important;
    width: 100%;
}

.widget .newsletter-form input[type="email"] {
    border: 1px solid #eee !important;
}

.newsletter-form button:hover {
    background: #e68900;
}

/* ===== Footer Widgets ===== */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column .widget {
    margin-bottom: 20px;
}

.footer-column .widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
    border-bottom: 2px solid #c79e50;
    padding-bottom: 5px;
}

/* Widget content */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-column ul li a:hover {
    color: #ff9800;
}

/* ===== Social Media Widget ===== */
.social-widget .social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-widget .social-icons a {
    display: inline-block;
    background: #222;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 34px;
	width: 34px;
	height: 34px;
    border-radius: 50px;
    text-align: center;    
	transition: 0.3s;
}

.social-widget .social-icons a:hover {
    background: #ff9800;
}

/* ===== Bottom Footer ===== */
.footer-bottom {
    background: #0d0d0d;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #888;
}

.footer-bottom p {
    margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input[type="email"],
    .newsletter-form button {
        width: 100%;
    }
}


/* Archive page styles */
.archive-container {
    padding: 40px 20px;
}

.archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.archive-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.archive-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.archive-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.archive-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.archive-card-thumbnail {
    overflow: hidden;
}

.archive-card-thumbnail img {
	display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.archive-card:hover .archive-card-thumbnail img {
    transform: scale(1.05);
}

.archive-card-content {
    padding: 20px;
}

.archive-card-title {
    font-size: 1.1rem;
    margin: 0;
    color: #333;
    line-height: 1.4;
}

.archive-card-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.archive-card-excerpt p:last-child {
    margin-bottom: 0;
}

.archive-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #888;
}

.archive-card-date,
.archive-card-category {
    display: flex;
    align-items: center;
}

.archive-pagination {
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers.current,
.page-numbers:hover {
    background: #333;
    color: #fff;
}

.page-numbers.next,
.page-numbers.prev {
    width: auto;
    padding: 0 15px;
}

.no-posts-found {
    text-align: center;
    padding: 60px 20px;
}

.no-posts-found h2 {
    color: #333;
    margin-bottom: 15px;
}

.no-posts-found p {
    color: #666;
    margin-bottom: 20px;
}

/* Search form in no results */
.no-posts-found .search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

.no-posts-found .search-field {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.no-posts-found .search-submit {
    padding: 10px 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Responsive styles */
@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .archive-card-thumbnail img {
        height: 180px;
    }
    
    .archive-card-content {
        padding: 15px;
    }
    
    .archive-card-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .archive-container {
        padding: 20px 15px;
    }
    
    .archive-header {
        margin-bottom: 30px;
    }
    
    .archive-card-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* Search page styles */
.search-container {
    padding: 40px 20px;
}

.search-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 4rem 0;
    background: #eee;
}

.search-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
	margin: 0;
}

.search-title span {
    color: #c79e50;
}

.search-results-count {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.search-again {
    max-width: 600px;
    margin: 0 auto;
}

.search-again p {
    margin-bottom: 10px;
    color: #666;
}

/* Search form styling */
.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-submit {
    padding: 12px 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: #0073aa;
}

/* Search grid layout */
.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.search-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.search-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.search-card-thumbnail {
    overflow: hidden;
    height: 200px;
}

.search-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.search-card:hover .search-card-thumbnail img {
    transform: scale(1.05);
}

.search-card-content {
    padding: 20px;
}

.search-card-title {
    font-size: 1.3rem;
    margin: 0 0 15px;
    color: #333;
    line-height: 1.4;
}

.search-card-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.search-card-excerpt p:last-child {
    margin-bottom: 0;
}

.search-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #888;
}

.search-card-date,
.search-card-type {
    display: flex;
    align-items: center;
}

/* No results styling */
.no-results {
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.no-results h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 2rem;
}

.no-results p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.search-suggestions {
    margin-bottom: 30px;
    text-align: right;
    display: inline-block;
}

.search-suggestions h3 {
    color: #333;
    margin-bottom: 10px;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    padding: 5px 0;
    color: #666;
    position: relative;
    padding-right: 20px;
}

.search-suggestions li:before {
    content: "•";
    color: #c79e50;
    position: absolute;
    right: 0;
}

.popular-topics {
    margin-top: 30px;
}

.popular-topics h3 {
    color: #333;
    margin-bottom: 15px;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.topic-tag {
    display: inline-block;
    padding: 8px 15px;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.topic-tag:hover {
    background: #c79e50;
    color: #fff;
}

/* Pagination */
.search-pagination {
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers.current,
.page-numbers:hover {
    background: #333;
    color: #fff;
}

.page-numbers.next,
.page-numbers.prev {
    width: auto;
    padding: 0 15px;
}

/* Responsive styles */
@media (max-width: 992px) {
    .search-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .search-title {
        font-size: 2rem;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-card-thumbnail {
        height: 180px;
    }
    
    .search-card-content {
        padding: 15px;
    }
    
    .search-card-title {
        font-size: 1.2rem;
    }
    
    .search-card-meta {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .search-container {
        padding: 20px 15px;
    }
    
    .search-header {
        margin-bottom: 30px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-field {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .search-submit {
        border-radius: 4px;
    }
    
    .topic-tags {
        gap: 8px;
    }
    
    .topic-tag {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid #eee;
}
.header-container{
  max-width:1200px; margin:0 auto; padding:0 20px;
  height:76px; display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.logo img{max-height:46px; height:auto; width:auto;}
.logo-text{font-weight:800; font-size:20px; color:var(--text); text-decoration:none; letter-spacing:.2px}

/* =============== Desktop Nav =============== */
.main-navigation{flex:1; display:flex; justify-content:center}
.nav-menu{list-style:none; margin:0; padding:0; display:flex; gap:8px}
.nav-menu > li{position:relative}
.nav-menu a{
  display:flex; align-items:center; gap:6px;
  padding:10px 14px; border-radius:10px;
  color:var(--text); text-decoration:none; font-weight:600; letter-spacing:.1px;
  transition:background .2s, color .2s, transform .15s;
}
.nav-menu > li > a:hover{background:#f3f4f6}
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a{background:#eef2ff; color:#3730a3}

/* Dropdowns (up to 3 levels) */
.nav-menu li ul{
  position:absolute; top:calc(100%); left:0; min-width:220px;
  background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow);
  padding:8px; display:none;
}
.nav-menu li:hover > ul, .nav-menu li:focus-within > ul{display:block}
.nav-menu li ul li{position:relative}
.nav-menu li ul a{padding:9px 12px; border-radius:8px; font-weight:500;}
.nav-menu li ul a:hover{background:#f8fafc}
.nav-menu li ul ul{left:calc(100% + 10px); top:0}

/* =============== Actions =============== */
.header-actions{display:flex; align-items:center; gap:14px; position:relative}
.icon-btn{
  border:0; background:transparent; padding:10px; display:flex; align-items:center; justify-content:center;
  border-radius:12px; cursor:pointer;
}
.icon-btn:hover{background:#f3f4f6}
.social-icons{display:flex; align-items:center; gap:10px}
.social-icons a{display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:10px; text-decoration:none; color:var(--muted); border:1px solid var(--line)}
.social-icons a:hover{color:var(--brand); border-color:#cbd5e1}

/* Search dropdown */
.search-dropdown{
  position:absolute; left:0; top:calc(100% + 12px);
  width:auto;
  background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow);
  padding:14px; transition:opacity .2s, transform .2s; opacity:0; transform:translateY(-4px); pointer-events:none;
}
.search-dropdown.open{opacity:1; transform:translateY(0); pointer-events:auto}
.search-dropdown .search-form{display:flex; gap:10px; align-items:center}
.search-dropdown .search-field {
    flex: 1;
    height: 46px;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
    outline: 0;
}
.search-dropdown .search-field:focus{border-color:#cbd5e1; box-shadow:0 0 0 4px #e0f2fe}
.search-dropdown .search-submit {
    height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    background: linear-gradient(45deg, #e4b965, #af8126);
    color: #fff;
}

/* =============== Mobile =============== */
.mobile-toggle{display:none}
@media (max-width: 991px){
  .main-navigation{display:none}
  .mobile-toggle{display:inline-flex}
}

/* Offcanvas */
.mobile-menu-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.45); opacity:0; pointer-events:none; transition:opacity .25s; z-index:999;
}
.mobile-menu-overlay.active{opacity:1; pointer-events:auto}
.mobile-menu{
  position:fixed; top:0; left:-340px; width:320px; max-width:85vw; height:100vh; background:#fff; z-index:1000;
  border-right:1px solid var(--line); box-shadow:var(--shadow); transition:left .28s ease;
  display:flex; flex-direction:column;
}
.mobile-menu.active{left:0}
.mobile-header{display:flex; align-items:center; justify-content:space-between; padding:16px 16px 10px; border-bottom:1px solid var(--line)}
.mobile-search{padding:14px 16px; border-bottom:1px solid var(--line)}
.mobile-search .search-form{display:flex; gap:8px}
.mobile-search .search-field {
    flex: 1;
    height: 44px;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 0 12px;
    width: 100%;
	margin: 0;
}
.mobile-search .search-submit {
    height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(45deg, #e4b965, #af8126);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.mobile-nav-menu{list-style:none; margin:0; padding:6px 6px 14px 6px}
.mobile-nav-menu li{border-radius:10px}
.mobile-nav-menu > li > a{display:flex; justify-content:space-between; align-items:center; padding:12px 12px; color:var(--text); text-decoration:none; font-weight:700}
.mobile-nav-menu a:hover{background:#f8fafc}

/* Submenus (accordion) */
.mobile-nav-menu .submenu-toggle{
  margin-left:auto; border:0; background:transparent; width:38px; height:38px; border-radius:10px; cursor:pointer; font-weight:900;
}
.mobile-nav-menu .submenu-toggle:hover{background:#f3f4f6}
.mobile-nav-menu ul{display:none; padding-left:12px; margin:0}
.mobile-nav-menu li.open > ul{display:block}
.mobile-nav-menu li ul a{display:block; padding:10px 12px; font-weight:600; color:#374151; border-radius:8px}
.mobile-nav-menu li ul a:hover{background:#f9fafb}



.error-404-container {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 70vh;
        padding: 40px 20px;
        background-color: #f8f9fa;
    }
    
    .error-content {
        text-align: center;
        max-width: 800px;
        width: 100%;
    }
    
    .error-icon {
        font-size: 80px;
        color: #ff6b6b;
        margin-bottom: 20px;
    }
    
    .error-title {
        font-size: 2.5rem;
        color: #2c3e50;
        margin-bottom: 15px;
        font-weight: 700;
    }
    
    .error-message {
        font-size: 1.2rem;
        color: #7f8c8d;
        margin-bottom: 30px;
        line-height: 1.6;
    }
    
    .error-search {
        margin: 30px 0;
        padding: 20px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }
    
    .error-search h3 {
        margin-bottom: 15px;
        color: #2c3e50;
    }
    
    .error-search form {
        display: flex;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .error-search input {
        flex: 1;
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 4px 0 0 4px;
        font-size: 16px;
    }
    
    .error-search button {
        padding: 12px 20px;
        background: #3498db;
        color: #fff;
        border: none;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
    }
    
    .error-actions {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin: 30px 0;
    }
    
    .home-button, .back-button {
        display: inline-flex;
        align-items: center;
        padding: 12px 25px;
        background: #3498db;
        color: white;
        text-decoration: none;
        border-radius: 4px;
        font-weight: 500;
        transition: background 0.3s;
    }
    
    .back-button {
        background: #95a5a6;
    }
    
    .home-button:hover {
        background: #2980b9;
    }
    
    .back-button:hover {
        background: #7f8c8d;
    }
    
    .home-button i, .back-button i {
        margin-left: 8px;
    }
    
    .popular-posts {
        margin-top: 40px;
        padding: 30px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }
    
    .popular-posts h3 {
        margin-bottom: 20px;
        color: #2c3e50;
        text-align: center;
    }
    
    .popular-posts .posts-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .popular-posts .post-card {
        background: #f8f9fa;
        border-radius: 8px;
        overflow: hidden;
        transition: transform 0.3s;
    }
    
    .popular-posts .post-card:hover {
        transform: translateY(-5px);
    }
    
    .popular-posts .post-thumbnail {
        height: 180px;
        overflow: hidden;
    }
    
    .popular-posts .post-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s;
    }
    
    .popular-posts .post-card:hover .post-thumbnail img {
        transform: scale(1.05);
    }
    
    .popular-posts .post-content {
        padding: 20px;
    }
    
    .popular-posts .post-content h4 {
        margin-bottom: 10px;
    }
    
    .popular-posts .post-content h4 a {
        color: #2c3e50;
        text-decoration: none;
    }
    
    .popular-posts .post-content h4 a:hover {
        color: #3498db;
    }
    
    .popular-posts .post-content p {
        color: #7f8c8d;
        margin-bottom: 15px;
        line-height: 1.6;
    }
    
    .popular-posts .read-more {
        color: #3498db;
        text-decoration: none;
        font-weight: 500;
    }
    
    .popular-posts .read-more:hover {
        text-decoration: underline;
    }
    
    @media (max-width: 768px) {
        .error-title {
            font-size: 2rem;
        }
        
        .error-actions {
            flex-direction: column;
        }
        
        .popular-posts .posts-grid {
            grid-template-columns: 1fr;
        }
		.mailpoet_paragraph, .mailpoet_paragraph.last {
			margin-bottom: 0 !important;
			width: 100%;
		}
		.mailpoet_text, .mailpoet_textarea {
			width: 100% !important;
			line-height: normal !important;
		}
		.newsletter-cta input[type="email"] {			
			padding: 12px 15px !important;
		}
		 .mailpoet_submit {
			width: 100% !important;
		}
		
    }

/* Questions & Answers Section */
.entry-questions {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.entry-questions-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.entry-questions-header h2 {
    margin: 0;
    font-size: 1.75rem;
    color: #212529;
}

.entry-questions-header .title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.entry-questions-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.question-item {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.question-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.question-title {
    padding: 18px 20px;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.1rem;
    color: #212529;
    transition: background-color 0.3s ease;
}

.question-title:hover {
    background: #f8f9fa;
}

.question-title .title {
    flex: 1;
}

.question-toggle {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.question-item.active .question-toggle {
    transform: rotate(180deg);
}

.question-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.question-item.active .question-answer {
    padding: 20px;
    max-height: 1000px;
}

.question-answer div {
    color: #495057;
    line-height: 1.7;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Citations Section */
.entry-citations {
    margin: 40px 0;
    padding: 30px;
    background: #f0f8ff;
    border-radius: 10px;
    border: 1px solid #cce5ff;
}

.entry-citations-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #99ccff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.entry-citations-header h2 {
    margin: 0;
    font-size: 1.75rem;
    color: #004085;
}

.citations-toggle {
    transition: transform 0.3s ease;
}

.entry-citations.collapsed .citations-toggle {
    transform: rotate(-90deg);
}

.entry-citations-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.entry-citations.collapsed .entry-citations-content {
    display: none;
}

.citation-note {
    padding: 12px 15px;
    background: #ffffff;
    border: 1px solid #cce5ff;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.citation-id {
    font-weight: bold;
    color: #0056b3;
    text-decoration: none;
    padding: 2px 8px;
    background: #e7f3ff;
    border-radius: 4px;
    font-size: 0.9rem;
}

.citation-id:hover {
    background: #cce5ff;
}

.citation-name {
    font-weight: 600;
    color: #212529;
}

.citation-title {
    color: #495057;
}

.citation-url a {
    color: #0056b3;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.citation-url a:hover {
    border-bottom-color: #0056b3;
}

.citation-date {
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
}

.sep {
    width: 4px;
    height: 4px;
    background: #adb5bd;
    border-radius: 50%;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .entry-questions,
    .entry-citations {
        padding: 20px 15px;
        margin: 30px -15px;
        border-radius: 0;
    }
    
    .entry-questions-header h2,
    .entry-citations-header h2 {
        font-size: 1.4rem;
    }
    
    .question-title {
        padding: 15px;
        font-size: 1rem;
    }
    
    .question-answer {
        padding: 0 15px;
    }
    
    .question-item.active .question-answer {
        padding: 15px;
    }
    
    .citation-note {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

/* Interactive JavaScript Enhancement */
.question-item {
    position: relative;
}

.question-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #0056b3;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.question-item.active::before {
    transform: scaleY(1);
}