/*
Theme Name: Skilled Professors
Theme URI: http://skilledprofessors
Author: Skilled Professors
Author URI: http://skilledprofessors
Description: A landing page theme inspired by creative
Version: 1.0.0
Text Domain: skilled-professors
*/

/* Import Google Fonts: Montserrat (Headings) and Open Sans (Body) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap');

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

body.has-fixed-header {
    padding-top: 80px;
}

@media (min-width: 992px) {
    body.has-fixed-header {
        padding-top: 130px;
    }
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .btn, .nav-link {
    font-family: 'Montserrat', sans-serif;
}

.hero {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    color: white;
    padding: 60px 0 100px; /* Adjusted padding for fixed header */
}

.site-header {
    border-bottom: 1px solid #eef1f6;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #334155 !important; /* High contrast dark blue-grey */
    padding: 0.5rem 1.25rem !important;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #1976d2 !important;
}

.navbar-brand {
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.top-bar {
    font-size: 0.825rem;
    color: #64748b;
}

.top-bar a {
    color: #64748b;
    font-weight: 500;
}

.top-bar a:hover {
    color: #1976d2;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffb300;
    color: #0f172a;
    font-weight: 700;
}

.btn-warning:hover {
    background-color: #ffb300;
    border-color: #ffa000;
}

.btn-link.text-dark {
    color: #334155 !important;
    font-weight: 600;
}

.btn-link.text-dark:hover {
    color: #1976d2 !important;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.calculator-card {
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.section-title {
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    font-size: 3rem;
    color: #1976d2;
    margin-bottom: 20px;
}

.how-it-works-step {
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #1976d2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 0 30px;
}

.footer h5 {
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

.payment-logos img {
    height: 35px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.payment-logos img:hover {
    transform: translateY(-2px);
}

/* Order Page Styles */
.order-page {
    padding-top: 270px !important;
}

.order-tabs .nav-link {
    color: #64748b;
    border-bottom: 3px solid transparent;
    font-size: 1.1rem;
    background: none !important;
}

.order-tabs .nav-link.active {
    background-color: #1976d2 !important;
    color: #ffffff !important;
    border-bottom: none;
}

.order-tabs .nav-link.active .step-num {
    background: #ffffff;
    color: #1976d2;
    transform: scale(1.1);
}

.order-tabs .nav-link:hover:not(.active) {
    color: #334155;
    background: #f8f9fa !important;
}

.step-num {
    width: 24px;
    height: 24px;
    background: #e2e8f0;
    color: #64748b;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}



.form-select, .form-control {
    border-color: #e2e8f0;
    transition: all 0.2s ease;
}

.form-select:focus, .form-control:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 0.25rem rgba(25, 118, 210, 0.1);
}

.payment-option {
    transition: all 0.2s ease;
    cursor: pointer;
    border-style: solid;
}

.payment-option.active {
    border-color: #1976d2 !important;
    background: #fff !important;
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.1);
}

.cursor-pointer {
    cursor: pointer;
}

.x-small {
    font-size: 0.75rem;
}

.order-summary-card hr {
    margin: 1.5rem 0;
    opacity: 0.1;
}

.summary-details .fw-bold {
    color: #0f172a;
}

.trust-sidebar .icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-sidebar h6 {
    font-size: 0.85rem;
    line-height: 1.2;
}



.tab-pane h4 {
    color: #1e293b;
    border-left: 4px solid #1976d2;
    padding-left: 15px;
}

.btn-warning.w-100 {
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.upload-container {
    transition: all 0.3s ease;
    border-style: dashed !important;
    border-color: #cbd5e1 !important;
}

.upload-container:hover {
    border-color: #1976d2 !important;
    background-color: #f1f5f9 !important;
}

.upload-icon i {
    transition: transform 0.3s ease;
}

.upload-container:hover .upload-icon i {
    transform: translateY(-5px);
}

.file-item {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.file-info {
    display: flex;
    align-items: center;
}

.file-name {
    font-weight: 600;
    color: #334155;
    margin-right: 10px;
}

.file-size {
    color: #64748b;
    font-size: 0.8rem;
}

.service-type-group .btn-outline-primary,
.spacing-group .btn-outline-primary {
    border-width: 2px;
    transition: all 0.2s ease;
}

.service-type-group .btn-check:checked + .btn-outline-primary,
.spacing-group .btn-check:checked + .btn-outline-primary {
    background-color: #1976d2;
    border-color: #1976d2;
    color: white;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

/* Login Page Styles */
.login-page {
    background: #f8f9fa;
    padding-top: 100px;
}

.google-login-btn {
    border-color: #e2e8f0 !important;
    background: white !important;
    color: #334155 !important;
    transition: all 0.2s ease;
}

.google-login-btn:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

.social-login-divider {
    text-align: center;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
    line-height: 0.1em;
    margin: 20px 0 30px;
}

.social-login-divider span {
    background: #fff;
    padding: 0 15px;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Custom WordPress Login Form Styling */
#loginform-custom label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
    font-size: 0.9rem;
}

#loginform-custom .input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

#loginform-custom .input:focus {
    border-color: #1976d2;
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(25, 118, 210, 0.1);
}

#loginform-custom .login-remember {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

#loginform-custom .login-remember input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

#loginform-custom .login-remember label {
    margin-bottom: 0;
    font-weight: 500;
    color: #64748b;
}

#loginform-custom .login-submit {
    margin-top: 10px;
}

#loginform-custom #login-submit {
    width: 100%;
    padding: 14px;
    background: #1976d2;
    border: none;
    border-radius: 100px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

#loginform-custom #login-submit:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.3);
}

/* Signup Page Styles */
.signup-page {
    background: #f8f9fa;
    padding-top: 100px;
}

#registerform-custom label {
    font-size: 0.9rem;
    color: #334155;
}

#registerform-custom .form-control:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 0.25rem rgba(25, 118, 210, 0.1);
}

#signup-submit {
    transition: all 0.2s ease;
}

#signup-submit:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.3);
}

#admin-dashboard-wrapper {
    min-height: 100vh;
    background: #eef2f7;
}

#sidebar-wrapper {
    width: 280px;
    background: linear-gradient(180deg, #0d47a1 0%, #1565c0 100%);
    color: #ffffff;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    transform: translateX(0);
    transition: transform 180ms ease, width 180ms ease;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

#page-content-wrapper {
    margin-left: 280px;
    min-height: 100vh;
    width: 100%;
}

.sp-admin-sidebar-inner {
    padding: 28px 22px;
}

.sp-admin-menu-label {
    font-size: 12px;
    letter-spacing: 0.14em;
    opacity: 0.7;
    margin: 6px 10px 18px;
    color: #93c5fd;
    font-weight: 600;
    text-transform: uppercase;
}

.sp-admin-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sp-admin-nav-group.active > .sp-admin-nav-item {
    background: #ffffff;
    color: #0d47a1;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sp-admin-nav-group.active > .sp-admin-nav-item .sp-admin-nav-icon,
.sp-admin-nav-group.active > .sp-admin-nav-item .sp-admin-nav-chevron {
    color: #0d47a1;
    opacity: 1;
}

.sp-admin-nav-submenu {
    display: none;
    margin-left: 8px;
    padding-left: 6px;
    /* border-left: 1px solid rgba(255,255,255,0.12); */
}
.sp-admin-nav-submenu.show {
    display: block;
}

.sp-admin-nav-subgroup {
    /* No default display: none here, logic handled by parent or JS toggle */
    margin-top: 6px;
}
.sp-admin-nav-subgroup > .sp-admin-nav-subitems {
    display: none; /* Hidden by default */
    margin-left: 8px;
    padding-left: 6px;
    /* border-left: 1px solid rgba(255,255,255,0.12); */
}
.sp-admin-nav-subgroup.show > .sp-admin-nav-subitems {
    display: grid;
}

.sp-admin-nav-subitems {
    display: grid;
    gap: 4px;
    margin-top: 6px;
}
.sp-admin-group-toggle,
.sp-admin-subgroup-toggle {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    text-align: left;
}

.sp-admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.sp-admin-nav-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.sp-admin-nav-chevron {
    margin-left: auto;
    opacity: 0.8;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.sp-admin-nav-group.open > .sp-admin-group-toggle .sp-admin-nav-chevron,
.sp-admin-nav-subgroup.show > .sp-admin-subgroup-toggle .sp-admin-nav-chevron {
    transform: rotate(90deg);
}

.sp-admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateX(4px);
}

.sp-admin-nav-item:hover .sp-admin-nav-icon {
    color: #ffffff;
}

.sp-admin-nav-item.active {
    background: #ffffff;
    color: #0d47a1;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sp-admin-nav-item.active .sp-admin-nav-icon {
    color: #0d47a1;
}

.sp-admin-nav-item.active .sp-admin-nav-chevron {
    color: #0d47a1;
    opacity: 1;
}

.sp-admin-topbar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e5eaf3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.sp-admin-topbar-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 18px;
}

.sp-admin-topbar-link {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
}

.sp-admin-topbar-link:hover {
    color: #0f172a;
}

.sp-admin-settings {
    border: 1px solid #e5eaf3;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.sp-admin-settings-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 0;
    background: #ffffff;
    font-weight: 700;
    color: #0f172a;
}

.sp-admin-settings-trigger:hover {
    background: #f6f8fc;
}

.sp-admin-settings-chevron {
    transform: rotate(0deg);
    opacity: 0.7;
    font-size: 18px;
}

.sp-admin-settings-menu {
    border-top: 1px solid #e5eaf3;
    padding: 8px;
    display: grid;
    gap: 6px;
}

.sp-admin-settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    background: #f6f8fc;
}

.sp-admin-settings-item:hover {
    background: #edf2fb;
    color: #0f172a;
}

.sp-admin-burger {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e5eaf3;
    background: #ffffff;
    color: #0f172a;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sp-stat-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.admin-section .card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

@media (max-width: 991px) {
    #sidebar-wrapper {
        transform: translateX(-100%);
    }

    #admin-dashboard-wrapper.toggled #sidebar-wrapper {
        transform: translateX(0);
    }

    #page-content-wrapper {
        margin-left: 0;
    }
}

@media (min-width: 992px) {
    #admin-dashboard-wrapper.toggled #sidebar-wrapper {
        width: 84px;
    }

    #admin-dashboard-wrapper.toggled #page-content-wrapper {
        margin-left: 84px;
    }

    #admin-dashboard-wrapper.toggled .sp-admin-menu-label {
        opacity: 0;
        height: 0;
        margin: 0;
        overflow: hidden;
    }

    #admin-dashboard-wrapper.toggled .sp-admin-nav-text,
    #admin-dashboard-wrapper.toggled .sp-admin-nav-chevron {
        display: none;
    }

    #admin-dashboard-wrapper.toggled .sp-admin-nav-item {
        justify-content: center;
        padding: 12px 10px;
    }
}

/* Fix for Admin Bar and Header Overlap */
body.admin-bar .site-header.fixed-top {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header.fixed-top {
        top: 46px;
    }
}

/* Ensure Order Page has enough padding when logged in */
body.logged-in .order-page {
    padding-top: 150px !important;
}

body.logged-in .essays-page {
    padding-top: 170px !important;
}

/* Fix for mobile menu overlap and padding */
@media (max-width: 991px) {
    /* Make header relative on mobile so it pushes content down */
    .site-header.fixed-top {
        position: relative !important;
        top: 0 !important;
    }
    
    /* Reset body padding since header is no longer fixed */
    body.has-fixed-header {
        padding-top: 0 !important;
    }
    
    /* Add bottom padding to the header menu as requested */
    .navbar-collapse {
        padding-bottom: 20px;
        background: white;
    }
    
    /* Adjust specific page paddings on mobile */
    .order-page,
    body.logged-in .order-page,
    body.logged-in .essays-page {
        padding-top: 20px !important;
    }

    /* Increase spacing between menu items on mobile */
    .navbar-nav > li,
    .navbar-nav .nav-item {
        margin-bottom: 20px;
        text-align: center; /* Ensure items are centered */
    }

    .navbar-nav > li:last-child,
    .navbar-nav .nav-item:last-child {
        margin-bottom: 0;
    }
    
    /* Add extra spacing specifically for the buttons */
    .navbar-nav .btn {
        margin-top: 5px;
        width: 100%; /* Make buttons full width on mobile for better touch targets */
        display: block;
    }
}

/* Mobile Footer Alignment */
@media (max-width: 767px) {
    .footer {
        text-align: center;
    }
    
    .footer .payment-logos {
        justify-content: center;
    }
    
    /* Center social links if they are using flex or just to be sure */
    .footer .social-links {
        display: flex;
        justify-content: center;
    }

    /* Guarantees section mobile alignment */
    .guarantees-list {
        display: flex;
        flex-direction: column;
        width: auto;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .guarantees-list .col-md-3 {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 10px;
    }

    .guarantee-item {
        justify-content: flex-start !important;
        margin-bottom: 0 !important;
        text-align: left;
    }

    .guarantee-item .badge {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-right: 10px !important;
    }
}
