body{
font-family: 'Roboto Slab', serif;
}

.cat-page-header {
    text-align: center;
    margin: 40px 0;
}

.cat-page-title {
    font-size: 2.75rem;
    font-weight: 600;
    color: #0F2BC9;
    margin-bottom: 5px;
}

.cat-page-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #666;
}

.cat-page-section {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 30px 40px;
}

.cat-page-icon {
    width: 50px;
    height: 50px;
    background: #0F2BC9;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

.cat-page-icon i {
    font-size: 1.3rem;
    color: #fff;
}

.cat-page-label {
    font-size: 2.2rem;
    font-weight: 500;
    color: #0F2BC9;
}


/******** Sloped Section ********/
.cat-slope-section {
  background: linear-gradient(135deg, #f0f4ff 0%, #e0ebff 100%);
  height: auto;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%);
}

.cat-second-slope-section {
  background: linear-gradient(135deg, #f0f4ff 0%, #e0ebff 100%);
  height: auto;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
}

.cat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 88%;
  margin: 0 auto;
}

.cat-card {
  display: flex;              
  flex-direction: column;     
  justify-content: space-between; 
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.5s ease;
  min-height: 280px;          
}

.cat-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.cat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 100%;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  background: linear-gradient(90deg, #D157CE, #944BCF, #2E36CF, #02BEF2);
}

.cat-icon {
  width: 50px;
  height: 50px;
  background: #0F2BC9;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem auto 1rem auto;
}

.cat-icon i {
  font-size: 1.2rem;
  color: #fff;
}

.cat-card h3 {
  margin-bottom: 0.6rem;
  color: #0F2BC9;
  font-weight: 500;
  font-size: 1.6rem;
}

.cat-card p {
  margin-bottom: 1.5rem;
  color: #555;
  line-height: 1.4;
  font-size: 0.9rem;
}

.cat-button {
  display: inline-block;
  padding: 0.4rem 2rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #0F2BC9 0%, #667eea 100%);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.5s ease;
  align-self: center;
}

.cat-button i {
  margin-left: 10px;
}

.cat-button:hover {
  transform: translateY(1px);
}



/***** Media Query *****/
@media (max-width: 1200px) {
.cat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  margin: 0 auto;
}

.cat-card {
  display: flex;              
  padding: 2rem 1rem;
  min-height: 250px;          
}
}


/***** Tablets in portrait & smaller laptops (≤991px) ******/
@media (max-width: 991px) {
.cat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  margin: 0 auto;
}

.cat-card {
  display: flex;              
  padding: 2rem 1rem;
  min-height: 200px;          
}

.cat-card h3 {
  font-size: 1.6rem;
}

.cat-card p {
  font-size: 0.90rem;
}
}

/***** Standard tablets & landscape phones (≤768px) ******/
@media (max-width: 768px) {
.cat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  margin: 0 auto;
}

.cat-page-title {
    font-size: 2.5rem;
}

.cat-page-subtitle {
    font-size: 1.15rem;
}

.cat-page-icon {
    width: 40px;
    height: 40px;
}

.cat-page-icon i {
    font-size: 1.2rem;
}

.cat-page-label {
    font-size: 2rem;
}

.cat-icon {
  width: 55px;
  height: 55px;
}

.cat-icon i {
  font-size: 1.4rem;
}

.cat-card h3 {
  font-size: 1.3rem;
}
}

/***** Large smartphones & phablets (≤617px) ******/
@media (max-width: 617px) {
.cat-cards {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  width: 70%;
  margin: 0 auto;
}

.cat-card {
  display: flex;              
  padding: 2rem 1rem;
  min-height: 250px;          
}

.cat-slope-section {
  padding: 5rem 2rem;
  clip-path: polygon(0 0, 100% 2%, 100% 100%, 0 98%);
}

.cat-second-slope-section {
  padding: 5rem 2rem;
  clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
}

.cat-page-header {
    text-align: center;
    margin: 40px 25px;
}

.cat-page-title {
    font-size: 2.2rem;
}

.cat-page-subtitle {
    font-size: 1.05rem;
}

.cat-page-icon {
    width: 40px;
    height: 40px;
}

.cat-page-icon i {
    font-size: 1.2rem;
}

.cat-page-label {
    font-size: 2rem;
}

.cat-icon {
  width: 55px;
  height: 55px;
}

.cat-icon i {
  font-size: 1.4rem;
}

.cat-card h3 {
  font-size: 1.3rem;
}
}

/***** Small smartphones (≤450px) ******/
@media (max-width: 450px) {
.cat-cards {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  width: 95%;
  margin: 0 auto;
}

.cat-slope-section {
  padding: 5rem 2rem;
  clip-path: polygon(0 0, 100% 2%, 100% 100%, 0 98%);
}

.cat-second-slope-section {
  padding: 5rem 2rem;
  clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
}

.cat-page-header {
    text-align: center;
    margin: 40px 15px;
}

.cat-page-title {
    font-size: 1.8rem;
}

.cat-page-subtitle {
    font-size: 1.05rem;
}

.cat-page-section {
    gap: 5px;
    margin: 30px 20px;
}

.cat-page-icon {
    width: 40px;
    height: 40px;
}

.cat-page-icon i {
    font-size: 1.2rem;
}

.cat-page-label {
    font-size: 1.7rem;
}

.cat-icon {
  width: 55px;
  height: 55px;
}

.cat-icon i {
  font-size: 1.4rem;
}

.cat-card h3 {
  font-size: 1.3rem;
}
}

/***** Extra small phones & older devices (≤365px) ******/
@media (max-width: 365px) {
.cat-cards {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  width: 100%;
  margin: 0 auto;
}

.cat-card {
  display: flex;              
  padding: 1rem 1rem;
  min-height: 220px;          
}

.cat-slope-section {
  padding: 5rem 2rem;
  clip-path: polygon(0 0, 100% 2%, 100% 100%, 0 98%);
}

.cat-second-slope-section {
  padding: 5rem 2rem;
  clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
}

.cat-button {
  font-size: 0.85rem;
}

.cat-page-header {
    text-align: center;
    margin: 40px 15px;
}

.cat-page-title {
    font-size: 1.7rem;
}

.cat-page-subtitle {
    font-size: 1rem;
}

.cat-page-section {
    gap: 5px;
    margin: 30px 20px;
}

.cat-page-icon {
    width: 40px;
    height: 40px;
}

.cat-page-icon i {
    font-size: 1rem;
}

.cat-page-label {
    font-size: 1.5rem;
}

.cat-icon {
  width: 55px;
  height: 55px;
}

.cat-icon i {
  font-size: 1.4rem;
}

.cat-card h3 {
  font-size: 1.3rem;
}
}

