/* ==========================================
   1. OSNOVNI STILOVI I RESET
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ==========================================
   2. GORNJA TRAKA (HEADER / NAVBAR)
   ========================================== */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f2b48;
}

.logo span {
    color: #0056b3;
    font-weight: 400;
}

.logo-icon-wrapper img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: #444444;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #0f2b48;
    background-color: #eef4fc;
}

.btn-primary {
    background-color: #0f2b48;
    color: #ffffff !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
}

.btn-primary:hover {
    background-color: #0056b3 !important;
}

/* ==========================================
   3. HERO SEKCIJA I ZAGLAVLJA STRANICA
   ========================================== */
.hero {
    background: linear-gradient(135deg, #0f2b48 0%, #1a497b 100%);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

/* Hero sa pozadinskom slikom i prelivom */
.hero-with-bg {
    position: relative;
    background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 43, 72, 0.85);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

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

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-large {
    display: inline-block;
    background-color: #28a745;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-large:hover {
    background-color: #218838;
}

.btn-outline {
    display: inline-block;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #0f2b48;
}

/* Zaglavlje pojedinačnih stranica */
.page-header {
    background: #0f2b48;
    color: #ffffff;
    padding: 50px 0;
    text-align: center;
}

.page-header-with-bg {
    position: relative;
    background: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: #ffffff;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 43, 72, 0.85);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* ==========================================
   4. STATISTIKA I PREDNOSTI (BENEFITS)
   ========================================== */
.stats-section {
    background-color: #ffffff;
    padding: 35px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2.2rem;
    color: #0056b3;
    margin-bottom: 5px;
}

.stat-card p {
    color: #666666;
    font-weight: 600;
    font-size: 0.95rem;
}

.benefits-section {
    background-color: #eef4fc;
    padding: 60px 0;
    margin: 40px 0;
}

.benefits-section h2 {
    text-align: center;
    color: #0f2b48;
    margin-bottom: 35px;
    font-size: 2rem;
}

.benefit-card {
    text-align: center;
    border: none;
}

.feature-img-wrapper {
    height: 160px;
}

.feature-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   5. CTA BOX ZA VESTI
   ========================================== */
.news-cta {
    margin: 40px auto;
}

.cta-box {
    background: linear-gradient(135deg, #0f2b48 0%, #1a497b 100%);
    color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.cta-with-bg {
    position: relative;
    background: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 43, 72, 0.92) 0%, rgba(26, 73, 123, 0.88) 100%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-box h2 {
    margin-bottom: 10px;
}

.cta-box p {
    margin-bottom: 20px;
    opacity: 0.9;
}

/* ==========================================
   6. KARTICE I GRID RASPORED (ODSECI / VESTI)
   ========================================== */
.features,
.news-section {
    padding: 50px 0;
}

.features h2 {
    text-align: center;
    color: #0f2b48;
    margin-bottom: 35px;
    font-size: 2rem;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

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

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

.card-image {
    position: relative;
    height: 190px;
    overflow: hidden;
}

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

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    color: #0f2b48;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.card-body p {
    color: #555555;
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.card-link {
    color: #0056b3;
    font-weight: 600;
    align-self: flex-start;
}

.card-link:hover {
    color: #0f2b48;
}

/* ==========================================
   7. FILTERI, ZNAČKE (BADGES) I ARHIVA
   ========================================== */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid #0f2b48;
    background: transparent;
    color: #0f2b48;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #0f2b48;
    color: #ffffff;
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.badge-nis { background-color: #0056b3; }
.badge-pirot { background-color: #28a745; }
.badge-vranje { background-color: #dc3545; }
.badge-akademija { background-color: #6f42c1; }

.news-date {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 8px;
    display: block;
}

.divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 40px 0;
}

.section-subtitle {
    color: #0f2b48;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.archive-header h2 {
    color: #0f2b48;
    font-size: 1.6rem;
}

.archive-filters select {
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    color: #333333;
    outline: none;
    background-color: #ffffff;
    cursor: pointer;
}

.no-news-message {
    width: 100%;
    padding: 30px;
    background-color: #f8f9fa;
    border: 1px dashed #d0d7de;
    border-radius: 8px;
    text-align: center;
    color: #6c757d;
}

/* ==========================================
   8. STRANICA "O NAMA"
   ========================================== */
.about-section {
    padding: 50px 0;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.about-intro h2 {
    color: #0f2b48;
    font-size: 2rem;
    margin-bottom: 15px;
}

.about-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444444;
}

.about-cards {
    margin-bottom: 50px;
}

.about-card {
    text-align: center;
    padding: 10px;
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.about-campuses {
    background-color: #ffffff;
    padding: 40px 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.about-campuses h2 {
    color: #0f2b48;
    margin-bottom: 15px;
}

.about-campuses p {
    max-width: 750px;
    margin: 0 auto 30px;
    color: #555555;
}

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

.campus-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-top: 4px solid #0f2b48;
}

.campus-box h3 {
    color: #0f2b48;
    margin-bottom: 10px;
}

.campus-box p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==========================================
   9. PAGINACIJA I FOOTER
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0 20px;
}

.page-link {
    padding: 8px 14px;
    border: 1px solid #dddddd;
    color: #0f2b48;
    border-radius: 4px;
    font-weight: 600;
}

.page-link.active,
.page-link:hover:not(.disabled) {
    background-color: #0f2b48;
    color: #ffffff;
    border-color: #0f2b48;
}

.page-link.disabled {
    color: #cccccc;
    pointer-events: none;
}

.footer {
    background-color: #0f2b48;
    color: #ffffff;
    text-align: center;
    padding: 25px 0;
    margin-top: 60px;
    font-size: 0.9rem;
}

.footer a {
    color: #8bb9fe;
}

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

/* ==========================================
   10. RESPONSIVE DIZAJN (MOBILNI UREĐAJI)
   ========================================== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .archive-header {
        flex-direction: column;
        align-items: flex-start;
    }
}