/* ========= Maintain Page Styles ========= */
/* Matching site palette: 
   - Dark: #16213e
   - Accent: #00b4d8 (cyan)
   - Background: #f8f6f4
   - Cards: #ffffff
   - Text: #2c3e50
*/

/* ========= Base Styles ========= */
.maintain-hero {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.maintain-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.maintain-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

/* ========= Container ========= */
.maintain-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* ========= Table of Contents ========= */
.toc-section {
    background: white;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.toc-section h2 {
    color: #16213e;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.toc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.toc-links a {
    background: #f8f6f4;
    color: #2c3e50;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.toc-links a:hover {
    background: #00b4d8;
    color: white;
    border-color: #00b4d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,180,216,0.3);
}

/* ========= Topic Sections ========= */
.topic-section {
    margin-bottom: 50px;
}

.topic-section h2 {
    text-align: center;
    color: #16213e;
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #00b4d8;
    display: inline-block;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

/* ========= Cards Grid ========= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.topic-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid #00b4d8;
}

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

.topic-card h3 {
    color: #16213e;
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.topic-card h3::before {
    content: "▸";
    color: #00b4d8;
    font-size: 1.1rem;
}

.topic-card p {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

/* ========= Best Practices ========= */
.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.practice-item {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border-left: 4px solid #16213e;
}

.practice-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.practice-number {
    background: #00b4d8;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.practice-item h3 {
    color: #16213e;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.practice-item p {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

/* ========= Responsive Design ========= */
@media (max-width: 768px) {
    .maintain-hero {
        padding: 40px 15px;
    }
    
    .maintain-hero h1 {
        font-size: 1.8rem;
    }
    
    .maintain-hero p {
        font-size: 1rem;
    }
    
    .maintain-container {
        padding: 0 15px 40px;
    }
    
    .cards-grid,
    .practices-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .topic-section h2 {
        font-size: 1.6rem;
    }
    
    .toc-links {
        flex-direction: column;
    }
    
    .toc-links a {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .maintain-hero h1 {
        font-size: 1.5rem;
    }
    
    .topic-card,
    .practice-item {
        padding: 20px;
    }
}
