/*
Theme Name: EduPress
Theme URI: https://yourwebsite.com/
Author: Your Name
Author URI: https://yourwebsite.com/
Description: A light, fast, and responsive news and education theme inspired by Education Barta.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, education, two-columns, right-sidebar, responsive-layout, custom-logo, custom-menu
Text Domain: edupress-lite
*/

/* This theme uses Tailwind CSS for its framework, which is loaded from a CDN in header.php.
This file is primarily for the theme information block and any custom CSS overrides.
*/

/* WordPress Core CSS Classes */
.alignright {
    float: right;
    margin: 0.5em 0 0.5em 1.5em;
}

.alignleft {
    float: left;
    margin: 0.5em 1.5em 0.5em 0;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
    background: #f1f1f1;
    padding: 10px;
    text-align: center;
}

.wp-caption-text {
    font-size: 0.9em;
    color: #555;
    margin: 5px 0 0;
}

.sticky {
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    padding-left: 15px;
}

/* Custom Styles for Menu Dropdowns */
.main-navigation ul ul {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 99999;
}

.main-navigation ul li:hover > ul {
    display: block;
}

.main-navigation ul ul li {
    width: 200px;
    position: relative;
}

.main-navigation ul ul a {
    padding: 10px 15px;
    color: #333;
    display: block;
}

.main-navigation ul ul a:hover {
    background-color: #f1f1f1;
}

/* Breaking News Ticker */
.breaking-news-ticker {
    overflow: hidden;
    white-space: nowrap;
}

.breaking-news-ticker span {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-scroll 30s linear infinite;
}


.site-branding .custom-logo-link {
    display: flex;
    justify-content: center; /* Center the logo horizontally */
    align-items: center;     /* Center the logo vertically */
    height: auto;
    max-width: 100%;
}

.site-branding .custom-logo {
    max-height: 80px; /* Adjust this value as needed */
    width: auto;
}


@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
