﻿
/*blinking-start*/
.blink3 {
    color: white;
    -webkit-animation: blink3 800ms step-end infinite;
    animation: blink3 800ms step-end infinite;
}

@-webkit-keyframes blink3 {
    50% {
        color: white;
    }
}

@keyframes blink3 {
    50% {
        color: yellow;
    }
}

.pulse3 {
    -webkit-animation: blink3 900ms infinite;
    animation: blink3 900ms infinite;
}

@-webkit-keyframes pulse3 {
    0% {
        color: white;
    }

    100% {
        color: white;
    }
}

@keyframes pulse3 {
    0% {
        color: white;
    }

    100% {
        color: white;
    }
}
/*blinking-end*/


/* Basic Resets */


/* Three-Column Layout using Flexbox */
.container2 {
    display: flex;
    flex-wrap: wrap; /* Allows columns to wrap on smaller screens */
    max-width: 1400px; 
    margin: 20px auto;
    padding: 80px 15px 0px 15px;
    gap: 20px; /* Space between columns */
}
.container3 {
    display: flex;
    flex-wrap: wrap; /* Allows columns to wrap on smaller screens */
    max-width: 1400px; 
    margin: 20px auto;
    padding: 20px 15px 0px 15px;
    gap: 20px; /* Space between columns */
}
.setbell {
    font-size: 24px;
  margin-top: -4px;
}

.setpause {
    color: #fff;
  margin-top: -5px;
}

.sethons {
    /*background-color: #a12a00;*/
  text-align: end;
  padding: 5px 10px;
  text-shadow: 0 0 3px #000;
  /*box-shadow: 2px 9px 12px #330d00;*/
}

.sethons h5 {
    font-size:12px;
}
.column {
    background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 1px 2px 4px rgba(0,0,0,0.1);
  flex: 1 1 30%;
  border: 1px solid #d3d3d3;
}

/* --- COLUMN 1: Welcome & Description --- */
.welcome-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes READ MORE to the bottom */
}

.welcome-text {
  font-size: 1.8em;
  color: #333;
  margin-bottom: -90px;
}

.intro-paragraph {
    font-size: 1em;
    color: #666;
    margin-bottom: 25px;
    text-align: justify;
}

.read-more {
    display: inline-block;
    align-self: flex-end; /* Aligns the button to the right/bottom */
    background-color: #007bff;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #0056b3;
}

/* --- COLUMN 2: Officials/Ministers --- */
.officials-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Ensure the column scrolls if content overflows vertically */
    max-height: auto; 
    overflow-y: auto; 
    padding-right: 10px; /* Space for scrollbar */
    box-shadow: 5px 10px 15px #828282;
}

/* Hide scrollbar for aesthetics (Webkit) */
.officials-column::-webkit-scrollbar {
    width: 6px;
}

.officials-column::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.official-card {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

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

.official-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #007bff;
}

.official-info h3 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 3px;
}

.official-info p {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 2px;
}

/* --- COLUMN 3: News & Statistics --- */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between News and Statistics */
}

/* News & Events Section */
.news-events-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e6ea;
    flex: 1; /* Allows this section to fill vertical space */
}

.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  background-color: #19415c;
  padding-top: 10px;
  padding-left: 75px;
  padding-right: 75px;
}

.news-header h2 {
    font-size: 1.5em;
    color: #fff;
    display: flex;
    align-items: center;
}

.news-icon {
    color: #dc3545; /* Red bell icon */
    margin-right: 10px;
}

.news-controls #playPauseBtn {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #fff;
    transition: color 0.2s ease;
}

.news-controls #playPauseBtn:hover {
    color: #fff;
 
}

.news-content {
    min-height: 100px;
    position: relative;
    overflow: hidden; 
}

.news-item {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    position: absolute; 
    width: 100%;
    left: 0;
    top: 0;
}

.news-item.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item .news-title {
    font-weight: bold;
    color: #333;
}

.news-item .news-date {
  font-size: 0.85em;
  color: #fff;
  font-weight: bold;
}

.view-all {
    display: block;
    text-align: right;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.view-all:hover {
    color: #0056b3;
}

/* Statistics Section */
.statistics-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e6ea;
}

.stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.stats-header h2 {
    font-size: 1.5em;
    color: #333;
}

.stats-controls button {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1em;
    cursor: pointer;
    margin-left: 8px;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stats-controls button:hover {
    background-color: #0056b3;
}

.stats-carousel {
    display: flex;
    overflow: hidden; 
    width: 100%;
    border-radius: 5px;
    position: relative;
}

.stats-item {
    min-width: 100%; 
    transition: transform 0.5s ease-in-out;
    display: none; 
}

.stats-item.active {
    display: block; 
}

.stats-carousel img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* --- Responsive Adjustments --- */
/* Tablet/Medium Screens: Switch to 2 columns */
@media (max-width: 1200px) {
    .container2 {
        max-width: 1000px;
    }
    .column {
        flex: 1 1 45%; /* Switch to two columns */
    }
    .welcome-column {
        /* This column takes full width and is placed at the top */
        flex: 1 1 100%;
        order: -1; 
    }
    /* Ensure News/Stats column stacks its content appropriately */
    .right-column {
        flex-direction: row; 
        gap: 10px; 
    }
    .news-events-section, .statistics-section {
        flex: 1;
    }
}

/* Mobile Screens: Stack all columns vertically */
@media (max-width: 768px) {
    .container2 {
        flex-direction: column; 
        gap: 15px;
    }
    .column {
        flex: 1 1 100%; /* Each column takes full width */
    }
    .welcome-column {
        order: initial;
    }

    /* Stack News and Stats vertically */
    .right-column {
        flex-direction: column;
        gap: 20px;
    }

    .official-card {
        flex-direction: column; /* Stack image and info vertically */
        text-align: center;
    }

    .official-img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .news-header, .stats-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .news-header h2, .stats-header h2 {
        margin-bottom: 10px;
    }

    .news-controls, .stats-controls {
        margin-top: 10px;
    }
    
    /* Remove vertical scrolling for officials on mobile */
    .officials-column {
        max-height: none; 
        overflow-y: visible;
    }
}