/* -------------------------------------- */
/*               Font Face                */
/* -------------------------------------- */
@font-face {
    font-family: "UniSIRWANSSTRegular";
    src:
        url("../fonts/UniSIRWANSSTRegular.eot?#iefix") format("embedded-opentype"),
        url("../fonts/UniSIRWANSSTRegular.woff") format("woff"),
        url("../fonts/UniSIRWANSSTRegular.ttf") format("truetype"),
        url("../fonts/UniSIRWANSSTRegular.svg#UniSIRWANSSTRegular") format("svg");
    font-weight: normal;
    font-style: normal;
}

*,
::before,
::after {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: none;
    transition: all 0.5s ease-in-out;
}

a {
    text-decoration: none;
    outline: 0;
}
a:-webkit-any-link {
    color: -webkit-link;
    cursor: pointer;
    color: var(--color-text);
    transition: var(--transition);
}

a:any-link {
    color: -webkit-link;
    cursor: pointer;
    color: var(--color-text);
    transition: var(--transition);
}

::-webkit-search-cancel-button {
    /* select all "X" buttons in search inputs */
    -webkit-appearance: none; /* hide the default "X" button */
}

/* -------------------------------------- */
/*              Theme Variables           */
/* -------------------------------------- */
:root {
    /* typography */
    --font-UniSIRWAN: "UniSIRWANSSTRegular", sans-serif;
    /* spacing / scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-xxl: 4rem;

    /* radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --width: clamp(320px, 90vw, 1280px);
    --width-video: clamp(320px, 50vw, 1280px);
    --height-video: clamp(320px, 30vw, 1280px);

    /* colors (light) */
    --bg: #e5e9ec;
    --bg-header: #e5e9ec;
    --main-color: #003a5d;
    --main-color-second: #004874;
    --second-color: #e5ca6a;
    --text-color: #343a40;
    --nope-text: #e5e9ec;
    --light-green: #c0c328;
    --dark-red: #b62424;
    --header-bg-color: #fec217;
    --light-orange: #eeb654;
    --white-color: #fff;
    --white-text: #e5e9ec;

    --light-blue: #5694cf;
    --news-title: #e5e9ec24;

    --transition: all 0.5s ease-in-out;
    --box-shadow: 0 16px 10px rgba(141, 141, 141, 0.14);
    --font-size-text: clamp(0.889rem, calc(0.796rem + 0.521vw), 1.167rem);
    --font-size: clamp(0.875rem, calc(0.729rem + 0.729vw), 1.313rem);
    --font-size-large: clamp(2rem, 1.667rem + 1.67vw, 3rem);
    --font-size-title: clamp(1.5rem, calc(1.292rem + 1.042vw), 2.125rem);
    --font-size-title-large: clamp(3rem, 2.667rem + 1.67vw, 4rem);
}
/* -------------------------------------- */
/*               Dark Theme               */
/* -------------------------------------- */
/* dark theme support */
/* e8f5f9
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a2a33;
    --bg-header: #808080;
    --header-bg-color: #38506a;
    --box-shadow: none;
    --white-color: #4a5c6a;
    --white-text: #e5e9ec;

    --main-color: #e8f5f9;
    --text-color: #e8f5f9;
    --dark-red: #1a2a33;
    --light-green: #3d3e2a;
    --news-title: #00000024;

    --surface: #d1dce5;
    --text: #e6eef8;
    --muted: #9aa7b9;
    --border: rgba(255, 255, 255, 0.06);
    --primary: #60a5fa;
    --primary-contrast: #62abdf;
    --accent: #22d3ee;
    --shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
    --glass: rgba(255, 255, 255, 0.03);
  }
}
/* -------------------------------------- */
/*               Dark Mode                */
/* -------------------------------------- */
.darkmode {
    --bg: #1a2a33;
    --bg-header: #808080;
    --header-bg-color: #38506a;
    --box-shadow: none;
    --white-color: #4a5c6a;
    --white-text: #e5e9ec;

    --main-color: #e8f5f9;
    --text-color: #e8f5f9;
    --dark-red: #1a2a33;
    --light-green: #3d3e2a;
    --news-title: #00000024;

    --surface: #d1dce5;
    --text: #e6eef8;
    --muted: #9aa7b9;
    --border: rgba(255, 255, 255, 0.06);
    --primary: #60a5fa;
    --primary-contrast: #62abdf;
    --accent: #22d3ee;
    --shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
    --glass: rgba(255, 255, 255, 0.03);
}

/* HTML elements */
html {
    direction: rtl;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
}

:where(body) {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: var(--font-UniSIRWAN);
    font-feature-settings: normal;
    font-variation-settings: normal;
    color: var(--text);
    background-color: var(--bg);
    position: relative;
    line-height: 2;
    overflow-wrap: break-word;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: minmax(0, 1fr);
    max-width: 100dvw;
    hyphens: auto;
    /* overflow-x: hidden; */
}
/* -------------------------------------- */
/*                  Logo                  */
/* -------------------------------------- */
.site-header {
    display: grid;
    grid-template-columns: 1fr;
    height: 122px;
    justify-items: center;
    background-color: var(--header-bg-color);
    z-index: 6;
}
.main__menu {
    display: grid;
    width: var(--width);
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.header {
    display: grid;
    grid-template-columns: var(--width);
    justify-content: space-between;
    align-content: center;
    height: 129px;
    position: relative;
}
.header__all {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
    position: relative;
}

/* theme switch */
#theme_switch {
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    position: absolute;
    right: 170px;
    top: 30px;
    border-radius: 50%;
}
#theme_switch svg {
    fill: var(--main-color);
}
#theme_switch svg:last-child {
    display: none;
}
.darkmode #theme_switch svg:first-child {
    display: none;
}
.darkmode #theme_switch svg:last-child {
    display: block;
}
/* Row menu / horizontal navigation */
.row-header {
    display: grid;
    grid-template-columns: var(--width);
    justify-content: center;
    box-shadow: var(--box-shadow);
    background-color: var(--white-color);
    z-index: 5;
    position: absolute;
    bottom: -45px;
    z-index: 1;
}
.row-header-center {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    justify-content: space-between;
    align-items: center;
    column-gap: 20px;
}
/* logo */
.logo-header {
    width: 140px;
    height: auto;
    z-index: 3;
    padding: var(--space-xs) 0;
    background-color: var(--white-color);
}
.logo__image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    padding-block-start: 30px;
}
/* english blog link */
.english__blog {
    background-color: #c35328;
    color: #ffedab;
    display: grid;
    align-self: center;
    padding: 10px 25px;
    box-shadow: var(--box-shadow);
}
/* Menu Top */
.header__nav-ul {
    display: grid;
    grid-template-columns: repeat(5, minmax(60px, auto));
    column-gap: 20px;
    justify-items: center;
    justify-content: start;
}
.header__nav-li {
    display: grid;
}

.nav-link {
    position: relative;
    color: var(--color-text);
    transition: var(--transition);
    font-size: 1.3125rem;
    margin-bottom: 10px;
}

.nav-link::after {
    content: "\00a0";
    width: 0;
    height: 2px;
    background-color: var(--dark-red);
    position: absolute;
    bottom: -5px;
    right: 0;
    transform-origin: left;
    overflow: hidden;
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* -------------------------------------- */
/*            Humberger Menu              */
/* -------------------------------------- */
#menu-btn {
    display: flex;
    position: absolute;
    top: -100%;
    right: -100%;
    z-index: 3;
}
.menu-icon {
    visibility: visible;
}

.menu a {
    color: black;
}
.menu-btn {
    display: flex;
}
.menu-icon {
    cursor: pointer;
    display: none;
    justify-content: flex-end;
    align-items: baseline;
    margin: 20px 0;

    position: relative;
    -webkit-user-select: none;
    user-select: none;
}
.navicon {
    background: var(--text-color);
    display: block;
    height: 5px;
    width: 30px;
    position: relative;
    z-index: 3;
}
.navicon:before {
    top: 10px;
}
.navicon:after {
    top: -10px;
}
.navicon:before,
.navicon:after {
    background: var(--text-color);
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    position: absolute;
    transition: all 0.2s ease-out;
}
/* -------------------------------------- */
/*                Close Icon              */
/* -------------------------------------- */
.menu-btn-close {
    display: flex;
    z-index: 4;
}
.menu-icon-close {
    cursor: pointer;
    display: grid;
    justify-content: start;
    align-items: baseline;
    margin: 30px 20px 30px 0;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    z-index: 4;
}
.menu-icon-close .navicon-close {
    background: transparent;
}
.menu-icon-close .navicon-close:before {
    transform: rotate(-45deg);
}
.menu-icon-close .navicon-close:after {
    transform: rotate(45deg);
}
.navicon-close {
    background: #fff;
    display: block;
    height: 5px;
    width: 30px;
    position: relative;
    z-index: 4;
}
.navicon-close:before {
    top: 10px;
}
.navicon-close:after {
    top: 10px;
}
.navicon-close:before,
.navicon-close:after {
    background: var(--header-bg-color);
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    position: absolute;
    transition: all 0.2s ease-out;
}
/* -------------------------------------- */
/*                   Menu                 */
/* -------------------------------------- */
.menu {
    display: none;
    width: var(--width);
    max-height: 0;
    transition: all 0.2s ease-out;
    overflow: hidden;
    background: rgba(240, 201, 2, 0.177);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    grid-template-rows: repeat(5, min-content);

    position: absolute;
    top: 50px;
}

.menu .nav-item {
    display: grid;
    justify-items: center;
    font-size: var(--font-size-text);
    padding: 5px;
    background-color: #ffffff79;
    margin: 5px;
}

.menu .nav-item:hover {
    background-color: #ffd00079;
}

.menu-btn:checked ~ .menu {
    max-height: 100dvh;
    padding: 20px 40px;
    transition: all 0.2s ease-out;
}

.menu-btn:checked ~ .menu-icon .navicon {
    background: transparent;
}
.menu-btn:checked ~ .menu-icon .navicon:before {
    transform: rotate(-45deg);
}
.menu-btn:checked ~ .menu-icon .navicon:after {
    transform: rotate(45deg);
}
.menu-btn:checked ~ .menu-icon .navicon:before,
.menu-btn:checked ~ .menu-icon .navicon:after {
    top: 0;
}

/* Search Top Menu */
.search-humburger {
    display: none;
    justify-self: center;
    margin-inline-end: 20px;
    justify-items: center;
    position: relative;
}
.search-humburger__input {
    padding-right: 0.5rem;
    height: 30px;
    width: 90%;
    background-color: var(--bg-header);
    box-shadow: var(--box-shadow);
}
.search-humburger__button {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 4px;
    cursor: pointer;
}
/* -------------------------------------- */
/*               Close Icon               */
/* -------------------------------------- */
.close-icon {
    position: relative;
    width: 32px;
    right: 20px;
    z-index: 10;
    height: 32px;
    opacity: 0.5;
    cursor: pointer;
    background: none;
}

.close-icon:hover {
    opacity: 1;
}

/* Create the first line of the 'X' */
.close-icon::before,
.close-icon::after {
    position: absolute;
    left: 15px; /* Adjust to center the lines */
    content: " "; /* Essential for pseudo-elements to render */
    height: 33px; /* Length of the lines */
    width: 2px; /* Thickness of the lines */
    background-color: #333;
}

/* Rotate the first line by 45 degrees */
.close-icon::before {
    transform: rotate(45deg);
}

/* Rotate the second line by -45 degrees */
.close-icon::after {
    transform: rotate(-45deg);
}

/* -------------------------------------- */
/*           Search Top Menu              */
/* -------------------------------------- */
.search {
    position: relative;
    align-items: center;
    margin-inline-end: 10px;
}
.search__input {
    padding-right: 0.5rem;
    height: 30px;
    box-shadow: var(--box-shadow);
    background-color: var(--bg-header);
}
.search__input::placeholder {
    color: var(--text-color);
}
.search__button {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 4px;
    cursor: pointer;
}
/* -------------------------------------- */
/*                 Main                   */
/* -------------------------------------- */
main {
    display: grid;
    grid-template-columns: var(--width);
    justify-self: center;
    margin-block-start: 80px;
}

.slide {
    display: grid;
    grid-template-columns: var(--width);
    justify-self: center;
    height: auto;
    box-shadow: var(--box-shadow);
    position: relative;
}
/* Images — responsive utilities and variants */
.slide-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.slide-img__text {
    display: block;
    position: absolute;
    color: white;
    font-size: var(--font-size);
    bottom: -1;
    right: -1;
    width: var(--width);
    padding: 5px 20px 25px 13px;
    -webkit-backdrop-filter: blur(10px) saturate(70%);
    backdrop-filter: blur(10px) saturate(70%);
}

.aspect-16-9 {
    aspect-ratio: 16 / 9;
}
.aspect-4-3 {
    aspect-ratio: 4 / 3;
}
.aspect-1-1 {
    aspect-ratio: 1 / 1;
}

/* lazy-load blur placeholder pattern */
.img-lazy {
    filter: blur(8px) saturate(0.95);
    transform: scale(1.02);
    transition:
        filter 360ms ease,
        transform 360ms ease;
    will-change: filter, transform;
}
.img-lazy[data-loaded="true"] {
    filter: none;
    transform: none;
}
/* -------------------------------------- */
/*                Details                 */
/* -------------------------------------- */
.title {
    font-size: var(--font-size-title);
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}
.details {
    background-image: url(../img/bg-repeat-1.png);
    background-color: var(--light-green);
    display: grid;
    gap: var(--space-lg);
    width: 100%;
    justify-content: center;
    box-shadow: var(--box-shadow);
}
.details__all {
    display: grid;
    width: var(--width);
    justify-content: space-between;
    gap: var(--space-lg);
    padding: 30px 0;
}
.details__all p:hover {
    text-decoration: underline;
    text-decoration-color: var(--text-color);
    text-decoration-thickness: 1px;
    text-underline-offset: 8px;
}
.details__subject {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    justify-content: space-between;
    align-items: center;
}
.details__description {
    font-size: var(--font-size);
    color: var(--text-color);
}
.details__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    box-shadow: var(--box-shadow);
}
.date {
    font-size: var(--font-size);
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    padding-bottom: 10px;
}
/* -------------------------------------- */
/*                 Nope                   */
/* -------------------------------------- */
.title-nope {
    font-size: var(--font-size-title);
    color: var(--nope-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}
.nope {
    display: grid;
    background-image: url(../img/bg-repeat.png);
    background-color: var(--dark-red);
    display: grid;
    gap: var(--space-lg);
    width: 100%;
    justify-content: center;
    box-shadow: var(--box-shadow);
}
.nope__all {
    display: grid;
    width: var(--width);
    justify-content: space-between;
    gap: var(--space-lg);
    padding: 30px 0;
}
.nope__all p:hover {
    text-decoration: underline;
    text-decoration-color: var(--white-color);
    text-decoration-thickness: 1px;
    text-underline-offset: 8px;
}
.nope__subject {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    justify-content: space-between;
    align-items: center;
}
.nope__description {
    font-size: var(--font-size);
    color: var(--nope-text);
}
.nope__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    box-shadow: var(--box-shadow);
    padding: 5px;
}
.hover-img:hover {
    transform: scale(1.03);
    transition: var(--transition);
}

.white {
    color: var(--white-color) !important;
}
.date-nope {
    font-size: var(--font-size);
    font-weight: 700;
    color: var(--nope-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    padding-bottom: 10px;
}
/* -------------------------------------- */
/*                   VS                   */
/* -------------------------------------- */
.vs {
    display: grid;
    grid-template-columns: var(--width);
    justify-self: center;
    margin-block-start: 40px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.vs-image {
    display: grid;
    width: var(--width);
    height: auto;
}
/* -------------------------------------- */
/*               News Card                */
/* -------------------------------------- */
.news-cards {
    display: grid;
    grid-template-columns: var(--width);
    justify-self: center;
    margin-block: 30px;
}
.news-cards__main {
    display: grid;
    grid-template-columns: var(--width);
    justify-self: center;
}
.news-cards__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    justify-content: space-between;
}
/* Card base */
.news-card {
    background: var(--white-color);
    overflow: hidden;
    display: grid;
    box-shadow: var(--box-shadow);
    transition:
        transform 320ms ease,
        box-shadow 320ms ease;
    will-change: transform, box-shadow;
    min-height: 220px;
    color: inherit;
    direction: inherit;
}

/* Hover / focus interaction */
.news-card:hover,
.news-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

/* Media / image area */
.news-card__media {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.03);
    display: block;
}
.news-card__media img,
.news-card__media .slide-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 420ms ease;
}
.news-card:hover .news-card__media img {
    transform: scale(1.03);
}

/* Content area */
.news-card__body {
    padding: calc(var(--space-md) - 0.125rem);
    display: grid;
    gap: 0.5rem;
    align-content: start;
}

/* Title */
.title-card {
    font-size: var(--font-size-title);
    color: var(--main-color);
    display: -webkit-box;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.news-card__title {
    font-size: var(--font-size);
    font-weight: 700;
    color: var(--main-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta row: author / date / category */
.news-card__meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--text-color);
    font-size: var(--font-size);
    opacity: 0.88;
    flex-wrap: wrap;
}

/* meta item separator (works with RTL) */
.news-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--font-size);
}
.news-card__meta span + span::before {
    content: "•";
    opacity: 0.55;
    margin-inline-start: 0.45rem; /* space between item and bullet (RTL aware) */
    margin-inline-end: 0;
    color: currentColor;
}

/* Excerpt */
.news-card__excerpt {
    font-size: var(--font-size);
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tags */
.news-card__tags {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
}

/* CTA / footer row */
.news-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    padding-top: 0.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    margin-top: 0.25rem;
}
.news-card__cta {
    background: var(--second-color);
    color: var(--main-color);
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}
.news-card__cta:hover,
.news-card__cta:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* Featured card modifier */
.news-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: var(--space-md);
    align-items: stretch;
    min-height: 320px;
}
.news-card--featured .news-card__media {
    aspect-ratio: auto;
    height: 100%;
}
.news-card--featured .news-card__body {
    padding: var(--space-md);
}

/* Compact variant */
.news-card--compact {
    grid-template-rows: auto;
    grid-auto-flow: column;
    gap: 0.75rem;
    align-items: center;
}
.news-card--compact .news-card__media {
    width: 120px;
    aspect-ratio: 4/3;
    flex: 0 0 120px;
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .news-card--featured {
        grid-template-columns: 1fr;
        grid-column: auto;
    }
    .news-card--compact {
        grid-auto-flow: row;
    }
}

/* focus styles */
:focus {
    outline: none;
}
:focus-visible {
    outline: 3px solid rgba(in srgb, var(--primary) 40%, transparent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* 6) Links, buttons, inputs */
a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
    border-radius: var(--radius-sm);
}
/* -------------------------------------- */
/*                  Footer                */
/* -------------------------------------- */
footer {
    background-color: var(--header-bg-color);
    display: grid;
    gap: var(--space-lg);
    margin-block-start: var(--space-xxl);
    padding: var(--space-xl) 0;
    width: 100%;
    height: inherit;
    justify-content: center;
    box-shadow: var(--box-shadow);
}
.site-footer {
    display: grid;
    width: var(--width);
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}
/* Nav Footer */
.site-footer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    unicode-bidi: isolate;
    align-items: start;
}
.site-footer__list {
    list-style: none;
    display: grid;
    gap: var(--space-sm);
}
.site-footer__item {
    font-size: var(--font-size);
    color: var(--text-color);
    display: -webkit-box;

    -webkit-box-orient: vertical;
    margin-bottom: 5px;
}
.site-footer__link {
    position: relative;
    color: var(--color-text);
    transition: var(--transition);
    font-size: 1.3125rem;
    margin-bottom: 10px;
}

.site-footer__link::after {
    content: "\00a0";
    width: 0;
    height: 2px;
    background-color: var(--dark-red);
    position: absolute;
    bottom: -5px;
    right: 0;
    transform-origin: left;
    overflow: hidden;
    transition: var(--transition);
}

.site-footer__link:hover::after {
    width: 100%;
}

/* Footer Left */
.site-footer__left {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    align-content: center;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding-right: 20px;
    height: 100%;
}
.back-to-top {
    position: absolute;
    display: block;
    right: 20px;
    bottom: 20px;
    background: var(--light-blue);
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--box-shadow);
}

/* -------------------------------------- */
/*                 about                  */
/* -------------------------------------- */
.about {
    display: grid;
    grid-template-columns: var(--width);
    justify-self: center;
    align-self: start;
    margin-block-start: 80px;
}
.about__pic {
    display: grid;
    grid-template-columns: var(--width);
    height: auto;
    margin-block-end: 30px;
    box-shadow: var(--box-shadow);
}
.about-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.about-p {
    font-size: var(--font-size-text);
    text-align: justify;
    margin-block-end: 15px;
}
.about-p > a {
    text-decoration: underline;
    text-decoration-color: var(--light-blue);
    text-decoration-thickness: 2px;
    text-decoration-skip-ink: none;
    text-underline-offset: 7px;
}
.about-p > a:hover {
    text-underline-offset: 10px;
}
/* -------------------------------------- */
/*               contact                  */
/* -------------------------------------- */
.contact {
    display: grid;
    grid-template-columns: var(--width);
    justify-self: center;
    justify-items: center;
    align-self: start;
    align-items: center;

    margin-block-start: 80px;
}
.contact__h1 {
    font-size: var(--font-size-title);
}

.contact-p {
    font-size: var(--font-size-text);
    text-align: justify;
    margin-block-end: 15px;
}
.form__subscribe {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: space-between;
    align-items: center;
    column-gap: 20px;
}
.form__subscribe-input {
    width: 300px;
    height: 40px;
    padding: 10px;
    margin-block: 20px;
    font-size: var(--font-size-text);
}
.form__subscribe-btn {
    width: 140px;
    height: 40px;
    background-color: var(--header-bg-color);
    font-size: var(--font-size-text);
    padding-block-end: 5px;
}

.form__subscribe-btn:hover {
    background-color: var(--second-color);
    cursor: pointer;
}

.form__subscribe-label {
    font-size: var(--font-size-text);
    color: var(--text-color);
    width: 140px;
}
.form__subscribe-input::placeholder {
    visibility: hidden;
}
.contact__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(265px, 1fr));
    margin-block-start: 80px;
    column-gap: 20px;
}
.contact_item {
    display: grid;
    grid-template-columns: 265px;
    justify-items: center;
    justify-content: center;
    align-content: start;
    padding: 20px;
    background-color: var(--white-color);
}
.material-symbols-outlined {
    font-size: 80px !important;
    color:(--main-color);
}

.contact__p {
    font-size: var(--font-size-text);
    padding: 20px;
}
/* -------------------------------------- */
/*              News Block                */
/* -------------------------------------- */
.news__page {
    display: grid;
    grid-template-columns: var(--width);
    justify-self: center;
}
.news-bg {
    height: 600px;
    display: grid;
    width: 100%;
    justify-self: center;
    background-color: #787878;
    position: absolute;
    filter: blur(5px);
}
.news__block {
    display: grid;
    grid-template-columns: var(--width);
    justify-self: center;
    margin: clamp(1rem, 2.5vw, 4rem);
    z-index: 1;
}

.figure__news {
    display: grid;
    grid-template-columns: var(--width);
    box-shadow: var(--box-shadow);

    align-items: center;
    margin-block: clamp(1rem, 2.5vw, 4rem);
    position: relative;
}
.figure__news--img {
    width: 100%;
    height: auto;
    display: block;
}
.news_title {
    display: inline;
    font-size: var(--font-size-title);
    text-align: justify;
    margin-block-start: 80px;
}
.news_title-span {
    color: var(--text-color);
    padding-block-end: 10px;
    background-color: var(--white-color);
    line-height: 2.4;
}
.figure__news-caption {
    font-size: var(--font-size);
    color: var(--text-color);
    text-align: center;
    padding: 5px 10px 10px 10px;
    position: absolute;
    bottom: 0;
    background-color: #aed1eb6a;
    display: block;
    -webkit-backdrop-filter: blur(6px) brightness(110%) saturate(120%);
    backdrop-filter: blur(6px) brightness(110%) saturate(120%);
}
.news__block-p {
    font-size: var(--font-size-text);
    color: var(--text-color);
    text-align: justify;
    padding: 10px 60px;
    position: relative;
}
.news__block-p > a {
    text-decoration: underline;
    text-decoration-color: var(--light-blue);
    text-decoration-thickness: 2px;
    text-decoration-skip-ink: none;
    text-underline-offset: 7px;
}
.news__block-p > a:hover {
    text-underline-offset: 10px;
}
.news__caption {
    font-size: var(--font-size-title);
    color: var(--text-color);
    text-align: center;
    padding: 40px 10px;
    position: relative;
}
.circle__caption-1 {
    width: 90px;
    height: 90px;
    background-color: var(--header-bg-color);
    border-radius: 50%;
    position: absolute;
    top: 20px;
    left: 26%;
    display: grid;
    justify-self: center;
    z-index: -1;
    filter: opacity(0.5);
}
.circle__caption-2 {
    width: 90px;
    height: 90px;
    background-color: var(--header-bg-color);
    border-radius: 50%;
    position: absolute;
    top: 20px;
    left: 18%;
    display: grid;
    justify-self: center;
    z-index: -1;
    filter: opacity(0.5);
}
.news__video {
    position: relative;
    width: 80%;
    height: auto;
    aspect-ratio: 16/9;
    justify-self: center;
    margin-block: 30px;
    box-shadow: var(--box-shadow);
}
.news__video iframe {
    position: absolute;

    width: 100%;
    height: 100%;
}
.news__sound {
    display: grid;
    justify-self: flex-start;
    margin: 30px 0;
}
.news__map {
    display: grid;
    justify-self: flex-start;
    padding: 5px 10px 10px 10px;
    margin-block: 10px;
    color: var(--bg);
    font-size: var(--font-size);
    border-radius: var(--radius-md);
    align-items: center;
    background-color: var(--light-blue);
    cursor: pointer;
    box-shadow: var(--box-shadow);
}
/* -------------------------------------- */
/*              More Block                */
/* -------------------------------------- */
.more__page {
    display: grid;
    place-content: center;
}
.more_title {
    font-size: var(--font-size-title);
    color: var(--text-color);
    margin-block-start: 80px;
    margin-block-end: 30px;
    padding-block-end: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.more-bg {
    display: grid;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 400px;
    align-items: center;
    justify-items: center;
    background-color: var(--white-color);
}
.more-bg_negative {
    background-image: url(../img/Negative-bg.jpg);
}
.more-bg_positive {
    background-image: url(../img/sky.jpg);
}
.more-bg_project {
    background-image: url(../img/project.jpg);
}
.more-bg_itsNot {
    background-image: url(../img/project.jpg);
}
.more-bg_english {
    background-image: url(../img/Irland.jpg);
}
.more_center-text {
    display: grid;
    width: var(--width);
    margin-block: clamp(1rem, calc(0.5rem + 2.5vw), 2.5rem);
}
.more_header {
    font-size: var(--font-size-title-large);
    color: var(--white-text);
}
.more_h2 {
    font-size: var(--font-size-large);
    color: var(--white-text);
}
/* -------------------------------------- */
/*              Pagination                */
/* -------------------------------------- */
.pagination {
    display: grid;
    grid-template-columns: repeat(10, auto);
    width: clamp(320px, 80vw, 1280px);
    justify-content: center;
    align-content: center;
    justify-items: center;
    gap: 5px;
    margin: var(--space-xxl) 0;
}
.pagination a {
    display: grid;
    place-content: center;
    width: 2vw;
    height: 2vh;
    padding: 15px 20px 20px 20px;
    background-color: var(--text-color);
    color: var(--white-color);
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--box-shadow);
}
.pagination a.active {
    background-color: var(--main-color);
    color: white;
}

.pagination a:hover:not(.active) {
    background-color: lightgray;
}
.pagination::before,
.pagination::after {
    content: "";
    display: inline-block;
    border-top: 1px solid #000;
    width: 10vw;
    vertical-align: middle;
    margin: 0 0.5em;
    align-self: center;
}
/* -------------------------------------- */
/*             News Related               */
/* -------------------------------------- */
.related-news {
    display: grid;
    grid-template-columns: var(--width);
    justify-self: center;
    padding-top: 20px;
}
/* -------------------------------------- */
/*             English Blog               */
/* -------------------------------------- */
.left{
    text-align: left;
    direction: ltr;
}
.news_title-english {
    display: inline;
    font-size: var(--font-size-large);
    text-align: justify;
    margin-block-start: 40px;
}
/* -------------------------------------- */
/*         @Media Screen   960px          */
/* -------------------------------------- */
@media screen and (max-width: 960px) {
    .row-menu {
        display: none;
    }
    .search {
        display: none;
    }
    .site-header {
        height: 100px;
    }
    .header {
        height: 100px;
    }
    .row-header-center {
        grid-template-columns: auto auto;
        justify-content: flex-end;
        gap: 0;
        padding-inline-end: 10px;
    }
    .search-humburger {
        display: grid;
        margin-inline-end: 5px;
    }

    .menu {
        display: grid;
    }
    .menu-icon {
        display: flex;
    }
    .logo-header {
        width: 100px;
    }

    .site-footer {
        grid-template-columns: 1fr;
    }
    .site-footer__left {
        border-right: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: 20px;
    }
    #theme_switch {
        right: 120px;
        top: 20px;
    }
    .news__block-p {
        padding: 10px 20px;
    }
    .pagination::before,
    .pagination::after {
        display: none;
    }
    .search_page {
        grid-template-columns: auto auto auto;
    }
    .search_link {
        grid-template-columns: auto;
    }
    .more-bg {
        height: 250px;
    }
    .more_header {
        font-size: var(--font-size-large);
    }
    .more_h2 {
        font-size: var(--font-size-title);
    }
    .form__subscribe-label {
        display: none;
    }
    .form__subscribe-input::placeholder {
        visibility: visible;
    }
    .form__subscribe {
        grid-template-columns: repeat(2, min-content);
        column-gap: 10px;
    }
    .form__subscribe-input {
        min-width: 220px;
    }
    .form__subscribe-btn {
        max-width: max-content;
        padding-inline: 10px;
    }
}
@media screen and (max-width: 820px) {
    .contact__list {
        grid-template-columns: var(--width);
        row-gap: 10px;
    }
    .contact_item {
        display: grid;
        grid-template-columns: 1fr;
    }
}
@media screen and (max-width: 375px) {
    .form__subscribe-input {
        max-width: 220px;
    }
}


/*add by azad*/
.search-wrapper {
    position: relative;
    width: 100%;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    z-index: 999;
    max-height: 300px;
    overflow-y: auto;
}

.search-item {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
}

.search-item:hover {
    background: #f5f5f5;
}

.search-results {
    position: absolute;
    background: white;
    width: 100%;
    border: 1px solid #ddd;
    z-index: 999;
    max-height: 300px;
    overflow-y: auto;
}

.search-item {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
}

.search-item:hover {
    background: #f3f3f3;
}

/*end add style by azad*/
