/* Instagram E-Book Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, rgb(31, 224, 199) 0%, rgb(20, 180, 160) 100%);
    color: #000000;
    line-height: 1.6;
    font-weight: bold;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Section */
.header {
    background: linear-gradient(135deg, rgb(208, 31, 224), rgb(180, 20, 200));
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    border: 5px solid rgb(208, 31, 224);
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header h1 {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 20px;
}

.print-btn {
    background: white;
    color: rgb(208, 31, 224);
    border: 3px solid rgb(208, 31, 224);
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.print-btn:hover {
    background: rgb(208, 31, 224);
    color: white;
    transform: scale(1.05);
}

/* Navigation Menu */
.nav-menu {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border: 5px solid rgb(208, 31, 224);
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.nav-menu h2 {
    color: rgb(208, 31, 224);
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.nav-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.nav-btn {
    background: linear-gradient(135deg, rgb(31, 224, 199), rgb(20, 180, 160));
    color: #000000;
    border: 3px solid rgb(208, 31, 224);
    padding: 15px 20px;
    font-size: 1.05em;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.nav-btn:hover {
    background: rgb(208, 31, 224);
    color: white;
    transform: translateX(10px);
}

/* Content Sections */
.content-section {
    background: white;
    padding: 35px;
    border-radius: 15px;
    border: 5px solid rgb(208, 31, 224);
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.content-section h2 {
    color: rgb(208, 31, 224);
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 4px solid rgb(208, 31, 224);
}

.content-section h3 {
    color: rgb(31, 224, 199);
    font-size: 1.7em;
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.content-section h4 {
    color: rgb(208, 31, 224);
    font-size: 1.4em;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 12px;
}

.content-section p {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Bullet Lists */
.bullet-list {
    list-style: none;
    margin-left: 20px;
    margin-bottom: 20px;
}

.bullet-list li {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.bullet-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgb(208, 31, 224);
    font-size: 1.4em;
    font-weight: bold;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    border: 4px solid rgb(208, 31, 224);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.data-table thead {
    background: linear-gradient(135deg, rgb(208, 31, 224), rgb(180, 20, 200));
    color: white;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-size: 1.1em;
    font-weight: bold;
    border: 2px solid rgb(208, 31, 224);
}

.data-table td {
    padding: 12px 15px;
    border: 2px solid rgb(208, 31, 224);
    font-size: 1.05em;
    font-weight: bold;
    background: rgb(31, 224, 199);
    color: #000000;
}

.data-table tbody tr:nth-child(even) td {
    background: rgb(25, 200, 180);
}

.data-table tbody tr:hover td {
    background: rgb(208, 31, 224);
    color: white;
    transition: all 0.3s ease;
}

/* Flowchart */
.flowchart-container {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgb(31, 224, 199) 0%, rgb(20, 180, 160) 100%);
    border: 4px solid rgb(208, 31, 224);
    border-radius: 15px;
}

.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.flow-box {
    background: white;
    color: rgb(208, 31, 224);
    padding: 18px 35px;
    border: 4px solid rgb(208, 31, 224);
    border-radius: 12px;
    font-size: 1.15em;
    font-weight: bold;
    text-align: center;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.flow-box:hover {
    transform: scale(1.05);
    background: rgb(208, 31, 224);
    color: white;
}

.flow-arrow {
    color: rgb(208, 31, 224);
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Q&A Section */
.qa-container {
    margin-top: 25px;
}

.qa-item {
    margin-bottom: 20px;
    border: 3px solid rgb(208, 31, 224);
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.qa-question {
    width: 100%;
    background: linear-gradient(135deg, rgb(31, 224, 199), rgb(20, 180, 160));
    color: #000000;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.qa-question:hover {
    background: rgb(208, 31, 224);
    color: white;
}

.toggle-icon {
    font-size: 1.3em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.qa-question.active .toggle-icon {
    transform: rotate(180deg);
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: white;
}

.qa-answer.show {
    max-height: 500px;
    padding: 20px 25px;
    border-top: 3px solid rgb(208, 31, 224);
}

.qa-answer p {
    font-size: 1.1em;
    font-weight: bold;
    line-height: 1.8;
    color: #000000;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgb(208, 31, 224), rgb(180, 20, 200));
    color: white;
    padding: 40px 30px;
    border-radius: 15px;
    border: 5px solid rgb(208, 31, 224);
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.footer h2 {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer p {
    font-size: 1.15em;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.8;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 3px solid white;
}

.copyright p {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .print-btn {
        display: none;
    }
    
    .nav-menu {
        display: none;
    }
    
    .content-section {
        page-break-inside: avoid;
        border: 2px solid #000;
        margin-bottom: 20px;
    }
    
    .qa-answer {
        max-height: none !important;
        display: block !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .subtitle {
        font-size: 1.1em;
    }
    
    .nav-list {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .content-section h2 {
        font-size: 1.7em;
    }
    
    .content-section h3 {
        font-size: 1.4em;
    }
    
    .flow-box {
        min-width: 250px;
        font-size: 1em;
    }
    
    .data-table {
        font-size: 0.9em;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 25px 15px;
    }
    
    .header h1 {
        font-size: 1.5em;
    }
    
    .content-section {
        padding: 15px;
    }
    
    .flow-box {
        min-width: 200px;
        padding: 12px 20px;
        font-size: 0.95em;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: rgb(208, 31, 224);
    color: white;
}

::-moz-selection {
    background: rgb(208, 31, 224);
    color: white;
}