/* =======================================
   Custom Page Styles
   Combined CSS for ITA, Contact, Team, Download
======================================= */

/* General Wrapper */
.ita-wrapper,
.contact-wrapper,
.dl-wrapper,
.team-wrapper {
	padding: 50px 0;
	font-family: 'Kanit', sans-serif;
	background-color: #fcfdfd;
}

.ita-wrapper {
	padding: 40px 0 60px 0;
}

/* Background Pattern */
.bg-pattern {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: radial-gradient(#1c4e93 0.5px, transparent 0.5px);
	background-size: 25px 25px;
	opacity: 0.03;
	z-index: -1;
	pointer-events: none;
}

/* Flex Row Fixes */
.flex-row,
.flex-cards-row {
	display: flex;
	flex-wrap: wrap;
}

.flex-row>[class*='col-'],
.flex-cards-row>[class*='col-'] {
	display: flex;
	flex-direction: column;
}

/* Headers & Titles */
.ita-header-section,
.contact-header,
.dl-header {
	text-align: center;
	margin-bottom: 50px;
}

.ita-header-section h2,
.contact-header h2,
.dl-header h2 {
	font-size: 36px;
	font-weight: 600;
	color: #1c4e93;
	position: relative;
	display: inline-block;
	padding-bottom: 15px;
	margin-top: 0;
	letter-spacing: 0.5px;
}

.ita-header-section h2::after,
.contact-header h2::after,
.dl-header h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 4px;
	background: linear-gradient(90deg, #1c4e93, #4fa3e3);
	border-radius: 4px;
}

.team-section-title {
	font-size: 28px;
	font-weight: 600;
	color: #1c4e93;
	margin-bottom: 30px;
	position: relative;
	padding-left: 20px;
	margin-top: 40px;
}

.team-section-title::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 6px;
	height: 30px;
	background: linear-gradient(180deg, #1c4e93, #4fa3e3);
	border-radius: 4px;
}

/* Premium Cards */
.ita-card,
.contact-card,
.dl-card,
.phone-card {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	border: 1px solid rgba(28, 78, 147, 0.08);
	margin-bottom: 25px;
}

.contact-card {
	border-radius: 20px;
	margin-bottom: 30px;
}

.dl-card {
	border-radius: 20px;
	margin-bottom: 30px;
}

.contact-card,
.dl-card,
.phone-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.contact-card,
.phone-card {
	padding: 25px 20px;
	align-items: center;
	text-align: center;
}

.contact-card {
	padding: 40px 25px;
}

.dl-card {
	padding: 30px;
	position: relative;
	overflow: hidden;
}

.ita-card {
	scroll-margin-top: 100px;
	margin-bottom: 20px;
}

.ita-card:hover,
.contact-card:hover,
.dl-card:hover,
.phone-card:hover {
	box-shadow: 0 15px 35px rgba(28, 78, 147, 0.12);
	border-color: rgba(28, 78, 147, 0.2);
}

.contact-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(28, 78, 147, 0.12);
}

.dl-card:hover,
.phone-card:hover {
	transform: translateY(-8px);
}

.ita-card:hover {
	transform: translateY(-4px);
}

/* Icons Boxes */
.ita-icon-box,
.contact-icon,
.dl-icon,
.phone-icon {
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(28, 78, 147, 0.05), rgba(79, 163, 227, 0.15));
	color: #1c4e93;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.4s ease;
}

.ita-icon-box {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	margin-right: 20px;
	font-size: 20px;
	flex-shrink: 0;
}

.dl-icon {
	width: 50px;
	height: 50px;
	border-radius: 12px;
	margin-right: 15px;
	font-size: 24px;
}

.contact-icon {
	width: 80px;
	height: 80px;
	font-size: 32px;
	margin: 0 auto 25px auto;
}

.phone-icon {
	width: 60px;
	height: 60px;
	font-size: 24px;
	margin-bottom: 15px;
}

.ita-card:hover .ita-icon-box,
.contact-card:hover .contact-icon,
.dl-card:hover .dl-icon,
.phone-card:hover .phone-icon {
	background: linear-gradient(135deg, #1c4e93, #4fa3e3);
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(28, 78, 147, 0.3);
}

.contact-card:hover .contact-icon {
	box-shadow: 0 8px 20px rgba(28, 78, 147, 0.3);
}

.contact-card:hover .contact-icon,
.dl-card:hover .dl-icon,
.phone-card:hover .phone-icon {
	transform: scale(1.05) rotate(5deg);
}

/* Card Titles */
.contact-title {
	font-size: 22px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 15px;
}

.dl-title {
	font-size: 20px;
	font-weight: 600;
	color: #2c3e50;
	margin: 0;
}

.phone-title {
	font-size: 16px;
	font-weight: 500;
	color: #455a64;
	margin-bottom: 12px;
	flex-grow: 1;
	line-height: 1.4;
}

/* =======================================
   Specific Styles per Page
======================================= */

/* --- ITA Specific --- */
html {
	scroll-behavior: smooth;
}

.ita-card-header {
	padding: 20px 25px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #ffffff;
	transition: background 0.3s ease;
}

.ita-card-header.standalone:hover {
	background: #f8fbff;
}

.ita-card-title {
	font-size: 18px;
	font-weight: 500;
	color: #2c3e50;
	margin: 0;
	display: flex;
	align-items: center;
	text-decoration: none;
	width: 100%;
	transition: color 0.3s ease;
}

.ita-card-title:hover,
.ita-card-title:focus {
	color: #1c4e93;
	text-decoration: none;
}

.ita-title-text {
	flex-grow: 1;
	line-height: 1.4;
}

.ita-toggle-icon {
	color: #a0b2c6;
	font-size: 18px;
	transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ita-card-title.collapsed .ita-toggle-icon {
	transform: rotate(0deg);
}

.ita-card-title:not(.collapsed) .ita-toggle-icon {
	transform: rotate(180deg);
	color: #1c4e93;
}

.ita-card-body {
	padding: 0;
	border-top: 1px solid #f4f7fb;
	background: #fafcff;
}

.ita-content-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ita-content-list>li {
	padding: 16px 25px 16px 90px;
	border-bottom: 1px solid #f0f4f8;
	transition: all 0.2s ease;
	position: relative;
}

.ita-content-list>li::before {
	content: '\f105';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	position: absolute;
	left: 65px;
	top: 20px;
	color: #c0cddb;
	font-size: 16px;
	transition: all 0.3s ease;
}

.ita-content-list>li:hover::before {
	color: #1c4e93;
	transform: translateX(4px);
}

.ita-content-list>li:last-child {
	border-bottom: none;
}

.ita-content-list>li:hover {
	background: #f1f6fc;
}

.ita-content-list a {
	color: #455a64;
	text-decoration: none;
	font-size: 16px;
	display: block;
	transition: color 0.2s ease;
}

.ita-content-list a:hover {
	color: #1c4e93;
	font-weight: 500;
}

.ita-subgroup {
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 10px;
	display: block;
	font-size: 15px;
}

.ita-sublist {
	list-style: none;
	padding-left: 15px;
	margin-top: 5px;
	margin-bottom: 5px;
	position: relative;
}

.ita-sublist::before {
	content: '';
	position: absolute;
	left: 3px;
	top: 5px;
	bottom: 5px;
	width: 2px;
	background: #e1e8f0;
	border-radius: 2px;
}

.ita-sublist li {
	padding: 8px 0 8px 20px;
	position: relative;
}

.ita-sublist li::before {
	content: '';
	position: absolute;
	left: -2px;
	top: 16px;
	width: 12px;
	height: 2px;
	background: #e1e8f0;
	transition: background 0.3s ease;
}

.ita-sublist li:hover::before {
	background: #4fa3e3;
}

.ita-sublist a {
	color: #5b6f82;
	font-size: 15px;
}

.ita-sublist a:hover {
	color: #1c4e93;
}

/* Sidebar Styles */
.ita-sidebar {
	position: sticky;
	top: 100px;
}

.ita-sidebar-card {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
	padding: 25px;
	border: 1px solid rgba(28, 78, 147, 0.08);
}

.ita-sidebar-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 2px solid #f4f7fb;
	padding-bottom: 15px;
	margin-bottom: 15px;
}

.ita-sidebar-title span {
	font-size: 18px;
	font-weight: 600;
	color: #1c4e93;
}

.ita-sidebar-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ita-sidebar-list li {
	margin-bottom: 10px;
}

.ita-sidebar-list li:last-child {
	margin-bottom: 0;
}

.ita-sidebar-list a {
	color: #455a64;
	text-decoration: none;
	font-size: 15px;
	transition: color 0.2s ease;
	display: block;
	line-height: 1.4;
}

.ita-sidebar-list a:hover {
	color: #1c4e93;
	font-weight: 500;
}

/* --- Contact Specific --- */
.contact-text {
	font-size: 16px;
	color: #6c7a89;
	line-height: 1.6;
	margin: 0;
}

.contact-text a {
	color: #1c4e93;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s;
}

.contact-text a:hover {
	color: #4fa3e3;
}

.map-container {
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
	margin-bottom: 20px;
	border: 1px solid rgba(0, 0, 0, 0.05);
	transition: all 0.4s ease;
}

.map-container:hover {
	box-shadow: 0 20px 45px rgba(28, 78, 147, 0.15);
}

.img-map-container {
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
	margin-bottom: 50px;
	text-align: center;
	background: #fff;
	padding: 15px;
	border: 1px solid rgba(0, 0, 0, 0.05);
	transition: all 0.4s ease;
}

.img-map-container:hover {
	box-shadow: 0 20px 45px rgba(28, 78, 147, 0.15);
	transform: translateY(-5px);
}

.img-map-container img {
	border-radius: 12px;
	max-width: 100%;
	height: auto;
}

/* --- Download Specific --- */
.dl-card-header {
	display: flex;
	align-items: center;
	margin-bottom: 25px;
	border-bottom: 2px solid #f4f7fb;
	padding-bottom: 15px;
}

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

.dl-list li {
	margin-bottom: 15px;
	transition: all 0.2s ease;
}

.dl-list li:last-child {
	margin-bottom: 0;
}

.dl-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	background: #f8fbff;
	border-radius: 10px;
	color: #455a64;
	text-decoration: none;
	font-size: 15px;
	transition: all 0.3s ease;
	border: 1px solid transparent;
}

.dl-list a:hover {
	background: #ffffff;
	color: #1c4e93;
	box-shadow: 0 5px 15px rgba(28, 78, 147, 0.08);
	border: 1px solid rgba(28, 78, 147, 0.15);
	transform: translateX(5px);
}

.dl-item-text {
	display: flex;
	align-items: center;
	flex-grow: 1;
}

.dl-item-text i {
	color: #c0cddb;
	margin-right: 10px;
	font-size: 14px;
	transition: color 0.3s ease;
}

.dl-list a:hover .dl-item-text i {
	color: #4fa3e3;
}

.dl-download-icon {
	color: #1c4e93;
	opacity: 0.6;
	transition: all 0.3s ease;
}

.dl-list a:hover .dl-download-icon {
	opacity: 1;
	transform: translateY(2px);
}

/* --- Team Specific --- */
.info-banner {
	background: linear-gradient(135deg, #1c4e93, #4fa3e3);
	border-radius: 20px;
	padding: 30px 40px;
	color: #ffffff;
	margin-bottom: 50px;
	box-shadow: 0 10px 25px rgba(28, 78, 147, 0.2);
	display: flex;
	align-items: center;
	transition: all 0.3s ease;
}

.info-banner:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 35px rgba(28, 78, 147, 0.3);
}

.info-banner-icon {
	font-size: 50px;
	margin-right: 30px;
	color: rgba(255, 255, 255, 0.9);
}

.info-banner-text h3 {
	margin-top: 0;
	font-size: 24px;
	font-weight: 600;
	color: #ffffff;
	margin-bottom: 10px;
}

.info-banner-text p {
	font-size: 16px;
	margin-bottom: 0;
	opacity: 0.95;
	line-height: 1.6;
}

.info-banner-text a {
	color: #ffeb3b;
	font-weight: 600;
	text-decoration: none;
	padding: 2px 8px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	transition: background 0.3s ease;
}

.info-banner-text a:hover {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
}

.phone-number {
	font-size: 16px;
	font-weight: 600;
	color: #1c4e93;
	background: #f0f4f8;
	padding: 8px 18px;
	border-radius: 20px;
	display: inline-block;
	border: 1px solid rgba(28, 78, 147, 0.1);
	letter-spacing: 0.5px;
	width: 100%;
}

/* Dorm Category Cards in Team Page */
.dorm-category-card {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
	border: 1px solid rgba(28, 78, 147, 0.08);
	overflow: hidden;
	margin-bottom: 30px;
	height: 100%;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dorm-category-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.dorm-category-header {
	padding: 18px 20px;
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dorm-category-header i {
	margin-right: 12px;
	font-size: 22px;
}

.bg-primary-custom {
	background: linear-gradient(135deg, #1c4e93, #4fa3e3);
}

.bg-teal-custom {
	background: linear-gradient(135deg, #00897B, #4DB6AC);
}

.bg-pink-custom {
	background: linear-gradient(135deg, #D81B60, #F06292);
}

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

.dorm-list li {
	padding: 14px 20px;
	border-bottom: 1px solid #f0f4f8;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background 0.2s ease;
}

.dorm-list li:last-child {
	border-bottom: none;
}

.dorm-list li:hover {
	background: #f8fbff;
}

.dorm-list.male li:hover {
	background: #e0f2f1;
}

.dorm-list.female li:hover {
	background: #fce4ec;
}

.dorm-list li span {
	color: #455a64;
	font-weight: 500;
	font-size: 15px;
}

.dorm-list li strong {
	color: #1c4e93;
	background: #f0f4f8;
	padding: 4px 12px;
	border-radius: 6px;
	font-size: 14px;
	letter-spacing: 0.5px;
	min-width: 90px;
	text-align: center;
}

.dorm-list.male li strong {
	color: #00897B;
	background: rgba(0, 137, 123, 0.1);
}

.dorm-list.female li strong {
	color: #D81B60;
	background: rgba(216, 27, 96, 0.1);
}

@media (max-width: 767px) {
	.info-banner {
		flex-direction: column;
		text-align: center;
		padding: 25px;
	}

	.info-banner-icon {
		margin-right: 0;
		margin-bottom: 15px;
	}

	.dorm-list li {
		flex-direction: column;
		align-items: flex-start;
	}

	.dorm-list li strong {
		margin-top: 8px;
		align-self: flex-start;
	}
}