/* MIDC Frontend Styles */

.midc {
    padding: 60px 0;
}

.content-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

/* Typography */
.content-box h1,
.content-box h2,
.content-box h3,
.content-box h4,
.content-box h5,
.content-box h6 {
    color: #2c3e50;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.content-box h1 {
    font-size: 2.5rem;
    color: #89287f;
}

.content-box h2 {
    font-size: 2rem;
    color: #89287f;
}

.content-box h3 {
    font-size: 1.75rem;
}

.content-box h4 {
    font-size: 1.5rem;
}

.content-box p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
    font-size: 1.05rem;
}

.content-box strong {
    font-weight: 600;
    color: #2c3e50;
}

/* Lists */
.content-box ul,
.content-box ol {
    margin-left: 30px;
    margin-bottom: 25px;
    line-height: 1.8;
}

.content-box li {
    margin-bottom: 12px;
    color: #555;
}

/* Images */
.content-box img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: block;
}

.content-box figure {
    margin: 25px 0;
    text-align: center;
}

/* Tables */
.content-box table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.content-box table thead {
    background: #89287f;
    color: white;
}

.content-box table th,
.content-box table td {
    border: 1px solid #e0e0e0;
    padding: 15px;
    text-align: left;
}

.content-box table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.content-box table tbody tr:hover {
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}

/* Blockquotes */
.content-box blockquote {
    border-left: 5px solid #89287f;
    padding: 20px 30px;
    margin: 30px 0;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
    border-radius: 5px;
}

/* Links */
.content-box a {
    color: #89287f;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.content-box a:hover {
    color: #6b1f63;
    text-decoration: underline;
}

/* HR */
.content-box hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 40px 0;
}

/* Code */
.content-box pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
}

.content-box code {
    background: #f4f4f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #c7254e;
}

/* Image Alignment */
.content-box img.image-style-align-left {
    float: left;
    margin-right: 20px;
    max-width: 50%;
}

.content-box img.image-style-align-right {
    float: right;
    margin-left: 20px;
    max-width: 50%;
}

/* No Data Message */
.midc .text-center i.display-1 {
    font-size: 5rem;
    margin-bottom: 20px;
}

.midc .btn-primary {
    background: #89287f;
    border-color: #89287f;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.midc .btn-primary:hover {
    background: #6b1f63;
    border-color: #6b1f63;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(137, 40, 127, 0.3);
}

.midc .btn-primary i {
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 992px) {
    .content-box {
        padding: 30px;
    }
    
    .content-box h1 {
        font-size: 2rem;
    }
    
    .content-box img.image-style-align-left,
    .content-box img.image-style-align-right {
        float: none;
        margin: 20px 0;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .midc {
        padding: 40px 0;
    }
    
    .content-box {
        padding: 25px 20px;
    }
    
    .content-box h1 {
        font-size: 1.75rem;
    }
    
    .content-box h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .content-box {
        padding: 20px 15px;
    }
    
    .content-box h1 {
        font-size: 1.5rem;
    }
    
    .midc .btn-primary {
        display: block;
        width: 100%;
    }
}

/* Animation */
.content-box {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clear floats */
.content-box::after {
    content: "";
    display: table;
    clear: both;
}