@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;700&family=Poppins:wght@300;400;600;700&display=swap");
/* --- KIC COLOR PALETTE --- */
:root {
  --primary: #1a1a1a; /* Black/Charcoal from Logo */
  --secondary: #800000; /* Maroon/Dark Red (Academic Accent) */
  --accent: #d4af37; /* Gold/Bronze for 1919 heritage */
  --light: #f8f9fa;
  --dark: #121212;
  --white: #ffffff;
  --text-gray: #666;
}
html,
body {
  font-family: "Poppins", sans-serif;
  color: var(--primary);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 700;
}

a {
  text-decoration: none;
}

/* --- 1. TOP INFO BAR --- */
.top-bar {
  background-color: var(--primary);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
}
.top-bar a {
  color: var(--white);
  text-decoration: none;
  margin-left: 15px;
  transition: 0.3s;
  &:hover {
    color: var(--accent);
  }
}

/* --- 2. RESPONSIVE NAVBAR --- */
.navbar {
  background: #fff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  padding: 12px 0;
  transition: all 0.4s ease;
  z-index: 1000;
}
.navbar.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0.4rem 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.5s ease;
}
.brand-logo {
  width: 70px;
  object-fit: cover;
}
.navbar-brand span {
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  vertical-align: middle;
  margin-left: 10px;
}
.nav-link {
  color: var(--primary) !important;
  font-weight: 500;
  margin: 0 10px;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--secondary);
  bottom: 0;
  left: 0;
  transition: 0.3s;
}
.nav-link:hover::after {
  width: 100%;
}
.btn-apply {
  background-color: var(--secondary);
  color: white !important;
  border-radius: 30px;
  padding: 8px 25px;
  animation: pulse-btn 2s infinite;
}
.btn-apply:hover {
  background-color: var(--primary);
}

/* Mobile Menu Slide-in */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: white;
  z-index: 2000;
  transition: 0.4s ease;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
}
.mobile-menu-overlay.active {
  left: 0;
}
.mobile-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- 3. HERO CAROUSEL (Fixed Content) --- */
.hero-section {
  position: relative;
  height: 80vh;
  overflow: hidden;
}
.carousel,
.carousel-inner,
.carousel-item {
  height: 100%;
}
.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  filter: brightness(0.4);
}
/* Fixed Content Overlay */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  color: white;
  width: 80%;
  max-width: 900px;
}
.hero-badge {
  background: var(--secondary);
  padding: 5px 15px;
  border-radius: 5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: inline-block;
  animation: fadeInDown 1s ease 0.2s backwards;
}
.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease 0.4s backwards;
}
.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.6s backwards;
}
.hero-btn-group {
  animation: fadeInUp 1s ease 0.8s backwards;
}
.btn-hero-primary {
  background: white;
  color: var(--primary);
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 700;
  margin-right: 10px;
  transition: 0.3s;
}
.btn-hero-outline {
  border: 2px solid white;
  color: white;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 700;
  transition: 0.3s;
}
.btn-hero-primary:hover {
  background: var(--secondary);
  color: white;
}
.btn-hero-outline:hover {
  background: white;
  color: var(--primary);
}

/* --- 4. QUICK STATS --- */
.stats-section {
  background: var(--primary);
  color: white;
  padding: 60px 0;
  margin-top: -50px;
  position: relative;
  z-index: 20;
}
.stat-item {
  text-align: center;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-item:last-child {
  border: none;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- 5. COURSES --- */
.section-padding {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}
.section-title h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--secondary);
  margin: 10px auto 0;
}
.course-card {
  border: none;
  background-color: var(--white);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--light);
  transition: 0.3s;
  height: 100%;
  overflow: hidden;
  position: relative;
  top: 0;
}
.course-card:hover {
  top: -10px;
  background-color: var(--accent);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.course-card .icon-box {
  background: var(--light);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 20px;
}
.course-duration {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

/* --- 6. WHY CHOOSE US --- */
.bg-light-gray {
  background-color: #f9f9f9;
}
.feature-box {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  transition: 0.3s;
}
.feature-box:hover {
  background-color: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}
.feature-icon {
  min-width: 60px;
  height: 60px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 20px;
}
.feature-content h4 {
  font-size: 1.2rem;
}

/* --- 7. CAMPUS LIFE --- */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 250px;
  margin-bottom: 24px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: 0.4s;
  color: white;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

#partnersCarousel h4:hover {
  color: var(--primary) !important;
}
/* --- 9. ADMISSIONS TIMELINE --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  width: 4px;
  background-color: var(--secondary);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-2px);
}
.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}
.timeline-dot {
  width: 45px;
  height: 45px;
  background: var(--secondary);
  border: 4px solid white;
  border-radius: 50%;
  position: absolute;
  top: 25px;
  z-index: 2;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #ddd;
}
.timeline-item:nth-child(odd) .timeline-dot {
  right: -5.5%;
}
.timeline-item:nth-child(even) .timeline-dot {
  left: -5.5%;
}
.timeline-content {
  background: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- 10. NEWS & EVENTS --- */
.news-card img {
  height: 200px;
  object-fit: cover;
}
.news-date {
  background: var(--secondary);
  color: white;
  padding: 5px 10px;
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* mahtab voice */
#student-voice {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url(../images/slide-img1.jpg) no-repeat center bottom;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  background-blend-mode: darken;
  color: var(--white);
}
#testimonialCarousel .item {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(10px);
}

/* --- 12. CONTACT --- */
.contact-info-box {
  padding: 20px;
  display: flex;
  align-items: center;
}
.contact-icon {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-right: 15px;
  min-width: 30px;
}

#contact form {
  background-color: var(--accent);
}
#contact form input,
#contact form select {
  padding: 0.6rem 1rem;
}

/* --- 13. FOOTER --- */
footer {
  background: var(--dark);
  color: #aaa;
  padding-top: 60px;
}
footer h5 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.1rem;
}
footer ul li {
  margin-bottom: 10px;
}
footer ul li a {
  color: #aaa;
  transition: 0.3s;
}
footer ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}
.footer-bottom {
  background: #000;
  padding: 20px 0;
  margin-top: 50px;
  text-align: center;
  font-size: 0.9rem;
}
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--secondary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  opacity: 0;
  transition: 0.3s;
  z-index: 999;
}
.scroll-top.show {
  opacity: 1;
}

/* --- CORE ANIMATIONS --- */
@keyframes pulse-btn {
  0% {
    box-shadow: 0 0 0 0 rgba(179, 57, 57, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(179, 57, 57, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(179, 57, 57, 0);
  }
}
@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility for scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* responsive */
@media (max-width: 768px) {
  .hero-content {
    width: 90%;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  #heroCarousel button {
    display: none;
  }
  .section-title h2 {
    font-size: 2rem;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 10px;
    text-align: left;
  }
  .timeline-item:nth-child(odd) {
    left: 0;
    text-align: left;
  }
  .timeline-item:nth-child(even) {
    left: 0;
  }
  .timeline-dot {
    left: -0.5% !important;
  }
}
