/* Custom Styles for Dynamic Sections */

/* Hero Section */

.min-vh-50 {
    min-height: 50vh;
}

/* Gallery Section */
.gallery-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-section img {
    transition: transform 0.3s ease;
}

.gallery-section .card:hover img {
    transform: scale(1.05);
}

/* Contact Section */
.contact-section .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-section .contact-item i {
    font-size: 1.2em;
    width: 20px;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Text Section */
.text-section .content h1, 
.text-section .content h2, 
.text-section .content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.text-section .content p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.text-section .content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
        text-align: center !important;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .gallery-section .col-md-6,
    .gallery-section .col-md-4,
    .gallery-section .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .contact-form {
        margin-top: 2rem;
    }
}

/* Admin Panel Styles */
.dynamic-fields {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.dynamic-fields h6 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.repeater-field {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 1rem;
    background: #fff;
}

.repeater-item {
    margin-bottom: 1rem;
}

.repeater-item:last-child {
    margin-bottom: 0;
}

.json-editor-container {
    background: #2d3748;
    border-radius: 5px;
    padding: 1rem;
}

.json-editor-container textarea {
    background: #1a202c;
    color: #e2e8f0;
    border: 1px solid #4a5568;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
}

.custom-content-editor {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    background: #1a202c;
    color: #e2e8f0;
    border: 1px solid #4a5568;
}

.toggle-json-editor {
    margin-bottom: 1rem;
}

/* Sortable placeholder */
.sortable-placeholder {
    border: 2px dashed #007bff;
    background: #e3f2fd;
    border-radius: 5px;
    margin: 10px 0;
}

.section-item.ui-sortable-helper {
    transform: rotate(2deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.drag-handle {
    cursor: grab;
    color: #6c757d;
}

.drag-handle:active {
    cursor: grabbing;
}
