/* ============================================================
   CESKZATEJA - Artistic/Musical Theme
   ============================================================ */

:root {
    --primary:       #2C1810;
    --secondary:     #8B4513;
    --accent-music:  #C9A84C;
    --accent-art:    #6B4C8A;
    --cream:         #FFF8F0;
    --cream-dark:    #F5EDE0;
    --text-dark:     #1A1A1A;
    --text-light:    #F5F0EB;
    --text-muted:    #6c757d;
}

/* ---- Base ---- */
body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
}

.script-font {
    font-family: 'Dancing Script', cursive;
    font-size: 1.2em;
}

.bg-cream {
    background: var(--cream-dark);
}

a {
    color: var(--secondary);
    transition: color 0.3s;
}
a:hover {
    color: var(--accent-music);
}

/* ---- Navbar ---- */
#main-navbar {
    background: rgba(44, 24, 16, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    transition: padding 0.3s, background 0.3s;
}
#main-navbar.scrolled {
    padding: 0.4rem 0;
    background: rgba(44, 24, 16, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.brand-text {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--accent-music) !important;
    letter-spacing: 1px;
}
.brand-sub {
    font-family: 'Dancing Script', cursive;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

#main-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s;
}
#main-navbar .nav-link:hover,
#main-navbar .nav-link.active {
    color: var(--accent-music) !important;
}
#main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-music);
    transition: width 0.3s, left 0.3s;
}
#main-navbar .nav-link:hover::after {
    width: 80%;
    left: 10%;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}
.navbar-toggler-icon {
    filter: invert(1);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
}

/* Language Switcher */
.lang-switcher {
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    padding: 0.3rem 0.8rem !important;
    font-size: 0.85rem;
}
.lang-switcher:hover {
    border-color: var(--accent-music);
}

/* ---- Hero Section ---- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #2C1810 0%, #1a0f0a 40%, #3d1f2e 70%, #2C1810 100%);
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(107,76,138,0.15) 0%, transparent 50%);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}
.hero-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--accent-music);
    margin-bottom: 0.5rem;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.hero-desc {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    margin: 0 auto 2rem;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Floating music notes */
.hero-notes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.floating-note {
    position: absolute;
    font-size: 2rem;
    color: rgba(201,168,76,0.2);
    animation: floatNote 8s ease-in-out infinite;
}
.note-1 { top: 20%; left: 10%; animation-delay: 0s; font-size: 3rem; }
.note-2 { top: 60%; left: 85%; animation-delay: 2s; font-size: 2.5rem; }
.note-3 { top: 30%; left: 75%; animation-delay: 4s; font-size: 1.8rem; color: rgba(107,76,138,0.2); }
.note-4 { top: 70%; left: 20%; animation-delay: 6s; font-size: 2.2rem; color: rgba(107,76,138,0.2); }

@keyframes floatNote {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-30px) rotate(15deg); opacity: 0.6; }
}

/* ---- Buttons ---- */
.btn-music {
    background: var(--accent-music);
    border-color: var(--accent-music);
    color: #fff;
    font-weight: 600;
}
.btn-music:hover {
    background: #b8972f;
    border-color: #b8972f;
    color: #fff;
}
.btn-art {
    background: var(--accent-art);
    border-color: var(--accent-art);
    color: #fff;
    font-weight: 600;
}
.btn-art:hover {
    background: #5a3d75;
    border-color: #5a3d75;
    color: #fff;
}

/* ---- Section Styles ---- */
.section-padded {
    padding: 5rem 0;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}
.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-music), var(--accent-art));
    margin: 0 auto 1rem;
    border-radius: 2px;
}
.section-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: var(--text-muted);
}

/* ---- Page Header ---- */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1a0f0a 100%);
    padding: 8rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(201,168,76,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(107,76,138,0.1) 0%, transparent 50%);
}
.page-header .page-title {
    color: #fff;
    font-size: 3rem;
    font-weight: 900;
    position: relative;
}
.page-header .page-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    position: relative;
}
.page-header-music {
    background: linear-gradient(135deg, #2C1810 0%, #3d2a10 100%);
}
.page-header-art {
    background: linear-gradient(135deg, #2C1810 0%, #2d1a3d 100%);
}

/* ---- Department Cards (Homepage) ---- */
.dept-card {
    background: #fff;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 4px solid transparent;
}
.dept-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.dept-music { border-bottom-color: var(--accent-music); }
.dept-art { border-bottom-color: var(--accent-art); }

.dept-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.dept-music .dept-icon { color: var(--accent-music); }
.dept-art .dept-icon { color: var(--accent-art); }

.dept-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}
.dept-card p {
    color: var(--text-muted);
    line-height: 1.7;
}
.dept-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    text-decoration: none;
}

/* ---- Department Tags ---- */
.dept-tag {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dept-tag-music {
    background: rgba(201,168,76,0.15);
    color: #8B7025;
}
.dept-tag-art {
    background: rgba(107,76,138,0.15);
    color: #5a3d75;
}

/* ---- Gallery Cards ---- */
.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.gallery-card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}
.gallery-card:hover .gallery-card-img {
    transform: scale(1.05);
}
.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(44,24,16,0.9));
    padding: 2rem 1.2rem 1.2rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}
.gallery-card:hover .gallery-card-overlay {
    transform: translateY(0);
}
.gallery-card-overlay h5 {
    color: #fff;
    margin: 0;
    font-size: 1rem;
}
.gallery-card-overlay p {
    color: var(--accent-music);
    margin: 0;
}

/* Gallery Detail */
.gallery-detail-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* ---- Teacher Cards ---- */
.teacher-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.teacher-photo-wrap {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    overflow: hidden;
    border: 4px solid #e0d5c8;
    transition: border-color 0.3s;
}
.dept-border-music { border-color: var(--accent-music); }
.dept-border-art { border-color: var(--accent-art); }

.teacher-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.teacher-photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--cream-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #c0b0a0;
}
.teacher-name {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}
.teacher-title {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.5rem;
}
.teacher-link {
    display: inline-block;
    margin-top: 0.8rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

/* Teacher Profile */
.teacher-profile {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.teacher-bio {
    line-height: 1.8;
    color: #444;
}

/* ---- Activity Cards ---- */
.activity-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.activity-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.activity-card-placeholder {
    height: 200px;
    background: linear-gradient(135deg, rgba(201,168,76,0.1), rgba(107,76,138,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #c0b0a0;
}
.activity-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.activity-tags {
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}
.activity-card-body h5 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.activity-card-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex: 1;
}

.activity-detail-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Activity Carousel / Slider */
.activity-carousel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.activity-slide-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.activity-carousel .carousel-control-prev,
.activity-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44,24,16,0.6);
    border-radius: 50%;
    margin: 0 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.activity-carousel:hover .carousel-control-prev,
.activity-carousel:hover .carousel-control-next {
    opacity: 1;
}
.activity-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    border: none;
}
.activity-carousel .carousel-indicators button.active {
    background: var(--accent-music);
}

/* Thumbnail strip */
.activity-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}
.activity-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.6;
    transition: opacity 0.3s, border-color 0.3s;
    flex-shrink: 0;
}
.activity-thumb:hover,
.activity-thumb.active {
    opacity: 1;
    border-color: var(--accent-music);
}

.activity-content {
    line-height: 1.8;
    color: #444;
}

.read-more {
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

/* ---- Staff Cards ---- */
.staff-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.staff-photo-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 3px solid var(--cream-dark);
}
.staff-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.staff-photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--cream-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #c0b0a0;
}
.staff-name {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}
.staff-role {
    color: var(--accent-music);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.staff-bio {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.staff-email {
    font-size: 0.85rem;
    text-decoration: none;
}
.staff-read-more {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--accent-music);
    cursor: pointer;
    text-decoration: none;
    margin-top: 0.25rem;
}
.staff-read-more:hover {
    text-decoration: underline;
    color: var(--accent-music);
}

/* ---- Filter Buttons ---- */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Pagination ---- */
.pagination .page-link {
    color: var(--primary);
    border: none;
    border-radius: 8px;
    margin: 0 2px;
    font-weight: 600;
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    color: #fff;
}

/* ---- Lightbox ---- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
}
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}
.lightbox-close:hover {
    color: var(--accent-music);
}
#lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
}
.lightbox-caption {
    color: #fff;
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    margin-top: 1rem;
    text-align: center;
}

/* ---- Footer ---- */
.site-footer {
    position: relative;
}
.footer-top {
    position: relative;
    height: 80px;
    overflow: hidden;
}
.footer-wave {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
    color: var(--primary);
}
.footer-content {
    background: var(--primary);
    padding: 3rem 0 1.5rem;
}
.footer-title {
    font-family: 'Playfair Display', serif;
    color: var(--accent-music);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.footer-tagline {
    font-family: 'Dancing Script', cursive;
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
}
.footer-desc {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    line-height: 1.7;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}
.footer-links a:hover {
    color: var(--accent-music);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
}
.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .page-header .page-title {
        font-size: 2rem;
    }
    .section-padded {
        padding: 3rem 0;
    }
    .gallery-card-img {
        height: 220px;
    }
    .activity-slide-img {
        height: 300px;
    }
    .activity-thumb {
        width: 60px;
        height: 45px;
    }
}
