/* ===========================
   Alumni Gimnazije "Stojan Cerović"
   Osnovni stilovi
   =========================== */

:root {
    --primary: #1a3a5c;
    --primary-light: #2a5a8c;
    --primary-dark: #0d1f33;
    --accent: #c8a45a;
    --accent-light: #e0c47a;
    --success: #2e7d32;
    --error: #c62828;
    --text: #333;
    --text-light: #666;
    --bg: #f8f7f4;
    --bg-card: #ffffff;
    --border: #e0ddd5;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.12);
    --transition: 0.2s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===========================
   Header & Navigacija
   =========================== */

.site-header {
    background: var(--primary);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.logo:hover {
    color: var(--accent-light);
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-nav > ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Nav dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle::after {
    content: ' \25BE';
    font-size: 0.7rem;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary);
    min-width: 200px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    z-index: 200;
    flex-direction: column !important;
    gap: 0 !important;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: flex;
}

.nav-dropdown-menu li {
    width: 100%;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px !important;
    white-space: nowrap;
    font-size: 0.88rem !important;
    border-radius: 0 !important;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.script-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
    transition: background 0.2s;
}
.script-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ===========================
   Main Content
   =========================== */

.site-main {
    flex: 1;
    padding: 40px 0;
}

/* ===========================
   Buttons
   =========================== */

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
}

.btn-secondary {
    background: var(--primary);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: #fff;
}

.btn-danger {
    background: var(--error);
    color: #fff;
}

.btn-danger:hover {
    background: #a51c1c;
    color: #fff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ===========================
   Cards
   =========================== */

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 20px;
}

.card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.card-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===========================
   Grid sistemi
   =========================== */

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===========================
   Hero sekcija (Naslovna)
   =========================== */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    border-radius: var(--radius);
    margin-bottom: 40px;
}

.hero-logo {
    width: 300px;
    height: auto;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.hero-stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===========================
   Sekcije na naslovnoj
   =========================== */

.section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.5rem;
    color: var(--primary);
}

/* ===========================
   Generacije
   =========================== */

.year-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
}

.year-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 4px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    transition: all var(--transition);
}

.year-card:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.tablo-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}

.student-list {
    list-style: none;
}

.student-list li {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-list li:last-child {
    border-bottom: none;
}

.student-number {
    color: var(--text-light);
    font-size: 0.85rem;
    min-width: 30px;
}

/* ===========================
   Profesori
   =========================== */

.professor-card .card-img {
    aspect-ratio: 1;
    object-fit: cover;
}

.professor-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* ===========================
   Forme
   =========================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: border-color var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    max-width: 500px;
    margin: 0 auto;
}

.form-card h2 {
    margin-bottom: 24px;
    color: var(--primary);
    text-align: center;
}

/* ===========================
   Alerts
   =========================== */

.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success {
    background: #e8f5e9;
    color: var(--success);
    border: 1px solid #c8e6c9;
}

.alert-error {
    background: #fce4ec;
    color: var(--error);
    border: 1px solid #f8bbd0;
}

/* ===========================
   Pretraga
   =========================== */

.search-filters {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.search-filters .form-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: end;
}

/* ===========================
   Sjećanja
   =========================== */

.memory-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border-left: 4px solid var(--accent);
}

.memory-card h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

.memory-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.memory-text {
    line-height: 1.7;
}

/* Memory detail page */
.memory-detail-header {
    margin-bottom: 24px;
}

.memory-detail-header h1 {
    color: var(--primary);
    margin-bottom: 8px;
}

.memory-detail-text {
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 30px;
}

/* Share buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    transition: all var(--transition);
    text-decoration: none;
}

.share-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.share-fb {
    border-color: #1877f2;
    color: #1877f2;
}

.share-fb:hover {
    background: #1877f2;
    color: #fff;
}

/* Masonry gallery (show page) */
.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 8px;
    gap: 10px;
}

.masonry-item {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    grid-row: span 25;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.masonry-item:hover img {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .masonry-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .masonry-gallery { grid-template-columns: 1fr; }
}

/* Homepage memories grid */
.memories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.memory-thumb-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.memory-thumb-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--text);
}

.memory-thumb-img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.memory-thumb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memory-thumb-placeholder {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.memory-thumb-placeholder span {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
}

.memory-thumb-body {
    padding: 14px;
    flex: 1;
}

.memory-thumb-body h4 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.memory-thumb-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .memories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .memories-grid { grid-template-columns: 1fr; }
}

/* Memories list page grid */
.memories-list-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.memories-list-grid .memory-thumb-img {
    position: relative;
}

.memory-thumb-count {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
}

@media (max-width: 1024px) {
    .memories-list-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 480px) {
    .memories-list-grid { grid-template-columns: 1fr; }
}

.memory-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.memory-gallery-item {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.memory-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.memory-gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.gallery-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.lightbox-overlay.active {
    opacity: 1;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    padding: 8px;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 16px;
    z-index: 10000;
    user-select: none;
}

.lightbox-nav:hover {
    color: var(--accent);
}

.lightbox-prev {
    left: 8px;
}

.lightbox-next {
    right: 8px;
}

.lightbox-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
}

/* ===========================
   Profil
   =========================== */

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 30px;
}

.profile-header h1 {
    color: var(--primary);
    margin: 0;
}

.profile-avatar {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent);
    margin-bottom: 8px;
}

.profile-avatar-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--primary-light);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===========================
   Admin Panel
   =========================== */

.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
}

.admin-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: var(--primary);
    color: #fff;
}

.admin-content {
    min-width: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Admin image grid (edit sjecanje) */
.admin-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.admin-image-item {
    position: relative;
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    border: 3px solid transparent;
    transition: border-color 0.2s;
}

.admin-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-image-item .delete-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(220, 53, 69, 0.85);
    color: #fff;
    text-align: center;
    font-size: 0.75rem;
    padding: 4px;
    transform: translateY(100%);
    transition: transform 0.2s;
}

.admin-image-item input[type="checkbox"] {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    z-index: 2;
}

.admin-image-item:has(input:checked) {
    border-color: var(--error);
    opacity: 0.6;
}

.admin-image-item:has(input:checked) .delete-badge {
    transform: translateY(0);
}

/* ===========================
   Tabele (Admin)
   =========================== */

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

thead {
    background: var(--primary);
    color: #fff;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.9rem;
}

tbody tr {
    border-bottom: 1px solid var(--border);
}

tbody tr:hover {
    background: #f5f4f0;
}

.actions {
    display: flex;
    gap: 8px;
}

/* ===========================
   Paginacija
   =========================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    border: 2px solid var(--border);
    color: var(--text);
    transition: all var(--transition);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===========================
   Error Page
   =========================== */

.error-page {
    text-align: center;
    padding: 80px 0;
}

.error-page h1 {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.error-page p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ===========================
   Breadcrumbs
   =========================== */

.breadcrumbs {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs span {
    color: var(--text);
    font-weight: 600;
}

/* ===========================
   Footer
   =========================== */

.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 30px 0;
    margin-top: 40px;
    font-size: 0.9rem;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-left p,
.footer-right p {
    margin: 0;
    line-height: 1.6;
}

.footer-right {
    text-align: right;
}

.footer-right strong {
    color: var(--accent);
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
}

.footer-link:hover {
    color: var(--accent);
}

.footer-sub {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===========================
   Istaknute ličnosti
   =========================== */
.notable-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.notable-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    text-align: center;
    padding: 24px 16px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.notable-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.notable-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
}

.notable-placeholder {
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
}

.notable-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.notable-excerpt {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Notable detail */
.notable-detail {
    max-width: 800px;
}

.notable-detail-header {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
}

.notable-detail-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.notable-detail-header h1 {
    margin-bottom: 0;
}

.notable-bio {
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text);
}

/* Directors */
.directors-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.director-card {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    text-decoration: none;
    color: var(--text);
    transition: transform var(--transition), box-shadow var(--transition);
}

.director-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.director-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.director-info h3 {
    margin-bottom: 2px;
}

.director-terms {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.director-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 12px 14px;
    }

    .nav-toggle {
        display: block;
    }

    /* Dropdown na mobilnom — inline, samo klik */
    .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: flex;
        position: static;
        box-shadow: none;
        padding: 0 0 0 16px;
    }

    .notable-grid { grid-template-columns: repeat(2, 1fr); }
    .notable-detail-header { flex-direction: column; text-align: center; }
    .notable-detail-img { width: 140px; height: 140px; }
    .director-card { flex-direction: column; text-align: center; }

    .hero h1 { font-size: 1.8rem; }
    .hero-stats { gap: 30px; }
    .hero-stat-number { font-size: 1.8rem; }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .search-filters .form-row {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .profile-avatar,
    .profile-avatar-placeholder {
        width: 200px;
        height: 200px;
    }

    .profile-avatar-placeholder {
        font-size: 3.5rem;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .year-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .footer-columns {
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero { padding: 50px 20px; }
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    .stats-grid { grid-template-columns: 1fr; }
    .notable-grid { grid-template-columns: 1fr; }
    .year-grid { grid-template-columns: repeat(3, 1fr); }
}
