/**
 * Custom Styles
 * Kora Plus Pro Theme
 */

/* ========================================
   Theme Variables & Base Styles
   ======================================== */
:root {
    --primary: #1b4de4;
    --primary-light: #6d8dee;
    --primary-dark: #102e89;
    --highlight: #1b4de4;
    --highlight-light: #6d8dee;
    --highlight-dark: #102e89;
    --secondary: #0a1f66;
    --accent: #6f8eeb;
    --header-bg: #840023;
    --header-text: #ffffff;
    --footer-bg: #017b8e;
    --footer-text: #ffffff;
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Tahoma', 'Helvetica Neue', Arial, sans-serif;
    --mobile-menu-bg: #194868;
    --mobile-menu-link: #fcfcfc;
    --mobile-menu-hover: #c1c1c1;
    --mobile-menu-hover-bg: #00013d;
    --mobile-menu-border: #9b0029;
}

body {
    font-family: var(--font-family) !important;
    font-size: 16px !important;
    line-height: 2 !important;
}

h1, .entry-title { font-size: 26px !important; }
h2 { font-size: 24px !important; }
h3 { font-size: 22px !important; }
h4 { font-size: 20px !important; }
.main-nav .menu > li > a { font-size: 18px !important; }
.entry-content, .post-content { font-size: 18px !important; line-height: 2 !important; }
.section-title, .title-text { font-size: 20px !important; }

/* ========================================
   Header Styles
   ======================================== */
.site-header {
    background: #840023 !important;
    color: #ffffff !important;
    height: 65px !important;
    min-height: 65px !important;
    max-height: 65px !important;
}

.header-content {
    height: 65px !important;
    min-height: 65px !important;
}

.main-nav .menu > li > a {
    height: 65px !important;
    padding: 0 22px !important;
    color: #ffffff !important;
}

.site-logo img, .custom-logo-link img {
    height: 46px !important;
    max-height: 46px !important;
    width: 180px !important;
    object-fit: contain !important;
    transition: none !important;
    transform: none !important;
}

:root {
    --logo-height: 46px;
    --logo-width: 180px;
    --mobile-logo-height: 45px;
    --mobile-logo-width: 180px;
    --button-size: 45px;
    --button-radius: 12px;
    --header-height-dynamic: 65px;
    --category-primary: #018bad !important;
    --category-secondary: #00687c !important;
    --category-text: #ffffff !important;
    --category-font-size: 16px !important;
    --category-padding: 15px !important;
    --category-border-radius: 14px !important;
    --category-width: auto !important;
    --category-height: auto !important;
    --category-spacing: 2px !important;
}

body.dark-elegant-theme .search-btn,
body.dark-elegant-theme .dark-mode-toggle,
body.dark-elegant-theme .mobile-toggle {
    width: 45px !important;
    height: 45px !important;
    border-radius: 12px !important;
}

body.category-style-style1 .nav-menu > li > a,
body.category-style-style1 .main-nav .menu > li > a,
body.category-style-style1 .category-item,
body.category-style-style1 .category-card .category-link,
body.category-style-style1 .categories-grid .category-link {
    font-size: 16px !important;
    padding: 15px 22.5px !important;
    border-radius: 14px !important;
}

.nav-menu > li {
    margin-left: 2px !important;
}

.nav-menu > li:last-child {
    margin-left: 0 !important;
}

.categories-grid {
    gap: 2px !important;
}

/* ========================================
   Footer Styles
   ======================================== */
.site-footer {
    background: #017b8e !important;
    color: #ffffff !important;
}

.footer-description { color: #ffffff !important; }

.categories-bar-before-footer {
    background: linear-gradient(135deg, #1e73be, #0a0a0a) !important;
}

.categories-bar-title span,
.categories-list .cat-item a {
    color: #0a0a0a !important;
}

.cat-count {
    color: #0a0a0a !important;
    background: #09000a !important;
}

.google-news-btn-post {
    background: #26555b !important;
    color: #ffffff !important;
    border-radius: 80px !important;
}

.design-credits { background: #315f72 !important; }
.design-text { color: #ffffff !important; font-size: 18px !important; }
.team-name { color: #ffffff !important; font-size: calc(18px + 2px) !important; }
.team-name:hover { color: #bfbfbf !important; }

/* ========================================
   Post Titles
   ======================================== */
.grid-item-title, .list-item-title, .featured-small-title,
.compact-item-title, .magazine-side-title, .masonry-title,
.timeline-title, .tabs-item-title, .home-section .post-title {
    font-size: 20px !important;
}

.category-page .post-title, .category-post-item .post-title {
    font-size: 17px !important;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 768px) {
    body { font-size: 20px !important; }
    
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .header-content { min-height: 55px !important; }
    
    .site-logo img, .custom-logo-link img {
        height: 45px !important;
        max-height: 45px !important;
        width: 180px !important;
    }
    
    .main-nav {
        background: #194868 !important;
    }
    
    .main-nav .menu > li > a {
        color: #fcfcfc !important;
    }
    
    .main-nav .menu > li > a:hover,
    .main-nav .menu > li.current-menu-item > a {
        background: #00013d !important;
        color: #c1c1c1 !important;
    }
    
    .main-nav .menu > li {
        border-bottom-color: #9b0029 !important;
    }
}

/* ========================================
   Additional Widgets Styles
   ======================================== */

/* Recent Posts Widget */
.kora-recent-posts.style-1 .recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.kora-recent-posts.style-1 .recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.kora-recent-posts.style-1 .recent-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
}

.kora-recent-posts.style-1 .recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.kora-recent-posts.style-1 .recent-post-item:hover .recent-post-thumb img {
    transform: scale(1.1);
}

.kora-recent-posts.style-1 .recent-post-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.kora-recent-posts.style-1 .recent-post-date {
    font-size: 13px;
    color: #999;
}

/* Recent Posts Style 2 */
.kora-recent-posts.style-2 .recent-post-item-list {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.kora-recent-posts.style-2 .recent-post-item-list:last-child {
    border-bottom: none;
}

.kora-recent-posts.style-2 .recent-post-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.kora-recent-posts.style-2 .recent-post-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #999;
}

.kora-recent-posts.style-2 .post-cat {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
}

/* Recent Posts Style 3 */
.kora-recent-posts.style-3 .recent-post-card {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.kora-recent-posts.style-3 .recent-post-image {
    overflow: hidden;
}

.kora-recent-posts.style-3 .recent-post-image img {
    width: 100%;
    transition: var(--transition);
}

.kora-recent-posts.style-3 .recent-post-card:hover .recent-post-image img {
    transform: scale(1.1);
}

.kora-recent-posts.style-3 .recent-post-title {
    font-size: 16px;
    font-weight: 700;
    padding: 15px 15px 10px;
    margin: 0;
}

.kora-recent-posts.style-3 .recent-post-excerpt {
    padding: 0 15px 15px;
    font-size: 14px;
    color: #666;
}

/* Popular Posts Widget */
.kora-popular-posts .popular-post-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.kora-popular-posts .popular-post-item:last-child {
    border-bottom: none;
}

.kora-popular-posts .post-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.kora-popular-posts .popular-post-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}

.kora-popular-posts .popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kora-popular-posts .popular-post-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.kora-popular-posts .popular-post-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #999;
}

/* Social Widget Style 1 */
.kora-social-widget.style-1 .social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

.kora-social-widget.style-1 .social-link:hover {
    transform: translateX(-5px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.kora-social-widget.style-1 .social-link i {
    font-size: 20px;
}

/* Social Widget Style 2 */
.kora-social-widget.style-2 {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.kora-social-widget.style-2 .social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--secondary-color);
    transition: var(--transition);
}

.kora-social-widget.style-2 .social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* About Widget */
.kora-about-widget {
    text-align: center;
}

.kora-about-widget .about-image img {
    max-width: 200px;
    margin: 0 auto 20px;
    border-radius: 8px;
}

.kora-about-widget .about-description {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

/* Category Posts Widget */
.kora-category-posts .category-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.kora-category-posts .category-post-item:last-child {
    border-bottom: none;
}

.kora-category-posts .cat-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.kora-category-posts .cat-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kora-category-posts .cat-post-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.kora-category-posts .cat-post-date {
    font-size: 13px;
    color: #999;
}

/* Matches Widget */
.kora-matches-widget {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
}

.kora-matches-widget .match-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.kora-matches-widget .match-item:last-child {
    margin-bottom: 0;
}

.kora-matches-widget .match-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: #999;
}

.kora-matches-widget .match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.kora-matches-widget .team {
    flex: 1;
    text-align: center;
    font-weight: 600;
}

.kora-matches-widget .match-vs {
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.kora-matches-widget .match-notice {
    margin-top: 15px;
    padding: 10px;
    background: #fff3cd;
    border-radius: 5px;
    font-size: 12px;
    color: #856404;
}

/* ========================================
   Search Modal
   ======================================== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    padding: 40px;
}

.search-modal .search-form {
    position: relative;
}

.search-modal .search-field {
    width: 100%;
    padding: 20px 60px 20px 20px;
    font-size: 24px;
    border: 3px solid var(--primary-color);
    border-radius: 50px;
    background: white;
}

.search-modal .search-submit {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.search-modal .close-search {
    position: absolute;
    top: -50px;
    left: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* ========================================
   Header Enhancements
   ======================================== */
.site-header.sticky {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-top-bar {
    padding: 10px 0;
    font-size: 14px;
}

.header-top-bar .top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-bar .social-icons {
    display: flex;
    gap: 15px;
}

.header-top-bar .social-icons a {
    color: white;
    font-size: 16px;
}

/* Breaking News Ticker */
.breaking-news-label {
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: 700;
    margin-left: 15px;
}

.breaking-news-ticker {
    flex: 1;
    overflow: hidden;
}

.news-ticker {
    position: relative;
}

.news-ticker li {
    position: absolute;
    white-space: nowrap;
}

.news-ticker a {
    color: white;
    font-weight: 600;
}

/* ========================================
   Footer Enhancements
   ======================================== */
.footer-newsletter-section {
    padding: 40px 0;
}

.newsletter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-content {
    flex: 1;
    color: white;
}

.newsletter-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.newsletter-description {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
}

.newsletter-form {
    flex: 1;
}

.subscribe-form {
    display: flex;
    gap: 10px;
}

.subscribe-form input[type="email"] {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
}

.subscribe-form button {
    padding: 15px 40px;
    border-radius: 50px;
}

/* Footer Grid Layout */
.footer-bottom-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .newsletter-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .footer-bottom-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .search-modal .search-field {
        font-size: 18px;
        padding: 15px 50px 15px 15px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .share-buttons,
    .comments-area,
    .back-to-top {
        display: none !important;
    }
    
    .content-area {
        width: 100% !important;
    }
}

