Path : /home/vishqocm/pcib.in/assets/css/
File Upload :
Current File : /home/vishqocm//pcib.in/assets/css/modern-courses.css

/* ============================================================================
   Modern Courses Page Styling with 3D Effects
   ============================================================================ */

:root {
  --primary: #4361ee;
  --primary-light: #4895ef;
  --secondary: #3f37c9;
  --dark: #242424;
  --light: #f8f9fa;
  --success: #4cc9f0;
  --danger: #f72585;
  --warning: #ff9e00;
  --info: #4895ef;
  --gradient-1: linear-gradient(to right, #4361ee, #4cc9f0);
  --gradient-2: linear-gradient(to right, #f72585, #ff9e00);
  --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 15px 25px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* General Styles */
body {
  overflow-x: hidden;
  background-color: var(--light);
  perspective: 1000px;
}

.section-padding {
  padding: 100px 0;
}

.section-title {
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--dark);
  max-width: 700px;
  margin: 0 auto;
}

/* 3D Button Styles */
.btn-3d {
  position: relative;
  display: inline-block;
  padding: 12px 30px;
  background: var(--gradient-1);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  overflow: hidden;
  box-shadow: 0 6px 30px -10px rgba(67, 97, 238, 0.3);
  transition: all 0.4s ease;
  transform-style: preserve-3d;
  transform: perspective(1000px) translateZ(0);
}

.btn-3d:hover {
  transform: perspective(1000px) translateZ(10px);
  box-shadow: 0 10px 30px -10px rgba(67, 97, 238, 0.5);
  color: white;
}

.btn-3d:active {
  transform: perspective(1000px) translateZ(5px);
}

.btn-3d::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition);
}

.btn-3d:hover::before {
  left: 100%;
}

.btn-outline-3d {
  position: relative;
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  overflow: hidden;
  transition: all 0.4s ease;
  transform-style: preserve-3d;
  transform: perspective(1000px) translateZ(0);
}

.btn-outline-3d:hover {
  background: var(--primary);
  color: white;
  transform: perspective(1000px) translateZ(10px);
  box-shadow: 0 10px 20px -10px rgba(67, 97, 238, 0.5);
}

/* Hero Section */
.courses-hero {
  position: relative;
  background: linear-gradient(135deg, #4361ee 0%, #4cc9f0 100%);
  color: white;
  padding: 120px 0 180px;
  text-align: center;
  overflow: hidden;
  transform-style: preserve-3d;
}

.courses-hero::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTI4MCAxNDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZmZmZiI+PHBhdGggZD0iTTEyODAgMy40QzEwNTAuNTkgMTggMTAxOS40IDg0Ljg5IDczNC40MiA4NC44OWMtMzIwIDAtMzIwLTg0LjMtNjQwLTg0LjNDNTkuNC41OSAyOC4yIDEuNiAwIDMuNFYxNDBoMTI4MHoiIGZpbGwtb3BhY2l0eT0iLjMiLz48cGF0aCBkPSJNMCAyNC4zMWM0My40Ni01LjY5IDk0LjU2LTkuMjUgMTU4LjQyLTkuMjUgMzIwIDAgMzIwIDg5LjI0IDY0MCA4OS4yNCAyNTYuMTMgMCAzMDcuMjgtNTcuMTYgNDgxLjU4LTgwVjE0MEgweiIgZmlsbC1vcGFjaXR5PSIuNSIvPjxwYXRoIGQ9Ik0xMjgwIDUxLjc2Yy0yMDEtMTYuNzctMjQyLjQ1LTUzLjQtNTEzLjU1LTUzLjQtMzIwIDAtMzIwIDU3LTY0MCA1Ny00OC44NS4wMS05MC4yMS0xLjM1LTEyNi40NS0zLjZWMTQwaDEyODB6Ii8+PC9nPjwvc3ZnPg==');
  background-size: 100% 150px;
  transform: translateZ(-1px);
  z-index: 0;
}

.courses-hero .hero-content {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}

.courses-hero .hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform: translateZ(50px);
}

.courses-hero .hero-subtitle {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
  transform: translateZ(20px);
}

/* Floating Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Course Card Styles */
.course-card {
  position: relative;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  overflow: hidden;
  transition: var(--transition);
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0) rotateY(0);
  height: 100%;
}

.course-card:hover {
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateY(-10px);
}

.course-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.course-card:hover .course-image img {
  transform: scale(1.1);
}

.course-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.course-overlay .badge {
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
}

.badge-primary {
  background: rgba(67, 97, 238, 0.9);
  color: white;
}

.badge-danger {
  background: rgba(247, 37, 133, 0.9);
  color: white;
}

.course-category {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0 var(--radius-sm) 0 0;
  z-index: 2;
}

.course-content {
  padding: 25px;
}

.course-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.course-title a {
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
}

.course-title a:hover {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.course-details {
  margin-bottom: 20px;
}

.course-info {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.course-info span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  color: #666;
}

.course-info span i {
  color: var(--primary);
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars {
  display: flex;
  gap: 2px;
}

.stars i {
  color: #ffb900;
  font-size: 0.9rem;
}

.rating-count {
  font-size: 0.85rem;
  color: #666;
}

.course-instructor {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.instructor-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.instructor-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

.instructor-title {
  font-size: 0.8rem;
  color: #666;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-price {
  display: flex;
  flex-direction: column;
}

.old-price {
  font-size: 0.9rem;
  text-decoration: line-through;
  color: #999;
}

.new-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.btn-course {
  padding: 8px 20px;
  background: var(--gradient-1);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
}

.btn-course:hover {
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
  transform: translateY(-3px);
  color: white;
}

/* Filter Section */
.filter-container {
  margin-bottom: 40px;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}

.btn-filter {
  padding: 8px 20px;
  background: white;
  color: var(--dark);
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-filter:hover, .btn-filter.active {
  background: var(--gradient-1);
  color: white;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.search-bar-container {
  max-width: 600px;
  margin: 0 auto 30px;
}

.search-bar .input-group {
  position: relative;
  box-shadow: var(--shadow-sm);
  border-radius: 50px;
  overflow: hidden;
}

.search-bar input {
  padding: 15px 25px;
  border: none;
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
}

.search-bar input:focus {
  box-shadow: none;
}

.search-btn {
  background: var(--gradient-1);
  color: white;
  border: none;
  padding: 0 25px;
  border-radius: 0 50px 50px 0;
  transition: var(--transition);
}

.search-btn:hover {
  opacity: 0.9;
}

/* Animated Background Shapes */
.courses-bg-shape {
  position: absolute;
  z-index: -1;
}

.shape-circle {
  border-radius: 50%;
  opacity: 0.1;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: 5%;
  left: -150px;
  animation: shapeFloat 15s infinite alternate;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--success);
  bottom: 10%;
  right: -100px;
  animation: shapeFloat 20s infinite alternate-reverse;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: var(--warning);
  top: 40%;
  right: 10%;
  animation: shapeFloat 17s infinite alternate;
}

@keyframes shapeFloat {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(50px, 50px) rotate(360deg);
  }
}

/* CTA Section */
.cta-section {
  background: var(--gradient-1);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  color: white;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTI4MCAxNDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZmZmZiI+PHBhdGggZD0iTTAgNTEuNzZjMzYuMjEtMi4yNSA3Ny41Ny0zLjU4IDEyNi40Mi0zLjU4IDMyMCAwIDMyMCA1NyA2NDAgNTcgMjcxLjE1IDAgMzEyLjU4LTQwLjkxIDUxMy41OC01Ny40VjE0MEgweiIgZmlsbC1vcGFjaXR5PSIuMyIvPjxwYXRoIGQ9Ik0wIDkwLjE2YzgwLC01IDkwLjIxLTEwLjQ1IDEzNC0xMC40NSAzMTcuOCAwIDQxNC4xIDMzLjg0IDUwMCAzNC40NyAxMzIuMzMgLjYzIDE2Ni42Ny03Ljk4IDMwMC0yNGwzNDYgMTAuNDF2NDkuNEwwIDE0MHoiIGZpbGwtb3BhY2l0eT0iLjUiLz48cGF0aCBkPSJNMCAxMjB2MTAuNGg1NDZjMjAyLjgzLTYuMjIgMzM5LjA2LTYyLjYzIDQ2OC0xMzVMMTI4MCAxMjBIMHoiLz48L2c+PC9zdmc+');
  background-size: 100% 100%;
  transform: translateZ(-1px);
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cta-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .section-padding {
    padding: 70px 0;
  }
  
  .courses-hero {
    padding: 80px 0 150px;
  }
  
  .courses-hero .hero-title {
    font-size: 2.5rem;
  }
  
  .category-filters {
    overflow-x: auto;
    padding-bottom: 10px;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .courses-hero {
    padding: 60px 0 120px;
  }
  
  .courses-hero .hero-title {
    font-size: 2rem;
  }
  
  .courses-hero .hero-subtitle {
    font-size: 1rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

.fade-in-up {
  animation: fadeInUp 1s ease forwards;
}

.fade-in-down {
  animation: fadeInDown 1s ease forwards;
}

.fade-in-left {
  animation: fadeInLeft 1s ease forwards;
}

.fade-in-right {
  animation: fadeInRight 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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