/* ===== AMJAD ACADEMY - GLOBAL STYLES ===== */

/* --- Base Typography --- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif !important;
  font-size: 1rem;
  line-height: 1.85;
  color: #1E1B4B;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #FAFAFA;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', sans-serif !important;
  font-weight: 700;
  line-height: 1.4;
  color: #1E1B4B;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }

p {
  font-family: 'Cairo', sans-serif !important;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #374151;
}

a {
  font-family: 'Cairo', sans-serif !important;
  transition: all 0.25s ease;
}

/* --- Bootstrap Focus Overrides --- */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #7C3AED;
  outline: none;
}

/* --- Form Controls --- */
.form-control, .form-select {
  font-family: 'Cairo', sans-serif !important;
  font-size: 1rem;
  border-radius: 10px;
  border: 1.5px solid #E0D9F7;
  padding: 10px 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  color: #1E1B4B;
}

.form-control:focus, .form-select:focus {
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.form-label {
  font-family: 'Cairo', sans-serif !important;
  font-weight: 600;
  color: #4C1D95;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

/* --- Buttons --- */
.btn {
  font-family: 'Cairo', sans-serif !important;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 24px;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  border: none;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6D28D9, #4C1D95);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  color: white;
}

/* --- Cards --- */
.card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(124, 58, 237, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Cairo', sans-serif !important;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(124, 58, 237, 0.15);
}

.card-title {
  font-family: 'Cairo', sans-serif !important;
  font-weight: 700;
  color: #1E1B4B;
  font-size: 1.1rem;
}

.card-text {
  font-family: 'Cairo', sans-serif !important;
  color: #4B5563;
  line-height: 1.8;
}

/* --- Section Spacing --- */
section {
  padding: 70px 0;
}

/* --- Section Headings --- */
.section-title {
  font-family: 'Cairo', sans-serif !important;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #1E1B4B;
  margin-bottom: 12px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #7C3AED, #C4B5FD);
  border-radius: 4px;
  margin: 10px auto 0;
}

.section-subtitle {
  font-family: 'Cairo', sans-serif !important;
  font-size: 1.1rem;
  color: #6B7280;
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto;
}

/* --- Badges --- */
.badge {
  font-family: 'Cairo', sans-serif !important;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
}

/* --- Tables --- */
.table {
  font-family: 'Cairo', sans-serif !important;
  font-size: 0.97rem;
}

.table th {
  font-weight: 700;
  color: #4C1D95;
  background: #F5F3FF;
  border-color: #EDE9FE;
}

.table td {
  vertical-align: middle;
  color: #374151;
  border-color: #F3F4F6;
}

/* --- Alerts --- */
.alert {
  font-family: 'Cairo', sans-serif !important;
  border-radius: 12px;
  border: none;
  font-size: 0.97rem;
  padding: 14px 20px;
}

/* --- Nav Tabs --- */
.nav-tabs .nav-link {
  font-family: 'Cairo', sans-serif !important;
  font-weight: 600;
  color: #6B7280;
  border: none;
  padding: 10px 20px;
  border-radius: 8px 8px 0 0;
}

.nav-tabs .nav-link.active {
  color: #7C3AED;
  background: #F5F3FF;
  border-bottom: 3px solid #7C3AED;
}

/* --- Lists --- */
ul, ol, li {
  font-family: 'Cairo', sans-serif !important;
}

/* --- Responsive Images --- */
@media (max-width: 768px) {
    .img {
        width: 100%;
        height: 100px;
    }
}

@media (min-width: 769px) {
    .img {
        width: 50%;
        height: 100px;
    }
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F5F3FF;
}

::-webkit-scrollbar-thumb {
  background: #C4B5FD;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7C3AED;
}

/* --- Selection Color --- */
::selection {
  background: #DDD6FE;
  color: #4C1D95;
}

/* --- Transitions --- */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}