/* Additional custom styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Updated to match Law & Economics design style */

/* Font imports are handled in HTML head */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Playfair Display for headings - applied via inline styles in HTML */

/* Program Card Flip Animation */
.program-card {
    position: relative;
    min-height: 400px;
    transition: all 0.3s ease;
}

.program-card .card-front {
    position: relative;
    z-index: 1;
}

.program-card .card-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects for cards */
.program-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Form input focus states */
input:focus,
textarea:focus,
select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Checkbox custom styling */
input[type="checkbox"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

/* Button hover effects enhancement */
button,
a {
    transition: all 0.3s ease;
}

/* Custom scrollbar with stone colors */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f5f4;
}

::-webkit-scrollbar-thumb {
    background: #78716c;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #57534e;
}

/* Animation utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Print styles */
@media print {
    header,
    footer,
    #cookiePopup {
        display: none;
    }
}

/* Grayscale image effects */
img.grayscale {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.group:hover img.grayscale {
    filter: grayscale(0%);
}
