* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

header {
    height: 120px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgb(96, 33, 151);
    /* border-bottom: 3px solid rgba(0, 0, 0, 0.34); */

}

.logo img {
    height: 80px;
}

a {
    color: inherit;
    text-decoration: none;
}


.main-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 80px;
  background-color: white;
  color: #000000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease;
}

.logo img {
  height: 50px;
  content: url('../img/logo.png');
  width: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
}

.main-nav ul li {
  margin: 0 20px;
  position: relative;
}

.main-nav ul li a {
  font-weight: 500;
  font-size: 16px;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: purple;
  transition: width 0.3s ease-in-out;
}

.main-nav ul li a:hover {
  color: purple;
}

.main-nav ul li a:hover::after {
  width: 100%;
}

.programslist .programslist1{
        display: none;
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    min-width: 300px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 10px 0;
    opacity: 0;
    color: #000000;
    visibility: hidden;
    transition: top 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}
.programslist:hover .programslist1{
     display: block;
    top: 100%;
    opacity: 1;
    visibility: visible;
}
.programslist1 ul{
    flex-direction: column;
}
.programslist1 ul li {
    margin: 0;
    width: 100%;
}
.programslist1 ul li a {
    padding: 12px 20px;
    display: block;
    font-size: 14px;
    white-space: nowrap;
}
.programslist1 ul li a:hover {
    background-color: #000000;
    color: rgb(254, 254, 255);
}

.programslist1 ul li a i {
    margin-left: 8px;
}

.others .other-main {
  display: none;
  position: absolute;
  top: 150%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  color: rgb(6, 6, 6);
  min-width: 300px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: top 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.others:hover .other-main {
  display: block;
  top: 100%;
  opacity: 1;
  visibility: visible;
}

.other-main ul {
  display: flex;
  flex-direction: column;
}

.other-main ul li {
  margin: 0;
  width: 100%;
}

.other-main ul li a {
  padding: 12px 20px;
  display: block;
  font-size: 14px;
  white-space: nowrap;
}

.other-main ul li a:hover {
  background-color: #212128;
  color: rgb(255, 254, 255);
}

.other-main ul li a i {
  margin-left: 8px;
}

.menu-toggle {
  display: none;
}

.hamburger-menu {
  display: none;
  cursor: pointer;
  z-index: 1002;
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  transition: all 0.4s ease-in-out;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  color: white;
  background-color: #c500ed;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
  padding-top: 100px;
}

.side-menu nav ul {
  display: flex;
  flex-direction: column;
}

.side-menu nav li {
  width: 100%;
}

.side-menu nav a {
  display: block;
  padding: 18px 30px;
  font-size: 1.6em;
  font-weight: 400;
  transition: background-color 0.3s, color 0.3s;
}

.side-menu nav a:hover {
  color: #ffffff;
}

#menu-toggle:checked ~ .side-menu {
  transform: translateX(0);
}

#menu-toggle:checked ~ .hamburger-menu .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

#menu-toggle:checked ~ .hamburger-menu .bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked ~ .hamburger-menu .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 992px) {
  .main-nav {
    display: none;
  }

  .hamburger-menu {
    display: block;
  }
}
body {
    background-color: #faf9fc;
    color: #1f2230;
}

.blog-main {
    padding-top: 80px;
}

.blog-hero {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    padding: 70px 5% 30px;
}

.blog-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: rgb(53, 2, 101);
    margin-bottom: 14px;
}

.blog-hero p {
    font-size: 1.15rem;
    color: #6b6b78;
}

.blog-sec {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 5% 90px;
}
.blog{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 80%;
    /* gap: 40px; */
    column-gap: 20px;
    row-gap: 50px;
    height: 300px;

}
.blog-mini{
    position: relative;
    height: 300px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}
.blog-mini img{
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.blog-text{
    position: absolute;
    z-index: 4;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 2px 2px 0 0;
    border-radius: 10px;
    height: 150px;
    backdrop-filter: blur(10px);
    background: rgba(44, 44, 44, 0.39);
    padding: 20px;
}
.blog-text h3{
    color: rgb(255, 255, 255);
    font-size: 1.4em;
    margin-bottom: 10px;
}
.blog-text p{
    color: white;
    font-size: 1em;
    font-weight: 600;
}
.blog-hover{
    opacity: 0;
    transition: all 0.3s ease-in-out;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.192);
}             
.blog-mini:hover .blog-hover{
    opacity: 1;
}

@media screen and (max-width:780px) {
    .blog{
        width: 99%;
    }
}
@media screen and (max-width:650px) {
    .blog{
        grid-template-columns: repeat(1, 1fr);
        width: 80%;
    }
    .blog-text h3{

    font-size: 1.2em;
   
}
.blog-text p{
    font-size: 0.9em;
}
}
@media screen and (max-width:400px) {
    .blog{
        width: 95%;
    }
}

/* ===================== NEW BLOG LISTING (featured + grid) ===================== */

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #8a2be2;
    margin-bottom: 10px;
}

.post-meta .dot {
    color: #c9c2d6;
}

.post-meta i {
    opacity: 0.85;
}

.post-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #c500ed;
    font-weight: 700;
    font-size: 0.95rem;
    transition: gap 0.25s ease;
}

.post-featured:hover .post-readmore,
.post-card:hover .post-readmore {
    gap: 15px;
}

/* Featured (latest) post */
.post-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(83, 2, 101, 0.10);
    margin-bottom: 50px;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 55px rgba(83, 2, 101, 0.18);
}

.post-featured-img {
    min-height: 340px;
    overflow: hidden;
}

.post-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.post-featured:hover .post-featured-img img {
    transform: scale(1.05);
}

.post-featured-body {
    padding: 46px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-badge {
    align-self: flex-start;
    background: linear-gradient(135deg, #c500ed, #8a2be2);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 18px;
}

.post-featured-title {
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    font-weight: 800;
    line-height: 1.22;
    color: #1f1233;
    margin-bottom: 14px;
}

.post-featured-excerpt {
    color: #5c5c6b;
    line-height: 1.7;
    margin: 6px 0 24px;
}

/* Grid of remaining posts */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(83, 2, 101, 0.08);
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(83, 2, 101, 0.16);
}

.post-card-img {
    height: 200px;
    overflow: hidden;
}

.post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-img img {
    transform: scale(1.06);
}

.post-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 26px;
}

.post-card-title {
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.3;
    color: #1f1233;
    margin-bottom: 10px;
}

.post-card-excerpt {
    color: #6b6b78;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #6b6b78;
    font-size: 1.1rem;
    padding: 60px 0;
}

@media (max-width: 992px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .post-featured {
        grid-template-columns: 1fr;
    }

    .post-featured-img {
        min-height: 240px;
        height: 240px;
    }

    .post-featured-body {
        padding: 32px 28px;
    }
}

@media (max-width: 560px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== FOOTER ===================== */
.footer {
    padding: 5vh 0 8vh 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #1a1024;
    color: white;
}

.footer1 {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 40px;
    width: 86%;
}

.logo1 {
    display: flex;
    align-items: center;
}

.logo1 img {
    height: 70px;
    width: auto;
}

.logo1 h4 {
    font-size: 3.4em;
    font-weight: 700;
    margin-left: 20px;
    line-height: 1;
    color: #fff;
}

.contact-bthn {
    width: 86%;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 40px 0 60px 0;
}

.btn33,
.btn34 {
    height: 70px;
    width: 100%;
    max-width: 260px;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.05em;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn33 a,
.btn34 a {
    color: white;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn33:hover,
.btn34:hover {
    background-color: #c500ed;
    border-color: #c500ed;
}

.credentials {
    width: 86%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.credentials p {
    font-size: 1em;
}

.links2 ul {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.links2 .wow {
    border-right: 1px solid blueviolet;
    padding-right: 20px;
}

.wow a {
    color: blueviolet;
}

.links2 ul li a {
    font-size: 1.05em;
    font-weight: 500;
    transition: 0.3s;
    color: white;
}

.links2 ul li a:hover {
    color: #c500ed;
}

@media (max-width: 768px) {
    .logo1 h4 {
        font-size: 2.4em;
    }

    .contact-bthn {
        flex-direction: column;
    }

    .btn33,
    .btn34 {
        max-width: 100%;
    }

    .credentials {
        flex-direction: column;
        text-align: center;
    }

    .links2 ul {
        justify-content: center;
    }
}