/*
Theme Name: Education Of Public (Premium Font & Clean Post)
Theme URI: https://educationofpublic.com
Author: Education Of Public
Description: Removed post meta (Author/Date/Category) and upgraded to a premium Google Font (Poppins).
Version: 18.0
Text Domain: education-of-public
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif; background-color: #f4f6f9; }

/* UpdateExpress Blue & Yellow Combination */
.header { background-color: #0056b3; color: white; padding: 25px 15px; text-align: center; border-bottom: 4px solid #ffc107; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.header-logo-container { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 8px; }
.header-logo { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 2px solid #ffc107; background: white; padding: 2px; }
.header h1 { font-size: 38px; text-transform: uppercase; letter-spacing: 1px; margin: 0; text-shadow: 1px 1px 3px rgba(0,0,0,0.3); font-weight: 700; }
.header h1 a { color: white; text-decoration: none; }
.header p { font-size: 16px; color: #f8f9fa; font-weight: 500; margin-top: 5px; }

.navbar { background-color: #004085; display: flex; justify-content: center; flex-wrap: wrap; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.navbar ul { display: flex; justify-content: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; width: 100%; }
.navbar ul li { margin: 0; padding: 0; }
.navbar ul li a, .navbar > a { display: block; color: white; text-align: center; padding: 14px 20px; text-decoration: none; font-weight: 500; font-size: 15px; transition: 0.3s; }
.navbar ul li a:hover, .navbar > a:hover { background-color: #ffc107; color: #000; }

/* Search Bar CSS */
.search-container { display: flex; justify-content: center; padding: 12px 15px; width: 100%; }
.search-container form { display: flex; width: 100%; max-width: 600px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); border-radius: 4px; }
.search-container input { flex: 1; padding: 10px 15px; border: none; border-radius: 4px 0 0 4px; font-size: 15px; outline: none; font-family: 'Poppins', sans-serif; }
.search-container button { padding: 10px 20px; background: #dc3545; color: white; border: none; border-radius: 0 4px 4px 0; cursor: pointer; font-weight: 600; font-size: 15px; transition: 0.3s; font-family: 'Poppins', sans-serif; }
.search-container button:hover { background: #ffc107; color: #000; }

.marquee-container { background: #ffffff; padding: 10px 15px; border-bottom: 2px solid #dee2e6; display: flex; align-items: center; }
.marquee-title { background: #dc3545; color: white; padding: 5px 12px; font-weight: 600; border-radius: 3px; margin-right: 12px; white-space: nowrap; font-size: 14px; }
marquee { color: #0056b3; font-weight: 500; font-size: 16px; display: flex; align-items: center; }
marquee a { color: #0056b3; text-decoration: none; display: inline-flex; align-items: center; }
marquee a:hover { color: #dc3545; text-decoration: underline; }

/* Dynamic Badge Styling */
.new-badge {
    background-color: #dc3545;
    color: white !important;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 8px;
    animation: blink 1.2s linear infinite;
    display: inline-block;
    text-transform: uppercase;
}
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

.container { max-width: 1250px; margin: 25px auto; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; width: 100%; }
.col { flex: 1; min-width: 320px; background: #ffffff; border: 1px solid #dee2e6; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); overflow: hidden; display: flex; flex-direction: column; }

.col-header { background: #0056b3; color: white; padding: 10px 12px; text-align: center; font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid #004085; }

.col ul { list-style: none; padding: 0; flex-grow: 1; }
.col ul li { border-bottom: 1px solid #f8f9fa; padding: 10px 15px; display: flex; align-items: flex-start; flex-wrap: wrap; }
.col ul li:last-child { border-bottom: none; }
.col ul li::before { content: "➤"; color: #dc3545; margin-right: 8px; font-size: 13px; margin-top: 3px; }
.col ul li a { text-decoration: none; color: #0056b3; font-weight: 500; font-size: 14.5px; line-height: 1.5; transition: color 0.2s; flex: 1; }
.col ul li a:hover { color: #dc3545; text-decoration: underline; }

.view-all-btn { text-align: right; padding: 8px 12px; background: #f8f9fa; border-top: 1px solid #eee; }
.view-all-btn a { display: inline-block; padding: 5px 12px; background: #dc3545; color: white; text-decoration: none; font-size: 12px; font-weight: 600; border-radius: 4px; transition: 0.3s; }
.view-all-btn a:hover { background: #004085; }

/* Single Post Professional Layout */
.post-box { background: #ffffff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); border: 1px solid #dee2e6; }
.single-post-header { text-align: center; border-bottom: 2px solid #0056b3; padding-bottom: 15px; margin-bottom: 25px; }
.single-post-title { font-size: 30px; color: #004085; margin-bottom: 15px; font-weight: 700; line-height: 1.4; }

.single-post-content { font-size: 16px; line-height: 1.8; color: #333; }
.single-post-content h2, .single-post-content h3 { color: #0056b3; margin-top: 25px; margin-bottom: 15px; border-left: 4px solid #ffc107; padding-left: 10px; background: #f8f9fa; padding-top: 8px; padding-bottom: 8px; font-weight: 600; }
.single-post-content img { max-width: 100%; height: auto; border-radius: 5px; margin: 15px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.single-post-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.single-post-content th, .single-post-content td { border: 1px solid #dee2e6; padding: 12px; text-align: left; }
.single-post-content th { background-color: #0056b3; color: white; font-weight: 600; }
.single-post-content ul, .single-post-content ol { margin-left: 20px; margin-bottom: 20px; }
.single-post-content a { color: #0056b3; text-decoration: underline; font-weight: 500; }
.single-post-content a:hover { color: #dc3545; }

/* Join Group Section */
.join-group { background: #f8f9fa; padding: 25px; border-radius: 8px; margin-top: 30px; border: 2px solid #ffc107; text-align: center; }
.join-group h3 { margin-top: 0; color: #0056b3; font-size: 22px; margin-bottom: 15px; font-weight: 600; }
.join-group p { font-size: 15px; color: #555; margin-bottom: 20px; }
.join-group a { display: inline-block; padding: 12px 25px; margin: 5px; color: white !important; font-weight: 600; font-size: 16px; border-radius: 5px; text-decoration: none; box-shadow: 0 3px 6px rgba(0,0,0,0.15); transition: 0.3s; }
.join-group a:hover { opacity: 0.85; transform: translateY(-2px); }
.join-btn-wa { background: linear-gradient(135deg, #25D366, #128C7E); }
.join-btn-tg { background: linear-gradient(135deg, #0088cc, #005A9E); }
.join-btn-fb { background: linear-gradient(135deg, #3b5998, #192f5d); }

/* Footer */
.footer { background-color: #004085; color: white; text-align: center; padding: 25px 15px; margin-top: 40px; font-size: 14px; border-top: 4px solid #ffc107; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.footer-links a { color: #f8f9fa; text-decoration: none; font-weight: 500; font-size: 15px; transition: 0.2s; }
.footer-links a:hover { color: #ffc107; }
.footer p { color: #ced4da; margin-top: 10px; }
.footer p a { color: #ffc107; text-decoration: none; font-weight: 600; }
.footer p a:hover { text-decoration: underline; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; background: #fff; border: 1px solid #dee2e6; text-decoration: none; color: #0056b3; font-weight: 600; border-radius: 3px; }
.pagination .current { background: #0056b3; color: white; border-color: #0056b3; }
.pagination a:hover { background: #004085; color: white; }

/* MOBILE RESPONSIVENESS IMPROVEMENTS */
@media (max-width: 768px) {
    .header { padding: 15px 10px; }
    .header h1 { font-size: 24px; }
    .header p { font-size: 14px; }
    .header-logo { width: 50px; height: 50px; }
    .header-logo-container { gap: 10px; }
    
    .navbar ul li a, .navbar > a { padding: 12px 10px; font-size: 14px; }
    
    .marquee-container { padding: 8px 10px; }
    .marquee-title { font-size: 12px; padding: 4px 8px; margin-right: 8px; }
    marquee { font-size: 14px; }
    
    .search-container form { flex-direction: row; }
    .search-container input { padding: 8px 10px; font-size: 14px; }
    .search-container button { padding: 8px 15px; font-size: 14px; }
    
    .container { margin: 15px auto; padding: 0 10px; }
    .row { gap: 15px; margin-bottom: 15px; }
    .col { min-width: 100%; flex: 100%; }
    
    .post-box { padding: 20px 15px; }
    .single-post-title { font-size: 20px; }
    .single-post-content { font-size: 15px; }
    
    .footer { padding: 20px 10px; }
    .footer-links { gap: 10px; flex-direction: column; align-items: center; }
    .footer-links a { font-size: 14px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.1); width: 100%; }
    .footer-links a:last-child { border-bottom: none; }
}
