body{
  font-family: 'Inter', sans-serif;
  background:
linear-gradient(
to bottom,
#f7f7f7,
#efefef
);
  color: #222;
}
h1, h2, h3{
  font-family: 'Poppins', sans-serif;
}
.education-page{
  width:90%;
  max-width:900px;

  margin:auto;

  padding:
  40px 0 40px 90px;
}
.education-post{
  background: white;
  padding: 40px;
  border-radius: 24px;
  margin-bottom: 70px;

  box-shadow:
  0 4px 20px rgba(0,0,0,0.05);

  border:
  1px solid rgba(0,0,0,0.05);

  transition: 0.3s ease;

  scroll-margin-top: 120px;
}
.education-post:hover{
  transform: translateY(-4px);

  box-shadow:
  0 10px 35px rgba(0,0,0,0.08);
}


.post-header h1{
  font-size: 2rem;
  color: #800000;
  margin-bottom: 10px;
}

.post-meta{
  color: gray;
  margin-bottom: 20px;
}

.post-number{
  background: #800000;
  color: white;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.9rem;
}
.post-preview{
  font-size: 1.1rem;
  line-height: 1.9;
}
.post-full-content{
  display: none;
  margin-top: 20px;
  line-height: 1.9;
  font-size: 1.05rem;
}
.continue-btn{
  margin-top: 25px;
  background: #800000;
  color: white;
  border: none;
  padding: 14px 26px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: 0.3s ease;
}
.continue-btn:hover{
  background: #5e0000;

  transform: scale(1.03);
}
.post-separator{
  border: none;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: 60px;
}
.education-post{
  overflow-x: hidden;
}

.post-header h1{
  word-wrap: break-word;
}

.post-preview p,
.post-full-content p{
  word-wrap: break-word;
}
.post-full-content p{
  margin-bottom: 22px;
  font-size: 1.08rem;
  line-height: 2;
  color: #333;
}
.education-post{
  position: relative;
}
/* ===================================
   POST PROFILE IMAGE
=================================== */

.post-profile{

  position:absolute;

  left:-95px;

  top:35px;

  width:70px;
  height:70px;

  border-radius:50%;

  overflow:hidden;

  background:white;

  padding:4px;

  box-shadow:
  0 8px 25px rgba(0,0,0,0.12);

  border:
  2px solid rgba(128,0,0,0.12);

  transition:0.35s ease;

  z-index:5;
}

.post-profile img{

  width:100%;
  height:100%;

  object-fit:cover;

  border-radius:50%;
}

/* HOVER EFFECT */

.education-post:hover .post-profile{

  transform:
  scale(1.06)
  translateY(-4px);

  box-shadow:
  0 12px 30px rgba(0,0,0,0.18);
}
.education-post::after{
  content: "";

  position: absolute;

  bottom: -35px;

  left: 0;

  width: 100%;

  height: 1px;

  background:
  rgba(0,0,0,0.08);
}
.education-hero{
  height: 60vh;
  background:
  linear-gradient(
    rgba(0,0,0,0.6),
    rgba(0,0,0,0.6)
  ),
  url("../images/education-banner.jpg");

  background-size: cover;
  background-position: center;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 20px;
}

.hero-logo{
  width: 90px;
  margin-bottom: 15px;
}

.education-hero h1{
  color: white;
  font-size: 3rem;
}

.education-hero p{
  color: #ddd;
  max-width: 700px;
}
.education-intro{
  max-width: 900px;
  margin: 60px auto;
  padding: 30px;
  background: white;
  border-radius: 20px;
}
.submission-section{
  max-width: 900px;
  margin: 70px auto;
  padding: 40px;
  background: #fff;
  border-radius: 25px;
}
.submission-section form{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.submission-section input,
.submission-section textarea{
  padding: 18px;
  border-radius: 14px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.submission-section textarea{
  min-height: 220px;
  resize: vertical;
}
.education-footer{
  background: #111;
  color: white;
  padding: 60px 20px 20px;
}

.footer-content{
  max-width: 1200px;
  margin: auto;

  display: grid;
  grid-template-columns:
  repeat(auto-fit,minmax(250px,1fr));

  gap: 40px;
}
.submission-modal{
  position: fixed;
  inset: 0;

 background:
rgba(0,0,0,0.45);

backdrop-filter:
blur(6px);

  display: none;

  align-items: center;
  justify-content: center;

  z-index: 9999;
}

.modal-box{
  background: white;
  width: 90%;
  max-width: 500px;
  padding: 30px;
  border-radius:
  25px 0px 25px 25px;
  position: relative;
  animation:
  modalPop 0.4s ease;
  text-align: center;
  box-shadow:
  0 20px 60px rgba(0,0,0,0.2);
}
@keyframes modalPop{

  from{

    opacity: 0;

    transform:
    scale(0.8)
    translateY(40px);

  }

  to{

    opacity: 1;

    transform:
    scale(1)
    translateY(0);

  }

}
.modal-box h2{

  font-size: 2rem;

  color: #800000;

  margin-bottom: 15px;

}

.modal-box p{

  color: #555;

  line-height: 1.8;

  margin-bottom: 25px;

}
#closeModal{

  position: absolute;

  top: 15px;
  right: 18px;

  background: #800000;

  color: white;

  width: 35px;
  height: 35px;

  border: none;

  border-radius: 50%;

  cursor: pointer;

  font-size: 1rem;

  transition: 0.3s ease;

}

#closeModal:hover{

  transform: rotate(90deg);

  background: #5e0000;

}
.modal-box button{

  background: #800000;

  color: white;

  border: none;

  padding: 15px 25px;

  border-radius: 14px;

  cursor: pointer;

  font-size: 1rem;

  font-weight: 600;

  transition: 0.3s ease;

}

.modal-box button:hover{

  background: #5e0000;

  transform: translateY(-2px);

}
.submission-section button{

  background: #800000;

  color: white;

  border: none;

  padding: 18px;

  border-radius: 16px;

  font-size: 1rem;

  font-weight: 600;

  cursor: pointer;

  transition: 0.3s ease;

}

.submission-section button:hover{

  background: #5e0000;

  transform: translateY(-2px);

}
.success-message{

  margin-top: 25px;

  background: #e8fff0;

  color: #166534;

  padding: 20px;

  border-radius: 18px;

  line-height: 1.8;

  border:
  1px solid #bbf7d0;

  font-weight: 500;

}
/* FULL CONTENT DEFAULT */

.post-full-content{
  display:block;
}

/* HIDE PREVIEW INITIALLY */

.post-preview{
  display:none;
}

/* BUTTON */

.continue-btn{
  margin-top:30px;

  padding:14px 22px;

  border:none;

  border-radius:14px;

  background:#800000;

  color:white;

  font-size:16px;

  cursor:pointer;

  transition:0.3s ease;
}

.continue-btn:hover{
  transform:translateY(-2px);
  opacity:0.9;
}
/* ===================================
   EXPLORE OTHER CATEGORIES
=================================== */

.explore-categories{

  margin-top:80px;

  padding:50px 30px;

  border-radius:30px;

  background:
  linear-gradient(
    135deg,
    #111827,
    #1e293b
  );

  text-align:center;

  border:1px solid rgba(255,255,255,0.08);
}

.explore-categories h2{

  font-size:2.2rem;

  margin-bottom:15px;

  color:white;
}

.explore-categories p{

  color:#cbd5e1;

  margin-bottom:40px;
}

.explore-grid{

  display:flex;

  justify-content:center;

  align-items:center;

  gap:30px;

  flex-wrap:wrap;
}

/* CARD */

.explore-card{

  width:220px;

  background:#0f172a;

  border-radius:24px;

  padding:25px;

  text-decoration:none;

  color:white;

  transition:0.35s ease;

  border:1px solid rgba(255,255,255,0.08);

  display:flex;

  flex-direction:column;

  align-items:center;

  justify-content:center;

  gap:18px;
}

.explore-card:hover{

  transform:
  translateY(-8px)
  scale(1.03);

  background:#1e293b;
}

/* IMAGE */

.explore-card img{

  width:100px;

  height:100px;

  object-fit:cover;

  border-radius:20px;

  background:white;

  padding:10px;
}

/* TITLE */

.explore-card span{

  font-size:1rem;

  font-weight:600;

  line-height:1.5;
}

/* MOBILE */

@media(max-width:768px){

  .explore-grid{

    flex-direction:column;

    align-items:center;
  }

  .explore-card{

    width:100%;
    max-width:400px;
  }

}
/* ===================================
   MOBILE PROFILE POSITION
=================================== */

@media(max-width:768px){

  .education-page{

    padding:
    40px 0;
  }

  .post-profile{

    position:relative;

    left:0;
    top:0;

    margin-bottom:20px;

    width:65px;
    height:65px;
  }

}