/* ==========================================================
   AIEH Home — frontend styles
   All selectors prefixed with .aieh- to avoid conflicts.
   ========================================================== */

/* ----- Full-width / standalone wrappers -----
   Breaks out of common theme containers so the home page can
   display edge-to-edge without Elementor. */
body.aieh-fullwidth-page .site-content,
body.aieh-fullwidth-page .content-area,
body.aieh-fullwidth-page .entry-content,
body.aieh-fullwidth-page .entry-header,
body.aieh-fullwidth-page main#main,
body.aieh-fullwidth-page main.site-main,
body.aieh-fullwidth-page article.page{
  max-width:none !important;
  width:100% !important;
  padding:0 !important;
  margin:0 !important;
}
body.aieh-fullwidth-page .entry-title,
body.aieh-fullwidth-page .page-header,
body.aieh-fullwidth-page .sidebar,
body.aieh-fullwidth-page #secondary{
  display:none !important;
}
.aieh-fullwidth-wrapper{ width:100%; }

.aieh-root { width:100%; }
.aieh-root *,
.aieh-root *::before,
.aieh-root *::after { box-sizing:border-box; }

/* ---------------- HERO ---------------- */
.aieh-hero{
  position:relative;
  width:100%;
  min-height:50px;
  display:flex;
  justify-content:center;
  align-items:center;
  background:linear-gradient(135deg, var(--aieh-hero-from) 0%, var(--aieh-hero-mid) 50%, var(--aieh-hero-to) 100%);
  overflow:hidden;
  font-family:'Montserrat', sans-serif;
  text-align:center;
  padding:0 10px;
  border-radius:8px;
}
.aieh-hero-shape{
  position:absolute;
  background:rgba(255,255,255,.03);
  border-radius:50%;
  animation:aieh-float 20s infinite linear;
  z-index:1;
}
.aieh-hero-shape-1{ width:300px; height:300px; top:-50px; left:-50px; animation-duration:25s; }
.aieh-hero-shape-2{ width:200px; height:200px; bottom:-30px; right:10%; animation-duration:18s; animation-delay:-5s; }
.aieh-hero-shape-3{ width:100px; height:100px; top:20%; right:20%; animation-duration:22s; animation-delay:-10s; }

.aieh-hero-content{
  position:relative;
  z-index:10;
  color:var(--aieh-hero-text);
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:15px;
}
.aieh-hero-title{
  font-family:'Playfair Display', serif;
  font-size:1.4rem;
  font-weight:700;
  color:var(--aieh-hero-text);
  margin:0;
  line-height:1;
  opacity:0;
  animation:aieh-enter-exit 5s cubic-bezier(.4,0,.2,1) infinite;
  text-shadow:0 4px 10px rgba(0,0,0,.3);
}
.aieh-hero-title span{
  color:var(--aieh-hero-accent);
  display:inline-block;
  animation:aieh-gold-shine 5s ease-in-out infinite;
}
.aieh-hero-subtitle{
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:2px;
  color:#e0e0e0;
  font-weight:300;
  opacity:0;
  animation:aieh-enter-exit 5s cubic-bezier(.4,0,.2,1) infinite;
  animation-delay:.2s;
  border-left:1px solid var(--aieh-hero-accent);
  padding-left:15px;
  height:20px;
  display:flex;
  align-items:center;
}

@keyframes aieh-float{
  0%  { transform:translate(0,0) rotate(0deg); }
  50% { transform:translate(20px,40px) rotate(180deg); }
  100%{ transform:translate(0,0) rotate(360deg); }
}
@keyframes aieh-enter-exit{
  0%  { opacity:0; transform:translateY(30px); }
  15% { opacity:1; transform:translateY(0); }
  80% { opacity:1; transform:translateY(0); }
  100%{ opacity:0; transform:translateY(-30px); }
}
@keyframes aieh-gold-shine{
  0%,15%,85%,100%{ text-shadow:0 0 0 transparent; }
  50%           { text-shadow:0 0 15px rgba(255,215,0,.8); }
}

@media (max-width:768px){
  .aieh-hero-title{ font-size:1.1rem; }
  .aieh-hero-subtitle{ font-size:.6rem; letter-spacing:1px; padding-left:10px; }
  .aieh-hero-shape-1{ width:100px; height:100px; }
}
@media (max-width:480px){
  .aieh-hero-content{ flex-direction:column; gap:2px; }
  .aieh-hero-title{ font-size:1.2rem; }
  .aieh-hero-subtitle{ font-size:.6rem; letter-spacing:1px; border-left:none; padding-left:0; height:auto; }
}

/* ---------------- PORTAL ---------------- */
.aieh-portal{ width:100%; }
.aieh-portal-inner{
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width:1600px;
  margin:10px auto;
  padding:20px 40px;
  text-align:center;
}
.aieh-portal-header h1{
  color:#0073aa;
  font-weight:700;
  margin-bottom:10px;
  font-size:2.5rem;
}
.aieh-portal-header p{
  color:#666;
  font-size:1.1rem;
  max-width:600px;
  margin:0 auto 40px auto;
}
.aieh-portal-grid{
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
}
.aieh-portal-card{
  background:#fff;
  border-radius:10px;
  box-shadow:0 8px 20px rgba(0,0,0,.07);
  flex:1 1 180px;
  min-width:180px;
  max-width:220px;
  padding:24px 14px;
  text-decoration:none;
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-top:4px solid var(--aieh-c1, #0073aa);
  border-bottom:2px solid var(--aieh-c1, #0073aa);
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.aieh-portal-card:hover{
  transform:translateY(-8px);
  box-shadow:0 16px 32px rgba(0,0,0,.13);
}
.aieh-portal-icon{
  width:52px; height:52px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:22px; margin-bottom:14px;
  transition:transform .4s ease;
  background:linear-gradient(135deg, var(--aieh-c1, #0073aa) 0%, var(--aieh-c2, #005177) 100%);
  box-shadow:0 6px 12px rgba(0,0,0,.12);
}
.aieh-portal-card:hover .aieh-portal-icon{ transform:scale(1.1) rotate(5deg); }
.aieh-portal-title{
  color:#333; font-size:1rem; font-weight:700;
  margin-bottom:6px; display:block; line-height:1.3;
}
.aieh-portal-desc{
  color:#777; font-size:.78rem; line-height:1.45;
  margin-bottom:16px; display:block; flex-grow:1;
}
.aieh-portal-btn{
  padding:7px 14px; border-radius:24px;
  background:#f4f4f4; color:#555; font-weight:600;
  text-transform:uppercase; font-size:.65rem; letter-spacing:.8px;
  transition:all .3s ease; white-space:nowrap;
  display:inline-flex; align-items:center; gap:5px;
}
.aieh-portal-card:hover .aieh-portal-btn{
  background:var(--aieh-c1, #0073aa);
  color:#fff;
}

@media (max-width:1200px){
  .aieh-portal-inner{ padding:20px 30px; }
  .aieh-portal-card{ flex:1 1 170px; min-width:170px; max-width:210px; }
}
@media (max-width:992px){
  .aieh-portal-inner{ padding:20px 24px; }
  .aieh-portal-card{ flex:1 1 160px; min-width:150px; max-width:200px; padding:20px 12px; }
  .aieh-portal-icon{ width:46px; height:46px; font-size:20px; margin-bottom:10px; }
}
@media (max-width:768px){
  .aieh-portal-inner{ padding:20px 16px; }
  .aieh-portal-grid{ gap:12px; }
  .aieh-portal-card{ flex:1 1 calc(50% - 6px); min-width:0; max-width:none; }
  .aieh-portal-header h1{ font-size:1.8rem; }
}
@media (max-width:480px){
  .aieh-portal-inner{ padding:16px 12px; }
  .aieh-portal-card{ padding:18px 10px; }
  .aieh-portal-title{ font-size:.9rem; }
  .aieh-portal-desc{ font-size:.72rem; }
}

/* ---------------- INSTITUTIONS ---------------- */
.aieh-inst{ background:#f8fafc; padding:40px 0; }
.aieh-inst-inner{
  max-width:1280px; margin:0 auto; padding:0 40px;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.aieh-inst-header{ text-align:center; margin-bottom:20px; }
.aieh-inst-header h2{
  font-size:1.6rem; font-weight:700; color:#0f172a; margin:0 0 6px;
}
.aieh-inst-header p{ color:#64748b; margin:0; font-size:.9rem; }

/* Filter buttons */
.aieh-inst-filter{
  display:flex; flex-wrap:wrap; justify-content:center;
  gap:6px; margin:0 0 22px;
}
.aieh-inst-filter-btn{
  background:#fff;
  border:1px solid #e2e8f0;
  color:#475569;
  padding:6px 14px;
  border-radius:999px;
  font-size:.78rem; font-weight:600;
  cursor:pointer;
  transition:all .25s ease;
  font-family:inherit;
}
.aieh-inst-filter-btn:hover{
  background:#f1f5f9;
  border-color:#cbd5e1;
  color:#0f172a;
}
.aieh-inst-filter-btn.aieh-is-active{
  background:#0f172a;
  border-color:#0f172a;
  color:#fff;
  box-shadow:0 4px 10px rgba(15,23,42,.15);
}

.aieh-inst-grid{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:16px;
}
.aieh-inst-card{
  flex:1 1 200px;
  max-width:240px;
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 2px 6px rgba(15,23,42,.05);
  border:1px solid #e2e8f0;
  display:flex; flex-direction:column;
  transition:box-shadow .3s ease, transform .3s ease;
}
.aieh-inst-card:hover{
  box-shadow:0 14px 28px rgba(15,23,42,.13);
  transform:translateY(-3px);
}
.aieh-inst-img-wrap{
  position:relative;
  height:130px;
  overflow:hidden;
}
.aieh-inst-img-wrap img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .7s ease;
  display:block;
}
.aieh-inst-card:hover .aieh-inst-img-wrap img{ transform:scale(1.08); }
.aieh-inst-overlay{
  position:absolute; inset:0;
  background:rgba(0,0,0,.1);
  transition:background .3s ease;
}
.aieh-inst-card:hover .aieh-inst-overlay{ background:rgba(0,0,0,0); }
.aieh-inst-name{
  position:absolute; top:10px; right:10px;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  padding:4px 10px; border-radius:999px;
  font-size:.65rem; font-weight:700;
  color:var(--aieh-inst-accent, #4f46e5);
  text-transform:uppercase; letter-spacing:.3px;
  border:1px solid color-mix(in srgb, var(--aieh-inst-accent, #4f46e5) 20%, transparent);
  box-shadow:0 1px 3px rgba(0,0,0,.08);
  text-align:center;
}
.aieh-inst-body{ padding:12px; }
.aieh-inst-btn{
  display:flex; align-items:center; justify-content:center; gap:6px;
  width:100%;
  border:1px solid color-mix(in srgb, var(--aieh-inst-accent, #4f46e5) 35%, transparent);
  background:var(--aieh-inst-soft, #eef2ff);
  color:var(--aieh-inst-accent, #4f46e5);
  font-weight:700;
  padding:7px 12px;
  border-radius:8px;
  text-decoration:none;
  font-size:.8rem;
  transition:all .25s ease;
}
.aieh-inst-btn:hover{
  background:var(--aieh-inst-accent, #4f46e5);
  color:#fff;
  border-color:var(--aieh-inst-accent, #4f46e5);
  box-shadow:0 8px 16px color-mix(in srgb, var(--aieh-inst-accent, #4f46e5) 25%, transparent);
}

@media (max-width:992px){
  .aieh-inst-inner{ padding:0 24px; }
  .aieh-inst-grid{ gap:14px; }
  .aieh-inst-card{ flex:1 1 180px; max-width:220px; }
  .aieh-inst-img-wrap{ height:120px; }
}
@media (max-width:768px){
  .aieh-inst{ padding:30px 0; }
  .aieh-inst-inner{ padding:0 16px; }
  .aieh-inst-grid{ gap:12px; }
  .aieh-inst-card{ flex:1 1 150px; max-width:200px; }
  .aieh-inst-img-wrap{ height:110px; }
  .aieh-inst-body{ padding:10px; }
  .aieh-inst-header h2{ font-size:1.4rem; }
}
@media (max-width:480px){
  .aieh-inst-inner{ padding:0 12px; }
  .aieh-inst-grid{ gap:10px; }
  .aieh-inst-card{ flex:1 1 calc(50% - 5px); max-width:calc(50% - 5px); }
  .aieh-inst-img-wrap{ height:95px; }
  .aieh-inst-name{ font-size:.55rem; padding:3px 7px; }
  .aieh-inst-btn{ font-size:.72rem; padding:6px 8px; }
}

/* ---------------- FEATURES ---------------- */
.aieh-features{
  background:#f8fafc;
  border-top:1px solid #e2e8f0;
  padding:96px 0;
}
.aieh-features-inner{
  max-width:1152px;
  margin:0 auto;
  padding:0 20px;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.aieh-features-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:center;
}
.aieh-features-eyebrow{
  color:var(--aieh-feat-accent, #10b981);
  font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; font-size:.85rem;
}
.aieh-features-heading{
  font-size:2.25rem;
  font-weight:700;
  color:#0f172a;
  margin:8px 0 24px;
  line-height:1.2;
}
.aieh-features-desc{
  color:#475569;
  margin:0 0 32px;
  line-height:1.6;
}
.aieh-features-list{
  display:flex; flex-direction:column; gap:32px;
}
.aieh-features-item{ display:flex; gap:20px; align-items:flex-start; }
.aieh-features-icon{
  flex-shrink:0;
  background:#fff;
  padding:16px;
  border-radius:12px;
  box-shadow:0 4px 6px rgba(0,0,0,.06);
  color:var(--aieh-feat-accent, #10b981);
  border:1px solid #e2e8f0;
  font-size:1.2rem;
  line-height:1;
  display:flex; align-items:center; justify-content:center;
  min-width:56px; min-height:56px;
}
.aieh-features-item h4{
  font-size:1.125rem;
  font-weight:700;
  color:#0f172a;
  margin:0 0 6px;
}
.aieh-features-item p{
  color:#475569;
  font-size:.9rem;
  line-height:1.6;
  margin:0;
}
.aieh-features-visual{ position:relative; }
.aieh-features-img-back-1,
.aieh-features-img-back-2{
  position:absolute;
  inset:-16px;
  background:color-mix(in srgb, var(--aieh-feat-accent, #10b981) 10%, transparent);
  border-radius:16px;
  z-index:1;
}
.aieh-features-img-back-1{ transform:rotate(3deg); }
.aieh-features-img-back-2{ transform:rotate(-2deg) scale(.95); }
.aieh-features-img{
  position:relative;
  z-index:2;
  border-radius:12px;
  box-shadow:0 25px 50px rgba(0,0,0,.25);
  width:100%;
  height:500px;
  object-fit:cover;
  display:block;
}
.aieh-features-badge{
  position:absolute;
  bottom:-24px; left:-24px;
  background:#fff;
  padding:14px 18px;
  border-radius:12px;
  box-shadow:0 20px 40px rgba(0,0,0,.15);
  border:1px solid #e2e8f0;
  display:flex; align-items:center; gap:14px;
  z-index:3;
  animation:aieh-feat-bounce 2.5s ease-in-out infinite;
}
.aieh-features-badge-icon{
  background:#fef3c7;
  color:#ca8a04;
  padding:10px;
  border-radius:999px;
  font-size:1.2rem;
  line-height:1;
  display:flex; align-items:center; justify-content:center;
  min-width:40px; min-height:40px;
}
.aieh-features-badge-val{
  font-weight:700; color:#0f172a; font-size:1.125rem; line-height:1.2;
}
.aieh-features-badge-lbl{
  font-size:.7rem; color:#64748b; font-weight:600; text-transform:uppercase;
}
@keyframes aieh-feat-bounce{
  0%,100% { transform:translateY(0); }
  50%     { transform:translateY(-6px); }
}

@media (max-width:900px){
  .aieh-features{ padding:60px 0; }
  .aieh-features-grid{ grid-template-columns:1fr; gap:40px; }
  .aieh-features-heading{ font-size:1.75rem; }
  .aieh-features-img{ height:360px; }
}
@media (max-width:480px){
  .aieh-features-badge{ left:0; bottom:-18px; padding:10px 14px; }
  .aieh-features-img{ height:280px; }
}
