/* Page Template Styles for Foreign Credential Evaluation */

/* Global fixes to prevent display issues */
body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* Container styling with proper margins and padding */
.container-fluid {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
}

/* Main content styling and animations */
.contents {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    animation: fadeInUp 0.8s ease-out;
}

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

/* Title styling */
.e-title {
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Body text optimization */
.body-text {
    line-height: 1.8;
    color: #34495e;
    text-align: justify;
    margin-bottom: 20px;
}

/* Table styling */
.table {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    background: white;
}

.table thead th {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    font-weight: 600;
    border: none;
    padding: 15px;
    text-align: center;
}

.table tbody td {
    padding: 15px;
    border-color: #ecf0f1;
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Service type cards */
.col-md-6 {
    margin-bottom: 30px;
}

.sub-title {
    color: #2c3e50;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sub-title:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.sub-title i {
    color: #3498db;
    margin-bottom: 15px;
    display: block;
}

/* Link styling */
.link-in {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px dotted #3498db;
    transition: all 0.3s ease;
}

.link-in:hover {
    color: #2980b9;
    border-bottom: 1px solid #2980b9;
    text-decoration: none;
}

/* AI link section styling */
.row:has(p:contains("Explore summary with AI")) {
    background: linear-gradient(135deg, #f1f2f6, #dfe6e9);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

.row:has(p:contains("Explore summary with AI")) a {
    display: inline-block;
    margin: 5px 10px 5px 0;
    padding: 8px 15px;
    background: white;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 14px;
}

.row:has(p:contents("Explore summary with AI")) a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Content sections */
.row {
    margin-bottom: 40px;
}

/* Collapsible content */
.panel-collapse {
    margin-top: 20px;
}

/* Modal styling */
.modal-content {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 10px 10px 0 0;
}

.modal-title {
    font-weight: 600;
}

/* Contact and image sections */
.row:has(img[alt*="FCE"]) {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 10px;
    margin: 30px 0;
}

.row:has(img[alt*="FCE"]) img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.row:has(img[alt*="FCE"]) img:hover {
    transform: scale(1.02);
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .sub-title {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .table {
        font-size: 14px;
    }
    
    /* Ensure main content displays correctly on mobile */
    .main-content-with-sidebar {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .contents {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Tablet optimization */
@media (max-width: 1200px) {
    .main-content-with-sidebar {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .container-fluid {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
    
    .contents {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Large screen optimization */
@media (min-width: 1400px) {
    .container-fluid {
        padding-left: 50px !important;
        padding-right: 50px !important;
    }
    
    .contents {
        padding-left: 30px;
        padding-right: 30px;
    }
}
