/* FanaByte Academy Management - Frontend Styles */

/* --- Body Scroll Lock --- */
body.fam-popup-is-open {
    overflow: hidden;
}

/* --- Persons Module Styles --- */
.fam-persons-container { display: flex; flex-wrap: wrap; gap: 20px; width: 100%; }
.fam-persons-grid-align-start { justify-content: flex-start; }
.fam-persons-grid-align-center { justify-content: center; }
.fam-persons-grid-align-end { justify-content: flex-end; }
.fam-person-card { text-decoration: none; color: #1a2a44; border-radius: 16px; overflow: hidden; position: relative; background-color: #ffffff; border: 1px solid #f0f0f0; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; display: flex; flex-direction: column; }
.fam-person-card:hover { transform: translateY(-8px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1); border-color: #e0e0e0; }
.fam-person-image-wrapper { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 1px solid #f0f0f0; }
.fam-person-image-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.fam-person-card:hover .fam-person-image-wrapper img { transform: scale(1.05); }
.fam-person-info { padding: 18px 15px; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.fam-person-name { margin: 0 0 8px 0; font-size: 1.1em; font-weight: 600; color: #1a2a44; }
.fam-person-degree, .fam-person-position { margin: 4px 0 0 0; font-size: 0.9em; color: #555; line-height: 1.5; }
.fam-label { font-weight: 600; margin-left: 5px; color: #555; }
.fam-persons-container.rtl .fam-label { margin-left: 0; margin-right: 5px; }
.fam-persons-container.rtl { direction: rtl; }
.fam-persons-container.ltr { direction: ltr; }
.fam-persons-align-right .fam-person-info { text-align: right; }
.fam-persons-align-center .fam-person-info { text-align: center; }
.fam-persons-align-left .fam-person-info { text-align: left; }

/* --- Calendar Module Styles --- */
.fam-calendar-wrapper { background-color: #ffffff; border: 1px solid #e9eaf1; border-radius: 16px; padding: 30px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06); font-family: inherit; overflow: hidden; margin-bottom: 20px; }
.fam-calendar-wrapper.rtl { direction: rtl; }
.fam-calendar-wrapper.ltr { direction: ltr; }
.fam-calendar-main { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; }
.fam-calendar-header { flex: 1 1 250px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.fam-calendar-header .fam-calendar-title-main { font-size: 18px; font-weight: 500; color: #6c757d; margin: 0; }
.fam-calendar-header .fam-calendar-title-sub { font-size: 24px; font-weight: 700; color: #2c3e50; margin: 4px 0 0 0; }
.fam-calendar-button { display: inline-block; background-color: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 10px 24px; color: #495057; font-weight: 600; text-decoration: none; transition: all 0.2s ease; margin-top: 20px; }
.fam-calendar-button:hover { background-color: #e9ecef; border-color: #adb5bd; color: #212529; }
.fam-calendar-body { flex: 2 1 60%; display: flex; justify-content: space-around; gap: 20px; }
.fam-calendar-column { text-align: right; border-right: 1px solid #e9eaf1; padding-right: 20px; }
.fam-calendar-column:last-child { border-right: none; padding-right: 0; }
.fam-calendar-wrapper.ltr .fam-calendar-column { text-align: left; border-right: none; padding-right: 0; border-left: 1px solid #e9eaf1; padding-left: 20px; }
.fam-calendar-wrapper.ltr .fam-calendar-column:last-child { border-left: none; padding-left: 0; }
.fam-calendar-column h3 { font-size: 16px; color: #34495e; margin: 0 0 10px 0; font-weight: 600; }
.fam-calendar-column p { margin: 10px 0; font-size: 14px; color: #333; }
.fam-calendar-column p span { color: #888; }
.fam-calendar-column p strong { color: #333; margin-right: 8px; font-weight: 500; }
.fam-calendar-wrapper.ltr .fam-calendar-column p strong { margin-right: 0; margin-left: 8px; }
@media (max-width: 991px) { .fam-calendar-main { flex-direction: column; align-items: center; gap: 30px; } .fam-calendar-header, .fam-calendar-body { flex-basis: auto; width: 100%; } .fam-calendar-body { padding-top: 30px; border-top: 1px solid #e9eaf1; } .fam-calendar-header { text-align: center; align-items: center; } }
@media (max-width: 600px) { .fam-calendar-body { flex-direction: column; align-items: center; gap: 25px; } .fam-calendar-column { width: 100%; max-width: 300px; text-align: center !important; border: none; padding: 0; } }

/* --- Calendar Archive Styles --- */
.fam-calendar-archive-wrapper { display: flex; flex-direction: column; gap: 25px; }
.fam-calendar-archive-item { background: #fff; border: 1px solid #e9eaf1; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); overflow: hidden; }
.fam-archive-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 20px; background: #f8f9fc; border-bottom: 1px solid #e9eaf1; gap: 15px; }
.fam-archive-titles .fam-archive-title-main { font-size: 16px; font-weight: 500; color: #6c757d; margin: 0; }
.fam-archive-titles .fam-archive-title-sub { font-size: 20px; font-weight: 700; color: #2c3e50; margin: 2px 0 0 0; }
.fam-archive-button { display: inline-block; background-color: #fff; border: 1px solid #dcdcdc; border-radius: 8px; padding: 8px 18px; color: #555; text-decoration: none; transition: all 0.2s ease; font-size: 14px; font-weight: 600; white-space: nowrap; }
.fam-archive-button:hover { background-color: #f1f3f5; border-color: #b0b0b0; }
.fam-archive-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; padding: 25px; }
.fam-archive-column h3 { font-size: 16px; color: #34495e; margin: 0 0 10px 0; font-weight: 600; border-bottom: 2px solid #5d6dd5; padding-bottom: 8px; }
.fam-archive-column ul { list-style: none; margin: 0; padding: 0; }
.fam-archive-column li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #e9eaf1; font-size: 14px; }
.fam-archive-column li:last-child { border-bottom: none; }
.fam-archive-column li span { color: #888; }
.fam-archive-column li strong { color: #333; font-weight: 500; }

/* --- Apps Module Styles --- */
.fam-apps-wrapper { background: #f8f9fc; border-radius: 16px; padding: 25px; border: 1px solid #e9eaf1; }
.fam-apps-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid #e9eaf1; margin-bottom: 25px; }
.fam-apps-tab-button { padding: 10px 25px; border-radius: 50px; cursor: pointer; font-weight: 600; font-size: 15px; transition: all 0.2s ease; background-color: #ffffff !important; border: 1px solid #00008b; color: #00008b !important; }
.fam-apps-tab-button:hover { background-color: rgba(0, 0, 139, 0.05) !important; }
.fam-apps-tab-button.active { background-color: #00008b !important; color: #ffffff !important; border-color: #00008b; }
.fam-apps-content .fam-apps-pane { display: none; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px; }
.fam-apps-content .fam-apps-pane.active { display: flex; }
.fam-app-button { display: inline-block; transition: transform 0.2s ease, box-shadow 0.2s ease; border-radius: 8px; }
.fam-app-button:hover { transform: translateY(-3px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.fam-app-button span { display: block; padding: 12px 30px; background-color: #fff; border: 1px solid #dcdcdc; border-radius: 8px; color: #333; font-weight: 600; text-align: center; }
.fam-app-button img { max-height: 55px; width: auto; display: block; border-radius: 8px; }

/* --- FAQ Module Styles --- */
.fam-faq-wrapper { max-width: 800px; margin: 20px auto; border: 1px solid #e9eaf1; border-radius: 12px; overflow: hidden; }
.fam-faq-item { border-bottom: 1px solid #e9eaf1; }
.fam-faq-item:last-child { border-bottom: none; }
.fam-faq-question { background: #fff; border: none; width: 100%; text-align: right; padding: 20px; font-size: 18px; font-weight: 600; color: #34495e; cursor: pointer; position: relative; padding-left: 50px; transition: background-color 0.2s ease; }
.fam-faq-question:hover { background-color: #f8f9fc; }
.fam-faq-question::after { content: '+'; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 300; color: #95a5a6; transition: transform 0.3s ease; }
.fam-faq-question.active::after { transform: translateY(-50%) rotate(45deg); }
.fam-faq-answer { display: none; background: #f8f9fc; padding: 0 20px 20px 20px; color: #555; line-height: 1.7; }
.fam-faq-answer p:first-child, .fam-faq-answer .fam-faq-answer-content p:first-child { margin-top: 0; }
.fam-faq-answer p:last-child, .fam-faq-answer .fam-faq-answer-content p:last-child { margin-bottom: 0; }
.fam-faq-answer .fam-faq-answer-content { padding-top: 20px; }
.ltr .fam-faq-question { text-align: left; padding-left: 20px; padding-right: 50px; }
.ltr .fam-faq-question::after { left: auto; right: 20px; }

/* --- Testimonials Module Styles --- */
.fam-testimonials-slider { padding: 20px 0 50px 0; position: relative; }
.fam-testimonials-slider .swiper-wrapper { align-items: stretch; }
.swiper-slide { height: auto; }
.fam-testimonial-card { background: #fff; border: 1px solid #e9eaf1; border-radius: 12px; padding: 30px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); width: 100%; height: 100%; display: flex; flex-direction: column; }
.fam-testimonial-image img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px auto; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.fam-testimonial-content { font-style: italic; flex-grow: 1; }
.fam-testimonial-content p { font-size: 16px; color: #555; line-height: 1.7; margin: 0; position: relative; padding: 0 15px; }
.fam-testimonial-content p:before { content: '“'; font-size: 48px; color: #e9eaf1; position: absolute; top: -15px; left: -5px; }
.fam-testimonial-content p:after { content: '”'; font-size: 48px; color: #e9eaf1; position: absolute; bottom: -35px; right: -5px; }
.fam-testimonial-author { margin-top: 25px; padding-top: 20px; border-top: 1px solid #e9eaf1; }
.fam-testimonial-author strong { font-size: 15px; color: #2c3e50; }
.fam-testimonials-slider .swiper-pagination-bullet { background: #ccc; }
.fam-testimonials-slider .swiper-pagination-bullet-active { background: #2c3e50; }
.fam-testimonials-slider .swiper-button-next, .fam-testimonials-slider .swiper-button-prev { color: #2c3e50; }
.fam-testimonials-slider .swiper-button-next:after, .fam-testimonials-slider .swiper-button-prev:after { font-size: 24px; font-weight: 700; }
.fam-testimonials-slider .swiper-pagination-dynamic .swiper-pagination-bullet { transition: transform 0.3s, left 0.3s; }

/* --- Popup & Notification Bar Styles --- */
.fam-notification-wrapper { display: none; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s 0.3s linear; }
.fam-notification-wrapper.is-visible { display: block; opacity: 1; visibility: visible; transition-delay: 0s; }
.fam-notification-bar { position: fixed; top: 0; left: 0; width: 100%; z-index: 99999; background: #2c3e50; color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.2); transform: translateY(-100%); transition: transform 0.4s ease; }
.fam-notification-bar.is-visible { transform: translateY(0); }
.fam-notification-bar .fam-bar-content-wrapper { display: flex; justify-content: center; align-items: center; padding: 15px; position: relative; }
.fam-notification-bar .fam-notification-content { flex-grow: 1; text-align: center; }
.fam-notification-bar .fam-notification-content p { margin: 0; }
.fam-notification-bar .fam-notification-content a { color: #3498db; }
.fam-notification-bar .fam-close-btn { background: none; border: none; color: #fff; opacity: 0.7; font-size: 24px; cursor: pointer; padding: 0 15px; transition: opacity 0.2s ease; }
.fam-notification-bar .fam-close-btn:hover { opacity: 1; }
.fam-notification-popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; display: flex; justify-content: center; align-items: center; padding: 20px; }
.fam-notification-popup .fam-popup-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(44, 62, 80, 0.7); }
.fam-notification-popup .fam-popup-box { position: relative; background: #fff; border-radius: 12px; padding: 40px; max-width: 550px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,0.2); transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.fam-notification-wrapper.is-visible .fam-popup-box { transform: scale(1); }
.fam-notification-popup .fam-notification-content { line-height: 1.7; color: #555; }
.fam-notification-popup .fam-notification-content p:first-child { margin-top: 0; }
.fam-notification-popup .fam-notification-content p:last-child { margin-bottom: 0; }
.fam-notification-popup .fam-close-btn { position: absolute; top: 10px; right: 10px; background: #f1f3f5; border: none; font-size: 20px; color: #868e96; cursor: pointer; width: 32px; height: 32px; line-height: 32px; text-align: center; border-radius: 50%; transition: background-color 0.2s ease, color 0.2s ease; }
.fam-notification-popup .fam-close-btn:hover { background-color: #e9ecef; color: #495057; }

/* --- Resources Module Styles --- */
.fam-resources-wrapper { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; }
.fam-resource-card { background: #fff; border: 1px solid #e9eaf1; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.fam-resource-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.fam-resource-inner { display: flex; align-items: stretch; }
.fam-resource-image { flex: 0 0 180px; }
.fam-resource-image a { display: block; height: 100%; }
.fam-resource-image img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 500 / 685; }
.fam-resource-content { flex: 1 1 auto; padding: 25px; display: flex; flex-direction: column; }
.fam-resource-title { margin: 0 0 10px 0; font-size: 20px; font-weight: 700; }
.fam-resource-title a { text-decoration: none; color: #2c3e50; }
.fam-resource-title a:hover { color: #5d6dd5; }
.fam-resource-desc { color: #555; line-height: 1.6; flex-grow: 1; margin: 0 0 20px 0; }
.fam-resource-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.fam-resource-sub-link { display: inline-block; padding: 8px 16px; background: #f1f3f5; border: 1px solid #dee2e6; border-radius: 6px; color: #495057; text-decoration: none; font-size: 13px; font-weight: 600; transition: background-color 0.2s ease; }
.fam-resource-sub-link:hover { background-color: #e9ecef; }
@media (max-width: 600px) { .fam-resource-inner { flex-direction: column; } .fam-resource-image { flex-basis: auto; } }