/* Main Stylesheet for FKIP UNU Kalsel */
:root {
  --primary-color: #006633; /* Dark Green - NU Flag color approx */
  --secondary-color: #004d26; /* Darker Green */
  --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;
}

.top-bar {
  background-color: var(--primary-color);
  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;
}

.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: 60px;
  width: auto;
  transition: transform 0.3s;
}

.logo-area:hover img {
    transform: scale(1.05);
}

.logo-text h1 {
  font-size: 1.2rem;
  color: var(--primary-color);
  line-height: 1.2;
}

.logo-text span {
  font-size: 0.9rem;
  color: #666;
  font-weight: normal;
}

.nav-menu ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-menu a {
  font-weight: 600;
  color: var(--text-color);
  padding: 10px 0;
  position: relative;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav-menu > ul > li > a:hover,
.nav-menu > ul > li > a.active,
.nav-menu > ul > li:hover > a {
  color: var(--primary-color);
}

/* Underline Effect */
.nav-menu > ul > li > a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-menu > ul > li > a:hover::after,
.nav-menu > ul > li > a.active::after,
.nav-menu > ul > li:hover > a::after {
  width: 100%;
}

/* Dropdown Menu */
.nav-item.has-dropdown {
  position: relative;
  padding-right: 15px; /* Space for icon */
}

.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%;
  right: 0;
  left: auto;
  background-color: var(--white);
  min-width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px; /* Rounded bottom */
  border-top: 3px solid var(--accent-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 999;
  padding: 10px 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: none;
}

.dropdown a {
  display: block;
  padding: 12px 25px;
  font-size: 0.95rem;
  color: #555;
  transition: all 0.2s;
  border-left: 3px solid transparent; /* Indicator strip */
}

/* Dropdown Item Hover */
.dropdown a:hover {
  background-color: #f8fcf9;
  color: var(--primary-color);
  padding-left: 30px; /* Slight indent */
  border-left: 3px solid var(--primary-color);
}

.dropdown a::after {
    display: none; /* No underline for dropdown items */
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background-color: #333; /* Placeholder for image */
  color: var(--white);
  text-align: center;
  padding: 100px 20px;
  background-image: linear-gradient(
    rgba(0, 102, 51, 0.8),
    rgba(0, 102, 51, 0.8)
  ); /* Overlay */
  background-size: cover;
  background-position: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

.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 */
  }
}
