/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Deep Academic Navy */
  --blue-900: #0c1f40;
  --blue-800: #102a55;
  --blue-700: #1a3a68;
  --blue-600: #1e4d8c;
  --blue-500: #2462b0;
  --blue-100: #c5d9f0;
  --blue-50:  #e8f0fb;
  /* Academic Gold */
  --orange:      #b8860b;
  --orange-dark: #956c09;
  /* Parchment backgrounds */
  --parchment:    #f2ece0;
  --parchment-50: #faf7f1;
  /* Grays */
  --gray-900: #1a1a2e;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;
  --accent:   #1e4d8c;
  --font: 'Inter', sans-serif;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 10px 30px rgba(0,0,0,.1);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gray-900); background: var(--white); line-height: 1.6; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* === CONTAINER === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* === BRAND NAME === */
.brand-uni,
.brand-block {
  font-weight: 800;
  display: inline;
}
.brand-block {
  animation: block-anim 3s ease-in-out infinite;
}
@keyframes block-anim {
  0%   { color: #f97316; text-shadow: 0 0 10px rgba(249,115,22,.5); }
  25%  { color: #fb923c; text-shadow: 0 0 14px rgba(251,146,60,.6); }
  50%  { color: #ea580c; text-shadow: 0 0 16px rgba(234,88,12,.7); }
  75%  { color: #fdba74; text-shadow: 0 0 12px rgba(253,186,116,.6); }
  100% { color: #f97316; text-shadow: 0 0 10px rgba(249,115,22,.5); }
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-full { width: 100%; text-align: center; }

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,247,241,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2d9c8;
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.15rem; color: var(--blue-700);
}
.nav-logo img { height: 58px; width: auto; }
.logo-fallback { display: none; }
.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-links li a {
  padding: 8px 14px; border-radius: 6px; font-size: .9rem;
  color: var(--gray-700); font-weight: 500;
  transition: background .2s, color .2s;
}
.nav-links li a:hover { background: var(--gray-100); color: var(--gray-900); }
.btn-nav {
  background: var(--orange) !important; color: var(--white) !important;
  padding: 8px 18px !important; border-radius: 8px !important;
}
.btn-nav:hover { background: var(--orange-dark) !important; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--gray-700); border-radius: 2px; transition: .3s;
}

/* === HERO === */
.hero {
  position: relative;
  display: flex; align-items: center;
  padding-top: 68px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #080f20 0%, var(--blue-900) 45%, var(--blue-700) 100%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(184,134,11,.10) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(200,160,20,.07) 0%, transparent 40%);
}
.hero-content {
  position: relative; z-index: 1;
  color: var(--white);
  padding: 32px 0;
  display: flex; align-items: center; gap: 48px;
}
.hero-left {
  flex: 3 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-right {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; justify-content: flex-end;
}
.badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  font-size: .8rem; font-weight: 500;
  color: rgba(255,255,255,.85);
  margin-bottom: 28px;
  letter-spacing: .02em;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 24px;
}
.hero-sub { font-size: 1.4rem; }
.hero-sub {
  font-size: 1.32rem; color: rgba(255,255,255,.8);
  margin: 0 0 36px;
  line-height: 1.7;
  text-align: center;
}
.hero-logo {
  width: min(588px, 100%);
  height: auto;
  margin: 0 auto 32px;
  display: block;
  background: var(--white);
  padding: 14px 22px;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-video-clip {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,.45);
  border: 2px solid rgba(255,255,255,.15);
  position: relative;
}
.video-mute-btn {
  position: absolute; bottom: 10px; right: 10px;
  width: 36px; height: 36px;
  background: rgba(0,0,0,.55); color: var(--white);
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 10;
}
.video-mute-btn:hover { background: rgba(0,0,0,.8); }
.hero-video {
  display: block; width: 100%; height: auto;
  margin-top: -6%;
  margin-bottom: -10%;
}

/* === SECTIONS === */
.section { padding: 60px 0; }
.section-light { background: var(--parchment-50); }
.section-gray  { background: var(--parchment); }
.section-dark  { background: var(--blue-900); color: var(--white); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: #f2e6c0; color: #7a5c08;
  border-radius: 20px; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 12px;
}
.tag-light { background: rgba(184,134,11,.18); color: #f0d070; }
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 16px; }
.section-desc { font-size: 1.05rem; color: var(--gray-500); max-width: 560px; margin: 0 auto; }
.section-header-light .section-desc { color: rgba(255,255,255,.7); }
.section-header-light h2 { color: var(--white); }

/* === ABOUT === */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  margin-bottom: 64px;
}
.about-text p { margin-bottom: 16px; color: var(--gray-700); line-height: 1.75; font-size: 1rem; }
.about-text p:last-child { margin-bottom: 0; }
.objectives h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 20px; color: var(--gray-900); }
.obj-list { display: flex; flex-direction: column; gap: 14px; }
.obj-list li {
  display: flex; gap: 16px; align-items: flex-start;
  background: #e8f0fb;
  border: 1px solid #c5d9f0;
  border-radius: 12px;
  padding: 18px 20px;
}
.obj-icon { font-size: 2.8rem; flex-shrink: 0; }
.obj-list li > div strong { display: block; font-size: .95rem; font-weight: 600; margin-bottom: 4px; color: var(--blue-800); }
.obj-list li > div p { font-size: .88rem; color: var(--gray-700); line-height: 1.6; }

/* Action cards */
.actions-title {
  font-size: 1.6rem; font-weight: 700; margin-bottom: 24px;
  color: var(--gray-900);
}
.actions-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.action-card {
  border-radius: var(--radius); padding: 24px;
  transition: box-shadow .2s, transform .2s;
  border: 1px solid transparent;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.action-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.action-card { background: #fef3c7; border-color: #fde68a; }
.action-icon { font-size: 3.2rem; margin-bottom: 12px; }
.action-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.action-card p { font-size: .85rem; color: var(--gray-700); line-height: 1.6; }

/* === UNIVERSITIES === */
.uni-group-title {
  font-size: .85rem; font-weight: 600; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 16px; margin-top: 40px;
}
.uni-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 8px;
}
.uni-grid-small { grid-template-columns: repeat(3, 1fr); }
.uni-card {
  background: var(--parchment-50); border: 1px solid #ddd5c5;
  border-radius: var(--radius); padding: 6px 20px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
  transition: box-shadow .2s, border-color .2s;
}
.uni-card:hover { box-shadow: var(--shadow); border-color: var(--orange); }
.uni-logo-wrap {
  width: 243px; height: 243px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
a.uni-logo-wrap { cursor: pointer; }
a.uni-logo-wrap:hover img.uni-logo { opacity: .8; transform: scale(1.03); transition: opacity .2s, transform .2s; }
.uni-logo-placeholder {
  width: 243px; height: 243px;
  background: #f2e6c0; color: #7a5c08;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; text-align: center;
  line-height: 1.2;
}
.uni-card img.uni-logo {
  width: 243px; height: 243px; object-fit: contain;
}
.uni-size-uch { width: 305px; } .uni-size-uch img.uni-logo       { width: 305px; height: 305px; }
.uni-size-unmdp { width: 291px; } .uni-size-unmdp img.uni-logo   { width: 291px; height: 291px; }
.uni-size-siglo21 { width: 267px; } .uni-size-siglo21 img.uni-logo { width: 267px; height: 267px; }
.uni-size-utdt { width: 207px; } .uni-size-utdt img.uni-logo     { width: 207px; height: 207px; }
.uni-size-ub { width: 219px; } .uni-size-ub img.uni-logo         { width: 219px; height: 219px; }
.uni-info { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.uni-info h4 { font-size: 1.1rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.uni-location { font-size: .75rem; color: var(--gray-500); }
.uni-social {
  display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; justify-content: center;
}
.uni-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--gray-100); border-radius: 6px;
  font-size: 1.01rem; font-weight: 700; color: var(--gray-700);
  transition: background .2s, color .2s;
  text-decoration: none;
}
.uni-social a:hover { background: var(--orange); color: var(--white); }
.uni-more-btn {
  display: inline-block;
  padding: 7px 18px; border-radius: 6px;
  background: var(--orange); color: var(--white);
  font-size: .82rem; font-weight: 600; text-decoration: none;
  transition: background .2s;
  margin-bottom: 34px;
}
.uni-more-btn:hover { background: var(--orange-dark); }
.uni-card-pending {
  background: #e8f0fb; border: 2px dashed #7aabdc;
  justify-content: center; text-align: center;
}
.pending-icon { display: flex; align-items: center; justify-content: center; }
.uni-card-pending .uni-logo-wrap { border: none; background: none; }
.uni-card-pending h4 { font-size: 1.32rem; }
.uni-card-pending .uni-location { font-size: .9rem; }
.pending-text { font-size: .98rem; color: var(--blue-700); line-height: 1.5; margin-top: 6px; }

.join-banner {
  margin-top: 16px;
  background: #f2e6c0; border: 1px solid #c8a840;
  border-radius: var(--radius); padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.join-banner p { font-size: 1rem; color: var(--gray-700); }

/* === SOCIAL FEEDS === */
.social-feed-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feed-card {
  background: var(--parchment-50); border: 1px solid #ddd5c5;
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.feed-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
  font-weight: 600; font-size: .9rem; color: var(--gray-700);
}
.feed-icon { width: 20px; height: 20px; flex-shrink: 0; }
.feed-body { padding: 16px; flex: 1; }
.feed-body iframe, .feed-body .twitter-tweet { max-width: 100%; }
.feed-placeholder {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 40px 20px; gap: 20px;
  min-height: 200px;
}
.feed-placeholder p { font-size: .88rem; color: var(--gray-500); line-height: 1.65; }
.feed-btn { margin-top: 8px; }

/* === SPONSORS === */
.sponsors-section { padding: 60px 0; }
.sponsors-grid {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
}
.sponsor-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px 36px;
  background: var(--parchment-50); border: 1px solid #ddd5c5;
  border-radius: var(--radius);
  transition: box-shadow .2s, border-color .2s;
  text-decoration: none;
}
.sponsor-card:hover { box-shadow: var(--shadow-md); border-color: var(--orange); }
.sponsor-logo-wrap {
  width: 168px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border-radius: 10px; padding: 4px 7px;
}
.sponsor-logo { width: 100%; height: auto; max-width: none; max-height: none; object-fit: contain; }
.sponsor-placeholder {
  width: 126px; height: 63px;
  background: var(--orange); color: var(--white);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.77rem; font-weight: 700; letter-spacing: .05em;
}
.sponsor-name { font-size: 0.77rem; font-weight: 600; color: var(--gray-600); }
.sponsors-section .section-header { margin-bottom: 34px; }

/* === NEWS === */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news-card {
  background: var(--parchment-50); border: 1px solid #ddd5c5;
  border-radius: var(--radius); padding: 28px;
  transition: box-shadow .2s;
}
.news-card:hover { box-shadow: var(--shadow-md); }
.news-featured { grid-row: span 2; }
.news-tag {
  display: inline-block; padding: 3px 10px;
  background: #f2e6c0; color: #7a5c08;
  border-radius: 4px; font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 10px;
}
.news-card time { display: block; font-size: .8rem; color: var(--gray-500); margin-bottom: 10px; }
.news-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.news-card p { font-size: .88rem; color: var(--gray-600); line-height: 1.7; }

/* Curator.io carousel nav override */
.crt-panel-prev, .crt-panel-next {
  width: 52px !important; height: 52px !important;
  background-color: var(--blue-700) !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: 0 3px 14px rgba(0,0,0,.4) !important;
}
.crt-panel-prev { left: 6px !important; }
.crt-panel-next { right: 6px !important; }
.crt-panel-prev:hover, .crt-panel-next:hover,
.crt-panel-prev:focus, .crt-panel-next:focus {
  background-color: var(--blue-500) !important;
  opacity: 1 !important;
}
.crt-panel-prev svg, .crt-panel-next svg {
  color: var(--white) !important;
  height: 24px !important;
  opacity: 1 !important;
}

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.85); }
.form-group input,
.form-group textarea {
  padding: 11px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: var(--white); font-family: var(--font); font-size: .9rem;
  outline: none; transition: border-color .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.35); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--orange); }
.contact-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 20px; color: var(--white); }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-icon { font-size: 1.2rem; margin-top: 2px; }
.contact-item div strong { display: block; font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.6); margin-bottom: 2px; }
.contact-item div a { color: #e8c84a; font-size: .9rem; }
.contact-item div a:hover { color: var(--white); }
.social-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.social-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; font-size: .88rem; font-weight: 500; color: var(--white);
  transition: background .2s;
}
.social-btn:hover { background: rgba(255,255,255,.14); }
.social-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.info-box {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 18px;
}
.info-box strong { display: block; font-size: .9rem; margin-bottom: 8px; }
.info-box p { font-size: .83rem; color: rgba(255,255,255,.65); line-height: 1.65; }
.mt-32 { margin-top: 32px; }

/* === FOOTER === */
.footer { background: var(--blue-900); border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding: 40px 24px;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand .footer-logo {
  height: 66px; width: auto; max-width: 270px; margin-bottom: 6px;
  background: var(--white);
  padding: 5px 10px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  align-self: flex-start;
}
.footer-name { font-weight: 700; font-size: 1rem; color: var(--white); }
.footer-brand p { font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-links { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-links a { font-size: .85rem; color: rgba(255,255,255,.55); padding: 4px 8px; border-radius: 4px; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65); transition: background .2s, color .2s;
}
.footer-social a:hover { background: rgba(255,255,255,.15); color: var(--white); }
.footer-social svg { width: 16px; height: 16px; }
.nav-sponsor {
  display: flex; align-items: center; gap: 6px;
  text-decoration: none; margin-left: 16px; flex-shrink: 0;
}
.nav-sponsor-label { font-size: .65rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; }
.nav-sponsor-logo { height: 22px; width: auto; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.35); }
.footer-sponsor { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-sponsor span { font-size: .7rem; font-weight: 600; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .05em; }
.footer-sponsor-logo { height: 18px; width: auto; filter: brightness(0) invert(1); opacity: .5; }
.footer-sponsor:hover .footer-sponsor-logo { opacity: .8; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .actions-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { flex-direction: column; }
  .hero-logo { width: min(440px, 85vw); }
  .uni-grid { grid-template-columns: repeat(2, 1fr); }
  .uni-grid-small { grid-template-columns: repeat(2, 1fr); }
  .social-feed-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-social { justify-content: center; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--gray-100);
    padding: 16px 24px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 10px 14px; }
  .nav-toggle { display: flex; }
  .actions-grid { grid-template-columns: 1fr; }
  .uni-grid { grid-template-columns: 1fr; }
  .uni-grid-small { grid-template-columns: 1fr; }
  .join-banner { flex-direction: column; text-align: center; }
  .section { padding: 60px 0; }
}
