/* ============================================
   EDUSPREAD PREMIUM THEME
   Matching logo colors: Navy #003580, Teal #1a9ec8
   ============================================ */

/* --- GOOGLE FONT --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* --- GLOBAL --- */
body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    background-color: #f8f9fb;
    color: #333;
}

/* --- HEADER --- */
.es-header {
    background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%);
    border-bottom: 3px solid #003580;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0,53,128,0.1);
}

/* --- CONTACT BOX --- */
.topContactInfo {
    background: linear-gradient(135deg, #003580, #1a9ec8) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #fff !important;
    padding: 12px 18px !important;
    box-shadow: 0 4px 12px rgba(0,53,128,0.25) !important;
}
.topContactInfo b,
.topContactInfo span.glyphicon {
    color: #fff !important;
}
.topContactInfo hr {
    border-color: rgba(255,255,255,0.3) !important;
    margin: 8px 0 !important;
}
.topContactInfo a {
    color: #cce7ff !important;
    font-weight: 500;
    transition: color 0.2s;
}
.topContactInfo a:hover {
    color: #fff !important;
    text-decoration: none;
}

/* --- NAVBAR --- */
.navbar-inverse {
    background: linear-gradient(90deg, #0a4a9f 0%, #1565c0 50%, #29b6d8 100%) !important;
    border: none !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3) !important;
    margin-bottom: 0 !important;
}
.navbar-inverse .navbar-nav > li > a {
    color: #e8f4ff !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    letter-spacing: 0.3px;
    padding: 20px 16px !important;
    transition: all 0.2s !important;
}
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: #ffffff !important;
    background: rgba(255,255,255,0.15) !important;
    border-radius: 4px;
}
.navbar-inverse .navbar-nav > li.active > a {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
}
.dropdown-menu {
    border-radius: 6px !important;
    box-shadow: 0 6px 20px rgba(0,53,128,0.2) !important;
    border: 1px solid #e0eaf8 !important;
}
.dropdown-menu > li > a:hover {
    background: linear-gradient(90deg, #003580, #1a9ec8) !important;
    color: #fff !important;
}

/* --- SECTION SEPARATOR --- */
.navbar-inverse + div,
nav + div {
    border-top: 2px solid #e8f0ff;
}

/* --- JOURNALS / BOOKS / COURSES BUTTONS --- */
.btn-primary {
    background: linear-gradient(135deg, #003580, #1a9ec8) !important;
    border: none !important;
    border-radius: 6px !important;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(0,53,128,0.3) !important;
    transition: all 0.3s !important;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #002060, #0077a8) !important;
    box-shadow: 0 5px 12px rgba(0,53,128,0.4) !important;
    transform: translateY(-1px);
}

/* --- PANEL / CARD HEADINGS --- */
.panel-heading,
.panel-primary > .panel-heading,
div[style*="background:#1a659e"],
div[style*="background: #1a659e"] {
    background: linear-gradient(90deg, #003580, #1a9ec8) !important;
    border: none !important;
    border-radius: 6px 6px 0 0 !important;
    color: #fff !important;
    letter-spacing: 0.5px;
}

/* --- NEWS & UPDATES / REGISTRATION HEADINGS --- */
.panel .panel-heading {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- SUBMIT BUTTON --- */
.btn-submit, input[type=submit], button[type=submit] {
    background: linear-gradient(135deg, #003580, #1a9ec8) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 24px !important;
    font-weight: 600 !important;
    box-shadow: 0 3px 8px rgba(0,53,128,0.3) !important;
    transition: all 0.3s !important;
}
.btn-submit:hover, input[type=submit]:hover, button[type=submit]:hover {
    background: linear-gradient(135deg, #002060, #0077a8) !important;
    transform: translateY(-1px);
}

/* --- READ MORE BUTTON --- */
.btn.btn-default.btn-xs,
a.btn.btn-primary.btn-xs,
a[href].btn {
    border-radius: 4px !important;
}

/* --- FOOTER --- */
.footer {
    background: linear-gradient(180deg, #001840 0%, #002866 100%) !important;
    background-size: cover !important;
    border-top: 3px solid #1a9ec8 !important;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.3) !important;
    padding: 25px 0 !important;
}
.footer .fmenu lh {
    color: #1a9ec8 !important;
    font-weight: 600 !important;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(26,158,200,0.4) !important;
    padding-bottom: 6px !important;
    margin-bottom: 8px !important;
}
.footer .fmenu li a {
    color: #aac8e8 !important;
    font-size: 15px;
    transition: all 0.2s;
    padding-left: 0 !important;
}
.footer .fmenu li a:hover {
    color: #fff !important;
    padding-left: 6px !important;
}
.footer p {
    color: #aac8e8 !important;
    font-size: 15px;
}
.footer hr {
    border-color: rgba(26,158,200,0.3) !important;
}
.sign .sx {
    background: linear-gradient(135deg, #003580, #1a9ec8) !important;
    border-radius: 20px !important;
    padding: 3px 12px !important;
}

/* --- SOCIAL SIDEBAR ICONS --- */
div[style*="position:fixed"] .fa {
    border-radius: 6px !important;
    transition: all 0.3s !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
div[style*="position:fixed"] .fa:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* --- LOGO AREA --- */
.es-header img {
    filter: drop-shadow(0 2px 4px rgba(0,53,128,0.15));
}

/* --- SECTION HEADINGS --- */
h3, h4 {
    color: #003580;
}

/* --- WELL BOX (used in sidebar) --- */
.well {
    border-radius: 8px !important;
    border: 1px solid #e0eaf8 !important;
    box-shadow: 0 2px 8px rgba(0,53,128,0.08) !important;
    background: #fff !important;
}

/* --- SCROLLBAR THIN --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f0f4ff; }
::-webkit-scrollbar-thumb { background: #1a9ec8; border-radius: 3px; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .es-header { padding: 8px 0; }
    .topContactInfo { font-size: 12px !important; }
    .navbar-inverse .navbar-nav > li > a { padding: 12px 14px !important; }
}

/* --- FIX CONTACT BOX TEXT VISIBILITY --- */
.topContactInfo,
.topContactInfo * {
    color: #fff !important;
}
.topContactInfo .glyphicon {
    color: #cce7ff !important;
    margin-right: 4px;
}
.topContactInfo b {
    font-weight: 600 !important;
}

/* --- FIX VISITOR COUNTER --- */
h5.bold.cblue {
    display: none !important;
}
script + h5 {
    display: none !important;
}

/* --- VISITOR COUNT LABEL --- */
.footer .fmenu lh {
    display: block !important;
}

/* --- BANNER IMAGE IN FOOTER TEXT FIX --- */
.footer p, .footer span, .footer div {
    color: #aac8e8;
}
.footer a {
    color: #1a9ec8 !important;
}
.footer a:hover {
    color: #fff !important;
}

/* --- HIDE OLD COUNTER NUMBERS --- */
.footer script ~ * {
    color: transparent;
    font-size: 0;
}
