/* CSS Document */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/*** featured block ******************************************/
body {
	font-family: 'Roboto', sans-serif;
	margin: 0;
	box-sizing: border-box;
}

.container {
	max-width: 1160px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

.row {
	display: flex;
	width: 100%;
	gap: 20px;
}

.image-column {
	/* Changed class name */
	flex: 1;
}

.image-column a{
	text-decoration:none;
	color: #000;
}

.image-column img {
	/* Updated selector */
	display: block;
	width: 100%;
	height: auto;
}

.text-container {
	margin-top: 15px;
	text-align: left;
}

.text-container h3 {
	margin-top: 0;
	margin-bottom: 0;
	line-height: 1.2;
	font-size: 1.5em;
}

/* Media query for viewports below 768px */
@media (max-width: 767px) {
	.container {
		padding-left: 10px;
		padding-right: 10px;
	}

	.row {
		flex-direction: column;
		gap: 0;
		/* No gap between columns in small viewports */
	}

	.image-column {
		/* Updated selector */
		margin-bottom: 20px;
		/* Add vertical space between stacked columns */
	}

	/* Remove margin from the last column to avoid extra space at the bottom */
	.row>.image-column:last-child {
		/* Updated selector */
		margin-bottom: 0;
	}

	.image-column img {
		/* Updated selector */
		max-height: 250px;
		object-fit: cover;
		/* Maintain aspect ratio and cover the container */
	}

	.text-container {
		margin-top: 0;
		border-left: 1px solid #ccc;
		border-right: 1px solid #ccc;
		border-bottom: 1px solid #ccc;
		padding: 10px;
	}
}

/**** topics section ******************************************/

  #topic-section {
    font-family: 'Roboto', sans-serif;
	max-width: 1200px; 
    margin: 0 auto;
  }

  .topic-section-listing {
	width: 1080px; 
  }


  .topic-container {
    max-width: 100%
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(calc(33.33% - 20px), 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .topic-column img {
    display: block;
    width: 100%;
    height: auto;
  }

  .topic-text-wrapper {
    margin-top: 15px;
  }

  .topic-text-wrapper h3 {
    margin-top: 0;
    margin-bottom: 0;
    text-align: left;
    line-height: 1.3;
  }

  .topic-column a {
    color: #000; /* Ensure title links are black */
    text-decoration: none; /* Remove any default link styling */
  }

  /* Remove a:active style for all links on the page */
  a:active {
    color: inherit; /* Revert to the default color or the color set by other rules */
  }

  /* Media query for viewports below 768px */
  @media (max-width: 768px) {
    .topic-container {
      padding-left: 10px;
      padding-right: 10px;
      grid-template-columns: repeat(auto-fit, minmax(calc(50% - 20px), 1fr));
	  grid-template-columns: repeat(auto-fit, minmax(calc(50% - 20px), 1fr)) !important; /* For testing, if needed */
      gap: 20px;
    }

    .topic-column img {
      max-height: 200px;
      object-fit: cover;
    }

    .topic-text-wrapper {
      margin-top: 0;
      border-left: 1px solid #ccc;
      border-right: 1px solid #ccc;
      border-bottom: 1px solid #ccc;
      padding: 10px;
    }

  .topic-section-listing {
	width: 100%; 
  }

  }
/**** listing grid ******************************************/

body {
	font-family: 'Roboto', sans-serif;
	margin: 0;
	overflow-x: hidden;
}

.container {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 20px;
}

@media (max-width: 767px) {
	.container {
		padding: 0 10px;
	}
}

.grid-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(calc(100% / 6 - 15px), 1fr));
	/* Start with 6 columns */
	grid-row-gap: 20px;
	column-gap: 15px;
}

@media (max-width: 991px) and (min-width: 768px) {
	.grid-container {
		grid-template-columns: repeat(auto-fit, minmax(calc(100% / 4 - 15px), 1fr));
		/* Shrink to 4 columns */
		column-gap: 15px;
	}
}

@media (max-width: 767px) {
	.grid-container {
		grid-template-columns: repeat(auto-fit, minmax(calc(100% / 3 - 10px), 1fr));
		/* Shrink to 3 columns */
		column-gap: 10px;
	}
}

.grid-item {
	border: 1px solid lightgrey;
	padding: 10px;
}

.image-container {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.grid-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.grid-item h4 {
	margin-top: 5px;
	margin-bottom: 0;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 400;
}

.grid-item a{
	text-decoration: none;
	color: #000;
}

/*** heading bar */


.headingbar {
	padding: 10px;
	background-color: #ccc;
	margin: 0 auto;
	margin: 30px 0px 20px 0px;	
	box-sizing: border-box;
	text-align: left;
	font-size: 24px;
	font-weight: bold;
}


/* Media query for viewports below 768px */
@media (max-width: 767px) {
	.headingbar {
		margin: 20px 0px;
	}
}

/*** navbar ***/

.navbar {
	background-color: #000;
	overflow: hidden;
	margin: 0;
	padding: 0;
	border-bottom: none;
	box-shadow: none;
	width: 100%;
}

.navbar-container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 5px 20px;
	box-sizing:border-box;
}

.logo-block a {
	display: block;
	text-decoration: none;
}

.logo-block img {
	max-width: 245px;
	height: auto;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: stretch;
}

.main-navigation li {
	margin-left: 0;
	display: flex;
	align-items: stretch;
}

.main-navigation li a {
	color: #fff;
	text-decoration: none;
	padding: 5px 15px;
	border-left: 1px solid #eee;
	display: flex;
	align-items: center;
	height: 40px;
	line-height: 45px;
}

.main-navigation li:first-child a {
	border-left: none;
}

.main-navigation a:hover {
	color: #007bff;
}

.hamburger-button {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	margin-left: 20px;
}

.hamburger-button .line {
	width: 25px;
	height: 3px;
	background-color: #999;
	margin: 5px 0;
	display: block;
}
/* Responsive Styles (for screens smaller than 900px) */
@media (max-width: 900px) {
	.navbar-container {
		flex-direction: column;
		align-items: flex-start;
		padding: 10px 20px;
	}

	.logo-block {
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 0;
		border-bottom: none;
	}

	.logo-block.open {
		border-bottom: 1px solid #ccc;
		padding-bottom: 10px;
		margin-bottom: 10px;
	}

	.hamburger-button {
		display: block;
	}

	.main-navigation {
		display: none;
		width: 100%;
		position: static;
		margin-top: 0;
		background-color: #000;
		z-index: 10;
		align-self: flex-start;
	}

	.main-navigation ul {
		flex-direction: column;
		padding: 0;
		align-items: flex-start;
	}

	.main-navigation li {
		display: block;
		width: 100%;
	}

	.main-navigation li a {
		display: block;
		text-align: left;
		border-left: none;
		border-bottom: 1px solid #eee;
		padding: 5px 20px;
		/* Updated padding */
		height: auto;
		line-height: 40px;
		align-items: flex-start;
		color: #fff;
	}

	.main-navigation li a:hover {
		background-color: #f0f0f0;
	}

	.main-navigation li:last-child a {
		border-bottom: none;
	}

	.main-navigation.open {
		display: block;
	}
}


/*** footer */

/* Basic reset */
body,
h1,
h2,
p,
ul,
li {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Footer Wrapper */
.footer-wrapper {
	width: 100%;
	margin-top: 50px;
	clear: both;
}

/* Footer Top Section */
.footer-top {
	background-color: #f2f2f2;
	color: #000;
	padding: 20px 0;
}

.footer-top-container {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Footer Bottom Section */
.footer-bottom {
	background-color: #1f5387;
	color: white;
	padding: 20px 0;
}

.footer-bottom-container {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer-copyright-info {
	text-align: left;
}

.footer-navigation {
	text-align: right;
}

.footer-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
}

.footer-navigation li {
	margin-left: 20px;
}

.footer-navigation li:first-child {
	margin-left: 0;
}

.footer-navigation a {
	color: white;
	text-decoration: underline;
}

/* Responsive adjustments for viewports below 768px */
@media (max-width: 768px) {
	.footer-wrapper {
		margin-top: 20px;
	}

	.footer-top-container,
	.footer-bottom-container {
		padding: 0 10px;
	}

	.footer-bottom-container {
		flex-direction: column;
		align-items: center;
	}

	.footer-copyright-info {
		text-align: center;
	}

	.footer-navigation {
		text-align: center;
		margin-top: 15px;
	}

	.footer-navigation ul {
		flex-direction: row;
		justify-content: center;
	}

	.footer-navigation li {
		margin-left: 15px;
		margin-bottom: 0;
	}

	.footer-navigation li:first-child {
		margin-left: 0;
	}
}