/* About Hero Section */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  width: 100%;
}

.about-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 41, 59, 0.45);
  /* dark overlay for text readability */
}

.about-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  width: 100%;
  transition: transform 0.3s ease;
}

.about-hero-content h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.about-hero-content p {
  font-size: 1.4rem;
  max-width: 800px;
  font-weight: 400;
}

@media (max-width: 700px) {
  .about-hero {
    min-height: 330px;
  }

  .about-hero-content h1 {
    font-size: 1.76rem;
    /* 2.2rem - 20% = 1.76rem */
  }

  .about-hero-content p {
    font-size: 0.88rem;
    /* 1.1rem - 20% = 0.88rem */
  }
}

.about-journey-section {
  background: #fff;
  padding: 48px 0 24px 0;
  text-align: center;
  position: relative;
}

.about-journey-label {
  color: #b71c1c;
  font-size: 0.84rem;
  /* 1.2rem * 0.7 */
  margin-bottom: 12.6px;
}

.about-journey-title {
  color: #232b39;
  font-size: 2.1rem;
  /* 3rem * 0.7 */
  margin: 0 0 28px 0;
}

/* Mobile Responsive Styles */
@media (max-width: 1200px) {
  .about-hero {
    min-height: 500px;
  }

  .about-hero-content h1 {
    font-size: 2.8rem;
  }

  .about-hero-content p {
    font-size: 1.4rem;
  }

  .about-journey-section {
    padding: 40px 0 20px 0;
  }

  .about-journey-title {
    font-size: 1.9rem;
  }
}

@media (max-width: 992px) {
  .about-hero {
    min-height: 450px;
  }

  .about-hero-content h1 {
    font-size: 2.4rem;
    margin-bottom: 15px;
  }

  .about-hero-content p {
    font-size: 1.2rem;
  }

  .about-journey-section {
    padding: 36px 0 18px 0;
  }

  .about-journey-label {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }

  .about-journey-title {
    font-size: 1.7rem;
    margin-bottom: 24px;
  }
}

@media (max-width: 768px) {
  .about-hero {
    min-height: 400px;
  }

  .about-hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
  }

  .about-hero-content p {
    font-size: 1.1rem;
  }

  .about-journey-section {
    padding: 32px 0 16px 0;
  }

  .about-journey-label {
    font-size: 0.75rem;
    margin-bottom: 8px;
  }

  .about-journey-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
}

.about-hero:hover .about-hero-content {
  transform: scale(1.02);
}

/* At a Glance Component - Mobile Styles (576px and below) */
@media (max-width: 576px) {
  .at-a-glance-section {
    position: relative;
    padding: 40px 20px;
    overflow: hidden;
  }

  .at-a-glance-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.9;
    z-index: -1;
  }

  .at-a-glance-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
  }

  .at-a-glance-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.8;
  }

  .at-a-glance-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px 0;
    color: #b71c1c;
  }

  .at-a-glance-subtitle {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.4;
  }

  .at-a-glance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 300px;
    margin: 0 auto;
  }

  .at-a-glance-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .at-a-glance-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
  }

  .at-a-glance-number {
    font-size: 28px;
    font-weight: 800;
    color: #b71c1c;
    margin-bottom: 8px;
    line-height: 1;
  }

  .at-a-glance-number span {
    font-size: 20px;
    font-weight: 600;
    opacity: 0.8;
  }

  .at-a-glance-desc {
    font-size: 12px;
    font-weight: 500;
    color: #b71c1c;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Animation for fade-in effect */
  .at-a-glance-box {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
  }

  .at-a-glance-box:nth-child(1) {
    animation-delay: 0.1s;
  }

  .at-a-glance-box:nth-child(2) {
    animation-delay: 0.2s;
  }

  .at-a-glance-box:nth-child(3) {
    animation-delay: 0.3s;
  }

  .at-a-glance-box:nth-child(4) {
    animation-delay: 0.4s;
  }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Mobile Responsive Styles (576px and below) */
@media (max-width: 576px) {
  .flagship-product-section {
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .flagship-product-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    padding: 0;
    margin-left: 59px;
  }

  .flagship-product-img-col {
    order: 2;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .flagship-product-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block;
    max-width: 100%;
  }

  .flagship-product-content-col {
    order: 1;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .flagship-product-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
    padding: 0 0.5rem;
  }

  .flagship-product-highlight {
    display: block;
    font-size: 1.8rem;
    color: #0066cc;
    font-weight: bold;
    margin-top: 0.5rem;
  }

  .flagship-product-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    padding: 0 0.5rem;
    margin-bottom: 1rem;
    width: 100%;
  }

  .flagship-product-link {
    color: #0066cc;
    font-weight: bold;
    text-decoration: none;
  }

  .flagship-product-link:hover {
    text-decoration: underline;
  }
}

@media (max-width: 576px) {
  /* Base Styles for Mobile (576px) */
  .about-journey-section {
    padding: 20px 0;
  }

  .about-journey-container {
    max-width: 100%;
    padding: 0 15px;
    margin: 0 auto;
    overflow: hidden;
  }

  .about-journey-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }

  .about-journey-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
  }

  .timeline-wrapper {
    position: relative;
    padding: 20px 0 50px;
    margin-left: 20px;
  }

  .timeline-line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
  }

  .timeline-year {
    position: absolute;
    left: 15px;
    transform: translateX(-50%);
    background: #fff;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
  }

  .year-small {
    font-size: 12px;
    white-space: normal;
    width: 100px;
    text-align: center;
  }

  .year-range,
  .year-desc {
    display: block;
    line-height: 1.3;
  }

  .year-desc {
    font-weight: normal;
    font-size: 11px;
  }

  .timeline-flag {
    position: absolute;
    left: 15px;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #b71c1c;
    z-index: 2;
  }

  .flag-icon {
    font-size: 16px;
  }

  .timeline-box {
    position: relative;
    width: calc(100% - 45px);
    margin-left: 45px;
    margin-bottom: 40px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    line-height: 1.5;
  }

  .timeline-box ul {
    padding-left: 20px;
    margin: 0;
  }

  .timeline-box li {
    margin-bottom: 8px;
  }

  .timeline-box strong {
    color: #b71c1c;
  }

  .timeline-event {
    position: absolute;
    left: 45px;
    width: calc(100% - 60px);
    text-align: left;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 5px;
  }

  .timeline-event .event-title {
    display: block;
    font-weight: bold;
    color: #b71c1c;
  }

  .timeline-event .event-desc {
    display: block;
    color: #666;
    margin-top: 3px;
  }

  /* Specific Positioning for Each Element */
  .timeline-year[style*="top: 0%"] {
    top: 0;
  }

  .timeline-flag[style*="top: 60px"] {
    top: 60px;
  }

  .timeline-box[style*="top: 40px"] {
    top: 40px;
    margin-top: 30px;
  }

  .timeline-flag[style*="top: 300px"] {
    top: 300px;
  }

  .timeline-box[style*="top: 280px"] {
    top: 280px;
    margin-top: 30px;
  }

  .timeline-year[style*="top: 300px"] {
    top: 300px;
  }

  .timeline-event[style*="top: 60px"] {
    top: 100px;
  }

  .timeline-box[style*="top: 560px"] {
    top: 560px;
    margin-top: 30px;
  }

  .timeline-flag[style*="top: 580px"] {
    top: 580px;
  }

  .timeline-box[style*="top: 880px"] {
    top: 880px;
    margin-top: 30px;
  }

  .timeline-flag[style*="top: 900px"] {
    top: 900px;
  }

  .timeline-event[style*="top: 580px"] {
    top: 620px;
  }

  .timeline-year[style*="top: 900px"] {
    top: 900px;
  }
}
