/* Details Pages Styles for parodont.ch subpages */

/* Page-specific Content Layout */
.content-row {
    display: flex;
    padding: 40px 0;
}

.side-col {
    width: 16.66%;
}

.main-col {
    width: 650px;
    margin: auto;
}

h1 {
    font-size: 28px;
    font-weight: 300;
    color: #333;
    margin-top: 50px;
    margin-bottom: 20px;
}

p.lead {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 30px;
}

/* Slim Accordion */
.accordion {
    margin-bottom: 40px;
}

.acc-item {
    margin-bottom: 15px;
    background: #f9f9f9;
    border: 1px solid #ededed;
}

.acc-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.3s;
}

.acc-header:hover {
    background: #f1f1f1;
}

.acc-icon {
    width: 24px;
    height: 24px;
    background: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 14px;
    flex-shrink: 0;
}

.acc-title {
    color: var(--primary-blue);
    font-size: 18px;
    font-weight: 300;
}

.acc-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    padding: 0 20px;
}

.acc-item.active .acc-content {
    max-height: 1000px;
    /* Increased to accommodate longer content */
    padding-bottom: 20px;
    font-size: 17px;
    font-weight: 300;
}

.acc-item.active p {
    padding-left: 40px;
}

.acc-item.active .acc-icon::before {
    content: "\f068";
    /* fa-minus */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.acc-icon::before {
    content: "\2b";
    /* plus */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.btn-more {
    display: inline-block;
    margin-top: 15px;
    margin-left: 40px;
    background-color: #00274d;
    color: white !important;
    padding: 10px 30px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.btn-more:hover {
    background-color: #003d7a;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 39, 77, 0.2);
}

/* Article Sections */
.article-section {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 50px;
}

.section-intro {
    font-size: 19px;
    margin-bottom: 25px;
    color: #444;
    line-height: 1.5;
}

.article-section h2 {
    font-size: 22px;
    font-weight: 400;
    color: #333;
    margin-bottom: 20px;
}

.img-container {
    margin: 30px 0;
    text-align: center;
}

.img-container img {
    max-width: 95%;
    height: auto;
    box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.3);
}

.separator {
    margin: 70px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8c8c8c;
}

.separator::before,
.separator::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #8c8c8c;
}

.separator i {
    margin: 0 15px;
}

@media (max-width: 900px) {
    .side-col {
        display: none;
    }

    .main-col {
        padding: 0 20px 40px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    h1 {
        font-size: 26px;
    }
}

/* License Info Section */
.license-container {
    margin: 60px 0 40px 0;
    padding-top: 40px;
    border-top: 1.5px solid #ededed;
}

.license-content {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    font-weight: 300;
}

.license-content p {
    margin-bottom: 12px;
}

.license-content a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: opacity 0.2s;
}

.license-content a:hover {
    opacity: 0.8;
}

.license-badge {
    margin-top: 20px;
}

.license-badge img {
    height: 31px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.license-badge a:hover img {
    opacity: 1;
}

/* Sub-Accordion for Self-Test */
.sub-accordion {
    margin-top: 20px;
    border-left: 3px solid #ededed;
    padding-left: 20px;
}

.sub-accordion .acc-header {
    background: #fff;
    padding: 10px 15px;
}

.sub-accordion .acc-title {
    font-size: 16px;
}

/* Info Downloads */
.info-downloads {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.download-block {
    flex: 1;
}

.download-block h3 {
    font-size: 20px;
    font-weight: 400;
    color: #444;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-block ul {
    list-style: none;
    padding: 0;
}

.download-block li {
    margin-bottom: 12px;
}

.download-block a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.2s;
}

.download-block a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .info-downloads {
        flex-direction: column;
        gap: 30px;
    }
}