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

:root {
  --blue-dark: #0D2A6B;
  --gold: #F5C842;
  --white: #FFFFFF;
}

html, body {
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
}

.bg {
  min-height: 100vh;
  background: url('FYF.jpg') center center / cover no-repeat fixed;
  position: relative;
  display: flex;
  flex-direction: column;
}

.bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 20, 60, 0.85) 0%,
    rgba(8, 20, 60, 0.72) 50%,
    rgba(8, 20, 60, 0.90) 100%
  );
  backdrop-filter: blur(8px);
  z-index: 0;
}

* { position: relative; z-index: 1; }

header {
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  border-bottom: 2px solid rgba(245, 200, 66, 0.35);
  background: rgba(8, 20, 60, 0.45);
  backdrop-filter: blur(8px);
}

.logo-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2.5px solid var(--gold);
  overflow: hidden;
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0px rgba(245,200,66,0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(245,200,66,0); }
}

.logo-wrap img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.header-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
}

.header-text p {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.header-date {
  margin-left: auto;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

.hero {
  text-align: center;
  padding: 3.5rem 1.5rem 1.8rem;
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  color: var(--white);
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.gold-line {
  width: 52px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1rem auto 0.9rem;
}

.hero p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

.main {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  width: 100%;
  flex: 1;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.1rem;
  text-align: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.2rem;
}

.card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px;
  padding: 1.8rem 1.4rem 1.5rem;
  text-decoration: none;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  animation: card-in 0.5s ease both;
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, var(--gold));
  border-radius: 20px 20px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
  z-index: 2;
}

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

.card:nth-child(1) { animation-delay: 0.06s; }
.card:nth-child(2) { animation-delay: 0.13s; }
.card:nth-child(3) { animation-delay: 0.20s; }
.card:nth-child(4) { animation-delay: 0.27s; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255,255,255,0.32);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.card p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.55;
}

.card-btn {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-btn span { transition: transform 0.2s; }
.card:hover .card-btn span { transform: translateX(4px); }

.card-g12    { --card-accent: #60A5FA; }
.card-cg     { --card-accent: #34D399; }
.card-dept   { --card-accent: #A78BFA; }
.card-member { --card-accent: #FCD34D; }
.card-service { --card-accent: #F43F5E; }

footer {
  text-align: center;
  padding: 1.1rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.32);
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(8,20,60,0.4);
  backdrop-filter: blur(6px);
}

footer span { color: var(--gold); }

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .header-date { display: none; }
}
@media (max-width: 340px) {
  .cards-grid { grid-template-columns: 1fr; }
}
