/* Page Specific Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-gray) 100%);
    padding: 150px 0 80px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" xmlns="http://www.w3.org/2000/svg"%3E%3Cdefs%3E%3Cpattern id="a" patternUnits="userSpaceOnUse" width="60" height="60"%3E%3Cpath d="M30 30h30v30h-30z" fill="%23ffffff" fill-opacity="0.02"/%3E%3C/pattern%3E%3C/defs%3E%3Crect width="100%25" height="100%25" fill="url(%23a)"/%3E%3C/svg%3E');
}

.page-header h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item {
    color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item.active {
    color: white;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* About Page */
.about-content {
    line-height: 1.8;
    color: #555;
}

.about-feature {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.about-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-feature h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Solutions Page */
.solution-detail {
    background: white;
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.solution-detail::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    opacity: 0.05;
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.solution-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Products Page */
.product-filter {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: white;
    border: 2px solid transparent;
    padding: 10px 25px;
    margin: 5px;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    border-color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-content {
    padding: 25px;
}

.product-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
}

/* DMO Catalog Page */
.dmo-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.dmo-table table {
    width: 100%;
    border-collapse: collapse;
}

.dmo-table th {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: left;
    font-weight: 600;
}

.dmo-table td {
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.dmo-table tr:hover {
    background: var(--light-gray);
}

.dmo-table tr:last-child td {
    border-bottom: none;
}

.dmo-code {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-family: monospace;
}

/* Contact Page */
.contact-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-control {
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    padding: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(191, 33, 36, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.contact-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
    min-height: 500px;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--light-gray);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding: 20px 0;
}

.timeline-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    width: 45%;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 5px white, 0 0 0 7px var(--light-gray);
}

.timeline-date {
    position: absolute;
    top: 30px;
    font-weight: 600;
    color: var(--primary-color);
}

.timeline-item:nth-child(odd) .timeline-date {
    right: 55%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-date {
    left: 55%;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-date {
        left: 60px !important;
        top: -20px;
        text-align: left !important;
    }
}

/* Tabs */
.custom-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: white;
    border: 2px solid var(--light-gray);
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

/* Accordion */
.custom-accordion {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.accordion-item {
    border: none;
    border-bottom: 1px solid var(--light-gray);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    background: white;
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: var(--light-gray);
}

.accordion-header.active {
    background: var(--primary-color);
    color: white;
}

.accordion-content {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-content.active {
    padding: 20px 30px 30px;
    max-height: 1000px;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    background: var(--primary-color);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 20px 30px;
}

.modal-title {
    font-weight: 600;
    font-size: 1.5rem;
}

.modal-header .btn-close {
    background-color: white;
    opacity: 0.8;
    border-radius: 50%;
    padding: 0.5rem;
}

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.modal-body h6:first-child {
    margin-top: 0;
}

.modal-body p {
    text-align: justify;
    line-height: 1.8;
    color: #555;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.modal-body ul li {
    margin-bottom: 8px;
    color: #555;
}

.modal-footer {
    border-top: 1px solid #e0e0e0;
    padding: 20px 30px;
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 20px;
    }
}