/*
Theme Name: Orientation Chaouen Child
Theme URI: https://orientationchaouen.ma
Description: Orientation Chaouen Child Theme with comprehensive RTL & Arabic typography support.
Author: Orientation Chaouen
Author URI: https://orientationchaouen.ma
Template: orientation-chaouen
Version: 1.0.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   1. GLOBAL ARABIC TYPOGRAPHY (ALYAMAMA FONT) & LETTER-SPACING FIXES
   ========================================================================== */
html[dir="rtl"],
html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] h1, html[dir="rtl"] .h1,
html[dir="rtl"] h2, html[dir="rtl"] .h2,
html[dir="rtl"] h3, html[dir="rtl"] .h3,
html[dir="rtl"] h4, html[dir="rtl"] .h4,
html[dir="rtl"] h5, html[dir="rtl"] .h5,
html[dir="rtl"] h6, html[dir="rtl"] .h6,
html[dir="rtl"] .ak-menu,
html[dir="rtl"] .ak-menu li a,
html[dir="rtl"] .ak-block,
html[dir="rtl"] .ak-block-header,
html[dir="rtl"] .ak-block-title,
html[dir="rtl"] .ak-block-title a,
html[dir="rtl"] .ak-module,
html[dir="rtl"] .ak-module-title,
html[dir="rtl"] .ak-module-title a,
html[dir="rtl"] .ak-post-title,
html[dir="rtl"] .ak-post-title a,
html[dir="rtl"] .ak-header,
html[dir="rtl"] .ak-footer,
html[dir="rtl"] .ak-badge-icon,
html[dir="rtl"] .ak-badge-icon-text,
html[dir="rtl"] .ak-module-terms,
html[dir="rtl"] .ak-module-terms a,
html[dir="rtl"] .ak-module-meta,
html[dir="rtl"] .ak-module-meta span,
html[dir="rtl"] .ak-module-meta a,
html[dir="rtl"] .ak-breadcrumb,
html[dir="rtl"] .ak-breadcrumb a,
html[dir="rtl"] .ak-pagination,
html[dir="rtl"] .ak-tab-btn,
html[dir="rtl"] .ak-post-content,
html[dir="rtl"] .ak-post-summary,
html[dir="rtl"] .widget,
html[dir="rtl"] .widget-title,
html[dir="rtl"] .elementor-widget,
html[dir="rtl"] .elementor-heading-title,
html[dir="rtl"] .elementor-widget-heading,
html[dir="rtl"] .elementor-widget-text-editor,
html[dir="rtl"] .ak-newsticker-item,
html[dir="rtl"] .ak-newsticker-item a,
html[dir="rtl"] .ak-module-excerpt,
html[dir="rtl"] .entry-title,
html[dir="rtl"] .entry-content,
html[dir="rtl"] p,
html[dir="rtl"] span,
html[dir="rtl"] a,
html[dir="rtl"] li,
html[dir="rtl"] strong,
html[dir="rtl"] b {
    font-family: "Alyamama", serif !important;
    font-optical-sizing: auto;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

.alyamama,
[class*="alyamama-"] {
    font-family: "Alyamama", serif !important;
    font-optical-sizing: auto;
    font-style: normal;
}

/* Ensure cursive connections are preserved everywhere in RTL */
html[dir="rtl"] * {
    letter-spacing: 0px !important;
}

/* Improved line-height for Arabic text */
html[dir="rtl"] body {
    line-height: 1.7;
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] h1, html[dir="rtl"] .h1,
html[dir="rtl"] h2, html[dir="rtl"] .h2,
html[dir="rtl"] h3, html[dir="rtl"] .h3,
html[dir="rtl"] h4, html[dir="rtl"] .h4,
html[dir="rtl"] h5, html[dir="rtl"] .h5,
html[dir="rtl"] h6, html[dir="rtl"] .h6 {
    line-height: 1.45;
}

/* ==========================================================================
   2. DIRECTIONAL ICONS (FLIP ARROWS FOR RTL READING DIRECTION)
   ========================================================================== */

/* Block Header Title Arrow (e.g., >> pointing to the reading flow) */
html[dir="rtl"] .ak-block-header .ak-block-title i.fa-angle-double-right,
html[dir="rtl"] .ak-block-header .ak-block-title i.fa-angle-right,
html[dir="rtl"] .ak-block-header .ak-block-title i.fa-chevron-right,
html[dir="rtl"] .ak-block-header .ak-block-title i.fa-arrow-right,
html[dir="rtl"] .ak-block-header .ak-block-title i.akfi-arrow_right {
    display: inline-block !important;
    transform: scaleX(-1) !important;
    -webkit-transform: scaleX(-1) !important;
    margin-right: 8px !important;
    margin-left: 0 !important;
    vertical-align: middle;
}

/* Pagination next/prev arrows */
html[dir="rtl"] .ak-pagination .next i,
html[dir="rtl"] .ak-pagination .prev i {
    display: inline-block !important;
    transform: scaleX(-1) !important;
    -webkit-transform: scaleX(-1) !important;
}

/* Breadcrumb arrow separators */
html[dir="rtl"] .ak-breadcrumb li:after {
    display: inline-block !important;
    transform: scaleX(-1) !important;
    -webkit-transform: scaleX(-1) !important;
    margin: 0 8px !important;
}

/* Single post navigation next/prev */
html[dir="rtl"] .ak-post-nav .prev-post i,
html[dir="rtl"] .ak-post-nav .next-post i {
    display: inline-block !important;
    transform: scaleX(-1) !important;
    -webkit-transform: scaleX(-1) !important;
}

/* Read more link arrows */
html[dir="rtl"] .ak-read-more i,
html[dir="rtl"] .more-link i {
    display: inline-block !important;
    transform: scaleX(-1) !important;
    -webkit-transform: scaleX(-1) !important;
    margin-right: 6px !important;
    margin-left: 0 !important;
}

/* ==========================================================================
   3. NAVIGATION MENUS & FLYOUT SUBMENUS (100% RTL COMPATIBILITY)
   ========================================================================== */

/* Main Navigation Bar Container */
html[dir="rtl"] .ak-header-main-menu,
html[dir="rtl"] .ak-bar-item.ak-header-main-menu,
html[dir="rtl"] .ak-menu-more-enabled {
    direction: rtl !important;
    text-align: right !important;
    overflow: visible !important;
}

/* Top-Level Menu list & items */
html[dir="rtl"] #menu-main-navigation,
html[dir="rtl"] .ak-header-main-menu > .ak-menu,
html[dir="rtl"] .ak-main-menu {
    direction: rtl !important;
    text-align: right !important;
}

html[dir="rtl"] #menu-main-navigation > li,
html[dir="rtl"] .ak-header-main-menu > .ak-menu > li,
html[dir="rtl"] .ak-menu-wide > li {
    position: relative !important;
    float: right !important;
}

html[dir="rtl"] .ak-header-main-menu > .ak-menu > li > a,
html[dir="rtl"] #menu-main-navigation > li > a {
    font-size: 16px;
    font-weight: 600;
}

/* Dropdown arrow on top-level menu items with children */
html[dir="rtl"] .ak-menu-wide > li > a.sf-with-ul:after,
html[dir="rtl"] .ak-menu-wide > li.menu-item-has-children > a:after,
html[dir="rtl"] #menu-main-navigation > li.menu-item-has-children > a:after {
    margin: 0 6px 0 0 !important;
    display: inline-block;
    vertical-align: middle;
}

/* First-Level Dropdown Submenu: positioned directly underneath its parent item */
html[dir="rtl"] #menu-main-navigation > li > .sub-menu,
html[dir="rtl"] .ak-header-main-menu > .ak-menu > li > .sub-menu,
html[dir="rtl"] .ak-menu-wide > li > .sub-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    min-width: 230px !important;
    text-align: right !important;
    direction: rtl !important;
    margin: 0 !important;
    border-radius: 0 0 6px 6px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    z-index: 999 !important;
}

/* Submenu items */
html[dir="rtl"] .ak-menu-wide .sub-menu > li,
html[dir="rtl"] #menu-main-navigation .sub-menu > li,
html[dir="rtl"] .ak-header-main-menu .sub-menu > li {
    position: relative !important;
    width: 100% !important;
    float: none !important;
    text-align: right !important;
    direction: rtl !important;
}

html[dir="rtl"] .ak-menu-wide .sub-menu > li > a,
html[dir="rtl"] #menu-main-navigation .sub-menu > li > a,
html[dir="rtl"] .ak-header-main-menu .sub-menu > li > a {
    text-align: right !important;
    direction: rtl !important;
    padding: 10px 18px 10px 32px !important;
    display: block !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

html[dir="rtl"] .ak-menu-wide .sub-menu > li > a .ak-icon {
    margin-left: 10px !important;
    margin-right: 0 !important;
}

/* Nested Flyout Submenus (Sub-menu inside Sub-menu: fly out to the LEFT) */
html[dir="rtl"] .ak-menu-wide .sub-menu .sub-menu,
html[dir="rtl"] #menu-main-navigation .sub-menu .sub-menu,
html[dir="rtl"] .ak-header-main-menu .sub-menu .sub-menu {
    position: absolute !important;
    top: 0 !important;
    right: 100% !important;
    left: auto !important;
    min-width: 230px !important;
    margin: 0 !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18) !important;
    z-index: 1000 !important;
}

/* Flyout indicator arrow inside submenus - points LEFT (\f104) */
html[dir="rtl"] .ak-menu-wide .sub-menu > li > a.sf-with-ul:after,
html[dir="rtl"] .ak-menu-wide .sub-menu > li.menu-item-has-children > a:after,
html[dir="rtl"] #menu-main-navigation .sub-menu > li.menu-item-has-children > a:after {
    position: absolute !important;
    left: 12px !important;
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    content: "\f104" !important; /* fa-angle-left */
    font-family: "FontAwesome" !important;
    font-size: 13px !important;
}

/* "More" Toggle Dropdown item on the left edge */
html[dir="rtl"] .ak-menu-more-enabled > ul.ak-menu > li.menu-item-toggle {
    position: relative !important;
}

html[dir="rtl"] .ak-menu-more-enabled > ul.ak-menu > li.menu-item-toggle > ul.sub-menu {
    left: 0 !important;
    right: auto !important;
    top: 100% !important;
}

/* Top bar menu */
html[dir="rtl"] .ak-top-menu > li {
    float: right;
}

html[dir="rtl"] .ak-top-menu > li > a {
    font-size: 13px;
}

/* ==========================================================================
   4. HEADER, SEARCH & BAR ITEMS
   ========================================================================== */

/* Header buttons & date */
html[dir="rtl"] .ak-header-date {
    margin-left: 15px;
    margin-right: 0;
    font-size: 13px;
}

html[dir="rtl"] .ak-header-button {
    margin-left: 10px;
    margin-right: 0;
}

/* Search Modal and Input */
html[dir="rtl"] .ak-header-search .search-form input[type="search"],
html[dir="rtl"] .ak-search-modal .search-form input[type="search"] {
    text-align: right !important;
    direction: rtl !important;
    padding-right: 15px !important;
    padding-left: 45px !important;
}

html[dir="rtl"] .ak-header-search .search-submit,
html[dir="rtl"] .ak-search-modal .search-submit {
    left: 0 !important;
    right: auto !important;
}

/* Dark Mode toggle alignment */
html[dir="rtl"] .ak-dark-mode {
    margin-left: 12px;
    margin-right: 0;
}

/* ==========================================================================
   5. POST MODULES, BADGES & METADATA
   ========================================================================== */

/* Term Badges */
html[dir="rtl"] .ak-module .ak-module-terms.badge > a,
html[dir="rtl"] .ak-module .ak-module-terms.inline_badge > a {
    margin-left: 8px !important;
    margin-right: 0 !important;
    font-weight: 700 !important;
}

/* Badge Circles (ak-badge-icon ak-badge-type-text) */
.ak-badge-icon.ak-badge-type-text,
.ak-badge-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    vertical-align: middle !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    position: relative !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
}

.ak-module-badges a .ak-badge-icon,
.ak-post-badges a .ak-badge-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
}

/* Badge Text - Centered, Harmonious, No Awkward Rotation */
.ak-badge-type-text .ak-badge-icon-text,
.ak-badge-icon .ak-badge-icon-text {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 2px !important;
    transform: none !important;
    -webkit-transform: none !important;
    font-family: "Alyamama", serif !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
    color: #ffffff !important;
    box-sizing: border-box !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Term 42 Specific Badge (مستجدات البكالوريا) */
.ak-badge-icon.term-42 {
    background-color: #7209b7 !important;
}

.ak-badge-icon.term-42 .ak-badge-icon-text {
    font-size: 11px !important;
    font-weight: 800 !important;
}

/* Post Meta info */
html[dir="rtl"] .ak-module-meta > div {
    display: inline-block;
    margin-left: 12px !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .ak-module-meta > div:last-child {
    margin-left: 0 !important;
}

html[dir="rtl"] .ak-module-meta > div .ak-icon {
    margin-left: 5px !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .ak-module-meta .ak-module-author .avatar {
    margin-left: 8px !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .ak-module-meta .ak-module-author .ak-module-author-by {
    margin-left: 4px !important;
    margin-right: 0 !important;
}

/* Category counts in categories widget */
html[dir="rtl"] .ak-block-categories .popular-cat-item .term-count {
    float: left !important;
}

html[dir="rtl"] .ak-block-categories .popular-cat-item a {
    text-align: right !important;
}

/* Social counter widget in sidebar/footer */
html[dir="rtl"] .ak-social-counter .social-item {
    text-align: right;
}

html[dir="rtl"] .ak-social-counter.social-counter-style-2 .social-item a .item-icon {
    margin-left: 10px;
    margin-right: 0;
}

/* ==========================================================================
   6. SLIDERS & TIKER NAVIGATION (100% RTL COMPATIBILITY)
   ========================================================================== */

/* Slider 3 Container */
html[dir="rtl"] .ak-slider-3,
html[dir="rtl"] .ak-slider-nav-style-5,
html[dir="rtl"] .elementor-element-e448675 {
    position: relative !important;
}

/* Slider Controls wrapper */
html[dir="rtl"] .ak-slider-3 .tns-controls,
html[dir="rtl"] .ak-slider-nav-style-5 .tns-controls,
html[dir="rtl"] .elementor-element-e448675 .tns-controls {
    position: static !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

/* Slider Navigation Buttons (Base design: Circular Glassmorphism) */
html[dir="rtl"] .ak-slider-3 .tns-controls button,
html[dir="rtl"] .ak-slider-nav-style-5 .tns-controls button,
html[dir="rtl"] .elementor-element-e448675 .tns-controls button {
    pointer-events: auto !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    z-index: 99 !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.85 !important;
    transition: all 0.25s ease-in-out !important;
    padding: 0 !important;
}

html[dir="rtl"] .ak-slider-3 .tns-controls button:hover,
html[dir="rtl"] .ak-slider-nav-style-5 .tns-controls button:hover,
html[dir="rtl"] .elementor-element-e448675 .tns-controls button:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    border-color: #ffffff !important;
    transform: translateY(-50%) scale(1.08) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
}

/* 1. RIGHT ARROW: Previous in RTL (points right, placed on the RIGHT edge) */
html[dir="rtl"] .ak-slider-3 .tns-controls button[data-controls="prev"],
html[dir="rtl"] .ak-slider-nav-style-5 .tns-controls button[data-controls="prev"],
html[dir="rtl"] .elementor-element-e448675 .tns-controls button[data-controls="prev"] {
    right: 20px !important;
    left: auto !important;
}

/* 2. LEFT ARROW: Next in RTL (points left, placed on the LEFT edge) */
html[dir="rtl"] .ak-slider-3 .tns-controls button[data-controls="next"],
html[dir="rtl"] .ak-slider-nav-style-5 .tns-controls button[data-controls="next"],
html[dir="rtl"] .elementor-element-e448675 .tns-controls button[data-controls="next"] {
    left: 20px !important;
    right: auto !important;
}

/* Arrow Icons Styling and Explicit Directions */
html[dir="rtl"] .ak-slider-3 .tns-controls button i,
html[dir="rtl"] .ak-slider-nav-style-5 .tns-controls button i,
html[dir="rtl"] .elementor-element-e448675 .tns-controls button i {
    font-size: 24px !important;
    line-height: 1 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Right button icon points to the RIGHT (angle-right) */
html[dir="rtl"] .ak-slider-3 .tns-controls button[data-controls="prev"] i:before,
html[dir="rtl"] .ak-slider-nav-style-5 .tns-controls button[data-controls="prev"] i:before,
html[dir="rtl"] .elementor-element-e448675 .tns-controls button[data-controls="prev"] i:before {
    content: "\f105" !important; /* fa-angle-right */
}

/* Left button icon points to the LEFT (angle-left) */
html[dir="rtl"] .ak-slider-3 .tns-controls button[data-controls="next"] i:before,
html[dir="rtl"] .ak-slider-nav-style-5 .tns-controls button[data-controls="next"] i:before,
html[dir="rtl"] .elementor-element-e448675 .tns-controls button[data-controls="next"] i:before {
    content: "\f104" !important; /* fa-angle-left */
}

@media (max-width: 768px) {
    html[dir="rtl"] .ak-slider-3 .tns-controls button,
    html[dir="rtl"] .ak-slider-nav-style-5 .tns-controls button,
    html[dir="rtl"] .elementor-element-e448675 .tns-controls button {
        width: 38px !important;
        height: 38px !important;
    }
    html[dir="rtl"] .ak-slider-3 .tns-controls button[data-controls="prev"],
    html[dir="rtl"] .ak-slider-nav-style-5 .tns-controls button[data-controls="prev"],
    html[dir="rtl"] .elementor-element-e448675 .tns-controls button[data-controls="prev"] {
        right: 10px !important;
    }
    html[dir="rtl"] .ak-slider-3 .tns-controls button[data-controls="next"],
    html[dir="rtl"] .ak-slider-nav-style-5 .tns-controls button[data-controls="next"],
    html[dir="rtl"] .elementor-element-e448675 .tns-controls button[data-controls="next"] {
        left: 10px !important;
    }
}

/* Newsticker block header */
html[dir="rtl"] .ak-block-newsticker .ak-block-title {
    float: right !important;
    margin-left: 15px !important;
    margin-right: 0 !important;
}

/* Top Header Newsticker (عاجل) Arrows Direction Fix */
html[dir="rtl"] .ak-block-newsticker .tns-controls {
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    top: 0 !important;
    direction: ltr !important;
    display: flex !important;
}

html[dir="rtl"] .ak-block-newsticker .tns-controls button {
    border: 0 !important;
    border-left: 1px solid var(--ak-border-color) !important;
    cursor: pointer !important;
}

html[dir="rtl"] .ak-block-newsticker .tns-controls button[data-controls="prev"] i:before {
    content: "\f104" !important; /* fa-angle-left */
}

html[dir="rtl"] .ak-block-newsticker .tns-controls button[data-controls="next"] i:before {
    content: "\f105" !important; /* fa-angle-right */
}

/* Numbered Slider (1 to 17) RTL Alignment: Numbers start from 1 on the RIGHT to 17 on the LEFT */
html[dir="rtl"] .ak-slider-dots-style-4 .tns-nav,
html[dir="rtl"] .ak-slider-dots-style-5 .tns-nav,
html[dir="rtl"] .ak-slider-3 .tns-nav,
html[dir="rtl"] .elementor-element-e448675 .tns-nav {
    direction: rtl !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    text-align: right !important;
    padding: 4px 6px !important;
}

html[dir="rtl"] .ak-slider-dots-style-4 .tns-nav::-webkit-scrollbar,
html[dir="rtl"] .ak-slider-dots-style-5 .tns-nav::-webkit-scrollbar,
html[dir="rtl"] .elementor-element-e448675 .tns-nav::-webkit-scrollbar {
    display: none !important;
}

html[dir="rtl"] .ak-slider-dots-style-4 .tns-nav button,
html[dir="rtl"] .ak-slider-dots-style-5 .tns-nav button,
html[dir="rtl"] .ak-slider-3 .tns-nav button,
html[dir="rtl"] .elementor-element-e448675 .tns-nav button {
    flex-shrink: 0 !important;
    min-width: 34px !important;
    width: 34px !important;
    height: 34px !important;
    text-align: center !important;
    padding: 3px !important;
    margin: 6px 4px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 28px !important;
    border-radius: 4px !important;
    transition: all 0.25s ease !important;
}


/* ==========================================================================
   7. OFF-CANVAS MOBILE DRAWER & POPUPS
   ========================================================================== */
html[dir="rtl"] .ak-off-canvas-nav {
    right: 0 !important;
    left: auto !important;
    text-align: right !important;
}

/* Off-canvas drawer logo */
.ak-off-canvas-nav .ak-header-logo {
    text-align: center !important;
    margin: 15px auto 25px !important;
    padding: 0 !important;
    display: block !important;
}

.ak-off-canvas-nav .ak-header-logo .site-logo {
    max-width: 175px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: inline-block !important;
}

html[dir="rtl"] .ak-off-canvas-nav .ak-menu li > a .ak-icon {
    margin-left: 12px !important;
    margin-right: 0 !important;
}

/* Off-canvas menu dropdown arrow icons: positioned on the LEFT and pointing towards the LEFT (\f104) */
html[dir="rtl"] .ak-off-canvas-nav .ak-menu li.menu-item-has-children > a:after,
html[dir="rtl"] .ak-off-canvas-nav .ak-menu li > a.sf-with-ul:after,
html[dir="rtl"] .ak-off-canvas-wrap .ak-mobile-menu li.menu-item-has-children > a:after,
html[dir="rtl"] .ak-off-canvas-wrap .ak-mobile-menu li > a.sf-with-ul:after,
html[dir="rtl"] .ak-off-canvas-wrap .ak-top-menu li.menu-item-has-children > a:after,
html[dir="rtl"] .ak-off-canvas-wrap .ak-top-menu li > a.sf-with-ul:after {
    position: absolute !important;
    left: 20px !important;
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    content: "\f104" !important; /* fa-angle-left pointing left */
    font-family: "FontAwesome" !important;
    font-size: 15px !important;
    color: #a0a0a0 !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
}

/* When menu item is open/expanded */
html[dir="rtl"] .ak-off-canvas-nav .ak-menu li.menu-item-has-children.menu-entered > a:after,
html[dir="rtl"] .ak-off-canvas-nav .ak-menu li.menu-item-has-children.active > a:after,
html[dir="rtl"] .ak-off-canvas-wrap .ak-mobile-menu li.menu-item-has-children.menu-entered > a:after,
html[dir="rtl"] .ak-off-canvas-wrap .ak-mobile-menu li.menu-item-has-children.active > a:after {
    transform: translateY(-50%) rotate(-90deg) !important;
    color: var(--ak-highlight-color, #1e73be) !important;
}

/* Close button for off-canvas drawer */
html[dir="rtl"] .ak-off-canvas-close {
    left: 20px !important;
    right: auto !important;
}

/* ==========================================================================
   DESKTOP SLIDER NEWS TITLES & BADGES (Centered, line-height: 2em, font-size: 19px)
   ========================================================================== */
@media (min-width: 992px) {
    .ak-module.ak-module-grid-big .ak-module-title,
    .ak-slider-item.ak-module-grid-big .ak-module-title,
    .ak-module-grid-big .ak-module-title {
        font-size: 19px !important;
        line-height: 2em !important;
        text-align: center !important;
    }

    .ak-module.ak-module-grid-big .ak-module-title a,
    .ak-slider-item.ak-module-grid-big .ak-module-title a,
    .ak-module-grid-big .ak-module-title a {
        text-align: center !important;
        display: block !important;
    }

    /* Center category badges */
    .ak-module.ak-module-grid-big .ak-module-terms,
    .ak-slider-item.ak-module-grid-big .ak-module-terms,
    .ak-module-grid-big .ak-module-terms {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 8px !important;
    }

    .ak-module.ak-module-grid-big .ak-module-terms a,
    .ak-slider-item.ak-module-grid-big .ak-module-terms a,
    .ak-module-grid-big .ak-module-terms a {
        display: inline-block !important;
        text-align: center !important;
    }

    .ak-module.ak-module-grid-big .ak-module-details,
    .ak-slider-item.ak-module-grid-big .ak-module-details,
    .ak-module-grid-big .ak-module-details {
        text-align: center !important;
    }

    .ak-module.ak-module-grid-big .ak-module-meta,
    .ak-slider-item.ak-module-grid-big .ak-module-meta,
    .ak-module-grid-big .ak-module-meta {
        display: flex !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

/* Account Modal */
html[dir="rtl"] .ak-account-modal,
html[dir="rtl"] .ak-user-modal {
    text-align: right !important;
    direction: rtl !important;
}

html[dir="rtl"] .ak-account-modal .form-control,
html[dir="rtl"] .ak-user-modal .form-control {
    text-align: right !important;
}

/* ==========================================================================
   8. FOOTER ALIGNMENTS
   ========================================================================== */
html[dir="rtl"] .ak-footer-wrap .ak-bar-item {
    text-align: right;
}

html[dir="rtl"] .ak-footer-menu {
    text-align: left;
}

html[dir="rtl"] .ak-footer-menu > li {
    float: right;
    margin-left: 15px;
    margin-right: 0;
}

@media (max-width: 768px) {
    html[dir="rtl"] .ak-footer-wrap .ak-bar-item,
    html[dir="rtl"] .ak-footer-menu {
        text-align: center !important;
    }
}

/* ==========================================================================
   9. REMOVE MYCRED LOYALTY WIDGET BADGE & ALL RELATED ELEMENTS
   ========================================================================== */
#mycred-loyalty-widget-root,
#mycred-loyalty-widget,
.mycred-loyalty-widget-root,
.mycred-loyalty-widget-badge,
div[id*="mycred-loyalty"],
div[class*="mycred-loyalty"],
iframe[id*="mycred-loyalty"],
div[id^="mycred-loyalty-widget"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    clip: rect(0, 0, 0, 0) !important;
    z-index: -9999 !important;
}

/* ==========================================================================
   10. GLOBAL LINK HOVER UNDERLINE COLOR (#1e73be)
   ========================================================================== */
a:hover,
.ak-module .ak-module-title a:hover,
.ak-module:not(.ak-module-grid) .ak-module-title a:hover,
.ak-post-title a:hover,
.entry-title a:hover,
.item-title a:hover,
.ak-block a:hover,
.widget a:hover,
.ak-menu a:hover,
.ak-block-header a:hover,
.ak-read-more a:hover,
.more-link a:hover {
    -webkit-text-decoration-color: #1e73be !important;
    -moz-text-decoration-color: #1e73be !important;
    text-decoration-color: #1e73be !important;
}

/* ==========================================================================
   11. CONTACT US PAGE (اتصل بنا) STYLING
   ========================================================================== */
.ak-contact-page-wrapper {
    direction: rtl;
    text-align: right;
    margin: 10px 0 40px;
    font-family: "Alyamama", serif;
}

.ak-contact-intro-box {
    background: linear-gradient(135deg, rgba(30, 115, 190, 0.08) 0%, rgba(30, 115, 190, 0.02) 100%);
    border-right: 4px solid #1e73be;
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 35px;
}

.ak-contact-intro-box h2 {
    font-size: 26px;
    font-weight: 800;
    color: #1e73be;
    margin: 0 0 10px;
    line-height: 1.4;
}

.ak-contact-intro-box p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ak-text-color, #444);
    margin: 0;
}

/* Contact Cards Grid */
.ak-contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.ak-contact-card {
    background: var(--ak-box-bg-color, #ffffff);
    border: 1px solid var(--ak-border-color, #e5e5e5);
    border-radius: 10px;
    padding: 22px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.ak-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(30, 115, 190, 0.12);
    border-color: #1e73be;
}

.ak-contact-card .card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: rgba(30, 115, 190, 0.1);
    color: #1e73be;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.ak-contact-card .card-content h4 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--ak-heading-color, #222);
}

.ak-contact-card .card-content p {
    font-size: 14px;
    margin: 0 0 4px;
    line-height: 1.6;
    color: var(--ak-text-color, #555);
}

.ak-contact-card .card-content p a {
    color: #1e73be;
    text-decoration: none;
    font-weight: 600;
}

.ak-contact-card .card-content .subtext {
    font-size: 12px;
    color: var(--ak-meta-text-color, #888);
    display: block;
}

/* Contact Form Section */
.ak-contact-form-section {
    background: var(--ak-box-bg-color, #ffffff);
    border: 1px solid var(--ak-border-color, #e5e5e5);
    border-radius: 12px;
    padding: 35px 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.ak-contact-form-section .form-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--ak-heading-color, #222);
    margin: 0 0 8px;
}

.ak-contact-form-section .form-header h3 i {
    color: #1e73be;
    margin-left: 8px;
}

.ak-contact-form-section .form-header p {
    font-size: 15px;
    color: var(--ak-meta-text-color, #666);
    margin: 0 0 25px;
}

.ak-modern-contact-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.ak-modern-contact-form .form-group {
    margin-bottom: 18px;
}

.ak-modern-contact-form .form-group.col-half {
    flex: 1 1 calc(50% - 10px);
    min-width: 250px;
    margin-bottom: 0;
}

.ak-modern-contact-form label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ak-heading-color, #333);
}

.ak-modern-contact-form label .required {
    color: #e63946;
}

.ak-modern-contact-form input[type="text"],
.ak-modern-contact-form input[type="email"],
.ak-modern-contact-form input[type="tel"],
.ak-modern-contact-form select,
.ak-modern-contact-form textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid var(--ak-border-color, #ddd) !important;
    border-radius: 8px !important;
    background: var(--ak-bg-color, #fafafa) !important;
    font-family: "Alyamama", serif !important;
    font-size: 15px !important;
    color: var(--ak-text-color, #333) !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: all 0.25s ease !important;
    line-height: 1.6 !important;
}

.ak-modern-contact-form input:focus,
.ak-modern-contact-form select:focus,
.ak-modern-contact-form textarea:focus {
    border-color: #1e73be !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.15) !important;
}

.ak-modern-contact-form .form-submit-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.ak-btn-submit {
    background: #1e73be !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 13px 32px !important;
    font-family: "Alyamama", serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(30, 115, 190, 0.3) !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.ak-btn-submit:hover {
    background: #165c99 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(30, 115, 190, 0.4) !important;
}

.ak-modern-contact-form .form-spinner {
    font-size: 14px;
    color: #1e73be;
    font-weight: 600;
}

.contact-feedback {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
}

.contact-feedback.success {
    background: rgba(42, 157, 143, 0.12);
    border: 1px solid #2a9d8f;
    color: #1b635a;
}

.contact-feedback.error {
    background: rgba(230, 57, 70, 0.12);
    border: 1px solid #e63946;
    color: #b7094c;
}

/* FAQ Section */
.ak-contact-faq-section {
    background: var(--ak-box-bg-color, #ffffff);
    border: 1px solid var(--ak-border-color, #e5e5e5);
    border-radius: 12px;
    padding: 30px;
}

.ak-contact-faq-section h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 20px;
    color: var(--ak-heading-color, #222);
}

.ak-contact-faq-section h3 i {
    color: #1e73be;
    margin-left: 8px;
}

.ak-contact-faq-section .faq-item {
    border-bottom: 1px solid var(--ak-border-color, #eee);
    padding: 16px 0;
}

.ak-contact-faq-section .faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ak-contact-faq-section .faq-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1e73be;
    margin: 0 0 6px;
}

.ak-contact-faq-section .faq-item p {
    font-size: 14.5px;
    line-height: 1.7;
    margin: 0;
    color: var(--ak-text-color, #555);
}

/* ==========================================================================
   8. QUICK PORTALS WIDGET & ORIENTATION PROMO BANNERS
   ========================================================================== */
.ak-quick-portals-widget {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-portal-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.quick-portal-item:hover {
    transform: translateY(-2px);
    border-color: #1e73be;
    box-shadow: 0 6px 15px rgba(30, 115, 190, 0.12);
}

.quick-portal-item.highlight {
    background: linear-gradient(135deg, rgba(30, 115, 190, 0.05), rgba(74, 144, 226, 0.1));
    border-color: #1e73be;
}

.quick-portal-item .q-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
    flex-shrink: 0;
    margin-left: 12px;
}

.quick-portal-item .icon-massar { background: linear-gradient(135deg, #1e73be, #00508a); }
.quick-portal-item .icon-minhaty { background: linear-gradient(135deg, #2a9d8f, #1b635a); }
.quick-portal-item .icon-ofppt { background: linear-gradient(135deg, #e76f51, #c44525); }
.quick-portal-item .icon-calc { background: linear-gradient(135deg, #7209b7, #480ca8); }
.quick-portal-item .icon-agenda { background: linear-gradient(135deg, #f77f00, #d62828); }

.quick-portal-item .q-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.quick-portal-item .q-text strong {
    font-size: 14.5px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.4;
}

.quick-portal-item .q-text span {
    font-size: 12px;
    color: #718096;
    line-height: 1.4;
    margin-top: 2px;
}

.quick-portal-item .q-arrow {
    color: #a0aec0;
    font-size: 16px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.quick-portal-item:hover .q-arrow {
    color: #1e73be;
    transform: translateX(-4px);
}

/* Orientation Promo Banners */
.ak-orientation-promo-banner {
    border-radius: 12px;
    padding: 24px 20px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.ak-orientation-promo-banner.banner-calc {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.ak-orientation-promo-banner.banner-agenda {
    background: linear-gradient(135deg, #701a75, #c026d3);
}

.ak-orientation-promo-banner .promo-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 10px;
}

.ak-orientation-promo-banner h4 {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.ak-orientation-promo-banner p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.ak-orientation-promo-banner .promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #1a202c !important;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.ak-orientation-promo-banner .promo-btn:hover {
    transform: translateY(-2px);
    background: #f8fafc;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* ==========================================================================
   9. INTERACTIVE SEUILS CALCULATOR & CONCOURS AGENDA
   ========================================================================== */
.seuils-calculator-container,
.agenda-concours-container,
.ak-about-page-wrap,
.ak-legal-page-wrap {
    font-family: "Alyamama", serif;
    direction: rtl;
    text-align: right;
    margin: 20px 0 40px;
}

.calc-header-intro,
.agenda-header-intro {
    background: linear-gradient(135deg, #1e73be, #00508a);
    color: #ffffff;
    padding: 35px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(30, 115, 190, 0.2);
}

.calc-header-intro h2,
.agenda-header-intro h2 {
    color: #ffffff !important;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px;
}

.calc-header-intro p,
.agenda-header-intro p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.calc-box-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 35px;
}

.calc-row {
    margin-bottom: 20px;
}

.calc-row.dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 767px) {
    .calc-row.dual {
        grid-template-columns: 1fr;
    }
}

.calc-group label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.calc-group label i {
    color: #1e73be;
    margin-left: 6px;
}

.calc-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #cbd5e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: "Alyamama", serif;
    background: #f8fafc;
    box-sizing: border-box;
    transition: all 0.25s ease;
    outline: none;
}

.calc-control:focus {
    border-color: #1e73be;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.15);
}

.calc-result-summary {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #cbd5e0;
}

.score-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(30, 115, 190, 0.08), rgba(42, 157, 143, 0.12));
    border: 2px solid #1e73be;
    border-radius: 12px;
    padding: 18px 24px;
}

.score-card .score-label {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
}

.score-card .score-val {
    font-size: 32px;
    font-weight: 900;
    color: #1e73be;
}

.score-card .score-unit {
    font-size: 18px;
    font-weight: 700;
    color: #718096;
}

.results-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.results-header-bar h3 {
    font-size: 20px;
    font-weight: 800;
    color: #1a202c;
    margin: 0;
}

.results-legend {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.legend-badge,
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
}

.badge-high {
    background: rgba(42, 157, 143, 0.12);
    color: #1b635a;
    border: 1px solid #2a9d8f;
}

.badge-medium {
    background: rgba(247, 127, 0, 0.12);
    color: #a45300;
    border: 1px solid #f77f00;
}

.badge-low {
    background: rgba(230, 57, 70, 0.12);
    color: #a01a24;
    border: 1px solid #e63946;
}

.badge-upcoming {
    background: rgba(30, 115, 190, 0.12);
    color: #1e73be;
    border: 1px solid #1e73be;
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.school-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.school-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.school-card.badge-high { border-top: 4px solid #2a9d8f; }
.school-card.badge-medium { border-top: 4px solid #f77f00; }
.school-card.badge-low { border-top: 4px solid #cbd5e0; opacity: 0.85; }

.school-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.school-abbr {
    font-size: 13px;
    font-weight: 800;
    background: #edf2f7;
    color: #2d3748;
    padding: 3px 10px;
    border-radius: 6px;
}

.school-threshold {
    font-size: 12.5px;
    color: #4a5568;
}

.school-title {
    font-size: 16px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 8px;
    line-height: 1.4;
}

.school-desc {
    font-size: 13px;
    color: #718096;
    line-height: 1.6;
    margin: 0 0 16px;
    flex-grow: 1;
}

.school-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.school-link {
    font-size: 13px;
    font-weight: 700;
    color: #1e73be !important;
    text-decoration: none;
}

.school-link:hover {
    text-decoration: underline !important;
}

/* Agenda Concours Styling */
.agenda-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.agenda-tab-btn {
    background: #ffffff;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14.5px;
    font-weight: 700;
    color: #4a5568;
    cursor: pointer;
    font-family: "Alyamama", serif;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.agenda-tab-btn:hover,
.agenda-tab-btn.active {
    background: #1e73be;
    color: #ffffff;
    border-color: #1e73be;
    box-shadow: 0 4px 12px rgba(30, 115, 190, 0.25);
}

.table-styled {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.table-styled th {
    background: #f1f5f9;
    color: #1e293b;
    padding: 14px 16px;
    font-weight: 800;
    font-size: 14.5px;
    text-align: right;
    border-bottom: 2px solid #cbd5e0;
}

.table-styled td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: #334155;
    vertical-align: middle;
}

.table-styled tr:hover td {
    background: #f8fafc;
}

.agenda-link {
    display: inline-block;
    background: #1e73be;
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.agenda-link:hover {
    background: #15558d;
    transform: translateY(-1px);
}

/* About Us & Legal Pages */
.ak-about-hero {
    background: linear-gradient(135deg, #1e73be, #00508a);
    color: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    text-align: center;
}

.ak-about-hero h2 {
    color: #ffffff !important;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px;
}

.ak-about-hero .about-lead {
    font-size: 16.5px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    max-width: 850px;
    margin: 0 auto;
}

.ak-about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.about-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    text-align: center;
}

.about-card .about-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(30, 115, 190, 0.1);
    color: #1e73be;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.about-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #1a202c;
}

.about-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

.ak-about-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.ak-about-section h3 {
    font-size: 20px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 20px;
}

.domains-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.domain-item {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
}

.domain-item i {
    color: #1e73be;
    margin-left: 8px;
}

.ak-about-cta {
    background: #f8fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
}

.ak-about-cta h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #1e293b;
}

.ak-about-cta p {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 20px;
}

.ak-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1e73be;
    color: #ffffff !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(30, 115, 190, 0.3);
    transition: all 0.25s ease;
}

.ak-btn-primary:hover {
    background: #165c99;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 115, 190, 0.4);
}

.ak-legal-page-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.ak-legal-page-wrap h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 15px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}

.ak-legal-page-wrap h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1e73be;
    margin: 25px 0 12px;
}

.ak-legal-page-wrap p,
.ak-legal-page-wrap ul {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
}

.ak-guide-hero-badge {
    margin-bottom: 18px;
}

.ak-guide-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1e73be;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.ak-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.ak-features-grid .feat-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 15px;
    text-align: center;
}

.ak-features-grid .feat-box i {
    font-size: 24px;
    color: #1e73be;
    margin-bottom: 8px;
}

.ak-features-grid .feat-box h4 {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #1a202c;
}

.ak-features-grid .feat-box p {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   10. CALCULATOR & AGENDA INTERACTIVE ENHANCEMENTS
   ========================================================================== */
.calc-actions-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.calc-submit-btn {
    background: linear-gradient(135deg, #1e73be, #00508a);
    color: #ffffff !important;
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 800;
    font-family: "Alyamama", serif;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(30, 115, 190, 0.35);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.calc-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 115, 190, 0.45);
    background: linear-gradient(135deg, #2584d8, #005b9e);
}

.calc-reset-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e0;
    border-radius: 10px;
    padding: 13px 20px;
    font-size: 14.5px;
    font-weight: 700;
    font-family: "Alyamama", serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.calc-reset-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.calc-demo-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
}

.calc-demo-label {
    font-size: 13px;
    font-weight: 700;
    color: #718096;
}

.calc-chip-btn {
    background: #edf2f7;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 4px 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: #2b6cb0;
    cursor: pointer;
    font-family: "Alyamama", serif;
    transition: all 0.2s ease;
}

.calc-chip-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
    color: #1a365d;
}

.calc-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 15px 0 20px;
}

.calc-filter-btn {
    background: #ffffff;
    border: 1px solid #cbd5e0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #4a5568;
    cursor: pointer;
    font-family: "Alyamama", serif;
    transition: all 0.2s ease;
}

.calc-filter-btn.active {
    background: #1e73be;
    color: #ffffff;
    border-color: #1e73be;
}

/* Agenda search bar and dynamic counts */
.agenda-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.agenda-search-box {
    position: relative;
    flex: 1 1 280px;
    max-width: 420px;
}

.agenda-search-box i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 15px;
    pointer-events: none;
}

.agenda-search-input {
    width: 100%;
    padding: 10px 42px 10px 16px;
    border: 1.5px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: "Alyamama", serif;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.agenda-search-input:focus {
    border-color: #1e73be;
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.15);
}

.agenda-stats-text {
    font-size: 13.5px;
    font-weight: 700;
    color: #718096;
}

.agenda-badge-count {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11.5px;
    margin-right: 5px;
}

.agenda-tab-btn.active .agenda-badge-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.agenda-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border: 1px dashed #cbd5e0;
    border-radius: 12px;
    margin-top: 15px;
}

.agenda-empty-state i {
    font-size: 36px;
    color: #a0aec0;
    margin-bottom: 12px;
}

.agenda-empty-state p {
    font-size: 15px;
    font-weight: 700;
    color: #4a5568;
    margin: 0;
}



