/* ==========================================================================
   Saudi Netball - Official Arabic Polish & Interactive Design System
   Font: IBM Plex Sans Arabic & Tajawal
   Palette: Primary Purple (#782693), Warm Gold (#c4b682), Dark (#191919)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Tajawal:wght@300;400;500;700;800;900&display=swap');
@import url('./netball-icons.css');

:root {
    --primary-arabic-font: 'IBM Plex Sans Arabic', 'Tajawal', Arial, Helvetica, sans-serif;
    --netball-purple: #782693;
    --netball-purple-dark: #571c6a;
    --netball-purple-light: #9930bc;
    --netball-gold: #c4b682;
    --netball-gold-dark: #b4a25f;
    --netball-gold-light: #d4caa5;
    --netball-dark: #191919;
}

/* Base Typography */
html, body {
    font-family: var(--primary-arabic-font) !important;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.bt_bb_headline_content,
.bt_bb_headline_superheadline,
.bt_bb_headline_subheadline,
.menuPort,
.btHeaderMenu,
.btText,
p, span, a, input, button, select, textarea,
blockquote, q, cite, .quote-text,
.bt_bb_button_text,
.bt_bb_card_title,
.bt_bb_service_title,
.btBreadCrumbs,
.mainHeader,
.btTextLogo {
    font-family: var(--primary-arabic-font) !important;
}

/* Preserve icon font families */
.fa, .fas, .far, .fab, 
[class^="pe-7s-"], [class*=" pe-7s-"], 
[class^="icon-"], [class*=" icon-"],
[class^="revicon-"], [class*=" revicon-"],
.bt_bb_icon_holder,
[data-ico-fa]:before,
[data-ico-fontawesome]:before,
[data-ico-fontawesome5brands]:before,
[data-ico-essential]:before,
[data-ico-sport]:before,
[data-ico-design]:before,
[data-ico-award]:before,
[data-ico-business]:before,
[data-ico-development]:before,
[data-ico-basketball]:before,
[data-ico-soccer]:before,
[data-ico-icon7stroke]:before {
    font-family: inherit;
}

/* Smooth layout */
html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    overflow-x: hidden;
}

/* ==========================================================================
   1. Official Template Logo Styling
   ========================================================================== */
.btLogoArea .logo {
    display: flex;
    align-items: center;
    line-height: 1;
}

.logo a.btLogoLink {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    height: 84px;
    text-decoration: none;
}

.logo a.btLogoLink img.btMainLogo {
    height: 80px !important;
    max-height: 80px !important;
    width: auto;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btStickyHeaderActive .logo a.btLogoLink {
    height: 48px !important;
}

.btStickyHeaderActive .logo a.btLogoLink img.btMainLogo {
    height: 44px !important;
    max-height: 44px !important;
}

/* ==========================================================================
   2. Header & Navigation Hover & Effect Styling
   ========================================================================== */

/* Top bar widgets */
.topTools .btIconWidget {
    transition: all 0.25s ease;
}

.topTools .btIconWidget:hover,
.topTools .btIconWidget:hover .btIconWidgetText,
.topTools .btIconWidget:hover .btIconWidgetTitle {
    color: var(--netball-gold) !important;
}

.topTools .btIconWidget:hover .btIconWidgetIcon {
    transform: scale(1.15);
    transition: transform 0.25s ease;
}

/* Universal Menu Items - Default State */
.mainHeader .menuPort > nav > ul > li,
.rtl.btMenuHorizontal .menuPort > nav > ul > li,
.btMenuHorizontal .menuPort > nav > ul > li,
.menuPort nav > ul > li {
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

.menuPort nav > ul > li > a {
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

/* Transparent Header Menu (Top of page over dark hero) */
.btTransparentLightHeader:not(.btStickyHeaderActive) .mainHeader {
    color: #ffffff;
}

.btTransparentLightHeader:not(.btStickyHeaderActive) .menuPort nav > ul > li > a {
    color: #ffffff !important;
}

.btTransparentLightHeader:not(.btStickyHeaderActive) .menuPort nav > ul > li > a:hover {
    color: var(--netball-gold) !important;
    text-shadow: 0 0 12px rgba(196, 182, 130, 0.5) !important;
}

/* Active Menu Item in Transparent Header */
.btTransparentLightHeader:not(.btStickyHeaderActive) .menuPort nav > ul > li.current-menu-item,
.btTransparentLightHeader:not(.btStickyHeaderActive) .menuPort nav > ul > li.current-menu-ancestor,
.btTransparentLightHeader:not(.btStickyHeaderActive) .menuPort nav > ul > li.current-menu-item > a,
.btTransparentLightHeader:not(.btStickyHeaderActive) .menuPort nav > ul > li.current-menu-ancestor > a {
    color: var(--netball-gold) !important;
    font-weight: 700;
}

/* Sticky / White Header Menu */
.btStickyHeaderActive .menuPort nav > ul > li > a {
    color: #181818 !important;
}

.btStickyHeaderActive .menuPort nav > ul > li > a:hover {
    color: var(--netball-purple) !important;
    text-shadow: none !important;
}

.btStickyHeaderActive .menuPort nav > ul > li.current-menu-item,
.btStickyHeaderActive .menuPort nav > ul > li.current-menu-ancestor,
.btStickyHeaderActive .menuPort nav > ul > li.current-menu-item > a,
.btStickyHeaderActive .menuPort nav > ul > li.current-menu-ancestor > a {
    color: var(--netball-purple) !important;
    font-weight: 700;
}

/* Overwrite any leftover cyan/blue rules */
.menuPort nav > ul > li.current-menu-item,
.menuPort nav > ul > li.current-menu-ancestor,
.menuPort nav > ul > li.current-menu-item > a,
.menuPort nav > ul > li.current-menu-ancestor > a {
    color: var(--netball-gold) !important;
}

.btStickyHeaderActive .menuPort nav > ul > li.current-menu-item,
.btStickyHeaderActive .menuPort nav > ul > li.current-menu-ancestor,
.btStickyHeaderActive .menuPort nav > ul > li.current-menu-item > a,
.btStickyHeaderActive .menuPort nav > ul > li.current-menu-ancestor > a {
    color: var(--netball-purple) !important;
}

/* Dropdown Sub-menu - 100% Matching Saudi Netball Reference */
.menuPort ul.sub-menu {
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16) !important;
    border: none !important;
    border-left: 4px solid var(--netball-purple) !important;
    background: #ffffff !important;
    padding: 4px 0 !important;
}

.menuPort ul.sub-menu li a {
    transition: background-color 0.2s ease !important;
    color: var(--netball-purple) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    text-align: right !important;
    background: transparent !important;
    box-shadow: none !important;
}

.menuPort ul.sub-menu li a:hover {
    color: var(--netball-purple) !important;
    background-color: #f7eff9 !important;
    padding-right: 20px !important;
    box-shadow: none !important;
}

/* ==========================================================================
   3. Buttons & CTA Hover & Interactive Effects
   ========================================================================== */
.bt_bb_button a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 6px !important;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.bt_bb_button a:hover {
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* Hero "انضمي إلينا" button */
.bt_bb_color_scheme_2.bt_bb_button.bt_bb_style_filled a {
    background-color: #ffffff !important;
    color: #191919 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    border: 2px solid #ffffff !important;
}

.bt_bb_color_scheme_2.bt_bb_button.bt_bb_style_filled a:hover {
    background-color: var(--netball-purple) !important;
    color: #ffffff !important;
    border-color: var(--netball-purple) !important;
    box-shadow: 0 8px 25px rgba(120, 38, 147, 0.45) !important;
}

/* Primary Purple Buttons (اقـــــرأ, اطلع عليهــا, انضمي الآن) */
.bt_bb_color_scheme_4.bt_bb_button.bt_bb_style_filled a,
.bt_bb_button[style*="#782693"].bt_bb_style_filled a {
    background-color: var(--netball-purple) !important;
    color: #ffffff !important;
    border: 2px solid var(--netball-purple) !important;
    box-shadow: 0 4px 15px rgba(120, 38, 147, 0.25) !important;
}

.bt_bb_color_scheme_4.bt_bb_button.bt_bb_style_filled a:hover,
.bt_bb_button[style*="#782693"].bt_bb_style_filled a:hover {
    background-color: var(--netball-purple-dark) !important;
    color: #ffffff !important;
    border-color: var(--netball-purple-dark) !important;
    box-shadow: 0 8px 25px rgba(120, 38, 147, 0.45) !important;
}

/* WhatsApp / Contact Button */
.bt_bb_button a[href*="iwtsp"],
.bt_bb_button a[href*="whatsapp"] {
    background-color: #ffffff !important;
    color: #191919 !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

.bt_bb_button a[href*="iwtsp"]:hover,
.bt_bb_button a[href*="whatsapp"]:hover {
    background-color: #25D366 !important;
    color: #ffffff !important;
    border-color: #25D366 !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4) !important;
}

/* Form Submit Button */
.wpcf7-form .wpcf7-submit,
input[type="submit"].wpcf7-submit {
    background-color: var(--netball-purple) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(120, 38, 147, 0.3) !important;
    border-radius: 6px !important;
    padding: 12px 36px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.35s ease !important;
}

.wpcf7-form .wpcf7-submit:hover,
input[type="submit"].wpcf7-submit:hover {
    background-color: var(--netball-purple-dark) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(120, 38, 147, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   4. Service Cards Hover & Micro-Animations
   ========================================================================== */
.bt_bb_service {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.bt_bb_service .bt_bb_icon_holder {
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.bt_bb_service:hover .bt_bb_icon_holder {
    background-color: var(--netball-purple) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(120, 38, 147, 0.35) !important;
    transform: translateY(-4px) scale(1.06);
}

.bt_bb_service .bt_bb_service_content_title a {
    transition: color 0.25s ease;
}

.bt_bb_service:hover .bt_bb_service_content_title a,
.bt_bb_service .bt_bb_service_content_title a:hover {
    color: var(--netball-purple) !important;
}

/* ==========================================================================
   5. Timetable Cards Hover
   ========================================================================== */
.bt_bb_timetable {
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bt_bb_timetable:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(120, 38, 147, 0.15);
}

.bt_bb_timetable_title_flex {
    background-color: var(--netball-purple) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   6. Accordion Interactive Effects
   ========================================================================== */
.bt_bb_accordion .bt_bb_accordion_item {
    transition: all 0.3s ease;
}

.bt_bb_accordion .bt_bb_accordion_item_title {
    transition: color 0.25s ease, background-color 0.25s ease;
    cursor: pointer;
}

.bt_bb_accordion .bt_bb_accordion_item_title:hover {
    color: var(--netball-purple) !important;
}

.bt_bb_accordion .bt_bb_accordion_item.on .bt_bb_accordion_item_title {
    color: var(--netball-purple) !important;
    font-weight: 700;
}

/* ==========================================================================
   7. Footer Interactive Elements
   ========================================================================== */
.btSiteFooter .bt_bb_icon.bt_bb_style_filled a.bt_bb_icon_holder {
    background-color: var(--netball-purple) !important;
    color: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.btSiteFooter .bt_bb_icon.bt_bb_style_filled:hover a.bt_bb_icon_holder {
    background-color: var(--netball-gold) !important;
    color: #191919 !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 18px rgba(196, 182, 130, 0.45) !important;
}

.bt_bb_custom_menu div ul a {
    transition: color 0.25s ease;
}

.bt_bb_custom_menu div ul a:hover {
    color: var(--netball-gold) !important;
}

/* General Link Hover */
a {
    transition: color 0.25s ease;
}

a:hover {
    color: var(--netball-purple);
}

/* ==========================================================================
   8. Bilingual Language Switcher (EN / عربي) & LTR Support
   ========================================================================== */

/* Language Switcher Badge */
.trp-language-switcher-container a,
.lang-switch-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 14px !important;
    margin-top: -2px;
    border-radius: 20px !important;
    border: 1.5px solid var(--netball-gold) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.5px;
    background: rgba(120, 38, 147, 0.2) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    user-select: none;
}

.trp-language-switcher-container a:hover,
.lang-switch-btn:hover {
    background: var(--netball-gold) !important;
    color: #191919 !important;
    border-color: var(--netball-gold) !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(196, 182, 130, 0.4) !important;
}

/* Sticky Header Language Switcher adjustment */
.btStickyHeaderActive .trp-language-switcher-container a,
.btStickyHeaderActive .lang-switch-btn {
    border-color: var(--netball-purple) !important;
    color: var(--netball-purple) !important;
    background: rgba(120, 38, 147, 0.08) !important;
}

.btStickyHeaderActive .trp-language-switcher-container a:hover,
.btStickyHeaderActive .lang-switch-btn:hover {
    background: var(--netball-purple) !important;
    color: #ffffff !important;
    border-color: var(--netball-purple) !important;
    box-shadow: 0 4px 15px rgba(120, 38, 147, 0.3) !important;
}

/* LTR / English Mode Overrides */
html[dir="ltr"],
html[dir="ltr"] body,
body.site-lang-en {
    direction: ltr !important;
    text-align: left !important;
}

html[dir="ltr"] p:not(.text-center):not([style*="center"]),
html[dir="ltr"] span:not(.text-center):not([style*="center"]),
html[dir="ltr"] h1:not(.text-center):not([style*="center"]),
html[dir="ltr"] h2:not(.text-center):not([style*="center"]),
html[dir="ltr"] h3:not(.text-center):not([style*="center"]),
html[dir="ltr"] h4:not(.text-center):not([style*="center"]),
html[dir="ltr"] h5:not(.text-center):not([style*="center"]),
html[dir="ltr"] h6:not(.text-center):not([style*="center"]),
html[dir="ltr"] .bt_bb_headline_tag,
html[dir="ltr"] .bt_bb_text p {
    text-align: left !important;
}

html[dir="ltr"] .bt_bb_align_right,
html[dir="ltr"] .bt_bb_column.bt_bb_align_right {
    text-align: left !important;
}

html[dir="ltr"] .menuPort {
    float: right !important;
}

html[dir="ltr"] .menuPort nav > ul > li {
    float: left !important;
}

html[dir="ltr"] .menuPort nav > ul > li .sub-menu {
    left: 0 !important;
    right: auto !important;
    text-align: left !important;
}

html[dir="ltr"] .menuPort nav > ul > li .sub-menu li a {
    text-align: left !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

html[dir="ltr"] .menuPort nav > ul > li .sub-menu li:hover > a {
    border-left: 3px solid var(--netball-purple) !important;
    border-right: none !important;
    padding-left: 20px !important;
}

html[dir="ltr"] .topBarInLogoArea .topBarPort {
    flex-direction: row !important;
}

html[dir="ltr"] .topTools {
    text-align: right !important;
}

html[dir="ltr"] .bt_bb_service {
    text-align: left !important;
}

html[dir="ltr"] .bt_bb_service .bt_bb_service_content {
    text-align: left !important;
}

/* ==========================================================================
   9. Form Validation & Interactive Feedback System
   ========================================================================== */
.netball-input-error {
    border-color: #e53e3e !important;
    background-color: rgba(229, 62, 62, 0.05) !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2) !important;
}

.netball-form-error {
    display: block;
    color: #e53e3e;
    font-size: 13px;
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 8px;
    animation: fadeInError 0.25s ease;
}

@keyframes fadeInError {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

.wpcf7-response-output.netball-success-alert {
    background: #f0fdf4 !important;
    border: 1.5px solid #22c55e !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin-top: 24px !important;
    color: #15803d !important;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.15) !important;
    animation: slideUpSuccess 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes slideUpSuccess {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}