/*
 * BLOCKS.CSS - Custom Wagtail Block Styles
 * 
 * IMPORTANT: This file is loaded AFTER Tailwind CSS to ensure our custom styles
 * take precedence. All styles use high specificity selectors and !important
 * declarations to override Tailwind's utility classes.
 * 
 * CSS Loading Order:
 * 1. Tailwind CSS (CDN)
 * 2. ainnova.css (base styles)
 * 3. blocks.css (this file - custom block styles)
 */

/* Block Templates Styling */

/* Basic Blocks */
.block-title {
    font-weight: 600;
    line-height: 1.2;
}

.block-title--h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.block-title--h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.block-title--h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.block-title--h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Feature Grid Block Styles */
.feature-grid-block {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 3rem;
    color: #007bff;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #007bff;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.feature-link {
    margin-top: auto;
}

.feature-link .btn {
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.feature-link .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Responsive adjustments for feature grid */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-icon i {
        font-size: 2.5rem;
        width: 60px;
        height: 60px;
        line-height: 60px;
    }
    
    .feature-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .feature-grid-block {
        padding: 2rem 0;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .feature-icon i {
        font-size: 2rem;
        width: 50px;
        height: 50px;
        line-height: 50px;
    }
}

/* Animation for feature items */
.feature-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-item:nth-child(6) { animation-delay: 0.6s; }

/* Touch device hover effect */
.feature-item.touch-hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

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

/* Contact Form Block Styles - High Specificity to Override Tailwind */
body .contact-form-block,
html .contact-form-block,
.contact-form-block {
    padding: 4rem 0 !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

body .contact-form-header,
html .contact-form-header,
.contact-form-header {
    text-align: center !important;
    margin-bottom: 3rem !important;
}

body .contact-form-title,
html .contact-form-title,
.contact-form-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #212529 !important;
    margin-bottom: 1rem !important;
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

body .contact-form-description,
html .contact-form-description,
.contact-form-description {
    font-size: 1.1rem !important;
    color: #6c757d !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
}

body .contact-form,
html .contact-form,
.contact-form {
    max-width: 600px !important;
    margin: 0 auto !important;
    background: white !important;
    padding: 2.5rem !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

body .form-control,
html .form-control,
.form-control {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    background: #f8f9fa !important;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-control:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.form-control:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

/* Form Validation States */
.form-control.is-valid {
    border-color: #28a745;
    background-color: #f8fff9;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form-submit {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    color: white;
}

.contact-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #0056b3, #004085);
}

.contact-form-submit:active {
    transform: translateY(0);
}

/* Form Style Variations */
.contact-form--minimal {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

.contact-form--minimal .form-control {
    border-radius: 0;
    border-bottom: 2px solid #e9ecef;
    background: transparent;
    padding: 0.5rem 0;
}

.contact-form--minimal .form-control:focus {
    border-bottom-color: #007bff;
    box-shadow: none;
}

.contact-form--card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    padding: 3rem;
}

.contact-form--card .contact-form-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* Success and Error Messages */
.contact-form-success,
.contact-form-error {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    animation: slideInUp 0.5s ease-out;
}

.contact-form-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.contact-form-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.success-message,
.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.success-message i {
    font-size: 1.5rem;
    color: #28a745;
}

.error-message i {
    font-size: 1.5rem;
    color: #dc3545;
}

.success-message p,
.error-message p {
    margin: 0;
    font-weight: 500;
}

/* Loading State */
.contact-form.loading .contact-form-submit {
    position: relative;
    color: transparent;
}

.contact-form.loading .contact-form-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .contact-form-block {
        padding: 2rem 0;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-form-title {
        font-size: 2rem;
    }
    
    .contact-form--card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .contact-form-title {
        font-size: 1.75rem;
    }
    
    .contact-form-submit {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Title Block Styles */
.title-block {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1f2937; /* gray-800 */
}

.title-block--h1 {
    font-size: 3rem; /* 48px */
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.title-block--h2 {
    font-size: 2.25rem; /* 36px */
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    position: relative;
}

.title-block--h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 2px;
}

.title-block--h3 {
    font-size: 1.875rem; /* 30px */
    font-weight: 600;
    color: #374151; /* gray-700 */
    margin-bottom: 1rem;
}

.title-block--h4 {
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    color: #4b5563; /* gray-600 */
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.content-heading {
    font-weight: 600;
    line-height: 1.3;
}

.content-heading--h2 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

.content-heading--h3 {
    font-size: 1.5rem;
    margin-bottom: 0.875rem;
}

.content-heading--h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.content-heading--h5 {
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
}

.content-heading--h6 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.rich-text-content {
    line-height: 1.6;
}

.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.rich-text-content p {
    margin-bottom: 1rem;
}

.rich-text-content ul,
.rich-text-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.rich-text-content li {
    margin-bottom: 0.25rem;
}

.rich-text-content a {
    color: #2563eb;
    text-decoration: underline;
}

.rich-text-content a:hover {
    color: #1d4ed8;
}

/* Media Blocks */
.image-block {
    margin-bottom: 1.5rem;
}

.image-block--left {
    float: left;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.image-block--right {
    float: right;
    margin-left: 1rem;
    margin-bottom: 0.5rem;
}

.image-block--center {
    text-align: center;
}

.image-with-caption {
    margin-bottom: 2rem;
}

.image-with-caption--left {
    float: left;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.image-with-caption--right {
    float: right;
    margin-left: 1rem;
    margin-bottom: 0.5rem;
}

.image-with-caption--center {
    text-align: center;
}

.image-with-caption--full {
    width: 100%;
}

.image-caption {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Layout Blocks */
.card-block {
    transition: all 0.3s ease;
}

.card-block:hover {
    transform: translateY(-2px);
}

.card-image img {
    transition: transform 0.3s ease;
}

.card-block:hover .card-image img {
    transform: scale(1.05);
}

.card-title {
    color: #111827;
    font-weight: 600;
    line-height: 1.3;
}

.card-text {
    line-height: 1.5;
}

.card-link a {
    transition: color 0.2s ease;
}

.card-grid-block {
    margin-bottom: 2rem;
}

/* Interactive Blocks */
.call-to-action-block {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.cta-heading {
    font-weight: 700;
    line-height: 1.2;
}

.cta-text {
    line-height: 1.6;
}

.cta-text p {
    margin-bottom: 0.5rem;
}

.cta-button a {
    transition: all 0.2s ease;
}

.cta-button a:hover {
    transform: translateY(-1px);
}

/* Content Blocks */
.quote-block {
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin: 2rem 0;
    background-color: #f9fafb;
    border-radius: 0 0.5rem 0.5rem 0;
}

.quote-content {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.quote-attribution {
    font-weight: 500;
    color: #6b7280;
}

.code-block {
    margin: 2rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.code-header {
    background-color: #1f2937;
    color: white;
    padding: 0.5rem 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    font-weight: 500;
}

.code-content {
    background-color: #111827;
    color: #10b981;
    padding: 1rem;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.embed-block {
    margin: 2rem 0;
}

.embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.embed-title {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.5rem;
}

.raw-html-block {
    margin: 2rem 0;
}

.raw-html-warning {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
}

.raw-html-content {
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 1rem;
    background-color: #f9fafb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .block-title--h1 {
        font-size: 2rem;
    }
    
    .block-title--h2 {
        font-size: 1.75rem;
    }
    
    .content-heading--h2 {
        font-size: 1.5rem;
    }
    
    .call-to-action-block {
        padding: 1.5rem;
    }
    
    .cta-heading {
        font-size: 1.75rem;
    }
    
    .card-grid-block .grid {
        grid-template-columns: 1fr;
    }
    
    .title-block--h1 {
        font-size: 2.25rem; /* 36px on mobile */
    }
    
    .title-block--h2 {
        font-size: 1.875rem; /* 30px on mobile */
    }
    
    .title-block--h3 {
        font-size: 1.5rem; /* 24px on mobile */
    }
    
    .title-block--h4 {
        font-size: 1.25rem; /* 20px on mobile */
    }
}

/* Clear floats */
.clear-both {
    clear: both;
}

/* Link Block */
.link-block {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.link-block:hover {
    color: #1d4ed8;
}

.link-block svg {
    margin-left: 0.25rem;
    transition: transform 0.2s ease;
}

.link-block:hover svg {
    transform: translateX(2px);
} 

/* CSS Reset for Form Elements - Override Tailwind Base Styles */
body .contact-form *,
html .contact-form *,
.contact-form * {
    box-sizing: border-box !important;
}

body .contact-form input,
html .contact-form input,
.contact-form input,
body .contact-form textarea,
html .contact-form textarea,
.contact-form textarea,
body .contact-form button,
html .contact-form button,
.contact-form button {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

body .contact-form label,
html .contact-form label,
.contact-form label {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: inherit !important;
    color: inherit !important;
}

/* Form Row and Groups */
body .form-row,
html .form-row,
.form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

body .form-group,
html .form-group,
.form-group {
    margin-bottom: 1.5rem !important;
} 

/* Social Media Block Styles */
.social-media-block {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.social-media-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.social-media-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-media-description {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.social-media-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-media-item {
    transition: transform 0.3s ease;
}

.social-media-item:hover {
    transform: translateY(-3px);
}

/* Social Media Link Styles */
.social-media-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #495057;
    padding: 1rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-width: 100px;
}

.social-media-link:hover {
    color: #007bff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
    text-decoration: none;
}

.social-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.social-media-link:hover .social-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: #007bff;
}

.social-platform {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* Layout Variations */
.social-media--horizontal .social-media-links {
    flex-direction: row;
    gap: 1rem;
}

.social-media--horizontal .social-media-link {
    flex-direction: row;
    min-width: auto;
    padding: 0.75rem 1.5rem;
}

.social-media--horizontal .social-icon {
    margin-bottom: 0;
    margin-right: 0.75rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
}

.social-media--vertical .social-media-links {
    flex-direction: column;
    gap: 1rem;
}

.social-media--vertical .social-media-link {
    min-width: 200px;
}

.social-media--grid .social-media-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.social-media--grid .social-media-link {
    min-width: auto;
}

/* Platform-specific colors */
.social-link--facebook:hover {
    color: #1877f2;
    border-color: #1877f2;
}

.social-link--facebook:hover .social-icon {
    background: linear-gradient(135deg, #1877f2, #0d6efd);
    border-color: #1877f2;
}

.social-link--twitter:hover {
    color: #1da1f2;
    border-color: #1da1f2;
}

.social-link--twitter:hover .social-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    border-color: #1da1f2;
}

.social-link--linkedin:hover {
    color: #0077b5;
    border-color: #0077b5;
}

.social-link--linkedin:hover .social-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
    border-color: #0077b5;
}

.social-link--instagram:hover {
    color: #e4405f;
    border-color: #e4405f;
}

.social-link--instagram:hover .social-icon {
    background: linear-gradient(135deg, #e4405f, #c13584);
    border-color: #e4405f;
}

.social-link--youtube:hover {
    color: #ff0000;
    border-color: #ff0000;
}

.social-link--youtube:hover .social-icon {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-color: #ff0000;
}

.social-link--github:hover {
    color: #333;
    border-color: #333;
}

.social-link--github:hover .social-icon {
    background: linear-gradient(135deg, #333, #000);
    border-color: #333;
}

.social-link--discord:hover {
    color: #5865f2;
    border-color: #5865f2;
}

.social-link--discord:hover .social-icon {
    background: linear-gradient(135deg, #5865f2, #4752c4);
    border-color: #5865f2;
}

.social-link--telegram:hover {
    color: #0088cc;
    border-color: #0088cc;
}

.social-link--telegram:hover .social-icon {
    background: linear-gradient(135deg, #0088cc, #006699);
    border-color: #0088cc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-media-block {
        padding: 2rem 0;
    }
    
    .social-media-title {
        font-size: 1.75rem;
    }
    
    .social-media-links {
        gap: 1rem;
    }
    
    .social-media-link {
        padding: 0.75rem;
        min-width: 80px;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
    }
    
    .social-media--grid .social-media-links {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .social-media-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .social-media-link {
        min-width: 200px;
    }
    
    .social-media--horizontal .social-media-links {
        flex-direction: column;
    }
    
    .social-media--horizontal .social-media-link {
        flex-direction: row;
        min-width: 200px;
    }
} 

/* Testimonial Block Styles */
.testimonial-grid-block {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-item {
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
}

/* Individual Testimonial Block */
.testimonial-block {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.testimonial-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Quote Section */
.testimonial-quote {
    position: relative;
    margin: 0 0 2rem 0;
    padding: 0;
    border: none;
    font-style: italic;
}

.quote-icon {
    color: #007bff;
    font-size: 1.5rem;
    opacity: 0.3;
    position: absolute;
}

.quote-icon:first-child {
    top: -0.5rem;
    left: -0.5rem;
}

.quote-icon:last-child {
    bottom: -0.5rem;
    right: -0.5rem;
}

.testimonial-quote p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
    margin: 0;
    padding: 1rem 0;
    text-align: center;
    font-weight: 500;
}

/* Author Section */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.author-avatar {
    flex-shrink: 0;
}

.avatar-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.author-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #6c757d;
}

.author-title {
    font-weight: 600;
    color: #495057;
}

.separator {
    color: #adb5bd;
    font-weight: 300;
}

.author-company {
    color: #007bff;
    font-weight: 500;
}

/* Testimonial Grid Layout Variations */
.testimonial-grid--2-columns {
    grid-template-columns: repeat(2, 1fr);
}

.testimonial-grid--3-columns {
    grid-template-columns: repeat(3, 1fr);
}

.testimonial-grid--4-columns {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .testimonial-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .testimonial-grid-block {
        padding: 2rem 0;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 0 1rem;
    }
    
    .testimonial-block {
        padding: 1.5rem;
    }
    
    .testimonial-quote p {
        font-size: 1rem;
        padding: 0.75rem 0;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
    }
    
    .author-name {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .testimonial-grid {
        margin: 0 0.5rem;
    }
    
    .testimonial-block {
        padding: 1rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .author-info {
        text-align: center;
    }
    
    .author-details {
        justify-content: center;
    }
}

/* Animation for testimonials */
.testimonial-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.testimonial-item:nth-child(1) { animation-delay: 0.1s; }
.testimonial-item:nth-child(2) { animation-delay: 0.2s; }
.testimonial-item:nth-child(3) { animation-delay: 0.3s; }
.testimonial-item:nth-child(4) { animation-delay: 0.4s; }
.testimonial-item:nth-child(5) { animation-delay: 0.5s; }
.testimonial-item:nth-child(6) { animation-delay: 0.6s; }

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

/* FAQ Block Styles */
.faq-block {
    padding: 3rem 0;
    background: #ffffff;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.faq-description {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* FAQ Item Styles */
.faq-item-block {
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item-block:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
}

.faq-toggle {
    background: none;
    border: none;
    color: #007bff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-toggle:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: scale(1.1);
}

.faq-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(45deg);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer[aria-hidden="false"] {
    max-height: 500px;
}

.answer-content {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #e9ecef;
    line-height: 1.6;
    color: #495057;
}

/* FAQ Style Variations */
.faq-style-accordion .faq-item-block {
    margin-bottom: 0.5rem;
}

.faq-style-list .faq-item-block {
    border: none;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0;
}

.faq-style-list .faq-question {
    background: transparent;
    padding: 1rem 0;
}

.faq-style-list .faq-answer {
    padding: 0 0 1rem 0;
}

.faq-style-list .answer-content {
    padding: 0;
    border-top: none;
}

.faq-style-cards .faq-item-block {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
}

.faq-style-cards .faq-question {
    background: white;
    border-bottom: 1px solid #e9ecef;
}

/* Feature Block Styles */
.feature-block {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-content {
    text-align: center;
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 3rem;
    color: #007bff;
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-text {
    flex: 1;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.feature-description {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.feature-link {
    margin-top: auto;
}

.feature-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid #007bff;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.feature-cta:hover {
    background: #007bff;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.feature-cta i {
    transition: transform 0.3s ease;
}

.feature-cta:hover i {
    transform: translateX(3px);
}

/* Newsletter Signup Block Styles */
.newsletter-signup-block {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    text-align: center;
    color: white;
    margin: 2rem 0;
}

.newsletter-header {
    margin-bottom: 2rem;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.newsletter-description {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-email {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-email:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-submit {
    background: #28a745;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-submit:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.privacy-notice {
    margin-top: 1rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

.newsletter-message {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.success-message {
    margin: 0;
    font-weight: 600;
}

/* Responsive Design for New Blocks */
@media (max-width: 768px) {
    .faq-title {
        font-size: 2rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .question-text {
        font-size: 1rem;
    }
    
    .feature-block {
        padding: 1.5rem;
    }
    
    .feature-icon i {
        font-size: 2.5rem;
    }
    
    .newsletter-signup-block {
        padding: 2rem 1rem;
    }
    
    .newsletter-title {
        font-size: 1.5rem;
    }
    
    .form-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .newsletter-email,
    .newsletter-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .faq-block {
        padding: 2rem 0;
    }
    
    .faq-header {
        margin-bottom: 2rem;
    }
    
    .faq-title {
        font-size: 1.75rem;
    }
    
    .feature-block {
        padding: 1rem;
    }
    
    .newsletter-signup-block {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
    }
    
    .newsletter-title {
        font-size: 1.25rem;
    }
} 