/* =====================================================
   CERTIFICATES PAGE STYLES - NEW COLOR PALETTE
   Primary Blue: #19255A
   Light Blue: #27BCEE  
   Gray/White: #DADADA
   ===================================================== */

:root {
  --primary-blue: #19255A;
  --light-blue: #27BCEE;
  --neutral-gray: #DADADA;
  --white: #ffffff;
}

/* Override GeneratePress theme margins */
.separate-containers .site-main,
#main.site-main,
main.site-main {
  margin: 0 !important;
}

/* Certificates Banner Section */
.certificates-banner {
  position: relative;
  height: 200px;
  background-image: url('../images/in-page-banner-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificates-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(25,37,90,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificates-banner-content {
  text-align: center;
  color: var(--white);
  z-index: 2;
}

.certificates-banner-title {
  font-size: 48px;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Certificates Content Section */
.certificates-content {
  padding: 80px 0;
  background: var(--white);
}

.certificates-content .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.certificates-article {
  max-width: none;
}

.certificates-content-wrapper {
  font-size: 16px;
  line-height: 1.8;
  color: #333333;
}

.certificates-content-wrapper h1,
.certificates-content-wrapper h2,
.certificates-content-wrapper h3,
.certificates-content-wrapper h4 {
  color: var(--primary-blue);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

.certificates-content-wrapper h2 {
  font-size: 32px;
  border-bottom: 2px solid var(--neutral-gray);
  padding-bottom: 10px;
}

.certificates-content-wrapper h3 {
  font-size: 24px;
}

.certificates-content-wrapper p {
  margin-bottom: 24px;
}

/* WordPress Gallery Styles for Certificates */
.certificates-content-wrapper .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.certificates-content-wrapper .wp-block-gallery .wp-block-image {
  margin: 0;
}

.certificates-content-wrapper .wp-block-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(25,37,90,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid var(--neutral-gray);
}

.certificates-content-wrapper .wp-block-gallery img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(25,37,90,0.2);
  border-color: var(--light-blue);
}

/* Individual Image Blocks */
.certificates-content-wrapper .wp-block-image {
  margin: 30px 0;
  text-align: center;
}

.certificates-content-wrapper .wp-block-image img {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(25,37,90,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
  height: auto;
  border: 2px solid var(--neutral-gray);
}

.certificates-content-wrapper .wp-block-image img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(25,37,90,0.2);
  border-color: var(--light-blue);
}

/* Certificate Image Captions */
.certificates-content-wrapper .wp-block-image figcaption {
  margin-top: 15px;
  font-size: 14px;
  color: #666;
  font-style: italic;
  text-align: center;
}

/* Links */
.certificates-content-wrapper a {
  color: var(--light-blue);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.certificates-content-wrapper a:hover {
  color: var(--primary-blue);
}

/* Responsive Design for Certificates */
@media (max-width: 768px) {
  .certificates-banner {
    height: 150px;
  }
  
  .certificates-banner-title {
    font-size: 32px;
  }
  
  .certificates-content {
    padding: 60px 0;
  }
  
  .certificates-content .container {
    padding: 0 15px;
  }
  
  .certificates-content-wrapper h2 {
    font-size: 28px;
  }
  
  .certificates-content-wrapper h3 {
    font-size: 22px;
  }
  
  .certificates-content-wrapper .wp-block-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .certificates-banner {
    height: 125px;
  }
  
  .certificates-banner-title {
    font-size: 28px;
  }
  
  .certificates-content {
    padding: 40px 0;
  }
  
  .certificates-content-wrapper {
    font-size: 15px;
  }
}