/* Main Stylesheet for FKIP UNU Kalsel */
:root {
  --primary-color: #00509e; /* Academic Blue */
  --secondary-color: #002a5c; /* Darker Blue */
  --accent-color: #f1c40f; /* Yellow/Gold for accents */
  --text-color: #333;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --font-main: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --transition-speed: 0.3s;
}

/* * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
} */
/* Bootstrap handles Reset */

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-bg);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-speed);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 25px; /* Increased padding */
  padding-right: 25px;
  width: 100%;
}

/* Header & Navigation */
header {
  background-color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.top-bar {
  background-color: var(--secondary-color); /* darker blue */
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85em;
  font-weight: 500;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header {
  padding: 15px 0;
  background-color: #fff;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-area img {
  height: 70px; /* Slightly larger logo */
  width: auto;
  transition: transform 0.3s;
}

.logo-area:hover img {
  transform: scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text h1 {
  font-size: 1.1rem;
  color: #333; /* Dark text for University Name */
  line-height: 1.2;
  font-weight: 700; /* Bold */
  margin: 0;
}

.logo-text span {
  font-size: 1rem;
  color: #666; /* Grey text for Prodi Name */
  font-weight: normal;
}

/* Full Width Navbar Strip */
.nav-bar-strip {
  background-color: var(--primary-color); /* Blue background */
  width: 100%;
}

.nav-menu ul {
  display: flex;
  gap: 0; /* Remove gap, handle with padding */
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-weight: 500;
  color: var(--white); /* White text */
  padding: 15px 20px;
  display: block;
  font-size: 1rem;
  transition: background-color 0.3s;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a.active {
  background-color: rgba(255, 255, 255, 0.1); /* Subtle hover bg */
  color: var(--white);
}

/* Remove old underline effect as it doesnt fit the block style */
.nav-menu > ul > li > a::after {
  display: none;
}

/* Dropdown Menu */
.nav-item.has-dropdown {
  position: relative;
}

.nav-item.has-dropdown > a i {
  font-size: 0.7em;
  margin-left: 5px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-color); /* Blue dropdown */
  min-width: 220px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 4px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 999;
  padding: 0;
}

@media (min-width: 769px) {
  .nav-item.has-dropdown:hover > a i {
    transform: rotate(180deg);
  }

  .nav-item.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.dropdown li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown li:last-child {
  border-bottom: none;
}

.dropdown a {
  padding: 12px 20px;
  font-size: 0.95rem;
  color: var(--white);
  border-left: none;
}

/* Dropdown Item Hover */
.dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding-left: 20px; /* No indent change */
  border-left: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background-color: var(--primary-color); /* Blue bg */
  color: var(--white);
  text-align: center;
  padding: 120px 20px;
  /* Removed image gradient for a cleaner blue look or re-add if needed */
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 10px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent-color);
  color: var(--secondary-color);
  font-weight: bold;
  border-radius: 5px;
  transition: var(--transition-speed);
}

.btn:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  color: var(--primary-color);
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 10px auto 0;
}

/* Cards (News, Prodi, etc) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition-speed);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img {
  height: 200px;
  background-color: #ddd;
  background-size: cover;
  background-position: center;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.card-text {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
}

.card-link {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
  display: inline-block;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background-color: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 60px 20px;
    transition: var(--transition-speed);
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 0;
  }

  .nav-menu a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
  }

  .nav-item.has-dropdown:hover > a i {
    transform: none; /* No rotation on hover for mobile */
  }

  .nav-item.has-dropdown > a i {
    float: right;
    margin-top: 5px;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0 0 0 20px;
    display: none;
    background-color: #f9f9f9;
    transition: none;
  }

  .dropdown a {
    border-left: none;
    padding: 12px 20px 12px 40px; /* Indent for hierarchy */
    color: #555;
  }

  .dropdown a:hover {
    padding-left: 45px;
    background-color: #eee;
  }

  .nav-item.has-dropdown.active .dropdown {
    display: block;
  }

  .logo-area img {
    height: 40px;
  }

  /* Force grid to stack on mobile */
  .grid-3 {
    grid-template-columns: 1fr !important;
  }

  /* Smaller Text on Mobile */
  body {
    font-size: 0.95rem;
  }

  h1 {
    font-size: 1.8rem !important;
  }
  h2 {
    font-size: 1.5rem !important;
  }
  h3 {
    font-size: 1.2rem !important;
  }

  /* Ensure container padding is respected */
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    overflow-x: hidden; /* Prevent spill */
  }
}

/* --- NEW SECTIONS STYLES --- */

/* Statistics Section */
.stats-section {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 60px 0;
}
.stats-grid {
  text-align: center;
}
.stat-item {
  padding: 20px;
}
.stat-item i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 5px;
}
.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Feature Grid (Why Choose Us) */
.feature-grid {
  gap: 30px;
}
.feature-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #eee;
  transition: var(--transition-speed);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-color);
}
.feature-icon {
  width: 70px;
  height: 70px;
  background-color: #f0fdf4;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}
.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-color);
}
.feature-card p {
  font-size: 0.9rem;
  color: #666;
}

/* Video Section */
.video-wrapper {
  gap: 50px;
}
@media (max-width: 768px) {
  .video-wrapper {
    grid-template-columns: 1fr;
  }
}

/* CTA Section */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../img/pattern.png") repeat; /* Optional pattern */
  opacity: 0.05;
}

/* Helpers */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Timeline (Alur Pendaftaran) */
.timeline-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-width: 900px;
  margin: 50px auto 0;
  flex-wrap: wrap;
  gap: 20px;
}
.timeline-steps::before {
  content: "";
  position: absolute;
  top: 35px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #e9ecef;
  z-index: 1;
}
.timeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
  background: var(--light-bg); /* Mask the line */
  padding: 0 10px;
  flex: 1;
  min-width: 150px;
}
.timeline-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 15px;
  box-shadow: 0 5px 15px rgba(0, 102, 51, 0.3);
  border: 4px solid #fff;
}
.timeline-step h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--primary-color);
  font-weight: bold;
}
.timeline-step p {
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 768px) {
  .timeline-steps {
    flex-direction: column;
    gap: 40px;
  }
  .timeline-steps::before {
    width: 3px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  .timeline-step {
    width: 100%;
  }
}

/* Quote/Motto Section */
.quote-section {
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://via.placeholder.com/1200x600?text=Background+Campus");
  background-size: cover;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}
.quote-text {
  font-size: 1.8rem;
  font-style: italic;
  font-family: serif;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.quote-author {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--accent-color);
}

/* Lecturer Section */
.lecturer-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 5px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.lecturer-card {
  text-align: center;
  background: transparent;
  box-shadow: none;
}
.lecturer-card:hover {
  transform: translateY(-5px);
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 200px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Download Section */
.download-section {
  background-color: var(--primary-color);
  color: #fff;
  padding: 40px 0;
}
.download-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.download-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 30px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
  min-width: 250px;
}
.download-btn:hover {
  background: #fff;
  color: var(--primary-color);
  transform: translateY(-3px);
}
.download-icon {
  font-size: 1.5rem;
}
.download-text h4 {
  font-size: 1rem;
  margin: 0;
}
.download-text span {
  font-size: 0.8rem;
  opacity: 0.8;
}
