/* -------------------------------------------------------------
 * Student Group "Bloom" - Official Homepage Stylesheet
 * Brand Colors: White, Gold (Main), Green (Accent)
 * Design Style: Premium Light Luxury, Elegant Typography, Micro-animations
 * ------------------------------------------------------------- */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Design Tokens & Theme Variables */
:root {
  --color-bg-pure: #ffffff;
  --color-bg-warm: #fdfdfb;
  --color-bg-soft: #f6f6f2;
  --color-bg-card: #ffffff;
  
  /* Gold Color Scheme (Metallic & Elegant) */
  --color-gold-light: #f3e7c4;
  --color-gold-primary: #c5a02b;
  --color-gold-dark: #9f7a1c;
  --gold-gradient: linear-gradient(135deg, #f0dfb2 0%, #c5a02b 50%, #9e7b1c 100%);
  --gold-glow: 0 8px 32px rgba(197, 160, 43, 0.15);
  
  /* Green Accent Scheme (Fresh & Intellectual) */
  --color-green-light: #e8f5e9;
  --color-green-primary: #125430;
  --color-green-dark: #0a331c;
  --green-gradient: linear-gradient(135deg, #1b633b 0%, #125430 100%);
  
  /* Neutral Color Scheme */
  --color-text-dark: #111110;
  --color-text-muted: #3a3a37;
  --color-border-subtle: rgba(197, 160, 43, 0.15);
  
  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Layout Options */
  --container-max-width: 1200px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Base Styles & Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-pure);
  color: var(--color-text-dark);
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Layout Containers with Custom Side Margins */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

section {
  padding: 8rem 0;
  position: relative;
}

section.bg-alt {
  background-color: var(--color-bg-warm);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-pure);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-primary);
}

/* Header & Glassmorphism Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: var(--transition-smooth);
}

.header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition-smooth);
}

.header.scrolled .nav-wrapper {
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.08rem;
  transition: var(--transition-smooth);
}

.header.scrolled .logo {
  font-size: 1.4rem;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.header.scrolled .logo-img {
  height: 40px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--color-gold-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--color-gold-primary);
  font-weight: 600;
}

.nav-links a.active::after {
  width: 100%;
}

.cta-header {
  background: var(--green-gradient);
  color: var(--color-bg-pure) !important;
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(18, 84, 48, 0.2);
  letter-spacing: 0.05rem;
}

.cta-header:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(18, 84, 48, 0.4);
  background: var(--color-green-dark);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-text-dark);
  margin-bottom: 5px;
  transition: var(--transition-smooth);
}

.menu-toggle span:last-child {
  margin-bottom: 0;
}

/* Typography Styles */
.section-tag {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-text-dark);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  position: relative;
}

.section-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold-gradient);
  margin-top: 1rem;
}

.section-title.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title.center::after {
  margin-top: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 4rem auto;
  text-align: center;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  margin: 80px 2rem 1.5rem 2rem;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.88) 100%), url('welcome_party.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.04);
}

.hero-grid {
  display: block;
  width: 100%;
}

.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-border-subtle);
  border-radius: 24px;
  padding: 2.5rem 2.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--gold-glow);
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background-color: var(--color-bg-soft);
  border: 1px solid var(--color-border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--color-green-primary);
}

.hero-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold-primary);
  display: inline-block;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

.hero h1 span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 1.8rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

/* Modern Beautiful Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--color-text-dark);
  box-shadow: var(--gold-glow);
  border: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.6s;
}

.btn-primary:hover::before {
  left: 150%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(197, 160, 43, 0.3);
}

.btn-secondary {
  background-color: var(--color-bg-pure);
  color: var(--color-text-dark);
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold-primary);
  background-color: var(--color-bg-soft);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* Beautiful Animated Frame for Hero Image */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.95);
  animation: scaleIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-visual-inner {
  width: 380px;
  height: 380px;
  border-radius: 50% 50% 40% 60% / 50% 40% 60% 50%;
  background: linear-gradient(45deg, #FAF6EE 0%, #E8F5E9 100%);
  position: relative;
  border: 2px solid var(--color-border-subtle);
  animation: liquidForm 8s ease-in-out infinite alternate;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--gold-glow);
}

.hero-logo-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05));
}

.hero-visual-deco {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid var(--color-gold-primary);
  border-radius: 50%;
  top: -10px;
  right: 10px;
  animation: orbit 12s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-deco::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--color-green-primary);
  border-radius: 50%;
  position: absolute;
  top: 0;
}

/* About / Overview Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.about-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--gold-glow);
  border-color: rgba(197, 160, 43, 0.3);
}

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

.about-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background-color: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--color-gold-primary);
  font-size: 1.6rem;
  transition: var(--transition-smooth);
}

.about-card:hover .about-icon {
  background: var(--gold-gradient);
  color: var(--color-text-dark);
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

.about-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.about-card .highlight {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-green-primary);
  margin-top: 1rem;
  font-family: var(--font-heading);
}

/* Departments Section */
.dept-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.dept-intro h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.dept-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 16px;
  padding: 2rem 1.8rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dept-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-green-primary);
  box-shadow: 0 10px 30px rgba(18, 84, 48, 0.06);
}

.dept-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.dept-tag {
  background-color: var(--color-green-light);
  color: var(--color-green-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05rem;
}

.dept-card:hover .dept-tag {
  background: var(--green-gradient);
  color: var(--color-bg-pure);
}

.dept-num {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-gold-primary);
  font-weight: 600;
}

.dept-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

.dept-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  flex-grow: 1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.dept-leader {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px dashed var(--color-border-subtle);
  padding-top: 1.2rem;
}

.leader-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.leader-info {
  display: flex;
  flex-direction: column;
}

.leader-role {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.leader-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

/* Team / Members Section */
.team-container {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

/* Core Leadership Row (Representitive & Vice) */
.leadership-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem;
}

.leader-premium-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 24px;
  padding: 3.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.leader-premium-card.no-portrait {
  grid-template-columns: 1fr;
}

.leader-premium-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(197, 160, 43, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
}

.leader-premium-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--gold-glow);
  border-color: rgba(197, 160, 43, 0.35);
}

.leader-portrait {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: linear-gradient(135deg, #FAF7EE 0%, #D4AF37 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  letter-spacing: -0.05rem;
  color: var(--color-text-dark);
  font-weight: 700;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.leader-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: inherit;
}

.leader-portrait::before {
  content: '';
  position: absolute;
  width: 110%;
  height: 110%;
  border: 1px dashed var(--color-gold-primary);
  border-radius: 50%;
  animation: orbit 20s linear infinite;
}

.leader-details {
  display: flex;
  flex-direction: column;
}

.leader-title-badge {
  align-self: flex-start;
  background: var(--gold-gradient);
  color: var(--color-text-dark);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  letter-spacing: 0.05rem;
}

.leader-details h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.25rem;
}

.leader-details h3 span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 400;
  font-family: var(--font-body);
  margin-left: 0.5rem;
}

.leader-quote {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  position: relative;
  padding-left: 1.5rem;
  margin-top: 1.5rem;
  border-left: 3px solid var(--color-gold-primary);
  font-style: italic;
}

/* Secondary Directors Row (Grid of 4 Directors) */
.directors-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 3rem;
  color: var(--color-text-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.directors-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-border-subtle);
  margin-top: 0.75rem;
}

.directors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

.director-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.director-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--gold-glow);
  border-color: rgba(197, 160, 43, 0.3);
}

.director-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8F5E9 0%, #125430 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg-pure);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: -0.02rem;
  font-weight: 700;
  margin: 0 auto 1.5rem auto;
  position: relative;
  box-shadow: 0 4px 12px rgba(18, 84, 48, 0.1);
  transition: var(--transition-smooth);
}

.director-card:hover .director-photo {
  transform: rotate(5deg) scale(1.05);
}

.director-badge {
  background-color: var(--color-green-light);
  color: var(--color-green-primary);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.director-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.2rem;
}

.director-name span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 400;
  font-family: var(--font-body);
  display: block;
}

.director-role-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: left;
  background-color: var(--color-bg-soft);
  padding: 0.8rem 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  min-height: 85px;
  line-height: 1.6;
}

.director-comment {
  font-size: 0.85rem;
  color: var(--color-text-dark);
  line-height: 1.6;
  border-top: 1px dashed var(--color-border-subtle);
  padding-top: 1rem;
  font-style: italic;
}

/* Contact & Apply Form Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-intro-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-text-dark);
  line-height: 1.4;
}

.contact-intro-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--color-green-light);
  color: var(--color-green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-content h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--color-text-dark);
}

.contact-item-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Form Styling */
.form-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 24px;
  padding: 3.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
  position: relative;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--color-border-subtle);
  background-color: var(--color-bg-soft);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-dark);
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-green-primary);
  background-color: var(--color-bg-pure);
  box-shadow: 0 4px 15px rgba(18, 84, 48, 0.08);
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23c5a02b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.2rem;
  padding-right: 3rem;
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-privacy input {
  margin-top: 0.3rem;
  cursor: pointer;
  accent-color: var(--color-green-primary);
}

.form-privacy label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.submit-btn {
  width: 100%;
  padding: 1.1rem;
  font-size: 1rem;
  border: none;
}

/* Success Modal & Animations */
.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  z-index: 10;
}

.form-success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-gradient);
  color: var(--color-bg-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(18, 84, 48, 0.2);
  transform: scale(0.7);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-success-overlay.active .success-icon {
  transform: scale(1);
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

.success-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 320px;
  line-height: 1.6;
}

/* Footer Section */
.footer {
  background-color: #0e1111; /* Sleek charcoal dark footer to isolate footer and make gold brand shine */
  color: #a0a0a0;
  padding: 6rem 0 3rem 0;
  border-top: 1px solid rgba(197, 160, 43, 0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 340px;
}

.footer-links-col h4 {
  font-family: var(--font-heading);
  color: var(--color-bg-pure);
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
  position: relative;
  display: inline-block;
}

.footer-links-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-gold-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-gold-primary);
  transform: translateX(3px);
  display: inline-block;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a0a0;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: var(--gold-gradient);
  color: var(--color-text-dark);
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-copyright {
  color: #666666;
}

/* Scroll Fade In Animation Utilities */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 160, 43, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(197, 160, 43, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(197, 160, 43, 0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes liquidForm {
  0% {
    border-radius: 50% 50% 40% 60% / 50% 40% 60% 50%;
  }
  100% {
    border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%;
  }
}

/* -------------------------------------------------------------
 * Responsive Design (Side Margins & Elements Adjustments)
 * ------------------------------------------------------------- */
@media (max-width: 1024px) {
  section {
    padding: 6rem 0;
  }
  
  .hero-grid {
    gap: 2rem;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .about-grid {
    gap: 1.5rem;
  }
  
  .dept-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .directors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .leader-premium-card {
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  /* Dynamic Side Margin Adjustments */
  .container {
    padding: 0 1.5rem;
  }

  .nav-wrapper {
    height: 80px;
  }

  .logo {
    font-size: 1.6rem;
  }

  .logo-img {
    height: 48px;
  }

  .hero {
    margin: 80px 1rem 1.5rem 1rem;
    min-height: auto;
  }

  .hero-content {
    padding: 2.5rem 1.5rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-subtle);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: var(--transition-smooth);
    z-index: 999;
  }
  
  .header.scrolled .nav-links {
    top: 64px;
  }
  
  .nav-links.active {
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }
  
  .nav-links .cta-header {
    display: block !important;
    margin-top: 1rem;
    text-align: center;
    width: 100%;
    padding: 0.9rem 2rem;
    font-size: 1.15rem;
    box-shadow: 0 4px 15px rgba(18, 84, 48, 0.2);
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-badge {
    justify-content: center;
  }
  
  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .hero-visual-inner {
    width: 280px;
    height: 280px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .leadership-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .leader-premium-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  
  .leader-portrait {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }
  
  .leader-quote {
    padding-left: 0;
    border-left: none;
    border-top: 2px solid var(--color-gold-primary);
    padding-top: 1rem;
    text-align: center;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .form-card {
    padding: 2rem;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .form-group-full {
    grid-column: span 1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .dept-grid {
    grid-template-columns: 1fr;
  }
  
  .directors-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery Section Styles */
.gallery-section {
  background-color: var(--color-bg-pure);
}

.gallery-slider-container {
  position: relative;
  width: 100%;
  margin-top: 2rem;
  padding: 0 3.5rem;
}

.gallery-slider-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 1rem 0.2rem;
  scrollbar-width: none; /* Firefox */
}

.gallery-slider-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.gallery-item {
  flex: 0 0 calc((100% - 3rem) / 3); /* PCでは3枚 */
  height: 350px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
  scroll-snap-align: start;
}

/* Responsive slider settings */
@media (max-width: 1024px) {
  .gallery-item {
    flex: 0 0 calc((100% - 1.5rem) / 2); /* Tablet: 2 slides */
  }
}

@media (max-width: 768px) {
  .gallery-slider-container {
    padding: 0;
  }
  .gallery-item {
    flex: 0 0 100%; /* Mobile: 1 slide */
  }
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-dark);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.gallery-nav-btn:hover {
  background: var(--gold-gradient);
  color: var(--color-text-dark);
  border-color: transparent;
  box-shadow: var(--gold-glow);
}

.gallery-nav-btn.prev {
  left: 0;
}

.gallery-nav-btn.next {
  right: 0;
}

@media (max-width: 768px) {
  .gallery-nav-btn {
    display: none; /* Hide buttons on mobile in favor of gestures */
  }
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(14, 17, 17, 0.9) 0%, rgba(14, 17, 17, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition-smooth);
  color: var(--color-bg-pure);
  text-align: left;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--gold-glow);
  border-color: var(--color-gold-primary);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-badge {
  background: var(--gold-gradient);
  color: var(--color-text-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  align-self: flex-start;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05rem;
  font-family: var(--font-heading);
}

.gallery-overlay h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--color-bg-pure);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.gallery-overlay p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive Gallery */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  
  .gallery-item.item-large {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  
  .gallery-item.item-large {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* Profile & Achievements Styles */
.profile-achieve-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  margin-top: 4rem;
}

.subsection-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--color-text-dark);
  position: relative;
  display: inline-block;
}

.subsection-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-gold-primary);
}

.profile-card-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-details-table {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(197, 160, 43, 0.08);
}

.profile-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-row:first-child {
  padding-top: 0;
}

.profile-label {
  font-weight: 600;
  color: var(--color-text-dark);
}

.profile-value {
  color: var(--color-text-muted);
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding-left: 2rem;
  text-align: left;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--color-border-subtle);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gold-primary);
  border: 2px solid var(--color-bg-pure);
  box-shadow: 0 0 0 3px rgba(197, 160, 43, 0.15);
  transform: translateX(-4px);
}

.timeline-date {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-gold-primary);
  margin-bottom: 0.25rem;
}

.timeline-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.25rem;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Annual Schedule Styles */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.schedule-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 20px;
  padding: 2.2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.schedule-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
  opacity: 0.8;
}

.schedule-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(197, 160, 43, 0.1);
  border-color: rgba(197, 160, 43, 0.3);
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(197, 160, 43, 0.08);
  padding-bottom: 1rem;
}

.schedule-quarter {
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-gold-primary);
}

.schedule-months {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-dark);
}

.schedule-events {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.schedule-events li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.text-gold {
  color: var(--color-gold-primary);
}

.text-green {
  color: var(--color-green-primary);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .profile-achieve-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .schedule-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
