/* Main CSS for Consumer Law Resource Library & Helpdesk */

/* Root variables for color palette */
:root {
  --primary-color-1: #e8c2ca; /* Soft pink */
  --primary-color-2: #c3e2dd; /* Sage green */
  --primary-color-3: #f2d5bd; /* Warm sand */
  --primary-color-4: #d1c2e2; /* Lavender */
  --primary-color-5: #c2d7e8; /* Sky blue */
  
  --light-color-1: #f9e9ee;
  --light-color-2: #e9f5f3;
  --light-color-3: #f9eee3;
  --light-color-4: #efe9f5;
  --light-color-5: #e9f1f8;
  
  --dark-color-1: #a68f94;
  --dark-color-2: #8ca6a2;
  --dark-color-3: #a69480;
  --dark-color-4: #9e8fb7;
  --dark-color-5: #8fa1b3;
  
  --text-dark: #364048;
  --text-medium: #5f6b76;
  --text-light: #8c9aa7;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --black: #212529;
}

/* Base styles */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color-3);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--dark-color-3);
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color-3);
  border-color: var(--primary-color-3);
  color: var(--text-dark);
}

.btn-primary:hover {
  background-color: var(--dark-color-3);
  border-color: var(--dark-color-3);
  color: var(--white);
}

.section-padding {
  padding: 100px 0;
}

.section-title {
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color-3);
}

/* Header */
.header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
  padding: 15px 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  color: var(--text-dark) !important;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-color-3);
  transition: all 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--light-color-3);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  max-width: 80%;
  margin-bottom: 2rem;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--primary-color-3);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background-color: var(--primary-color-3);
}

/* About Section */
.about-section {
  position: relative;
  background-color: var(--white);
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-feature {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.about-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--light-color-3);
  margin-bottom: 1rem;
}

.about-feature-icon i {
  font-size: 1rem;
  color: var(--dark-color-3);
}

/* Services Section */
.services-section {
  position: relative;
  background-color: var(--light-color-2);
}

.service-item {
  position: relative;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  overflow: hidden;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--primary-color-2);
}

.service-item h3 {
  margin-bottom: 1rem;
}

.service-item-price {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: var(--light-color-2);
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-features {
  margin-top: 1.5rem;
}

.service-features li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--primary-color-2);
}

/* Features Section */
.features-section {
  position: relative;
  background-color: var(--white);
}

.feature-item {
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--light-color-1);
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1rem;
  color: var(--dark-color-1);
}

.feature-content h3 {
  margin-bottom: 0.5rem;
}

/* Price Plan Section */
.priceplan-section {
  position: relative;
  background-color: var(--light-color-4);
}

.price-item {
  position: relative;
  padding: 2.5rem;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
  margin-bottom: 2rem;
  overflow: hidden;
}

.price-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.price-item h3 {
  margin-bottom: 1rem;
}

.price-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-color-4);
}

.price-features {
  text-align: left;
  margin-bottom: 1.5rem;
}

.price-features li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

.price-features li::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--primary-color-4);
}

/* Team Section */
.team-section {
  position: relative;
  background-color: var(--white);
}

.team-item {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.team-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-image {
  position: relative;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  transition: all 0.5s ease;
}

.team-item:hover .team-image img {
  transform: scale(1.1);
}

.team-info {
  padding: 1.5rem;
  text-align: center;
  background-color: var(--white);
}

.team-info h3 {
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--text-light);
  font-style: italic;
}

/* Reviews Section */
.reviews-section {
  position: relative;
  background-color: var(--light-color-5);
}

.review-item {
  position: relative;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.review-text {
  position: relative;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.review-text::before {
  content: '\f10d';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: -15px;
  left: -10px;
  font-size: 2rem;
  color: var(--light-color-5);
  z-index: -1;
}

.review-author {
  font-weight: 600;
  color: var(--primary-color-5);
}

/* Core Info Section */
.coreinfo-section {
  position: relative;
  background-color: var(--white);
}

.coreinfo-item {
  position: relative;
  padding: 2rem;
  background-color: var(--light-color-1);
  border-radius: 10px;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  height: calc(100% - 2rem);
}

.coreinfo-item:nth-child(2n) {
  background-color: var(--light-color-2);
}

.coreinfo-item:nth-child(3n) {
  background-color: var(--light-color-3);
}

.coreinfo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.coreinfo-icon {
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  border-radius: 50%;
  background-color: var(--white);
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.coreinfo-icon i {
  font-size: 1rem;
  color: var(--primary-color-1);
}

.coreinfo-item:nth-child(2n) .coreinfo-icon i {
  color: var(--primary-color-2);
}

.coreinfo-item:nth-child(3n) .coreinfo-icon i {
  color: var(--primary-color-3);
}

/* Contact Section */
.contact-section {
  position: relative;
  background-color: var(--light-color-1);
}

.contact-form {
  padding: 2.5rem;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-control {
  border: 1px solid #e9ecef;
  border-radius: 5px;
  padding: 0.8rem 1rem;
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color-1);
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--light-color-1);
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.2rem;
  color: var(--primary-color-1);
}

/* Blog Section */
.blog-section {
  position: relative;
  background-color: var(--white);
}

.blog-item {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  background-color: var(--white);
}

.blog-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-image {
  position: relative;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  transition: all 0.5s ease;
}

.blog-item:hover .blog-image img {
  transform: scale(1.1);
}

.blog-content {
  padding: 1.5rem;
}

.blog-content h3 {
  margin-bottom: 1rem;
}

.blog-excerpt {
  margin-bottom: 1.5rem;
}

.blog-link {
  font-weight: 600;
  color: var(--primary-color-3);
  position: relative;
  padding-right: 20px;
}

.blog-link::after {
  content: '\f061';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.blog-link:hover::after {
  right: -5px;
}

/* Footer */
.footer {
  padding: 80px 0 30px;
  background-color: var(--text-dark);
  color: var(--white);
}

.footer-title {
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color-3);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #ddd;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color-3);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: 0;
}

/* Space Page */
.space-container {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--light-color-3);
  border-radius: 10px;
  margin: 120px 0;
  position: relative;
  overflow: hidden;
}

.space-container::before,
.space-container::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.space-container::before {
  top: -100px;
  left: -100px;
}

.space-container::after {
  bottom: -100px;
  right: -100px;
}

/* Additional Pages */
.add-page-section {
  padding: 100px 0;
  position: relative;
}

.add-page-section:nth-child(odd) {
  background-color: var(--white);
}

.add-page-section:nth-child(even) {
  background-color: var(--light-color-1);
}

.add-page-item {
  padding: 2rem;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  height: calc(100% - 2rem);
}

.add-page-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Shape decorations */
.shape-decoration {
  position: absolute;
  z-index: 0;
}

.shape-1 {
  top: -50px;
  right: 10%;
  width: 100px;
  height: 100px;
  background-color: rgba(242, 213, 189, 0.2);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: floatingShape 8s ease-in-out infinite;
}

.shape-2 {
  bottom: -30px;
  left: 5%;
  width: 80px;
  height: 80px;
  background-color: rgba(195, 226, 221, 0.2);
  border-radius: 30% 70% 30% 70% / 70% 30% 70% 30%;
  animation: floatingShape 6s ease-in-out infinite;
}

@keyframes floatingShape {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(15px, 15px) rotate(10deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* Media queries in responsive.css */ 