/**
 * OnlineNursingWriter - Complete Main Stylesheet
 * Professional Academic Writing Platform
 */

:root {
    --primary-color: #2c7da0;
    --primary-dark: #1f5e7a;
    --primary-light: #61a5c2;
    --secondary-color: #2d6a4f;
    --secondary-dark: #1b4d3e;
    --accent-color: #e9c46a;
    --danger-color: #e76f51;
    --success-color: #2a9d8f;
    --warning-color: #f4a261;
    --info-color: #4ea8de;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-color: #e9ecef;
    
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-secondary: 'Georgia', 'Times New Roman', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44,125,160,0.3);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-success {
    background: var(--success-color);
    border-color: var(--success-color);
}

.btn-danger {
    background: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-warning {
    background: var(--warning-color);
    border-color: var(--warning-color);
    color: #fff;
}

.btn-lg {
    padding: 12px 32px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.875rem;
}

/* Top Bar */
.top-bar {
    background: var(--dark-color);
    color: #fff;
    padding: 8px 0;
    font-size: 0.875rem;
}

.top-bar a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: #fff;
}

.top-bar i {
    margin-right: 5px;
}

/* Main Navigation */
.main-nav {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-text {
    color: var(--dark-color);
}

.brand-highlight {
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 8px 0;
}

.dropdown-item {
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-calculator {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    color: var(--dark-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-calculator h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.price-display {
    background: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
}

.price-label {
    font-size: 0.875rem;
    color: var(--gray-color);
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.hero-features {
    margin-top: 30px;
}

.hero-features p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Stats Section */
.stats-section {
    background: var(--light-color);
    padding: 60px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-color);
    margin-bottom: 0;
}

/* Services Section */
.services-section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(44,125,160,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

/* How It Works Section */
.how-it-works-section {
    background: var(--light-color);
    padding: 80px 0;
}

.step-item {
    position: relative;
    padding: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.step-item h5 {
    margin-bottom: 10px;
}

.step-item p {
    color: var(--gray-color);
}

/* Why Choose Us Section */
.why-choose-section {
    padding: 80px 0;
}

.feature-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: var(--light-color);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-item h5 {
    margin-bottom: 5px;
}

.feature-item p {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--light-color);
    padding: 80px 0;
}

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
}

.testimonial-rating {
    margin-bottom: 15px;
}

.testimonial-rating i {
    color: #ffc107;
    margin-right: 2px;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--gray-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
}

.author-info h6 {
    margin-bottom: 5px;
}

.author-info p {
    color: var(--gray-color);
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-placeholder {
    height: 200px;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray-color);
}

.blog-content {
    padding: 20px;
}

.blog-meta {
    margin-bottom: 10px;
    font-size: 0.875rem;
    color: var(--gray-color);
}

.blog-meta span {
    margin-right: 15px;
}

.blog-content h5 {
    margin-bottom: 10px;
}

.blog-content h5 a {
    color: var(--dark-color);
}

.blog-content h5 a:hover {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--gray-color);
    margin-bottom: 15px;
}

.read-more {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.cta-box {
    max-width: 700px;
    margin: 0 auto;
}

.cta-box h2 {
    color: #fff;
    margin-bottom: 20px;
}

.cta-box .lead {
    margin-bottom: 30px;
}

.cta-buttons .btn-light {
    background: #fff;
    border-color: #fff;
    color: var(--primary-color);
}

.cta-buttons .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Footer */
.main-footer {
    background: var(--dark-color);
    color: #fff;
    padding-top: 60px;
}

.footer-top {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widget h4,
.footer-widget h5 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.125rem;
}

.footer-description {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.footer-contact p {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.7);
}

.footer-contact i {
    width: 20px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.newsletter-form .input-group {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.newsletter-form .form-control {
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 15px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form .btn {
    background: var(--primary-color);
    border: none;
    color: #fff;
    padding: 12px 20px;
}

.payment-methods {
    font-size: 1.5rem;
}

.payment-methods i {
    margin-right: 10px;
    color: rgba(255,255,255,0.7);
}

.footer-bottom {
    padding: 20px 0;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

.copyright,
.disclaimer {
    margin-bottom: 0;
}

/* Live Chat Button */
.live-chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.live-chat-button:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

.live-chat-button i {
    font-size: 1.5rem;
}

.chat-label {
    position: absolute;
    right: 70px;
    background: var(--dark-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.live-chat-button:hover .chat-label {
    opacity: 1;
    visibility: visible;
}

/* Live Chat Modal */
.live-chat-modal {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.chat-header {
    background: var(--primary-color);
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h6 {
    margin: 0;
    color: #fff;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.message.user {
    align-self: flex-end;
}

.message.support {
    align-self: flex-start;
}

.message-content {
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.875rem;
}

.message.user .message-content {
    background: var(--primary-color);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.message.support .message-content {
    background: #fff;
    color: var(--dark-color);
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 0.75rem;
    color: var(--gray-color);
    margin-top: 5px;
}

.chat-footer {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #e9ecef;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--dark-color);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-color);
    color: #fff;
    padding: 15px 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent a {
    color: var(--primary-light);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Badges */
.badge {
    padding: 5px 10px;
    font-weight: 500;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .services-section,
    .how-it-works-section,
    .why-choose-section,
    .testimonials-section,
    .blog-section,
    .cta-section {
        padding: 50px 0;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
    
    .live-chat-modal {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 20px;
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .main-nav,
    .footer,
    .live-chat-button,
    .whatsapp-float,
    .back-to-top,
    .cookie-consent {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
    }
}