/*
Theme Name: SocioEducations Premium Redesign
Description: Modernized version of Sortd for SocioEducations.com
Version: 4.0
Text Domain: sortd
*/

/* 1.0 Browser Reset & Core Setup */
html {
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: 'Inter', 'Mukta', sans-serif !important;
}

body {
    background-color: #f0f2f5; /* Light modern grey */
    color: #334155;
    line-height: 1.6 !important;
    margin: 0;
}

*, *:before, *:after {
    box-sizing: border-box;
}

/* 2.0 Typography - Modern & Bold */
h1, h2, h3, h4, h5, h6 {
    color: #1e293b;
    font-weight: 700 !important;
    margin-bottom: 18px;
    line-height: 1.3;
}

h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }

p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #475569;
}

a {
    color: #0660f0;
    transition: all 0.3s ease;
    text-decoration: none;
}

a:hover {
    color: #0042a5;
}

/* 3.0 Layout & Containers */
#page {
    background-color: transparent;
}

.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 4.0 Header & Navigation Redesign */
.top-bar {
    background: linear-gradient(135deg, #0660f0 0%, #0042a5 100%);
    padding: 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-bar-date, .top-bar-menu a {
    color: #ffffff !important;
    font-weight: 500;
}

#sticky-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 10px 0;
}

#site-title a {
    color: #1e293b;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -1px;
}

/* 5.0 Modern Post Cards (The Redesign) */
.postLayout li, .feature-newsBox, .widget {
    background: #ffffff;
    border-radius: 15px !important; /* Soft rounded corners */
    border: 1px solid #edf2f7;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin-bottom: 30px !important;
    padding: 0;
}

.postLayout li:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

.postLayout li img {
    border-radius: 15px 15px 0 0;
    display: block;
    width: 100%;
}

.entry-title {
    padding: 15px 20px;
    font-size: 18px !important;
}

/* 6.0 Buttons - Premium Look */
.btn-default, input[type="submit"], .search-submit {
    background: #0660f0 !important;
    color: #fff !important;
    border-radius: 50px !important; /* Pill shape */
    padding: 12px 28px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(6, 96, 240, 0.4);
    transition: all 0.3s ease;
}

.btn-default:hover {
    background: #0042a5 !important;
    transform: scale(1.05);
}

/* 7.0 Search Box Modernization */
#search-box {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

#search-box input.search-field {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 12px 20px;
    border-radius: 8px;
}

/* 8.0 Sidebar Widget Styling */
.widget-title {
    background: #f1f5f9;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 800;
    color: #0660f0;
    text-transform: uppercase;
    border-left: 5px solid #0660f0;
    margin-bottom: 20px;
}

/* 9.0 Go To Top Button */
.go-to-top .icon-bg {
    background-color: #0660f0 !important;
    border-radius: 50% !important;
    box-shadow: 0 10px 15px rgba(6, 96, 240, 0.3);
}

/* 10.0 Responsive Fixes */
@media (max-width: 768px) {
    .postLayout li {
        width: 100% !important;
        margin: 0 0 20px 0 !important;
    }
    .wide-wrap { margin: 0 15px; }
}

/* Custom Scrollbar for modern browsers */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #0660f0;
    border-radius: 10px;
}
/* Modern Header Styles */
.nav-content-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.modern-header .site-title a {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: #0660f0;
}

#primary-menu {
    display: flex;
    gap: 20px;
}

#primary-menu li a {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
    padding: 10px 0;
}

.header-scrolled {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}