/*
Theme Name: cssc-clean-theme
Theme URI: https://cssc.org.in
Author: CSSC Admin
Description: Custom WordPress theme for Centre for the Study of Social Change (CSSC) supporting direct dashboard Customizer management for template items.
Version: 1.0
Text Domain: cssc
*/

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; background-color: #f4f4f9; color: #333; top: 0 !important; }

/* Header & Navigation */
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background: #fff; border-bottom: 2px solid #ddd; }
.site-header .logo { max-height: 60px; }
.header-right { display: flex; justify-content: flex-end; align-items: center; }

.navbar { background-color: #2c3e50; }
.nav-menu { display: flex; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 5px; color: #ffffff; padding: 14px 18px; text-decoration: none; font-weight: bold; }
.nav-link:hover { background-color: #34495e; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #ffffff; min-width: 200px; list-style: none; z-index: 100; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.dropdown-menu a { color: #333; padding: 10px 15px; display: block; text-decoration: none; font-weight: normal; }
.dropdown-menu a:hover { background: #2c3e50; color: #fff; }
.nav-item:hover .dropdown-menu { display: block; }

/* Google Translate Widget Styling */
#google_translate_element { display: inline-block; }
#google_translate_element select { padding: 6px 10px; border-radius: 4px; border: 1px solid #ccc; background-color: #fff; font-size: 14px; color: #333; cursor: pointer; }
.goog-te-banner-frame { display: none !important; }
.goog-logo-link, .goog-te-gadget span { display: none !important; }

/* Ticker */
.ticker-wrap { width: 100%; background: #333; color: #fff; overflow: hidden; height: 35px; line-height: 35px; }
.ticker-move { display: flex; gap: 40px; animation: ticker 25s linear infinite; white-space: nowrap; }
.ticker-item a { color: #ffeb3b; text-decoration: none; font-weight: bold; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* Layout Containers */
.layout-container { display: flex; gap: 20px; max-width: 1400px; margin: 20px auto; padding: 0 10px; align-items: flex-start; }
.sidebar-left { width: 320px; flex-shrink: 0; background: #fff; border-right: 1px solid #ddd; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.main-content { flex: 1; background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.sidebar-right { width: 320px; flex-shrink: 0; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

/* Footer */
.mega-footer { background: #1a252f; color: #ecf0f1; padding: 30px 20px 10px; margin-top: 40px; font-size: 0.85rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; max-width: 1400px; margin: 0 auto; }
.footer-col h3 { border-bottom: 2px solid #4a154b; padding-bottom: 5px; margin-bottom: 10px; color: #fff; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 5px; }
.social-links { display: flex; gap: 10px; margin-top: 10px; }
.social-links a { color: #fff; background: #34495e; width: 28px; height: 28px; display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; text-decoration: none; font-weight: bold; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 10px; border-top: 1px solid #34495e; color: #bdc3c7; }

@media (max-width: 768px) {
  .layout-container { flex-direction: column; }
  .sidebar-left, .sidebar-right { width: 100%; }
}