/* ============================
 Cover Box (Desktop)2/10/2026
 ============================ */
.diagonal-cover {
	width: 100%;
	max-width: 900px;
	margin-inline: auto;
	height: 500px; /* ดีไซน์ปกแบบเดิม */
	background: #5d646a;
	border-radius: 8px;
	padding: 30px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* รูปภาพแบบหน้าปก */
.diagonal-cover img {
	position: absolute;
	width: 280px;
	height: auto;
	transition: 0.25s ease;
}

/* ภาพบนซ้าย */
.diagonal-cover .top-left {
	top: 40px;
	left: 40px;
}

/* ภาพล่างขวา */
.diagonal-cover .bottom-right {
	bottom: 40px;
	right: 40px;
	max-width: 320px;
	width: 100%;
}

/* ============================
 Responsive (Mobile)
 ============================ */
@media (max-width: 768px) {

	/* กล่องปกยืดตามเนื้อหา */
	.diagonal-cover {
		height: auto; /* ยกเลิกความสูง fix */
		padding: 20px;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}

	/* ยกเลิก absolute → ให้เรียงลง */
	.diagonal-cover img {
		position: static !important;
		width: 80%;
		max-width: 260px;
		height: auto;
		margin-inline: auto;
	}

	/* reset ค่าตำแหน่งเดิมทั้งหมด */
	.diagonal-cover .top-left, .diagonal-cover .bottom-right {
		top: auto !important;
		left: auto !important;
		right: auto !important;
		bottom: auto !important;
	}
}
/*<!--วงเวียนค่ายอดิศร/หน้ากลาง/cover-->*/
.gray-frame {
	border: 2px solid #cfcfcf;
	padding: 4px;
	background: #ffffff;
	border-radius: 6px;
	display: block;
	width: 100%;
	max-width: 500px;
	height: auto;
	box-sizing: border-box;
}
/*---วงเวียนทั้งหมด---*/
/* ===== Base Section ===== */
.circle-symbolic-camp {
    text-align: center;
}

.circle-inner {
    max-width: 700px;
    margin: 0 auto 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* ===== Headings ===== */
.circle-symbolic-camp h1 {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.3;
    margin: 0;
    text-align: center;
}

.circle-symbolic-camp h3 {
    font-size: 18px;
    line-height: 1.35;
    margin: 0;
    text-align: center;
}

/* ===== Motto ===== */
.circle-motto {
    margin-top: 6px;
    font-weight: bold;
}

/* ===== Paragraph ===== */
.circle-text {
    max-width: 600px;
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
    margin-top: 8px;
}
/*--End วงเวียน--*/
/* =========================
   CIRCLE - Symbolic Camp
   Responsive version
   ========================= */

/* Base */
.circle-symbolic-camp{
    text-align:center;
    padding: 24px 16px;
}

.circle-inner{
    max-width: 760px;
    margin: 0 auto 34px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap: 12px;
}

/* Image (Responsive) */
/* ===== Image ===== */
.circle-img {
    border: 2px solid #cfcfcf;
    padding: 4px;
    background: #fff;
    border-radius: 6px;
	max-width: 500px;
	width: 100%;
	height: auto;
	display: block;
}
.symbolic-camp > img {
    width: clamp(160px, 28vw, 250px);
    height: auto;
    margin-bottom: 12px;
    display: block;
}

/* Headings (Responsive font) */
.circle-symbolic-camp h1{
    font-weight:700;
    line-height:1.28;
    margin:0;
    text-align:center;

    /* ย่อ-ขยายตามหน้าจอ */
    font-size: clamp(18px, 2.2vw, 24px);
}

.circle-symbolic-camp h3{
    line-height:1.35;
    margin:0;
    text-align:center;

    font-size: clamp(14px, 1.8vw, 18px);
}

/* Motto */
.circle-motto{
    margin-top: 6px;
    font-weight:700;
    letter-spacing: .2px;
}

/* Paragraph: justify เต็มบรรทัด + responsive */
.circle-text{
    max-width: 620px;
    line-height: 1.65;
    margin-top: 8px;

    text-align: justify;
    text-justify: inter-word;

    font-size: clamp(14px, 1.9vw, 18px);
}

/* =========================
   Breakpoints (คุมระยะ/ขนาดเพิ่ม)
   ========================= */

/* จอเล็กมาก (มือถือ) */
@media (max-width: 480px){
    .circle-symbolic-camp{ padding: 18px 12px; }
    .circle-inner{ gap: 10px; margin-bottom: 28px; }
    .circle-text{ max-width: 92%; } /* ให้ p ไม่อึดอัด */
}

/* แท็บเล็ต */
@media (min-width: 481px) and (max-width: 900px){
    .circle-symbolic-camp{ padding: 22px 14px; }
    .circle-text{ max-width: 680px; }
}

/* จอใหญ่ */
@media (min-width: 1200px){
    .circle-symbolic-camp{ padding: 28px 16px; }
    .circle-inner{ max-width: 820px; }
}
/*--เพิ่มวงเวียน--*/
/* จอเล็กมาก (มือถือ) */
@media (max-width: 480px){
    .circle-img{
        width: 100%;
        max-width: 350px;
        height: auto;
    }
}

/* แท็บเล็ต */
@media (min-width: 481px) and (max-width: 900px){
    .circle-img{
        width: 100%;
        max-width: 350px;
        height: auto;
    }
}

/*-------battleFirst/ยินดีต้อนรับ-------*/

/* หัวข้อหลัก */
.memory-section .memory-title {
	font-size: clamp(20px, 2vw, 26px);
	line-height: 1.35;
	text-align: center;
	margin: 0 0 20px 0;
	font-weight: bold;
}

/* ข้อความเนื้อหา */
.memory-section .memory-text {
	max-width: 700px;
	margin-inline: auto;
	font-size: clamp(16px, 1.6vw, 20px);
	line-height: 1.65;
	text-align: justify; /* จัดเต็มบรรทัด */
	text-justify: inter-word; /* ให้เว้นคำสวยขึ้น */
	margin-bottom: 24px;
}

/* เส้นคั่น */
.memory-section .memory-line {
	width: 120px;
	height: 3px;
	background-color: #1e3a8a;
	margin-inline: auto;
	border-radius: 2px;
}

/* จัดกลางตัวอักษรในกลุ่มนี้ /cover*/

/* จัดข้อความทั้งหมดให้อยู่กลาง */
.symbolic-camp h1, .symbolic-camp h3 {
	text-align: center;
	margin: 0;
}

/* ขนาดตัวอักษร h1 */
/* ============================
 /*----battleFirst/ยินดีต้อนรับ--*/
.camp-top-title {
	line-height: 1.45;
}
.camp-top img {
	margin-bottom: clamp(12px, 2vw, 28px);
}
.camp-top-title, .camp-top-bottom {
	line-height: 1.8;
	text-align: center;
}
.symbolic-camp {
	text-align: center;
}

.symbolic-camp img {
    width: clamp(160px, 28vw, 250px);
    height: auto;
    margin-bottom: 12px;
    display: block;
}

.symbolic-camp h1 {
	font-size: clamp(20px, 1.6vw, 26px);
	font-weight: bold;
	line-height: 1.28;
	margin: 0 0 6px 0;
}
.symbolic-camp h3 {
	font-size: clamp(16px, 1.4vw, 22px);
	line-height: 1.32;
	margin: 0;
}

.symbolic-camp .flex {
	gap: 8px;
}

.symbolic-camp .camp-top-sub {
	font-size: clamp(16px, 1.6vw, 20px);
	font-size: 16px;
	letter-spacing: 0.5px;
	line-height: 1.8;
}
.symbolic-camp-inner {
	width: 100%;
	margin-inline: auto;
	display: flex;
	justify-content: center;
}

/*--วงเวียน โรงเรียนทหารม้า/shcoolFirst----*/
.cavalry-school p {
	line-height: 1.55;
	max-width: 600px; /* เพื่อให้บรรทัดไม่ยาวเกิน */
}
/* จอเล็กมาก (มือถือ) */
@media (max-width: 480px){
    .symbolic-camp img{
        width: 100%;
        max-width: 250px;   /* ขนาดสูงสุดที่ต้องการ */
        height: auto;       /* รักษาสัดส่วน → จะได้ประมาณ 130px */
        margin-bottom: 12px;
    }
}
