/* Color Variables - Based on TAS Logo */
:root {
  --primary-green: #2d8659;
  --primary-yellow: #ffd700;
  --primary-orange: #ff8c00;
  --dark-green: #1e5a3d;
  --light-green: #4caf50;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
.header-top {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: var(--white);
}

.logo {
  max-width: 100%;
  height: auto;
}

.site-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-yellow);
  margin: 0;
}

.site-tagline {
  font-size: 1rem;
  color: var(--white);
  margin: 0;
}

/* Navigation */
.navbar {
  background: var(--dark-green) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  padding: 10px 15px !important;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-yellow) !important;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-yellow);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

.dropdown-menu {
  background: var(--white);
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
  background: var(--primary-green);
  color: var(--white);
}

/* Hero Slider */
.hero-slider {
  position: relative;
}

.carousel-item {
  height: 500px;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
}

.carousel-caption {
  background: rgba(45, 134, 89, 0.8);
  padding: 30px;
  border-radius: 10px;
}

.carousel-caption h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-yellow);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  padding: 60px 0 40px;
  color: var(--white);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--primary-yellow);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--white);
}

/* Section Titles */
.section-title h2 {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-green);
  position: relative;
  display: inline-block;
}

.title-underline {
  width: 80px;
  height: 3px;
  background: var(--primary-orange);
  margin: 10px auto;
}

/* Welcome Section */
.welcome-section {
  background: var(--white);
}

.welcome-content {
  text-align: justify;
}

/* Quick Info Cards */
.quick-info {
  background: var(--bg-light);
}

.info-card {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.info-card .card-icon {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 15px;
}

.info-card h3 {
  font-size: 1.5rem;
  color: var(--primary-green);
  margin-bottom: 10px;
}

/* News Cards */
.news-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.news-card .card-body {
  padding: 20px;
}

.news-card h5 {
  color: var(--primary-green);
  font-weight: bold;
}

.news-card .badge {
  font-size: 0.8rem;
}

/* Content Box */
.content-box {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Highlight Box */
.highlight-box {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-green);
}

.highlight-box i {
  color: var(--primary-green);
  margin-right: 10px;
}

/* Key Functions List */
.key-functions {
  list-style: none;
  padding: 0;
}

.key-functions li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.key-functions li i {
  color: var(--primary-orange);
  margin-right: 10px;
}

/* Vision/Mission Box */
.vision-box,
.mission-box {
  background: var(--white);
  padding: 50px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.vision-icon,
.mission-icon {
  font-size: 4rem;
  color: var(--primary-green);
}

.vision-statement,
.mission-statement {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary-green);
  line-height: 1.8;
}

/* Value Cards */
.value-card {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.value-card .value-icon {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 15px;
}

.value-card h4 {
  color: var(--primary-green);
  margin-bottom: 10px;
}

/* Constitution Section */
.constitution-content {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
}

.constitution-section {
  margin-bottom: 30px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: 8px;
}

.constitution-section h4 {
  color: var(--primary-green);
  margin-bottom: 15px;
}

/* Event Cards */
.event-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.event-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-green);
  color: var(--white);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  z-index: 1;
}

.event-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
}

.event-date .month {
  display: block;
  font-size: 0.9rem;
}

/* News Article */
.news-article {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.article-content {
  padding: 30px;
}

.article-meta {
  margin-bottom: 15px;
}

.article-meta span {
  margin-right: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Sidebar Widget */
.sidebar-widget {
  background: var(--white);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h4 {
  color: var(--primary-green);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-orange);
}

.recent-news-list {
  list-style: none;
  padding: 0;
}

.recent-news-list li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.recent-news-list li:last-child {
  border-bottom: none;
}

.recent-news-list a {
  display: flex;
  gap: 15px;
  text-decoration: none;
  color: var(--text-dark);
}

.recent-news-list img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
}

.recent-news-list h6 {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

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

.category-list li {
  margin-bottom: 10px;
}

.category-list a {
  color: var(--text-dark);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  transition: all 0.3s ease;
}

.category-list a:hover {
  color: var(--primary-green);
  padding-left: 10px;
}

.category-list span {
  color: var(--text-light);
}

/* Press Release */
.press-release-item {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.press-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.press-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  color: var(--text-light);
}

/* Social Work Cards */
.social-work-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.social-work-card .social-icon {
  font-size: 3rem;
  color: var(--primary-green);
  margin: 20px 0;
}

/* Impact Stats */
.impact-stats {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 10px;
}

.stat-box {
  padding: 30px;
  background: var(--white);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.stat-box i {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 15px;
}

.stat-box h2 {
  font-size: 2.5rem;
  color: var(--primary-orange);
  font-weight: bold;
}

/* Member Cards */
.member-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.member-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.member-info {
  padding: 25px;
}

.member-info h4 {
  color: var(--primary-green);
  margin-bottom: 5px;
}

.member-info .position {
  color: var(--primary-orange);
  font-weight: bold;
  margin-bottom: 5px;
}

.member-info .organization {
  color: var(--text-light);
  font-size: 0.9rem;
}

.member-contact {
  margin-top: 15px;
}

.member-contact a {
  display: inline-block;
  width: 35px;
  height: 35px;
  line-height: 35px;
  background: var(--primary-green);
  color: var(--white);
  border-radius: 50%;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.member-contact a:hover {
  background: var(--primary-orange);
  transform: translateY(-3px);
}

.member-card-small {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.member-photo-small {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.member-info-small {
  padding: 15px;
}

.member-info-small h5 {
  color: var(--primary-green);
  font-size: 1rem;
  margin-bottom: 5px;
}

.member-info-small p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 0;
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.gallery-item img {
  transition: all 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(45, 134, 89, 0.9), transparent);
  color: var(--white);
  padding: 20px;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Member Table */
.member-table {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.member-table thead {
  background: var(--primary-green);
  color: var(--white);
}

.member-table tbody tr:hover {
  background: var(--bg-light);
}

.member-stats {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
}

/* Login Box */
.login-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.login-box {
  background: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.login-icon {
  font-size: 4rem;
  color: var(--primary-green);
}

.input-group-text {
  background: var(--primary-green);
  color: var(--white);
  border: none;
}

/* Contact */
.contact-info-box {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 15px;
}

.contact-info-box h4 {
  color: var(--primary-green);
  margin-bottom: 15px;
}

.contact-form-box {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.map-box {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
}

/* Footer */
.footer {
  background: var(--dark-green);
  color: var(--white);
}

.footer h5 {
  color: var(--primary-yellow);
  margin-bottom: 20px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  background: var(--primary-green);
  color: var(--white);
  border-radius: 50%;
  text-align: center;
  margin-right: 10px;
  transition: all 0.3s ease;
}

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

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-yellow);
  padding-left: 5px;
}

.contact-info {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin-bottom: 15px;
  color: var(--white);
}

.contact-info i {
  color: var(--primary-yellow);
  margin-right: 10px;
}

/* Buttons */
.btn-primary {
  background: var(--primary-green);
  border: none;
  padding: 10px 30px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.btn-outline-primary:hover {
  background: var(--primary-green);
  color: var(--white);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-element {
  animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

.animate-fade-in {
  animation: fadeIn 1s ease-out 0.3s both;
}

/* Card Hover Effect */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .site-title {
    font-size: 1.3rem;
  }

  .site-tagline {
    font-size: 0.9rem;
  }

  .carousel-item {
    height: 300px;
  }

  .carousel-caption h2 {
    font-size: 1.5rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }
}
