/*!
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

/* Login page */
body.login {
  background: linear-gradient(300deg, deepskyblue, darkviolet, blue);
  background-size: 180% 180%;
  animation: gradient-animation 6s ease infinite;
  display: flex;
  align-items: center;
}

#login {
  background-color: #ffffff;
  border: 1px solid #ddd;
  padding: 20px;
}

#loginform {
  padding: 10px;
  border-radius: 5px;
  border: 0;
}

#login h1 a {
  background-image: url("https://iaknpky.ac.id/wp-content/uploads/2025/04/logo_iaknpky-min.png");
  background-size: contain;
  width: 100%;
  height: 80px;
}

.login input[type="text"],
.login input[type="password"] {
  border-radius: 0px;
  padding: 4px;
  border: 1px solid #ccc;
}

.login input#wp-submit {
  background-color: #330d7a;
  color: white;
  border-radius: 0px;
  width: 180px;
}

.login #submit {
  background-color: #74b5d3;
  color: white;
  border-radius: 5px;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.login #nav,
.language-switcher,
#backtoblog {
  display: none;
}

/* Footer views */
.footer-views-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 10px;
}

.footer-views {
  background-color: var(--global-palette-btn-bg);
  padding: 8px 16px;
  border-radius: 3px;
  font-size: 14px;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.footer-views:hover {
  cursor: default;
  color: var(--global-palette-btn-bg);
  font-weight: bold;
  background-color: white;
}

/* Share buttons */
.custom-share-buttons {
  margin: 20px;
  text-align: center;
}

/* News grid */
.iaknpky-news-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .iaknpky-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .iaknpky-news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .iaknpky-news-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.iaknpky-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  color: #fff !important;
}

.iaknpky-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.iaknpky-imgwrap {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #f5f5f7, #eceef1);
}

.iaknpky-imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.45s ease;
}

.iaknpky-card:hover .iaknpky-imgwrap img {
  transform: scale(1.06);
}

.iaknpky-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.65) 100%
  ) !important;
}

.iaknpky-cap {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #fff !important;
}

.iaknpky-title {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.iaknpky-date {
  font-size: 0.85rem;
  opacity: 0.85;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.iaknpky-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff !important;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: saturate(1.4) blur(6px);
}

.iaknpky-card a {
  color: white !important;
  text-decoration: none;
}

.iaknpky-card a:visited,
.iaknpky-card a:hover,
.iaknpky-cap,
.iaknpky-title,
.iaknpky-date,
.iaknpky-cat {
  color: #fff !important;
}

.iaknpky-card a:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 3px;
  border-radius: 12px;
}
