.moocs-container {
    background: linear-gradient(135deg, rgba(225, 90, 42, 0.7), rgba(255, 105, 180, 0.5)), url('{% static "images/moocs_swayam_bg.jpg" %}');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 40px 20px;
    max-width: 1700px;
    margin: 0 auto;
    color: #333;
    font-family: 'Poppins', sans-serif;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.moocs-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.15; }
}

.moocs-title {
    font-size: 3em;
    color: #e15a2a;
    text-align: center;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.moocs-banner {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

.moocs-banner:hover {
    transform: scale(1.02);
}

.moocs-content-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.4s ease;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.moocs-content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.moocs-content-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(225, 90, 42, 0.1) 0%, transparent 70%);
    animation: rotateGlow 15s linear infinite;
    z-index: -1;
    opacity: 0.5;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.moocs-description {
    color: #333;
    text-align: justify;
    margin-bottom: 20px;
    padding: 0 15px;
    font-size: 1.1em;
    line-height: 1.7;
    transition: color 0.3s ease;
}

.moocs-content-card:hover .moocs-description {
    color: #222;
}

.moocs-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.moocs-features li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #444;
    transition: transform 0.3s ease, color 0.3s ease;
}

.moocs-features li::before {
    content: '\f058'; /* Font Awesome check circle icon, assume Font Awesome is included if needed */
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    left: 0;
    top: 0;
    color: #e15a2a;
    font-weight: 900;
}

.moocs-content-card:hover .moocs-features li {
    transform: translateX(5px);
    color: #333;
}

.moocs-dates, .moocs-links, .moocs-steps, .moocs-support {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.moocs-dates:hover, .moocs-links:hover, .moocs-steps:hover, .moocs-support:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.moocs-dates h3, .moocs-links h3, .moocs-steps h3, .moocs-support h3 {
    color: #e15a2a;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.moocs-links a.moocs-link {
    display: block;
    color: #0066cc;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.moocs-links a.moocs-link:hover {
    color: #e15a2a;
    padding-left: 10px;
}

.moocs-steps ul {
    list-style: none;
    padding: 0;
}

.moocs-steps ul li {
    margin-bottom: 15px;
    font-size: 1.1em;
    position: relative;
    padding-left: 30px;
}

.moocs-steps ul li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    background: #e15a2a;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}

.moocs-steps {
    counter-reset: step-counter;
}

.moocs-invite {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.2em;
    font-weight: 600;
}

.moocs-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-bottom: 30px;
}

.moocs-table th {
    background: linear-gradient(45deg, #e15a2a, #ff69b4);
    color: #fff;
    padding: 15px;
    text-align: center;
    border-radius: 10px 10px 0 0;
}

.moocs-table td {
    background: white;
    border: none;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.moocs-table tr td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.moocs-table tr td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.moocs-table td a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.moocs-table td a:hover {
    color: #e15a2a;
}

@media (max-width: 992px) {
  .moocs-title {
    font-size: 2.5em;
  }

  .moocs-description {
    padding: 0 10px;
  }

  .moocs-features li {
    font-size: 1em;
  }
}

@media (max-width: 576px) {
  .moocs-title {
    font-size: 2em;
  }

  .moocs-description {
    font-size: 1em;
    padding: 0 5px;
  }

  .moocs-features li {
    font-size: 0.95em;
    padding-left: 25px;
  }

  .moocs-dates, .moocs-links, .moocs-steps, .moocs-support {
    padding: 15px;
  }

  .moocs-table th, .moocs-table td {
    padding: 10px;
    font-size: 0.95em;
  }
  .list-group {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: .25rem
}

.list-group-item {
    position: relative;
    display: block;
    padding: .75rem 1.25rem;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.125)
}
}