
*:before,
*:after {
    box-sizing: border-box;
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 10px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: stretch; 
    justify-content: flex-start;    
    row-gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

a {
    color:#0056b3;
}

a:hover {
    text-decoration: underline;
}

.css_logo {
    width:100%;
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.css_logo img {
    object-fit: contain;
}

/* Search Form Styles */
.css_search_container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
}

.css_search_form {
    width: 100%;
}

.css_search_input_group {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 25px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: border-color 0.3s ease;
}

.css_search_input_group:focus-within {
    border-color: #0056b3;
    box-shadow: 0 2px 8px rgba(0,86,179,0.2);
}

.css_search_input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 15px;
    font-size: 16px;
    background: transparent;
    color: #333;
}

.css_search_input::placeholder {
    color: #999;
}

.css_search_button {
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.css_search_button:hover {
    background: #f8f9fa;
    border-color: #0056b3;
}

.css_search_icon {
    font-size: 16px;
    color: #666;
    display: inline-block;
    width: 16px;
    height: 16px;
    position: relative;
}

/* Search icon using image */
.css_search_icon::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    background-image: url('/img/search.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.css_clear_search {
    position: absolute;
    right: 50px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.css_clear_search:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

.css_featured_news {
    text-align:center;
    font-size:x-large;
    width:100%;
    border:1px dotted #808080;
    padding:10px;
    box-sizing: border-box;
}

.css_featured_news img {
    max-height: 400px;
    width: auto;
    margin:10px;
}

.css_featured_image {
    max-height: 400px;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 10px;
    object-fit: cover;
}

/* News grid container */
.css_news_grid {
    display: grid;
    gap: 15px;
    width: 100%;
    grid-template-columns: 1fr;
    box-sizing: border-box;
}

/* Mobile: 1 column (up to 600px) */
@media (max-width: 600px) {
    .css_news_grid {
        grid-template-columns: 1fr;
    }
    
    .css_news {
        padding: 12px;
    }
    
    .css_time_period {
        display: inline-block;
        min-width: 40px;
    }
}

/* Tablets: 2 columns (601px to 1000px) */
@media (min-width: 601px) and (max-width: 1000px) {
    .css_news_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 columns (over 1000px) */
@media (min-width: 1001px) {
    .css_news_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.css_news {
    width: 100%;
    text-align: left;
    background-color: #f0f0f0;
    padding: 15px;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.css_news_image {
    max-height: 150px;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin-top: 10px;
    object-fit: cover;
}

.css_time_period {
    font-weight: bold;
    color: #666;
    margin-right: 8px;
}

.css_paginare {
    padding:10px;
}

/* YouTube icon styling */
.youtube-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 5px;
    vertical-align: middle;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1LjYzIDQuMDA4QzE1LjYzIDQuMDA4IDE1LjQ2IDMuMjYgMTUuMDYgMi44NkMxNC41NiAyLjM2IDE0LjE2IDIuMzYgMTMuOTYgMi4zMkMxMi4yIDIgOCAyIDggMkM4IDIgMy44IDIgMi4wNCAyLjMyQzEuODQgMi4zNiAxLjQ0IDIuMzYgMC45NCAyLjg2QzAuNTQgMy4yNiAwLjM3IDQuMDA4IDAuMzcgNC4wMDhDMC4zNyA0LjAwOCAwIDUuMzYgMCA2LjY0VjguMDA4QzAgOS4yOCAwLjM3IDEwLjY0IDAuMzcgMTAuNjRDMC4zNyAxMC42NCAwLjU0IDExLjM2IDAuOTQgMTEuNzZDMS4zNiAxMi4xNiAxLjk2IDEyLjE2IDIuMDQgMTIuMkMzLjIgMTIuMzIgNy4yIDEyLjMyIDggMTIuMzJDOC44IDEyLjMyIDEyLjggMTIuMzIgMTMuOTYgMTIuMkMxNC4wNCAxMi4xNiAxNC42NCAxMi4xNiAxNS4wNiAxMS43NkMxNS40NiAxMS4zNiAxNS42MyAxMC42NCAxNS42MyAxMC42NEMxNS42MyAxMC42NCAxNiA5LjI4IDE2IDguMDA4VjYuNjRDMTYgNS4zNiAxNS42MyA0LjAwOCAxNS42MyA0LjAwOFoiIGZpbGw9IiNGRjAwMDAiLz4KPHBhdGggZD0iTTYuNCA4TDEwLjQgNkw2LjQgNFY4WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* YouTube icon link styling */
a .youtube-icon {
    transition: opacity 0.2s ease;
}

a:hover .youtube-icon {
    opacity: 0.8;
}

/* Make YouTube icon link look like a button */
a[href*="youtube.com"] .youtube-icon,
a[href*="youtu.be"] .youtube-icon {
    border-radius: 3px;
    padding: 2px;
}

a[href*="youtube.com"]:hover .youtube-icon,
a[href*="youtu.be"]:hover .youtube-icon {
    background-color: rgba(255, 0, 0, 0.1);
}