/*
Theme Name: Sabawa Theme
Theme URI: https://sabawa.lk
Author: Sabawa Team
Description: Custom theme for Local Government News Portal
Version: 1.0
Text Domain: sabawa
*/

/* Basic Styles & Reset */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f4f4f9; color: #333; }

/* Language Bar */
.top-bar { background-color: #e9ecef; padding: 8px 20px; text-align: right; border-bottom: 1px solid #ccc; }
.top-bar button { background: #004080; color: white; border: none; padding: 5px 15px; margin-left: 8px; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: bold; transition: 0.3s; }
.top-bar button:hover { background: #ffcc00; color: #004080; }
.goog-te-banner-frame.skiptranslate { display: none !important; } 
body { top: 0px !important; }
#google_translate_element { display: none; }

/* Navigation Bar */
nav { background-color: #004080; color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; }
nav .logo { font-size: 24px; font-weight: bold; }
nav ul { list-style: none; display: flex; gap: 20px; }
nav ul li a { color: white; text-decoration: none; font-weight: 500; cursor: pointer; }
nav ul li a:hover { color: #ffcc00; }

/* Banner */
.banner { width: 100%; height: 300px; background: url('https://via.placeholder.com/1200x300?text=Sabawa.lk+Banner+Image') center/cover; display: flex; align-items: center; justify-content: center; }

/* Container */
.container { max-width: 1200px; margin: 20px auto; padding: 0 20px; }
.section-title { font-size: 22px; margin-bottom: 15px; border-bottom: 2px solid #004080; padding-bottom: 5px; }

/* News Section */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-bottom: 20px; }
.news-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.1); cursor: pointer; transition: 0.3s; }
.news-card:hover { transform: translateY(-5px); }
.news-card img { width: 100%; height: 150px; object-fit: cover; }
.news-content { padding: 15px; }
.news-title { font-size: 16px; font-weight: bold; margin-bottom: 5px; color: #004080; }
.published-by { font-size: 11px; color: #666; margin-bottom: 10px; font-style: italic; }

.pagination { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; }
.btn { padding: 8px 15px; background: #004080; color: white; border: none; border-radius: 4px; cursor: pointer; }
.btn:hover { background: #00264d; }

/* Tender Section */
.tender-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.tender-card { background: white; padding: 15px; border-left: 5px solid #ffcc00; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.tender-title { font-weight: bold; font-size: 16px; }

/* Footer */
footer { background: #222; color: white; text-align: center; padding: 20px; margin-top: 40px; position: relative; }
.hidden-login { display: block; margin: 10px auto 0; font-size: 10px; color: #444; background: none; border: none; cursor: pointer; }

/* Modals */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1000; justify-content: center; align-items: center; }
.modal-content { background: white; padding: 25px; border-radius: 8px; width: 90%; max-width: 400px; position: relative; }
.close-btn { position: absolute; top: 10px; right: 15px; font-size: 20px; cursor: pointer; color: red; }
.login-form input { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ccc; border-radius: 4px; }
.share-icons { margin-top: 15px; display: flex; gap: 10px; }
.share-icons a { padding: 5px 10px; color: white; text-decoration: none; border-radius: 4px; font-size: 12px;}
.fb { background: #3b5998; }
.wa { background: #25D366; }