/* ESG/CSR Activities Page Styles */

/* Global Container Improvements */
.container {
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 30px;
    padding-right: 30px;
  }
}

/* Section Spacing */
section {
  position: relative;
}

section:not(.esg-hero-section) {
  padding: 5rem 0;
}

/* Hero Section */

.esg-hero-section .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.7) 50%, rgba(15, 23, 42, 0.8) 100%), url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.esg-hero-section .container {
  position: relative;
  z-index: 2;
}

.esg-hero-section .hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.esg-hero-section .hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  margin-top: 4rem;
}

.hero-stats .row {
  justify-content: center;
  align-items: stretch;
}

.hero-stats .col-md-4 {
  display: flex;
  margin-bottom: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-item i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.stat-item h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* News Section */
.esg-news-section {
  background: var(--light-color);
  padding: 5rem 0;
}

.esg-news-section .row {
  margin-bottom: 2rem;
}

.esg-news-section .row:last-child {
  margin-bottom: 0;
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Featured News Card */
.featured-news-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.featured-news-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.featured-news-card .news-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

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

.featured-news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
}

.featured-news-card .news-content {
  padding: 2rem;
}

.news-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.news-category {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-color);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 500;
}

.news-date {
  color: var(--text-light);
  font-size: 0.9rem;
}

.featured-news-card .news-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.featured-news-card .news-excerpt {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* News Sidebar */
.news-sidebar {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.news-sidebar h4 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 0.75rem;
}

.category-list a {
  color: var(--text-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.category-list a:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateX(5px);
}

/* News Cards */
.news-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.news-card .news-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-category-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.news-category-badge.environmental {
  background: linear-gradient(135deg, #10b981, #059669);
}

.news-category-badge.social {
  background: linear-gradient(135deg, #6366f1, #5b21b6);
}

.news-category-badge.governance {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.news-card .news-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-card .news-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-card .news-excerpt {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.news-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-top: auto;
}

.news-link:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

/* Load More Button */
.load-more-btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

/* ESG Commitment Section */
.esg-commitment-section {
  background: var(--dark-color);
  color: white;
  padding: 5rem 0;
}

.esg-commitment-section .row {
  align-items: stretch;
}

.esg-commitment-section .col-lg-4 {
  display: flex;
  margin-bottom: 2rem;
}

.esg-commitment-section .section-title {
  color: white;
}

.esg-commitment-section .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.commitment-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  height: 100%;
}

.commitment-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
}

.commitment-card.environmental:hover {
  border-color: #10b981;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.commitment-card.social:hover {
  border-color: #6366f1;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.commitment-card.governance:hover {
  border-color: #8b5cf6;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.commitment-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.commitment-card.environmental .commitment-icon {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.commitment-card.social .commitment-icon {
  background: linear-gradient(135deg, #6366f1, #5b21b6);
  color: white;
}

.commitment-card.governance .commitment-icon {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

.commitment-card:hover .commitment-icon {
  transform: scale(1.1) rotate(5deg);
}

.commitment-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.commitment-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.commitment-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.commitment-card li {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.commitment-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Footer */
.footer-section {
  background: var(--dark-color);
  color: white;
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.footer-section h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.contact-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.social-links {
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  color: white;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--gradient-primary);
  transform: translateY(-3px);
}

/* Desktop Optimization */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  .esg-hero-section .hero-title {
    font-size: 4.5rem;
  }

  .esg-hero-section .hero-subtitle {
    font-size: 1.4rem;
  }

  .stat-item {
    padding: 2.5rem 2rem;
    margin-bottom: 0;
  }

  .news-card {
    margin-bottom: 2rem;
  }

  .commitment-card {
    padding: 3rem 2.5rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .featured-news-card .news-content {
    padding: 2.5rem;
  }

  .featured-news-card .news-title {
    font-size: 2rem;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 100%;
  }

  .esg-hero-section .hero-title {
    font-size: 3.5rem;
  }

  .stat-item {
    padding: 2rem 1.5rem;
  }

  .commitment-card {
    padding: 2.5rem 2rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .esg-hero-section .hero-title {
    font-size: 2.5rem;
  }

  .esg-hero-section .hero-subtitle {
    font-size: 1.1rem;
  }

  .featured-news-card .news-content {
    padding: 1.5rem;
  }

  .featured-news-card .news-title {
    font-size: 1.5rem;
  }

  .news-sidebar {
    position: static;
    margin-top: 2rem;
  }

  .commitment-card {
    padding: 2rem;
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .esg-hero-section .hero-title {
    font-size: 2rem;
  }

  .stat-item {
    padding: 1.5rem 1rem;
  }

  .stat-item i {
    font-size: 2rem;
  }

  .news-card .news-content {
    padding: 1.25rem;
  }

  .commitment-card {
    padding: 1.5rem;
  }
}
