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

:root {
    --red: #D20000;
    --purple-dark: #7e22ce;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --blue: #3b82f6;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

:target {
    scroll-margin-top: 90px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: white;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}

main {
    flex: 1;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-small {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-admin {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.header-logo {
    max-width: 120px;
    display: block;
    height: auto;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    transition: color 0.2s;
}


.btn-login {
    padding: 0.5rem 1rem;
    background: #D20000;
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
}

.btn-login:hover {
    background: #f10000;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;

    padding: 15px;
    margin: -15px;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 1001;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    display: block;
    position: relative;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    position: absolute;
    left: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.mobile-menu {
    display: none;
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    background: white;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
}

.mobile-menu-btn.active .hamburger {
    background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

.btn-login-mobile {
    display: block;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #D20000;
    color: white;
    text-align: center;
    border-radius: 0.5rem;
}

.nav-link {
    color: var(--gray-900)
}

.dropdown {
    position: relative;
    display: inline-block;
    color: var(--gray-900)
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 225px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
    z-index: 1100;
    padding: 0.5rem 0;
}

.dropdown-content a {
    color: var(--gray-700);
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
}

.dropdown-content a:hover {
    background-color: var(--gray-50);
    color: #D20000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-trigger i {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg);
}

/* Hero Section */
.hero {
    padding-top: 64px;
    padding-bottom: 8rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff5ed 0%, #faf5ff 50%, #eff6ff 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.blob-1 {
    width: 288px;
    height: 288px;
    background: var(--red);
    top: 5rem;
    left: 5rem;
}

.blob-2 {
    width: 384px;
    height: 384px;
    background: var(--orange);
    bottom: 5rem;
    right: 5rem;
}

.blob-3 {
    width: 320px;
    height: 320px;
    background: var(--blue);
    top: 50%;
    left: 50%;
}

.hero-content {
    text-align: center;
    padding: 5rem 1rem;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(to right, var(--red), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 48rem;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gray-900);
    color: white;
}

.btn-primary:hover {
    background: var(--gray-800);
}

.btn-secondary {
    background: transparent;
    color: var(--gray-900);
    border: 2px solid var(--gray-900);
}

.btn-secondary:hover {
    background: var(--gray-900);
    color: white;
}

.btn-gradient {
    background: linear-gradient(to right, var(--red), var(--orange));
    color: white;
    width: 100%;
}

.btn-gradient:hover {
    background: linear-gradient(to right, var(--purple-dark), var(--orange-dark));
}

/* Subject Cards */
.subjects-section {
    position: relative;
    margin-top: -8rem;
    z-index: 20;
    padding: 0 0 5rem 0;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.subject-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.subject-image {
    height: 12rem;
    overflow: hidden;
    position: relative;
}

.subject-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.subject-card:hover .subject-image img {
    transform: scale(1.1);
}

.subject-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.subject-content {
    padding: 1.5rem;
}

.subject-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.subject-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-main {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.section-gray {
    background: var(--gray-50);
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.section-subtitle {
    color: var(--gray-600);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.all-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.news-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card-image {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 4/3;
    margin-bottom: 1rem;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.news-card:hover .news-card-title {
    color: var(--red);
}

.news-card-excerpt {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--red);
    font-weight: 500;
    transition: gap 0.2s;
}

.news-card:hover .news-card-link {
    gap: 0.75rem;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-100);
    transition: box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.event-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.event-card-content {
    display: flex;
    gap: 1.5rem;
}

.event-date-badge {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.event-date-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-date-month {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.event-description {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.footer-link {
    color: #e11d48;
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Responsivita */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Detail Pages */
.detail-hero {
    margin-top: 64px;
    height: 384px;
    position: relative;
    overflow: hidden;
}

.detail-content {
    max-width: 900px;
    margin: -8rem auto 4rem;
    position: relative;
    z-index: 10;
}

.detail-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    padding: 3rem;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.detail-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.detail-excerpt {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.article-content {
    color: var(--gray-700);
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content strong {
    font-weight: 600;
    color: var(--gray-900);
}

.article-content a {
    color: var(--red);
    text-decoration: underline;
}

.article-content blockquote {
    border-left: 4px solid var(--red);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray-600);
}

.article-content cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    font-style: normal;
}

.detail-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: color 0.2s;
}

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

.back-button {
    margin-top: 2rem;
    text-align: center;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--gray-900);
}

.event-detail-content {
    padding-bottom: 4rem;
}

/* Event Detail */
.event-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: -5rem;
    position: relative;
    z-index: 10;
}

.event-main .detail-card {
    margin-bottom: 2rem;
}

.sidebar-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    position: sticky;
    top: 6rem;
}

.sidebar-info {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.sidebar-value {
    font-weight: 600;
    color: var(--gray-900);
}

.sidebar-price {
    font-size: 1.5rem;
}

.capacity-info {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.capacity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.capacity-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.capacity-fill {
    height: 100%;
    background: linear-gradient(to right, var(--red), var(--orange));
    transition: width 0.3s;
}

.capacity-text {
    font-size: 0.875rem;
}

.btn-register {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(to right, var(--red), var(--orange));
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-register:hover:not(:disabled) {
    opacity: 0.9;
}

.btn-register:disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
}

.register-note {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: center;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff5ed 0%, #faf5ff 50%, #eff6ff 100%);
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.login-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.login-container {
    width: 100%;
    max-width: 448px;
    position: relative;
    z-index: 10;
}

.login-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    padding: 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.login-header h1 {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--gray-600);
}

.badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(147, 51, 234, 0.1);
    color: var(--red);
    border-radius: 999px;
    font-size: 0.875rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.input-with-icon input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.login-footer {
    text-align: center;
    margin-top: 1rem;
}

.demo-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Admin Panel */
.admin-panel {
    min-height: 100vh;
    background: var(--gray-50);
}

.admin-header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-view-web {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
}

.btn-view-web:hover {
    color: var(--gray-900);
}

.admin-tabs {
    display: flex;
    gap: 1.5rem;
    padding: 0 1.5rem;
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
}

.admin-tab:hover {
    color: var(--gray-700);
}

.admin-tab.active {
    color: var(--red);
    border-bottom-color: var(--red);
}

.admin-main {
    padding: 1.5rem 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.tab-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.tab-header p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-item {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    transition: box-shadow 0.2s;
}

.admin-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.item-content {
    display: flex;
    gap: 1.5rem;
}

.item-image {
    width: 128px;
    height: 128px;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
}

.item-info {
    flex: 1;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.item-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.item-date {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    border: none;
    background: none;
    color: var(--gray-600);
    cursor: pointer;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: var(--red);
}

.btn-icon.delete:hover {
    color: #ef4444;
}

.item-excerpt {
    color: var(--gray-600);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    background: white;
    border-radius: 1rem 1rem 0 0;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    border: none;
    background: none;
    color: var(--gray-400);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--gray-600);
}

.modal-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.modal-form textarea {
    resize: vertical;
}

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

.modal-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
}

.modal-actions .btn {
    flex: 1;
}

/* Placeholder pro aktuality bez obrázku */
.news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e60000 0%, #990000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-placeholder i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Responsive */
@media (max-width: 768px) {
    .subtitle {
        display: none;
    }

    .news-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }

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

    .event-detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-card {
        padding: 2rem 1.5rem;
    }

    .tab-header {
        flex-direction: column;
        gap: 1rem;
    }

    .item-content {
        flex-direction: column;
    }

    .item-image {
        width: 100%;
        height: 200px;
    }

    .detail-content {
        margin-top: -4rem;
        padding: 0 1rem;
    }

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

@media (min-width: 640px) {
    .subtitle {
        display: inline;
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* Responsive adjustments for subject cards */
@media (max-width: 640px) {
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .subjects-section {
        margin-top: -8rem;
        padding-bottom: 0;
    }

    .all-news-grid {
        grid-template-columns: repeat(2, 1fr);

        .news-card-title {
            font-size: 1rem;
        }

        .news-card-excerpt {
            display: none;
        }
    }

    .tuition-card {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .admission-content {
        padding-left: 0;
        padding-right: 0;
    }

    .tuition-includes {
        margin-left: 0;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1050px) {
    .nav-links {
        display: none;
    }
}

@media (max-width: 1050px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: white;
}

.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.about-content {
    padding-right: 2rem;
}

.about-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.about-text {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.about-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-purple {
    background: var(--red);
    color: white;
}

.btn-purple:hover {
    background: var(--purple-dark);
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.about-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.badge-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.badge-text {
    color: var(--gray-600);
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content {
        padding-right: 0;
    }

    .about-buttons {
        flex-direction: column;
    }

    .about-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--red), var(--purple-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.contact-info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.contact-info-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-departments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.department-card {
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid #D20000;
}

.department-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.department-card h3 i {
    color: #D20000;
}

.department-card p {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Teachers Page Styles */
.teachers-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.teacher-department {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.department-title {
    background: white;
    color: black;
    padding: 1.5rem 2rem;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.teachers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 2rem;
}

.teacher-card {
    background: var(--gray-50);
    padding: 1.25rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.teacher-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.teacher-email {
    color: var(--gray-600);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.teacher-email i {
    color: #D20000;
    font-size: 0.85rem;
}

/* Ensembles Page Styles */
.ensembles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.ensemble-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ensemble-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.ensemble-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.ensemble-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.ensemble-description {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.ensemble-meta {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.ensemble-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.ensemble-meta i {
    color: var(--red);
}

.info-box {
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--red);
}

.info-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-box h3 i {
    color: var(--red);
}

.info-box p {
    color: var(--gray-700);
    line-height: 1.7;
}

.info-box ul {
    list-style-position: inside;
}

.info-box ul li {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.info-box a {
    color: var(--red);
    text-decoration: underline;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--red);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border: 3px solid var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: var(--red);
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content ul li {
    padding: 0.5rem 0;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.timeline-content ul li:last-child {
    border-bottom: none;
}

/* Schedule Styles */
.schedule-section {
    margin-bottom: 3rem;
}

.schedule-heading {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.schedule-heading i {
    color: var(--red);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.schedule-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--red);
    transition: all 0.3s ease;
}

.schedule-day {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.schedule-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.schedule-time {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.schedule-info {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.schedule-teacher {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.schedule-room {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* Admission Page Styles */
.admission-intro {
    margin-bottom: 3rem;
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.admission-departments {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

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

.admission-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.admission-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--red), var(--purple-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin: 2rem auto 1rem;
}

.admission-card h3 {
    text-align: center;
    font-size: 1.4rem;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    padding: 0 2rem;
}

.admission-content {
    padding: 0 2rem 2rem;
}

.admission-content h4 {
    font-size: 1.1rem;
    color: var(--red);
    margin-bottom: 0.75rem;
    margin-top: 1rem;
}

.admission-content p {
    color: var(--gray-600);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.admission-content ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.admission-content ul li {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.admission-note {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 0.5rem;
    font-style: italic;
    color: var(--gray-600);
}

.tuition-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

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

.tuition-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.tuition-card.featured {
    border: 2px solid var(--red);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--red);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.tuition-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.tuition-header i {
    font-size: 2.5rem;
    color: var(--red);
    margin-bottom: 1rem;
}

.tuition-header h3 {
    font-size: 1.25rem;
    color: var(--gray-900);
}

.tuition-price {
    text-align: center;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--red);
}

.price-currency {
    font-size: 1.5rem;
    color: var(--gray-600);
    margin-left: 0.25rem;
}

.tuition-period {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.tuition-includes {
    list-style: none;
    padding: 0;
}

.tuition-includes li {
    padding: 0.75rem 0;
    color: var(--gray-700);
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tuition-includes li i {
    color: var(--red);
}

.additional-fees {
    background: var(--gray-50);
    padding: 3rem 2rem;
    border-radius: 1rem;
}

.fees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.fee-item {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fee-name {
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fee-name i {
    color: var(--red);
}

.fee-price {
    font-weight: 700;
    color: var(--red);
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline {
        padding-left: 2rem;
    }

    .timeline-marker {
        left: -1.75rem;
        width: 2rem;
        height: 2rem;
        font-size: 0.85rem;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .tuition-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .ensembles-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================ */

/* --- New styles for departments without icons --- */

.dept-section {
    padding: 5rem 0;
    background-color: #fdfdfd;
}

.dept-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dept-header {
    margin-bottom: 4rem;
}

.dept-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.dept-subtitle {
    font-size: 1.15rem;
    color: #666;
    font-style: italic;
}

.section-subheading {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: #111;
    font-weight: 700;
}

/* Grid for study specializations */
.specialization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 4rem;
}

.specialization-card {
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 4px solid #D20000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.specialization-card strong {
    color: #111;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.specialization-card span {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Additional subjects */
.subjects-box {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
    margin-bottom: 4rem;
}

.subjects-box h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: #111;
    font-weight: 700;
    text-align: center;
}

.subjects-flex {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    text-align: center;
}

.subject-tag {
    background: #fff;
    border: 1px solid #D20000;
    color: #D20000;
    padding: 0.5rem 2rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

.subjects-box .note {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    font-style: italic;
    border-top: 1px solid #f5f5f5;
    padding-top: 1rem;
    text-align: center;
}

/* Teachers grid */
.teachers-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #eee;
    overflow: hidden;
}

.teachers-card h3 {
    background: white;
    color: black;
    margin: 0;
    padding: 1.2rem 2rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.teachers-grid {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0.75rem 1.5rem;
}

.teacher-row {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.95rem;
    color: #333;
}

.teacher-row strong {
    font-weight: 600;
}

.teacher-branch {
    color: #888;
    font-size: 0.85rem;
}

/* Bottom CTA buttons */
.cta-action-buttons {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-action-buttons .btn {
    padding: 0.8rem 2.2rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}


/* ================================================ */
/* --- Redakční rozvržení pro detailní stránky ---- */
/* ================================================ */

body.detail-page {
    background: linear-gradient(135deg, #fff5ed 0%, #faf5ff 50%, #eff6ff 100%);
    min-height: 100vh;
}

.detail-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 8rem 1.5rem 5rem;
}

.back-link-wrapper {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--red);
}

.detail-header {
    margin-bottom: 2rem;
}

.detail-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    margin: 0.75rem 0 1.25rem;
}

.detail-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-meta-item i {
    color: var(--red);
}

.detail-cover-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.detail-body {
    min-height: 250px;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-800);
}

.detail-body p {
    margin-bottom: 1.5rem;
}

.detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2rem 0;
}

.detail-body h2,
.detail-body h3 {
    color: var(--gray-900);
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.detail-body ul,
.detail-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.detail-body li {
    margin-bottom: 0.5rem;
}

.events-history-header {
    margin: 4rem 0 2rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200, #e2e8f0);
}

.events-history-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-700, #334155);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.event-card.event-completed {
    opacity: 0.8;
    background-color: #f8fafc;
}

.event-card.event-completed:hover {
    opacity: 1;
}

.admin-separator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0 1.5rem 0;
}

.admin-separator hr {
    flex: 1;
    border: none;
    border-top: 1px solid var(--gray-300, #cbd5e1);
}

.admin-separator span {
    font-weight: 600;
    color: #64748b;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.admin-item-completed {
    opacity: 0.8;
    background-color: #f8fafc;
    border-left: 4px solid #94a3b8;
}

.status-tag {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 500;
}

.tag-active {
    background-color: #dcfce7;
    color: #15803d;
}

.tag-completed {
    background-color: #e2e8f0;
    color: #475569;
}

/* --- Pop-up vylepšené stavové prvky --- */
.admin-item.is-active-popup {
    border-left: 4px solid #16a34a;
    background-color: #ffffff;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #16a34a;
}

input:focus+.slider {
    box-shadow: 0 0 1px #16a34a;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.all-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.all-news-grid .card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.all-news-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.all-news-grid .card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.all-news-grid .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.all-news-grid .card:hover .card-image img {
    transform: scale(1.05);
}

.all-news-grid .card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.all-news-grid .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.all-news-grid .card-text {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.all-news-grid .btn-more {
    margin-top: auto;
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #e11d48;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.all-news-grid .btn-more:hover {
    background-color: #be123c;
}

/* Generální styly patičky */
.main-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding-top: 4rem;
    padding-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 45px;
    width: auto;
}

.footer-logo span {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-about {
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* Sociální sítě */
.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    background-color: #1e293b;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
    background-color: #e11d48;
    transform: translateY(-3px);
}

/* Nadpisy sloupců */
.footer-heading {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background-color: #e11d48;
}

/* Odkazy v patičce */
.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a i {
    font-size: 0.8rem;
    color: #e11d48;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

/* Kontaktní údaje */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.footer-contact i {
    color: #e11d48;
    margin-top: 0.25rem;
}

.footer-contact a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #ffffff;
}

/* iZUŠ Tlačítko */
.footer-izus-text {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.btn-izus-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #e11d48;
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-izus-footer:hover {
    background-color: #be123c;
}

/* Spodní lišta s autorskými právy */
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

@media (max-width: 992px) {

    /* Základní nastavení šipky pro plynulou animaci */
    .mobile-menu .dropdown-trigger i {
        transition: transform 0.3s ease;
        display: inline-block;
        margin-left: 0.5rem;
    }

    /* Plynulé otočení šipky nahoru, když je dropdown otevřený (.open) */
    .mobile-menu .dropdown.open>.dropdown-trigger i {
        transform: rotate(180deg);
    }

    /* Skrytí obsahu ve výchozím stavu */
    .mobile-menu .dropdown-content {
        display: none !important;
        padding-left: 1.25rem;
        margin-top: 0.5rem;
        border-left: 2px solid #e11d48;
        /* Jemná vizuální vodící linka vlevo */
    }

    /* Zobrazení obsahu při otevření */
    .mobile-menu .dropdown.open>.dropdown-content {
        display: flex !important;
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Vylepšení vzhledu odkazů uvnitř rozbaleného menu */
    .mobile-menu .dropdown-content .nav-link {
        font-size: 0.95rem;
        opacity: 0.9;
        padding: 0.4rem 0;
    }
}

/* Responzivní obal pro obrázek rozvrhu */
.schedule-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    /* Umožní horizontální posun, pokud by text na obrázku byl moc malý */
    margin-top: 1rem;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
}

/* Práce s samotným obrázkem */
.schedule-img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Optimalizace speciálně pro mobilní telefony */
@media (max-width: 768px) {
    .schedule-image-wrapper {
        margin-top: 0.75rem;
    }

    .schedule-img {
        /* Pokud je rozvrh detailní tabulka, minimální šířka zaručí čitelnost */
        min-width: 100%;
        cursor: pointer;
    }
}

/* Kontejner karty informací */
.school-info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.school-info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.school-info-title i {
    color: #e11d48;
}

/* Tabulkové rozvržení (2 sloupce na PC) */
.school-info-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 2rem;
}

/* Řádek tabulky */
.info-row {
    display: flex;
    align-items: baseline;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-label {
    min-width: 170px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.info-label i {
    color: #e11d48;
    width: 16px;
    text-align: center;
}

.info-value {
    font-size: 0.925rem;
    font-weight: 500;
    color: #1e293b;
    word-break: break-word;
}

.info-value a {
    color: #e11d48;
    text-decoration: none;
    font-weight: 600;
}

.info-value a:hover {
    text-decoration: underline;
}

/* Responsivita pro mobily a tablety */
@media (max-width: 992px) {
    .school-info-list {
        grid-template-columns: 1fr;
        /* Na mobilu pouze 1 sloupec */
        gap: 0;
    }
}

@media (max-width: 576px) {
    .school-info-card {
        padding: 1.25rem;
    }

    .info-row {
        flex-direction: column;
        /* Popisek a hodnota pod sebou na malém displeji */
        align-items: flex-start;
        gap: 0.2rem;
        padding: 0.75rem 0;
    }

    .info-label {
        min-width: auto;
        font-size: 0.8rem;
    }

    .info-value {
        font-size: 0.9rem;
        padding-left: 1.5rem;
        /* Odsazení pod ikonku pro lepší čitelnost */
    }
}

/* Kontejner a odsazení sekce partnerů */
.partners-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Skupiny partnerů */
.partners-group {
    margin-bottom: 3.5rem;
}

.partners-group-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    padding-left: 0.85rem;
    border-left: 4px solid #d90429;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.partner-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.partner-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.partner-card p {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

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

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

    .tuition-card {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .admission-content {
        padding-left: 0;
        padding-right: 0;
    }

    .admission-content ul {
        margin-left: 0;
    }
}

.is-loading {
    opacity: 0 !important;
    visibility: hidden !important;
}

main,
footer {
    transition: opacity 0.25s ease-in-out;
}

.login-logo {
    align-items: center;
    max-width: 200px;
}
.event-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 320px);
    padding: 180px 20px 85px 20px;
    box-sizing: border-box;
    width: 100%;
}

.event-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 520px;
    padding: 45px 40px;
    box-sizing: border-box;
    text-align: left;
}

.event-card-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    color: #111827;
    line-height: 1.2;
}

.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 25px;
    color: #4b5563;
}

.event-card-meta .detail-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.event-card-meta .detail-meta-item i {
    width: 18px;
    text-align: center;
    color: #6b7280;
}

.event-card-body {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
}

.event-card-back-wrapper {
    margin-top: 30px;
}

.event-card-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #111827;
    color: #ffffff !important;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.event-card-back-btn:hover {
    background-color: #1f2937;
    color: #ffffff !important;
}
