/* Shared visual language for every Edu.Gate service page. */
:root {
  --bg-gradient-start: #e0f2fe;
  --bg-gradient-end: #bae6fd;
  --glass-card: rgba(255, 255, 255, .58);
  --glass-border: rgba(255, 255, 255, .65);
  --brand-blue: #0284c7;
  --brand-indigo: #4f46e5;
  --text-dark: #0f172a;
  --text-muted: #334155;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif; color: var(--text-dark);
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  background-attachment: fixed;
}
.container { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
a { color: inherit; }

/* Header mirrors the landing page's frosted navigation. */
.header {
  position: sticky; top: 0; z-index: 1000; padding: 12px 0;
  background: rgba(255,255,255,.45); border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px); box-shadow: 0 4px 30px rgba(15,23,42,.05);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo, .footer-logo { display: flex; align-items: center; gap: 12px; }
.logo-img, .logo img { width: 74px; height: 74px; object-fit: contain; border-radius: 12px; }
.logo h1, .logo-text h1 { margin: 0; color: var(--text-dark); font-size: 1.55rem; font-weight: 900; }
.logo-text p { margin: 3px 0 0; color: var(--brand-blue); font-size: .78rem; font-weight: 700; }
.main-nav ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 18px; margin: 0; padding: 0; list-style: none; }
.main-nav a { text-decoration: none; font-weight: 700; color: var(--text-dark); transition: color .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--brand-blue); }
.lang-switcher { position: fixed; inset: 17px 22px auto auto; z-index: 1100; display: flex; gap: 5px; }
[dir="rtl"] .lang-switcher { inset-inline: 22px auto; }
.lang-btn { padding: 6px 10px; border: 1px solid var(--glass-border); border-radius: 7px; text-decoration: none; font-weight: 800; font-size: .75rem; background: rgba(255,255,255,.4); }
.lang-btn.active { color: #fff; background: linear-gradient(135deg, var(--brand-blue), var(--brand-indigo)); }
.mobile-menu-btn { display: none; color: var(--brand-blue); font-size: 1.5rem; }

.page-header { padding: 84px 0 56px; text-align: center; }
.page-header h1 { max-width: 900px; margin: 0 auto 14px; font-size: clamp(2.15rem, 5vw, 3.75rem); font-weight: 900; letter-spacing: -.04em; }
.page-header p { max-width: 780px; margin: 9px auto; color: var(--text-muted); font-size: 1.06rem; line-height: 1.7; }
.page-subtitle { font-weight: 600; }
section:not(.page-header) { padding: 34px 0; }
.section-title { margin: 0 0 28px; text-align: center; font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 900; }
.service-intro .intro-content, .about-content, .innovation-content {
  max-width: 950px; margin-inline: auto; padding: 32px 36px; text-align: center;
  background: var(--glass-card); border: 1px solid var(--glass-border); border-radius: 24px;
  box-shadow: 0 14px 32px rgba(15,23,42,.06); backdrop-filter: blur(14px);
}
.intro-content h2, .innovation-content h2 { margin-top: 0; font-size: 1.75rem; }
.intro-content p, .innovation-content p { color: var(--text-muted); line-height: 1.8; }

/* All service grids receive the same elevated cards regardless of page-specific class names. */
.diplomas-grid, .languages-grid, .services-grid, .courses-grid, .programs-grid,
.workshops-grid, .chefs-grid, .specialties-grid, .facilities-grid, .labs-grid,
.products-grid, .stories-grid, .mentors-grid, .team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px;
}
.diploma-card, .language-card, .service-card, .course-card, .program-card,
.workshop-card, .chef-card, .specialty-card, .facility-card, .lab-card,
.product-card, .story-card, .mentor-card, .team-card, .consultation-card,
.service-item, .tile-3d {
  position: relative; height: 100%; padding: 28px; overflow: hidden;
  background: var(--glass-card); border: 1px solid var(--glass-border); border-radius: 20px;
  box-shadow: 0 10px 25px rgba(15,23,42,.045); backdrop-filter: blur(12px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.diploma-card::before, .language-card::before, .service-card::before, .course-card::before, .program-card::before, .workshop-card::before, .specialty-card::before, .consultation-card::before, .service-item::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--brand-blue), var(--brand-indigo)); }
[dir="rtl"] .diploma-card::before, [dir="rtl"] .language-card::before, [dir="rtl"] .service-card::before, [dir="rtl"] .course-card::before, [dir="rtl"] .program-card::before, [dir="rtl"] .workshop-card::before, [dir="rtl"] .specialty-card::before, [dir="rtl"] .consultation-card::before, [dir="rtl"] .service-item::before { inset-inline: auto 0; }
.diploma-card:hover, .language-card:hover, .service-card:hover, .course-card:hover, .program-card:hover, .workshop-card:hover, .chef-card:hover, .specialty-card:hover, .facility-card:hover, .lab-card:hover, .product-card:hover, .story-card:hover, .mentor-card:hover, .team-card:hover, .consultation-card:hover, .service-item:hover, .tile-3d:hover { transform: translateY(-7px); border-color: rgba(2,132,199,.48); box-shadow: 0 18px 34px rgba(2,132,199,.14); }
.diploma-card h3, .language-card h3, .service-card h3, .course-card h3, .program-card h3, .workshop-card h3, .chef-card h3, .specialty-card h3, .facility-card h3, .lab-card h3, .product-card h3, .story-card h3, .mentor-card h3, .service-item h3 { margin-top: 0; font-size: 1.22rem; }
.diploma-card p, .language-card p, .service-card p, .course-card p, .program-card p, .workshop-card p, .chef-card p, .specialty-card p, .facility-card p, .lab-card p, .product-card p, .story-card p, .mentor-card p, .service-item p { color: var(--text-muted); line-height: 1.7; }
.diploma-details, .course-details, .program-details, .service-details { margin: 18px 0 0; padding: 0; list-style: none; color: var(--text-muted); line-height: 2; }
.diploma-details i, .course-details i, .program-details i, .service-icon, .service-card i { color: var(--brand-blue); }
.service-icon { margin-bottom: 14px; font-size: 2.15rem; }
.service-link, .btn, .submit-btn { display: inline-block; margin-top: 14px; padding: 10px 17px; border: 0; border-radius: 9px; color: #fff; background: linear-gradient(135deg, var(--brand-blue), var(--brand-indigo)); box-shadow: 0 8px 18px rgba(2,132,199,.2); text-decoration: none; font: inherit; font-weight: 800; cursor: pointer; }

#booking, .contact-section, .registration-section { width: min(780px, calc(100% - 48px)); margin: 40px auto; padding: 32px; background: var(--glass-card); border: 1px solid var(--glass-border); border-radius: 24px; box-shadow: 0 14px 32px rgba(15,23,42,.06); }
#booking h2, .contact-section h2, .registration-section h2 { margin-top: 0; text-align: center; }
.form-group { margin-bottom: 16px; } .form-group label { display: block; margin-bottom: 7px; font-weight: 700; }
input, select, textarea { width: 100%; padding: 12px; color: var(--text-dark); border: 1px solid rgba(148,163,184,.5); border-radius: 9px; background: rgba(255,255,255,.7); font: inherit; }
textarea { min-height: 125px; resize: vertical; }

.footer { margin-top: 54px; padding: 44px 0 20px; color: var(--text-muted); background: rgba(255,255,255,.43); border-top: 1px solid var(--glass-border); backdrop-filter: blur(14px); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.footer-logo img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; }.footer h3, .footer h4 { margin-top: 0; color: var(--text-dark); }.footer-links { margin: 0; padding: 0; list-style: none; }.footer-links li { margin: 9px 0; }.footer a { text-decoration: none; }.footer a:hover { color: var(--brand-blue); }.contact-info p { line-height: 1.65; }.social-links { display: flex; flex-wrap: wrap; gap: 8px; }.social-links a { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--glass-border); border-radius: 9px; background: rgba(255,255,255,.4); }.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(148,163,184,.25); font-size: .9rem; }
@media (max-width: 820px) { .header .container { flex-direction: column; gap: 12px; }.main-nav ul { justify-content: center; gap: 11px; }.lang-switcher { position: static; justify-content: center; margin: 10px 0 -2px; }.page-header { padding-top: 55px; }.logo-img, .logo img { width: 56px; height: 56px; } }
@media (max-width: 520px) { .container { width: min(100% - 30px, 1280px); }.page-header { padding: 44px 0 26px; } section:not(.page-header) { padding: 24px 0; }.service-intro .intro-content, .about-content, .innovation-content, #booking, .contact-section, .registration-section { padding: 23px 20px; }.diplomas-grid, .languages-grid, .services-grid, .courses-grid, .programs-grid, .workshops-grid, .chefs-grid, .specialties-grid, .facilities-grid, .labs-grid, .products-grid, .stories-grid, .mentors-grid { grid-template-columns: 1fr; }.main-nav ul { font-size: .88rem; }.footer-bottom { text-align: center; justify-content: center; } }
