/* Original Theme Colors and Styling */
:root {
  --primary-blue: #0a2342;
  --primary-green: #10b981;
  --light-green: #e0f7ef;
  --lighter-green: #d1fae5;
  --light-bg: #f0fdfa;
  --content-bg: #f7fafc;
  --text-dark: #2d3748;
  --text-green-dark: #14532d;
}

body {
  font-family: 'Inter', sans-serif;
  /* background: #f0fdfa; */
  color: #222;
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  font-family: 'Merriweather', serif !important;
}

/* Center all headings except hero */
h2, h3, h4, h5 {
  text-align: center;
  
}

/* Justify all paragraph text */
p {
  text-align: justify;
}

/* Updated Hero Section - Bottom-right border radius style */
.about-hero {
  background: linear-gradient(135deg, #0a2342, #10b981);
  color: #fff;
  padding: 0px 0px 0 0px; /* No bottom padding */
  min-height: 450px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom-right-radius: 120px;
}

.about-hero .hero-content {
  flex: 1 1 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  text-align: left;
  position: relative;
  padding-left: 140px;
  padding-right: 140px;
  width: 100%;
  max-width: 1100px;
}

.about-hero .hero-text {
  flex: 1;
  max-width: 500px;
  z-index: 2;
  padding-right: 20px;
}


.about-hero .hero-image {
  flex: 0 0 auto;
  position: relative;
  margin: 0; /* No margin */
  padding: 0; /* No padding */
  
}

.about-hero img {
  width: 300px;
  height: 450px; /* Match container height */
  border: none;
  margin: 0; /* No margin */
  padding: 0; /* No padding */
  position: relative;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  /* Only bottom-right border radius */
  border-bottom-right-radius: 120px;

}

.about-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
  color: #fff;
  text-align: left;
  line-height: 1.1;
}

.about-hero p {
  font-size: 13px;
  max-width: 100%;
  line-height: 1.6;
  color: #f9fafb;
  text-align: justify;
}

/* Content Blocks - Original Styling */
.content-block {
  background: #f7fafc;
  border-radius: 20px;
  padding: 40px 30px;
  margin-bottom: 40px;
  transition: background 0.3s, transform 0.3s;
  box-shadow: none;
}

.content-block:hover {
  background: #e0f7ef;
  transform: translateY(-2px);
  box-shadow: none;
}

/* Timeline Items - Original Styling */
.timeline-item {
  background: #e0f7ef;
  border-radius: 16px;
  padding: 25px;
  box-shadow: none;
  transition: background 0.3s, transform 0.3s;
  height: 100%;
}

.timeline-item:hover {
  background: #d1fae5;
  transform: translateY(-2px);
  box-shadow: none;
}

.timeline-item h5 { 
  color: #0a2342; 
  font-weight: 600; 
  margin-bottom: 12px; 
  text-align: center;
}

.timeline-item p { 
  color: #2d3748; 
  font-size: 0.95rem; 
  text-align: justify;
}

/* Awards Section - Original Styling */
.award-block {
  background: #e0f7ef;
  border-radius: 18px;
  padding: 28px 32px;
  display: flex;
  flex-direction: row;
  align-items: center;
  border-left: 8px solid #10b981;
  transition: background 0.2s, transform 0.2s;
  margin-bottom: 28px;
  gap: 32px;
}

.award-block:hover {
  background: #d1fae5;
  transform: translateY(-2px);
}

.award-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  color: #0a2342;
  font-weight: 600;
  margin-bottom: 0;
  min-width: 220px;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.award-year {
  font-size: 1.02rem;
  color: #10b981;
  font-weight: 500;
  margin-bottom: 0;
  min-width: 90px;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.award-desc {
  font-size: 0.98rem;
  color: #14532d;
  margin-bottom: 0;
  flex: 1;
  text-align: justify;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Original Button Styling */
.btn-theme {
  background: #10b981;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 28px;
  transition: all 0.3s;
  border: 1px solid #0a2342;
}

.btn-theme:hover {
  background: #0a2342;
  color: #10b981;
  text-decoration: none;
}

/* Blog section styles - Clean background with minimal spacing */
.life-legacy-section {
  background: #ffffff; /* Clean white background */
  padding: 2rem 0; /* Reduced padding */
  margin-top: 0; /* Removed top margin */
  border-top: 1px solid #e9ecef; /* Simple grey divider */
}

.life-legacy-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  cursor: pointer;
  border: 1px solid #e9ecef;
}

.life-legacy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.life-legacy-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.life-legacy-card-body {
  padding: 1.5rem;
}

.life-legacy-card-title {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #002147;
  margin-bottom: 1rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.life-legacy-card-desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #2c3e50;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.life-legacy-card-meta {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  color: #6c757d;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0a2342;
  text-align: center;
  margin-bottom: 2rem; /* Reduced bottom margin */
}

/* Mobile and Tablet Responsive Styles - FIXED */
@media (max-width: 992px) {
  .about-hero {
    padding: 0px;
    min-height: 400px;
    border-bottom-right-radius: 80px;
  }
  
  .hero-content {
    flex-direction: row;
    gap: 30px;
    padding-left: 20px;
    padding-right: 20px;
    align-items: center;
    justify-content: space-between;
  }
  
  .about-hero .hero-text {
    flex: 1;
    max-width: 450px;
    padding-right: 15px;
  }
  
  .about-hero h1 {
    font-size: 1.9rem;
    margin-bottom: 15px;
    padding: 0;
    text-align: left;
  }
  
  .about-hero img {
    width: 250px;
    height: 400px;
    border-bottom-right-radius: 80px;
  }
  
  .about-hero p {
    font-size: 13px;
    text-align: justify;
    padding: 0;
    line-height: 1.5;
  }
}

/* Mobile Responsive - FIXED */
@media (max-width: 768px) {
  .about-hero {
    padding: 0;
    min-height: 300px;
    border-bottom-right-radius: 60px;
  }
  
  .about-hero .hero-content {
    flex-direction: column;
    gap: 20px;
    padding-left: 15px;
    padding-right: 15px;
    text-align: justify;
    align-items: center;
    justify-content: left;
  }
  
  .about-hero .hero-text {
    flex: none;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0; /* Remove left padding */
    order: 2;
  }
  
  .about-hero .hero-image {
    order: 1;
    margin-bottom: 15px;
  }
  
  .about-hero h1 { 
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-align: center;
    padding: 0 10px; /* Add small horizontal padding */
  }
  
  .about-hero img {
    width: 200px;
    height: 300px;
    border-bottom-right-radius: 60px;
    margin: 0 !important;
  }
  
  .about-hero p {
    font-size: 12px;
    line-height: 1.6;
    text-align:  left;
    padding: 0 15px; /* Add proper horizontal padding */
    max-width: 100%;
  }
}

/* Small Mobile - FIXED */
@media (max-width: 576px) {
  .about-hero {
    padding: 0px 0px 0 0 !important;
    min-height: 280px;
    border-bottom-right-radius: 50px;
  }
  
  .about-hero .hero-content {
    flex-direction: column;
    gap: 15px;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .about-hero .hero-text {
    max-width: 100%;
    padding-right: 0;
    padding-left: 0; /* Remove left padding */
  }
  
  .about-hero h1 { 
    font-size: 1.4rem;
    margin-bottom: 12px;
    text-align: center;
    padding: 0 8px; /* Smaller padding for small screens */
  }
  
  .about-hero img {
    width: 170px;
    height: 220px;
    border-bottom-right-radius: 50px;
    margin: 0 auto;
  }
  
  .about-hero p {
    font-size: 11px;
    text-align: center;
    padding: 0 12px; /* Better horizontal padding */
    line-height: 1.5;
  }
}

/* Extra Small Mobile - FIXED */
@media (max-width: 480px) {
  .about-hero {
    min-height: 260px;
    padding: 0px 0px 0 0 !important;
    border-bottom-right-radius: 40px;
  }
  
  .about-hero h1 { 
    font-size: 1.2rem;
    padding: 0 5px; /* Minimal padding */
    margin-bottom: 10px;
  }
  
  .about-hero p {
    font-size: 10px;
    padding: 0 10px; /* Proper padding for readability */
    line-height: 1.4;
  }

   .about-hero img {
    width: 170px;
    height: 260px;
    border-bottom-right-radius: 40px;
    margin: 0 auto;
  }
}


/* Awards Section - Mobile Responsive Fix */
@media (max-width: 768px) {
  .about-hero {
    min-height: 240px;
    padding: 0px 0px !important;
    border-bottom-right-radius: 50px;
  }
  .award-block {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 20px 15px;
    text-align: center;
  }
  
  .award-name {
    min-width: auto;
    font-size: 1rem;
    text-align: center;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .award-year {
    min-width: auto;
    font-size: 0.95rem;
    text-align: center;
    width: 100%;
  }
  
  .award-desc {
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

   .about-hero img {
    width: 170px;
    height: 240px;
    border-bottom-right-radius: 50px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
   .about-hero {
    min-height: 240px;
    padding: 0px 0px !important;
    border-bottom-right-radius: 50px;
  }
  .about-hero img {
    width: 170px;
    height: 240px;
    border-bottom-right-radius: 50px;
    margin: 0 auto;
  }
  .award-block {
    padding: 15px 10px;
    gap: 12px;
  }
  
  .award-name {
    font-size: 0.95rem;
  }
  
  .award-year {
    font-size: 0.9rem;
  }
  
  .award-desc {
    font-size: 0.85rem;
  }
}

/* Mobile Hero Text Fix - Keep Desktop Unchanged */
@media (max-width: 768px) {
   .about-hero {
    min-height: 240px;
    padding: 0px 0px !important;
    border-bottom-right-radius: 50px;
  }
  .about-hero .hero-content {
    flex-direction: column;
    gap: 20px;
    padding-left: 15px;
    padding-right: 0px;
    text-align: left;
    align-items: center;
    justify-content: left;
  }
  .about-hero img {
    width: 170px;
    height: 240px;
    border-bottom-right-radius: 50px;
    margin: 0 auto;
  }
  
  .about-hero .hero-text {
    flex: none;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
    order: 2;
    width: 100%;
  }
  
  .about-hero h1 { 
    font-size: 1rem !important;
    margin-bottom: 15px;
    text-align: center;
    padding: 0 15px;
    width: 100%;
  }
  
  .about-hero p {
    font-size: 9px !important;
    line-height: 1;
    text-align: justify;
    padding: 0 0px !important;
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 576px) {
   .about-hero {
    min-height: 240px;
    padding: 0px 0px;
    border-bottom-right-radius: 50px;
  }
  .about-hero img {
    width: 170px;
    height: 240px;
    border-bottom-right-radius: 50px;
    margin: 0 auto;
  }
  .about-hero .hero-text {
    width: 100%;
    padding: 0;
  }
  
  .about-hero h1 { 
    font-size: 1.4rem;
    padding: 0 10px;
    margin-bottom: 12px;
    width: 100%;
  }
  
  .about-hero p {
    font-size: 11px;
    padding: 0 15px;
    line-height: 1.5;
    width: 100%;
  }
}

/* Mobile Hero Image - Remove Right and Bottom Space */
@media (max-width: 768px) {
  .about-hero {
    min-height: 240px;
    padding: 0px 0px !important;
    border-bottom-right-radius: 50px;
    overflow: hidden; /* Ensure no overflow */
  }
  
  .about-hero .hero-content {
    flex-direction: column;
    gap: 20px;
    padding-left: 15px;
    padding-right: 0px; /* Remove right padding */
    text-align: left;
    align-items: flex-end; /* Align to right edge */
    justify-content: left;
  }
  
  .about-hero .hero-image {
    order: 1;
    margin: 0; /* Remove all margins */
    padding: 0; /* Remove all padding */
    align-self: flex-end; /* Position to right edge */
  }
  
  .about-hero img {
    width: 170px;
    height: 240px;
    border-bottom-right-radius: 50px;
    margin: 0 !important; /* Force remove margin */
    padding: 0 !important; /* Force remove padding */
    display: block;
    position: relative;
    right: 0; /* Align to right edge */
    bottom: 0; /* Align to bottom edge */
  }
}

@media (max-width: 576px) {
  .about-hero {
    min-height: 240px;
    padding: 0px !important;
    border-bottom-right-radius: 50px;
    overflow: hidden;
  }
  
  .about-hero .hero-content {
    padding-right: 0px !important;
    align-items: flex-end;
  }
  
  .about-hero .hero-image {
    margin: 0 !important;
    padding: 0 !important;
    align-self: flex-end;
  }
  
  .about-hero img {
    width: 170px;
    height: 240px;
    border-bottom-right-radius: 50px;
    margin: 0 !important;
    padding: 0 !important;
    right: 0;
    bottom: 0;
  }
}