:root {
    --green: #1DBF73;
    --yellow: #FFC727;
    --orange: #FF6B35;
    --text-dark: #111111;
    --bg-main: #FEFDFB;
    --bg-soft: #F4F5F7;
    --page-width: 1680px;
    --page-gutter: 16px;
    --panel-radius: 24px;
}

html {
    font-size: 80%;
}
p {
    font-size: 1rem !important;
    line-height: 1.6;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: var(--bg-main);
    color: var(--text-dark);
    overflow-x: hidden;
}

.hero,
.modules,
.news,
.news2,
.modules2,
.app-section {
    width: min(calc(100% - (var(--page-gutter) * 2)), var(--page-width));
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--panel-radius);
}


/* HEADER */

.site-header {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 32px), 1400px);
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px 12px 20px;
    min-height: 68px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.72);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.93), rgba(248,252,250,0.86));
    backdrop-filter: blur(16px);
    box-shadow:
        0 18px 42px rgba(17, 29, 24, 0.10),
        0 3px 10px rgba(17, 29, 24, 0.05);
    z-index: 80;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 34px;
    width: auto;
    display: block;
    filter: saturate(1.05) contrast(1.02);
}

.main-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px;
    border-radius: 999px;
    background: rgba(239, 244, 241, 0.88);
    border: 1px solid rgba(203, 216, 208, 0.85);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.main-nav a {
    text-decoration: none;
    color: #33443b;
    font-size: 13px;
    padding: 11px 16px;
    border-radius: 999px;
    border-bottom: none;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.main-nav a:hover {
    color: var(--green);
    background: rgba(255,255,255,0.8);
    transform: translateY(-1px);
}

.main-nav a.active {
    color: #0d7f52;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(20, 44, 33, 0.08);
}

.nav-app-link {
    padding: 11px 18px !important;
    border-radius: 999px;
    color: #ffffff !important;
    font-weight: 600;
    background: linear-gradient(135deg, var(--orange), #ff8a4b);
    box-shadow: 0 12px 22px rgba(255, 107, 53, 0.24);
}

.nav-app-link:hover {
    background: #ffffff;
    color: #0d7f52 !important;
    box-shadow: 0 10px 22px rgba(20, 44, 33, 0.08);
}

.main-nav a.nav-app-link.active {
    color: #0d7f52 !important;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(20, 44, 33, 0.08);
}



/* HERO */

main {
    padding-top: 92px;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 48px 48px 36px;
    gap: 40px;
    background-color: #f2eff1;
    margin-top: 12px;
}

.hero-content {
    max-width: 55%;
}

.hero-illustration {
    flex: 0 1 400px;
    display: flex;
    justify-content: center;
}

.hero-app {
    justify-content: space-between;
}

.hero-app .hero-content {
    max-width: 52%;
    text-align: left;
}

.hero-app .hero-cta {
    justify-content: flex-start;
}

.hero-osnove {
    align-items: stretch;
}

.hero-tagline {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--green);
    font-weight: 600;
}

.hero-content h1 {
    font-size: 2.15rem;
    line-height: 1.2;
    margin: 10px 0 12px;
    font-weight: 600;
    color: #111111;
}

.hero-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.metric-card {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(26, 51, 39, 0.08);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(17, 29, 24, 0.05);
}

.metric-value {
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 700;
    color: #0d7f52;
    margin-bottom: 8px;
}

.hero-cta {
    margin-top: 18px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-cta .btn {
    text-decoration: none !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--green);
    color: #fff !important;
}

.btn-primary:hover {
    background: #17a964;
}

.btn-outline {
    border: 1px solid #ddd;
    color: #444 !important;
    background: #fff;
}

.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.hero-illustration img {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    opacity: 0.96;
    box-shadow: 0 14px 30px rgba(18, 28, 23, 0.08);
}

/* Modules*/

.modules {
    padding: 28px 48px 28px;
    background: var(--bg-soft);
    margin-top: 12px;
}

.modules h2 {
    font-size: 1.7rem;
    text-align: center;
    font-weight: 600;
}

.section-intro {
    max-width: 1400px;
    margin: 8px auto 20px;
    text-align: center;
    color: #555;
    font-size: 0.98rem;
    white-space: normal;
    overflow-wrap: anywhere;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* Kartica ima fiksnu visinu + fleks raspored */
.module-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}


.module-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

/* Tekst automatski ispunjava prostor */
.module-card h3 {
    margin-top: 12px;
    font-size: 1.15rem;
}

.module-card p {
    flex-grow: 1;
    color: #555;
    font-size: 0.95rem;
}

/* Link uvijek dolje */
.module-link {
    margin-top: 14px;
    display: inline-block;
    color: var(--orange);
    font-weight: 500;
    text-decoration: none;
}

.module-link:hover {
    border-color: var(--green);
    color: var(--green);
}

/* NEWS */

.news {
    padding: 28px 48px 34px;
    background: #f2eff1;
    margin-top: 12px;
}

.news-header {
    max-width: 1120px;
    margin: 0 auto 18px;
    text-align: center;
}

.news-header h2 {
    font-size: 1.55rem;
    margin: 0;
    font-weight: 600;
}

.news-header p {
    margin-top: 8px;
    color: #555;
}

.news-slider-wrapper {
    position: relative;
    margin-top: 16px;
}

.news-slider {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    overflow: visible;
    padding-bottom: 0;
}




/* NEWS kartice – FIKSNE DIMENZIJE */
.news-card {
    width: 100%;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    overflow: hidden;
    height: 100%;
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-body {
    padding: 12px 14px 14px;
}

.news-body h3 {
    font-size: 0.92rem;
    margin-bottom: 6px;
}

.news-body p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
}

.news-tag {
    display: inline-block;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--green);
    color: #ffffff;
}

@media (max-width: 1100px) {
    .news-slider {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .news {
        padding: 32px 20px 40px;
    }

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

    .section-intro {
        white-space: normal;
    }
}

/* APP SECTION */

.app-section {
    padding: 12px 0;
    background: var(--bg-soft);
    margin-top: 12px;
}

.app-inner {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 22px 24px;
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.app-text {
    flex: 1 1 520px;
}

.app-section-text-only .app-inner {
    justify-content: space-between;
}

.app-section-text-only .app-text {
    flex: 1 1 520px;
    max-width: 760px;
}

.app-text h2 {
    font-size: 1.55rem;
    margin-bottom: 10px;
}

.app-text p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 12px;
}

.app-image {
    flex: 0 1 360px;
}

.app-image img {
    max-width: 340px;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(18, 28, 23, 0.08);
}



/* FOOTER */

.site-footer {
    background:
        radial-gradient(circle at top left, rgba(29, 191, 115, 0.08), transparent 32%),
        radial-gradient(circle at top right, rgba(255, 107, 53, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.96) 0%, rgba(246, 242, 235, 0.98) 100%);
    color: #2b3833;
    padding: 20px 28px 14px;
    margin-top: 12px;
    width: min(calc(100% - (var(--page-gutter) * 2)), var(--page-width));
    margin-left: auto;
    margin-right: auto;
    border-radius: 22px;
    border: 1px solid rgba(53, 74, 64, 0.07);
    box-shadow: 0 8px 18px rgba(48, 58, 53, 0.04);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green) 0%, #72d1a5 22%, #f09bc5 52%, #f5c86b 78%, var(--orange) 100%);
    opacity: 0.95;
}

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

.footer-left {
    flex: 0 1 420px;
    max-width: 420px;
}

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 10px;
    display: block;
}

.footer-left p {
    font-size: 0.9rem;
    color: #71807a;
    max-width: 360px;
    line-height: 1.55;
    margin-bottom: 0;
}

.footer-links {
    flex: 1 1 520px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-links > div {
    width: auto;
}

.footer-links h4 {
    display: none;
}

.footer-links a {
    display: inline-block;
    width: auto;
    font-size: 1rem;
    color: #31413b;
    text-decoration: none;
    margin: 0 0 0 22px;
    padding: 2px 0 4px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
    color: #0d7f52;
    border-color: rgba(13, 127, 82, 0.35);
    opacity: 1;
}

.footer-links a:nth-child(2) {
    color: #0d7f52;
}

.footer-links a:nth-child(3) {
    color: #d67f3f;
}

.footer-links a:nth-child(4) {
    color: #b86aa0;
}

.footer-links a:nth-child(5),
.footer-links a:nth-child(6) {
    color: #31413b;
}

.footer-links p {
    font-size: 0.94rem;
    color: #556760;
    line-height: 1.6;
}

.footer-bottom {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(53, 74, 64, 0.08);
    font-size: 0.8rem;
    color: #74857e;
    text-align: center;
}

.status-page {
    width: min(calc(100% - (var(--page-gutter) * 2)), var(--page-width));
    min-height: auto;
    display: block;
    margin: 12px auto 0;
    padding: 0;
    background: var(--bg-soft);
    border-radius: var(--panel-radius);
}

.status-card {
    max-width: 760px;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.06);
    padding: 28px 24px;
    text-align: center;
}

.status-card img {
    width: min(320px, 100%);
    height: auto;
    margin-bottom: 14px;
}

.status-card h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.status-card p {
    color: #555;
    margin-bottom: 12px;
}



/* RESPONSIVE */

@media (max-width: 992px) {

    .hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 70px 24px 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-metrics,
    .overview-cards,
    .comparison-grid,
    .teacher-guide-grid,
    .faq-list {
        grid-template-columns: 1fr;
    }

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

    .module-grid3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .module-grid2.module-grid3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .module-grid2 .module-card2 {
        max-width: calc(50% - 12px);
    }

    .module-grid2-featured .module-card2 {
        min-height: 196px;
    }

    .module-grid2-practical .module-card2 {
        min-height: 196px;
    }

    .module-grid2-steps .module-card2 {
        max-width: calc(50% - 12px);
    }

    .modules,
    .news,
    .app-section,
    .site-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .footer-inner {
        gap: 20px;
        align-items: flex-start;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .footer-links > div {
        min-width: 100%;
        width: 100%;
    }

    .footer-left {
        max-width: 100%;
    }

    .overview-grid,
    .comparison-section,
    .teacher-guide,
    .faq-section {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 768px) {

    .site-header {
        top: 10px;
        width: min(calc(100% - 20px), 100%);
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 8px;
        border-radius: 24px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        border-radius: 20px;
        padding: 6px;
    }

    .main-nav a {
        flex: 1 1 auto;
        text-align: center;
        padding: 9px 12px;
    }

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

    .module-grid3 {
        grid-template-columns: 1fr;
    }

    .module-grid2.module-grid3 {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding: 24px 20px 14px;
        border-radius: 22px;
    }

    .footer-links a {
        margin: 0 16px 8px 0;
    }

    .site-footer::before {
        left: 20px;
        right: 20px;
    }

    .module-grid2-featured .module-card2 {
        min-height: auto;
    }
}

@media (max-width: 900px) {
    .etika-checklist .module-grid2,
    .etika-checklist .module-grid2.module-grid3,
    .etika-discussion .news-slider,
    .news2 .news-slider2 {
        display: grid;
        grid-template-columns: 1fr;
    }

    .etika-checklist .module-card2,
    .etika-discussion .news-card,
    .news2 .news-card2 {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

/*osnove*/
/* NEWS2 */

/* NEWS2 SEKCIJA */
.news2 {
    padding: 28px 48px 34px;
    background: #f2eff1;
    margin-top: 12px;
}

.news2-header {
    margin-bottom: 16px;
    text-align: center;
}

.news2-header p {
    max-width: 760px;
    margin: 10px auto 0;
    color: #555;
}

.news2-header h2 {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.2;
    font-weight: 600;
    color: #172033;
}

/* GRID RASPORED – AUTOMATSKA ŠIRINA KARTICA */
.news-slider2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 12px 0;
}

.news-slider2:has(> .news-card2:nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* KARTICE */
.news-card2 {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    min-height: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* HOVER EFEKAT (lijepo, suptilno) */
.news-card2:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.news-card2 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* TEKST U KARTICI */
.news-body2 {
    padding: 16px;
}

.news-body2 h3 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 6px;
    font-weight: 600;
    color: #172033;
}

.news-body2 p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 8px;
}

@media (max-width: 1100px) {
    .news-slider2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .news2 {
        padding: 32px 20px 40px;
    }

    .news-slider2 {
        grid-template-columns: 1fr;
    }
}

/* TAG */
.news-tag2 {
    display: inline-block;
    font-size: 0.8rem;
    padding: 4px 12px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
}

/*moduli*/
.modules2 {
    padding: 28px 48px 28px;
    background: var(--bg-soft);
    margin-top: 12px;
}

.modules2 h2 {
    font-size: 1.7rem;
    text-align: center;
    font-weight: 600;
}

.section-intro2 {
    max-width: 640px;
    margin: 8px auto 20px;
    text-align: center;
    color: #555;
    font-size: 0.98rem;
}

.module-grid2 {
    display: grid;
    gap: 24px;

    /* AUTOMATSKO ŠIRENJE + uvijek 4 u redu ako ih ima */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.module-grid3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-grid2.module-grid3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

/* Kartica */
.module-card2 {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.module-card2 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.module-card2 h3 {
    margin-top: 12px;
    font-size: 1.08rem;
}

.module-card2 p {
    flex-grow: 1;
    color: #555;
    font-size: 0.95rem;
}

.module-grid2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
}

.module-grid2 .module-card2 {
    flex: 1 1 280px;
    min-width: 260px;
    max-width: calc(33.333% - 16px);
}

.module-grid2.module-grid3 .module-card2 {
    max-width: none;
    min-width: 0;
    height: 100%;
}

.module-grid2:has(> .module-card2:nth-child(4):last-child) .module-card2 {
    flex: 0 1 calc(50% - 12px);
    max-width: calc(50% - 12px);
    min-height: 170px;
}

.module-grid2-featured .module-card2 {
    min-height: 214px;
    border: 1px solid rgba(28, 45, 37, 0.06);
    border-top-width: 5px;
    box-shadow: 0 12px 28px rgba(20, 31, 25, 0.05);
}

.module-grid2-featured .module-card2:nth-child(1) {
    background: linear-gradient(180deg, rgba(29, 191, 115, 0.10) 0%, #ffffff 24%);
    border-top-color: #1dbf73;
}

.module-grid2-featured .module-card2:nth-child(2) {
    background: linear-gradient(180deg, rgba(255, 199, 39, 0.14) 0%, #ffffff 24%);
    border-top-color: #ffc727;
}

.module-grid2-featured .module-card2:nth-child(3) {
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.11) 0%, #ffffff 24%);
    border-top-color: #ff6b35;
}

.module-grid2-featured .module-card2:nth-child(4) {
    background: linear-gradient(180deg, rgba(164, 120, 255, 0.10) 0%, #ffffff 24%);
    border-top-color: #8e6df2;
}

.module-grid2-featured .module-card2:nth-child(5) {
    background: linear-gradient(180deg, rgba(76, 172, 227, 0.12) 0%, #ffffff 24%);
    border-top-color: #4cace3;
}

.module-grid2-featured .module-card2 h3 {
    margin-top: 4px;
}

.module-grid2-practical .module-card2 {
    min-height: 214px;
    border: 1px solid rgba(28, 45, 37, 0.06);
    border-top-width: 5px;
    box-shadow: 0 12px 28px rgba(20, 31, 25, 0.05);
}

.module-grid2-practical .module-card2:nth-child(1) {
    background: linear-gradient(180deg, rgba(29, 191, 115, 0.10) 0%, #ffffff 24%);
    border-top-color: #1dbf73;
}

.module-grid2-practical .module-card2:nth-child(2) {
    background: linear-gradient(180deg, rgba(255, 199, 39, 0.14) 0%, #ffffff 24%);
    border-top-color: #ffc727;
}

.module-grid2-practical .module-card2:nth-child(3) {
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.11) 0%, #ffffff 24%);
    border-top-color: #ff6b35;
}

.module-grid2-practical .module-card2:nth-child(4) {
    background: linear-gradient(180deg, rgba(164, 120, 255, 0.10) 0%, #ffffff 24%);
    border-top-color: #8e6df2;
}

.module-grid2-practical .module-card2:nth-child(5) {
    background: linear-gradient(180deg, rgba(76, 172, 227, 0.12) 0%, #ffffff 24%);
    border-top-color: #4cace3;
}

.module-grid2-practical .module-card2:nth-child(6) {
    background: linear-gradient(180deg, rgba(247, 128, 170, 0.12) 0%, #ffffff 24%);
    border-top-color: #f780aa;
}

.module-grid2-practical .module-card2 h3 {
    margin-top: 4px;
}

.module-grid2-steps {
    justify-content: center;
}

.module-grid2-steps .module-card2 {
    flex: 0 1 calc(50% - 12px);
    max-width: calc(50% - 12px);
}

.module-grid2-four {
    justify-content: center;
}

.module-grid2-four .module-card2 {
    flex: 0 1 calc(50% - 12px);
    max-width: calc(50% - 12px);
    min-height: 170px;
}

.module-link2 {
    margin-top: 14px;
    display: inline-block;
    color: var(--orange);
    font-weight: 500;
    text-decoration: none;
}

.module-link2:hover {
    color: var(--green);
}

/*pop up*/
.circle-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    min-height: 340px;
    padding: 0 24px 0 12px;
}

.circle {
    position: relative;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    opacity: 0.96;
}

.item {
    position: absolute;
    width: 68px;
    height: 68px;
    background: #dff6e8;
    color: #0f7a48;
    border-radius: 50%;
    border: 1px solid rgba(29, 191, 115, 0.3);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(17, 29, 24, 0.05);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.item:hover {
    transform: scale(1.05);
    background: #c9efd9;
    box-shadow: 0 10px 20px rgba(17, 29, 24, 0.08);
}

.item-center:hover {
    transform: translate(-50%, -50%) scale(1.04);
}

/* POZICIONIRANJE */
.item[data-term="ai"] { top: 0; left: 111px; }
.item[data-term="ml"] { top: 52px; right: 0; }
.item[data-term="dl"] { bottom: 52px; right: 0; }
.item[data-term="nn"] { bottom: 0; left: 111px; }
.item[data-term="llm"] { bottom: 52px; left: 0; }
.item[data-term="genai"] { top: 52px; left: 0; }
.item[data-term="vp"] {  top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* POPUP */
.popup {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}

.popup-content {
    background: #fff;
    padding: 30px;
    width: 420px;
    margin: 10% auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    text-align: center;
}

#closePopup {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: #444;
    background: transparent;
    border: none;
    line-height: 1;
}

/*AI CAROUSEL (2 kartice)*/

/* Centriranje i ograničavanje širine */
#aiCarousel {
    max-width: 900px;
    margin: 0 auto;
}

/* Red u slajdu — sadrži 2 kartice */
.slide-row {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Kartica */
.ai-card {
    flex: 0 0 48%;
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    text-align: center;
}

.ai-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.ai-card h3 {
    margin-top: 12px;
    font-size: 1.05rem;
}

.ai-card p {
    font-size: 0.95rem;
    color: #555;
    margin-top: 8px;
}

.overview-grid,
.comparison-section,
.teacher-guide,
.faq-section {
    width: min(calc(100% - (var(--page-gutter) * 2)), var(--page-width));
    margin: 12px auto 0;
    border-radius: var(--panel-radius);
}

.overview-grid {
    background: linear-gradient(180deg, #fffefb 0%, #f8f5ef 100%);
    padding: 34px 48px 38px;
}

.overview-header {
    max-width: 860px;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.overview-header h2,
.comparison-copy h2,
.teacher-guide-header h2,
.faq-header h2 {
    font-size: 1.7rem;
    line-height: 1.2;
    margin-bottom: 10px;
    font-weight: 600;
}

.overview-header p,
.comparison-copy p,
.teacher-guide-header p,
.faq-header p,
.hero-side-note p {
    color: #555;
}

.overview-cards,
.teacher-guide-grid,
.faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.overview-card,
.teacher-guide-card,
.faq-item {
    background: #fff;
    border: 1px solid rgba(20, 44, 33, 0.08);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(17, 29, 24, 0.04);
}

.overview-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e8f7ee;
    color: #0d7f52;
    font-weight: 700;
    margin-bottom: 12px;
}

.overview-card h3,
.teacher-guide-card h3,
.faq-item h3,
.comparison-card h3,
.hero-side-note h2 {
    font-size: 1.08rem;
    line-height: 1.35;
    margin-bottom: 8px;
}

.modules2-extended .section-intro2 {
    max-width: 840px;
}

.comparison-section {
    background: #f7f9fb;
    padding: 34px 48px 38px;
}

.comparison-copy {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0d7f52;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.comparison-card {
    border-radius: 20px;
    padding: 22px;
    color: #172033;
}

.comparison-card-good {
    background: linear-gradient(180deg, #ebfff2 0%, #dff8e9 100%);
    border: 1px solid rgba(29, 191, 115, 0.25);
}

.comparison-card-caution {
    background: linear-gradient(180deg, #fff3e8 0%, #ffe8d5 100%);
    border: 1px solid rgba(255, 107, 53, 0.26);
}

.comparison-card ul {
    padding-left: 18px;
    margin-bottom: 0;
}

.comparison-card li {
    margin-bottom: 10px;
    color: #374151;
}

.teacher-guide {
    background: var(--bg-soft);
    padding: 34px 48px 38px;
}

.teacher-guide-header,
.faq-header {
    max-width: 820px;
    margin-bottom: 22px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.faq-section {
    background: #f2eff1;
    padding: 34px 48px 38px;
}

.hero-side-note {
    max-width: 290px;
    margin-top: 22px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
}

.prompt-green {
    background: linear-gradient(180deg, #effaf3 0%, #e2f4e8 100%);
}

.prompt-green .module-card2 {
    border: 1px solid rgba(29, 191, 115, 0.18);
    box-shadow: 0 10px 24px rgba(29, 191, 115, 0.08);
}

.prompt-green .module-grid2-four .module-card2 {
    min-height: 145px;
}

.prompt-green .module-card2 h3 {
    color: #0f7a48;
}

.prompt-orange {
    background: linear-gradient(180deg, #fff7ef 0%, #ffeddc 100%);
}

.prompt-orange .module-card2 {
    border: 1px solid rgba(255, 107, 53, 0.18);
    box-shadow: 0 10px 24px rgba(255, 107, 53, 0.08);
}

.prompt-orange .module-grid2-four .module-card2 {
    min-height: 145px;
}

.prompt-orange .module-card2 h3 {
    color: #cf5a2d;
}

.prompt-examples {
    background: linear-gradient(180deg, #f6faf7 0%, #eef7f1 100%);
}

.prompt-examples .news-card2 {
    border: 1px solid rgba(29, 191, 115, 0.12);
}

.prompt-examples .news-card2:nth-child(even) {
    border-color: rgba(255, 107, 53, 0.14);
}

.prompt-examples .news-body2 h3 {
    color: #145c3a;
}

.prompt-faq {
    background: linear-gradient(180deg, #fff8f2 0%, #f8f0ea 100%);
}

.prompt-faq .faq-item {
    border: 1px solid rgba(255, 107, 53, 0.16);
}

.prompt-faq .faq-item h3 {
    color: #bc552d;
}

.prompt-green-soft {
    background: linear-gradient(180deg, #f4fbf6 0%, #edf8f1 100%);
}

.prompt-green-soft .module-card2 {
    border: 1px solid rgba(29, 191, 115, 0.14);
}

.prompt-green-soft .module-grid2-four .module-card2 {
    min-height: 145px;
}

.prompt-green-soft .module-card2:nth-child(2n) {
    border-color: rgba(255, 107, 53, 0.14);
}

.etika-checklist {
    background: linear-gradient(180deg, #f2fbf5 0%, #e8f6ed 100%);
}

.etika-checklist .module-card2 {
    border: 1px solid rgba(29, 191, 115, 0.14);
    box-shadow: 0 10px 22px rgba(29, 191, 115, 0.06);
}

.etika-checklist .module-card2 h3 {
    color: #0f7a48;
}

.etika-discussion {
    background: linear-gradient(180deg, #fff8f2 0%, #f9f1e8 100%);
}

.etika-discussion .news-card {
    border: 1px solid rgba(255, 107, 53, 0.12);
}

.etika-discussion .news-body h3 {
    color: #bc552d;
}

.home-cta-section .app-inner {
    border: 1px solid rgba(29, 191, 115, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f4faf6 100%);
}

.home-cta-section .app-image {
    display: flex;
    justify-content: center;
}

.home-cta-section .app-image img {
    max-width: 220px;
    aspect-ratio: auto;
    object-fit: contain;
    box-shadow: none;
}

.app-green {
    background: linear-gradient(180deg, #f2fbf5 0%, #e7f6ec 100%);
}

.app-green .module-card2 {
    border: 1px solid rgba(29, 191, 115, 0.14);
}

.app-green .module-card2 h3 {
    color: #0f7a48;
}

.app-orange {
    background: linear-gradient(180deg, #fff8f1 0%, #fdf0e4 100%);
}

.app-orange .news-card2 {
    border: 1px solid rgba(255, 107, 53, 0.14);
}

.app-orange .news-body2 h3 {
    color: #bc552d;
}

.app-green-soft {
    background: linear-gradient(180deg, #f4fbf6 0%, #eef8f2 100%);
}

.app-green-soft .module-card2 {
    border: 1px solid rgba(29, 191, 115, 0.12);
}

.app-green-soft .module-card2:nth-child(even) {
    border-color: rgba(255, 107, 53, 0.12);
}

/* Strelice – sive i uredne */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #bfbfbf;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    background-size: 70%;
    background-position: center;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: #9e9e9e;
}

/* Pozicija strelica */
.carousel-control-prev {
    left: -60px;
}

.carousel-control-next {
    right: -60px;
}

/* Responsivno: na mobitelu 1 kartica */
@media (max-width: 600px) {
    .hero,
    .modules,
    .modules2,
    .news,
    .news2,
    .app-section,
    .comparison-section,
    .teacher-guide,
    .faq-section,
    .site-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero {
        padding-top: 92px;
        padding-bottom: 28px;
        gap: 20px;
    }

    .hero-content,
    .hero-app .hero-content,
    .hero-illustration,
    .app-text,
    .app-image,
    .footer-left,
    .footer-links,
    .footer-links > div {
        width: 100%;
        max-width: 100%;
    }

    .app-inner {
        gap: 18px;
        padding: 18px 16px;
    }

    .app-image img,
    .hero-illustration img,
    .news-card img,
    .news-card2 img,
    .module-card img,
    .module-card2 img {
        width: 100%;
        max-width: 100%;
    }

    .main-nav {
        width: 100%;
        gap: 8px;
    }

    .main-nav a {
        min-width: 0;
    }

    .overview-cards,
    .comparison-grid,
    .teacher-guide-grid,
    .faq-list {
        grid-template-columns: 1fr;
    }

    .overview-grid,
    .comparison-section,
    .teacher-guide,
    .faq-section {
        padding: 22px 16px 26px;
    }

    .overview-card,
    .comparison-card,
    .teacher-guide-card,
    .faq-item {
        padding: 16px;
    }

    #aiCarousel {
        max-width: 100%;
        padding: 0 24px;
    }

    .carousel-inner {
        overflow: hidden;
    }

    .module-grid2 .module-card2 {
        max-width: 100%;
        min-width: 100%;
    }

    .module-grid2-featured .module-card2,
    .module-grid2-practical .module-card2 {
        min-height: auto;
    }

    .module-grid2-steps .module-card2 {
        max-width: 100%;
    }

    .module-grid2-four .module-card2 {
        max-width: 100%;
        min-height: auto;
    }

    .module-grid2:has(> .module-card2:nth-child(4):last-child) .module-card2 {
        max-width: 100%;
        min-height: auto;
    }

    .prompt-green .module-grid2-four .module-card2,
    .prompt-orange .module-grid2-four .module-card2,
    .prompt-green-soft .module-grid2-four .module-card2 {
        min-height: auto;
    }

    .slide-row {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
    .ai-card {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        padding: 14px;
    }

    .ai-card img {
        height: 180px;
    }

    .carousel-control-prev {
        left: 2px;
    }

    .carousel-control-next {
        right: 2px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 38px;
        height: 38px;
    }

    .etika-checklist .module-grid2,
    .etika-checklist .module-grid2.module-grid3,
    .etika-discussion .news-slider,
    .news2 .news-slider2 {
        display: grid;
        grid-template-columns: 1fr;
    }

    .etika-checklist .module-card2,
    .etika-discussion .news-card,
    .news2 .news-card2 {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }

    .circle-wrapper {
        width: 100%;
        padding: 0;
    }

    .circle {
        width: 290px;
        height: 290px;
    }

    .item {
        width: 68px;
        height: 68px;
        font-size: 0.78rem;
    }

    .item[data-term="ai"] { top: 0; left: 111px; }
    .item[data-term="ml"] { top: 52px; right: 0; }
    .item[data-term="dl"] { bottom: 52px; right: 0; }
    .item[data-term="nn"] { bottom: 0; left: 111px; }
    .item[data-term="llm"] { bottom: 52px; left: 0; }
    .item[data-term="genai"] { top: 52px; left: 0; }

    .popup-content {
        width: min(92%, 420px);
        margin: 24% auto;
        padding: 24px 20px;
    }
}
.app-container2{
    background: rgba(255, 255, 255, 0.79);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    text-align: center;

}
.app-container2 a {
    color: #5ab0a8;
    text-decoration: none;
    font-weight: bold;

}

.app-container2 a:hover {
    text-decoration: underline;
}
.app-container2 img{
    width: 50%;
    height: 50%;
}

