	<style>
	 .wd-marquee {
		--wd-marquee-speed: 10s;
		--wd-marquee-direction: normal !important;
		color: red;
	}
		.swiper-slide-inner {
			text-align: Center !important;
			direction: ltr !important;
		}
		
		  .swiper-slide-contents {
			 direction: ltr !important;
			margin-right: auto !important;
			  margin-left: initial !important;
			  
		}
		
			.wd-text-block:not(.inline-element).text-right {
    margin-left: auto;
    text-align: left;
}
		.elementor-2647 .elementor-element.elementor-element-bbfcb5e .fluentform-widget-wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]) {
    text-align: left !important;
	}
		.elementor-2647 .elementor-element.elementor-element-bbfcb5e .fluentform-widget-wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]), .elementor-2647 .elementor-element.elementor-element-bbfcb5e .fluentform-widget-wrapper .ff-el-group textarea, .elementor-2647 .elementor-element.elementor-element-bbfcb5e .fluentform-widget-wrapper .ff-el-group select {
		text-align: left !important;
	}
		
	</style>
	 



{"id":2736,"date":"2024-11-02T21:40:08","date_gmt":"2024-11-02T21:40:08","guid":{"rendered":"https:\/\/fmac.cutting-edge.digital\/?page_id=2736"},"modified":"2024-11-02T21:54:11","modified_gmt":"2024-11-02T21:54:11","slug":"%d8%a7%d9%84%d8%a7%d8%ae%d8%a8%d8%a7%d8%b1","status":"publish","type":"page","link":"https:\/\/fmac.fujairah.ae\/en\/%d8%a7%d9%84%d8%a7%d8%ae%d8%a8%d8%a7%d8%b1\/","title":{"rendered":"News"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"2736\" class=\"elementor elementor-2736\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"wd-negative-gap elementor-element elementor-element-c7ae07e e-flex e-con-boxed e-con e-parent\" data-id=\"c7ae07e\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-47f200e elementor-widget elementor-widget-shortcode\" data-id=\"47f200e\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">    <form id=\"nested-category-filter\" style=\"display:flex;align-items: center;gap: 6px;margin-bottom: 15px;\" action=\"\">\n                    \n            <select id=\"subcategory-dropdown-173\" class=\"subcategory-dropdown\" name=\"subcategory_173\">\n                <option value=\"\">\u0627\u062e\u062a\u0627\u0631 \u0645\u0646 \u0643\u0644 \u0627\u0644\u0627\u062e\u0628\u0627\u0631 <\/option>\n                <option value=\"173\">\u0643\u0644 \u0627\u0644\u0627\u062e\u0628\u0627\u0631 <\/option>\n                \n                                    <option value=\"79\">World News<\/option>\n                                    <option value=\"78\">Local News<\/option>\n                \n            <\/select>\n            <br>\n                <input type=\"hidden\" id=\"all-categories\" value=\"173,79,78\" \/>\n\n        <input type=\"text\" id=\"search-keyword\" placeholder=\"Search...\"  \/>\n\n        <button class=\"btn btn-scheme-hover-light btn-style-default btn-style-semi-round btn-size-default\" type=\"button\" style=\"background-color: #d0021b !important;    color: #fff !important;\" onclick=\"filterNestedPosts()\">Filter<\/button>\n\n<button type=\"button\" class=\"filter-button\" onclick=\"filterNestedPostsByDate('day')\" data-date=\"day\">Day<\/button>\n<button type=\"button\" class=\"filter-button\" onclick=\"filterNestedPostsByDate('week')\" data-date=\"week\">The week<\/button>\n<button type=\"button\" class=\"filter-button\" onclick=\"filterNestedPostsByDate('month')\" data-date=\"month\">The month<\/button>\n\n    <input type=\"hidden\" name=\"trp-form-language\" value=\"en\"\/><\/form>\n    <div id=\"loader\" style=\"display: none;\">\n            <div class=\"spinner\"><\/div>\n        <\/div>\n    <!-- Initial post display section -->\n    <div id=\"filtered-posts\">\n        <div class=\"wd-posts wd-blog-holder wd-masonry wd-grid-f-col\" style=\"--wd-col-lg: 3; --wd-col-md: 3; --wd-col-sm: 1; --wd-gap-lg: 20px; --wd-gap-sm: 10px;\">\n                                                <article id=\"post-2906\" class=\"wd-post blog-design-masonry blog-post-loop blog-style-bg wd-col post-2906 post type-post status-publish format-standard has-post-thumbnail hentry category-17 category-78\">\n                        <div class=\"article-inner\">\n                            <header class=\"entry-header\">\n                                <figure class=\"entry-thumbnail\">\n                                    <a href=\"https:\/\/fmac.fujairah.ae\/en\/2024\/11\/03\/%d9%86%d8%a7%d8%af%d9%8a-%d8%a7%d9%84%d9%81%d8%ac%d9%8a%d8%b1%d8%a9-%d9%84%d9%84%d9%81%d9%86%d9%88%d9%86-%d8%a7%d9%84%d9%82%d8%aa%d8%a7%d9%84%d9%8a%d8%a9-%d9%8a%d8%ad%d8%b5%d8%af3-%d8%b0%d9%87%d8%a8-2\/\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"853\" src=\"https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/11\/\u0645\u062d\u0644\u064a\u0629-\u0627\u062e\u0628\u0627\u0631-jpg.webp\" class=\"attachment-full size-full wp-post-image\" alt=\"\" srcset=\"https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/11\/\u0645\u062d\u0644\u064a\u0629-\u0627\u062e\u0628\u0627\u0631-jpg.webp 1280w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/11\/\u0645\u062d\u0644\u064a\u0629-\u0627\u062e\u0628\u0627\u0631-300x200.webp 300w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/11\/\u0645\u062d\u0644\u064a\u0629-\u0627\u062e\u0628\u0627\u0631-1024x682.webp 1024w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/11\/\u0645\u062d\u0644\u064a\u0629-\u0627\u062e\u0628\u0627\u0631-768x512.webp 768w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/11\/\u0645\u062d\u0644\u064a\u0629-\u0627\u062e\u0628\u0627\u0631-1200x800.webp 1200w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/11\/\u0645\u062d\u0644\u064a\u0629-\u0627\u062e\u0628\u0627\u0631-150x100.webp 150w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/a>\n                                <\/figure>\n                                <div class=\"post-date wd-post-date wd-style-with-bg\">\n                                    <span class=\"post-date-day\">3<\/span>\n                                    <span class=\"post-date-month\">Nov<\/span>\n                                <\/div>\n                            <\/header>\n                            <div class=\"article-body-container\">\n                                <div class=\"meta-categories-wrapp\">\n                                    <div class=\"meta-post-categories wd-post-cat wd-style-with-bg\"><\/div>\n                                <\/div>\n                                <h3 class=\"wd-entities-title title post-title\">\n                                    <a href=\"https:\/\/fmac.fujairah.ae\/en\/2024\/11\/03\/%d9%86%d8%a7%d8%af%d9%8a-%d8%a7%d9%84%d9%81%d8%ac%d9%8a%d8%b1%d8%a9-%d9%84%d9%84%d9%81%d9%86%d9%88%d9%86-%d8%a7%d9%84%d9%82%d8%aa%d8%a7%d9%84%d9%8a%d8%a9-%d9%8a%d8%ad%d8%b5%d8%af3-%d8%b0%d9%87%d8%a8-2\/\">Fujairah Martial Arts Club wins 3 gold, 2 silver and 3 bronze medals in the UAE Archery Championship and\u2026<\/a>\n                                <\/h3>\n                            <\/div>\n                        <\/div>\n                    <\/article>\n                                    <article id=\"post-2904\" class=\"wd-post blog-design-masonry blog-post-loop blog-style-bg wd-col post-2904 post type-post status-publish format-standard has-post-thumbnail hentry category-17 category-79\">\n                        <div class=\"article-inner\">\n                            <header class=\"entry-header\">\n                                <figure class=\"entry-thumbnail\">\n                                    <a href=\"https:\/\/fmac.fujairah.ae\/en\/2024\/11\/03\/%d9%86%d8%a7%d8%af%d9%8a-%d8%a7%d9%84%d9%81%d8%ac%d9%8a%d8%b1%d8%a9-%d9%84%d9%84%d9%81%d9%86%d9%88%d9%86-%d8%a7%d9%84%d9%82%d8%aa%d8%a7%d9%84%d9%8a%d8%a9-%d8%a7%d9%84%d8%a3%d9%81%d8%b6%d9%84-%d9%84\/\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"896\" src=\"https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/11\/\u062e\u0628\u0631-\u062f\u0648\u0644\u064a-jpg.webp\" class=\"attachment-full size-full wp-post-image\" alt=\"\" srcset=\"https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/11\/\u062e\u0628\u0631-\u062f\u0648\u0644\u064a-jpg.webp 1280w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/11\/\u062e\u0628\u0631-\u062f\u0648\u0644\u064a-300x210.webp 300w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/11\/\u062e\u0628\u0631-\u062f\u0648\u0644\u064a-1024x717.webp 1024w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/11\/\u062e\u0628\u0631-\u062f\u0648\u0644\u064a-768x538.webp 768w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/11\/\u062e\u0628\u0631-\u062f\u0648\u0644\u064a-1200x840.webp 1200w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/11\/\u062e\u0628\u0631-\u062f\u0648\u0644\u064a-150x105.webp 150w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/a>\n                                <\/figure>\n                                <div class=\"post-date wd-post-date wd-style-with-bg\">\n                                    <span class=\"post-date-day\">3<\/span>\n                                    <span class=\"post-date-month\">Nov<\/span>\n                                <\/div>\n                            <\/header>\n                            <div class=\"article-body-container\">\n                                <div class=\"meta-categories-wrapp\">\n                                    <div class=\"meta-post-categories wd-post-cat wd-style-with-bg\"><\/div>\n                                <\/div>\n                                <h3 class=\"wd-entities-title title post-title\">\n                                    <a href=\"https:\/\/fmac.fujairah.ae\/en\/2024\/11\/03\/%d9%86%d8%a7%d8%af%d9%8a-%d8%a7%d9%84%d9%81%d8%ac%d9%8a%d8%b1%d8%a9-%d9%84%d9%84%d9%81%d9%86%d9%88%d9%86-%d8%a7%d9%84%d9%82%d8%aa%d8%a7%d9%84%d9%8a%d8%a9-%d8%a7%d9%84%d8%a3%d9%81%d8%b6%d9%84-%d9%84\/\">Fujairah Martial Arts Club signed an agreement with the Tunisian Judo Federation to build bridges of cooperation with the Tunisian Judo Federation.<\/a>\n                                <\/h3>\n                            <\/div>\n                        <\/div>\n                    <\/article>\n                                    <article id=\"post-1661\" class=\"wd-post blog-design-masonry blog-post-loop blog-style-bg wd-col post-1661 post type-post status-publish format-standard has-post-thumbnail hentry category-17\">\n                        <div class=\"article-inner\">\n                            <header class=\"entry-header\">\n                                <figure class=\"entry-thumbnail\">\n                                    <a href=\"https:\/\/fmac.fujairah.ae\/en\/2024\/09\/18\/%d8%af%d8%b1%d8%b9-%d8%a7%d9%84%d8%aa%d9%81%d9%88%d9%82-%d8%a7%d9%84%d8%b9%d8%a7%d9%85-%d9%84%d9%84%d8%a3%d9%84%d8%b9%d8%a7%d8%a8-%d8%a7%d9%84%d9%85%d8%a7%d8%a6%d9%8a%d8%a9-%d9%81%d9%8a-%d9%82%d8%a8\/\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"854\" src=\"https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/09\/photo_2024-05-28_17-59-52.jpg\" class=\"attachment-full size-full wp-post-image\" alt=\"\" srcset=\"https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/09\/photo_2024-05-28_17-59-52.jpg 1280w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/09\/photo_2024-05-28_17-59-52-150x100.jpg 150w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/09\/photo_2024-05-28_17-59-52-1200x801.jpg 1200w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/09\/photo_2024-05-28_17-59-52-300x200.jpg 300w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/09\/photo_2024-05-28_17-59-52-1024x683.jpg 1024w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/09\/photo_2024-05-28_17-59-52-768x512.jpg 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/a>\n                                <\/figure>\n                                <div class=\"post-date wd-post-date wd-style-with-bg\">\n                                    <span class=\"post-date-day\">18<\/span>\n                                    <span class=\"post-date-month\">Sep<\/span>\n                                <\/div>\n                            <\/header>\n                            <div class=\"article-body-container\">\n                                <div class=\"meta-categories-wrapp\">\n                                    <div class=\"meta-post-categories wd-post-cat wd-style-with-bg\"><\/div>\n                                <\/div>\n                                <h3 class=\"wd-entities-title title post-title\">\n                                    <a href=\"https:\/\/fmac.fujairah.ae\/en\/2024\/09\/18\/%d8%af%d8%b1%d8%b9-%d8%a7%d9%84%d8%aa%d9%81%d9%88%d9%82-%d8%a7%d9%84%d8%b9%d8%a7%d9%85-%d9%84%d9%84%d8%a3%d9%84%d8%b9%d8%a7%d8%a8-%d8%a7%d9%84%d9%85%d8%a7%d8%a6%d9%8a%d8%a9-%d9%81%d9%8a-%d9%82%d8%a8\/\">Fujairah Martial Arts Club wins the overall excellence shield for water sports<\/a>\n                                <\/h3>\n                            <\/div>\n                        <\/div>\n                    <\/article>\n                                    <article id=\"post-1662\" class=\"wd-post blog-design-masonry blog-post-loop blog-style-bg wd-col post-1662 post type-post status-publish format-standard has-post-thumbnail hentry category-17\">\n                        <div class=\"article-inner\">\n                            <header class=\"entry-header\">\n                                <figure class=\"entry-thumbnail\">\n                                    <a href=\"https:\/\/fmac.fujairah.ae\/en\/2024\/09\/18\/%d9%86%d8%a7%d8%af%d9%8a-%d8%a7%d9%84%d9%81%d8%ac%d9%8a%d8%b1%d8%a9-%d9%84%d9%84%d9%81%d9%86%d9%88%d9%86-%d8%a7%d9%84%d9%82%d8%aa%d8%a7%d9%84%d9%8a%d8%a9-%d9%8a%d8%b8%d9%81%d8%b1-%d8%a8%d9%83%d8%a3\/\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"853\" src=\"https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/09\/photo_2024-05-28_18-19-31.jpg\" class=\"attachment-full size-full wp-post-image\" alt=\"\" srcset=\"https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/09\/photo_2024-05-28_18-19-31.jpg 1280w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/09\/photo_2024-05-28_18-19-31-150x100.jpg 150w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/09\/photo_2024-05-28_18-19-31-1200x800.jpg 1200w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/09\/photo_2024-05-28_18-19-31-300x200.jpg 300w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/09\/photo_2024-05-28_18-19-31-1024x682.jpg 1024w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/09\/photo_2024-05-28_18-19-31-768x512.jpg 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/a>\n                                <\/figure>\n                                <div class=\"post-date wd-post-date wd-style-with-bg\">\n                                    <span class=\"post-date-day\">18<\/span>\n                                    <span class=\"post-date-month\">Sep<\/span>\n                                <\/div>\n                            <\/header>\n                            <div class=\"article-body-container\">\n                                <div class=\"meta-categories-wrapp\">\n                                    <div class=\"meta-post-categories wd-post-cat wd-style-with-bg\"><\/div>\n                                <\/div>\n                                <h3 class=\"wd-entities-title title post-title\">\n                                    <a href=\"https:\/\/fmac.fujairah.ae\/en\/2024\/09\/18\/%d9%86%d8%a7%d8%af%d9%8a-%d8%a7%d9%84%d9%81%d8%ac%d9%8a%d8%b1%d8%a9-%d9%84%d9%84%d9%81%d9%86%d9%88%d9%86-%d8%a7%d9%84%d9%82%d8%aa%d8%a7%d9%84%d9%8a%d8%a9-%d9%8a%d8%b8%d9%81%d8%b1-%d8%a8%d9%83%d8%a3\/\">Fujairah Martial Arts Club wins two UAE Judo Cups<\/a>\n                                <\/h3>\n                            <\/div>\n                        <\/div>\n                    <\/article>\n                                    <article id=\"post-1660\" class=\"wd-post blog-design-masonry blog-post-loop blog-style-bg wd-col post-1660 post type-post status-publish format-standard has-post-thumbnail hentry category-17 category-79\">\n                        <div class=\"article-inner\">\n                            <header class=\"entry-header\">\n                                <figure class=\"entry-thumbnail\">\n                                    <a href=\"https:\/\/fmac.fujairah.ae\/en\/2024\/09\/18\/%d9%86%d8%a7%d8%af%d9%8a-%d8%a7%d9%84%d9%81%d8%ac%d9%8a%d8%b1%d8%a9-%d9%84%d9%84%d9%81%d9%86%d9%88%d9%86-%d8%a7%d9%84%d9%82%d8%aa%d8%a7%d9%84%d9%8a%d8%a9-%d9%8a%d8%ad%d8%b5%d8%af3-%d8%b0%d9%87%d8%a8\/\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"853\" src=\"https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/09\/photo_2024-05-28_18-05-58.jpg\" class=\"attachment-full size-full wp-post-image\" alt=\"\" srcset=\"https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/09\/photo_2024-05-28_18-05-58.jpg 1280w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/09\/photo_2024-05-28_18-05-58-150x100.jpg 150w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/09\/photo_2024-05-28_18-05-58-1200x800.jpg 1200w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/09\/photo_2024-05-28_18-05-58-300x200.jpg 300w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/09\/photo_2024-05-28_18-05-58-1024x682.jpg 1024w, https:\/\/fmac.fujairah.ae\/wp-content\/uploads\/2024\/09\/photo_2024-05-28_18-05-58-768x512.jpg 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/a>\n                                <\/figure>\n                                <div class=\"post-date wd-post-date wd-style-with-bg\">\n                                    <span class=\"post-date-day\">18<\/span>\n                                    <span class=\"post-date-month\">Sep<\/span>\n                                <\/div>\n                            <\/header>\n                            <div class=\"article-body-container\">\n                                <div class=\"meta-categories-wrapp\">\n                                    <div class=\"meta-post-categories wd-post-cat wd-style-with-bg\"><\/div>\n                                <\/div>\n                                <h3 class=\"wd-entities-title title post-title\">\n                                    <a href=\"https:\/\/fmac.fujairah.ae\/en\/2024\/09\/18\/%d9%86%d8%a7%d8%af%d9%8a-%d8%a7%d9%84%d9%81%d8%ac%d9%8a%d8%b1%d8%a9-%d9%84%d9%84%d9%81%d9%86%d9%88%d9%86-%d8%a7%d9%84%d9%82%d8%aa%d8%a7%d9%84%d9%8a%d8%a9-%d9%8a%d8%ad%d8%b5%d8%af3-%d8%b0%d9%87%d8%a8\/\">Fujairah Martial Arts Club wins 3 gold, 2 silver and 3 bronze medals in the UAE Archery Championship<\/a>\n                                <\/h3>\n                            <\/div>\n                        <\/div>\n                    <\/article>\n                                                    <\/div>\n    <\/div>\n\n    <script>\n      \n      function filterNestedPostsByDate(dateFilter) {\n      \/\/ Remove 'active' class from all buttons\n    const buttons = document.querySelectorAll('.filter-button');\n    buttons.forEach(button => button.classList.remove('active'));\n\n    \/\/ Add 'active' class to the clicked button\n    const selectedButton = document.querySelector(`.filter-button[data-date=\"${dateFilter}\"]`);\n    if (selectedButton) {\n        selectedButton.classList.add('active');\n    }\n\n    \/\/ Helper function to show\/hide loader\n    function toggleLoader(show) {\n        document.getElementById('loader').style.display = show ? 'block' : 'none';\n    }\n\n    \/\/ Show loader at the start of the function\n    toggleLoader(true);\n\n    const selectedCategories = Array.from(document.querySelectorAll('.subcategory-dropdown'))\n        .map(dropdown => dropdown.value)\n        .filter(Boolean);\n\n    const searchKeyword = document.getElementById('search-keyword').value;\n    const allCategories = document.getElementById('all-categories').value;\n\n     params = new URLSearchParams({});\n\n    \/\/ Check if any subcategory is selected or a search keyword is entered\n    if (!selectedCategories.length && !searchKeyword && !dateFilter) {\n        \/\/document.getElementById('filtered-posts').innerHTML = '\u0645\u0646 \u0641\u0636\u0644\u0643 \u0627\u062e\u062a\u0627\u0631 \u0627\u0648 \u0627\u0643\u062a\u0628 \u0643\u0644\u0645\u0647 \u0644\u0644\u0628\u062d\u062b \u0639\u0644\u064a \u0627\u0644\u0627\u0642\u0644 \u0644\u0644\u062a\u0635\u0641\u064a\u0629.';\n        toggleLoader(false); \/\/ Hide loader if no categories are selected\n        params = new URLSearchParams({\n        action: 'filter_posts',\n        subcategory_ids: allCategories,\n        search_keyword: '',\n        all_categories: allCategories,\n        date_filter: '', \/\/ Pass the date filter to the server\n        security: '62da41bfc9'\n        });\n\n        \/\/return;\n    }else{\n        params = new URLSearchParams({\n        action: 'filter_posts',\n        subcategory_ids: selectedCategories.join(','),\n        search_keyword: searchKeyword,\n        all_categories: allCategories,\n        date_filter: dateFilter, \/\/ Pass the date filter to the server\n        security: '62da41bfc9'\n    });\n    }\n\n    \n\n    \/\/ Perform the AJAX fetch call\n    fetch('https:\/\/fmac.fujairah.ae\/wp-admin\/admin-ajax.php?' + params)\n        .then(response => {\n            if (!response.ok) throw new Error('Network response was not ok');\n            return response.text();\n        })\n        .then(data => {\n            document.getElementById('filtered-posts').innerHTML = data;\n        })\n        .catch(error => {\n            console.error('Error fetching posts:', error);\n            document.getElementById('filtered-posts').innerHTML = 'An error occurred. Please try again.';\n        })\n        .finally(() => {\n            \/\/ Hide loader after the fetch completes or fails\n            toggleLoader(false);\n        });\n}\n\n\n        function filterNestedPosts() {\n\t\t\t const buttons = document.querySelectorAll('.filter-button');\n    buttons.forEach(button => button.classList.remove('active'));\n    \/\/ Helper function to show\/hide loader\n    function toggleLoader(show) {\n        document.getElementById('loader').style.display = show ? 'block' : 'none';\n    }\n\n    \/\/ Show loader at the start of the function\n    toggleLoader(true);\n\n    const selectedCategories = Array.from(document.querySelectorAll('.subcategory-dropdown'))\n        .map(dropdown => dropdown.value)\n        .filter(Boolean);\n        const allCategories = document.getElementById('all-categories').value;\n\n        const searchKeyword = document.getElementById('search-keyword').value;\n\n         params = new URLSearchParams({});\n\n    \/\/ Check if any subcategory is selected\n    if (!selectedCategories.length && !searchKeyword) {\n        \/\/document.getElementById('filtered-posts').innerHTML = '\u0645\u0646 \u0641\u0636\u0644\u0643 \u0627\u062e\u062a\u0627\u0631 \u0627\u0648 \u0627\u0643\u062a\u0628 \u0643\u0644\u0645\u0647 \u0644\u0644\u0628\u062d\u062b \u0639\u0644\u064a \u0627\u0644\u0627\u0642\u0644 \u0644\u0644\u062a\u0635\u0641\u064a\u0629.';\n        toggleLoader(false);  \/\/ Hide loader if no categories are selected\n        \n         params = new URLSearchParams({\n        action: 'filter_posts',\n        subcategory_ids: allCategories,\n        search_keyword: '',\n        all_categories: allCategories,  \/\/ Include all categories in the request\n        security: '62da41bfc9'\n    });\n\n    }else{\n     params = new URLSearchParams({\n        action: 'filter_posts',\n        subcategory_ids: selectedCategories.join(','),\n        search_keyword: searchKeyword,\n        all_categories: allCategories,  \/\/ Include all categories in the request\n        security: '62da41bfc9'\n    });\n}\n\n    \/\/ Perform the AJAX fetch call\n    fetch('https:\/\/fmac.fujairah.ae\/wp-admin\/admin-ajax.php?' + params)\n        .then(response => {\n            if (!response.ok) throw new Error('Network response was not ok');\n            return response.text();\n        })\n        .then(data => {\n            document.getElementById('filtered-posts').innerHTML = data;\n        })\n        .catch(error => {\n            console.error('Error fetching posts:', error);\n            document.getElementById('filtered-posts').innerHTML = 'An error occurred. Please try again.';\n        })\n        .finally(() => {\n            \/\/ Hide loader after the fetch completes or fails\n            toggleLoader(false);\n        });\n}\n\n    <\/script>\n    <style>\n\t\t.entry-thumbnail img{\n            height: 250px !important;\n        }\n        .filter-button.active {\n            background-color: #d0021b; \/* Active background color *\/\n            color: #fff; \/* Active text color *\/\n        }\n        #nested-category-filter .btn {\n            width: 20%;\n            padding: 5px 10px;\n            min-height: 28px;\n            font-size: 20px;\n        }\n        #nested-category-filter .subcategory-dropdown{\n            width: 45%;\n        }\n         \/* For smaller screens *\/\n    @media (max-width: 768px) {\n        #nested-category-filter {\n            display: grid !important;\n            gap: 0px !important;\n        }\n        #nested-category-filter .subcategory-dropdown{\n            width: 100%;\n        }\n        #search-keyword ,.filter-button{\n            margin-bottom: 8px;\n        }\n        #nested-category-filter .btn {\n            align-self: flex-start;\n            width: 100% !important;\n        }\n    }\n        #loader {\n            position: absolute;\n            top: 50%;\n            left: 50%;\n            transform: translate(-50%, -50%);\n            z-index: 1000;\n        }\n\n        .spinner {\n            border: 6px solid #d0021b ;\n            border-top: 6px solid #fff ;\n            border-radius: 50%;\n            width: 40px;\n            height: 40px;\n            animation: spin 1s linear infinite;\n        }\n\n        @keyframes spin {\n            0% { transform: rotate(0deg); }\n            100% { transform: rotate(360deg); }\n        }\n\n    <\/style>\n    <\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2736","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/fmac.fujairah.ae\/en\/wp-json\/wp\/v2\/pages\/2736","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fmac.fujairah.ae\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/fmac.fujairah.ae\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/fmac.fujairah.ae\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fmac.fujairah.ae\/en\/wp-json\/wp\/v2\/comments?post=2736"}],"version-history":[{"count":4,"href":"https:\/\/fmac.fujairah.ae\/en\/wp-json\/wp\/v2\/pages\/2736\/revisions"}],"predecessor-version":[{"id":2744,"href":"https:\/\/fmac.fujairah.ae\/en\/wp-json\/wp\/v2\/pages\/2736\/revisions\/2744"}],"wp:attachment":[{"href":"https:\/\/fmac.fujairah.ae\/en\/wp-json\/wp\/v2\/media?parent=2736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}