/* Custom styles for Move37 Partners */

:root {
    --primary-color: #1a365d;
    --secondary-color: #3182ce;
    --accent-color: #38a169;
    --dark-color: #2d3748;
    --light-color: #f7fafc;
    --success-color: #38a169;
    --warning-color: #d69e2e;
    --danger-color: #e53e3e;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background Image Support */
.hero-section.with-bg-image {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(41, 128, 185, 0.85) 100%), url('/static/images/main_page_A.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 60vh;
}

.hero-section.with-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section.with-bg-image .container {
    position: relative;
    z-index: 2;
}

/* Alternative background styles */
.hero-section.bg-pattern {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.95) 0%, rgba(41, 128, 185, 0.95) 100%), url('/static/images/pattern-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero-section.bg-overlay {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.8) 0%, rgba(41, 128, 185, 0.8) 100%), url('/static/images/overlay-bg.jpg');
    background-size: cover;
    background-position: center;
}

/* Custom text colors for hero section */
.hero-section.text-warning h1,
.hero-section.text-warning h2,
.hero-section.text-warning h3,
.hero-section.text-warning h4,
.hero-section.text-warning h5,
.hero-section.text-warning h6 {
    color: #ff9800 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Specific styling for the main heading */
.hero-section.text-warning .display-4 {
    color: #ff6f00 !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    font-weight: 700 !important;
}

.hero-section.text-warning p {
    color: #ffd54f !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-section.text-warning .text-warning {
    color: #ff9800 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Debug styles - remove after testing */
.hero-section.with-bg-image {
    border: 3px solid red !important;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Footer */
footer {
    margin-top: auto;
}

.social-links a {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(55, 118, 171, 0.25);
}

/* Badge Styles */
.badge {
    border-radius: 20px;
    font-weight: 500;
}

/* Alert Styles */
.alert {
    border-radius: 15px;
    border: none;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: none;
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Blog Post Styles */
.post-content h3 {
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content pre {
    border-radius: 10px;
    font-size: 0.9rem;
}

.post-content .bg-light {
    border-radius: 10px;
    border-left: 4px solid var(--warning-color);
}

/* Feature Icons */
.display-4 {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Contact Form Enhancements */
.contact-info .d-flex {
    transition: transform 0.3s ease;
}

.contact-info .d-flex:hover {
    transform: translateX(5px);
}

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(55, 118, 171, 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(55, 118, 171, 0.25);
}

/* Newsletter Section */
.bg-light {
    background-color: #f8f9fa !important;
}

/* Breadcrumb */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

/* Author Card */
.author-card {
    border-left: 4px solid var(--primary-color);
}

/* Share Buttons */
.btn-outline-primary.btn-sm {
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Related Posts */
.related-posts .card {
    border-left: 4px solid var(--primary-color);
}

/* Code Highlighting */
pre code {
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.4;
}

/* Pro Tip Box */
.pro-tip {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid var(--warning-color);
}

/* Success Message */
.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

/* Error Message */
.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
} 