/* --- Social Feed Card Styles --- */
/* --- Social Feed Card Styles (minimalist, responsive, card layout, load more) --- */
.feed-item.social-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e4e6eb;
    border-radius: 16px;
    margin: 24px auto 0 auto;
    padding: 0 0 10px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    max-width: 95%;
    width: 100%;
    transition: box-shadow 0.2s;
}
.feed-item.social-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}
.feed-img img {
    border-radius: 0;
    width: 100%;
    max-height: 350px;
    object-fit: cover;
}
.feed-content {
    padding: 12px 18px 0 18px;
}
.feed-content h2 {
    margin: 8px 0 4px 0;
    font-size: 1.15em;
    color: #222;
}
.load-more-btn {
    background: #0A6847;
    color: #fff;
    font-weight: 600;
    border-radius: 20px;
    padding: 10px 32px;
    margin-top: 10px;
    font-size: 1em;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.2s;
}
.load-more-btn:hover {
    background: #155d4a;
}
@media (max-width: 768px) {
    .feed-item.social-card {
        margin: 10px 0;
        padding: 0 0 8px 0;
        font-size: 0.92em;
        max-width: 100%;
    }
    .feed-content {
        padding-left: 10px;
        padding-right: 10px;
    }
    .feed-content h2 {
        font-size: 1em;
    }
}
/* General styles */
html, body {
    overflow-x: hidden; /* Hide horizontal scrollbar */
}
body {
    font-family: "Montserrat", sans-serif;
    background: linear-gradient(90deg, #ebfffd, #eafff4, #e9ffeb);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


.header {
    background-color: #0A6847;
    padding: 20px; /* Adjust padding for aesthetics */
    display: flex;
    justify-content: space-between; /* Space out items evenly */
    align-items: center; /* Center items vertically within the header */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed; /* Keeps the header fixed at the top */
    width: 98%; /* Ensures header spans the entire width */
    top: 0; /* Aligns it to the top of the page */
    z-index: 1000; /* Keeps it above other content */
}


.header .logo {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 40px;
    font-weight: 300;
    color: white;
}

.header .search-bar {
    display: flex;
    flex: 1;
    justify-content: center;
}

.header .search-bar input {
    width: 50%;
    padding: 8px;
    border: 2px solid #ccc;
    border-radius: var(--border-radius);
    outline: none;
}

.header .actions {
    display: flex;
    gap: 20px; 
}

.header .actions a {
    color: white; /* Text color */
    text-decoration: none; /* Remove underline */
    padding: 10px 15px; /* Add padding for clickable area */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease; /* Transition for hover effects */
}

.header .actions a:hover {
    background-color: #005e4c; /* Darker background on hover */
    color: #f0f8ff; /* Change text color on hover */
}

.header .actions img {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: all 0.3s ease; 
    border-radius: 50%; 
    padding: 5px; 
}


/* Dropdown container */
/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    cursor: pointer; /* Pointer to indicate interaction */
}

/* Dropdown content (hidden by default) */
.dropdown {
    position: relative;
    display: inline-block;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.dropdown-content {
    display: none; /* Initially hidden */
    position: absolute;
    background-color: black;
    min-width: 250px;
    right: 0;
    box-shadow: var(--box-shadow);
    z-index: 1;
    border-radius: var(--border-radius);
    opacity: 0; /* Start with zero opacity for smooth transition */
    transition: opacity 0.3s ease; /* Transition for opacity */
}

.dropdown:hover .dropdown-content {
    display: block; /* Display dropdown on hover */
    opacity: 1; /* Fade in effect */
}

.dropdown-content a {
    color: black;
    padding: 20px 30px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}



.main-content {
    flex: 1; /* Make sure main content takes up the remaining space */
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack sections vertically */
    align-items: center; /* Center align sections */
}

/* Combined Books and Research sections into the main content */
.content-section {
    flex: 1; /* Take up remaining space */
    padding: 20px;
    text-align: center;
    margin-top: 100px;
}

.content-section h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 40px;
    color: #333;
    margin: 20px 0; 
}

.content-section .line {
    height: 3px; /* Line thickness */
    background-color: #0A6847; /* Line color */
    width: 75%; /* Width matching books section */
    margin: 0 auto; /* Center the lines */
    margin-bottom: 10px; /* Spacing below lines */
    margin-top: 10px; /* Spacing above lines */
}

.book-list,
.research-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Increase this value for more spacing */
    margin-top: 20px; /* Add margin for spacing */
}

.book-box,
.research-card {
    display: flex; 
    align-items: center; 
    width: 100%; 
    max-width: 350px;
    height: 300px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 8px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    transition: box-shadow 0.3s ease;
    margin-bottom: 15px; /* Add margin to separate boxes vertically */
}

.book-box:hover,
.research-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); 
}

.book-image {
    width: 65%; 
    height: 100%; 
    object-fit: cover; 
    border-top-left-radius: 8px; 
    border-bottom-left-radius: 8px; 
    transition: transform 0.3s ease-in-out; /* Apply the same transition for smooth zoom */
}

.book-title {
    font-size: 18px; 
    color: #333; 
    text-align: left; 
    padding-left: 10px; 
    flex: 1; 
    margin: 0; 
    display: flex;
    align-items: center;
}

.book-box:hover .book-image {
    transform: scale(1.05); /* Slight zoom effect */
}

.pagination button {
    background-color: transparent; 
    border: none; 
    cursor: pointer;
    padding: 10px; 
    transition: transform 0.3s ease; 
}

.pagination button:hover {
    transform: scale(1.1); 
}

.pagination button img {
    width: 32px;
    height: 32px;
}

/* Banner styles */
.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0A6847; /* Match the university's color */
    padding: 20px;
    color: white;
    position: relative;
    width: 100%; /* Full-width */
}

.banner-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%; /* Makes the logo circular */
    margin-right: 20px; /* Space between the logo and text */
}

.banner h1 {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    text-align: center;
}

.banner-content {
    display: flex;
    align-items: center;
}
.banner-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px;
    background-color: #f0f0f0;
    border-top: 1px solid #ddd;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #333;
}

.banner-footer p {
    margin: 0 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
}
/* Adjustments to make sure the banner is always at the bottom */
html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.main-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1; /* Adjust so both sections can grow */
}


.research-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.research-card {
    width: 300px;
    height: 550px; /* Adjust height as necessary */
    perspective: 1000px; /* Enable 3D perspective */
    margin: 15px; /* Space between cards */
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s; /* Transition for flip effect */
    transform-style: preserve-3d; /* Enable 3D transformations */
    cursor: pointer; /* Indicate that the card is interactive */
}

.research-card.flipped .card-inner {
    transform: rotateY(180deg); /* Flip the card */
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Hide the back side when not flipped */
    border-radius: 8px; /* Match border radius */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the left */
    justify-content: flex-start; /* Align items to the top */
    padding: 15px; /* Padding for card content */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: add a subtle shadow for depth */
}

.card-back p {
    margin: 5px 0; /* Add some spacing between paragraphs */
    line-height: 1.6; /* Increase line height for better readability */
}

.card-back strong {
    margin-right: 5px; /* Add space between the label and the content */
}


.card-back p:last-child {
    margin-top: 10px; /* Additional space before the description */
    font-size: 0.95em; /* Slightly smaller font for description */
    color: #555; /* Lighter color for description */
}


.card-front {
    background-color: #ffffff; /* Front background color */
}

.card-back {
    background-color: #f0f0f0; /* Back background color */
    transform: rotateY(180deg); /* Rotate the back side */
}


.research-image {
    width: 100%;
    height: auto; /* Keep aspect ratio */
    border-radius: 8px; /* Match border radius */
    margin-top: 10px; /* Add margin between title and image */
}

/* Pagination styles */
.pagination-container {
    display: flex;
    justify-content: center; /* Center the pagination buttons */
    margin: 20px 0; /* Add spacing above and below */
}

.pagination {
    display: flex; /* Make sure buttons are in a row */
}

.pagination button {
    background-color: transparent;
    margin: 0 5px; /* Space between buttons */
    cursor: pointer;
    transition: background-color 0.3s ease; /* Add transition for hover effect */
}
