.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

#bgVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: auto;
    min-height: 100vh;
    transform: translate(-50%, -50%);
    object-fit: cover;
    background-size: cover;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth; /* Smooth scrolling */
}

header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar {
    padding: 0.25rem 1rem; /* Further reduced padding to bring it closer to the top */
}

.custom-hr {
    margin: 0; /* Adjust margin to move the line up */
    border: 1px solid #ddd; /* Make sure it's a grey line */
    width: 100%;
    position: fixed;
    top: 50px; /* Adjusted position to be closer to the navbar */
    z-index: 999; /* Ensure it stays above the main content */
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 25px; /* Adjusted padding to move content up */
    background: transparent; /* Make main background transparent */
}

.static-header {
    font-size: 4.5rem; /* Adjusted font size */
    font-family: 'Georgia', Times, serif; /* Change font to Georgia with fallbacks */
    font-weight: 600; /* Make the text bold */
    line-height: 1.2; /* Adjust line height for better alignment */
    margin: 0; /* Remove default margin */
    text-align: center; /* Center align the text */
}

.typewriter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px; /* Adjust height to bring text closer to header */
    margin-top: 2px; /* Adjusted margin to control spacing */
}

.typewriter-container .desktop-text {
    display: block;
    font-size: 1.39rem; /* Increase font size for desktop */
}

.typewriter-container .mobile-text {
    display: none;
}

/* Hide desktop text and show mobile text on mobile devices */
@media (max-width: 768px) {
    .typewriter-container .desktop-text {
        display: none;
    }
    .typewriter-container .mobile-text {
        display: block;
        font-size: 0.9rem; /* Adjust font size for mobile */
        color: #333;
    }
}

.typewriter {
    font-size: 1.5rem; /* Increase font size for better visibility */
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    border-right: 0.15em solid orange; /* Show the cursor */
    animation: typing 6s steps(40, end), blink-caret .75s step-end infinite; /* Adjusted typing speed to 6s */
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: transparent; }
}

.section {
    min-height: 100vh; /* Ensure sections take up full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 0; /* Add padding to sections */
}

.section h2 {
    font-size: 3.5rem; /* Increase font size */
    margin-bottom: 20px;
    font-family: Georgia, serif; /* Change to Georgia font family */
    text-align: center; /* Center the heading */
    font-weight: 600; /* Bold the heading, but slightly less bold */
}

.section p {
    font-size: 1.25rem; /* Reduce font size */
    max-width: 1200px; /* Increase max-width for more stretching */
    text-align: left; /* Change text alignment to left */
    line-height: 2; /* Adjust line height for better readability */
    font-family: Georgia, serif; /* Change to Georgia font family */
}

#about, #featured-articles {
    padding: 50px 0; /* Add padding to sections */
}

.about-container {
    background-color: rgba(236,236,236,255); /* Use the provided color */
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 0; /* Padding for the whole section */
}

.about-content {
    max-width: 1200px; /* Increase max-width for more stretching */
    text-align: left; /* Change text alignment to left */
    font-size: 1.25rem; /* Reduce font size for better visibility */
    line-height: 2; /* Ensure consistent line height for better readability */
    font-family: Georgia, serif; /* Change to Georgia font family */
}

.about-content h2 {
    font-size: 3.5rem; /* Increase font size for better visibility */
    margin-bottom: 20px; /* Reduce margin to move the text closer to the header */
    text-align: center; /* Center the heading */
    font-weight: 600; /* Bold the heading, but slightly less bold */
}

.privacy-policy-container {
    font-family: Georgia, serif; /* Change font to Georgia */
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.6;
}

.privacy-policy-container h2, .privacy-policy-container h3 {
    font-weight: bold;
}

.privacy-policy-container p {
    margin-bottom: 20px;
}

footer.bg-dark {
    background-color: #000000 !important; /* Pure black with !important to override other styles */
    color: #fff !important; /* Ensure text is white with !important */
    padding: 20px 0; /* Add padding for better spacing */
}

footer a.text-white {
    color: #fff !important;
}

footer p {
    margin: 0; /* Remove margin for better spacing */
}

/* Additional styles for charts */
.chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chart-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Remove underline from links */
a {
    text-decoration: none;
    color: inherit; /* Ensure the link inherits the text color */
}

a:hover {
    text-decoration: none; /* Remove underline on hover */
}

/* Specific styles for the research page links */
.research-article-link {
    text-decoration: none;
    color: inherit; /* Ensure the link inherits the text color */
    display: block; /* Make the entire block clickable */
}

.research-article-link:hover {
    cursor: pointer; /* Change the cursor to pointer on hover */
    text-decoration: none; /* Remove underline on hover */
}

.research-article-link h3 {
    text-decoration: none;
}

.research-article-link h3:hover {
    text-decoration: none;
}

/* Styles for the research page */
.research-page {
    padding-top: 100px;
}

.research-articles-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.research-article {
    background-color: #fff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 90%; /* Increased width */
    max-width: 1200px; /* Increased width */
    text-align: left;
    transition: transform 0.2s; /* Smooth transition for hover effect */
}

.research-article:hover {
    transform: translateY(-5px); /* Slightly lift the article on hover */
}

.article-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.article-text {
    flex: 1;
    max-width: 50%; /* Set max-width for the text */
    margin-right: 20px;
}

.article-text h3 {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.article-text p {
    font-size: 1.25rem;
    color: #333;
}

.article-date {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 5px; /* Added margin to separate date from title */
}

.article-image img {
    max-width: 200px; /* Adjusted width */
    height: auto;
    border-radius: 8px;
}

.article-footer {
    display: none; /* Hide the footer as it contained views and comments */
}

/* Specific font adjustment for list items in the article content */
.article-content li {
    font-family: Georgia, serif; /* Ensure consistent font family for list items */
    font-size: 1.25rem; /* Set a consistent font size for better readability */
    color: #333; /* Set consistent color */
    line-height: 1.6; /* Adjust line height for better readability */
}

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
    .static-header {
        font-size: 3rem; /* Adjust font size for mobile */
    }

    .typewriter {
        font-size: 1rem; /* Adjust font size for mobile */
    }

    .typewriter-container .mobile-text {
        font-size: 0.9rem; /* Adjust font size for mobile */
        color: #333;
    }

    .section h2 {
        font-size: 2.5rem; /* Adjust font size for mobile */
    }

    .section p, .about-content {
        font-size: 1rem; /* Adjust font size for mobile */
        padding: 10px; /* Add padding for mobile */
    }

    .about-content h2 {
        font-size: 2.5rem; /* Adjust font size for mobile */
    }

    header {
        padding: 10px; /* Add padding to header for mobile */
    }

    .navbar {
        padding: 0.5rem; /* Adjust padding for mobile */
    }

    .custom-hr {
        top: 40px; /* Adjust position for mobile */
    }

    .privacy-policy-container {
        padding: 20px; /* Adjust padding for mobile */
    }

    .privacy-policy-container h2, .privacy-policy-container h3 {
        font-size: 1.5rem; /* Adjust font size for mobile */
    }

    .research-article {
        width: 90%; /* Adjust width for mobile */
    }

    .article-content {
        flex-direction: column;
    }

    .article-text {
        margin-right: 0;
        margin-bottom: 20px;
        max-width: 100%; /* Remove max-width for mobile */
    }

    .article-image img {
        max-width: 100%;
    }

    #bgVideo {
        width: auto;
        height: 100vh;
    }
} 
