/* Custom CSS for Filipino Combat Systems Website */

:root {
  --primary-color: #dc3545;
  --primary-dark: #b02a37;
  --secondary-color: #6c757d;
  --light-bg: #f8f9fa;
  --dark-text: #212529;
}

/* Override Bootstrap primary color */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.badge.bg-primary {
  background-color: var(--primary-color) !important;
}

.nav-link.active {
  color: var(--primary-color) !important;
}

nav.sticky-top { border-bottom:3px solid var(--primary-color); }

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("/template_resource/images/training-facility.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navigation */
.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* Cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn {
  transition: all 0.3s ease;
}

/* Blog specific styles */
.blog-content h2 {
  color: var(--dark-text);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.blog-content h3 {
  color: var(--primary-color);
}

.blog-content p {
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.blog-content ul {
  margin-bottom: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    min-height: 60vh;
    background-attachment: scroll;
  }

  .display-4 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.75rem;
  }
}

/* Icon styling */
.bg-primary.bg-opacity-10 {
  background-color: rgba(220, 53, 69, 0.1) !important;
}

/* Form styling */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Accordion styling */
.accordion-button:not(.collapsed) {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--primary-color);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Footer */
footer a {
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-color);
}

/* Utility classes */
.object-fit-cover {
  object-fit: cover;
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

/* Badge styling */
.badge {
  font-weight: 500;
}

/* Card image overlay */
.card .position-relative .badge {
  z-index: 1;
}

ul.list-unstyled li {
  margin-top:10px;
  margin-bottom:10px;
}

/* Custom styles for payment options grid */
.payment-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out;
    height: 100%; /* Ensure all cards have same height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.payment-card:hover {
    transform: translateY(-5px);
}
.payment-card i {
    font-size: 3rem; /* Larger icon size */
    margin-bottom: 1rem;
    color: #0d6efd; /* Bootstrap primary blue */
}
.payment-card img {
    width: 48px; /* Standardize image icon size */
    height: 48px;
    margin-bottom: 1rem;
}
.payment-card p {
    font-weight: 500;
    color: #343a40; /* Darker text for method name */
    margin-bottom: 0;
}