body {
    margin: 0;
    font-family: Georgia, serif;
    background-color: #f8f8f8;
    color: #333;
}

.header {
    background-color: black;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
    height: 100px; 
}

.header .logo {
    font-family: 'JMH Typewriter', monospace; 
    font-size: 64px;
    flex: 1; 
    padding: 5px; 
}

.header .logo-text {
    cursor: pointer; 
    transition: color 0.3s ease; 
}

.header .logo-text:hover {
    color: yellow;
}

.header .nav-links {
    display: flex;
    gap: 30px; 
}

.header .nav-links a {
    color: white;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 18px;
    transition: color 0.3s, text-decoration 0.3s;
}

.header .nav-links a:hover {
    color: yellow;
    text-decoration: underline;
}

.research-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); 
    gap: 20px; 
    margin-top: 0px;
}

.research-block {
    text-decoration: none; 
    color: inherit; 
    display: block; 
    background-color: white;
    border-radius: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;

    aspect-ratio: 4 / 5; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    padding: 20px; 
    gap: 10px; 
}

.research-block img {
    width: 80%; 
    height: auto;
    max-height: 60%; 
    object-fit: contain; 
    margin-bottom: 10px;
}

.research-block h3 {
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: bold;
    color: #333;
    margin: 10px 0 5px;
    text-align: center;
}

.research-block h4 {
    font-family: 'Times New Roman', serif;
    font-size: 16px; 
    font-style: italic; 
    color: slategray; 
    margin: 10px 0 5px;
    text-align: center;
    position: relative;
}




.research-heading {
    font-family: 'Georgia', serif; 
    font-size: 24px; 
    font-style: italic; 
    text-align: center;
    color: #333; 
    margin: 30px 0 10px; 
    position: relative;
}

.research-heading::after {
    content: '';
    position: absolute;
    width: 70%; 
    height: 1px; 
    background-color: #ccc; 
    bottom: -10px;
    left: 50%; 
    transform: translateX(-50%);
}


.research-block p {
    font-size: 18px;
    color: #555;
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

.research-block:hover {
    transform: scale(1.05); 
    box-shadow: 0 8px 20px rgba(0, 128, 128, 0.5); 
    transition: transform 0.5s ease, box-shadow 0.5s ease; 
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination button {
    padding: 10px 10px;
    font-size: 14px;
    cursor: pointer;
    background-color: white;
    border: 1px solid #ddd;
    transition: background-color 0.3s, color 0.3s;

    width: 50px; 
    text-align: center; 
    box-sizing: border-box; 
}

.pagination button:hover:not(.disabled):not(.active) {
    background-color: #007BFF;
    color: white;
}

.pagination button.disabled {
    background-color: #f0f0f0;
    color: #aaa;
    cursor: not-allowed;
}

.pagination button.active {
    background-color: #007BFF;
    color: white;
    cursor: default;
}

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #007BFF;
}

@media (max-width: 768px) {
    .research-grid {
        grid-template-columns: 1fr;
    }
}

