* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    /* Padding-top is controlled by customizer setting in functions.php */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    z-index: 99899; /* 100 lower than admin bar (99999) */
    /* Position is controlled by customizer setting in functions.php */
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo .logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2563eb;
}

.nav-logo .logo-image {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 1rem;
}

.nav-logo .logo-image img {
    width: auto;
    max-width: none;
    display: block;
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    justify-self: start;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    display: block;
}

.site-tagline {
    font-size: 0.875rem;
    font-weight: 400;
    color: #64748b;
    margin-top: 0.125rem;
    display: block;
}

/* Fallback for when no logo is set */
.nav-logo a:not(.logo-container) {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2563eb;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #1e293b;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #64748b;
    margin-bottom: 3rem;
}

.bg-light {
    background: #f8fafc;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    margin-top: 40px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Handle single column layout when graphic is hidden */
.hero .container:not(:has(.hero-image)):not(:has(.hero-pricing)) {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

/* Fallback for browsers that don't support :has() */
.hero .container.no-graphic {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

/* Ensure pricing layout works properly */
.hero .container:has(.hero-pricing) {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-graphic {
    text-align: center;
    font-size: 15rem;
    opacity: 0.8;
}

/* Hero Pricing Card */
.hero-pricing {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    min-width: 210px;
    max-width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
    overflow-wrap: break-word;
    line-height: 1.2;
}

.pricing-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-buttons .btn {
    width: 100%;
    justify-content: center;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border-color: #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

/* Software Grid */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.software-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.software-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 1.5rem;
}

.software-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.software-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1.5rem;
}

/* Account Section */
.account-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list i {
    color: #10b981;
}

.login-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.login-form h4 {
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.login-form input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.login-form input:focus {
    outline: none;
    border-color: #2563eb;
}

.login-form p {
    text-align: center;
    margin-top: 1rem;
}

.login-form a {
    color: #2563eb;
    text-decoration: none;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #64748b;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
}

.about-graphic {
    text-align: center;
    font-size: 10rem;
    color: #e2e8f0;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #2563eb;
    width: 40px;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-group textarea {
    resize: vertical;
}



/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #2563eb;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #334155;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #2563eb;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-logo .logo-image img {
        height: 32px;
    }

    .nav-logo .site-title {
        font-size: 1.25rem;
    }

    .nav-logo .site-tagline {
        font-size: 0.75rem;
    }

    .nav-logo .logo-container {
        gap: 0.5rem;
    }

    .hero .container {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-pricing {
        order: 3;
    }

    .hero-image {
        order: 1;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-graphic {
        font-size: 6rem;
        margin-top: 1rem;
    }

    .pricing-card {
        min-width: auto;
        width: 100%;
        max-width: 240px;
        padding: 1.5rem;
    }

    .pricing-amount {
        font-size: 2rem;
        overflow-wrap: break-word;
        line-height: 1.2;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .section-title {
        font-size: 2rem;
    }

    .account-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        margin-top: 20px;
    }

    .hero .container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-pricing {
        order: 3;
    }

    .hero-image {
        order: 1;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .hero-graphic {
        font-size: 4rem;
    }

    .pricing-card {
        padding: 1.25rem;
        min-width: auto;
    }

    .pricing-amount {
        font-size: 1.8rem;
        overflow-wrap: break-word;
        line-height: 1.2;
    }

    .pricing-label {
        font-size: 0.8rem;
    }

    .hero-buttons {
        gap: 0.8rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .software-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* Old back-to-top styles removed - now using customizable return-to-top implementation */
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* Return to Top Button */
.return-to-top {
    position: fixed;
    bottom: 30px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.return-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.return-to-top.bottom-right {
    right: 30px;
}

.return-to-top.bottom-left {
    left: 30px;
}

.return-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.return-to-top:active {
    transform: translateY(-1px);
}

/* Entry Title Styling - Reduced spacing and font size */
.entry-title {
    font-size: 1.875rem; /* Reduced from 2.5rem */
    font-weight: 700;
    color: #1f2937;
    margin: 10px 0 10px 0; /* Reduced margins */
    line-height: 1.3;
}

.entry-header {
    margin-bottom: 15px; /* Reduced spacing after header */
}

/* Sidebar Styling */
.sidebar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.sidebar .widget {
    margin-bottom: 30px;
    padding: 20px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar .widget:last-child {
    margin-bottom: 0;
}

.sidebar .widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007cba;
}

.sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .widget ul li {
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar .widget ul li a {
    color: #374151;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.sidebar .widget ul li a:hover {
    color: #007cba;
    padding-left: 5px;
}

/* Navigation Menu in Sidebar */
.sidebar .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .menu li {
    margin-bottom: 0;
    border-bottom: 1px solid #e9ecef;
}

.sidebar .menu li a {
    display: block;
    padding: 12px 15px;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar .menu li a:hover,
.sidebar .menu li.current-menu-item a {
    background-color: #f8f9fa;
    color: #007cba;
    border-left-color: #007cba;
    padding-left: 20px;
}

.sidebar .menu .sub-menu {
    background-color: #f8f9fa;
    padding-left: 0;
}

.sidebar .menu .sub-menu li a {
    padding-left: 30px;
    font-size: 0.9rem;
    color: #6b7280;
}

.sidebar .menu .sub-menu li a:hover {
    padding-left: 35px;
    color: #007cba;
}

/* Widget Forms */
.sidebar .widget input[type="text"],
.sidebar .widget input[type="email"],
.sidebar .widget input[type="search"],
.sidebar .widget textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.sidebar .widget input[type="text"]:focus,
.sidebar .widget input[type="email"]:focus,
.sidebar .widget input[type="search"]:focus,
.sidebar .widget textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.sidebar .widget input[type="submit"],
.sidebar .widget button {
    background-color: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.sidebar .widget input[type="submit"]:hover,
.sidebar .widget button:hover {
    background-color: #005a87;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        margin-top: 30px;
        padding: 15px;
    }
    
    .sidebar .widget {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .return-to-top {
        bottom: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .return-to-top.bottom-right {
        right: 20px;
    }
    
    .return-to-top.bottom-left {
        left: 20px;
    }
    
    .entry-title {
        font-size: 1.5rem; /* Even smaller on mobile */
        margin: 8px 0 8px 0;
    }
}