/* D.BTEC Platform Design System & CSS Rules */
:root {
  --brand-navy: #111835;
  --brand-navy-light: #1E2B58;
  --brand-blue: #0248C1;
  --brand-blue-hover: #003799;
  --brand-blue-light: #EEF4FF;
  --brand-gold: #F8D613;
  --brand-gold-hover: #E6C400;
  --brand-gold-light: #FFFDE6;
  
  --bg-canvas: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F9;
  
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-navy: #111835;
  
  --border-color: #E2E8F0;
  --border-focus: #0248C1;
  
  --pass-color: #16A34A;
  --pass-bg: #F0FDF4;
  --merit-color: #0248C1;
  --merit-bg: #EFF6FF;
  --distinction-color: #D97706;
  --distinction-bg: #FFFBEB;
  
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;
  --radius-full: 0px;
  
  --shadow-sm: 0 2px 4px rgba(17, 24, 53, 0.04);
  --shadow-md: 0 8px 20px rgba(17, 24, 53, 0.06);
  --shadow-lg: 0 16px 36px rgba(17, 24, 53, 0.09);
  --shadow-blue: 0 10px 25px rgba(2, 72, 193, 0.2);
  --shadow-gold: 0 10px 25px rgba(248, 214, 19, 0.3);
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-dark);
  direction: rtl;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--brand-navy);
  font-weight: 800;
  line-height: 1.25;
}

p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Header & Glassmorphism Navigation */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    flex-direction: row-reverse;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  cursor: pointer;
}

.nav-link:hover {
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
}

.nav-link.active {
  background-color: var(--brand-navy);
  color: #ffffff;
}

.nav-link.active .nav-icon {
  color: var(--brand-gold);
}

.nav-icon {
  font-size: 1rem;
  color: var(--brand-blue);
  transition: var(--transition-fast);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--brand-navy);
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 99;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

/* Main View Container */
.main-content {
  flex: 1;
  padding-bottom: 4rem;
}

.view-section {
  display: none;
  animation: fadeIn 0.35s ease forwards;
}

.view-section.active {
  display: block;
}

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

/* Hero Section */
.hero-section {
  padding: 9rem 0 9rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-accent {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(2, 72, 193, 0.06) 0%, rgba(248, 214, 19, 0.04) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--brand-gold-light);
  border: 1px solid rgba(248, 214, 19, 0.5);
  border-radius: var(--radius-full);
  color: var(--brand-navy);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.text-gradient-blue {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.5rem;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 800;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: #ffffff;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(2, 72, 193, 0.28);
}

.btn-gold {
  background-color: var(--brand-gold);
  color: var(--brand-navy);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background-color: var(--brand-gold-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--brand-navy);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-2px);
}

/* Cards Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-gold));
  opacity: 0;
  transition: var(--transition-fast);
}

.tool-card:hover {
  transform: translateY(-6px);
  border-color: rgba(2, 72, 193, 0.2);
  box-shadow: var(--shadow-lg);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
}

.tool-card:hover .tool-icon-wrapper {
  background: var(--brand-blue);
  color: #ffffff;
  transform: scale(1.08);
}

.tool-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.tool-desc {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.tool-link-text {
  font-weight: 800;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

/* Stats Section */
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 3rem 0;
}

.stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-num {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--brand-navy);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* Command Verbs Section */
.search-filter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.search-input-box {
  position: relative;
  margin-bottom: 1.25rem;
}

.search-input-box input {
  width: 100%;
  padding: 1.1rem 1.5rem 1.1rem 3rem;
  font-size: 1.3rem;
  font-family: inherit;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-canvas);
  color: var(--text-dark);
  outline: none;
  transition: var(--transition-fast);
}

.search-input-box input:focus {
  border-color: var(--brand-blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(2, 72, 193, 0.1);
}

.search-icon-inside {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.3rem;
}

.filter-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-chip:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.filter-chip.active {
  background: var(--brand-navy);
  color: #ffffff;
  border-color: var(--brand-navy);
}

.filter-chip.pass.active {
  background: var(--pass-color);
  border-color: var(--pass-color);
}

.filter-chip.merit.active {
  background: var(--merit-color);
  border-color: var(--merit-color);
}

.filter-chip.distinction.active {
  background: var(--brand-gold);
  color: var(--brand-navy);
  border-color: var(--brand-gold);
}

.verbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.verb-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.verb-item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 72, 193, 0.3);
}

.verb-badge {
  align-self: flex-start;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.verb-badge.pass {
  background: var(--pass-bg);
  color: var(--pass-color);
}

.verb-badge.merit {
  background: var(--merit-bg);
  color: var(--merit-color);
}

.verb-badge.distinction {
  background: var(--distinction-bg);
  color: var(--distinction-color);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.verb-english {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--brand-navy);
  margin-bottom: 0.2rem;
}

.verb-arabic-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 1rem;
}

.verb-eng-def {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-right: 0.75rem;
  border-right: 3px solid var(--border-color);
}

.verb-ar-def {
  font-size: 0.9rem;
  color: var(--brand-navy);
  background: var(--bg-canvas);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-top: auto;
  line-height: 1.7;
}

/* GPA Calculator Panels Fix */
.calc-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2rem;
}

.calc-tab-btn {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 800;
  font-family: inherit;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  margin-bottom: -2px;
}

.calc-tab-btn:hover {
  color: var(--brand-blue);
}

.calc-tab-btn.active {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

.calc-tab-panel {
  display: none !important;
}

.calc-tab-panel.active {
  display: block !important;
}

.calc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.subject-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 40px;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.subject-row:last-child {
  border-bottom: none;
}

.input-style {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  outline: none;
  transition: var(--transition-fast);
}

.input-style:focus {
  border-color: var(--brand-blue);
  background: #ffffff;
}

.btn-remove-row {
  background: none;
  border: none;
  color: #EF4444;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.btn-remove-row:hover {
  background: #FEE2E2;
}

.result-box {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.gpa-score {
  font-size: 4rem;
  font-weight: 900;
  color: var(--brand-gold);
  line-height: 1;
  margin: 1rem 0;
}

/* Image Search Provider Cards */
.provider-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.provider-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.provider-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
}

.provider-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1rem;
}

/* Loading Overlay */
.loading-modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 53, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #ffffff;
}

.loading-modal.active {
  display: flex;
}

.spinner-custom {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--brand-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 90;
  text-decoration: none;
  transition: var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(6deg);
}

/* Footer */
.footer {
  background: var(--brand-navy);
  color: #ffffff;
  padding: 4rem 0 2rem;
  margin-top: auto;
  border-top: 4px solid var(--brand-gold);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo-desc p {
  color: var(--text-light);
  margin-top: 1rem;
  max-width: 400px;
}

.footer-title {
  font-size: 1.1rem;
  color: var(--brand-gold);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .subject-row {
    grid-template-columns: 1fr 1fr 30px;
  }
  .subject-name-col {
    grid-column: span 3;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.founder-image{
    width:320px;
    height:320px;
    border-radius:50%;
    overflow:hidden;
    border:6px solid #F8D613;
    flex-shrink:0;
}

.founder-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.founder-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;
}
.founder-section{
    background:#111835;
    padding:120px 0;
}

.founder-card{
    background:#1E2B58;
    border-radius:30px;
    padding:60px;
}
.founder-section h2{
    color:#F8FAFC;
}

.founder-section p{
    font-size:25px;
    font-weight:400;
    line-height:2;
    color:#F8FAFC;
}

.founder-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;

    background:#1E2B58;
    border:1px solid rgba(255,255,255,.08);
    border-radius:28px;

    padding:60px;

    box-shadow:0 20px 50px rgba(0,0,0,.15);
}
.founder-card{
    transition:.3s;
}

.founder-card:hover{
    transform:translateY(-6px);
}
.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title::after{

content:"";

display:block;

width:80px;

height:5px;

margin:18px auto;

border-radius:0px;

background:linear-gradient(

90deg,

#F8D613,

#F8D613

);

}



/* ===========================
   Custom Scrollbar - D.BTEC
=========================== */

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0F172A;
}

::-webkit-scrollbar-thumb {
    background: #F8D613;
    border-radius: 999px;
    border: 3px solid #0F172A;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFD700;
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #F8D613 #0F172A;
}

/* Square Cursor - Desktop only (real mouse devices) */
@media (hover: hover) and (pointer: fine) {

  body{
      cursor:none;
  }

  .cursor-box{
      display:block;
  }

  *,
  *::before,
  *::after{
      cursor:none !important;
  }

  a,
  button,
  .btn,
  input,
  textarea,
  select,
  label{
      cursor:none !important;
  }

}

.cursor-box{
    position:fixed;

    width:14px;
    height:14px;

    background:#F8D613;

    border:none;
    border-radius:0;

    pointer-events:none;

    transform:translate(-50%,-50%);

    z-index:999999;
    display:none; /* مخفي افتراضياً، يظهر بس بالديسكتوب */

    transition:
        width .15s ease,
        height .15s ease,
        transform .05s linear;
}

/* Hide system cursor everywhere */

*,
*::before,
*::after{
    cursor:none !important;
}

a,
button,
.btn,
input,
textarea,
select,
label{
    cursor:none !important;
}

body{
    font-family: "IBM Plex Sans Arabic", sans-serif;
}

/* ==========================================
   D.BTEC — Mobile Fixes (Tablets & Phones)
   ========================================== */
@media (max-width: 768px) {

  /* منع أي overflow أفقي عام */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* الهيدر */
  .header-container {
    height: 64px;
  }

  .header-container img {
    width: 130px;
    height: auto;
  }

  .mobile-nav {
    top: 64px;
  }

  /* قسم الهيرو */
  .hero-section {
    padding: 3.5rem 0 3rem;
  }

  .hero-bg-accent {
    width: 300px;
    height: 300px;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
    text-align: center;
  }

  .hero-title {
    font-size: 1.9rem;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
  }

  .hero-section .btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.75rem;
  }

  /* بطاقات الأدوات */
  .tool-card {
    padding: 1.5rem 1.25rem;
  }

  .tool-title {
    font-size: 1.2rem;
  }

  /* الإحصائيات */
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 2rem 0;
  }

  .stat-box {
    padding: 1rem 0.5rem;
  }

  .stat-num {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  /* بطاقة المؤسس */
  .founder-section {
    padding: 3.5rem 0;
  }

  .founder-card {
    flex-direction: column;
    gap: 1.75rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
  }

  .founder-image {
    width: 160px;
    height: 160px;
    border-width: 4px;
  }

  .founder-section p {
    font-size: 1rem;
    line-height: 1.8;
  }

  /* مصطلحات جمل الأمر */
  .search-filter-card {
    padding: 1.1rem;
  }

  .search-input-box input {
    font-size: 1rem;
    padding: 0.9rem 1.25rem 0.9rem 2.5rem;
  }

  .filter-buttons {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }

  .filter-chip {
    flex-shrink: 0;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .verbs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .verb-item-card {
    padding: 1.25rem;
  }

  .verb-english {
    font-size: 1.3rem;
  }

  /* حاسبة المعدل */
  .calc-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .calc-tab-btn {
    flex-shrink: 0;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }

  .calc-card {
    padding: 1.25rem;
  }

  .subject-row {
    gap: 0.5rem;
    padding: 0.75rem 0;
  }

  .input-style {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }

  .result-box {
    padding: 1.75rem 1.25rem;
  }

  .gpa-score {
    font-size: 2.5rem;
  }

  /* محرك البحث عن الصور */
  .provider-card-grid {
    grid-template-columns: 1fr;
  }

  /* الفوتر */
  .footer {
    padding: 2.5rem 0 1.5rem;
  }

  .footer-content {
    gap: 2rem;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }

  /* زر الواتساب العائم */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    bottom: 1.25rem;
    left: 1.25rem;
  }
}

/* شاشات صغيرة جداً (آيفون SE وما شابه) */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .stats-container {
    grid-template-columns: 1fr 1fr;
  }

  .subject-row {
    grid-template-columns: 1fr 1fr 26px;
  }

  .gpa-score {
    font-size: 2.1rem;
  }
}
