/* Erasmus+ Georgia Hub Core Style Override - PREMIUM BLACK THEME */
:root {
  --primary: #FFFFFF;    /* Pure white text for headings */
  --accent: #E11D48;     /* Vibrant Editorial Crimson Red */
  --bg: #09090B;         /* Sleek, deep zinc black canvas background */
  --secondary: #18181B;  /* Matte dark gray for glassmorphic cards */
  --text-main: #F4F4F5;  /* Crisp off-white for main body text */
  --text-muted: #A1A1AA; /* Muted slate gray for secondary info */
  --font-display: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(225, 29, 72, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 4rem;
}

/* Background Ambient Orbs (Exquisite galactic gradient glows) */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 1;
  opacity: 0.1;
  pointer-events: none;
}

.orb-1 {
  top: -15%;
  left: -15%;
  width: 600px;
  height: 600px;
  background-color: var(--accent);
}

.orb-2 {
  bottom: 5%;
  right: -10%;
  width: 700px;
  height: 700px;
  background-color: #3B82F6; /* Premium royal blue */
}

/* Page Layout Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 10;
}

/* Flag Accent Top Strip */
.flag-strip {
  width: 80px;
  height: 6px;
  background: var(--accent);
  border-radius: 3px;
  margin-bottom: 1.5rem;
}

/* Header */
.header {
  margin-top: 3rem;
  margin-bottom: 5rem;
  max-width: 800px;
  animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tagline {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.main-title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.accent-text {
  color: var(--accent);
  position: relative;
}

.divider {
  width: 120px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.8;
}

/* Portal Card Grid */
.portal-grid {
  display: grid;
  grid-template-cols: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 6rem;
  animation: slideUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.15s;
}

/* Portal Cards */
.portal-card {
  text-decoration: none;
  background-color: var(--secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.portal-card:hover {
  transform: translateY(-8px);
  border-color: rgba(225, 29, 72, 0.3);
  box-shadow: var(--shadow-lg);
  background-color: #1E1E24;
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-card:hover .card-image {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(9, 9, 11, 0.8));
  z-index: 5;
}

.card-content {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.portal-card:hover .card-title {
  color: var(--accent);
}

.card-description {
  font-size: 0.925rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-card:hover .card-link {
  transform: translateX(6px);
  color: var(--accent);
}

/* Footer */
.footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2.5rem;
  animation: fadeIn 1.5s ease both;
  animation-delay: 0.4s;
}

/* Keyframes */
@keyframes slideUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 0.5; }
}

/* Responsive Scaling */
@media (max-width: 768px) {
  .main-title {
    font-size: 2.85rem;
  }
  .header {
    margin-top: 1.5rem;
    margin-bottom: 3.5rem;
  }
}
