body {
    font-family: Arial, sans-serif;
    background: url('background.png') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    position: relative;
    margin-top: 20px;
    height: 100px;
    box-sizing: border-box;
}
.header .left-section {
    flex: 1;
    text-align: left;
}
.datetime .time {
    font-size: 36px;
    font-weight: bold;
}
.datetime .date {
    font-size: 18px;
}
.header .center-section {
    flex: 2;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.header .weather {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.header .weather .info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.header .weather .info .day {
    font-size: 14px;
    margin-bottom: 5px;
}
.header .weather .info .temperature {
    font-size: 36px;
    font-weight: bold;
}
.header .weather .icon {
    font-size: 36px;
}
.header .right-section {
    flex: 1;
    text-align: right;
    position: relative;
}
.logo {
    height: 150px;
    margin-right: -20px;
    margin-top: -30px;
}

.content {
    display: grid;
    grid-template-columns: 70% 30%;
    grid-template-rows: 1fr;
    gap: 10px;
    height: calc(100vh - 140px); /* Full height minus header and footer */
    padding: 10px;
    padding-top: 50px;
    box-sizing: border-box;
}

.video {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    background: rgba(0, 0, 0, 1);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.right-section {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.slider {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    background-size: contain !important;
    background-position: center;
    background-repeat: no-repeat !important;
}

.carousel {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-inner {
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
    transition: transform 0.5s ease-in-out;
}

.carousel-card {
    min-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-card.active {
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-image {
    width: 100%;
    height: 85%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-details {
    width: 100%;
    height: 15%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    color: #fff;
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 1200px) {
    .content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
    }

    .video {
        height: 50vh; /* Adjust height for smaller screens */
    }

    .right-section {
        flex-direction: column;
        height: 50vh; /* Share space with the video */
    }
}

@media screen and (max-width: 768px) {
    .content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .video {
        height: 45vh;
    }

    .right-section {
        height: 45vh;
    }
}

.status-flag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 10;
}


/* News Ticker Styles */
.news-ticker-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.news-ticker-bar {
    background-color: black;
    color: white;
    padding: 10px 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.news-ticker-text {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-scroll 60s linear infinite;
    font-weight: bold;
}

@keyframes ticker-scroll {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100%, 0);
    }
}

/* Adjust content to make room for footer */
.content {
    height: calc(100vh - 160px); /* Reduced to make space for ticker */
}