/**
 * TecDiveTrip Blocks - Specific Styles
 *
 * @package TecDiveTrip
 */

/* ===== FALLBACK VARIABLES (caso não carregue do main.css) ===== */
:root {
  --brand-deep-blue: #0A2540;
  --brand-tech-cyan: #00B4D8;
  --brand-graphite: #333333;
  --brand-white: #FFFFFF;
  --brand-luxury-gold: #CFAE70;
  --section-padding: 80px 0;
  --border-radius: 8px;
  --border-radius-large: 16px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-large: 0 10px 25px rgba(0, 0, 0, 0.15);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ===== FORCE FONT LOADING ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap');

/* ===== HERO BLOCK ===== */
.tecdivetrip-hero-block .hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-deep-blue) 0%, var(--brand-tech-cyan) 100%);
  background-size: cover;
  background-position: center;
  color: var(--brand-white);
  border-radius: var(--border-radius-large);
  overflow: hidden;
}

.tecdivetrip-hero-block .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 37, 64, 0.6);
  z-index: 1;
}

.tecdivetrip-hero-block .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 0;
}

.tecdivetrip-hero-block .hero-title {
  font-size: clamp(32px, 5vw, 56px);
  margin: 0 0 24px 0;
  line-height: 1.2;
}

.tecdivetrip-hero-block .hero-subtitle {
  font-size: clamp(16px, 3vw, 20px);
  margin: 0 0 32px 0;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tecdivetrip-hero-block .hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== COURSE GRID BLOCK ===== */
.tecdivetrip-course-grid-block .courses-section {
  padding: var(--section-padding);
}

.tecdivetrip-course-grid-block .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.tecdivetrip-course-grid-block .section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 16px 0;
  color: var(--brand-deep-blue);
}

.tecdivetrip-course-grid-block .courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.tecdivetrip-course-grid-block .course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0;
}

.tecdivetrip-course-grid-block .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
}

.tecdivetrip-course-grid-block .meta-item svg {
  color: var(--brand-tech-cyan);
}

.tecdivetrip-course-grid-block .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.tecdivetrip-course-grid-block .course-price {
  font-weight: bold;
  color: var(--brand-deep-blue);
  font-size: 18px;
}

/* ===== TRIP GRID BLOCK ===== */
.tecdivetrip-trip-grid-block .trips-section {
  padding: var(--section-padding);
}

.tecdivetrip-trip-grid-block .trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.tecdivetrip-trip-grid-block .trip-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.tecdivetrip-trip-grid-block .trip-price {
  font-weight: bold;
  color: var(--brand-deep-blue);
  font-size: 18px;
}

.tecdivetrip-trip-grid-block .destination-badge,
.tecdivetrip-trip-grid-block .special-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--brand-tech-cyan);
  color: var(--brand-white);
  padding: 6px 12px;
  border-radius: var(--border-radius);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.tecdivetrip-trip-grid-block .special-badge {
  background-color: var(--brand-luxury-gold);
  color: var(--brand-deep-blue);
  top: 50px;
}

/* ===== INSTRUCTOR INFO BLOCK ===== */
.tecdivetrip-instructor-info-block {
  margin:  0;
  padding: 0;
  background-color: #f7fbff;
}

.tecdivetrip-instructor-info-block .instructor-info {
  padding: 80px 0;
}

.tecdivetrip-instructor-info-block .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.tecdivetrip-instructor-info-block .instructor-content {
  display: grid;
  gap: 48px;
  align-items: center;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .tecdivetrip-instructor-info-block .instructor-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  
  .tecdivetrip-instructor-info-block .instructor-info {
    padding: 60px 0;
  }
}

/* Typography and Text Styles */
.tecdivetrip-instructor-info-block .instructor-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 36px);
  margin: 0 0 8px 0;
  color: #0b2c3f;
  line-height: 1.2;
}

.tecdivetrip-instructor-info-block .instructor-title {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 16px 0;
  color: var(--brand-tech-cyan);
  line-height: 1.3;
}

.tecdivetrip-instructor-info-block .instructor-description {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 24px 0;
  color: #2c3e50;
}

.tecdivetrip-instructor-info-block .instructor-description p {
  margin-bottom: 16px;
}

.tecdivetrip-instructor-info-block .instructor-description p:last-child {
  margin-bottom: 0;
}

/* Certifications Section */
.tecdivetrip-instructor-info-block .instructor-certifications {
  margin-top: 24px;
  margin-bottom: 24px;
}

.tecdivetrip-instructor-info-block .instructor-certifications strong {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  color: #0b2c3f;
  font-size: 16px;
  display: block;
  margin-bottom: 12px;
}

.tecdivetrip-instructor-info-block .certifications-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tecdivetrip-instructor-info-block .certification-badge {
  background-color: rgba(0, 180, 216, 0.08);
  color: #0b2c3f;
  border-color: transparent;
  padding: 6px 10px;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  border: 1px solid;
  display: inline-block;
}

.tecdivetrip-instructor-info-block .floating-badge{
    background-color: var(--brand-luxury-gold);
    color: var(--brand-deep-blue);
    font-size: 1rem;
    border-color: var(--brand-luxury-gold);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    display: inline-block;
}


/* Image Section */
.tecdivetrip-instructor-info-block .instructor-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tecdivetrip-instructor-info-block .instructor-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 4px solid #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tecdivetrip-instructor-info-block .instructor-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .tecdivetrip-instructor-info-block .instructor-photo {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 480px) {
  .tecdivetrip-instructor-info-block .instructor-photo {
    width: 200px;
    height: 200px;
  }
}



/* Block Editor Preview Adjustments */
.block-editor-page .tecdivetrip-instructor-info-block .instructor-photo {
  width: 200px;
  height: 200px;
}

.block-editor-page .tecdivetrip-instructor-info-block .instructor-content {
  gap: 24px;
}

.block-editor-page .tecdivetrip-instructor-info-block .instructor-info {
  padding: 40px 0;
}

.opacity-2{
    opacity: .02
}
.opacity-3{
    opacity: .03
}
.opacity-5{
    opacity: .05
}
.opacity-8{
    opacity: .08
}
.opacity-30{
    opacity: 30
}
.opacity-70{
    opacity: 70
}
/* ===== CTA BLOCK ===== */
.home-cta-gradient{
    background: #0A2540;
    background: linear-gradient(to right bottom, rgb(10, 37, 64) 0%, oklab(0.711368 -0.0999701 -0.080873 / 0.8) 50%, rgb(10, 37, 64) 100%);
}

.tecdivetrip-cta-block .cta-section {
  padding: var(--section-padding);
  background-color: var(--brand-deep-blue);
  color: var(--brand-white);
  border-radius: var(--border-radius-large);
}

.tecdivetrip-cta-block.bg-alt .cta-section {
  background-color: #f8f9fa;
  color: var(--brand-graphite);
}

.tecdivetrip-cta-block .cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.tecdivetrip-cta-block .cta-title {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 16px 0;
}

.tecdivetrip-cta-block .cta-subtitle {
  font-size: 18px;
  margin: 0 0 32px 0;
  opacity: 0.9;
}

.tecdivetrip-cta-block .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.tecdivetrip-cta-block .btn-icon {
  margin-right: 8px;
}

/* ===== TESTIMONIAL BLOCK ===== */
.tecdivetrip-testimonial-block .testimonial-block {
  background-color: var(--brand-white);
  padding: 32px;
  border-radius: var(--border-radius-large);
  box-shadow: var(--box-shadow);
  margin: 24px 0;
}

.tecdivetrip-testimonial-block .testimonial-rating {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
}

.tecdivetrip-testimonial-block .star {
  font-size: 20px;
  color: #ddd;
}

.tecdivetrip-testimonial-block .star.filled {
  color: var(--brand-luxury-gold);
}

.tecdivetrip-testimonial-block .testimonial-quote {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  margin: 0 0 24px 0;
  color: var(--brand-graphite);
  font-style: italic;
}

.tecdivetrip-testimonial-block .testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.tecdivetrip-testimonial-block .author-image {
  flex-shrink: 0;
}

.tecdivetrip-testimonial-block .author-image img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.tecdivetrip-testimonial-block .author-info {
  text-align: left;
}

.tecdivetrip-testimonial-block .author-name {
  display: block;
  font-size: 16px;
  color: var(--brand-deep-blue);
  font-style: normal;
  margin-bottom: 4px;
}

.tecdivetrip-testimonial-block .author-title {
  font-size: 14px;
  color: var(--brand-tech-cyan);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .tecdivetrip-course-grid-block .courses-grid,
  .tecdivetrip-trip-grid-block .trips-grid {
    grid-template-columns: 1fr;
  }
  
  .tecdivetrip-cta-block .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .tecdivetrip-testimonial-block .testimonial-author {
    flex-direction: column;
    text-align: center;
  }
  
  .tecdivetrip-testimonial-block .author-info {
    text-align: center;
  }
}

/* ===== BLOCK EDITOR SPECIFIC STYLES ===== */
.block-editor-page .tecdivetrip-hero-block .hero-section {
  min-height: 400px;
}

.block-editor-page .tecdivetrip-instructor-info-block .instructor-photo {
  width: 200px;
  height: 200px;
}
