/*
Theme Name: Education Of Public
Theme URI: https://educationofpublic.com
Author: Education Of Public
Description: Attractive Red, Blue & White theme. Fixed categories restored with working links.
Version: 7.0
Text Domain: education-of-public
*/

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

/* Red, Blue, White Combination */
.header { background-color: #003366; color: white; padding: 25px; text-align: center; border-bottom: 5px solid #e63946; }
.header h1 { font-size: 38px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 5px; }
.header h1 a { color: white; text-decoration: none; }
.header p { font-size: 16px; color: #f1faee; font-weight: 500; }

.navbar { background-color: #002244; display: flex; justify-content: center; flex-wrap: wrap; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.navbar a { display: block; color: white; text-align: center; padding: 15px 20px; text-decoration: none; font-weight: 600; font-size: 15px; transition: 0.3s; }
.navbar a:hover { background-color: #e63946; color: white; }

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

/* Dynamic Badge Styling */
.new-badge {
    background-color: #e63946;
    color: white !important;
    font-size: 10px;
    font-weight: bold;
    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: 30px auto; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.col { flex: 1; min-width: 320px; background: #ffffff; border: 1px solid #e0e0e0; border-radius: 6px; box-shadow: 0 4px 8px rgba(0,0,0,0.05); overflow: hidden; }

.col-header { background: #003366; color: white; padding: 12px; text-align: center; font-size: 20px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }

.col ul { list-style: none; padding: 0; }
.col ul li { border-bottom: 1px solid #f1f5f9; padding: 12px 20px; display: flex; align-items: flex-start; flex-wrap: wrap; }
.col ul li:last-child { border-bottom: none; }
.col ul li::before { content: "➤"; color: #e63946; margin-right: 10px; font-size: 14px; margin-top: 2px; }
.col ul li a { text-decoration: none; color: #0056b3; font-weight: 600; font-size: 15px; line-height: 1.4; transition: color 0.2s; flex: 1; }
.col ul li a:hover { color: #e63946; text-decoration: underline; }

/* Single Post Professional Layout */
.post-box { background: #ffffff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.single-post-header { text-align: center; border-bottom: 2px solid #003366; padding-bottom: 20px; margin-bottom: 30px; }
.single-post-title { font-size: 32px; color: #002244; margin-bottom: 15px; font-weight: 700; line-height: 1.3; }
.single-post-meta { font-size: 14px; color: #555; background: #f8f9fa; display: inline-block; padding: 10px 20px; border-radius: 30px; border: 1px solid #ddd; }
.single-post-meta span { margin: 0 5px; color: #e63946; font-weight: bold; }
.single-post-meta a { color: #003366; text-decoration: none; }

.single-post-content { font-size: 17px; line-height: 1.8; color: #333; }
.single-post-content h2, .single-post-content h3 { color: #003366; margin-top: 25px; margin-bottom: 15px; border-left: 4px solid #e63946; padding-left: 10px; background: #f8f9fa; padding-top: 5px; padding-bottom: 5px; }
.single-post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 15px 0; box-shadow: 0 4px 8px 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 #ddd; padding: 12px; text-align: left; }
.single-post-content th { background-color: #003366; color: white; }
.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: 600; }
.single-post-content a:hover { color: #e63946; }

/* Share Buttons */
.share-buttons { margin-top: 40px; padding-top: 25px; border-top: 2px dashed #ddd; text-align: center; }
.share-buttons p { font-size: 18px; margin-bottom: 15px; font-weight: bold; color: #002244; }
.share-buttons a { display: inline-block; padding: 10px 25px; margin: 5px; color: white !important; border-radius: 5px; text-decoration: none !important; font-weight: bold; font-size: 15px; transition: 0.3s; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.share-buttons a:hover { opacity: 0.8; transform: translateY(-2px); }
.btn-wa { background: #25D366; } .btn-tg { background: #0088cc; } .btn-fb { background: #3b5998; }

/* Footer */
.footer { background-color: #002244; color: white; text-align: center; padding: 25px; margin-top: 50px; font-size: 14px; border-top: 4px solid #e63946; }
.footer-links { margin-bottom: 15px; display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
.footer-links a { color: #f8f9fa; text-decoration: none; font-weight: 500; font-size: 15px; }
.footer-links a:hover { color: #e63946; text-decoration: underline; }
.footer p a { color: #e63946; text-decoration: none; font-weight: bold; }
.footer p a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .row { flex-direction: column; }
    .col { flex: 100%; }
}
