* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
	font-family: 'Nanum Gothic', sans-serif;
}

body {
	/*font-family: 'Noto Sans KR', sans-serif;*/
    line-height: 1.7;
    /*background-color: #F5F5F5;*/
	background-color:var(--legacy-page-bg);
	margin-top: 4rem;
	font-size: 1rem;
}

.view { /* view페이지 부분만*/
	line-height: 1.7;
	background-color:var(--legacy-page-bg);
	padding: 20px 15px 20px 15px;
	font-size: var(--legacy-font-size);
    text-decoration: none;
	color:  var(--legacy-font-color);
	max-width: 900px; 
	margin: 0 auto;
}

.view a{ /* view페이지 부분만*/
    text-decoration: none;
	color:  var(--legacy-link-color);
}

.fa-solid, .fa-regular, .fa-brands {
	color: var(--legacy-icon-color);
}

.panel2 i, .panel2 a { /*구절 밑에 아이콘 모양 설정*/
	text-decoration: none;
	padding:10px 3px 10px 3px;
}

.panel2 {
  overflow-y: scroll;
  -ms-overflow-style: none;  /* IE와 Edge */
  scrollbar-width: none;  /* Firefox */
}

.panel2::-webkit-scrollbar {
  display: none;  /* Chrome, Safari, Opera*/
}

hr, .aaaa {
	margin: 20px 0 20px 0;
}

.zoom, .zoom a { /* 줌 아이콘 설정*/
	padding: 20px 0 30px 0;
	font-size: 1.2rem;
}

h2, h3 {
  color: darkslategray;
  margin-bottom: 0.5rem;
}
p, li{
  color:  dimgray;
}

.section {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
}

#section2 {
    padding: 2rem 20rem;
}

nav {
    background-color: #4A6D7C;
    color: white;
    padding: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	position: fixed;
	width: 100%;
	top: 0;
	transition: transform 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo, logo a {
    font-size: 1.3rem;
    font-weight: bold;
	margin-left: 10px;
}

.nav-menu {
    display: flex;
    list-style-type: none;
}

.nav-menu li {
    margin: 10px 0;
    text-align: left;
    padding-left: 20px;
}

.nav-menu a, .logo a, .menu-icon a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #E6F2FF;
}

.menu-icon, .close-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.more-btn {
    background-color: #4A6D7C;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
	width: auto;
	font-size: 1rem;
}

.more-btn:hover {
    background-color: #5D8A9F;
}

.service-steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.step {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    margin: 0.5rem;
    flex: 1 1 200px;
    border-radius: 5px;
}

.book-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.book-image {
    max-width: 250px;
    margin-right: 2rem;
    border-radius: 5px;
}

.book-features {
    list-style-type: none;
    text-align: left;
	line-height: 2.5em;
}

.youtube-players {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 2rem;
}

.youtube-player {
    margin: 10px;
}

.services {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}


footer {
    background-color: #4A6D7C;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

.social-links a {
	text-decoration: none;
    color: white;
    font-size: 1.2rem;
    margin: 0 0.5rem;
}

#section6  {
	padding: 2rem 5rem 2rem 5rem;
}

.partners-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    background-color: #f8f9fa;
}

.partners-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
	gap : 100px;
}

.partner-logo img {
    max-width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.partner-logo img:hover {
    transform: scale(1.1);
}


.profile-details {
    flex: 1; /* 남은 공간을 차지 */
	padding: 0 100px 0 100px;
}

.profile-details ul {
    list-style-type: none; /* 리스트 스타일 제거 */
    padding: 0; /* 패딩 제거 */
}

.profile-details li {
    margin-bottom: 0.5rem; /* 리스트 항목 간격 */
}

#section1 { background-color: #E6F2FF; }
#section2 { background-color: #F0F4F8; }
#section3 { background-color: #E8F5E9; }
#section4 { background-color: #F1F8E9; }
#section5 { background-color: #FFF3E0; }
#section6 { background-color: #E6F2FF; }

@media screen and (max-width: 1024px) {
	.panel2 i, .panel2 a { /*구절 밑에 아이콘 모양 설정*/
		text-decoration: none;
		padding: 10px 0px 10px 5px;
	}
	
	.nav-container {
        position: relative;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #4A6D7C;
        z-index: 1000;
		font-size: 1rem;
		padding: 16px 0;
		line-height: 15px;
		
		 /* 추가: 화면을 넘어가면 메뉴 자체를 스크롤 */
		max-height: calc(100vh - 70px);
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		touch-action: pan-y;
		
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
        text-align: left;
    }

    .menu-icon, .close-icon {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.2rem;
        cursor: pointer;
    }

    .close-icon {
        display: none;
    }

    .close-icon.active {
        display: block;
    }

    .menu-icon.active {
        display: none;
    }
	
	 .service-content {
        flex-direction: column; /* 세로 방향으로 변경 */
        align-items: flex-start; /* 중앙 정렬 */
    }
	
	.service-image {
        width: 100%; /* 전체 너비 */
        max-width: 100px; /* 최대 너비 제한 */
        margin-bottom: 1rem; /* 이미지와 특징 사이 간격 */
        margin-left: 33%; /* 기존 오른쪽 마진 제거 */
		align-self: flex-start;
		border-radius: 5px;
    }

    .service-details {
        width: 100%; /* 전체 너비 */
        text-align: left; /* 텍스트 중앙 정렬 */
    }

    .service-features {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
	
	.button-container {
        text-align: center; /* 버튼 왼쪽 정렬 */
    }
	
	.book-image {
		width: 100%; /* 전체 너비 */
        max-width: 250px; /* 최대 너비 제한 */
		border-radius: 5px;
		margin: auto;
	}
	
	.book-features {
		margin-top: 1rem;
		list-style-type: none;
		text-align: left;
		line-height: 2.5em;
	}
	
	.creator-profile {
		display: flex;
		flex-direction: column;
		align-items: center;
		margin-top: 1rem;
	}
	
	#section5  {
		padding: 1rem;
		margin: 1rem 0;
		border-radius: 10px;
		box-shadow: 0 4px 6px rgba(0,0,0,0.05);
		text-align: center;
	}
	
	#section6  {
		padding: 2rem 1rem 2rem 1rem;
	}
	
	#section2 {
		padding: 2rem;
	}
	
	.profile-details {
		padding: 0 10px 0 10px;
	}
	
	.partners-logo-container {
		flex-direction: column; /* 세로 정렬 */
		gap: 10px; /* 로고 간 간격 줄이기 */
	  }

	  .partner-logo {
		flex: 1 1 100%; /* 로고가 한 줄에 하나씩 표시 */
		max-width: 80%; /* 로고 너비 조정 */
	  }

	  .partner-logo img {
		max-width: 100%; /* 이미지가 컨테이너를 벗어나지 않도록 */
	  }
	  
}

.service {
    flex: 1 1 45%;
    margin: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
}

.service-title {
    text-align: center; /* 제목 중앙 정렬 */
    margin-bottom: 1rem; /* 제목과 내용 간격 */
}

.service-content {
    display: flex;
    align-items: flex-start; /* 이미지와 텍스트를 위쪽 정렬 */
}

.service-image {
    width: 100px; /* 고정 너비 */
    height: auto; /* 자동 높이 */
    object-fit: cover; /* 이미지 비율 유지 */
    margin-right: 1rem; /* 이미지와 텍스트 간격 */
	border-radius: 5px;
}

.service-details {
	margin-left: 10px;
    flex: 1; /* 남은 공간을 차지 */
}

.service-features {
    list-style-type: none;
    padding: 0;
    margin-bottom: 1rem;
}

.service-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.service-features i {
    margin-right: 0.75rem;
    color: #4A6D7C;
    font-size: 1.2rem;
}

.button-container {
    text-align: center; /* 버튼 왼쪽 정렬 */
}

.creator-profile {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.profile-image {
    width: 150px; /* 프로필 이미지 너비 */
    height: auto; /* 자동 높이 */
    border-radius: 50%; /* 원형 이미지 */
    margin-right: 0rem; /* 이미지와 텍스트 간격 */
	margin-bottom: 1rem; 
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.lazy-load.visible {
    opacity: 1;
}

.footer-content {
    text-align: center;
    padding: 20px;
    background-color: #4A6D7C;
    color: white;
}

.footer-content i, .footer-content h2{
    color: white;
}

.social-links {
    margin: 10px 0;
}

/* ===========================
   Footer Menu
=========================== */

.footer-menu{
    list-style:none;
    padding:0;
    margin:0;
}

/* 1차 메뉴만 가로 */
.footer-menu > li{
    display:inline-block;
    vertical-align:top;
    margin-right:25px;
}

/* 링크 */
.footer-menu a{
    color:#fff;
    text-decoration:none;
}

/* ===========================
   양육 하위메뉴
=========================== */
.footer-menu .edu-dropdown{
    position:relative;
}

.footer-menu .edu-submenu{
    display:none;
    position:absolute;
    top:100%;       /* 푸터에서는 위로 펼침 */
    left:-60px; 

    background:#444;
    padding:0px 0;
    margin:0;
    min-width:180px;
	background:#3d3d3d;

    list-style:none;
    border-radius:5px;
    box-shadow:0 2px 10px rgba(0,0,0,.3);
    z-index:9999;
}

.footer-menu .edu-dropdown.open .edu-submenu{
    display:block;
}

.footer-menu .edu-submenu li{
    display:block;
}

.footer-menu .edu-submenu li a{
    display:block;
    padding:0px 0px;
    color:white;
    white-space:nowrap;
}

/* ▼ 제거 */
.footer-menu .edu-dropdown > a::after{
    content:"";
}

/* 모바일용 메뉴는 푸터에서 숨김 */
.footer-menu .edu-mobile,
.footer-menu .edu-mobile-title{
    display:none;
}


nav.hidden {
    transform: translateY(-100%);
}

nav.hidden {
    transform: translateY(-100%);
}

/*  원래 css 파일 내용*/
a.ex5:visited, a.ex5:link {
	color:white;
	background-color:red;
}

.page_down { 
	position:fixed; 
	left:50px; 
	bottom:1px; 
	width:280px; 
	height:230px; 
	background:transparent; 
	display:none;
}
.page_up { 
	position:fixed; 
	left:50px; 
	bottom:260px; 
	width:280px; 
	height:230px; 
	background:transparent; 
	display:none;
}

.column-count {
    -webkit-column-count: 2; /* Chrome, Safari, Opera */
    -moz-column-count: 2; /* Firefox */
    column-count: 2;
    -webkit-column-gap: 40px; /* Chrome, Safari, Opera */
    -moz-column-gap: 40px; /* Firefox */
    column-gap: 40px;
    -webkit-column-rule-style: solid; /* Chrome, Safari, Opera */
    -moz-column-rule-style: solid; /* Firefox */
    column-rule-style: solid;
    -webkit-column-rule-width: 1px; /* Chrome, Safari, Opera */
    -moz-column-rule-width: 1px; /* Firefox */
    column-rule-width: 1px;
    -webkit-column-rule-color: lightblue; /* Chrome, Safari, Opera */
    -moz-column-rule-color: lightblue; /* Firefox */
    column-rule-color: lightblue;
}

textarea {
    width: 99%;
    padding: 12px 12px;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color:inherit;
    font-size: inherit;
	color: var(--legacy-font-color);
}
input[type=button], input[type=submit], input[type=reset] {
    background-color: #e7e7e7; 
	color: black
    border: none;
	border-radius: 5px;
    padding: 3px 3px;
    text-decoration: none;
    //margin: 4px 2px;
    cursor: pointer;
	font-size : var(--legacy-font-size);
}
.panel, .panel5 {
	display: none; 
	line-height: 40px;
}
@media (min-width: 900px) {
	.mobile_view1 {
		padding-left: 5%;
		padding-right: 5%;
		margin-top:50px;
		margin-bottom:50px;
	}
	.mobile_view { 
		//width:1200px; 
		//margin-top:100px;
		margin-left:15%;
		margin-right:15%;
		//padding-left: 1%;
		//padding-right: 1%;
	}
	
}
@media (max-width: 1199px) {	
	.mobile_view {
		//margin-top:100px;
		//margin-left:1px;
		//margin-right:1px;
		padding-left: 0%;
		padding-right: 0%;
	}
}
button.accordion {
    background-color: #d0d0d0;
    color: #202020;
    cursor: pointer;
    padding: 5px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: inherit;
    transition: 0.3s;
}

button.accordion.active, button.accordion:hover {
    background-color: #d0d0d0;
	//color: inherit;
}

button.accordion:after {
    /*content: '\2795';*/
    font-size: inherit;
    color: inherit;
    float: right;
    margin-left: 5px;
	background-color: inherit;
}

button.accordion.active:after {
    /*content: "\2796";*/
	background-color: inherit;
	color: inherit;
}

div.accordion_panel {
    padding: 0 10px;
    max-height: 0;
    overflow: auto;
    transition: 0.3s ease-in-out;
    opacity: 0;
	background-color: inherit;
	color: inherit;
	margin-left: 15px;
}

div.accordion_panel.show {
    opacity: 1;
    max-height: 500px;  
	background-color: inherit;
	color: inherit;
	margin-left: 5px;
}

div.accordion_panel_show{
    opacity: 1;
    max-height: 500px;  
	background-color: inherit;
	color: inherit;
	margin-left: 15px;
	overflow: auto;
}

/* Style The Dropdown Button */
.dropbtn {
    background-color: grey;
    color: white;
    padding: 3px;
    font-size: inherit;
    border: none;
    cursor: pointer;
	//height:30px;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: absolute;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    //position: absolute;
	font-size: 14px;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 12px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #f1f1f1}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    background-color: grey;
}


table {
    border-collapse: collapse;
    width: 100%;
	font-size: inherit;
}

th, td {
    text-align: left;
    padding: 8px;
	font-size: inherit;
}
/*tr:nth-child(even){background-color: #f2f2f2}*/

.accordion2 {
    background-color: inherit;
    //color: #A8A8A8;
	color: inherit;
    cursor: pointer;
    padding: 5px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: inherit;
	line-height: inherit;
    transition: 0.3s;
}

.accordion2:active {
    background-color: inherit;
}

.panel2 {
    padding: 0 0 0 5px;
    background-color: inherit;
    max-height: 0;
    overflow: auto;
    transition: 0.3s ease-in-out;
    opacity: 0;
}

.panel2.show {
    opacity: 1;
    max-height: 10000px;  
	
}

/*swipe slider */
.swiper-container_ori {
	width: 500px;
	height: 300px;
	margin: 20px auto;
	background-color: var(--legacy-hover-color)
}

.swiper-slide {
	text-align: center;
	color:inherit;
	/* Center slide text vertically */
	display: -webkit-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-box-align: center;
	-ms-flex-align: center;
	-webkit-align-items: center;
	align-items: center;
}

/*카드*/
.card {
    box-shadow: 0 4px 8px 0 var(--legacy-hover-color);
    transition: 0.3s;
    width: 100%;
    border-radius: 5px;
}

.card:hover {
    box-shadow: 0 8px 16px 0 var(--legacy-hover-color);
}

.container {
    padding: 5px 16px;
}

.highlighted {
    border-bottom: 4px solid var(--legacy-highlight-color);
}

/*snackbar*/
#bookmark, #commentary, #last_jul, #translation, #copy, #del_bookmark {
    visibility: hidden;
	min-width: 200px;
    margin-left: -125px;
    background-color: #6F6F6F;
    color: #ffffff;
    text-align: center;
    border-radius: 10px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30%;
    font-size: var(--legacy-font-size);
}

#bookmark.show, #commentary.show, #last_jul.show, #copy.show, #del_bookmark.show {
    visibility: visible;
    /*-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;*/
	color: #fff;
	opacity: 0.9;
}
#translation.show, #copy.show {
    visibility: visible;
    /*-webkit-animation: fadein 0.5s, fadeout 0.5s 10s;
    animation: fadein 0.5s, fadeout 0.5s 10s;*/
	color: #fff;
	opacity: 0.9;
}
a.translation:link {color:#ffffff; text-decoration:none;}

@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0.6;} 
    to {bottom: 100px; opacity: 0.6;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0.6;}
    to {bottom: 100px; opacity: 0.6;}
}

@-webkit-keyframes fadeout {
    from {bottom: 100px; opacity: 0.6;} 
    to {bottom: 0; opacity: 0.6;}
}

@keyframes fadeout {
    from {bottom: 100px; opacity: 0.6;}
    to {bottom: 0; opacity: 0.6;}
}
/*snackbar end */

/* Popup container */
.popup {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* The actual popup (appears on top) */
.popup .popuptext {
    visibility: hidden;
    width: 160px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 0;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -80px;
	cursor: auto;
}

/* Popup arrow */
.popup .popuptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

/* Toggle this class when clicking on the popup container (hide and show the popup) */
.popup .show {
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
    from {opacity: 0;} 
    to {opacity: 1;}
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity:1 ;}
}
.txtBox30, .txtBox31, .txtBox32, .txtBox33, .txtBox34 { border-style: solid; border-width: 2px 2px 2px 8px; padding: 12px; word-break: break-all; } .txtBox30 { border-color: LightGray; }

/*
.mySlides {
	width: 100%; 
	min-height: 400px;
}
*/
.prev, .next {
  position: absolute;
  cursor:pointer;
  width: 50px;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  background-color: transparent;
  color: inherit;
}
.next {
  right: 30%;
  border-radius: 3px 0 0 3px;
}
.prev {
  left: 30%;
  border-radius: 3px 0 0 3px;
}
/*페이지 다운*/
#pagedn, #pagedn_text{
	position:fixed;
	width: 100%;
	font-size: 50px;
	bottom: 0%;
	left : 0%;
	color: grey;
	text-align: center;
	opacity: 0.7;
}
#pagedn{
	height: 70px;
}
/*페이지 다운*/


/* ==================================================
   2026 unified site theme
   ================================================== */
:root {
    --rebible-deep: #294f5a;
    --rebible-main: #3f6d77;
    --rebible-soft: #e3eeee;
    --rebible-bg: #f2f6f6;
    --rebible-card: #ffffff;
    --rebible-line: #dce7e7;
    --rebible-text: #263c43;
    --rebible-muted: #687b80;
    --rebible-gold: #b18a3b;
}

body:not(.dark-theme) {
    background: var(--rebible-bg);
    color: var(--rebible-text);
}

nav,
#navbar {
    background: var(--rebible-deep) !important;
    box-shadow: 0 3px 14px rgba(24, 55, 64, .18) !important;
}

.nav-menu a,
.logo a,
.menu-icon,
.menu-icon a,
.close-icon {
    color: #fff !important;
}

.nav-menu a:hover {
    color: #d8e9e9 !important;
}

.menu-fa,
.nav-utility-icon {
    width: 1.15em;
    margin-right: .3em;
    color: currentColor !important;
    font-size: .92em;
    text-align: center;
}

.nav-utility-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
}

body:not(.dark-theme) .view {
    background: var(--rebible-card);
    border: 1px solid var(--rebible-line);
    border-radius: 20px;
    box-shadow: 0 8px 26px rgba(35, 68, 76, .07);
}

body:not(.dark-theme) .view h1,
body:not(.dark-theme) .view h2,
body:not(.dark-theme) .view h3,
body:not(.dark-theme) .view h4 {
    color: var(--rebible-deep);
}

body:not(.dark-theme) .view a {
    color: var(--rebible-main);
}

.more-btn,
button[type="submit"],
input[type="submit"],
input[type="button"] {
    background: var(--rebible-main);
    color: #fff;
    border: 0;
    border-radius: 9px;
}

.more-btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: var(--rebible-deep);
}

body:not(.dark-theme) input[type="text"],
body:not(.dark-theme) input[type="search"],
body:not(.dark-theme) input[type="password"],
body:not(.dark-theme) select,
body:not(.dark-theme) textarea {
    border: 1px solid #cfdcdc;
    border-radius: 9px;
    background: #fbfdfd;
    color: var(--rebible-text);
}

body:not(.dark-theme) table {
    border-color: var(--rebible-line);
}

body:not(.dark-theme) th {
    color: var(--rebible-deep);
    background: #e9f1f1;
}

body:not(.dark-theme) hr {
    border: 0;
    border-top: 1px solid var(--rebible-line);
}

body:not(.dark-theme) .card,
body:not(.dark-theme) .step,
body:not(.dark-theme) .service {
    border: 1px solid var(--rebible-line);
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 16px rgba(35, 68, 76, .05);
}

.footer-content {
    background: var(--rebible-deep);
}

.section h2 i,
.section h3 i,
.view h2 i,
.view h3 i {
    color: var(--rebible-main);
    font-size: .95em;
    margin-right: .28em;
    vertical-align: -.03em;
}

.icon-heading {
    display: inline-flex;
    align-items: center;
    gap: .35em;
}

@media screen and (max-width: 1024px) {
    .nav-menu {
        background: var(--rebible-deep) !important;
    }

    body:not(.dark-theme) .view {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .menu-fa {
        width: 1.35em;
    }
}


/* ==================================================
   Unified detail pages and submenu contrast
   ================================================== */
.nav-menu .edu-submenu {
    overflow: hidden;
    border: 1px solid #d8e3e3;
    border-radius: 10px;
    background: #fff !important;
    box-shadow: 0 10px 28px rgba(24, 55, 64, .18);
}

.nav-menu .edu-submenu li {
    margin: 0;
    padding: 0;
}

.nav-menu .edu-submenu li a {
    display: block;
    padding: 10px 14px !important;
    color: var(--rebible-deep) !important;
    background: #fff !important;
    font-size: .94rem;
    line-height: 1.45;
}

.nav-menu .edu-submenu li a:hover {
    color: #fff !important;
    background: var(--rebible-main) !important;
}

body:not(.dark-theme) .view {
    width: calc(100% - 28px);
    max-width: 900px;
    box-sizing: border-box;
    margin: 18px auto 28px;
    padding: 26px 24px;
}

.view .main-header {
    margin: -26px -24px 24px;
    padding: 27px 22px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--rebible-deep), var(--rebible-main));
    border-radius: 19px 19px 0 0;
}

.view .main-header h1 {
    margin: 0;
    color: #fff !important;
    font-size: 1.85rem;
    line-height: 1.35;
}

.view > h1,
.view > h2,
.view > h3 {
    line-height: 1.4;
    word-break: keep-all;
}

.view .container {
    width: 100%;
    max-width: 820px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0;
}

body:not(.dark-theme) .view .section_han,
body:not(.dark-theme) .view .feature-card,
body:not(.dark-theme) .view .step-item,
body:not(.dark-theme) .view > .section {
    box-sizing: border-box;
    margin: 16px 0;
    padding: 20px;
    border: 1px solid var(--rebible-line);
    border-radius: 15px;
    background: #f9fbfb;
    box-shadow: 0 4px 14px rgba(35, 68, 76, .045);
}

.view .section-title {
    margin: 0 0 11px;
    color: var(--rebible-deep);
    font-size: 1.3rem;
    line-height: 1.48;
    word-break: keep-all;
}

.view .section-description {
    margin: 0 0 14px;
    color: var(--rebible-muted);
    font-size: 1rem;
    line-height: 1.75;
}

body:not(.dark-theme) .view .bible-verse {
    box-sizing: border-box;
    margin: 12px 0;
    padding: 14px 15px;
    color: var(--rebible-text);
    background: #edf4f4;
    border-left: 4px solid var(--rebible-main);
    border-radius: 0 10px 10px 0;
    font-size: 1rem;
    line-height: 1.8;
}

.view .bible-reference {
    color: var(--rebible-deep);
    font-weight: 700;
}

.view ul,
.view ol {
    max-width: 100%;
}

.view li {
    line-height: 1.75;
    word-break: keep-all;
}

.view .xi-2x {
    font-size: 1.25em !important;
}

.view [class^="xi-"],
.view [class*=" xi-"] {
    color: var(--rebible-main);
    vertical-align: -.05em;
}

.view .emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8em;
    height: 1.8em;
    margin-right: .35em;
    border-radius: 50%;
    background: var(--rebible-soft);
    font-size: .88em;
    vertical-align: middle;
}

@media screen and (max-width: 1024px) {
    .nav-menu .edu-submenu {
        position: static;
        width: 100%;
        min-width: 0;
        margin: 7px 0 2px;
        border-radius: 0;
        box-shadow: none;
    }

    .nav-menu .edu-submenu li a {
        padding: 12px 22px 12px 42px !important;
        font-size: 1rem;
    }
}

@media screen and (max-width: 720px) {
    body:not(.dark-theme) .view {
        width: 100%;
        margin: 8px 0 18px;
        padding: 18px 14px;
        border: 0;
        border-radius: 0;
        font-size: 1rem;
    }

    .view .main-header {
        margin: -18px -14px 20px;
        padding: 23px 16px;
        border-radius: 0;
    }

    .view .main-header h1 {
        font-size: 1.55rem;
    }

    .view > h1 {
        font-size: 1.5rem;
    }

    .view > h2,
    .view .section-title {
        font-size: 1.22rem !important;
    }

    .view > h3 {
        font-size: 1.12rem;
    }

    body:not(.dark-theme) .view .section_han,
    body:not(.dark-theme) .view .feature-card,
    body:not(.dark-theme) .view .step-item,
    body:not(.dark-theme) .view > .section {
        width: 100%;
        margin: 12px 0;
        padding: 16px 14px;
        border-radius: 12px;
    }

    .view .section-description,
    body:not(.dark-theme) .view .bible-verse,
    .view p,
    .view li {
        font-size: 1rem !important;
        line-height: 1.72 !important;
    }

    .view table {
        display: table;
        width: 100%;
        font-size: .94rem;
    }

    .view th,
    .view td {
        padding: 9px 7px;
        line-height: 1.55;
    }

    .view img,
    .view iframe {
        max-width: 100%;
    }

    .view .feature-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .view .step-item {
        display: flex;
        gap: 11px;
        align-items: flex-start;
    }
}


/* Standard typography scale */
body {
    font-size: 16px;
}

.view {
    font-size: var(--legacy-font-size);
}

p,
li,
td,
th,
input,
select,
textarea,
button {
    font-size: 1rem;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

.nav-menu {
    font-size: .96rem;
}

.more-btn {
    font-size: .98rem;
}

.footer-content {
    font-size: .92rem;
}

@media screen and (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .view {
        font-size: var(--legacy-font-size);
    }

    h1 { font-size: 1.55rem; }
    h2 { font-size: 1.32rem; }
    h3 { font-size: 1.15rem; }
    h4 { font-size: 1rem; }

    .nav-menu,
    .nav-menu .edu-submenu li a {
        font-size: 1rem;
    }
}


/* ==================================================
   Bible translation popup and desktop utility alignment
   ================================================== */
#translation {
    min-width: 220px;
    width: 220px;
    margin-left: -110px;
    padding: 8px;
    border: 1px solid #cbd8d4;
    border-radius: 10px;
    background: #ffffff !important;
    color: #263c43 !important;
    box-shadow: 0 12px 32px rgba(24, 55, 64, .22);
    box-sizing: border-box;
    opacity: 1;
    z-index: 10001;
}

#translation.show {
    visibility: visible;
    background: #ffffff !important;
    color: #263c43 !important;
    opacity: 1;
}

#translation .translation,
#translation .translation:link,
#translation .translation:visited {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 11px;
    border-radius: 7px;
    color: #263c43 !important;
    background: #ffffff;
    font-size: .96rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
    box-sizing: border-box;
}

#translation .translation:hover,
#translation .translation:focus,
#translation .translation:active {
    background: #edf4f2;
    color: #244b45 !important;
    text-decoration: none;
}

#translation .translation i {
    width: 18px;
    color: #3f756c;
    text-align: center;
}

#translation .translation-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: #3f756c;
}

@media screen and (min-width: 1025px) {
    .nav-menu > .nav-utility-item {
        display: flex;
        align-items: center;
        padding-left: 14px;
    }

    .nav-menu > .nav-utility-item > .nav-utility-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
        padding: 0;
        line-height: 1;
        box-sizing: border-box;
    }

    .nav-menu > .nav-utility-item .nav-utility-icon {
        width: auto;
        margin: 0;
        line-height: 1;
    }
}
