/* EQAIC Main Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&family=Open+Sans:wght@300;400;600&display=swap');

:root {
  --color-primary: #1a2238;
  --color-secondary: #1e264b;
  --color-accent: #4a5d8f;
  --color-coral: #4a5d8f;
  --color-purple: #7C3AED;
  --color-bg-light: #EFF6FF;
  --color-bg-white: #FFFFFF;
  --color-bg-gradient: linear-gradient(135deg, #1a2238 0%, #1e264b 50%, #2a3357 100%);
  --color-text-dark: #1e264b;
  --color-text-gray: #475569;
  --color-text-light: #64748B;
  --color-border: #DBEAFE;
  --color-success: #10B981;
  --color-error: #EF4444;
  
  --font-heading: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Open Sans', sans-serif;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: #1e264b;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #1a2238 0%, #1e264b 50%, #4a5d8f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.35rem, 3vw, 1.875rem);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-gray);
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary);
}

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Container & Grid */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1440px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--spacing-md) * -0.5);
}

[class*="col-"] {
  padding: 0 calc(var(--spacing-md) * 0.5);
  width: 100%;
}

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Section Spacing */
.section {
  padding: var(--spacing-3xl) 0;
}

.section-sm {
  padding: var(--spacing-xl) 0;
}

.section-lg {
  padding: 5rem 0;
}

.section-label {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, rgba(30, 38, 75, 0.1), rgba(30, 38, 75, 0.1));
  color: #1e264b;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: var(--spacing-md);
  border: 2px solid rgba(30, 38, 75, 0.2);
}

/* Intro Grid */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-content h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: var(--spacing-lg);
  color: #1e264b;
  line-height: 1.3;
}

.intro-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text-gray);
  margin-bottom: var(--spacing-md);
}

.intro-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg) 0;
  border-top: 2px solid var(--color-border);
  border-bottom: 2px solid var(--color-border);
}

.intro-feature-item {
  text-align: center;
}

.feature-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #1e264b, #1e264b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.feature-text {
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-weight: 600;
}

.intro-image img {
  width: 100%;
  height: auto;
  animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

@media (max-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .intro-features {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-md) 0;
  }
  
  .section-label {
    font-size: 0.75rem;
    padding: 0.375rem 1rem;
  }
  
  .intro-content h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .intro-features {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
  }
  
  .feature-number {
    font-size: 2rem;
  }
  
  .feature-text {
    font-size: 0.8125rem;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  min-height: 44px;
  min-width: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, #1a2238 0%, #1e264b 100%);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(20, 184, 166, 0.39);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e264b 0%, #2a3357 100%);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(20, 184, 166, 0.5);
}

.btn-secondary {
  background: linear-gradient(135deg, #4a5d8f 0%, #4a5d8f 100%);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.39);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #4a5d8f 0%, #4a5d8f 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(245, 158, 11, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: 0 4px 6px -1px rgba(15, 118, 110, 0.08), 0 2px 4px -1px rgba(15, 118, 110, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  border: 1px solid rgba(15, 118, 110, 0.06);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a2238 0%, #1e264b 50%, #4a5d8f 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(15, 118, 110, 0.15), 0 10px 10px -5px rgba(15, 118, 110, 0.08);
  transform: translateY(-8px);
  border-color: rgba(15, 118, 110, 0.15);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.card h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
  color: #1e264b;
}

.card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--color-text-dark);
  font-size: 0.9375rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-dark);
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  min-height: 44px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(62, 146, 204, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  margin-right: var(--spacing-xs);
  min-width: 18px;
  min-height: 18px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50px;
  background: var(--color-bg-light);
  color: var(--color-primary);
}

.badge-success {
  background: #D4EDDA;
  color: var(--color-success);
}

.badge-primary {
  background: #CCE5FF;
  color: var(--color-primary);
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary) !important;
}

.text-secondary {
  color: var(--color-secondary) !important;
}

.text-accent {
  color: var(--color-accent) !important;
}

.bg-white {
  background-color: white;
}

.bg-light {
  background-color: var(--color-bg-light);
}

/* Section Header */
.section-header {
  margin-bottom: 3rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 1rem auto 0;
}

/* Accreditation Cards */
.accreditation-card {
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
}

.card-icon {
  width: 70px;
  height: 70px;
  background: transparent;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  color: #1e264b;
}

.card-icon svg {
  width: 48px;
  height: 48px;
  stroke: #1e264b;
  stroke-width: 2;
}

.card-features {
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) 0;
  flex-grow: 1;
}

.card-features li {
  padding: 0.5rem 0;
  color: var(--color-text-gray);
  font-size: 0.9375rem;
}

.accreditation-card .btn {
  width: 100%;
}

/* Scholarships Preview */
.scholarships-preview {
  background: linear-gradient(135deg, #1e264b 0%, #2a3357 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.scholarships-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(30, 38, 75, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(30, 38, 75, 0.1) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

.scholarships-preview .section-header h2,
.scholarships-preview .section-label {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.scholarships-preview .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.scholarships-preview .card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.scholarships-preview .btn {
  background: white;
  color: #1e264b;
  font-weight: 700;
}

.scholarships-preview .btn:hover {
  background: transparent;
  color: white;
  border: 2px solid white;
}

/* Scholarship Cards */
.scholarship-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.scholarship-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #1e264b 0%, #1e264b 100%);
}

.scholarship-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.scholarship-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.badge-status {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: linear-gradient(135deg, #1e264b 0%, #2a3357 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.badge-amount {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #1e264b, #1e264b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.scholarship-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(30, 38, 75, 0.1) 0%, rgba(30, 38, 75, 0.1) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
  border: 2px solid rgba(30, 38, 75, 0.2);
}

.scholarship-card h3 {
  font-size: 1.375rem;
  color: #1e264b;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.scholarship-desc {
  color: var(--color-text-gray);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.scholarship-meta {
  background: linear-gradient(135deg, rgba(30, 38, 75, 0.05) 0%, rgba(30, 38, 75, 0.05) 100%);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(30, 38, 75, 0.1);
}

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.meta-item:last-child {
  margin-bottom: 0;
}

.meta-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.meta-item > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--color-text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 1rem;
  color: #1e264b;
  font-weight: 700;
}

.btn-scholarship {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #1e264b 0%, #2a3357 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-scholarship:hover {
  background: linear-gradient(135deg, #2a3357 0%, #1e264b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
  color: white;
}

.btn-scholarship .arrow {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.btn-scholarship:hover .arrow {
  transform: translateX(5px);
}

@media (max-width: 767px) {
  .scholarship-card {
    padding: 1.5rem;
  }
  
  .badge-amount {
    font-size: 1.25rem;
  }
  
  .scholarship-card h3 {
    font-size: 1.25rem;
  }
  
  .scholarship-meta {
    padding: 1rem;
  }
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.pt-1 { padding-top: var(--spacing-sm); }
.pt-2 { padding-top: var(--spacing-md); }
.pt-3 { padding-top: var(--spacing-lg); }
.pt-4 { padding-top: var(--spacing-xl); }

.pb-1 { padding-bottom: var(--spacing-sm); }
.pb-2 { padding-bottom: var(--spacing-md); }
.pb-3 { padding-bottom: var(--spacing-lg); }
.pb-4 { padding-bottom: var(--spacing-xl); }

.stack > * + * {
  margin-top: var(--spacing-md);
}

.embed-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.embed-responsive iframe,
.embed-responsive video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
}

table th,
table td {
  padding: var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

table th {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
}

table tr:hover {
  background: var(--color-bg-light);
}
