/*
 * Alomran Theme Stylesheet
 * ----------------------------------------------------------
 * Project : alomran.info
 * Version : 4.0.0-clean
 *
 * Contents:
 * 00) Theme Variables
 * 01) Base Styles (Typography, Colors, Links)
 * 02) Header and Navigation Bar
 * 03) Hero Section and Main Containers
 * 04) Carousel / Slider
 * 05) Sound Boxes and Hover Effects
 * 06) Gallery Section and Thumbnails
 * 07) News Section and Latest Additions Ticker
 * 08) Footer
 * 09) Utility Classes
 * 10) Responsive Layout (Tablet and Desktop)
 * 11) Inner Pages (Single Posts and Static Pages)
 * 12) Search Page Fixes
 * 13) Navigation Customizations (Alomran Menu)
 * 14) Typography Fixes for Lists and Tables
 * 15) Mobile Improvements
 * 16) Share Article Box
 * 17) Category Archive Grid Fixes
 * 18) Mega Menu Final Polish
 * 19) Dropdown Stability Fix
 * 20) Header Width Fix
 */


/* =========================================================
   00) Theme Variables
========================================================= */

:root {
    --alomran-green: #1E4724;
    --alomran-green-dark: #2D4A19;
    --alomran-green-deep: #1a3319;
    --alomran-gold: #D4AF37;
    --alomran-gold-soft: #E8D9AE;
    --alomran-beige: #FFF9ED;
    --alomran-beige-soft: #F5EDD8;
    --alomran-border: #D4BF8A;
    --alomran-brown: #5C3D11;
    --alomran-text: #3C2B1A;
    --alomran-card-shadow: 0 8px 12px 1px rgba(44, 30, 5, 0.14),
                           0 3px 15px 3px rgba(44, 30, 5, 0.12),
                           0 4px 5px -3px rgba(44, 30, 5, 0.2);
}

/* =========================================================
1) Base Styles (Typography, Colors, Links)
========================================================= */

body {
    font-family: "NeoSansArabicBold";
    line-height: 30px;
    font-size: 16px;
    color: var(--alomran-text);
    direction: rtl;
    background: rgb(255, 249, 237);
    background: linear-gradient(to bottom, rgba(235, 215, 175, 1) 0%, rgba(255, 249, 237, 1) 100%);
}

p {
    font-family: "NeoSansArabicRegular";
    text-align: right;
}

/* Apply justified text only inside long article content */
body.single .first-section p,
body.page .first-section p {
    text-align: justify;
    text-align-last: auto;
}

a {
    text-decoration: none;
    color: var(--alomran-green-dark);
    transition: color 0.25s ease;
}

a:hover,
a:active,
a:focus {
    color: var(--alomran-brown);
    text-decoration: none;
}

ul,
ol {
    padding-inline-start: 0;
}

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

.margin-auto {
    margin: auto;
}

.clr {
    clear: both;
}


/* =========================================================
   2) Header and Navigation Bar
========================================================= */

.navbar {
    min-height: 50px;
    background-color: #EBD49A !important;
    border: none;
    z-index: 9;
    box-sizing: border-box;
    margin: 0 30px;
    display: flex;
    box-shadow: 0 8px 12px 1px rgba(44, 30, 5, 0.18),
                0 3px 15px 3px rgba(44, 30, 5, 0.14),
                0 4px 5px -3px rgba(44, 30, 5, 0.25);
}


















.dropdown-menu > li > a:focus, .dropdown-menu > li > a:hover{
    color: #FFFFFF;
    background: var(--alomran-green-dark);
}



.navbar-nav > li > .dropdown-menu {
    border-radius: 0;
    background: #2D3A20;
    right: 0;
    left: auto;
}

.dropdown-menu > li > a {
    color: var(--alomran-beige-soft);
    text-align: right;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-menu > li > a:active {
    background: #4A6A2A;
}

.dropdown-grid-wrapper .dropdown-menu {
    background-color: #F0E6CA !important;
}


/* =========================================================
   3) Hero Section and Main Containers
========================================================= */





.section {
    padding: 30px 0 40px;
    overflow: hidden;
}

.first-section {
    margin: 28px 30px 0;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
    padding-top: 28px;
    box-shadow: 0 8px 12px 1px rgba(44, 30, 5, 0.14),
                0 3px 15px 3px rgba(44, 30, 5, 0.12),
                0 4px 5px -3px rgba(44, 30, 5, 0.2);
    background: rgb(255, 249, 237);
    background: linear-gradient(to bottom, rgba(255, 249, 237, 1) 0%, rgba(238, 221, 183, 1) 100%);
}

.heading {
    font-size: 20px;
    color: var(--alomran-green-dark);
    text-align: right;
    margin-bottom: 20px;
    margin-top: 30px;
    border-bottom: 2px solid var(--alomran-border);
    padding-bottom: 10px;
    position: relative;
}

.heading::after {
    content: "";
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 4px;
    background: var(--alomran-green-dark);
    border-radius: 2px;
}

.heading a {
    text-align: left;
    float: left;
    font-size: 15px;
    font-weight: 700;
    color: var(--alomran-green-dark);
}

.small-title {
    font-size: 16px;
    color: var(--alomran-green-deep);
    margin-bottom: 10px;
}


/* =========================================================
   4) Carousel / Slider
========================================================= */

#myCarousel,
#myCarousel .carousel-inner,
#myCarousel .item,
#myCarousel .blank-div {
    width: 100% !important;
    max-width: 100% !important;
}

#myCarousel .carousel-caption {
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 95px;
    padding: 20px 30px;
    text-align: right;
    background: rgba(28, 20, 8, 0.82);
    text-shadow: none;
}

#myCarousel .carousel-caption a {
    color: #E8D08C;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

#myCarousel .carousel-caption p {
    display: none;
}

#myCarousel .item img {
    width: 100%;
    height: 500px;
}

#myCarousel .blank-div {
    height: 500px;
    background-size: cover !important;
    background-position: center center !important;
}

.carousel-inner .item p {
    text-align: justify;
    text-align-last: center;
    height: 90px;
    overflow: hidden;
}

.carousel-control.right,
.carousel-control.left {
    background: none;
}

.slider-ratio-img {
    width: 100%;
    display: block;
}

.slider-counter {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 999;
    background: rgba(0, 0, 0, 0.65);
    color: #E8D08C;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 700;
    direction: ltr;
}


/* =========================================================
   5) Sound Boxes and Hover Effects
========================================================= */

.sound-box {
    margin-top: 30px;
    background: #1C2B0E;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #3D4A28;
    box-shadow: inset 0 0 9px 0 rgba(0, 0, 0, 0.5);
    transition: background 0.2s ease;
    height: 40px;
    line-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-box:hover {
    background: #253817;
}

.sound-box a {
    color: #F0E6CA;
    font-family: "NeoSansArabicRegular";
}

.sound-box a:hover,
.sound-box a:active,
.sound-box a:focus {
    color: var(--alomran-gold-soft);
}

[class^="hvr-"] {
    margin: 0.4em;
    padding: 10px 20px;
    cursor: pointer;
    background: #e1e1e1;
    text-decoration: none;
    color: #fff;
}

/* Button Hover Fill Effect from Bottom to Top */









/* =========================================================
   6) Gallery Section and Thumbnails
========================================================= */

.gallery-section {
    background: #DDD3B5;
    box-shadow: 0 8px 12px 1px rgba(44, 30, 5, 0.14),
                0 3px 15px 3px rgba(44, 30, 5, 0.12),
                0 4px 5px -3px rgba(44, 30, 5, 0.2);
    margin-top: 15px;
    margin-bottom: 15px;
}

.gallery-item {
    float: right !important;
}

#thumbnails {
    display: block;
}

#thumbnails ul {
    list-style: none;
    margin: 0;
}

.blank-div {
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

#thumbnails .blank-div i {
    font-size: 28px;
    color: #fff;
    position: absolute;
    top: -28px;
    right: 50%;
    margin-top: -14px;
    margin-inline-start: -14px;
    opacity: 0;
    transition: 0.3s;
    width: 1px;
    height: 1px;
}

#thumbnails .blank-div:hover i {
    top: 37%;
    opacity: 1;
}

#thumbnails .blank-div img {
    background-color: rgba(0, 0, 0, 0);
    transition: 0.3s;
}

#thumbnails .blank-div:hover img {
    background-color: rgba(28, 20, 5, 0.6);
}

.img-center img {
    margin: 0 auto;
}

.postImgL3 {
    margin-bottom: 25px !important;
}

#archivesss .blank-div {
    background-size: cover;
    background-position: right;
    overflow: hidden;
    width: 100%;
    height: 180px;
    opacity: 1 !important;
}


/* =========================================================
   7) News Section and Latest Additions Ticker
========================================================= */





.side-heading {
    text-align: right;
    font-size: 19px;
    line-height: 1.4;
}

.news-title {
    min-height: 38px;
    overflow: hidden;
}

.news-title a {
    font-size: 15px !important;
    line-height: 1.6 !important;
    font-weight: 700 !important;
}

.tickercontainer {
    background: #1C2B0E;
}

.tickercontainer ul li a {
    color: #F0E6CA;
}

.tickercontainer ul li a:hover {
    color: var(--alomran-gold-soft);
}

/* Latest Additions Ticker Settings */
#nt-example1 {
    max-width: 620px;
    margin: auto;
}

#nt-example1-container {
    text-align: center;
}

#nt-example1-container i {
    font-size: 14px;
    cursor: pointer;
    display: block;
    max-width: 620px;
    background: #C8B88A;
    margin: 8px auto;
    padding-top: 2px;
    transition: color 0.1s ease-in-out;
}

#nt-example1-container i:first-child {
    margin-top: 0;
}

#nt-example1-container i:last-child {
    margin-bottom: 0;
}

#nt-example1-container i:hover {
    color: var(--alomran-text);
}

#nt-example1 li {
    color: var(--alomran-text);
    background: #F5EDDA;
    overflow: hidden;
    height: 50px;
    line-height: 30px;
    list-style: none;
    font-size: 14px;
    text-align: right;
    border-bottom: 1px dotted var(--alomran-border);
    transition: background 0.2s ease;
}

#nt-example1 li:hover {
    background: #E8D8B0;
}

#nt-example1 li:hover a {
    color: var(--alomran-green-deep);
}

#nt-example1 li a {
    padding: 10px;
    display: block;
}

span.glyphicon {
    top: 4px;
}


/* =========================================================
   8) Footer
========================================================= */

footer {
    background: none;
    padding: 5px 0;
    text-align: center;
}

footer a {
    color: var(--alomran-green-dark);
    transition: ease-in-out 0.1s;
}

footer a:hover,
footer a:active,
footer a:focus {
    color: var(--alomran-brown);
}














/* =========================================================
   9) Utility Classes
========================================================= */

.clearListStyle ul li {
    list-style: none;
}

.setMinHeight {
    min-height: 200px;
}

.setCurvedBorder {
    border-radius: 8px;
}

.setCurvedTop {
    border-radius: 8px 8px 0 0;
}

.setCurvedBottom {
    border-radius: 0 0 8px 8px;
}

.col-xs-1,
.col-xs-2,
.col-xs-3,
.col-xs-4,
.col-xs-5,
.col-xs-6,
.col-xs-7,
.col-xs-8,
.col-xs-9,
.col-xs-10,
.col-xs-11,
.col-xs-12 {
    float: right;
}

/* =========================================================
10) Responsive Layout (Tablet and Desktop)
========================================================= */

@media (min-width: 768px) {
    .col-sm-1,
    .col-sm-2,
    .col-sm-3,
    .col-sm-4,
    .col-sm-5,
    .col-sm-6,
    .col-sm-7,
    .col-sm-8,
    .col-sm-9,
    .col-sm-10,
    .col-sm-11,
    .col-sm-12 {
           float: right;
}

    .navbar {
     border-radius: 0 0 8px 8px;
}

    .navbar-nav > li {
    float: none;
    display: inline-block;
    margin: 0 -2px;
}

    .nav > li > a {
    padding: 16px 8px;
}

    .navbar-nav {
    margin: 0;
    float: none;
    text-align: center;
}

    

    

    

}


@media (min-width: 992px) {
    .col-md-1,
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-5,
    .col-md-6,
    .col-md-7,
    .col-md-8,
    .col-md-9,
    .col-md-10,
    .col-md-11,
    .col-md-12 {
    float: right;
}

    

    .nav > li > a {
    padding: 16px 15px;
}

    .col-md-offset-1 {
    margin-inline-start: 8.33333333%;
    margin-inline-end: 0;
}

#myCarousel {
    padding-inline-start: 0 !important;
}

#myCarousel .carousel-controls {
    display: block;
}

}

@media (min-width: 1200px) {
    .col-lg-1,
    .col-lg-2,
    .col-lg-3,
    .col-lg-4,
    .col-lg-5,
    .col-lg-6,
    .col-lg-7,
    .col-lg-8,
    .col-lg-9,
    .col-lg-10,
    .col-lg-11,
    .col-lg-12 {
    float: right;
}
}

/* =========================================================
11) Inner Pages (Single Posts and Static Pages)
========================================================= */

/* Background and Box Shadow for Inner Pages */
body.single .first-section,
body.page .first-section {
background: rgb(255, 249, 237) !important;
background: linear-gradient(
to bottom,
rgba(255, 249, 237, 1) 0%,
rgba(255, 251, 244, 1) 100%
) !important;
box-shadow:
0 8px 12px 1px rgba(44, 30, 5, 0.35),
0 3px 15px 3px rgba(44, 30, 5, 0.30),
0 4px 5px -3px rgba(44, 30, 5, 0.40) !important;
}

/* Post Views and Related Posts */
.row.post-views-count {
margin-inline-start: 0;
}

body.single .post-views,
body.single .crp_related {
margin: 18px !important;
}

body.single .row.post-views-count,
body.page .row.post-views-count {
margin-inline-start: 0 !important;
}

/* Post Categories */
.post-categories {
list-style: none !important;
margin: 0 !important;
padding: 4px 10px !important;
float: left;
margin-top: -3px !important;
}

.post-categories li {
display: inline-block;
margin-inline-start: 6px;
}

.post-categories a {
display: inline-block;
min-width: 110px;
text-align: center;
box-sizing: border-box;
background: #E8D9AE;
border: 1px solid var(--alomran-border);
border-radius: 4px;
padding: 4px 10px;
color: var(--alomran-green-dark);
font-weight: 700;
font-size: 14px;
text-decoration: none;
}

.post-categories a:hover {
background: var(--alomran-green-dark);
color: var(--alomran-beige-soft);
}

.grecaptcha-badge {
display: none !important;
}

.crp_title {
color: var(--alomran-text);
}

a.crp_link {
font-family: NeoSansArabicRegular;
}

.pgntn-page-pagination-block {
margin: 2% auto;
}

.pgntn-page-pagination-intro,
.pgntn-page-pagination a,
.pgntn-page-pagination .current {
padding: 0.3rem 1.5rem !important;
}



.alomran-nav-search button,
.alomran-nav-search button:focus,
.alomran-nav-search button:hover,
.alomran-nav-search input[type="submit"] {
color: var(--alomran-gold) !important;
}

/* =========================================================
   12) Search Page Fixes
========================================================= */

/* Fix Search Title and Results Position Below the Header */
body.search header {
    display: none !important;
}

body.search .first-section {
    margin-top: 0 !important;
    padding-top: 35px !important;
}

body.search .heading {
    margin-top: 0 !important;
}


/* =========================================================
   13) Navigation Customizations (Alomran Menu)
========================================================= */

/* Remove White Focus Outline from Navigation Items */
a:focus,
button:focus,
a:active,
button:active,
.alomran-navbar a:focus,
.alomran-navbar button:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Standardize Main Navigation Link Colors */
.alomran-nav-menu > .alomran-nav-item > .alomran-nav-link,
.alomran-nav-menu > .alomran-nav-item > .alomran-nav-button {
    color: var(--alomran-green) !important;
    text-decoration: none !important;
}

/* Navigation Item Background on Hover and Focus */
.alomran-nav-link:hover,
.alomran-nav-link:focus,
.alomran-nav-button:hover,
.alomran-nav-button:focus {
    background: rgba(212, 175, 55, 0.28) !important;
}


/* Default Dropdown Menu Link Colors */


/* Dropdown Menu Link Hover Colors */


/* Keep Main Navigation Items Green */
.alomran-nav-menu > .alomran-nav-item > .alomran-nav-link:hover,
.alomran-nav-menu > .alomran-nav-item > .alomran-nav-link:focus,
.alomran-nav-menu > .alomran-nav-item > .alomran-nav-link:active,
.alomran-nav-menu > .alomran-nav-item > .alomran-nav-button:hover,
.alomran-nav-menu > .alomran-nav-item > .alomran-nav-button:focus,
.alomran-nav-menu > .alomran-nav-item > .alomran-nav-button:active,
.alomran-nav-menu > .alomran-nav-item.open > .alomran-nav-link,
.alomran-nav-menu > .alomran-nav-item.active > .alomran-nav-link {
    color: var(--alomran-green) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* =========================================================
   14) Typography Fixes for Lists and Tables
========================================================= */


/* Remove Bold Text from Article Lists and Tables */
body.single .first-section ol li,
body.single .first-section ol li p,
body.single .first-section ul li,
body.single .first-section ul li p,
body.single .first-section table td,
body.single .first-section table td p {
    font-family: "NeoSansArabicRegular" !important;
    font-weight: normal !important;
}

body.single .first-section table th {
    font-family: "NeoSansArabicBold" !important;
    font-weight: 700 !important;
}

/* =========================================================
   15) Mobile Improvements
========================================================= */

@media (max-width: 991px) {
    .carousel-caption p {
        display: none;
    }
}

@media (max-width: 767px) {
/* Mobile Header */
    header {
        max-height: 260px;
    }

    

/* Mobile Slider */
    #myCarousel .item img,
    #myCarousel .blank-div {
        height: 220px;
    }

    #myCarousel .carousel-caption a {
        font-size: 13px;
        line-height: 1.4;
    }

/* Latest Additions Section on Mobile */
    

    .tickercontainer {
        height: auto !important;
        min-height: 48px !important;
        overflow: hidden !important;
        padding: 8px 10px !important;
        box-sizing: border-box !important;
    }

    .tickercontainer ul,
    .tickercontainer ul li {
        height: auto !important;
        line-height: 1.7 !important;
        white-space: nowrap !important;
    }

    .tickercontainer ul li a {
        display: inline-block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        vertical-align: middle !important;
    }

  /* Post Categories Below the Title on Mobile */
    .post-categories {
        float: none !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        margin: 10px auto 0 !important;
        padding: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }

    .post-categories li {
        margin: 0 !important;
    }

    .post-categories a {
        font-size: 14px !important;
        padding: 6px 10px !important;
        line-height: 1.5 !important;
    }

 /* Increase Side Padding for Article Text, Headings, and Lists on Mobile */
    body.single .first-section p,
    body.single .first-section h1,
    body.single .first-section h2,
    body.single .first-section h3,
    body.single .first-section h4,
    body.single .first-section ul,
    body.single .first-section ol {
        padding-inline: 14px !important;
        box-sizing: border-box !important;
    }

    body.single .first-section li {
        padding-inline-start: 0 !important;
        padding-inline-end: 0 !important;
        margin-bottom: 8px !important;
    }

/* Mobile Footer */
    .footer-bottom,
    .footer-bottom .text-left,
    .footer-bottom .text-right {
        text-align: center !important;
    }

    footer {
        padding: 0;
    }

    

    .footer-content p {
        max-width: 80%;
        margin: 10px auto;
        line-height: 1.9;
        font-size: 15px;
        padding-inline-start: 25px;
        padding-inline-end: 25px;
    }

    

    
}

/* Final Ekko Lightbox Controls */
.ekko-lightbox .modal-header {
    position: absolute !important;
    top: 12px !important;
    right: 16px !important;
    left: auto !important;
    z-index: 999999 !important;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.ekko-lightbox .close,
.ekko-lightbox button.close {
    width: 58px !important;
    height: 58px !important;
    line-height: 50px !important;
    font-size: 54px !important;
    color: #fff !important;
    background: rgba(0,0,0,.65) !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    text-shadow: none !important;
    text-align: center !important;
    border: 2px solid rgba(255,255,255,.55) !important;
}

.ekko-lightbox-nav-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 99998 !important;
}

.ekko-lightbox-nav-overlay a {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 80px !important;
    height: 100px !important;
    line-height: 100px !important;
    opacity: 1 !important;
    color: #fff !important;
    text-align: center !important;
    text-decoration: none !important;
}

.ekko-lightbox-nav-overlay a:first-child {
    right: 15px !important;
    left: auto !important;
}

.ekko-lightbox-nav-overlay a:last-child {
    left: 15px !important;
    right: auto !important;
}

.ekko-lightbox-nav-overlay a span {
    display: block !important;
    padding: 0 !important;
    font-size: 72px !important;
    line-height: 100px !important;
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.8) !important;
}

/* Fix initial gallery image size */
.gallery {
    overflow: hidden;
}

.gallery .gallery-item img {
    display: block;
    width: 100% !important;
    height: auto !important;
}

.gallery .gallery-item {
    overflow: hidden;
}


/* ==========================================================
   Search Page Cards
========================================================== */

/* Search Page Heading */

.search-page-heading{
    margin-bottom:18px;
    line-height:1.6;
}

.search-main-title{
    font-size:22px;
    font-weight:700;
    color:var(--alomran-green);
}

.search-sub-title{
    font-size:16px;
    font-weight:500;
    color:#666;
}

/* Smart Search Suggestions */

.search-ai-suggestions{
    margin:18px 0 24px;
    font-size:16px;
    line-height:1.8;
}

.search-ai-suggestions strong{
    color:var(--alomran-green);
    margin-inline-end:8px;
}

.search-ai-suggestions a{
    display:inline-block;
    margin:4px;
    padding:6px 12px;
    border:1px solid var(--alomran-gold);
    border-radius:6px;
    background:var(--alomran-beige);
    color:var(--alomran-green);
    text-decoration:none;
    transition:.25s;
    font-size:16px;
}

.search-ai-suggestions a:hover{
    background:var(--alomran-gold);
    color:#fff;
}

/* Search Results */

.search-results-list{
    margin-top:20px;
}

/* Search Result Card */

.search-result-card{
    display:flex;
    gap:20px;
    align-items:flex-start;
    margin-bottom:22px;
    padding:18px;
    background:var(--alomran-beige);
    border:1px solid var(--alomran-gold);
    border-radius:10px;
    box-shadow:0 2px 8px rgba(44,30,5,.08);
}

/* Result Thumbnail */

.search-result-thumb{
    flex:0 0 170px;
}

.search-result-thumb img{
    width:170px;
    height:120px;
    object-fit:cover;
    border-radius:8px;
    border:1px solid #E5D6A8;
}

/* Result Content */

.search-result-content{
    flex:1;
}

/* Result Title */

.search-result-title{
    font-size:20px;
    font-weight:700;
    line-height:1.6;
    margin:0 0 10px;
}

.search-result-title a{
    color:var(--alomran-green);
    text-decoration:none;
}

.search-result-title a:hover{
    color:var(--alomran-gold);
}

/* Result Meta */

.search-result-meta{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    font-size:15px;
    color:#777;
    margin-bottom:10px;
}

.search-result-meta i{
    color:var(--alomran-gold);
    margin-inline-end:5px;
}

/* Result Excerpt */

.search-result-excerpt,
.search-result-excerpt p,
.search-result-excerpt *{
    font-family:"NeoSansArabic", sans-serif !important;
    font-size:18px !important;
    font-weight:500 !important;
    color:#2b2b2b !important;
    line-height:2 !important;
    text-align:right;
}

.search-result-excerpt{
    max-width:900px;
    margin:18px auto 22px;
}

/* Search Highlight */

.search-highlight,
.search-result-excerpt mark.search-highlight{
    background:#F6E7A8;
    color:var(--alomran-green) !important;
    padding:0 3px;
    border-radius:2px;
}

/* Read More Button */

.search-read-more{
    display:inline-block;
    padding:6px 16px;
    font-size:15px;
    font-weight:600;
    background:var(--alomran-green);
    color:var(--alomran-beige) !important;
    border-radius:6px;
    text-decoration:none !important;
    transition:.25s;
}

.search-read-more:hover{
    background:var(--alomran-gold);
    color:var(--alomran-green) !important;
}

/* Mobile */

@media (max-width:767px){

    .search-main-title{
        font-size:20px;
    }

    .search-sub-title{
        font-size:15px;
    }

    .search-ai-suggestions{
        font-size:15px;
    }

    .search-ai-suggestions a{
        font-size:14px;
        padding:5px 10px;
    }

    .search-result-card{
        display:block;
        padding:15px;
    }

    .search-result-thumb{
        margin-bottom:14px;
    }

    .search-result-thumb,
    .search-result-thumb img{
        width:100%;
        height:auto;
    }

    .search-result-title{
        font-size:18px;
        margin-bottom:8px;
    }

    .search-result-meta{
        font-size:14px;
    }

    .search-result-excerpt,
    .search-result-excerpt p,
    .search-result-excerpt *{
        font-size:16px !important;
        line-height:2 !important;
    }

    .search-read-more{
        font-size:14px;
        padding:6px 14px;
    }

}


/* ==========================================================
    Article Header & Meta
========================================================== */

.heading > i.fa{
    font-size:20px !important;
    line-height:1 !important;
    vertical-align:middle;
}


/* ==========================================================
   16) Share Article Box
   ========================================================== */

.alomran-share-box {
    max-width: 900px;
    margin: 30px auto;
    padding: 16px 20px;
    background: var(--alomran-beige);
    border: 1px solid var(--alomran-gold);
    border-top: 3px solid var(--alomran-gold);
    border-radius: 10px;
    text-align: center;
}

.alomran-share-title {
    color: var(--alomran-green);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}

.alomran-share-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.alomran-share-icons .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 115px;
    padding: 9px 14px;
    background: #ffffff;
    border: 1px solid var(--alomran-gold);
    border-radius: 30px;
    color: var(--alomran-green);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .25s ease,
                border-color .25s ease,
                color .25s ease,
                transform .20s ease,
                box-shadow .25s ease;
}

.share-icon img {
    width: 20px;
    height: 20px;
    display: block;
}

.share-facebook .share-icon img,
.share-telegram .share-icon img {
    width: 22px;
    height: 22px;
}

.share-whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: #ffffff;
}

.share-x:hover {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.share-telegram:hover {
    background: #229ED9;
    border-color: #229ED9;
    color: #ffffff;
}

.share-facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: #ffffff;
}

.share-copy:hover,
.share-print:hover {
    background: var(--alomran-green);
    border-color: var(--alomran-green);
    color: #ffffff;
}

.share-whatsapp:hover,
.share-x:hover,
.share-telegram:hover,
.share-facebook:hover,
.share-copy:hover,
.share-print:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0,0,0,.08);
}

.share-copy.copied {
    background: var(--alomran-green);
    border-color: var(--alomran-green);
    color: #ffffff;
}

.alomran-share-icons button {
    outline: none;
}

@media (max-width:767px) {

 .alomran-share-box {
    max-width: 100%;
    margin: 20px 15px 28px;
    padding: 14px 12px;
}

    .alomran-share-title {
        font-size: 17px;
        margin-bottom: 12px;
    }

    .alomran-share-icons {
        gap: 8px;
    }

.alomran-share-icons .share-btn {
    width: calc(50% - 10px);
    min-width: 0;
    padding: 9px 8px;
    font-size: 14px;
}

    .share-icon img {
        width: 18px;
        height: 18px;
    }
}


/* ==========================================================
   17) Category Archive Grid Fixes
   ========================================================== */

/* منع ضبط النص داخل البطاقات والقوائم حتى لا تتباعد الكلمات */
.search-result-excerpt, .search-result-excerpt p{
    text-align: center !important;
    text-align-last: center !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
}

/* ترتيب بطاقات التصنيفات بشكل منتظم وإزالة الفراغات الكبيرة بين الصفوف */










@media (max-width: 767px) {
    

    

    
}

/* ==========================================================
   18) Mega Menu Final Polish
   ========================================================== */

.alomran-mega-intro{
    padding-bottom:18px;
}

.alomran-mega-intro p{
    line-height:1.55;
    margin:8px 0 10px;
    font-size:18px;
}

.alomran-mega-image{
    margin-top:8px;
    padding:0;
    background:none;
    line-height:0;
}

.alomran-mega-image img{
    display:block;
    width:100%;
    height:auto;
    border-radius:14px;
}

.alomran-mega-image:hover img{
    transform:scale(1.02);
}

@media (max-width:991px){
    .alomran-mega-image img{
        width:100%;
        height:auto;
    }
}


/* ==========================================================
   19) Prevent Dropdown Menu from Closing While Entering Submenu
   ========================================================== */

.alomran-mega-item {
    position: relative;
}

.alomran-mega-item::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 24px;
}

.alomran-mega-item:hover .alomran-mega-menu,
.alomran-mega-item:focus-within .alomran-mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}


/* ==========================================================
   20) Header Width Fix
   ========================================================== */

.alomran-nav-container {
    gap: 18px !important;
}

.alomran-nav-menu {
    gap: 10px !important;
}

.alomran-nav-link,
.alomran-nav-button,
.alomran-login-btn,
.alomran-logout-link {
    padding: 10px 8px !important;
    font-size: 16px !important;
    white-space: nowrap !important;
}

.alomran-nav-search input {
    width: 145px !important;
}

.alomran-logo img {
    max-width: 46px !important;
    height: auto !important;
}

/* ==========================================================
   21) Site-wide Modern Motion (Lightweight)
   ----------------------------------------------------------
   Added for v5: gentle motion without WOW.js or heavy libraries.
   ========================================================== */

.alomran-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
    will-change: opacity, transform;
}

.alomran-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.alomran-reveal-delay-1 { transition-delay: 0.08s; }
.alomran-reveal-delay-2 { transition-delay: 0.16s; }
.alomran-reveal-delay-3 { transition-delay: 0.24s; }

.sound-box,
.gallery-item,
#thumbnails .blank-div,
.uc_post_list_box,
.uc_post_list .uc_post_list_box,
.uc_post_grid .uc_post_grid_item,
.post-box,
.category-post,
.search-result-item,
.first-section img,
.first-section table,
article,
.single-post article,
footer,
.btn,
button,
input[type="submit"],
.alomran-copy-link {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        opacity 0.25s ease;
}

.sound-box:hover,
.gallery-item:hover,
#thumbnails .blank-div:hover,
.uc_post_list_box:hover,
.uc_post_grid .uc_post_grid_item:hover,
.post-box:hover,
.category-post:hover,
.search-result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(44, 30, 5, 0.16);
}

.first-section img,
.gallery img,
#thumbnails img,
.uc_post_list img,
.uc_post_grid img {
    transition: transform 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
}

.gallery a:hover img,
#thumbnails .blank-div:hover img,
.uc_post_list a:hover img,
.uc_post_grid a:hover img,
.first-section a:hover img {
    transform: scale(1.025);
    filter: saturate(1.04) contrast(1.03);
}

.first-section a,
footer a,
.sound-box a,
.uc_post_list a,
.uc_post_grid a {
    transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
.alomran-copy-link:hover {
    transform: translateY(-1px);
}

/* =========================================================
   Enhanced News Section Styles
   ========================================================= */

/* Marquee / Ticker Styles */






@keyframes pulse-label {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}













@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}



/* Modern Carousel Styles */






























/* Carousel Controls */












/* Carousel Indicators */






/* Slide Counter */


/* Progress Bar */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 20;
}



/* Responsive */
@media (max-width: 767px) {
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
}

@media (max-width: 480px) {
    
    
    
    
    
}

@media (prefers-reduced-motion: reduce) {
    .alomran-reveal,
    .alomran-reveal.is-visible,
    .sound-box,
    .gallery-item,
    #thumbnails .blank-div,
    .uc_post_list_box,
    .uc_post_grid .uc_post_grid_item,
    .post-box,
    .category-post,
    .search-result-item,
    .first-section img,
    .first-section table,
    article,
    footer,
    .btn,
    button,
    input[type="submit"],
    .alomran-copy-link,
    .gallery img,
    #thumbnails img,
    .uc_post_list img,
    .uc_post_grid img {
        transition: none !important;
        transform: none !important;
        animation: none !important;
        opacity: 1 !important;
    }
}

/* =========================================================
   Enhanced Homepage Styles
   ========================================================= */

.section-header {
    position: relative;
}

.section-header h2 {
    position: relative;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 40px;
    height: 3px;
    background: #E8D08C;
    border-radius: 2px;
}

/* Audio Card Animation */
.audio-card {
    position: relative;
    overflow: hidden;
}

.audio-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(232,208,140,0.05) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.5s ease;
    pointer-events: none;
}

.audio-card:hover::before {
    transform: scale(1.5);
}

/* Gallery Item Overlay */
.gallery-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28,20,8,0.3);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-carousel-wrapper .item {
        height: 400px !important;
    }
    .hero-carousel-wrapper .carousel-caption {
        padding: 25px 30px 25px !important;
    }
    .hero-carousel-wrapper .carousel-caption h4 {
        font-size: 22px !important;
    }
}

@media (max-width: 767px) {
    .hero-carousel-wrapper .item {
        height: 320px !important;
    }
    .hero-carousel-wrapper .carousel-caption {
        padding: 20px 20px 20px !important;
    }
    .hero-carousel-wrapper .carousel-caption h4 {
        font-size: 18px !important;
    }
    .hero-carousel-wrapper .carousel-caption .slide-excerpt {
        max-width: 100% !important;
        font-size: 13px !important;
    }
    .hero-carousel-wrapper .carousel-control {
        width: 35px !important;
        height: 35px !important;
        opacity: 1 !important;
    }
    .hero-carousel-wrapper .carousel-control .glyphicon-chevron-left,
    .hero-carousel-wrapper .carousel-control .glyphicon-chevron-right {
        font-size: 14px !important;
        line-height: 31px !important;
    }
    .hero-carousel-wrapper .slider-counter {
        right: 20px !important;
        bottom: 15px !important;
        font-size: 12px !important;
        padding: 4px 12px !important;
    }
    .hero-carousel-wrapper .carousel-indicators {
        right: 20px !important;
        bottom: 15px !important;
    }
    .audio-card {
        padding: 15px !important;
    }
    .audio-card .audio-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    .hero-carousel-wrapper .item {
        height: 250px !important;
    }
    .hero-carousel-wrapper .carousel-caption h4 {
        font-size: 15px !important;
    }
    .hero-carousel-wrapper .carousel-caption .slide-meta {
        flex-wrap: wrap;
        gap: 8px !important;
    }
    .hero-carousel-wrapper .carousel-caption .slide-meta span {
        font-size: 11px !important;
    }
    .section-header h2 {
        font-size: 18px !important;
    }
    .section-header .section-badge {
        display: none !important;
    }
    .article-card .article-title {
        font-size: 14px !important;
    }
}

/* Dark Mode Scrollbar (Optional) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1c1408;
}

::-webkit-scrollbar-thumb {
    background: #E8D08C;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4b87a;
}
