* {
    margin: 0;
    box-sizing: border-box;
}
/* for color */
:root{
    --txtcolor:#EBEDF0;
    --sccolor:#3D7DE3;
    --main:#84A1CF;
    --tertcolor:#2B63BD;
    --excolor:#C3CBD9;
}
/* header */
header div {
    height: auto;
    width: 100%;
    background: linear-gradient(30deg, rgba(61, 91, 169, 0.5) 0%, rgba(58, 82, 163, 0.5) 21.47%, rgba(56, 74, 159, 0.5) 50%, rgba(57, 79, 162, 0.5) 58.95%, rgba(58, 93, 172, 0.5) 69.21%, rgba(61, 116, 187, 0.5) 80.12%, rgba(65, 147, 209, 0.5) 91.4%, rgba(69, 177, 229, 0.5) 100%);
    padding: 10px 0;
}
/* header end */

/* nav */
#nae.active {
    font-weight: bold !important;
    color: var(--sccolor) !important;
}

#nae.active::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: var(--sccolor);
}
ul a#nae{
    color: var(--txtcolor)!important;
    font-weight: bold; 
}

ul a#nae::after{
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: var(--tertcolor);
    transition: 0.5s;
}

ul a#nae:hover::after {
    width: 100%;
}


/* nav end */
/* progress */
.progress {
    height: 1rem;
    background: blue;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    transform-origin: 0 50%;
    animation:
        scaleProgress auto linear forwards,
        colorChange auto linear forwards;
    animation-timeline: scroll(root);
}

@keyframes scaleProgress {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

@keyframes colorChange {
    0% {
        background-color: red;
    }

    50% {
        background-color: yellow;
    }

    100% {
        background-color: lime;
    }
}
/* progress end */
/* main */
main .bm .card {
    height: 450px;
    width: 250px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    transition: 0.5s;
}
main .bm .card:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    background: red;
    color: blue;
}

.bm  button {
    height: 40px;
    width: auto;
    text-align: center;
    margin: 20px 0;
    background: #0991d0;
    color: #FFF;
    border: none;
    border-radius: 30px;
    padding: 0 10px;
    transition: 0.5s;
}
.bm button:hover {
    background: #555;
    color: #FFF;
    transform: scale(1.25);
    cursor: pointer;
}
/* gallery */
  /* Gallery overlay */
  .gallery-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    padding: 40px;
    overflow: hidden;
  }

  /* Gallery container */
  .gallery {
    background: #fff;
    max-width: 900px;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    
  }

  /* Close button */
  .close-btn {
    float: right;
    font-size: 20px;
    cursor: pointer;
    border: none;
    background: none;
  }

  /* Image grid */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: auto;
    margin-top: 100px;
  }

  .gallery-grid img {
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.5s;
  }

  .gallery-grid img:hover {
    transform: scale(1.5);
  }
/* gallery end */
/* main end */
/* slider */
.carousel {
    height: 80vh;
    width: 80%;
    margin: 50px auto;

}

.carousel-item img {
    height: 80vh;
    width: 100%;
}

.banner-text {
    height: 300px;
    width: 30%;
    color: white;
    top: 40%;
    left: 10%;
}

.prev {
    height: 50px;
    width: 50px;
    background: #FFD700;
    border-radius: 50%;
    top: 45%;
    left: -50px;
}

.next {
    height: 50px;
    width: 50px;
    background: #FFD700;
    border-radius: 50%;
    top: 45%;
    right: -50px;
}

/* slider end */

/* article */

.container {
            width: 90%;
            max-width: 800px;
            margin: 30px auto;
        }

        article {
            background: white;
            padding: 20px;
            margin-bottom: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        article h2 {
            margin-top: 0;
            color: #333;
        }

        article p {
            color: #555;
            line-height: 1.6;
        }

/* article end */





/* table */
table {
    text-decoration: none;
    margin-top: 10px;
    margin-bottom: 50px;

}


table thead th {
    background: black !important;
    color: white !important;
    font-size: 14px;
    font-weight: bold;
    padding: auto;
    text-align: center;
    vertical-align: middle;
}

table tbody tr:nth-child(odd) {
    background: rgba(0, 128, 105, 0.318);
}

table tbody tr:nth-child(even) {
    background: rgba(15, 207, 121, 0.297);
}

table tbody tr:hover {
    background: rgba(235, 204, 30, 0.302);
    color: blue !important;
    cursor: grab;
}

table tbody td {
    padding: auto;
    text-align: center;
    vertical-align: middle;
}

/* table end */



footer {
    height: 360px;
    width: 100%;
    background: var(--excolor);
    padding: 5px;
}

footer h3 {
    color: var(--tertcolor);
    font-weight: bold;
    margin: 10px;
}

footer a{
    color: var(--sccolor);
    transition: 0.5s;
}
footer a:hover {
    color: var(--txtcolor);
    text-decoration: none;
}

footer li {
    margin: 10px 0;
    transition: 0.5s;
}

footer li:hover {
    transform: scale(1.3);
    cursor: pointer;
}
