/* Reset and Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-body: #f4f6f9;
    --card-bg-white: #ffffff;
    --card-bg-dark: #1e293b;
    --card-bg-navy: #0f2d4a;
    --card-bg-green: #0d9488;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --accent-teal: #0d9488;
    --accent-green: #10b981;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    padding-bottom: 40px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.school-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.header-titles {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.school-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
}

.badge-subpage {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    margin-top: 2px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0284c7;
    background: #e0f2fe;
    padding: 6px 14px;
    border-radius: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #0284c7;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Hero Section Sa Slika Škole Kao Pozadina */
.hero-school-bg {
    position: relative;
    padding: 65px 0;
    margin-top: 15px;
    border-radius: var(--border-radius);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%), 
                url('skola.jpg') center/cover no-repeat;
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.hero-school-bg .project-tagline {
    font-size: 0.85rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-school-bg .hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.hero-school-bg .hero-subtitle {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-top: 6px;
}

/* Main Layout Grid */
.main-content {
    margin-top: 30px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 45px;
    height: 4px;
    background: var(--accent-teal);
    border-radius: 2px;
    margin-top: 6px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Base Card Style */
.card {
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-title-group {
    flex-grow: 1;
}

.card-title-group h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.card-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Toggle Arrow Button */
.toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.card.active .toggle-btn {
    transform: rotate(180deg);
}

/* Card Body */
.card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    font-size: 0.95rem;
}

.card.active .card-body {
    max-height: 2000px;
    margin-top: 16px;
    opacity: 1;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.card-white.active .card-body {
    border-top: 1px solid #f1f5f9;
}

/* Inner Text Lists */
.text-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.text-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.text-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: bold;
    font-size: 1.2rem;
}

.card-green .text-list li::before {
    color: #ffffff;
}

.card-navy .text-list li::before {
    color: var(--accent-green);
}

.quote-box {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-green);
    padding: 10px 14px;
    margin-top: 12px;
    font-weight: 700;
    font-style: italic;
    border-radius: 4px;
}

/* Images Styling */
.card-img-container {
    width: 100%;
    margin: 12px 0;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

.card-media-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Card Variations */
.card-white {
    background-color: var(--card-bg-white);
    color: var(--text-primary);
}

.card-white .card-subtitle {
    color: var(--text-secondary);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-teal {
    background-color: #f0fdf4;
    color: var(--accent-teal);
}

.card-dark {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%), 
                url('https://images.unsplash.com/photo-1542282088-72c9c27ed0cd?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
    color: #ffffff;
}

.card-dark .card-subtitle {
    color: #cbd5e1;
}

.card-navy {
    background-color: var(--card-bg-navy);
    color: #ffffff;
}

.card-navy .card-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.card-navy .card-subtitle {
    color: #94a3b8;
}

.card-green {
    background-color: var(--card-bg-green);
    color: #ffffff;
}

.card-green .card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Document Items */
.doc-item {
    margin-bottom: 12px;
}

.doc-link {
    color: var(--accent-teal);
    text-decoration: none;
}

.doc-link:hover {
    text-decoration: underline;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: auto;
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 700px;
    position: relative;
    box-shadow: var(--shadow-md);
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .hero-school-bg .hero-title {
        font-size: 1.8rem;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}