/* style/tintc.css */

:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --bg-color: #F5F7FA;
  --border-color: #E0E0E0;
}

.page-tintc {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

.page-tintc__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-tintc__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-tintc__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

/* HERO Section */
.page-tintc__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--bg-color);
}

.page-tintc__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-tintc__hero-image-wrapper {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-tintc__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-tintc__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-tintc__hero-content h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tintc__hero-content p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tintc__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-tintc__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* News Overview Section */
.page-tintc__news-overview-section {
  padding: 60px 0;
  background-color: var(--card-bg-color);
}

/* Featured News Section */
.page-tintc__featured-news-section {
  padding: 60px 0;
  background-color: var(--bg-color);
}

.page-tintc__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-tintc__news-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-tintc__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-tintc__news-card-image-wrapper {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  overflow: hidden;
}

.page-tintc__news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-tintc__news-card:hover .page-tintc__news-card-image {
  transform: scale(1.05);
}

.page-tintc__news-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-tintc__news-card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tintc__news-card-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tintc__news-card-title a:hover {
  color: var(--secondary-color);
}

.page-tintc__news-card-date {
  font-size: 14px;
  color: #777777;
  margin-bottom: 15px;
}

.page-tintc__news-card-excerpt {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tintc__news-card-readmore {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-tintc__news-card-readmore:hover {
  color: var(--secondary-color);
}

.page-tintc__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-tintc__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-tintc__view-all-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Deep Dive Section */
.page-tintc__deep-dive-section {
  padding: 60px 0;
  background-color: var(--card-bg-color);
}

.page-tintc__deep-dive-section p {
  font-size: 17px;
  margin-bottom: 25px;
  color: var(--text-main-color);
  text-align: justify;
}

.page-tintc__deep-dive-section h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-tintc__content-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* CTA Section */
.page-tintc__cta-section {
  padding: 80px 0;
  background-color: var(--bg-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-tintc__cta-content {
  max-width: 900px;
  margin-bottom: 40px;
}

.page-tintc__cta-section .page-tintc__section-title {
  color: var(--text-main-color);
}

.page-tintc__cta-section .page-tintc__section-description {
  color: #666666;
}

.page-tintc__cta-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-tintc__cta-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Image and Button Responsiveness */
.page-tintc img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-tintc__cta-button,
.page-tintc__view-all-button,
.page-tintc__news-card-readmore {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tintc__button-group {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-tintc__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tintc__hero-content h1 {
    font-size: 32px;
  }

  .page-tintc__hero-content p {
    font-size: 16px;
  }

  .page-tintc__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-tintc__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-tintc__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-tintc__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tintc__news-card-image-wrapper {
    height: 180px;
  }

  .page-tintc__news-card-title {
    font-size: 20px;
  }

  .page-tintc__news-card-excerpt {
    font-size: 15px;
  }

  .page-tintc__deep-dive-section p {
    font-size: 16px;
  }

  .page-tintc__deep-dive-section h3 {
    font-size: 24px;
  }

  .page-tintc__cta-section {
    padding: 60px 0;
  }

  .page-tintc__container,
  .page-tintc__cta-content {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-tintc__hero-image-wrapper,
  .page-tintc__cta-image-wrapper {
    border-radius: 8px;
  }

  .page-tintc__cta-button,
  .page-tintc__view-all-button,
  .page-tintc__news-card-readmore {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tintc__view-all-button-wrapper {
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-tintc__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}