body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    /*background-color: #111;*/
    /*color: #000000;*/
    /*background-image: url(background.png);
    background-position: center;
    background-size: cover;*/
    height:100%;
    /*background-attachment: fixed;*/
    /*background-color:rgb(0,255,0);*/
    overflow-y: hidden; /*remove scrolling for vertical axis*/
}


#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Grid with exactly 5 columns */
.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);  /* Force 3 columns */
    gap: 40px 10px; /*vertical card gap */
    padding: 30px;
    padding-top: 100px;
    justify-items: center; /*center original */
    max-width: 100%;
    height: 120vh; /* Adjust if you need a header */
}

/* Card size increased */
.card {
    width: 100%;   /* wider card */
    max-width: 360px; /* taller card  364px original size */
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 620px; /* 620px original height for 1920x1080*/
    opacity: 0;
    animation: fadeSlideIn 1.5s ease forwards;
    animation-delay: calc(var(--i) * 0.4s); /* Staggered load */
}

/* Image area taller */
.image-wrap {
    height: 440px; /*image height*/
    width: 100%;
    overflow: hidden;
    background-color: #000;
    position: relative;
}

.image-wrap img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
}

/* Text block */
.card-text {
    height: 200px;
    padding: 20px;
    font-size: 18px; /*14px original*/
    background-color: #ffffff;
    overflow: hidden;
    margin-bottom: -40px;
}

.card-text p {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Author below text */
.author-name {
    padding: 5px 5px;
    font-size: 15px; /*12px original*/
    /*font-weight: bold;*/
    text-align: center;
    color: #F36633;
    margin-bottom: 15px;
}


html {
    height: 100%; /* Ensure html also has full height */
}

body.scroll-enabled {
    overflow-y: auto;
}


/*4 or 5 cards in 1 row*/


@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px); /*Start 30 px down and as the animation proceeds it
        pushes it to the original position*/
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


