/* جائزة التميز — public site. Values mirror the original Elementor build (1140px container, Tajawal). */
:root {
    --navy: #373f7a;
    --navy-dark: #2c2c6c;
    --gold: #e7c271;
    --gold-dark: #c49d42;
    --gold-light: #f1dcad;
    --text: #333333;
    --light: #f9f9f9;
    --lavender: #eff0f8;
    --cream: #fcf6ea;
    --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Tajawal", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: #fff;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: var(--gold-dark); text-decoration: none; transition: color .2s; }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.2; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; }
.col { padding: 10px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.row { display: flex; }
.row > .col { flex: 1 1 50%; }

/* ---------------------------------------------------------------- header */
.site-header { background: #fff; padding: 0 10px; position: relative; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: center; padding: 10px 0; }
.site-header .brand,
.site-header .nav-col { flex: 1 1 50%; padding: 10px; }
.site-header .brand { text-align: center; }
.site-header .brand img { width: 100px; }

.main-nav { display: flex; justify-content: center; flex-wrap: wrap; }
.main-nav .item { position: relative; }
.main-nav .link {
    display: flex; align-items: center; gap: 6px; padding: 8px 15px;
    color: var(--navy-dark); font-weight: 500; font-size: 16px; line-height: 24px;
}
.main-nav .item:hover > .link,
.main-nav .link.active { color: var(--gold-dark); }
.main-nav .link .arrow { font-size: 12px; transition: transform .2s; }
.main-nav .sub {
    position: absolute; top: 100%; right: 0; min-width: 200px; background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08); text-align: right;
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s;
}
.main-nav .item:hover > .sub,
.main-nav .item:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub a { display: block; padding: 5px 10px; color: var(--navy-dark); font-weight: 500; line-height: 24px; }
.main-nav .sub a:hover,
.main-nav .sub a.active { color: var(--gold-dark); }

.nav-toggle {
    display: none; background: none; border: 0; cursor: pointer; color: var(--navy-dark);
    font-size: 22px; padding: 8px 12px; margin: 0 auto;
}

/* ---------------------------------------------------------------- page banner */
.page-banner {
    position: relative; background-size: cover; background-position: center right;
    padding: 80px 0; text-align: center;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: var(--navy); opacity: .85; }
.page-banner .container { position: relative; }
.breadcrumbs { display: flex; justify-content: center; align-items: center; list-style: none; margin: 0; padding: 0; font-size: 18px; line-height: 27px; }
.breadcrumbs li + li::before { content: "|"; color: var(--light); margin: 0 10px; }
.breadcrumbs a { color: var(--light); }
.breadcrumbs .current { color: var(--gold); }
.page-banner h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- sections */
.section { padding: 50px 0; }
.section.bg-white { background: #fff; }
.section.bg-light { background: var(--light); }
.section.bg-lavender { background: var(--lavender); }
.section.bg-cream { background: linear-gradient(90deg, #fdfbf5 0%, var(--cream) 100%); }
.section.bg-navy { background: var(--navy); color: #fff; }

.heading { margin: 0; font-size: 32px; font-weight: 500; line-height: 1.2; }
.heading.center { text-align: center; }
.heading.right { text-align: right; }
.heading .main { display: inline-block; }
.heading .main-inner { display: inline-block; font-size: 30px; font-weight: 700; color: var(--navy); line-height: 36px; }
.heading .line { display: block; margin-top: 8px; line-height: 0; }
.heading .line::after { content: ""; display: inline-block; width: 70px; height: 4px; background: var(--gold); }
.heading-sub { display: inline-flex; flex-direction: column; font-size: 16px; line-height: 16px; margin-bottom: 0; }
.heading-sub::after { content: ""; display: block; height: 16px; }

.rich { font-size: 17px; line-height: 1.5; font-weight: 400; color: var(--text); }
.rich.center { text-align: center; font-size: 18px; font-weight: 500; }
.rich.center span { font-weight: 400; }
.rich ol, .rich ul { margin: 0; padding-right: 40px; padding-left: 0; }
.rich img { height: auto; }
.rich table { max-width: 100%; }
.tracks-table { width: 755px; }

/* content: text with side image */
.content-section .image-wrap { text-align: center; }
.content-section .image-wrap img { display: inline-block; }
.content-section .logos { display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px; gap: 0; }
.content-section .logos div { text-align: center; }
.content-section.image-right .row { flex-direction: row-reverse; }

.marker-wrap { position: relative; display: inline-block; max-width: 100%; }
.marker-wrap .marker {
    position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
    border-radius: 100px; background: var(--gold); transition: background .2s;
}
.marker-wrap .marker:hover { background: var(--light); }

/* data tables (tracks, criteria) */
.data-table {
    margin: 0 auto 30px; border-collapse: collapse; table-layout: fixed; font-size: 14.4px; line-height: 1.5;
    max-width: 100%;
}
.data-table td, .data-table th { padding: 10px; border: 1px solid var(--navy); vertical-align: middle; }
.data-table .tick, .data-table .cross { font-size: 22px; font-weight: 700; display: block; text-align: center; line-height: 30px; }
.data-table .tick { color: #379d13; }
.data-table .cross { color: #ff4500; }
.tracks-table td:first-child { width: 201px; font-size: 18px; }
.tracks-table td { width: 191px; }

/* cards */
.cards-grid { display: flex; gap: 20px; padding: 10px; }
.cards-grid .card {
    flex: 1 1 0; background: #fff; border-radius: 15px; padding: 10px 10px 30px; text-align: center;
    transition: transform .3s, box-shadow .3s;
}
.cards-grid .card:hover { transform: translateY(-5px); box-shadow: 0 0 15px -5px rgba(0, 0, 0, .3); }
.cards-grid .card img { width: 100px; height: 100px; margin-bottom: 6px; }
.cards-grid .card h3 { font-size: 25px; font-weight: 700; color: var(--navy); line-height: 30px; margin: 0 0 16px; }
.cards-grid .card .text { font-size: 17px; line-height: 25.5px; }

/* eligibility */
.fancy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.fancy-list .item {
    display: flex; align-items: center; background: var(--gold); padding: 20px; border-radius: 10px;
    transition: background .3s;
}
.fancy-list .item:hover { background: var(--navy); }
.fancy-list .content { flex: 1; }
.fancy-list .title { display: block; font-size: 18px; font-weight: 600; color: var(--navy); line-height: 27px; transition: color .3s; }
.fancy-list .note { display: block; font-size: 14px; color: #7030a0; line-height: 21px; }
.fancy-list.muted .note { color: #999; }
.fancy-list .item:hover .title, .fancy-list .item:hover .note { color: #fff; }
.fancy-list .icon {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50px; background: #fff; color: #242424;
    display: flex; align-items: center; justify-content: center; font-size: 14px; margin-right: 20px;
}
.rich strong { font-weight: 700; }

.accordion { border-radius: 10px; }
.accordion summary {
    list-style: none; display: flex; align-items: center; gap: 32px; cursor: pointer;
    background: var(--gold); color: var(--navy); padding: 26px; border: 1px solid #d5d8dc; border-radius: 10px;
    font-size: 18px; font-weight: 600; line-height: 27px; transition: background .3s, color .3s;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--navy); color: #fff; }
.accordion[open] summary { border-radius: 10px 10px 0 0; }
.accordion summary .ico-open { display: none; }
.accordion[open] summary .ico-open { display: inline; }
.accordion[open] summary .ico-closed { display: none; }
.accordion .panel { padding: 10px; border: 1px solid #d5d8dc; border-top: 0; display: flex; flex-direction: column; gap: 20px; }

/* steps */
.steps { display: flex; flex-direction: column; gap: 20px; padding: 10px; }
.step {
    display: flex; align-items: center; gap: 15px; border-radius: 15px; padding: 20px 10px 0;
    background: #fffbf4; transition: transform .3s, background .3s;
}
.step:nth-child(even) { background: var(--lavender); }
.step:hover { transform: translateY(-5px); background: linear-gradient(90deg, #e7c271 0%, #f3e0b7 100%); }
.step:nth-child(even):hover { background: linear-gradient(90deg, var(--navy) 0%, #5c66b6 100%); color: #fff; }
.step .icon {
    flex: 0 0 68px; width: 68px; height: 68px; display: inline-flex; align-items: center; justify-content: center;
    color: var(--navy); font-size: 48px; border-radius: 50px; padding: 10px; transition: background .3s;
}
.step:hover .icon { background: var(--light); }
.step .text { font-size: 18px; line-height: 27px; text-align: right; }

/* numbered cards */
.numbered-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 10px; }
.numbered-card {
    position: relative; padding: 40px; border-radius: 15px; background: #fff;
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, .05); transition: transform .3s;
}
.numbered-card:hover { transform: translateY(-5px); }
.numbered-card .badge {
    margin: 0 0 14px; min-width: 40px; height: 30px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center; border-radius: 500px;
    background-image: linear-gradient(145deg, var(--navy) 0%, #98a4ff 100%); color: #fff; font-size: 18px; font-weight: 700;
}
.numbered-card h3 { font-size: 20px; font-weight: 700; color: var(--gold); line-height: 24px; margin: 0 0 20px; }
.numbered-card p { margin: 0 0 24px; }

/* featured (ceremony) */
.featured { position: relative; }
.featured .image { padding: 100px; }
.featured .image .mask {
    -webkit-mask-image: url(../images/mask-shape.svg); mask-image: url(../images/mask-shape.svg);
    -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.featured .image img { width: 100%; display: block; }
.featured .box {
    position: absolute; top: 50%; left: 0; transform: translateY(-50%); max-width: 460px; padding: 40px;
    background: rgba(255, 255, 255, .27); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-radius: 15px; box-shadow: 0 10px 30px -10px rgba(151, 163, 184, .5);
}
.featured .box h3 { font-size: 27px; font-weight: 600; color: var(--navy); line-height: 32.4px; padding-bottom: 15px; }
.featured .box .text { color: var(--text); }

/* tabs */
.tabs-nav { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.tabs-nav button { flex: 0 1 auto; }
.tabs-nav button {
    font: inherit; border: 0; cursor: pointer; background: #f3f3f3; color: var(--navy); font-weight: 500;
    padding: 10px 15px; border-radius: 5px 5px 0 0; display: flex; flex-direction: column; align-items: center;
    line-height: 1.4; position: relative; transition: background .2s, color .2s;
}
.tabs-nav button small { font-size: 14px; }
.tabs-nav button.active { background: var(--gold); color: #fff; }
.tabs-nav button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--navy); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel .data-table { width: 100%; max-width: 1000px; }

/* contact */
.contact-row { display: flex; gap: 0; }
.contact-row > .col { flex: 1 1 50%; }
.contact-form .field { margin-bottom: 20px; }
.contact-form input, .contact-form textarea {
    width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--lavender);
    border: 1px solid #dadbdd; border-radius: 7px; padding: 11px 15px; height: 50px; transition: border-color .2s;
}
.contact-form textarea { height: auto; min-height: 105px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--navy); }
.contact-form .hp { position: absolute; right: -9999px; }
.btn {
    display: inline-block; font: inherit; font-weight: 500; cursor: pointer; border: 0; border-radius: 7px;
    background: var(--navy); color: #fff; padding: 8px 20px; transition: background .2s;
}
.btn:hover { background: var(--gold); color: #fff; }
.alert { padding: 12px 16px; border-radius: 7px; margin-bottom: 20px; }
.alert-success { background: #e8f6ec; color: #1c6b34; }
.alert-error { background: #fdecec; color: #a12a2a; }
.field-error { color: #c0392b; font-size: 14px; margin-top: 4px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.contact-list a {
    display: flex; align-items: center; gap: 15px; padding: 20px; border-radius: 10px; background: var(--lavender);
    color: #c2185b; font-size: 18px; font-weight: 500; letter-spacing: .5px; transition: background .2s;
}
.contact-list a:hover { background: var(--cream); }
.contact-list .icon {
    width: 38px; height: 38px; border-radius: 5px; background: var(--navy); color: var(--light);
    display: inline-flex; align-items: center; justify-content: center; transition: background .2s;
}
.contact-list a:hover .icon { background: var(--gold); }
.contact-list .ltr { direction: ltr; unicode-bidi: isolate; }
.map-embed { padding: 0 10px 50px; }
.map-embed iframe { width: 100%; height: 450px; border: 0; display: block; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--lavender); padding: 50px 10px; }
.site-footer .container { display: flex; align-items: center; }
.site-footer .col { flex: 1 1 50%; align-items: center; text-align: center; }
.site-footer .follow { font-size: 18px; font-weight: 600; line-height: 18px; color: var(--text); }
.socials { display: flex; justify-content: center; gap: 5px; }
.socials a {
    width: 40px; height: 40px; border-radius: 10%; display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px; transition: opacity .2s;
}
.socials a:hover { opacity: .9; color: #fff; }
.socials .facebook { background: #3b5998; }
.socials .twitter { background: #1da1f2; }
.socials .linkedin { background: #0077b5; }
.socials .instagram { background: #e1306c; }
.copyright { background: var(--navy); color: #fff; text-align: center; padding: 10px; line-height: 24px; }

/* ---------------------------------------------------------------- slider */
.hero-slider { padding-bottom: 30px; position: relative; }
.hero-slider .swiper-slide { text-align: center; }
.hero-slider .swiper-slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.hero-slider .swiper-button-prev, .hero-slider .swiper-button-next { color: rgba(237, 237, 237, .9); }
.hero-slider .swiper-button-prev::after, .hero-slider .swiper-button-next::after { font-size: 25px; }
.hero-slider .swiper-pagination { bottom: 6px !important; }
.hero-slider .swiper-pagination-bullet { width: 6px; height: 6px; background: #000; opacity: .2; }
.hero-slider .swiper-pagination-bullet-active { opacity: 1; }

/* ---------------------------------------------------------------- entrance animations */
.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation-duration: .9s; animation-fill-mode: both; }
.reveal.in.fade-up { animation-name: fadeInUp; }
.reveal.in.fade-down { animation-name: fadeInDown; }
.reveal.in.zoom { animation-name: zoomIn; }
.reveal.in.bounce { animation-name: bounceIn; animation-duration: .75s; }
.reveal.in.slide-up { animation-name: slideInUp; }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, -40px, 0); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale3d(.3, .3, .3); } 50% { opacity: 1; } }
@keyframes slideInUp { from { transform: translate3d(0, 100%, 0); visibility: visible; } to { transform: none; } }
@keyframes bounceIn {
    from, 20%, 40%, 60%, 80%, to { animation-timing-function: cubic-bezier(.215, .61, .355, 1); }
    0% { opacity: 0; transform: scale3d(.3, .3, .3); }
    20% { transform: scale3d(1.1, 1.1, 1.1); }
    40% { transform: scale3d(.9, .9, .9); }
    60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
    80% { transform: scale3d(.97, .97, .97); }
    to { opacity: 1; transform: scale3d(1, 1, 1); }
}
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.in { opacity: 1; animation: none !important; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
    .container { max-width: 1024px; padding: 0 10px; }
    .featured .image { padding: 40px; }
    .tabs-nav { flex-wrap: wrap; }
}

@media (max-width: 767px) {
    .site-header .container { flex-wrap: wrap; }
    .site-header .brand, .site-header .nav-col { flex-basis: 100%; }
    .nav-toggle { display: block; }
    .main-nav { display: none; flex-direction: column; text-align: center; }
    .main-nav.open { display: flex; }
    .main-nav .link { justify-content: center; }
    .main-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; text-align: center; background: #fafafa; }
    .main-nav .item.open > .sub { display: block; }
    .main-nav .item.open > .link .arrow { transform: rotate(180deg); }

    .row, .contact-row, .site-footer .container { flex-direction: column; }
    .content-section.image-right .row { flex-direction: column; }
    .cards-grid { flex-direction: column; }
    .numbered-grid { grid-template-columns: 1fr; }
    .heading .main-inner { font-size: 26px; line-height: 32px; }
    .featured .image { padding: 0; }
    .featured .box { position: static; transform: none; max-width: none; margin-top: 20px; }
    .tabs-nav button { flex: 1 1 100%; }
    .data-table-wrap { overflow-x: auto; }
    .tracks-table td:first-child { width: auto; font-size: 15px; }
    .tracks-table td { width: auto; }
    .step { padding: 15px 10px; }
    .step .icon { flex-basis: 48px; width: 48px; height: 48px; font-size: 30px; }
    .step .text { font-size: 16px; }
    .page-banner { padding: 50px 0; }
}
