/* Core styling */
@media (max-width: 455px) {
    .ast-container, .ast-container-fluid {
        padding-right: 0px !important;
    }
}

p {
    margin-bottom: 10px;
}

strong {
    font-weight: 400 !important;
}

.site-content {
    background-color: #f0f5fa;
}

/* Profile layout */
.profile-wrapper {
    width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 545px) {
    .profile-wrapper {
        margin: -8px;
    }
    .profile-content {
        padding: 15px !important;
    }
}

.profile-header {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.profile-content {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* Profile content sections */
.main-content-area {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.teacher-image-section {
    flex: 0 0 25%;
    text-align: left;
}

.teacher-image-section img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.teacher-info-section {
    flex: 0 0 75%;
    padding: 0 10px 10px 20px;
}

.teacher-info-section p {
    font-size: var(--theme-font-size, 17px);
    color: #333;
    line-height: 1;
    margin-bottom: 3px;
}

/* Profile info styles */
.profile-name {
    font-size: calc(var(--theme-font-size, 17px) + 3px);
    font-weight: 600 !important;
    margin-bottom: 4px;
}

.profile-designation {
    font-size: calc(var(--theme-font-size, 17px) + 1px);
    font-weight: 500 !important;
    margin-bottom: 5px;
}

.profile-label {
    font-weight: 600 !important;
    display: inline-block;
    margin-right: 5px;
}

/* Accordion styles */
.accordion {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.accordion-header {
    font-size: var(--theme-font-size, 17px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px 5px 15px !important;
    background-color: var(--theme-primary-color, #9e363a);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.accordion-arrow {
    transition: transform 1s ease;
}

.accordion-header.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 15px;
    background-color: #fff;
    display: none;
    border: 1px solid var(--theme-primary-color, #9e363a);
    overflow-wrap: anywhere;
    font-size: var(--theme-font-size, 17px);
}

.accordion-content p {
    margin: 0;
    line-height: 1;
    color: #000;
}

.accordion-header:hover {
    background-color: var(--theme-primary-color-hover, rgb(146, 58, 61));
}

/* Social icons */
.social-icons-container {
    margin-top: 20px;
    padding: 0;
}

.social-icons-container a {
    display: inline-block;
    margin-right: 15px;
    font-size: 24px;
    color: var(--theme-primary-color, #9e363a);
    transition: color 0.3s ease;
}

.social-icons-container a:hover {
    color: var(--theme-primary-color-hover, #FFD700);
}

.social-icons-title {
    margin-bottom: 10px;
    color: #333;
}

/* PDF button */
.pdf-button {
    display: block;
    margin: 20px auto;
    padding: 12px 24px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    background-color: var(--theme-primary-color, #9e363a);
    transition: background-color 0.3s ease;
    align-items: left;
}

.pdf-button:hover {
    background-color: var(--theme-primary-color-hover, rgb(146, 58, 61));
}

/* Responsive styles */
@media (max-width: 768px) {
    .profile-wrapper {
        width: 100%;
        padding: 20px 0px;
    }
    
    p {
        font-size: calc(var(--theme-font-size, 17px) - 3px) !important;
    }

    .main-content-area {
        flex-direction: column;
    }

    .teacher-info-section {
        padding-left: 0;
    }

    .social-icons-container {
        margin-top: 15px;
        text-align: left;
    }
    
    .social-icons-container a {
        margin-right: 10px;
        font-size: 22px;
    }
    
    .profile-name {
        font-size: calc(var(--theme-font-size, 17px) + 1px);
    }
    
    .profile-designation {
        font-size: var(--theme-font-size, 17px);
    }
}

/* Print styles */
@media print {
    header, footer, .print-button, .pdf-button, .social-icons-container {
        display: none !important;
    }

    .site-content, .profile-content {
        background: white !important;
        box-shadow: none !important;
    }

    .accordion-content {
        display: block !important;
        border: none !important;
        padding: 10px 0 !important;
    }

    .accordion-header {
        background-color: white !important;
        color: black !important;
        border-bottom: 2px solid var(--theme-primary-color, #9e363a) !important;
        page-break-after: avoid !important;
    }

    .accordion-arrow {
        display: none !important;
    }

    .profile-wrapper {
        padding: 0 !important;
        margin: 0 !important;
    }

    .profile-content {
        padding: 0 !important;
    }

    .main-content-area {
        page-break-after: avoid !important;
    }

    .accordion {
        page-break-inside: avoid !important;
        margin-bottom: 20px !important;
        border: none !important;
    }

    .teacher-image-section img {
        max-width: 200px !important;
    }

    p {
        font-size: 12pt !important;
        line-height: 1.5 !important;
        color: black !important;
    }
}