/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--background-light) 0%, #e0f2fe 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.refresh-content-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-content-btn:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
}

.refresh-content-btn i {
    font-size: 0.8rem;
}

.last-updated {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.last-updated small {
    color: var(--text-secondary);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-placeholder {
    width: 400px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 4rem;
    box-shadow: var(--shadow-lg);
}

.hero-image-placeholder p {
    font-size: 1.2rem;
    margin-top: 1rem;
    font-weight: 500;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--background-white);
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--background-white);
    padding: 2rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Responsive design for mobile devices */
@media (max-width: 768px) {
    .feature-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .feature-icon {
        margin-bottom: 0.5rem;
    }
    
    .feature-title {
        font-size: 1.3rem;
    }
    
    .feature-description {
        font-size: 1rem;
    }
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Team section removed */

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-placeholder {
    width: 350px;
    height: 250px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 3rem;
    box-shadow: var(--shadow-lg);
}

.about-image-placeholder p {
    font-size: 1.1rem;
    margin-top: 1rem;
    font-weight: 500;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background: var(--background-white);
    position: relative;
}

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

.news-section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.news-section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.news-scroll-indicator {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.news-scroll-indicator i {
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.news-grid {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-top: 3rem;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--background-light);
}

/* Only show horizontal scroll when needed */
.news-grid.has-multiple-articles {
    overflow-x: auto;
}

/* Custom scrollbar for webkit browsers */
.news-grid::-webkit-scrollbar {
    height: 8px;
}

.news-grid::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 4px;
}

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

.news-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.news-card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    min-width: 350px;
    flex-shrink: 0;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.news-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 3rem;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.news-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Expandable News Cards */
.news-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0;
}

.news-title {
    flex: 1;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.news-expand-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.news-expand-btn:hover {
    background: var(--background-light);
    transform: scale(1.1);
}

.news-expand-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.news-expand-btn:hover i {
    color: var(--primary-dark);
}

.news-full-content {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    animation: fadeIn 0.3s ease;
}

.news-full-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

.news-card.expanded {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

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

/* Enhanced news card interactions */
.news-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-card.expanded:hover {
    transform: scale(1.02);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--background-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-details {
    display: grid;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.contact-form {
    background: var(--background-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-button:hover {
    background: var(--primary-dark);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--text-secondary);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .hero-image-placeholder,
    .about-image-placeholder {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-card,
    .news-card {
        padding: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

.hero-content,
.feature-card,
.about-content,
.news-card,
.contact-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Loading Indicator */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--background-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Hover effects for interactive elements */
.nav-link,
.cta-button,
.submit-button,
.social-links a {
    transition: var(--transition);
}

.nav-link:hover,
.cta-button:hover,
.submit-button:hover,
.social-links a:hover {
    transform: translateY(-2px);
}

/* Refresh button styles */
.refresh-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-button:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.refresh-button i {
    font-size: 1rem;
}

/* Muuri Grid-Based WYSIWYG Editor Styles */
.muuri-editor {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    overflow: hidden;
}

.muuri-editor h3 {
    background: var(--primary-color);
    color: white;
    margin: 0;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
}

.editor-description {
    padding: 1rem 1.5rem;
    margin: 0;
    color: var(--text-secondary);
    background: var(--background-light);
    border-bottom: 1px solid var(--border-color);
}

.editor-toolbar {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--background-light);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.tool-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.tool-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.editor-workspace {
    padding: 1.5rem;
    min-height: 400px;
    background: var(--background-white);
}

.grid-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: var(--border-radius);
}

/* Muuri Grid Item Styles */
.muuri-item {
    width: 300px;
    height: 200px;
    margin: 10px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    cursor: move;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.muuri-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.muuri-item.muuri-item-dragging {
    opacity: 0.8;
    transform: rotate(5deg);
    z-index: 1000;
}

.muuri-item.muuri-item-releasing {
    opacity: 0.6;
}

.muuri-item-content {
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.content-block-type {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.content-block-controls {
    display: flex;
    gap: 0.25rem;
}

.content-control-btn {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.content-control-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.content-control-btn.delete {
    background: #ef4444;
}

.content-control-btn.delete:hover {
    background: #dc2626;
}

.content-block-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.text-block-input {
    width: 100%;
    min-height: 80px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    resize: none;
    font-family: inherit;
}

.text-block-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.image-block-upload {
    width: 100%;
    height: 80px;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--background-light);
}

.image-block-upload:hover {
    border-color: var(--primary-color);
    background: var(--background-white);
}

.image-block-upload i {
    font-size: 2rem;
    color: var(--text-secondary);
}

.service-block-form {
    display: grid;
    gap: 0.5rem;
}

.service-block-form input,
.service-block-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-family: inherit;
}

.service-block-form input:focus,
.service-block-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.service-block-form textarea {
    min-height: 60px;
    resize: vertical;
}

.editor-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1.5rem;
    background: var(--background-light);
    border-top: 1px solid var(--border-color);
}

.save-layout-btn,
.load-layout-btn,
.preview-layout-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.save-layout-btn:hover,
.load-layout-btn:hover,
.preview-layout-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.load-layout-btn {
    background: var(--secondary-color);
}

.load-layout-btn:hover {
    background: var(--text-primary);
}

.preview-layout-btn {
    background: #10b981;
}

.preview-layout-btn:hover {
    background: #059669;
}



.workspace-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.content-workspace {
    min-height: 400px;
    position: relative;
}

/* Draggable Content Elements */


/* Text Element */
.text-element {
    min-height: 60px;
}

.text-element .text-content {
    outline: none;
    min-height: 40px;
    padding: 0.5rem;
    border: 1px solid transparent;
    border-radius: 3px;
    transition: border-color 0.2s;
}

.text-element .text-content:focus {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

/* Image Element */
.image-element {
    text-align: center;
}

.image-element img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.image-element .image-upload {
    padding: 2rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background-light);
    cursor: pointer;
    transition: var(--transition);
}

.image-element .image-upload:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

/* Icon Element */
.icon-element {
    text-align: center;
    padding: 2rem;
}

.icon-element .icon-display {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.icon-element .icon-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.icon-selector button {
    padding: 0.5rem;
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
}

.icon-selector button:hover {
    background: var(--primary-color);
    color: white;
}

/* Service Element */
.service-element {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--background-white);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin: 1rem 0;
}

.service-element:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-element .service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.service-element .service-content {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

.service-element .service-title {
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-size: 1.3rem;
    line-height: 1.3;
}

.service-element .service-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.wysiwyg-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.save-wysiwyg-btn,
.load-wysiwyg-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.save-wysiwyg-btn:hover,
.load-wysiwyg-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.load-wysiwyg-btn {
    background: var(--secondary-color);
}

.load-wysiwyg-btn:hover {
    background: var(--text-primary);
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.notification {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    animation: slideInRight 0.3s ease-out;
}

.notification.success {
    border-left-color: #10b981;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.info {
    border-left-color: var(--primary-color);
}

.notification-content {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-message {
    color: var(--text-primary);
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    margin-left: 1rem;
}

.notification-close:hover {
    color: var(--text-primary);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Admin Panel Styles */
.admin-panel {
    min-height: 100vh;
    background: var(--background-light);
}

.admin-header {
    background: var(--background-white);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.5rem;
}

.logout-button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.logout-button:hover {
    background: var(--text-primary);
}

.admin-nav {
    background: var(--background-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 0;
}

.nav-tab {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-tab:hover {
    color: var(--primary-color);
    background: var(--background-light);
}

.nav-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--background-light);
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.content-sections {
    max-width: 1200px;
    margin: 0 auto;
}

.section-editor {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    overflow: hidden;
}

.section-editor h3 {
    background: var(--primary-color);
    color: white;
    margin: 0;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
}

.editor-group {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.editor-group:last-child {
    border-bottom: none;
}

.editor-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.editor-group input,
.editor-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.editor-group input:focus,
.editor-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.editor-group textarea {
    min-height: 100px;
    resize: vertical;
}

.save-section {
    text-align: center;
    padding: 2rem;
}

.save-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.save-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.add-feature-btn,
.add-article-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.add-feature-btn:hover,
.add-article-btn:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
}

/* Mobile-specific news enhancements */
@media (max-width: 768px) {
    .news-grid {
        gap: 1rem;
        padding: 0.5rem 0;
        scroll-snap-type: x mandatory;
    }
    
    .news-card {
        min-width: 280px;
        scroll-snap-align: start;
        margin-right: 1rem;
    }
    
    .news-scroll-indicator {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .news-scroll-indicator span {
        display: none;
    }
    
    .news-scroll-indicator i {
        font-size: 1.2rem;
    }
    
    /* Mobile expandable news cards */
    .news-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .news-expand-btn {
        align-self: flex-end;
        width: 28px;
        height: 28px;
    }
    
    .news-full-content {
        margin: 0.5rem 0;
        padding: 0.75rem;
    }
    
    .news-full-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Single article layout - match page width and margins */
.news-grid:not(.has-multiple-articles) {
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.news-grid:not(.has-multiple-articles) .news-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* Multiple articles layout - maintain horizontal scroll */
.news-grid.has-multiple-articles {
    justify-content: flex-start;
}

.news-grid.has-multiple-articles .news-card {
    max-width: 400px;
    min-width: 350px;
}

/* News Content Formatting */
.news-full-text {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    color: #374151 !important;
    font-family: inherit !important;
}

/* Preserve paragraph spacing from admin panel */
.news-full-text p {
    margin: 0 0 1rem !important;
}

.news-full-text p:last-child {
    margin-bottom: 0 !important;
}

/* Ensure proper text flow */
.news-full-content {
    width: 100% !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    box-sizing: border-box !important;
}
