* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

/* HERO */
.hero {
    padding-top: 70px;
    height: 700px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/background.jpg') center/cover no-repeat;
    position: relative;
}

/* Logo */
.navbar-brand {
    background-color: #2c5f8a;
    padding: 5px 10px;
    align-items: center;
}

/* Menu */
.navbar-nav .nav-link {
    transition: color 0.3s;
    font-weight: bold;
}

.navbar-nav .nav-link:hover {
    color: #2c5f8a !important;
}

/* MODRI KVADRATI IN PRAVOKOTNIKI - BREZ ZAOKROŽENIH ROBOV */
.blue-card {
    background-color: #2c5f8a;
    color: white;
    border-radius: 0px !important;
    /* NIČ radiusa - ostri robovi */
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    height: 100%;
    transition: all 0.3s ease;
}

/*Pri zmanjsanju ekrana Naslov 4 postane iste velicine kakor ostali*/
.square-card {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
}

/* Če imaš blue-card */
.blue-card.square {
    aspect-ratio: 1 / 1;
    width: 100%;
}

/* Hover efekt za vse modre kvadrate in pravokotnike */
.blue-card:hover {
    background-color: rgb(119, 28, 28) !important;
    color: rgb(255, 196, 0) !important;
}

/* Hover tudi za transparent-card (Naslov 6) */
.transparent-card {
    overflow-y: auto;
}

.line-row:hover {
    background-color: rgb(119, 28, 28) !important;
    color: rgb(255, 196, 0) !important;
}


/* Za kvadrate (aspect-ratio 1:1) */
.square {
    aspect-ratio: 1 / 1;
}

/* Za pravokotnik (Naslov 4) */
.rectangle {
    height: 100%;
    aspect-ratio: auto;
}

/* Poravnave */
.top-center {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
}

.bottom-center {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
}

.right-corner {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: right;
}

.middle-center {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Naslov 4 - sredina na vrhu */
.top-center-wide {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
}

/* Naslov 6 - 4 vrstice s črnimi črtami */
.lines-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.line-row {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 2px solid black;
    padding: 8px 0;
    font-size: 16px;
    transition: border-bottom-color 0.3s ease;
}

.line-row:last-child {
    border-bottom: none;
}

.line-content {
    padding-left: 5px;
    transition: color 0.3s ease;
}

/* KROGI - po istem principu kot kvadrati, iste velikosti, 3 cols, BREZ radiusa */
.circle-card {
    background-color: #2c5f8a;
    color: white;
    border-radius: 50% !important;
    /* BREZ zaokroževanja - ostri robovi */
    aspect-ratio: 1 / 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
}


.circle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0px !important;
}

/* Hover efekt za kroge */
.circle-card:hover {
    background-color: rgb(119, 28, 28) !important;
    color: rgb(255, 196, 0) !important;
}

/* Hover za sliko v krogcu - spremeni se cel krog */
.circle-card:hover .circle-img {
    filter: brightness(0.7);
}

#naslov{
    font-size: large;
    color: white;
    text-decoration: none;
}

#mini-naslov{
    color: black;
    text-decoration: none;
}

#info-text {
    transition: opacity 0.3s ease;
}


/* Mobile tweaks */
@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 90px 0;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .col-3 {
        flex: 0 0 33.333%;
        /* 3 v vrsti na manjših zaslonih */
        max-width: 33.333%;
    }
}

@media (max-width: 768px) {
    .rectangle {
        aspect-ratio: 1 / 1;
    }
}

@media (min-width: 577px) and (max-width: 991px) {
    nav .container>div[style*="position: absolute"] {
        flex-direction: column !important;
        text-align: right;
        gap: 0.1rem !important;
        font-size: 0.7rem;
        right: 0;
        top: 4rem;
    }
}

@media (max-width: 576px) {

    /* Hides info text on small screens (phones) */
    nav .container>div[style*="position: absolute"] {
        display: none !important;
    }
}

/*
@media (max-width: 768px) {
    #block4{
        width: 50%;
        height: 50%;
    }
}
    */