/* General body and typography settings */

body {
    font-family: Arial, sans-serif;
    background-color: #3e3e3ef4;
    margin: 0;
    padding: 0;
    
}



#heroid 
{
    background: linear-gradient(135deg, #3e3e3ef4, #000000e3 , #000000 ,#1b1b1bdf);
    background-size: 300% 300%; 
            animation: ga 10s ease infinite; 
            height: 100vh; 
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;

}

@keyframes ga {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
    
}

#herohead 
{
    font-family: 'Playfair Display', serif;
    font-size: 4rem; /* Large font size */
    letter-spacing: 1px;
    margin-bottom: 0;
    color: white;
    opacity: 0; /* Start invisible for fade-in */
    transform: scale(0.9); /* Slightly shrink for zoom-in effect */
    text-align: center;
    animation: fadeInZoom 4s ease-in-out forwards, glow 8s ease-in-out infinite alternate;
}

@keyframes fadeInZoom {
    0% { opacity: 0; transform: scale(0.7); }
    100% { opacity: 1; transform: scale(1); }
}

#herohead:hover {
    text-shadow: 2px 2px 20px rgba(255, 255, 255, 0.8);
}

#herocap 
{
            font-size: 1.2rem;
            color: #d3d3d3;
            margin-top: 0rem;
            font-style: italic;
            opacity: 0.5; 
            animation: fadeInCaption 5s ease-in forwards 2s; 
            text-align: center;
            position: relative;
            transition: color 0.4s ease; /* Smooth color transition on hover */
}

#herocap:hover {
    color: #ffffff;
}

/* Underline Animation */
#herocap::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px; /* Slightly below the text */
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.4s ease, left 0.4s ease;
}

#herocap:hover::after {
    width: 100%; /* Underline expands to full width */
    left: 0;
}
@keyframes fadeInCaption {
    0% { opacity: 0; }
    100% { opacity: 1; }
}


h1 {
    text-align: center;
    color: #333;
    margin-top: 0;
}

p {
    text-align: center;
}


.search-bar 
{
    height:10%;
    width:100%;
}


.scholarship-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    background-color: #e7e4e459;
}

 
/* Card styling */
.card {
    background: linear-gradient(145deg, #000000, #5f5f5f); /* Blue and green gradient background */
    border-radius: 15px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25); 
    margin: 15px; /* Reduced margin */
    width: 270px; /* Slightly smaller width */
    padding: 15px; /* Reduced padding */
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.3s ease;
    color: #fff;
    font-family: "Arial", sans-serif;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Card hover effect - turns pink on hover */

.card:hover {
    transform: scale(1.08) rotateZ(2deg); 
    box-shadow: 6px 6px 25px rgb(0, 0, 0);
}

/* Card image styling */

.card img {
    background-size: cover;
    background-repeat: no-repeat;
    border: 2px solid rgb(234, 231, 231);
    border-radius: 5px;
    width: 100%;
    height: 150px; /* Smaller image to reduce height */
    object-fit: cover;
    margin-bottom: 10px; /* Reduced margin below the image */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Adds shadow effect */
}


/* Card heading */

.card h2 {
    font-size: 18px; /* Slightly smaller font */
    color: black;
}

/* Card paragraph */

.card p {
    color: #5a5757;
    font-size: 14px; /* Reduced font size */
    margin: 8px 0; /* Smaller margin */
    line-height: 1.4; /* Slightly tighter line spacing */
}

/* Button styling inside card */

.card a,
.card button {
    display: inline-block;
    padding: 5px 10px;
    background-color: white; 
    color: black;
    border-radius: 5px;
    text-decoration: none;
    border: solid black 1px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover effect for buttons */

.card a:hover,
.card button:hover {
    background-color: black;
    color:white;
    transform: translateY(-6px); 
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
}

/* Card transition effects */

.card {
    perspective: 1000px;
}

.card:hover {
    transform: rotateY(3deg) scale(1.05);
    transition: transform 0.5s ease;
}

/* Modal styling */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}


/* Modal content box */

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
}


/* Close button for modal */

.close-btn {
    float: right;
    cursor: pointer;
    color: #aaa;
    font-size: 24px;
}

.close-btn:hover {
    color: #333;
}

.modal h2 {
    margin-top: 0;
}


/* Modal text */

.modal p {
    font-size: 16px;
    color: #333;
}


/* Modal apply button */

.modal a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #000000;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.modal a:hover {
    background-color: #343434;
}


/* Search bar styling */

.search-bar {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 40px;
    overflow: hidden;
    width: 550px;
    height:70px;
    padding:20px;
    margin: 20px auto;
    border-radius: 20px;
    background: linear-gradient(90deg, #a9a9a9, #333333);
    transition: width 0.5s ease, background-color 0.5s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.search-bar:hover {
    width: 700px; /* Expands smoothly */
    background: linear-gradient(90deg, #272727, #111111); /* Darker gradient on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); 
    color :white;
}

.search-bar input {
    border: black solid 1px;
    color:#2f2f2f;
    border-radius: 40px;
    padding: 10px;
    font-size: 16px;
    flex: 1;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.pagination button {
    background-color: #000000;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s;
}

.pagination button:hover {
    background-color: #535353;
    transform: scale(1.05);
}

.pagination button:disabled {
    background-color: #c0c0c0;
    cursor: not-allowed;
}
#like_btn{
    border:none;
}
#page-info {
    margin: 0 15px;
    font-size: 1.1em;
    font-weight: bold;
}
.card .buttons{
    margin-top: 8px;
    margin-bottom: 10px;
}
.read-more{
    margin-left: 10px;
}
.card h4{
    width: 100%;
    
}
.comment-input {
    height: 2.5rem;
    margin-right: 5px;
    border-radius: 8px;
    padding-left: 5px;
    padding-top: 7px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 1rem;
    resize: none; /* Disables the text area's resize handle */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.comment-input:focus {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Highlight shadow on focus */
    border-color: #66afe9;
}

.card .comments-section{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#post_btn{
    color:white;
    background: #000;
}
#comm_ent{
    padding: 0px;
}
