/* --------------------------------------------------
   CSS Custom Properties
----------------------------------------------------- */
:root {
  --color-primary: #141414;
  --color-accent: #ff4500;
  --color-light: #ffffff;
  --color-secondary: rgb(252, 42, 119);
  --bg-gradient: linear-gradient(135deg, #e0eafc, #cfdef3);
  --transition-speed: 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.background-class {
  background-image: url("../images/background.jpg");
  background-size: auto;
}

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

/*----------------------------------------------------
Back-Button
------------------------------------------------------*/

#back-button {
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  color: white;
  border: none;
  margin: 20px 0px 0px 10px;
  padding: 10px 20px;
  font-size: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  
}

#back-button-1 {
  color: var(--light-bg);
  text-decoration: none;
}

/* Hover and active states for the back button */
#back-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#back-button:active {
  transform: scale(0.98);
}

/* Explore Class */
.explore-class {
    color: whitesmoke;
    margin: 5%;
    padding: 50px 5%;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
}

span {
    color: black
}

.explore-class-1:empty {
    color: whitesmoke;
    width: 100%;
    margin: 0.25%;
    padding: 4px 0%;
    border-radius: 20px;
    box-shadow: var(--shadow);
    background: whitesmoke;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-gradient);
  color: var(--color-primary);
}

/* --------------------------------------------------
   Cards Container
----------------------------------------------------- */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* --------------------------------------------------
   Card Styles
----------------------------------------------------- */
.card {
  background: var(--color-light);
  border-radius: 15px;
  width: 50em;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.card-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--color-light);
}

.card-header .icon {
  font-size: 40px;
}

.card-header h2 {
  font-size: 20px;
}

/* Header background colors (classes applied on the header) */
.pink     { background: #ff69b4; }
.blue     { background: #00bfff; }
.green    { background: #32cd32; }
.yellow   { background: #ffd700; }
.purple   { background: #9370db; }
.violet   { background: violet;  }
.skyblue  { background: skyblue; }

.card-body {
  padding: 20px;
}

.card-body p {
  font-size: 16px;
  color: #555;
}

.card-footer {
  padding: 20px;
  text-align: right;
  border-top: 1px solid #f0f0f0;
}

.card-footer .read-more {
  background: none;
  border: none;
  color: var(--color-accent);
  font-weight: bold;
  cursor: pointer;
  transition: color var(--transition-speed);
}

.card-footer .read-more:hover {
  color: #d03d00;
}

/* --------------------------------------------------
   Modal Styles
----------------------------------------------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0,0,0,0.5);
  animation: fadeIn 0.5s;
}

.modal-content {
  background: var(--color-light);
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  position: relative;
  animation: slideIn 0.5s;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: var(--color-primary);
}

/*---------------------------------------------------
  Footer Section
-----------------------------------------------------*/
.footer {
  background: #111;
  padding: 100px 10%;
  margin-top: 50px;
  text-align: center;
  color: #ddd;
  animation: fadeIn 1s ease-out;
}

.footer .social {
  margin-bottom: 20px;
}

.footer .social a {
  margin: 0 10px;
  font-size: 1.8rem;
  color: #ddd;
  transition: color var(--transition);
}

.footer .social a:hover {
  color: var(--accent-color);
}

.footer .list {
  margin: 20px 0;
}

.footer .list li {
  display: inline-block;
  margin: 0 10px;
}

.footer .list li a {
  color: #ddd;
  font-size: 1rem;
  transition: color var(--transition);
}

.footer .list li a:hover {
  color: var(--accent-color);
}

.footer .copyright {
  font-size: 0.9rem;
  margin-top: 10px;
}


/* --------------------------------------------------
   Animations
----------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

.explore-class {
  animation: fadeIn 1.5s ease-in-out;
}

/* --------------------------------------------------
   Responsive Styles
----------------------------------------------------- */
@media (max-width: 768px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 90%;
  }
}
