/* FONTLAR */
@import url('https://fonts.googleapis.com/css?family=Oswald:200,300,400,500,600,700&subset=latin-ext');
@import url('https://fonts.googleapis.com/css?family=Roboto:200,300,400,500,600,700&subset=latin-ext');

/*AYARLAR*/
html {
	position: relative;
	min-height: 100%;
}

body {
	margin-bottom: 50px;
	background: #fff;
	color: #3b3a3a;
	font-family: 'Roboto', sans-serif;
	overflow-x: hidden;
}

footer {
	position: absolute;
	bottom: 0;
	width: 100%;
	color: #fff;
	background-color: #161616;
	padding: 15px 0
}

footer a {
	text-decoration: none;
	font-weight: normal;
	color: #e76800;
}

.lang {
	position: absolute;
	right: 10px;
}

.navbar {
	padding: 0;
	position: relative;
	z-index: 3
}

.bg-theme {
	background: #21386b;
	position: sticky;
	top: 0;
}

.nav-item {
	position: relative;

}

.nav-item a {
	color: #fff !important;
}

.nav-item a:hover {
	background: rgba(0, 0, 0, 0.40);
	color: #ffffff !important;
}


.nav-item .nav-link {
	font-family: 'Oswald', sans-serif;
	padding: 1rem;
	font-size: 17px;
}

.icon-m {
	border-bottom: 1px solid #9093a9;
}

.dropdown ul {
	position: absolute;
	width: 260px;
	padding: 0;
	list-style: none;
	background: #87060e;
	border-bottom-right-radius: 5px;
	border-bottom-left-radius: 5px;
	overflow: hidden;
	visibility: hidden;
	opacity: 0;
	transition: 0.5s;
	text-align: left;
}

.dropdown ul li a {
	padding: 10px;
	display: block;
	text-decoration: none;
	font-family: 'Oswald', sans-serif;
}

.dropdown:hover ul {
	visibility: visible;
	opacity: 1;
	display: block;
}


/*Content Area*/
.content-section {
	position: relative;
	margin-top: 10px;
	text-align: justify;
}

.content-web {
	padding: 40px;
	margin-bottom: 150px;
}

.content-section h1 {
	color: #000;
	font-weight: bold;
	text-align: center;
	margin-top: 10px;
	margin-bottom: 25px;
}


.n-width {
	margin-bottom: 30px;

}


.n-width .content-web {
	text-align: justify;
}

.n-width .content-web h1 {
	margin: 0px;
	text-transform: uppercase;
	font-size: 40px;
	color: #212747;
	margin-bottom: 30px;
	position: relative;
	font-family: 'Oswald', sans-serif;
	text-align: left;
}

.contact-text {
	margin-bottom: 10px;
}

.n-width .content-web h2 {
	color: #21386b;
	font-size: 32px;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 10px;
	position: relative;
	display: inline-block;
	padding-bottom: 15px;
}

img {
	max-width: 100%;
}

.lang a {
	display: inline-block;
	vertical-align: middle;
}

.header {
	position: relative;
}


@media (max-width: 991.98px) {
	.top-buttons {
		margin-top: 40px !important;
		margin-bottom: 40px !important;

	}

	.fast-menu .box {
		width: 130px !important;
		height: 110px !important;
	}

	.fast-menu .box .text {
		font-size: 13px;
	}

	.fast-menu .icon img {
		width: 40px !important;
	}

	.insidepages h1 {
		width: 100% !important;
		margin-left: 0 !important;
	}

	.insidepages h1::before {
		display: none;
	}

	.insidepages h1::after {
		display: none;
	}

	.top-space {
		flex-direction: column;
	}

	.top-space .left {
		display: flex;
		align-items: center;
		justify-content: center;
		margin-bottom: 20px;
	}

	.top-space .right {
		display: flex;
		align-items: center;
		justify-content: center;
		margin-bottom: 20px;
	}

	.triangle {
		border-width: 0px !important;
		background: #4a312a;
		width: 100% !important;
		height: 50px !important;
	}

	.social-icons {
		top: 16px !important;
		right: 0 !important;
		justify-content: center;
	}


	.dropdown ul {
		position: relative;
		display: none;
		width: 100%
	}


	.navbar {
		display: block;
	}

	.navbar-toggler {
		margin: 10px;
		font-size: 16px;
	}

	.nav-item .nav-link {
		font-family: 'Oswald', sans-serif;
		padding: 0.5rem 1rem;
	}

	.sub-navbar {
		position: relative;
		width: 100%;
		padding-left: 20px;
		background: #00062c;
	}

	.navbar .container {
		max-width: 100%;
	}

	.nav-item,
	.sub-item {
		text-align: left !important;
	}

	.lang {
		top: 6px;
		position: absolute;
		right: 10px;
	}

	.navbar-dark .navbar-toggler {
		color: #fff;
		border-color: rgb(255 255 255 / 0%);
		transition: 0.5s;
	}

	button:focus {
		outline: none;
	}

	.navbar-dark .navbar-toggler:hover {
		background: #fff;
		color: #2394b7;
	}
}



.yanson {

	transition: 0.5s;
	animation: hideshow 2s infinite;
}

@keyframes hideshow {
	0% {
		opacity: 1;
	}

	50% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

.header-top {
	background: #fff;
}

.top-space {
	display: flex;
	justify-content: space-between;
	margin: 0 10px;
}

.top-space .left img {
	max-width: 250px;
	padding: 10px;
}

.top-space .left {
	display: flex;
	align-items: center;
}

.top-space .left div:first-child {
	margin-right: 10px;
}

.top-space .right {
	display: flex;
	align-items: center;
}

.top-space .right img {
	max-width: 30px;
}

.top-space .right .contact {
	display: flex;
	align-items: center;
	margin: 0 15px;
}

.top-space .right .contact .icon {
	background: #4a312a;
	padding: 10px;
	margin-right: 10px;
}

.top-space .right .contact .text {
	color: #938f8f;

}

.top-space .right .contact .text strong {
	color: #000;
}

.top-space .right .contact .text a {
	text-decoration: none;
	color: #938f8f;
}

.nav-item.active {
	background: rgba(0, 0, 0, 0.40);
	color: #fff !important;
}

.invitation-section {
	margin-bottom: 100px;
}


.invitation-section .title span {
	font-size: 14px;
	font-weight: bold;
}

.invitation-section .title h1 {
	color: #21386b;
	text-align: left;
}

.speakers-section {
	margin: 100px 0;
	position: relative;
}

.speakers-section .title h1 {
	background: #4a312a;
	text-align: center;
	color: #fff;
}

.speakers-section .title h1::before {
	content: '';
	position: absolute;
	width: 0px;
	height: 0px;
	border-style: solid;
	border-width: 0 190px 30px 190px;
	border-color: transparent transparent #4a312a transparent;
	transform: rotate(0deg);
	top: -30px;
	left: 50%;
	transform: translateX(-50%);
}


.speaker-card {
	text-align: center;
	background-color: transparent;
	overflow: visible;
	position: relative;
}

/* Görsel */
.speaker-image-wrapper {
	position: relative;
	height: 450px;
	overflow: hidden;
}

.speaker-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.image-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.2);
	transition: background-color 0.5s ease;
}

.speaker-image-wrapper:hover .image-overlay {
	background-color: rgba(0, 0, 0, 0.05);
}



.triangle {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0px;
	height: 0px;
	border-style: solid;
	border-width: 0 150px 80px 160px;
	border-color: transparent transparent #4a312a transparent;
	transform: rotate(0deg);
	transform: translateY(100px);
	transition: 1s;
}

.speaker-image-wrapper:hover .triangle {
	transform: translateY(0px);
}

/* Sosyal ikonlar üçgenin içine */
.social-icons {
	position: relative;
	display: flex;
	z-index: 2;
	color: #fff;
	font-size: 14px;
	align-items: center;
	top: 40px;
	right: 30px;

}

.social-icons i {
	margin: 0 5px;
	transition: color 0.3s ease;
	color: #fff;
}

.social-icons i:hover {
	color: #0866ff;
}

/* İsim ve unvan */
.speaker-name {
	font-weight: bold;
	margin-top: 20px;
}

.speaker-title {
	color: #666;
	font-size: 0.9em;
	margin-bottom: 10px;
}


.registration-section {
	margin: 100px 0;
	background: #21386b;
}

.registration-section .left-side {
	height: 100%;
}

.registration-section .left-side img {
	height: 100%;
	filter: opacity(0.8);
}

.registration-section .right-side {
	padding-top: 10px;
}

.registration-section .title h1 {
	color: #fff;
	text-align: center;
}

.registration-section table {
	width: 85%;
	margin: auto;
}

.registration-section table tr td,
.registration-section table tr th {
	background: transparent;
	color: #fff;
	text-align: center;
}

.accommodation-section .left-side {
	height: 100%;
}

.accommodation-section table tr td,
.accommodation-section table tr th {
	background: transparent;
	color: #000000;
}

.accommodation-section table {
	width: 85%;
	margin: auto;
}

.accommodation-section {
	margin: 100px 0;
}

.accommodation-section .title h1 {
	color: #21386b;
	text-align: center;
	margin-bottom: 50px;
}



.hotel-carousel {
	max-width: 1200px;
	margin: 0 auto;
}

.hotel-item {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	padding: 20px;
	box-sizing: border-box;
}

.hotel-img {
	flex: 1 1 350px;
	text-align: center;
	padding: 10px;
}

.hotel-img img {
	width: 100%;
	height: auto;
	max-width: 100%;
	border-radius: 8px;
}

.hotel-info {
	flex: 1 1 350px;
	padding: 10px 40px;
}

.hotel-info h4 {
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 15px;
}

.hotel-info p {
	margin-bottom: 10px;
	border-bottom: 1px solid #ccc;
	padding-bottom: 5px;
}

/* Owl Carousel Navigation */
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
	position: absolute;
	top: 45%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	font-size: 60px;
	color: #21386b;
	padding: 5px 10px;
	z-index: 10;
}

.owl-carousel .owl-nav button.owl-prev {
	left: -15px;
}

.owl-carousel .owl-nav button.owl-next {
	right: -0;
}

@media (max-width: 768px) {
	.sponsor-contact {
		flex-direction: column;
	}

	.sponsor-contact div:first-child {
		margin-bottom: 15px;
	}

	.hotel-item {
		flex-direction: column;
	}

	.hotel-info,
	.hotel-img {
		flex: 1 1 100%;
	}

	.owl-carousel .owl-nav button.owl-prev,
	.owl-carousel .owl-nav button.owl-next {
		font-size: 30px;
		top: auto;
		bottom: 0;
	}

	.owl-carousel .owl-nav button.owl-prev {
		left: 15px;
	}

	.owl-carousel .owl-nav button.owl-next {
		right: 15px;
	}
}

.sponsor-section {
	margin: 100px 0;
	background: #21386b;
	padding: 70px;
	position: relative;
	z-index: 1;
}

/* ÜSTTEKİ SİYAH ALAN (soldan sağa azalan) */
.sponsor-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 50%;
	background: black;
	clip-path: polygon(0% 0%,
			/* Sol üst köşe tam siyah */
			100% 0%,
			/* Sağ üst köşe başlangıç */
			100% 10%,
			/* Sağ üstten aşağı inerken kırmızıya geçiş */
			0% 40%
			/* Sol üstte siyah, sağa doğru daralıyor */
		);
	z-index: -1;
}

/* ALTTAKİ SİYAH ALAN (sağdan sola azalan) */
.sponsor-section::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 50%;
	background: black;
	clip-path: polygon(100% 100%,
			/* Sağ alt köşe tam siyah */
			0% 100%,
			/* Sol alt köşe başlangıç */
			0% 90%,
			/* Sol alttan yukarı çıkarken kırmızıya geçiş */
			100% 60%
			/* Sağ altta siyah, sola doğru daralıyor */
		);
	z-index: -1;
}

.sponsor-section .sponsor-contact {
	display: flex;
	justify-content: space-around;
	align-items: center;
	color: #fff;
	font-size: 20px;
	font-weight: bold;
}

.sponsor-section .sponsor-button {
	background: #fff;
	border-radius: 10x;
	color: #21386b;
	padding: 10px;
	text-decoration: none;
	transition: 1s;
}

.sponsor-section .sponsor-button:hover {
	color: #0e0c0c;
}

/*---------- BUTTON ----*/



.theme-btn {
	display: inline-flex;
	background-color: #21386b;
	justify-content: center;
	color: #fff;
	padding: 16px 32px;
	text-align: center;
	position: relative;
	z-index: 1;
	transition: all 0.5s ease-out;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 130%;
	letter-spacing: 0.36px;
	align-items: center;
	border-radius: 50px;
	overflow: hidden;
	text-decoration: none;

}

.theme-btn2 {
	display: inline-flex;
	background-color: #ffffff;
	justify-content: center;
	color: #21386b;
	padding: 16px 32px;
	text-align: center;
	position: relative;
	z-index: 1;
	transition: all 0.5s ease-out;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 130%;
	letter-spacing: 0.36px;
	align-items: center;
	border-radius: 50px;
	overflow: hidden;
	text-decoration: none;

}

.bubble {
	position: relative;
	overflow: hidden;
	z-index: 1;
	transition: 0.5s;
	text-align: center;
}

.bubble span {
	position: absolute;
	width: 25%;
	height: 100%;
	background: #000;
	transform: translateY(150%);
	border-radius: 50%;
	left: calc((var(--n) - 1) * 25%);
	transition: 0.5s;
	transition-delay: calc((var(--n) - 1) * 0.1s);
	z-index: -1;

}


.bubble span:nth-child(1) {
	--n: 1;
}

.bubble span:nth-child(2) {
	--n: 2;
}

.bubble span:nth-child(3) {
	--n: 3;
}

.bubble span:nth-child(4) {
	--n: 4;
}

.bubble:hover span {
	transform: translateY(0) scale(2);
}

.theme-btn2:hover {
	color: #fff;
}

.insidepages {
	box-shadow: 0px 0px 5px #dfdfdf;
	padding: 10px;
}

.insidepages h1 {
	background: #21386b;
	color: #fff;
	position: relative;
	width: 102.3%;
	margin-left: -20px;
}

.insidepages h1::before {
	content: '';
	position: absolute;
	border-style: solid;
	border-color: transparent;
	bottom: -10px;
	border-width: 0 10px 10px 0;
	border-right-color: #222;
	left: 0;
}

.insidepages h1::after {
	content: '';
	position: absolute;
	border-style: solid;
	border-color: transparent;
	bottom: -10px;
	border-width: 0 0 10px 10px;
	border-left-color: #222;
	right: 0;
}

.insidepages h2 {
	color: #21386b;
	font-size: 32px;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 10px;
	position: relative;
	padding-bottom: 15px;
}

.insidepages h3 {
	color: #4a312a;
	font-size: 24px;
	font-weight: 600;
	margin-top: 40px;
	margin-bottom: 10px;
	position: relative;
}





.table-box {
	margin-bottom: 25px;
}

.table-box table {
	width: 100%;
	border: 0;
}



.table-box table tr td {
	color: #000;
	padding: 10px;
	border: 1px solid #ddd;
	text-align: center;
}

.table-box table tr th {
	color: #fff;
	padding: 10px;
	border: 1px solid #ddd;
	background: #21386b;
	font-weight: bold;
	text-align: center;
}

.top-buttons {
	margin-top: -50px;
}

.fast-menu {
	display: flex;
	gap: 20px;
	justify-content: end;
	/* Ortala */
}

.fast-menu .box {
	background-color: #21386b;
	color: white;
	width: 180px;
	height: 160px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	clip-path: polygon(25% 0%,
			/* üst sol */
			75% 0%,
			/* üst sağ */
			100% 50%,
			/* sağ orta */
			75% 100%,
			/* alt sağ */
			25% 100%,
			/* alt sol */
			0% 50%
			/* sol orta */
		);
	transition: background-color 0.3s ease;
}

.fast-menu .box:hover {
	background-color: #2d4b9a;
	cursor: pointer;
}

.fast-menu .icon img {
	width: 50px;
	height: auto;
	margin-bottom: 10px;
}

/* Kurullar Page Styling */
.kurullar {
	text-align: center;
	padding: 40px 0;
}

.kurul-section {
	margin-bottom: 70px;
}

.kurullar h2 {
	color: #21386b;
	font-size: 32px;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 40px;
	position: relative;
	display: inline-block;
	padding-bottom: 15px;
}

.kurullar h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 4px;
	background: #e76800;
	border-radius: 2px;
}

.kurullar h3 {
	color: #4a312a;
	font-size: 24px;
	font-weight: 600;
	margin-top: 40px;
	margin-bottom: 25px;
	position: relative;
}

/* Member Cards (Photos) */
.kurul-member {
	background: #fff;
	padding: 30px 20px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	margin-bottom: 30px;
	display: inline-block;
	width: 100%;
	max-width: 350px;
	border-top: 5px solid transparent;
}

.kurul-member:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
	border-top-color: #e76800;
}

.kurul-member img {
	width: 160px;
	height: 160px;
	object-fit: cover;
	border-radius: 50%;
	margin-bottom: 20px;
	border: 4px solid #f8f9fa;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-info strong {
	display: block;
	color: #21386b;
	font-size: 19px;
	margin-bottom: 8px;
}

.member-info span {
	display: block;
	color: #666;
	font-size: 15px;
	font-weight: 500;
}

.header-member {
	max-width: 400px;
	margin: 0 auto;
}

/* Lists */
.kurul-list {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	max-width: 1000px;
}

.kurul-list.simple-list li {
	font-size: 18px;
	margin-bottom: 12px;
	color: #333;
	padding: 10px;
	background: #fbfbfb;
	border-radius: 50px;
	display: inline-block;
	padding: 10px 30px;
	border: 1px solid #eee;
	min-width: 300px;
}

.kurul-list.grid-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 20px;
	padding: 0 20px;
}

.kurul-list.grid-list li {
	background: #fff;
	padding: 15px 20px;
	border-radius: 8px;
	border-left: 5px solid #21386b;
	text-align: left;
	transition: 0.3s;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
	font-weight: 500;
	display: flex;
	align-items: center;
}

.kurul-list.grid-list li::before {
	content: '\2022';
	color: #21386b;
	font-size: 20px;
	margin-right: 10px;
	opacity: 0;
	/* Hidden but structural if needed, currently styled with border-left */
}

.kurul-list.grid-list li:hover {
	background: #21386b;
	color: #fff;
	transform: translateX(5px);
}

/* Scientific List */
.scientific-section {
	background: #f8faff;
	padding: 60px 20px;
	border-radius: 20px;
	margin-top: 50px;
}

.scientific-list {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 25px;
	text-align: left;
	max-width: 1400px;
	margin: 0 auto;
}

.scientific-list li {
	background: #fff;
	padding: 25px;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
	border: 1px solid #eaeaea;
	display: flex;
	flex-direction: column;
	transition: 0.3s;
}

.scientific-list li:hover {
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
	border-color: #d0dbf5;
}

.scientific-list li strong {
	color: #21386b;
	font-size: 18px;
	margin-bottom: 10px;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 8px;
	display: block;
}

.scientific-list li span {
	font-size: 14px;
	color: #555;
	line-height: 1.5;
}

@media (max-width: 768px) {
	.scientific-list {
		grid-template-columns: 1fr;
	}

	.kurul-list.grid-list {
		grid-template-columns: 1fr;
	}

	.kurul-member {
		margin: 0 auto 30px auto;
	}
}

.grid-list.ana-konular {
	display: block;
	margin-top: 20px;
	padding: 0 20px;
	margin: 0;
}

.grid-list.ana-konular li {
	margin-bottom: 15px;
}

.date-container {
	max-width: 600px;
	margin: 20px auto;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: #f9f9f9;
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.date-title {
	text-align: center;
	color: #2c3e50;
	margin-bottom: 25px;
	border-bottom: 2px solid #f58b1f;
	padding-bottom: 10px;
}

.date-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #eee;
}

.date-row:last-child {
	border-bottom: none;
}

.event-name {
	font-weight: 600;
	color: #34495e;
	flex: 1;
	text-align: left;
}

.event-date {
	background-color: #f58b1f;
	color: white;
	padding: 6px 15px;
	border-radius: 20px;
	font-size: 0.9em;
	font-weight: bold;
	white-space: nowrap;
	margin-left: 20px;
	min-width: 120px;
	text-align: center;
}

/* Önemli vurgu (Kongre Tarihleri) */
.highlight {
	background-color: #e74c3c !important;
}

/* Mobil uyumluluk */
@media (max-width: 480px) {
	.date-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.event-date {
		margin-left: 0;
		margin-top: 8px;
		width: 100%;
	}
}

.date-row a {
	text-decoration: none;
}

.important-dates {
	background: linear-gradient(179deg, #21386b, #2e4371);
	padding: 50px 0;
}

.important-dates h1 {
	color: #fff;
	margin-bottom: 40px;
}

/* Konuşmacılar Sayfası - Flex Grid Layout */
.speakers-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	padding: 20px 0;
}

.term-speaker-item {
	flex: 0 0 calc(20% - 20px);
	/* 5 items per row */
	max-width: calc(20% - 20px);
	box-sizing: border-box;
}

@media (max-width: 1400px) {
	.term-speaker-item {
		flex: 0 0 calc(25% - 20px);
		/* 4 items per row */
		max-width: calc(25% - 20px);
	}
}

@media (max-width: 1200px) {
	.term-speaker-item {
		flex: 0 0 calc(33.33% - 20px);
		/* 3 items per row */
		max-width: calc(33.33% - 20px);
	}
}

@media (max-width: 992px) {
	.term-speaker-item {
		flex: 0 0 calc(50% - 20px);
		/* 2 items per row */
		max-width: calc(50% - 20px);
	}
}

@media (max-width: 576px) {
	.term-speaker-item {
		flex: 0 0 100%;
		/* 1 item per row */
		max-width: 100%;
	}
}

/* Moved Styles from PHP file */
.speaker {
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	background: #fff;
	height: 100%;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	border: 1px solid #ddd;
	border-radius: 10px;
	overflow: hidden;
}

.speaker:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.speaker:hover .name {
	border-bottom-color: #21386b;
}

.speaker .name {
	text-align: center;
	padding: 10px;
	color: #171717;
	text-decoration: none;
	border-bottom: 10px solid transparent;
	transition: 1s;
	border-top: 1px solid #ddd;
	background: #f3edf6;
	min-height: 100px;
}

.speaker .image {
	position: relative;
	overflow: hidden;
}

/* Ensure images cover the area well */
.speaker .image img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	object-position: top;
	transition: 1s;
}

.speaker .image .click {
	position: absolute;
	bottom: 0px;
	right: 0;
	width: 40px;
	height: 40px;
	padding: 5px;
	background: #ea5b5f;
}

/* Custom Scrollbar for Modal if needed */
.modal-body {
	max-height: 70vh;
	overflow-y: auto;
}

@media (max-width: 768px) {
	.speaker .image img {
		height: 200px;
		/* Smaller height on mobile */
	}

	.speaker .name {
		font-size: 0.8rem;
		min-height: 60px;
	}
}

/* Modal Content Refactoring */
.modal-speaker-container {
	display: block;
}

.modal-speaker-img {
	float: left;
	margin-right: 20px;
	margin-bottom: 15px;
	max-width: 250px;
	width: 40%;
	height: auto;
}

.modal-speaker-text {
	display: block;
}

/* Clearfix for modal content */
.modal-body::after {
	content: "";
	clear: both;
	display: table;
}

@media (max-width: 576px) {
	.modal-speaker-img {
		float: none;
		width: 100%;
		max-width: 300px;
		margin: 0 auto 20px auto;
		display: block;
	}
}