/* Base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    xbackground-color: #F0E8E5;
    color: white;
    padding-bottom: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Header styles */
header {
    background-color: white;
    width: 100%;
    padding-top: 5px;
    padding-bottom: 5px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

header > div {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

header img {
    height: 80px;
    width: auto;
    margin-right: 0;
    margin-bottom: 10px;
}

header h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #191919;
    text-align: center;
    line-height: 1.3;
}

/* Main container */
.max-w-container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    flex: 1;
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
}

/* Grid container */
#presentations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Card styles */
.presentation-card {
    border: 1px solid #1e1e1e;
    background-color: #1e1e1e;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.presentation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Card image container */
.card-image-container {
    width: 100%;
    height: 180px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.875rem;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card content */
.card-content {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-author {
    font-size: 13px;
    color: #b0b0b0;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* Card footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #DDD;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #888;
}

.card-badge {
    background-color: #444;
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 0.25rem;
    font-weight: 500;
    color: white;
}

.card-download {
    width: 32px;
    height: 32px;
    padding: 4px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-download:hover {
    color: white;
}

.card-download svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Footer */
footer {
    background-color: white;
    width: 100%;
    margin-top: auto;
    padding-top: 10px;
    padding-bottom: 8px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

footer > div {
    xmax-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

footer span {
    margin-top: 5px;
    color: black;
    font-size: 0.875rem;
}

footer img {
    height: 30px;
    width: auto;
    display: block;
}

/* Responsive styles - Small screens (sm: 640px) */
@media (min-width: 640px) {
    header h1 {
        font-size: 24px;
    }
    
    .max-w-container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Responsive styles - Medium screens (md: 768px) */
@media (min-width: 768px) {
    header > div {
        padding-left: 20px;
        padding-right: 20px;
        flex-direction: row;
        text-align: left;
    }
    
    header img {
        height: 75px;
        margin-right: 15px;
        margin-bottom: 0;
    }
    
    header h1 {
        font-size: 28px;
        line-height: normal;
    }
    
    .max-w-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    #presentations-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 6px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .card-image-container {
        height: 200px;
    }
    
    .card-content {
        padding: 16px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-author {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }
    
    .card-download {
        width: 24px;
        height: 24px;
        padding: 0;
    }
    
    footer > div {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Line clamp utility (already in HTML but included for completeness) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.not-selectable {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none;     /* IE/Edge (old) */
  user-select: none;         /* Modern browsers */
}

/* Container */
.folder-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	width: 100%;
}

/* Folder card */
.folder-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	height: 47px;
	width: 15rem;
	padding: 0 0.75rem; /* px-3 */
	overflow: hidden;

	background-color: #ffffff;
	border: 1px solid #000000;
	border-radius: 0.375rem; /* rounded-md */
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

	cursor: pointer;
	transition: box-shadow 0.2s ease;
}

/* Hover */
.folder-card:hover {
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Dark mode */
.dark .folder-card {
	background-color: rgba(24, 24, 27, 0.9); /* zinc-900/90 */
	border-color: #404040;
}


/* Inner content */
.folder-card-inner {
	display: flex;
	align-items: center;
	gap: 0.5rem; /* gap-2 */
	flex: 1;
	min-width: 0;
}

/* Icon */
.folder-icon {
	width: 1.25rem; /* w-5 */
	height: 1.25rem; /* h-5 */
	flex-shrink: 0;
}

/* Folder name */
.folder-name {
	min-width: 0;
	font-size: 0.875rem; /* text-sm */
	font-weight: 500;
	line-height: 1.25;
	color: #171717; /* neutral-900 */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Dark mode text */
.dark .folder-name {
	color: #f5f5f5; /* neutral-100 */
}
