/* assets/css/home.css */

/* Section A: Hero Slider */
.hero-slider {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 500px;
  overflow: hidden;
  background-color: var(--primary-dark);
}
.hero-slides-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-slide-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(15, 37, 64, 0.85) 0%, rgba(15, 37, 64, 0.4) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  max-width: 600px;
}
.hero-tag {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.hero-desc {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}
.hero-controls {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 1rem;
  z-index: 4;
}
.hero-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s;
}
.hero-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 4;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* Common Section padding */
.section {
  padding: var(--section-gap) 0;
}
.bg-alt {
  background-color: var(--surface-alt);
}
.section-header {
  margin-bottom: 3rem;
  text-align: center;
}
.section-header .sub-title {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}
.section-header h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

/* Section B: Welcome About */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--accent);
  border-radius: var(--radius-md);
  z-index: -1;
}
.about-image img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about-stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-box {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Section C: Notices Panels */
.notices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.notice-panel {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 450px;
  border-top: 4px solid var(--primary);
}
.panel-header {
  background: var(--primary-dark);
  color: var(--white);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-header h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin: 0;
  font-family: var(--font-body);
}
.panel-content {
  padding: 1rem;
  flex: 1;
  overflow-y: auto;
}
.notice-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--surface-alt);
  transition: background 0.3s;
}
.notice-item:hover {
  background: var(--surface);
}
.notice-date {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  background: var(--surface-alt);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}
.date-day {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.25rem;
  line-height: 1;
}
.date-month {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.notice-text {
  flex: 1;
}
.notice-title {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s;
}
.notice-title:hover {
  color: var(--accent);
}
.panel-footer {
  padding: 1rem;
  text-align: center;
  border-top: 1px solid var(--surface-alt);
  background: var(--surface);
}

/* Section D: Research Cards */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.research-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  border: 1px solid var(--surface-alt);
}
.research-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}
.research-icon {
  width: 64px;
  height: 64px;
  background: rgba(200, 146, 42, 0.1);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  transition: background 0.3s, color 0.3s;
}
.research-card:hover .research-icon {
  background: var(--accent);
  color: var(--white);
}
.research-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Section E: Publications */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.pub-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s;
}
.pub-card:hover {
  transform: translateY(-5px);
}
.pub-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--primary-dark);
}
.pub-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pub-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.pub-title {
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}
.pub-author {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.pub-action {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--surface-alt);
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pub-action:hover {
  color: var(--accent);
}

/* Section F: Photo Gallery */
.gallery-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}
.gallery-grid::-webkit-scrollbar {
  height: 8px;
}
.gallery-grid::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.gallery-item {
  min-width: 300px;
  height: 250px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* Logo Strip */
.logo-strip {
  padding: 3rem 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logo-track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.logo-track img {
  height: 60px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s;
}
.logo-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .notices-grid { grid-template-columns: 1fr; }
  .pub-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-slider { height: 50vh; min-height: 400px; }
  .hero-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .pub-grid { grid-template-columns: 1fr; }
  .stat-box { text-align: center; }
  .hero-title { font-size: 2rem; }
  .hero-desc { font-size: 1rem; }
}
