/* ============================================
   CERTIFICATES PAGE STYLES
   Consistent with sustainability.html design
   ============================================ */

/* ===== HERO SECTION ===== */
.certificates-hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  max-height: 1000px;
  overflow: hidden;
  clip-path: ellipse(100% 100% at 50% 0%);
}

.certificates-hero .hero-static {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificates-hero .hero-static::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
 
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  color: white;
}

.hero-text {
  max-width: 800px;
  margin-top: 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 0.9rem;
  color: black;
}

.breadcrumb a {
  color: black;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #00a8ff;
}

.breadcrumb .current {
  color: #00a8ff;
  font-weight: 600;
}

.breadcrumb i {
  font-size: 0.8rem;
  margin: 0 5px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 20px;
  color: black;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: black;
  font-weight: 400;
  max-width: 700px;
}

.hero-stats-certificates {
  display: flex;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.hero-stats-certificates x {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 150px;
  transition: transform 0.3s, background 0.3s;
}

.hero-stats-certificates .stat-box:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.hero-stats-certificates .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #00a8ff;
  margin-bottom: 5px;
}

.hero-stats-certificates .stat-label {
  font-size: 0.9rem;
  
}

/* ===== MAIN CONTENT SECTIONS ===== */
.certificates-content {
  padding-top: 0;
}

.section {
  padding: 80px 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #00a8ff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a3b5d;
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-description {
  font-size: 1.125rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== QUALITY INTRO SECTION ===== */
.quality-intro {
  background: #fff;
}

.quality-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.quality-text .lead-text {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #1a3b5d;
  margin-bottom: 20px;
  font-weight: 500;
}

.quality-text p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.quality-highlights {
  margin-top: 30px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.highlight i {
  color: #00a8ff;
  font-size: 1.2rem;
}

.highlight span {
  color: #666;
}

.quality-visual-card {
  background: #f8f9fa;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid #e9ecef;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.quality-visual-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 168, 255, 0.1);
  border-color: #00a8ff;
}

.quality-visual-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #00a8ff, #0097e6);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
}

.quality-visual-card h3 {
  font-size: 1.5rem;
  color: #1a3b5d;
  margin-bottom: 15px;
}

.quality-visual-card p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

.quality-meter {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #00a8ff, #0097e6);
  width: 98.7%;
}

.meter-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
}

/* ===== CERTIFICATES GRID ===== */
.certificates-grid-section {
  background: #f8f9fa;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.certificate-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e9ecef;
}

.certificate-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 168, 255, 0.15);
  border-color: #00a8ff;
}

.certificate-header {
  padding: 30px 30px 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.certificate-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #1a3b5d, #0a3250);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.certificate-card:hover .certificate-icon {
  background: linear-gradient(135deg, #00a8ff, #0097e6);
}

.certificate-header h3 {
  font-size: 1.5rem;
  color: #1a3b5d;
  margin-bottom: 10px;
}

.certificate-badge {
  display: inline-block;
  padding: 5px 15px;
  background: #f0f7ff;
  color: #00a8ff;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.certificate-body {
  padding: 25px 30px;
}

.certificate-body p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.certificate-details {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.detail {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 0.9rem;
}

.detail i {
  color: #00a8ff;
}

.certificate-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: #f8f9fa;
  color: #1a3b5d;
  text-decoration: none;
  font-weight: 600;
  border-top: 1px solid #e9ecef;
  transition: all 0.3s;
}

.certificate-link:hover {
  background: #1a3b5d;
  color: white;
}

.certificate-link:hover i {
  color: white;
}

/* ===== VOTOB SECTION ===== */
.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: white;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 59, 93, 0.9) 0%, rgba(10, 35, 64, 0.8) 100%);
}

.votob-section .container {
  position: relative;
  z-index: 2;
}

.votob-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.lead-text-white {
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  font-weight: 500;
}

.votob-features {
  margin-top: 30px;
}

.feature {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.feature i {
  color: #00a8ff;
  font-size: 1.5rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.feature h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: white;
}

.feature p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.votob-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.votob-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  color: #00a8ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  border: 2px solid #00a8ff;
}

.votob-card h3 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 15px;
}

.votob-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
  line-height: 1.6;
}

.compliance-meter {
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.compliance-meter .meter-fill {
  background: #00a8ff;
  width: 100%;
}

.votob-card .meter-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== ADDITIONAL CERTIFICATIONS ===== */
.additional-certs {
  background: #fff;
}

.additional-certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.additional-cert {
  text-align: center;
  padding: 30px 20px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: transform 0.3s, background 0.3s;
  border: 1px solid #e9ecef;
}

.additional-cert:hover {
  transform: translateY(-5px);
  background: #e9ecef;
  border-color: #00a8ff;
}

.additional-cert-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1a3b5d, #0a3250);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}

.additional-cert:hover .additional-cert-icon {
  background: linear-gradient(135deg, #00a8ff, #0097e6);
}

.additional-cert h3 {
  font-size: 1.3rem;
  color: #1a3b5d;
  margin-bottom: 10px;
}

.additional-cert p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.certs-note {
  margin-top: 50px;
  padding: 25px;
  background: #f0f7ff;
  border-radius: 10px;
  border-left: 4px solid #00a8ff;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.certs-note i {
  color: #00a8ff;
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.certs-note p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.certs-note strong {
  color: #1a3b5d;
}

/* ===== CERTIFICATION PROCESS ===== */
.certification-process {
  background: #f8f9fa;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.process-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1a3b5d, #0a3250);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.process-step:hover .step-number {
  background: linear-gradient(135deg, #00a8ff, #0097e6);
}

.step-content h3 {
  font-size: 1.3rem;
  color: #1a3b5d;
  margin-bottom: 10px;
}

.step-content p {
  color: #666;
  line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.certificates-cta {
  position: relative;
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
}

.certificates-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 59, 93, 0.9) 0%, rgba(10, 35, 64, 0.8) 100%);
}

.cta-content-certificates {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content-certificates h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
}

.cta-content-certificates p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary-certificates {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #00a8ff, #0097e6);
  color: white;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary-certificates:hover {
  background: linear-gradient(135deg, #0097e6, #0082cc);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 168, 255, 0.3);
}

.btn-secondary-certificates {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: white;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid white;
  cursor: pointer;
}

.btn-secondary-certificates:hover {
  background: white;
  color: #1a3b5d;
  transform: translateY(-2px);
}

.btn-outline-certificates {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: white;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.btn-outline-certificates:hover {
  background: white;
  color: #1a3b5d;
  border-color: white;
  transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in-left {
  opacity: 0;
  animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
  opacity: 0;
  animation: fadeInRight 0.8s ease forwards;
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.animate-scale {
  animation: scaleIn 0.8s ease forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets and small desktops */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-stats-certificates {
    gap: 20px;
  }
  
  .hero-stats-certificates .stat-box {
    min-width: 130px;
    padding: 15px;
  }
  
  .hero-stats-certificates .stat-number {
    font-size: 2rem;
  }
  
  .quality-content,
  .votob-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .certificates-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .additional-certs-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Tablets */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .certificates-grid {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .cta-content-certificates h2 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary-certificates,
  .btn-secondary-certificates,
  .btn-outline-certificates {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* Mobile phones */
@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-stats-certificates {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats-certificates .stat-box {
    width: 100%;
    max-width: 250px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .certificate-header {
    padding: 20px 20px 15px;
  }
  
  .certificate-body {
    padding: 20px;
  }
  
  .certificate-details {
    flex-direction: column;
    gap: 10px;
  }
  
  .additional-certs-grid {
    grid-template-columns: 1fr;
  }
  
  .process-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .step-content {
    text-align: center;
  }
  
  .certs-note {
    flex-direction: column;
    text-align: center;
  }
}

/* Small mobile phones */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.6rem;
  }
  
  .breadcrumb {
    font-size: 0.8rem;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .quality-visual-card,
  .votob-card {
    padding: 30px 20px;
  }
}

/* Large desktops */
@media (min-width: 1400px) {
  .container {
    max-width: 1300px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .certificates-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .parallax-section {
    background-attachment: scroll;
  }
}

/* Print styles */
@media print {
  .menu-btn,
  .back-to-top,
  .cta-buttons,
  .social-links,
  .footer-bottom .footer-links {
    display: none !important;
  }
  
  .certificates-hero .hero-static {
    background: white !important;
    color: black !important;
    min-height: auto;
  }
  
  .certificates-hero .hero-static::before {
    display: none;
  }
  
  .hero-title,
  .hero-subtitle,
  .section-title,
  .section-subtitle,
  .certificate-header h3,
  .additional-cert h3,
  .step-content h3,
  .feature h4,
  .votob-card h3,
  .quality-visual-card h3 {
    color: black !important;
  }
  
  .hero-stats-certificates .stat-box,
  .certificate-card,
  .additional-cert,
  .votob-card {
    background: white !important;
    border: 1px solid #ddd !important;
    color: black !important;
  }
  
  .certificate-body p,
  .additional-cert p,
  .votob-card p,
  .feature p {
    color: #333 !important;
  }
  
  a {
    color: black !important;
    text-decoration: underline;
  }
  
  .footer {
    border-top: 1px solid #ddd;
  }
}

/* Fix for parallax sections content */
.parallax-section .section-header .section-title {
  color: white !important;
}

.parallax-section .section-header .section-subtitle {
  color: #00a8ff !important;
}

.parallax-section .section-header .section-description {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Consistent color scheme with sustainability page */
:root {
  --primary-blue: #1a3b5d;
  --secondary-blue: #0a3250;
  --accent-blue: #00a8ff;
  --light-blue: #0097e6;
  --light-bg: #f8f9fa;
  --text-dark: #333;
  --text-medium: #666;
  --text-light: #999;
}

/* Apply consistent colors */
.quality-intro,
.certification-process {
  background-color: var(--light-bg);
}

.certificates-grid-section,
.additional-certs {
  background-color: #fff;
}

/* Ensure all section headers have consistent styling */
.quality-intro .section-header,
.certificates-grid-section .section-header,
.votob-section .section-header,
.additional-certs .section-header,
.certification-process .section-header,
.certificates-cta .section-header {
  color: var(--primary-blue);
}

.quality-intro .section-subtitle,
.certificates-grid-section .section-subtitle,
.votob-section .section-subtitle,
.additional-certs .section-subtitle,
.certification-process .section-subtitle,
.certificates-cta .section-subtitle {
  color: var(--accent-blue);
}

/* Parallax section specific fixes */
.votob-section .section-title,
.certificates-cta .section-title {
  color: white !important;
}

.votob-section .section-subtitle,
.certificates-cta .section-subtitle {
  color: var(--accent-blue) !important;
}