/* SatMitra Foundation Custom Theme CSS
 * Based on the new logo featuring purple, teal, and red colors with a globe design
 * Updated with pastel sky blue backgrounds
 */

:root {
  --primary-color: #663399; /* Purple from logo */
  --secondary-color: #06B6D4; /* Teal from logo */
  --accent-color: #E53E3E; /* Red from logo */
  --dark-color: #20212b;
  --light-color: #E6F4F9; /* Pastel sky blue background */
  --lighter-color: #F0F9FC; /* Lighter pastel sky blue for alternating sections */
  --background-color: #E6F4F9; /* Pastel sky blue background */
  --text-color: #333333;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Global Styles */
body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

a {
  color: var(--primary-color);
  transition: var(--transition);
  text-decoration: none;
}

a:hover {
  color: var(--secondary-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #FFFFFF;
  padding: 10px 25px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  opacity: 0.95;
  color: #FFFFFF;
}

/* Header Styles */
header {
  background-color: var(--light-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 80px;
  margin-right: 10px;
}

.logo h1 {
  color: var(--primary-color);
  font-size: 24px;
  margin: 0;
  display: none;
}

.header-right {
  display: flex;
  align-items: center;
}

.header-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: var(--border-radius);
  margin-left: 20px;
  font-weight: 600;
  transition: var(--transition);
  font-size: 18px;
  text-align: center;
}

.header-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  color: #FFFFFF;
}

/* Navigation & Dropdown Menu */
nav {
  flex: 1;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

nav ul li {
  position: relative;
  margin: 0 15px;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 200;
  font-size: 18px;
  position: relative;
  display: block;
  padding: 10px 5px;
}

nav ul li a:hover {
  color: var(--primary-color);
}

/* Dropdown Menus */
.menu-item-has-children > a {
  padding-right: 20px;
}

.menu-item-has-children > a::after {
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition);
}

.menu-item-has-children.active > a::after {
  transform: translateY(-50%) rotate(180deg);
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #FFFFFF;
  width: 220px;
  padding: 15px 0;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr;
}

.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li {
  margin: 0;
  width: 100%;
}

.sub-menu li a {
  padding: 8px 20px;
  color: var(--text-color);
  display: block;
  font-size: 16px;
  text-align: left;
}

.sub-menu li a:hover {
  background-color: var(--lighter-color);
  color: var(--primary-color);
}

.mobile-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #5E3A9C 0%, #5DBCD2 100%);
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  padding: 100px 0;
  text-align: center;
}

.hero h2 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* Section Styles */
section {
  padding: 80px 0;
}

section:nth-child(even) {
  background-color: var(--lighter-color);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h3 {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 15px;
}

.section-title h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.section-title p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

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

.about-text {
  flex: 1;
}

.about-text h4 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

/* Program Cards */
.program-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.program-card {
  background-color: #FFFFFF;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.program-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

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

.program-card-content {
  padding: 25px;
}

.program-card-content h4 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: 600;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-card {
  background-color: #FFFFFF;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

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

.news-card-content {
  padding: 25px;
}

.news-card-content h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-weight: 600;
}

.news-date {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
  display: block;
}

.news-card-content a {
  color: var(--secondary-color);
  font-weight: 500;
  position: relative;
}

.news-card-content a::after {
  content: '→';
  margin-left: 5px;
  transition: var(--transition);
}

.news-card-content a:hover::after {
  margin-left: 10px;
}

/* Partners Section */
.partner-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 50px;
}

.partner-logo {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}

.partner-logo img {
  height: 60px;
  width: auto;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: #FFFFFF;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h4 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: #FFFFFF;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

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

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

.footer-column ul li a {
  color: #CCC;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.contact-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  color: #CCC;
}

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

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #FFFFFF;
  transition: var(--transition);
}

.social-icons a:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #BBB;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 99;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .container {
    width: 90%;
  }

  .about-content {
    flex-direction: column;
  }
  
  .about-image, .about-text {
    width: 100%;
  }
  
  nav ul li {
    margin: 0 10px;
  }
  
  nav ul li a {
    font-size: 16px;
  }
  
  .header-btn {
    padding: 12px 20px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .container {
    width: 90%;
  }
  .header-inner {
    position: relative;
  }
  
  .mobile-menu {
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
  }
  
  nav {
    position: fixed;
    top: 80px;
    left: 0;
    background-color: var(--light-color);
    width: 100%;
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
  }
  
  nav.active {
    display: block;
  }
  
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  
  nav ul li {
    margin: 10px 0;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 10px;
  }
  
  nav ul li:last-child {
    border-bottom: none;
  }
  
  .hero h2 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 18px;
  }
  
  .section-title h3 {
    font-size: 28px;
  }
  
  .logo img {
    height: 70px;
  }
  
  /* Mobile Dropdown */
  .sub-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: transparent;
    padding: 0 0 0 20px;
    display: none;
    margin-top: 10px;
  }
  
  .menu-item-has-children.active .sub-menu {
    display: block;
  }
  
  .sub-menu li {
    padding-left: 0;
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .sub-menu li a {
    padding: 8px 0;
    font-size: 14px;
  }
  
  .menu-item-has-children > a::after {
    right: 0;
  }
}

@media (max-width: 576px) {
  .container {
    width: 90%;
  }
  .header-btn {
    display: none;
  }
  
  .logo h1 {
    font-size: 20px;
  }
  
  .hero h2 {
    font-size: 28px;
  }
  
  .program-cards, .news-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
} 