body {
    font-family: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
}

/* Global adaptive font sizes for headings */
h1 {
    font-size: 2.5rem; /* Desktop */
}

@media (min-width: 768px) and (max-width: 1023px) {
    h1 {
        font-size: 2.2rem; /* Tablet */
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 1.8rem; /* Mobile */
    }
    .text-xl.font-bold.text-green-700 {
        font-size: 1.25rem;
    }
}

h2 {
    font-size: 2.2rem; /* Desktop */
}

@media (min-width: 768px) and (max-width: 1023px) {
    h2 {
        font-size: 2rem; /* Tablet */
    }
}

@media (max-width: 767px) {
    h2 {
        font-size: 1.5rem; /* Mobile */
    }
}

h3 {
    font-size: 1.8rem; /* Desktop */
}

@media (min-width: 768px) and (max-width: 1023px) {
    h3 {
        font-size: 1.6rem; /* Tablet */
    }
}

@media (max-width: 767px) {
    h3 {
        font-size: 1.25rem; /* Mobile */
}
}

/* Animations for scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Modal styles */
.modal {
    transition: opacity 0.3s ease-in-out;
}

.modal-content {
    transition: transform 0.3s ease-in-out;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal.hidden .modal-content {
    transform: translateY(-20px);
}

.modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal:not(.hidden) .modal-content {
    transform: translateY(0);
}

/* Author section specific animations */
#author-title.is-visible {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#author-bio.is-visible {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

/* Calendar day hover effect */
#calendar-days div:not(.empty-day):hover {
    transform: scale(1.1);
    background-color: #d1fae5; /* green-100 */
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
#about-author-section {
    min-height: 60vh;
}
/* Sticky sidebar */
@media (min-width: 1024px) {
    aside {
        grid-column: 3 / 4; /* Adjust grid for sidebar if needed */
        align-self: start;
    }
}

/* Ensure footer toggle works */
@media (max-width: 767px) {
    [data-footer-toggle] + ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    [data-footer-toggle].active + ul {
        max-height: 200px; /* Sufficient height for expansion */
    }
}
/* Base styles for the compliance vault node container */
.complianceVaultNode {
    padding: 20px; /* Internal padding for content from the container edges */
    margin-top: 20px; /* Top margin to separate this node from content above */
    margin-bottom: 20px; /* Bottom margin to separate this node from content below */
    background-color: #f9f9f9; /* Optional: A subtle background to visually define the node */
    border: 1px solid #eee; /* Optional: A light border */
    border-radius: 4px; /* Optional: Slightly rounded corners */
    font-family: Arial, sans-serif; /* Optional: Default font for the node's content */
    color: #333; /* Optional: Default text color for the node */
}

/* Heading 1 styles within the compliance vault node */
.complianceVaultNode h1 {
    font-size: 28px; /* Moderate font size for main headings */
    font-weight: 600; /* Semi-bold weight */
    line-height: 1.2; /* Line height for readability */
    margin-top: 30px; /* Space above the heading */
    margin-bottom: 15px; /* Space below the heading */
    color: #222; /* Slightly darker color for emphasis */
}

/* Heading 2 styles within the compliance vault node */
.complianceVaultNode h2 {
    font-size: 24px; /* Moderate font size for sub-headings */
    font-weight: 600;
    line-height: 1.3;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #222;
}

/* Heading 3 styles within the compliance vault node */
.complianceVaultNode h3 {
    font-size: 20px; /* Moderate font size for tertiary headings */
    font-weight: 600;
    line-height: 1.4;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #222;
}

/* Heading 4 styles within the compliance vault node */
.complianceVaultNode h4 {
    font-size: 18px; /* Slightly larger than body text */
    font-weight: 500; /* Medium weight */
    line-height: 1.5;
    margin-top: 18px;
    margin-bottom: 8px;
    color: #333;
}

/* Heading 5 styles within the compliance vault node */
.complianceVaultNode h5 {
    font-size: 16px; /* Standard body text size */
    font-weight: 500;
    line-height: 1.6;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #333;
}

/* Paragraph styles within the compliance vault node */
.complianceVaultNode p {
    font-size: 16px; /* Standard font size for paragraphs */
    line-height: 1.6; /* Line height for optimal readability */
    margin-bottom: 1em; /* Space between paragraphs */
    color: #333;
}

/* Unordered list styles within the compliance vault node */
.complianceVaultNode ul {
    list-style-type: disc; /* Default disc bullet style */
    padding-left: 20px; /* Indentation for list markers */
    margin-bottom: 1em; /* Space after the list */
    margin-top: 0.5em; /* Space before the list */
    color: #333;
}

/* List item styles within the compliance vault node */
.complianceVaultNode li {
    font-size: 16px; /* Standard font size for list items */
    line-height: 1.5; /* Line height for list item readability */
    margin-bottom: 0.5em; /* Space between individual list items */
    color: #333;
}
