/* PHAB - Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #3ca586;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d8a6e;
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Prose styling */
.prose h2 {
    color: #143248;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}
.prose h3 {
    color: #143248;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: 1.25em;
    margin-bottom: 0.5em;
}
.prose p {
    margin-bottom: 1em;
    line-height: 1.75;
}
.prose a {
    color: #3ca586;
    text-decoration: underline;
}
.prose a:hover {
    color: #2d8a6e;
}
.prose ul, .prose ol {
    margin: 1em 0;
    padding-left: 1.5em;
}
.prose li {
    margin-bottom: 0.5em;
}
.prose img {
    border-radius: 0.75rem;
    margin: 1.5em 0;
}

/* FAQ accordion animation */
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-answer.open {
    max-height: 1000px;
}

/* Hero section */
.hero-slide {
    animation: fadeIn 0.8s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll effect */
#mainNav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Nav dropdown */
.nav-dropdown {
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}
.group:hover .nav-dropdown {
    transform: translateY(0);
}

/* Nav link active indicator */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3ca586;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after {
    width: 70%;
}

/* Image placeholder fallback */
img[src="/assets/images/placeholder.png"] {
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none !important;
    }
    main {
        margin: 0;
        padding: 0;
    }
}
