/* ===== TRICHY RASI TRAVELS CONNECT SECTION - RESPONSIVE ===== */

.tr-connect-section {
  padding: 60px 0;
  background: #ffffff;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.tr-container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  max-width: 1320px;
}

.tr-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.tr-row > [class*="tr-col"] {
  padding-right: 15px;
  padding-left: 15px;
  width: 100%;
}

.tr-col-full {
  flex: 0 0 100%;
  max-width: 100%;
}

.tr-col-lg-7 {
  flex: 0 0 100%;
  max-width: 100%;
}

.tr-col-lg-5 {
  flex: 0 0 100%;
  max-width: 100%;
}

.tr-col-md-8 {
  flex: 0 0 100%;
  max-width: 100%;
}

.tr-col-md-4 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Grid System */
.tr-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 30px 0;
}

/* Section Header */
.tr-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.tr-subtitle {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  color: #f7921f;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 8px;
}

.tr-subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #f7921f;
  border-radius: 2px;
}

.tr-title {
  font-size: 36px;
  font-weight: 700;
  color: #223740;
  line-height: 1.2;
  margin-bottom: 0;
}

/* Cards */
.tr-card {
  padding: 35px;
  border-radius: 15px;
  transition: all 0.3s ease;
  height: 100%;
}

.tr-card-primary {
  background: linear-gradient(135deg, #f7921f 0%, #ffa94d 100%);
  color: white;
}

.tr-card-primary .tr-card-heading,
.tr-card-primary .tr-card-text {
  color: white;
}

.tr-card-light {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.tr-card-accent {
  background: rgba(247, 146, 31, 0.08);
  border-left: 5px solid #f7921f;
  padding: 30px;
}

.tr-card-heading {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 18px;
  color: inherit;
}

.tr-card-text {
  font-size: 16px;
  line-height: 1.7;
  color: inherit;
  opacity: 0.9;
  margin-bottom: 0;
}

/* Badge Group */
.tr-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 15px;
}

.tr-badge {
  display: inline-block;
  padding: 8px 16px;
  background: white;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #223740;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  border: 1px solid #f7921f;
}

/* Contact Message */
.tr-contact-message {
  padding: 25px;
  background: #223740;
  border-radius: 15px;
  color: white;
}

.tr-message-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #f7921f;
}

.tr-message-text {
  font-size: 16px;
  line-height: 1.6;
  color: #e9ecef;
  margin-bottom: 0;
}

/* Quote Box */
.tr-quote-box {
  padding: 20px;
  background: transparent;
  text-align: left;
  margin-top: 15px;
}

.tr-quote-text {
  font-size: 20px;
  font-weight: 600;
  color: #f7921f;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 0;
}

.tr-quote-text i {
  font-size: 16px;
  margin: 0 5px;
  opacity: 0.7;
}

/* Spacing Utilities */
.tr-mt-4 {
  margin-top: 30px;
}

.tr-mt-5 {
  margin-top: 40px;
}

.tr-align-center {
  align-items: center;
}

.tr-text-md-right {
  text-align: left;
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .tr-grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .tr-col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }

  .tr-col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .tr-text-md-right {
    text-align: right;
  }

  .tr-quote-box {
    text-align: right;
    margin-top: 0;
  }

  .tr-title {
    font-size: 40px;
  }

  .tr-card {
    padding: 35px;
  }
}

/* Desktop (992px and up) */
@media (min-width: 992px) {
  .tr-connect-section {
    padding: 70px 0;
  }

  .tr-col-lg-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }

  .tr-col-lg-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }

  .tr-title {
    font-size: 45px;
  }

  .tr-card {
    padding: 40px;
  }

  .tr-badge-group {
    justify-content: flex-end;
    margin-top: 0;
  }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
  .tr-connect-section {
    padding: 80px 0;
  }

  .tr-card {
    padding: 45px;
  }

  .tr-title {
    font-size: 48px;
  }
}

/* Mobile Landscape (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .tr-grid-2 {
    gap: 20px;
  }

  .tr-card {
    padding: 25px;
  }

  .tr-title {
    font-size: 32px;
  }

  .tr-card-heading {
    font-size: 22px;
  }
}

/* Small Mobile (up to 575px) */
@media (max-width: 575px) {
  .tr-connect-section {
    padding: 40px 0;
  }

  .tr-title {
    font-size: 28px;
  }

  .tr-subtitle {
    font-size: 16px;
  }

  .tr-card {
    padding: 25px;
  }

  .tr-card-heading {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .tr-card-text {
    font-size: 15px;
    line-height: 1.6;
  }

  .tr-badge-group {
    flex-direction: column;
    gap: 8px;
  }

  .tr-badge {
    text-align: center;
  }

  .tr-contact-message {
    padding: 20px;
  }

  .tr-message-title {
    font-size: 20px;
  }

  .tr-quote-text {
    font-size: 18px;
    text-align: center;
  }

  .tr-mt-4 {
    margin-top: 25px;
  }

  .tr-mt-5 {
    margin-top: 30px;
  }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
  .tr-card {
    transform: none !important;
  }
}
