/* Custom styles beyond Tailwind */

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-in-out forwards;
}

.animate-slide-right {
    animation: slideRight 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Parallax effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0077B6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00B4D8;
}

/* Typography enhancements */
.heading-underline {
    position: relative;
    display: inline-block;
}

.heading-underline::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    bottom: -6px;
    left: 0;
    background-color: #FF9F1C;
    transition: width 0.3s;
}

.heading-underline:hover::after {
    width: 100%;
}

/* Focus styles for better accessibility */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid #0077B6;
    outline-offset: 2px;
}

/* Custom card hover effects */
.card-hover {
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient overlays for images */
.image-overlay {
    position: relative;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
}

/* Timeline styles for program */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    height: calc(100% + 1rem);
    width: 2px;
    background-color: #0077B6;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -0.375rem;
    top: 0.5rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: #FF9F1C;
    border: 2px solid #0077B6;
}

/* Button pulse animation */
.btn-pulse {
    position: relative;
}

.btn-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: inherit;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

.concept-card summary {
    list-style: none;
}

.concept-card summary::-webkit-details-marker {
    display: none;
}

.concept-card[open] .concept-card-icon {
    transform: rotate(45deg);
}

.concept-card-icon {
    transition: transform 0.2s ease;
}

.concept-card + .concept-card {
    margin-top: 1.5rem;
}

.concept-note {
    border-top: 1px solid #d1d5db;
}

.concept-note + .concept-note {
    margin-top: 0;
}

.concept-note:last-child {
    border-bottom: 1px solid #d1d5db;
}

.concept-note summary {
    margin: 0 -1rem;
    padding: 1.5rem 1rem;
    border-radius: 0.25rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.concept-note summary:hover {
    color: #004080;
    background-color: rgba(0, 119, 182, 0.08);
}

.concept-note summary:focus-visible {
    outline: 2px solid #0077B6;
    outline-offset: 2px;
}

.concept-note summary:hover .concept-card-icon {
    transform: scale(1.15);
}

.concept-note[open] summary:hover .concept-card-icon {
    transform: rotate(45deg) scale(1.15);
}

.concept-note-content {
    padding: 0 0 2rem;
    font-size: 1.05rem;
    line-height: 1.75;
}

.concept-note-content > * + * {
    margin-top: 1.5rem;
}

.pif-hero-logo-wrap {
    top: 2rem;
    right: 2rem;
}

.pif-hero-logo {
    width: clamp(10rem, 18vw, 17rem);
    max-height: 11rem;
}

@media (max-width: 767px) {
    .pif-hero-logo-wrap {
        top: 1rem;
        right: 1rem;
    }

    .pif-hero-logo {
        width: clamp(7rem, 34vw, 10rem);
        max-height: 6.5rem;
    }
}

@media (max-width: 420px) {
    .pif-hero-logo-wrap {
        right: 0.75rem;
    }

    .pif-hero-logo {
        width: 7rem;
    }
}

.pif-concept-logo {
    width: min(100%, 48rem);
    height: auto;
}

.pif-home-logo-panel {
    width: min(82%, 46rem);
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 23, 43, 0.14);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.pif-home-main-logo {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .pif-home-logo-panel {
        width: 88%;
        padding: 0.5rem;
        border-radius: 0.5rem;
    }
}

.pif-home-hero {
    height: 50vh;
    min-height: 32rem;
}

@media (max-width: 767px) {
    .pif-home-hero {
        height: 65vh;
        min-height: 30rem;
    }
}

.venue-media {
    height: 24rem;
}

@media (max-width: 767px) {
    .venue-media {
        height: 18rem;
    }
}

.president-portrait {
    width: min(100%, 16rem);
    height: auto;
}


article[id^="venue-"],
article[id^="schedule-"] {
    scroll-margin-top: 6rem;
}

.venue-cards-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.venue-card-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.venue-card-list article[id^="venue-"] {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 2px 8px rgba(0, 64, 128, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.venue-card-list article[id^="venue-"]:hover {
    border-color: #9ca3af;
    box-shadow: 0 4px 14px rgba(0, 64, 128, 0.09);
}

.venue-card-list article[id^="venue-"] > h2 {
    color: #004080;
    font-family: 'DM Serif Text', serif;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.25;
}

.venue-card-list .venue-media {
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
}

.venue-schedule-link {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.schedule-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.schedule-days {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.schedule-day {
    background: transparent;
}

.schedule-day > h2 {
    margin: 0 0 1.25rem;
    padding: 0 0 0.75rem;
    color: #004080;
    background: transparent;
    border-bottom: 2px solid #0077B6;
    font-family: 'DM Serif Text', serif;
    font-size: 1.75rem;
    font-weight: 400;
}

.schedule-column-headings,
.schedule-event {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1.25fr) minmax(11rem, 0.85fr) minmax(12rem, 1fr);
    gap: 1.25rem;
    align-items: start;
    padding: 1.25rem 1.5rem;
}

.schedule-column-headings {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    color: #4b5563;
    background: transparent;
    border-bottom: 1px solid #9ca3af;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.schedule-event {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.15s ease;
}

.schedule-event:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.schedule-side-event-note {
    margin-bottom: 3.5rem;
    padding: 1.25rem 0;
    color: #4b5563;
    background: transparent;
    border-top: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
    line-height: 1.6;
}

.schedule-access {
    color: #4b5563;
    font-size: 0.925rem;
    line-height: 1.5;
}

.schedule-time {
    color: #004080;
    font-weight: 600;
}

.schedule-title h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.schedule-location a {
    color: #0077B6;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.schedule-location a:hover {
    text-decoration-thickness: 2px;
}

.schedule-location span {
    color: #6b7280;
}

.schedule-note {
    margin-top: 0.75rem;
    padding: 0.75rem;
    color: #92400e;
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .schedule-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .schedule-column-headings {
        display: none;
    }

    .schedule-event {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.25rem;
    }

    .schedule-time::before,
    .schedule-location::before,
    .schedule-access::before {
        display: block;
        margin-bottom: 0.125rem;
        color: #6b7280;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .schedule-time::before {
        content: 'Time';
    }

    .schedule-location::before {
        content: 'Venue';
    }

    .schedule-access::before {
        content: 'Access';
    }

    .schedule-day > h2 {
        padding: 0 0 0.75rem;
        font-size: 1.4rem;
    }
}

.palau-pledge-section {
    margin-top: 4rem;
    padding-top: 4rem;
}

.health-content > section + section {
    margin-top: 3.5rem;
}

.health-content h2 {
    margin-bottom: 1.5rem;
}

.health-content h3 {
    margin-bottom: 0.75rem;
}

.health-content ul,
.health-content ol {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.75rem;
}

.health-content ul {
    list-style: disc outside;
}

.health-content ol {
    list-style: decimal outside;
}

.health-content li + li {
    margin-top: 0.5rem;
}

.health-content .space-y-4 > * + * {
    margin-top: 1rem;
}

.health-content article p + p {
    margin-top: 0.5rem;
}

/* Hide dropdown arrows for select elements */
.pointer-events-none.absolute.inset-y-0.right-0.flex.items-center.px-2.text-gray-700 {
    display: none !important;
}

/* Alternative selector if the above doesn't work */
select + div svg.fill-current.h-4.w-4 {
    display: none !important;
}

/* For select elements themselves */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none !important;
}