/* Navigationslänk */
.nav-link.dropdown-toggle {
    cursor: pointer;
}

/* Widget */
.widget {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.widget:hover {
    transform: translateY(-5px);
}

/* Länkar */
a:link,
a:visited {
    color: #00000080;
}

a:hover {
    color: #3893c0;
}

/* Kort */
.card-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.card-text {
    font-size: 1rem;
    color: #555;
    text-align-last: center;
}

.card-body {
    padding: 20px;
}

/* Row med lika höjd */
.row-equal-height {
    display: flex;
    flex-wrap: wrap;
}

.row-equal-height > .col-xl-3 {
    display: flex;
    flex-direction: column;
}

.widget {
    flex: 1;
}

/* Notification Bar */
.notification-bar {
    background-color: #2e5960d6;
    color: #ffffff;
    padding: 10px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.notification-bar a {
    color: inherit;
    text-decoration: none;
    transition: color 0.1s;
}

.notification-bar a:hover {
    color: #cecece;
}

/* Navbar */
.navbar {
    z-index: 999;
}

/* Special länkar */
.special-links a:link {
    color: #007bff;
}

.special-links a:visited {
    color: #0056b3;
}

.special-links a:hover {
    color: #0056b3;
}

.special-links a:active {
    color: #003366;
}

/* Inpage */
@media (min-width: 350px) {
    .inpage {
        height: 200px;
    }
}

@media (min-width: 500px) {
    .inpage {
        height: 200px;
    }
}

@media (min-width: 800px) {
    .inpage {
        height: 200px;
    }
}

/* Breaking News */
.breaking-news {
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.news {
    border-radius: 4px;
}

.news-scroll {
    white-space: nowrap;
    overflow: hidden;
    width: 80%;
    position: relative;
}

.news-scroll div {
    display: inline-block;
    will-change: transform;
}

@keyframes scrollNews {
    from {
        transform: translateX(3%);
    }
    to {
        transform: translateX(-100%);
    }
}

.dot {
    margin: 0 10px;
    color: red;
}

/* Timeline */
.timeline {
    border-left: 3px solid #727cf5;
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
    background: rgba(114, 124, 245, 0.09);
    margin: 0 auto;
    letter-spacing: 0.2px;
    position: relative;
    line-height: 1.4em;
    font-size: 1.03em;
    padding: 50px;
    list-style: none;
    text-align: left;
    max-width: 100%;
}

.timeline h1 {
    font-weight: 300;
    font-size: 1.4em;
}

.timeline h2,
.timeline h3 {
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.timeline .event {
    border-bottom: 1px dashed #e8ebf1;
    padding-bottom: 25px;
    margin-bottom: 25px;
    position: relative;
}

@media (max-width: 767px) {
    .timeline .event {
        padding-top: 30px;
    }
}

.timeline .event:last-of-type {
    padding-bottom: 0;
    margin-bottom: 0;
    border: none;
}

.timeline .event:before,
.timeline .event:after {
    position: absolute;
    display: block;
    top: 0;
}

.timeline .event:before {
    left: -207px;
    content: attr(data-date);
    text-align: right;
    font-weight: 100;
    font-size: 0.9em;
    min-width: 120px;
}

@media (max-width: 767px) {
    .timeline .event:before {
        left: 0px;
        text-align: left;
    }
}

.timeline .event:after {
    box-shadow: 0 0 0 3px #727cf5;
    left: -55.8px;
    background: #fff;
    border-radius: 50%;
    height: 9px;
    width: 9px;
    content: "";
    top: 5px;
}

@media (max-width: 767px) {
    .timeline .event:after {
        left: -31.8px;
    }
}

.rtl .timeline {
    border-left: 0;
    text-align: right;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;
    border-right: 3px solid #727cf5;
}

.rtl .timeline .event::before {
    left: 0;
    right: -170px;
}

.rtl .timeline .event::after {
    left: 0;
    right: -55.8px;
}

/* Modal */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}
