/* ========================================
   COMMON STYLES - SHARED ACROSS ALL PAGES
   Eliminates duplication across CSS files
   ======================================== */

/* ==========================
   COMMON TYPOGRAPHY
   ========================== */
.prod-h2,
.section-heading,
.page-heading {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #001a3a;
  margin: 40px 20px;
  padding: 0 20px;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .prod-h2,
  .section-heading,
  .page-heading {
    font-size: 1.8rem;
    margin: 30px 15px;
    padding: 0 15px;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .prod-h2,
  .section-heading,
  .page-heading {
    font-size: 1.4rem;
    margin: 20px 10px;
    padding: 0 10px;
    line-height: 1.4;
  }
}

/* ==========================
   BREADCRUMB NAVIGATION
   ========================== */
.br-breadcrumb-bg {
  background: #f8f9fa;
  padding: 0;
  border-bottom: 1px solid #e9ecef;
}

.br-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.br-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.br-breadcrumb li {
  display: flex;
  align-items: center;
  color: #6c757d;
}

.br-breadcrumb li a {
  color: #0b0c41;
  text-decoration: none;
  transition: color 0.3s ease;
}

.br-breadcrumb li a:hover {
  color: #FBA301;
}

.br-breadcrumb li:not(:last-child)::after {
  content: '/';
  margin: 0 10px;
  color: #6c757d;
}

.br-breadcrumb li.active {
  color: #495057;
  font-weight: 500;
}

@media (max-width: 768px) {
  .br-breadcrumb {
    font-size: 0.85rem;
  }
  
  .br-breadcrumb li:not(:last-child)::after {
    margin: 0 8px;
  }
}

/* ==========================
   COMMON BANNER STYLES
   ========================== */
.support-banner,
.page-banner {
  width: 100%;
  height: 350px;
  position: relative;
  overflow: hidden;
  margin-top: 125px;
  margin-bottom: 0;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .support-banner,
  .page-banner {
    height: 250px;
    margin-top: 80px;
  }
}

@media (max-width: 576px) {
  .support-banner,
  .page-banner {
    height: 200px;
    margin-top: 70px;
  }
}

/* ==========================
   COMMON BUTTON STYLES
   ========================== */
.btn-primary-custom,
.btn-cta,
.banner-btn {
  background-color: #0b0c41;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 4px;
  transition: background 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary-custom:hover,
.btn-cta:hover,
.banner-btn:hover {
  background-color: #FBA301;
  color: #fff;
  text-decoration: none;
}

.btn-secondary-custom {
  background: transparent;
  color: #0b0c41;
  padding: 12px 24px;
  border: 2px solid #0b0c41;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary-custom:hover {
  background: #0b0c41;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 768px) {
  .btn-primary-custom,
  .btn-cta,
  .banner-btn,
  .btn-secondary-custom {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* ==========================
   COMMON SECTION STYLES
   ========================== */
.section-padding {
  padding: 60px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #0b0c41;
  margin-bottom: 15px;
  font-weight: 700;
}

.section-header p {
  font-size: 1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.header-divider {
  width: 80px;
  height: 3px;
  background: #FBA301;
  margin: 0 auto 20px;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 40px 15px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-header p {
    font-size: 0.9rem;
  }
}

/* ==========================
   COMMON CARD STYLES
   ========================== */
.card-common,
.feature-card-common {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.card-common:hover,
.feature-card-common:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: #f0f7ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  color: #0b0c41;
  transition: all 0.3s ease;
}

.card-common:hover .card-icon,
.feature-card-common:hover .card-icon {
  background: #0b0c41;
  color: #fff;
  transform: rotateY(180deg);
}

.card-common h3,
.feature-card-common h3 {
  font-size: 1.3rem;
  color: #0b0c41;
  margin-bottom: 15px;
  font-weight: 700;
}

.card-common p,
.feature-card-common p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .card-common,
  .feature-card-common {
    padding: 25px 20px;
  }
  
  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }
}

/* ==========================
   COMMON GRID LAYOUTS
   ========================== */
.grid-2-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

@media (max-width: 991px) {
  .grid-3-col,
  .grid-4-col {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .grid-2-col,
  .grid-3-col,
  .grid-4-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================
   COMMON FORM STYLES
   ========================== */
.form-group-common {
  margin-bottom: 20px;
}

.form-group-common label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}

.form-control-common {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-control-common:focus {
  border-color: #0b0c41;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(11, 12, 65, 0.25);
}

textarea.form-control-common {
  min-height: 120px;
  resize: vertical;
}

@media (max-width: 768px) {
  .form-control-common {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* ==========================
   COMMON IMAGE STYLES
   ========================== */
.img-responsive-common {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================
   COMMON OVERLAY STYLES
   ========================== */
.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.overlay-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(11, 12, 65, 0.95), transparent);
  padding: 20px;
  z-index: 2;
}

/* ==========================
   COMMON FEATURE LIST
   ========================== */
.feature-list-common {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list-common li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.feature-list-common li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
  font-size: 1.2rem;
}

/* ==========================
   COMMON ANIMATIONS
   ========================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s ease-out;
}

/* ==========================
   COMMON UTILITIES
   ========================== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-30 {
  margin-top: 30px;
}

.mt-40 {
  margin-top: 40px;
}

.p-20 {
  padding: 20px;
}

.p-30 {
  padding: 30px;
}

.p-40 {
  padding: 40px;
}

/* ==========================
   END OF COMMON STYLES
   ========================== */
