/*
* Card Components
* Reusable card styles for consistent card layouts
* LinguaSkin 2025
*
* This file contains all individual card component styles:
* - Basic cards (hero, info, content, icon)
* - Feature cards (feature-image-box, feature-image-box-small)
* - Special cards (feature-arrow-link, feature-logo-overlay)
* - Contact cards
*
* For section-level layouts, see feature-cards.css
*/


/* Resource Card - Used for resources section and requirement listings */
.resource-card {
  background-color: #f0f2f5;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: none;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background-color: #e9ecef;
}

.resource-card .card-body {
  padding: 1.75rem;
}

.resource-card .card-title {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(0, 123, 255, 0.1);
}

.resource-card .list-unstyled li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
}

.resource-card .list-unstyled li i {
  margin-top: 0.25rem;
  margin-right: 0.75rem;
  color: #ffc107;
  font-size: 0.9rem;
}



/* Feature List Card */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  color: var(--dark-color);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
}

.feature-list li:last-child {
  margin-bottom: 0;
}

.feature-list .fas.fa-check {
  color: var(--primary-color);
  font-size: 1rem;
  margin-right: 0.75rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* Feature Box Cards */
.feature-image-box {
  position: relative;
  margin-bottom: 40px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border-radius: 20px;
  background: white;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-image-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(69, 86, 158, 0.02) 100%
  );
  border-radius: 20px;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.feature-image-box:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(69, 86, 158, 0.15);
}

.feature-image-box:hover::before {
  opacity: 0;
}

.feature-image-box img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.feature-image-box:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Small Feature Box Cards */
.feature-image-box-small {
  position: relative;
  margin-bottom: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border-radius: 16px;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-image-box-small::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(69, 86, 158, 0.02) 100%
  );
  border-radius: 16px;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.feature-image-box-small:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(69, 86, 158, 0.12);
}

.feature-image-box-small:hover::before {
  opacity: 0;
}

.feature-image-box-small img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.feature-image-box-small:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* Arrow Link Cards */
.feature-arrow-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--gradient-end) 100%
  );
  color: white;
  min-height: 120px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.feature-arrow-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.feature-arrow-link:hover::before {
  left: 100%;
}

.feature-arrow-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(69, 86, 158, 0.25);
  color: white;
  text-decoration: none;
}

.feature-arrow-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.feature-arrow-text {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
}

.feature-arrow-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.feature-arrow-link:hover .feature-arrow-icon {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.feature-arrow-icon i {
  font-size: 1rem;
  color: white;
  transition: transform 0.3s ease;
}

.feature-arrow-link:hover .feature-arrow-icon i {
  transform: translateX(3px);
}

/* Feature Logo Overlay */

.feature-logo-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 24px;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.feature-link-card:hover .feature-logo-text {
  transform: translate(-50%, -50%) scale(1.05);
  background: rgba(0, 0, 0, 0.5);
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}

/* Contact Methods (for structured contact information) */
.contact-methods {
  margin-bottom: 3rem;
}

.contact-method {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.contact-method:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(69, 86, 158, 0.1);
  border-color: var(--primary-color);
  text-decoration: none;
  color: inherit;
}

.contact-method .icon-circle {
  margin-right: 1.5rem;
}

.contact-method .content h5 {
  color: var(--dark-color);
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.contact-method .content p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.contact-method .content .text-primary {
  color: var(--primary-color) !important;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {

  .contact-method {
    padding: 1.25rem;
  }

  .contact-method .icon-circle {
    margin-right: 1rem;
  }

  .contact-method .content h5 {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {

  .feature-list li {
    font-size: 0.95rem;
  }
}
