 /* =========================
       Family / Heritage Palette
       ========================= */
 :root {
   --bg: #FBFAF7;
   /* warm cream */
   --surface: #FFFFFF;
   /* cards */
   --surface2: #FFF7ED;
   /* warm tint */
   --stroke: rgba(18, 46, 39, .12);

   --text: #0F2A22;
   /* deep green-black */
   --muted: rgba(15, 42, 34, .68);

   --brand: #0E8C6B;
   /* teal-green */
   --brand2: #2FBF9B;
   /* mint */
   --gold: #B68B2E;
   /* heritage gold */
   --leaf: #3D7E5D;
   /* sage */

   --shadow: 0 18px 50px rgba(12, 24, 20, .08);
   --shadow2: 0 10px 25px rgba(12, 24, 20, .08);

   --radius: 22px;
 }

 body {
   font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
   background:
     radial-gradient(1100px 550px at 12% 0%, rgba(47, 191, 155, .18), transparent 60%),
     radial-gradient(900px 450px at 90% 5%, rgba(182, 139, 46, .16), transparent 60%),
     linear-gradient(180deg, #FBFAF7 0%, #F6FBF8 45%, #FBFAF7 100%);
   color: var(--text);
   overflow-x: hidden;
 }

 a {
   text-decoration: none;
 }

 .muted {
   color: var(--muted);
 }

 .glass {
   background: rgba(255, 255, 255, .78);
   border: 1px solid var(--stroke);
   box-shadow: var(--shadow);
   backdrop-filter: blur(10px);
   -webkit-backdrop-filter: blur(10px);
   border-radius: var(--radius);
 }

 /* Navbar */
 .navbar {
   background: rgba(255, 255, 255, .82);
   border-bottom: 1px solid var(--stroke);
   backdrop-filter: blur(10px);
   -webkit-backdrop-filter: blur(10px);
 }

 .brand-logo {
   width: 44px;
   height: 44px;
   border-radius: 14px;
   overflow: hidden;
   border: 1px solid rgba(14, 140, 107, .25);
   box-shadow: 0 10px 22px rgba(14, 140, 107, .12);
   background: #fff;
   display: grid;
   place-items: center;
 }

 .brand-logo img {
   width: 100%;
   height: 100%;
   object-fit: cover;
 }

 .nav-link {
   color: rgba(15, 42, 34, .74) !important;
   font-weight: 700;
 }

 .nav-link:hover {
   color: var(--brand) !important;
 }

 /* Buttons */
 .btn-brand {
   background: linear-gradient(90deg, var(--brand), var(--brand2));
   border: none;
   color: #fff;
   font-weight: 800;
   box-shadow: 0 14px 30px rgba(14, 140, 107, .18);
   border-radius: 14px;
 }

 .btn-brand:hover {
   filter: brightness(1.03);
   transform: translateY(-1px);
 }

 .btn-soft {
   background: rgba(14, 140, 107, .08);
   border: 1px solid rgba(14, 140, 107, .18);
   color: var(--brand);
   font-weight: 800;
   border-radius: 14px;
 }

 .btn-soft:hover {
   background: rgba(14, 140, 107, .12);
 }

 .badge-soft {
   background: rgba(182, 139, 46, .12);
   border: 1px solid rgba(182, 139, 46, .22);
   color: #6b4f13;
   font-weight: 800;
   border-radius: 999px;
 }

 /* Hero */
 .hero {
   padding: 86px 0 40px;
   position: relative;
 }

 .hero::before {
   content: "";
   position: absolute;
   inset: -200px 0 auto 0;
   /* ✅ بدل -80px */
   height: 520px;
   background: radial-gradient(closest-side, rgba(14, 140, 107, .10), transparent 70%);
   pointer-events: none;
   max-width: 100vw;
   /* ✅ حماية إضافية */
 }

 .headline {
   font-size: clamp(1.9rem, 3.6vw, 3.2rem);
   line-height: 1.15;
   font-weight: 900;
   letter-spacing: .2px;
 }

 .text-grad {
   background: linear-gradient(90deg, var(--brand), var(--gold));
   -webkit-background-clip: text;
   background-clip: text;
   color: transparent;
 }

 .subhead {
   color: var(--muted);
   font-size: 1.05rem;
   max-width: 720px;
 }

 .hero-card {
   padding: 18px;
 }

 .hero-media {
   min-height: 410px;
   border-radius: 28px;
   overflow: hidden;
   position: relative;
   border: 1px solid rgba(15, 42, 34, .10);
   box-shadow: var(--shadow);
   background:
     linear-gradient(180deg, rgba(23, 124, 37, 0.082), rgba(255, 255, 255, 0)),
     url("../image/familya.png");
   background-size: cover;
   background-position: center;
 }

 .hero-overlay {
   position: absolute;
   inset: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   text-align: center;
   padding: 18px;
 }

 .hero-overlay .inner {
   max-width: 520px;
   border-radius: 24px;
   background: rgba(255, 255, 255, .82);
   border: 1px solid rgba(15, 42, 34, .10);
   box-shadow: var(--shadow2);
   padding: 18px;
 }



 /* Hero */
 .hero {
   padding: 86px 0 40px;
   position: relative;
 }

 .hero::before {
   content: "";
   position: absolute;
   inset: -200px 0 auto 0;
   /* ✅ بدل -80px */
   height: 520px;
   background: radial-gradient(closest-side, rgba(14, 140, 107, .10), transparent 70%);
   pointer-events: none;
   max-width: 100vw;
   /* ✅ حماية إضافية */
 }

 .headline {
   font-size: clamp(1.9rem, 3.6vw, 3.2rem);
   line-height: 1.15;
   font-weight: 900;
   letter-spacing: .2px;
 }

 .text-grad {
   background: linear-gradient(90deg, var(--brand), var(--gold));
   -webkit-background-clip: text;
   background-clip: text;
   color: transparent;
 }

 .subhead {
   color: var(--muted);
   font-size: 1.05rem;
   max-width: 720px;
 }

 .hero-card {
   padding: 18px;
 }

 .hero-media2 {
   min-height: 410px;
   border-radius: 28px;
   overflow: hidden;
   position: relative;
   border: 1px solid rgba(15, 42, 34, .10);
   box-shadow: var(--shadow);
   background:
     linear-gradient(180deg, rgba(23, 124, 37, 0.082), rgba(255, 255, 255, 0)),
     url("../image/Family-tree.png");
   background-size: cover;
   background-position: center;
 }

 .hero-overlay {
   position: absolute;
   inset: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   text-align: center;
   padding: 18px;
 }

 .hero-overlay .inner {
   max-width: 520px;
   border-radius: 24px;
   background: rgba(255, 255, 255, .82);
   border: 1px solid rgba(15, 42, 34, .10);
   box-shadow: var(--shadow2);
   padding: 18px;
 }


 /* Sections */
 .section {
   padding: 58px 0;
 }

 .section-title {
   font-weight: 900;
   font-size: 1.75rem;
   margin-bottom: 10px;
 }

 .section-desc {
   color: var(--muted);
   max-width: 820px;
 }

 .divider {
   height: 1px;
   background: linear-gradient(90deg, transparent, rgba(15, 42, 34, .12), transparent);
   margin: 18px 0;
 }

 /* Features */
 .feature {
   padding: 16px;
   height: 100%;
 }

 .icon-pill {
   width: 46px;
   height: 46px;
   border-radius: 16px;
   display: grid;
   place-items: center;
   background: rgba(14, 140, 107, .10);
   border: 1px solid rgba(14, 140, 107, .18);
   color: var(--brand);
   font-size: 1.2rem;
   flex: 0 0 auto;
 }

 /* Stats */
 .stat {
   padding: 18px;
   height: 100%;
 }

 .stat-value {
   font-size: 1.9rem;
   font-weight: 900;
   color: var(--text);
   letter-spacing: .2px;
 }

 .stat-label {
   color: var(--muted);
   font-weight: 700;
 }

 /* Scholars */
 /* Scholars */
 .scholar-card {
   overflow: hidden;
   height: 100%;
 }

 .scholar-photo {
   height: 210px;
   /* ثابت */
   background: #fff;
   /* خلفية نظيفة */
   border-bottom: 1px solid rgba(15, 42, 34, .10);

   display: flex;
   /* ✅ لتوسيط الصورة */
   align-items: center;
   justify-content: center;
   padding: 10px;
   /* ✅ فراغ لطيف حول الصورة */
 }

 .scholar-photo img {
   max-width: 100%;
   max-height: 100%;
   width: auto;
   height: auto;
   object-fit: contain;
 }

 .scholar-body {
   padding: 16px;
 }

 .scholar-name {
   font-weight: 900;
 }

 .scholar-title {
   color: var(--muted);
 }

 /* Orgs */
 .org-card {
   padding: 16px;
   height: 100%;
 }

 .org-logo {
   height: 100px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 18px;
   background: #fff;
   border: 1px solid rgba(15, 42, 34, .10);
   overflow: hidden;
 }

 .org-logo img {
   max-width: 100%;
   max-height: 100%;
   object-fit: contain;
   filter: saturate(1.02) contrast(1.02);
 }

 /* Footer */
 footer {
   padding: 52px 0 30px;
   background: linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(255, 247, 237, .8));
   border-top: 1px solid rgba(15, 42, 34, .10);
 }

 .footer-link {
   color: rgba(15, 42, 34, .72);
   font-weight: 700;
 }

 .footer-link:hover {
   color: var(--brand);
 }

 .chip {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 9px 12px;
   border-radius: 999px;
   border: 1px solid rgba(15, 42, 34, .10);
   background: rgba(255, 255, 255, .7);
   color: rgba(15, 42, 34, .75);
   font-weight: 700;
   font-size: .95rem;
 }

 /* Modal */
 .modal-content {
   background: rgba(255, 255, 255, .95);
   border: 1px solid rgba(15, 42, 34, .12);
   border-radius: 18px;
 }

 .modal-header,
 .modal-footer {
   border-color: rgba(15, 42, 34, .10);
 }

 /* Small */
 .shadow-soft {
   box-shadow: var(--shadow2);
 }

 /* ===== Pricing Compare (Aligned like screenshot) ===== */
 /* .pricing-compare {
   background: #f8faf9;
 }

 .compare-wrap {
   display: grid;
   grid-template-columns: 1fr 320px;
   gap: 18px;
   align-items: start;
 }

 @media (max-width: 992px) {
   .compare-wrap {
     grid-template-columns: 1fr;
   }
 }

 .billing-toggle {
   display: flex;
   justify-content: center;
   gap: 10px;
   margin: 14px 0 26px;
 }

 .toggle-pill {
   background: #fff;
   border: 1px solid rgba(15, 42, 34, .10);
   border-radius: 999px;
   padding: 6px;
   display: inline-flex;
   gap: 6px;
   box-shadow: 0 10px 25px rgba(12, 24, 20, .06);
 }

 .toggle-pill button {
   border: none;
   background: transparent;
   padding: 10px 14px;
   border-radius: 999px;
   font-weight: 900;
   color: rgba(15, 42, 34, .75);
 }

 .toggle-pill button.active {
   background: rgba(14, 140, 107, .12);
   color: #0E8C6B;
 }

 .plans-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 14px;
 }

 @media (max-width: 1200px) {
   .plans-grid {
     grid-template-columns: repeat(2, 1fr);
   }
 }

 @media (max-width: 576px) {
   .plans-grid {
     grid-template-columns: 1fr;
   }
 }

 .plan-card {
   background: #fff;
   border: 1px solid rgba(15, 42, 34, .10);
   border-radius: 18px;
   overflow: hidden;
   box-shadow: 0 14px 40px rgba(12, 24, 20, .07);
   position: relative;

   /* make equal height 
   display: flex;
   flex-direction: column;
   min-height: 640px;
   /* consistent columns 
 }

 .plan-head {
   padding: 18px 18px 14px;
   border-bottom: 1px solid rgba(15, 42, 34, .08);
   text-align: center;
   min-height: 210px;
   /* fixed header height 
   display: flex;
   flex-direction: column;
   justify-content: flex-start;
   gap: 6px;
 }

 .plan-icon {
   width: 46px;
   height: 46px;
   border-radius: 14px;
   display: grid;
   place-items: center;
   margin: 0 auto;
   background: rgba(14, 140, 107, .10);
   border: 1px solid rgba(14, 140, 107, .18);
   color: #0E8C6B;
   font-size: 1.15rem;
 }

 .plan-name {
   font-weight: 950;
   font-size: 1.15rem;
 }

 .plan-sub {
   color: rgba(15, 42, 34, .65);
   font-weight: 700;
   font-size: .9rem;
 }

 .plan-price {
   margin-top: 6px;
   line-height: 1.1;
 }

 .price-main {
   font-size: 2.1rem;
   font-weight: 950;
   color: #0E8C6B;
 }

 .price-currency {
   font-weight: 950;
   color: #0E8C6B;
 }

 .price-term {
   color: rgba(15, 42, 34, .65);
   font-weight: 800;
   font-size: .85rem;
 }

 .plan-action {
   margin-top: auto;
 }

 .plan-action .btn {
   border-radius: 14px;
   font-weight: 900;
 }

 .plan-body {
   padding: 10px 14px 16px;
   display: grid;

   /* Fixed number of rows -> perfect alignment 
   grid-template-rows: repeat(9, 46px);
 }

 .row-cell {
   display: flex;
   align-items: center;
   justify-content: center;
   border-top: 1px solid rgba(15, 42, 34, .06);
 }

 .row-cell:first-child {
   border-top: none;
 }

 .pill {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 7px 10px;
   border-radius: 999px;
   background: rgba(14, 140, 107, .08);
   border: 1px solid rgba(14, 140, 107, .14);
   color: rgba(15, 42, 34, .88);
   font-weight: 900;
   font-size: .85rem;
   white-space: nowrap;
 }

 .ic {
   width: 34px;
   height: 34px;
   border-radius: 999px;
   display: grid;
   place-items: center;
   border: 1px solid rgba(15, 42, 34, .10);
   font-size: 0.95rem;
 }

 .ic.yes {
   background: rgba(34, 197, 94, .12);
   border-color: rgba(34, 197, 94, .25);
   color: #16a34a;
 }

 .ic.no {
   background: rgba(244, 63, 94, .10);
   /* ✅ red 
   border-color: rgba(244, 63, 94, .25);
   /* ✅ red 
   color: #e11d48;
   /* ✅ red 
 }

 /* Popular 
 .plan-card.is-popular {
   border: 2px solid rgba(14, 140, 107, .55);
   transform: translateY(-4px);
   box-shadow: 0 20px 60px rgba(14, 140, 107, .18);
 }

 .popular-badge {
   position: absolute;
   top: 12px;
   left: 12px;
   background: linear-gradient(90deg, #0E8C6B, #2FBF9B);
   color: #fff;
   padding: 6px 10px;
   border-radius: 999px;
   font-weight: 950;
   font-size: .8rem;
 }

 /* Gold 
 .plan-card.is-gold .plan-icon {
   background: rgba(182, 139, 46, .14);
   border-color: rgba(182, 139, 46, .28);
   color: #8a6a1f;
 }

 .plan-card.is-gold .price-main,
 .plan-card.is-gold .price-currency {
   color: #B68B2E;
 }*/

 .pricing-section {
   padding: 90px 0;
   background:
     radial-gradient(circle at top right, rgba(16, 185, 129, 0.06), transparent 22%),
     radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.05), transparent 18%),
     #f6f8f7;
 }

 .pricing-header {
   max-width: 760px;
   margin: 0 auto 28px;
 }

 .section-badge {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 8px 16px;
   border-radius: 999px;
   background: #e7f7ef;
   color: #0c8f68;
   font-weight: 800;
   font-size: 0.9rem;
   margin-bottom: 14px;
   border: 1px solid #cfeadc;
 }

 .section-title {
   font-size: 2.3rem;
   font-weight: 900;
   color: #0f2e25;
   margin-bottom: 12px;
   line-height: 1.2;
 }

 .section-subtitle {
   font-size: 1.04rem;
   color: #61756d;
   margin: 0;
   line-height: 1.8;
 }

 .billing-toggle {
   display: flex;
   justify-content: center;
   margin-bottom: 34px;
 }

 .toggle-pill {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   background: rgba(255, 255, 255, 0.95);
   border: 1px solid #d8e5df;
   border-radius: 999px;
   padding: 6px;
   box-shadow: 0 18px 40px rgba(15, 46, 37, 0.08);
   backdrop-filter: blur(10px);
 }

 .toggle-pill button {
   border: 0;
   background: transparent;
   color: #4e665e;
   padding: 11px 22px;
   min-width: 130px;
   border-radius: 999px;
   font-weight: 800;
   transition: all 0.25s ease;
 }

 .toggle-pill button.active {
   background: linear-gradient(135deg, #dff6ea, #cdeedf);
   color: #0b8c66;
   box-shadow: inset 0 0 0 1px #bfe2d2;
 }

 .discount-note {
   font-size: 0.84em;
   opacity: 0.8;
 }

 .pricing-table-shell {
   background: rgba(255, 255, 255, 0.9);
   border: 1px solid #dce8e2;
   border-radius: 28px;
   box-shadow: 0 24px 60px rgba(15, 46, 37, 0.08);
   overflow: hidden;
 }

 .pricing-table-scroll {
   overflow-x: auto;
   -webkit-overflow-scrolling: touch;
 }

 .pricing-table {
   width: 100%;
   min-width: 1180px;
   border-collapse: separate;
   border-spacing: 0;
   direction: rtl;
 }

 .pricing-table thead th {
   position: sticky;
   top: 0;
   z-index: 5;
   background: rgba(252, 253, 252, 0.98);
   backdrop-filter: blur(8px);
   border-bottom: 1px solid #e7efeb;
   border-left: 1px solid #edf3f0;
   vertical-align: top;
   text-align: center;
   padding: 22px 18px;
 }

 .pricing-table thead th.feature-col {
   min-width: 320px;
   text-align: right;
   background: #f8fbf9;
   z-index: 8;
 }

 .feature-head-box {
   display: flex;
   flex-direction: column;
   gap: 6px;
 }

 .feature-head-box span {
   font-size: 1.08rem;
   font-weight: 900;
   color: #12352b;
 }

 .feature-head-box small {
   font-size: 0.9rem;
   color: #698078;
   font-weight: 600;
 }

 .plan-col {
   min-width: 215px;
   position: relative;
 }

 .plan-col.is-popular {
   background: linear-gradient(180deg, #f4fbf7 0%, #ffffff 100%);
 }

 .plan-col.is-gold {
   background: linear-gradient(180deg, #fff9eb 0%, #ffffff 100%);
 }

 .plan-head-mini {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 9px;
 }

 .plan-icon {
   width: 56px;
   height: 56px;
   border-radius: 18px;
   display: grid;
   place-items: center;
   background: #edf8f2;
   border: 1px solid #d3eadf;
   color: #0c8f68;
   font-size: 1.25rem;
 }

 .is-gold .plan-icon {
   background: #fff4d8;
   border-color: #eed8a0;
   color: #b8860b;
 }

 .plan-name {
   font-size: 1.35rem;
   font-weight: 900;
   color: #0f2e25;
   line-height: 1.2;
 }

 .plan-tagline {
   font-size: 0.9rem;
   color: #72867f;
   font-weight: 700;
   min-height: 22px;
 }

 .plan-price {
   display: flex;
   align-items: flex-start;
   justify-content: center;
   gap: 3px;
   line-height: 1;
   margin-top: 4px;
 }

 .price-main {
   font-size: 2.3rem;
   font-weight: 900;
   color: #0c8f68;
 }

 .is-gold .price-main {
   color: #b8860b;
 }

 .price-currency {
   font-size: 1rem;
   font-weight: 800;
   color: #536a62;
   margin-top: 5px;
 }

 .price-term {
   color: #70847c;
   font-weight: 700;
   font-size: 0.95rem;
 }

 .plan-action {
   width: 100%;
   margin-top: 6px;
 }

 .plan-action .btn {
   border-radius: 14px;
   font-weight: 800;
   padding: 11px 14px;
 }

 .popular-badge,
 .gold-badge {
   position: absolute;
   top: 12px;
   right: 12px;
   padding: 7px 12px;
   border-radius: 999px;
   font-size: 0.78rem;
   font-weight: 900;
   white-space: nowrap;
 }

 .popular-badge {
   background: linear-gradient(135deg, #10b981, #0f9a71);
   color: #fff;
   box-shadow: 0 12px 24px rgba(16, 185, 129, 0.24);
 }

 .gold-badge {
   background: linear-gradient(135deg, #f9e6a8, #e7c66a);
   color: #6d4f00;
   box-shadow: 0 10px 22px rgba(185, 134, 11, 0.18);
 }

 .pricing-table tbody td {
   padding: 18px 16px;
   border-bottom: 1px solid #edf3f0;
   border-left: 1px solid #f1f5f3;
   text-align: center;
   vertical-align: middle;
   background: #fff;
 }

 .pricing-table tbody tr:nth-child(even) td {
   background: #fcfdfc;
 }

 .pricing-table tbody tr:hover td {
   background: #f8fbf9;
 }

 .pricing-table tbody td:first-child {
   text-align: right;
 }

 .sticky-side {
   position: sticky;
   right: 0;
   z-index: 4;
   background: #fcfdfc !important;
   box-shadow: -1px 0 0 #edf3f0;
 }

 .pricing-table thead .sticky-side {
   z-index: 9;
   background: #f8fbf9 !important;
 }

 .feature-title {
   display: flex;
   align-items: flex-start;
   gap: 12px;
   min-width: 320px;
 }

 .feature-index {
   width: 32px;
   height: 32px;
   min-width: 32px;
   border-radius: 50%;
   display: inline-grid;
   place-items: center;
   background: #eef3f1;
   border: 1px solid #dbe6e1;
   color: #536961;
   font-size: 0.82rem;
   font-weight: 900;
   margin-top: 2px;
 }

 .feature-text {
   display: flex;
   flex-direction: column;
   gap: 3px;
 }

 .feature-text strong {
   font-size: 0.98rem;
   font-weight: 900;
   color: #14372d;
 }

 .feature-text small {
   font-size: 0.84rem;
   color: #72867f;
   line-height: 1.7;
   font-weight: 600;
 }

 .value-chip,
 .badge-soft {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   min-height: 38px;
   padding: 8px 14px;
   border-radius: 999px;
   font-size: 0.92rem;
   font-weight: 800;
   white-space: nowrap;
 }

 .value-chip {
   background: #edf5f2;
   border: 1px solid #d8e7e0;
   color: #244239;
 }

 .value-chip.strong {
   background: #e6f8ee;
   border-color: #bfe4cf;
   color: #0b875f;
 }

 .badge-soft {
   background: #eef5f2;
   border: 1px solid #dae8e1;
   color: #27443b;
 }

 .badge-soft.strong {
   background: #fff4d8;
   border-color: #ead59e;
   color: #8a6700;
 }

 .check {
   width: 36px;
   height: 36px;
   border-radius: 50%;
   display: inline-grid;
   place-items: center;
   font-size: 0.95rem;
   font-weight: 900;
 }

 .check.yes {
   background: #eaf8ef;
   border: 1px solid #bfe5cc;
   color: #16a34a;
 }

 .check.no {
   background: #fff0f3;
   border: 1px solid #f3c6d2;
   color: #e11d48;
 }

 .yearly-only {
   display: none;
 }

 body.yearly-mode .yearly-only {
   display: table-cell;
 }

 body.yearly-mode th.yearly-only {
   display: table-cell;
 }

 @media (max-width: 1199.98px) {
   .pricing-table {
     min-width: 1080px;
   }
 }

 @media (max-width: 991.98px) {
   .pricing-section {
     padding: 70px 0;
   }

   .section-title {
     font-size: 1.85rem;
   }

   .section-subtitle {
     font-size: 0.97rem;
   }

   .toggle-pill button {
     min-width: 115px;
     padding: 10px 18px;
   }

   .pricing-table {
     min-width: 980px;
   }

   .plan-col {
     min-width: 200px;
   }

   .plan-name {
     font-size: 1.15rem;
   }

   .price-main {
     font-size: 2rem;
   }
 }

 @media (max-width: 767.98px) {
   .pricing-table-shell {
     border-radius: 22px;
   }

   .pricing-table {
     min-width: 920px;
   }

   .feature-title {
     min-width: 280px;
   }

   .feature-text strong {
     font-size: 0.93rem;
   }

   .feature-text small {
     font-size: 0.8rem;
   }
 }

 /* Feature list right side */
 .features-card {
   background: #fff;
   border: 1px solid rgba(15, 42, 34, .10);
   border-radius: 18px;
   box-shadow: 0 14px 40px rgba(12, 24, 20, .07);
   padding: 14px;
   position: sticky;
   top: 88px;
 }

 @media (max-width: 992px) {
   .features-card {
     position: static;
   }
 }

 .features-title {
   font-weight: 950;
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 10px;
 }

 .features-list {
   list-style: none;
   padding: 0;
   margin: 0;
 }

 .features-list li {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 12px 8px;
   border-top: 1px solid rgba(15, 42, 34, .06);
   color: rgba(15, 42, 34, .86);
   font-weight: 900;
   font-size: .93rem;
 }

 .features-list li:first-child {
   border-top: none;
 }

 .features-list .q {
   width: 22px;
   height: 22px;
   border-radius: 999px;
   display: grid;
   place-items: center;
   background: rgba(15, 42, 34, .06);
   border: 1px solid rgba(15, 42, 34, .08);
   color: rgba(15, 42, 34, .65);
   font-weight: 950;
   font-size: .85rem;
 }

 /* ======================================
   Records Section – Scroll Animation
   ====================================== */

 .records-stage {
   position: relative;
   width: min(1100px, 100%);
   height: clamp(360px, 46vw, 520px);
   margin: 0 auto;
   overflow: hidden;
   border-radius: 28px;

   /* خلفية شفافة */
   background: transparent;
 }

 /* container */
 .records-animation {
   position: relative;
   width: 100%;
   height: 100%;
 }

 /* =========================
   Record Item
   ========================= */

 .record-item {
   position: absolute;
   width: clamp(200px, 20vw, 260px);

   border-radius: 16px;
   overflow: hidden;

   background: #fff;
   border: 1px solid rgba(15, 42, 34, .10);

   box-shadow: 0 20px 60px rgba(12, 24, 20, .18);

   transform-origin: center;
   will-change: transform;
   transition: transform .6s ease;
 }

 .record-item img {
   width: 100%;
   height: auto;
   display: block;
   object-fit: cover;
 }

 /* =========================
   Initial Positions
   ========================= */

 .record-item:nth-child(1) {
   left: 80px;
   top: 180px;
   transform: rotate(-8deg);
 }

 .record-item:nth-child(2) {
   left: 330px;
   top: 140px;
   transform: rotate(6deg);
 }

 .record-item:nth-child(3) {
   left: 600px;
   top: 180px;
   transform: rotate(-4deg);
 }

 .record-item:nth-child(4) {
   left: 860px;
   top: 150px;
   transform: rotate(7deg);
 }

 /* =========================
   Accessibility
   ========================= */

 @media (prefers-reduced-motion: reduce) {
   .record-item {
     transform: none !important;
     transition: none;
   }
 }

 /* ===== Scholars Infinite Slider ===== */
 .scholar-slider {
   position: relative;
   overflow: hidden;
   width: 100%;
 }

 /* Track */
 .scholar-track {
   display: flex;
   gap: 16px;
   /* فراغ صغير لطيف (غيّره 0 إذا تريد بدون أي gap) */
   width: max-content;
   will-change: transform;
   animation: scholarsMarquee 14s linear infinite;
   /* ✅ أسرع شوي */
 }

 /* Item width ثابت عشان الحساب يكون صحيح */
 .scholar-item {
   flex: 0 0 260px;
 }

 /* Loop: نحرك نصف المسافة لأننا مكررين العناصر مرتين */
 @keyframes scholarsMarquee {
   0% {
     transform: translateX(0);
   }

   100% {
     transform: translateX(-50%);
   }
 }

 /* Pause on hover */
 .scholar-slider:hover .scholar-track {
   animation-play-state: paused;
 }

 /* Mobile tweaks */
 @media (max-width: 576px) {
   .scholar-item {
     flex-basis: 78vw;
   }
 }

 .scholar-slider::before,
 .scholar-slider::after {
   content: "";
   position: absolute;
   top: 0;
   bottom: 0;
   width: 70px;
   z-index: 5;
   pointer-events: none;
 }

 .scholar-slider::before {
   left: 0;
   background: linear-gradient(90deg, var(--bg), transparent);
 }

 .scholar-slider::after {
   right: 0;
   background: linear-gradient(-90deg, var(--bg), transparent);
 }

 /* ===== Fix marquee in RTL ===== */
 .scholar-slider {
   direction: ltr;
 }

 .scholar-slider .scholar-card,
 .scholar-slider .scholar-body {
   direction: rtl;
 }

 /* Optional: smoother loop if you see a small jump */
 @media (min-width: 577px) {
   /* if needed uncomment:
  .scholar-track{ gap:0; }
  .scholar-item{ padding:0 8px; }
  */
 }

 /* ===== Records: add position for 5th doc ===== */
 .record-item:nth-child(5) {
   left: 140px;
   top: 120px;
   transform: rotate(-10deg);
 }

 /* =========================
   Library Section
   ========================= */
 .library {
   position: relative;
 }

 .library-toolbar {
   padding: 14px;
 }

 .library-search {
   position: relative;
 }

 .library-search i {
   position: absolute;
   inset-inline-start: 14px;
   top: 50%;
   transform: translateY(-50%);
   color: rgba(15, 42, 34, .55);
 }

 .library-search .form-control {
   padding-inline-start: 42px;
   border-radius: 16px;
   border: 1px solid rgba(15, 42, 34, .10);
   background: rgba(255, 255, 255, .78);
   font-weight: 700;
 }

 .library-filters {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   justify-content: flex-end;
 }

 .filter-btn {
   border: 1px solid rgba(15, 42, 34, .10);
   background: rgba(255, 255, 255, .75);
   border-radius: 999px;
   padding: 9px 12px;
   font-weight: 900;
   color: rgba(15, 42, 34, .72);
   display: inline-flex;
   align-items: center;
   gap: 8px;
   transition: .2s ease;
 }

 .filter-btn.active,
 .filter-btn:hover {
   background: rgba(14, 140, 107, .10);
   border-color: rgba(14, 140, 107, .22);
   color: var(--brand);
 }

 .library-tags {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
 }

 .tag-pill {
   border: 1px dashed rgba(15, 42, 34, .16);
   background: rgba(255, 255, 255, .65);
   border-radius: 999px;
   padding: 7px 11px;
   font-weight: 900;
   color: rgba(15, 42, 34, .70);
 }

 .tag-pill:hover {
   border-style: solid;
   background: rgba(182, 139, 46, .10);
 }

 .lib-card {
   overflow: hidden;
   height: 100%;
   transition: transform .18s ease, box-shadow .18s ease;
 }

 .lib-card:hover {
   transform: translateY(-3px);
   box-shadow: 0 22px 70px rgba(12, 24, 20, .14);
 }

 .lib-cover {
   position: relative;
   height: 170px;
   background: rgba(255, 255, 255, .9);
   border-bottom: 1px solid rgba(15, 42, 34, .10);
 }

 .lib-cover img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
 }

 .lib-badge {
   position: absolute;
   top: 12px;
   inset-inline-start: 12px;
   padding: 7px 10px;
   border-radius: 999px;
   font-weight: 950;
   font-size: .85rem;
   color: #0F2A22;
   background: rgba(255, 255, 255, .78);
   border: 1px solid rgba(15, 42, 34, .10);
   backdrop-filter: blur(8px);
 }

 .lib-body {
   padding: 14px;
 }

 .lib-title {
   margin: 0 0 8px;
   font-size: 1.05rem;
   font-weight: 950;
 }

 .lib-meta {
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
   color: rgba(15, 42, 34, .62);
   font-weight: 800;
   font-size: .88rem;
   margin-bottom: 10px;
 }

 .lib-desc {
   color: rgba(15, 42, 34, .68);
   font-weight: 700;
   font-size: .93rem;
   min-height: 46px;
   margin-bottom: 12px;
 }

 .lib-actions {
   display: flex;
   gap: 8px;
 }

 .lib-actions .btn {
   border-radius: 14px;
   font-weight: 900;
 }

 @media (max-width: 992px) {
   .library-filters {
     justify-content: flex-start;
   }
 }

 /* =========================
   Top Announcement Popup
========================== */
.announcement-top {
    position: fixed;
    top: 14px;
    right: 16px;
    left: 16px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-120%);
    transition:
        opacity 0.35s ease,
        transform 0.45s ease,
        visibility 0.35s ease;
}

.announcement-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.announcement-top__card {
    position: relative;
    width: min(100%, 980px);
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 247, 0.98));
    border: 1px solid rgba(14, 140, 107, 0.14);
    border-radius: 24px;
    box-shadow:
        0 18px 45px rgba(10, 35, 29, 0.15),
        0 10px 24px rgba(14, 140, 107, 0.08);
    overflow: hidden;
    backdrop-filter: blur(12px);
    padding: 16px;
}

.announcement-top__card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #0E8C6B, #19b788, #0E8C6B);
}

.announcement-top__close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f3f7f5;
    color: #35594e;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 3;
}

.announcement-top__close:hover {
    background: #e8f6f0;
    color: #0E8C6B;
    transform: rotate(90deg);
}

.announcement-top__media {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 18px;
    overflow: hidden;
    background: #edf5f1;
    border: 1px solid #ddeae4;
    flex-shrink: 0;
}

.announcement-top__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.announcement-top__content {
    padding: 6px 8px 6px 36px;
}

.announcement-top__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e8f6f0;
    border: 1px solid #cde8dc;
    color: #0E8C6B;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.announcement-top__title {
    margin: 0 0 8px;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 900;
    color: #0f2e25;
    line-height: 1.3;
}

.announcement-top__headline {
    margin: 0 0 10px;
    color: #0E8C6B;
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.8;
    font-weight: 800;
}

.announcement-top__text {
    margin: 0 0 10px;
    color: #39574d;
    font-size: 0.98rem;
    line-height: 1.95;
    font-weight: 600;
}

.announcement-top__author {
    margin: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8fbf9;
    border: 1px solid #e4efea;
    color: #173b31;
    line-height: 1.9;
    font-size: 0.95rem;
}

.announcement-top__author span {
    color: #678078;
    font-weight: 700;
    margin-left: 6px;
}

/* Tablet */
@media (max-width: 991.98px) {
    .announcement-top__card {
        grid-template-columns: 180px 1fr;
        gap: 14px;
    }

    .announcement-top__media {
        height: 155px;
    }

    .announcement-top__content {
        padding: 4px 6px 4px 28px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .announcement-top {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .announcement-top__card {
        grid-template-columns: 1fr;
        padding: 14px;
        border-radius: 20px;
        gap: 12px;
    }

    .announcement-top__media {
        height: 180px;
        border-radius: 16px;
    }

    .announcement-top__content {
        padding: 0;
    }

    .announcement-top__close {
        top: 10px;
        left: 10px;
        width: 36px;
        height: 36px;
    }

    .announcement-top__badge {
        font-size: 0.84rem;
        padding: 7px 12px;
        margin-bottom: 10px;
    }

    .announcement-top__text,
    .announcement-top__author {
        font-size: 0.9rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .announcement-top__media {
        height: 150px;
    }

    .announcement-top__title {
        font-size: 1.1rem;
    }

    .announcement-top__headline {
        font-size: 0.95rem;
    }

    .announcement-top__text,
    .announcement-top__author {
        font-size: 0.86rem;
        line-height: 1.85;
    }
}