@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

.wpillar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 600px;
  height: 60px;
  
  border-radius: 10px;
  background: transparent;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.wpillar h3 {
  color: #112443;
  font-size: 1.4rem; /* relative instead of fixed px */
  margin: 0;
  line-height: 1;
  text-align: center;
  white-space: nowrap; /* prevents text wrapping on wide screens */
}

/* Tablet screens */
@media (max-width: 992px) {
  .wpillar {
    width: 80%;
    height: 55px;
    border-width: 2.5px;
  }
  .wpillar h3 {
    font-size: 1.5rem;
  }
}

/* Mobile screens */
@media (max-width: 600px) {
    .wpillar {
        width: 350px;
        height: 50px;
        font-size: 15px !important;
        border-width: 2px;
    }

  .wpillar h3 {
    font-size: 0.9rem;
    white-space: normal; /* allows wrapping on small screens */
  }
}

/* Very small devices */
@media (max-width: 400px) {
  .wpillar {
    height: 45px;
  }
  .wpillar h3 {
    font-size: 1.2rem;
  }
}


/* ===== TREE STRUCTURE ===== */
.wtree {
	width: 100%;
	text-align: center;
}
.wtree ul {
	padding-top: 20px;
	position: relative;
	transition: .5s;
}
.wtree li {
	display: inline-table;
	text-align: center;
	list-style-type: none;
	position: relative;
	padding: 20px;
	transition: .5s;
}

/* Lines */
.wtree li::before, .wtree li::after {
	content: '';
	position: absolute;
	top: 0;
	right: 50%;
	border-top: 1px solid #ccc;
	width: 51%;
	height: 10px;
}
.wtree li::after {
	right: auto;
	left: 50%;
	border-left: 1px solid #ccc;
}
.wtree li:only-child::after,
.wtree li:only-child::before {
	display: none;
}
.wtree li:only-child { padding-top: 0; }
.wtree li:first-child::before,
.wtree li:last-child::after { border: 0 none; }
.wtree li:last-child::before {
	border-right: 1px solid #ccc;
	border-radius: 0 5px 0 0;
}
.wtree li:first-child::after {
	border-radius: 5px 0 0 0;
}
.wtree ul ul::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	border-left: 1px solid #ccc;
	width: 0;
	height: 20px;
}

/* ===== CARD STYLE ===== */
.wcard {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	padding: 20px;
	width: 230px;
	text-align: center;
	position: relative;
	z-index: 1;
	transition: all 0.3s ease;
	display: inline-block;
}
.cardw {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	padding: 10px;
	width: 130px;
	text-align: center;
	position: relative;
	z-index: 1;
	transition: all 0.3s ease;
	display: inline-block;
}
.cardw h4{
font-size: 1rem;
}
.wcard:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.wcard img {
  width: 100%;
  height: 150px;
  border: 2px solid #ccc; /* or any color you prefer */
  border-radius: 8px;
  object-fit: cover;
  background: none; /* removes background color */
}

.wcard h4 {
	margin: 10px 0 5px;
	font-size: 1rem;
	font-weight: 600;
	color: #000;
}

.wcard p {
	font-size: 0.85rem;
	color: #555;
	margin-bottom: 15px;
}

.wcard button {
	background: #001f3f;
	color: white;
	border: none;
	border-radius: 10px;
	padding: 8px 20px;
	cursor: pointer;
	font-size: 0.85rem;
	transition: background 0.3s ease;
}

.wcard button:hover {
	background: #003366;
}

/* ===== CONNECTOR COLOR ON HOVER ===== */
.wtree li:hover > ul li::before,
.wtree li:hover > ul li::after,
.wtree li:hover > ul::before,
.wstree li:hover > ul ul::before {
	border-color: #94a0b4;
}
