/*
Theme Name: affiliate
Theme URI: http://example.com
Author: Your Name
Author URI: http://example.com
Description: Description of affiliate theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://gnu.org
Text Domain: affiliate
*/

.header_center {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
	margin-top: 30px;
}

.header_center h1 {
    text-align: center;
    margin: 0;
    color: #03254c;
    font-family: Jost;
    font-size: 54px;
    font-weight: 500;
    line-height: 1.16em;
    margin-bottom: 55px;
}

.companies-page {
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.companies-page h1 {
  text-align: center;
  margin-bottom: 40px;
  color: #333;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 445px);
    gap: 8px;
    justify-content: center;
}

.company-card {
    width: 445px;
    height: 220px;
	border-radius: 25px;
	overflow: hidden;
	cursor: pointer;
}

.company-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.company-banner {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f0f0f0;
}

.company-banner-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

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

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

.no-banner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  color: #999;
  font-size: 1.1em;
}

.company-info {
  padding: 20px;
  text-align: center;
}

.company-info h2 {
  margin: 0 0 15px 0;
  font-size: 1.35em;
  color: #222;
}

.latest-companies {
	width:100%;
	margin-top: 30px;
}

.btn-company {
  display: inline-block;
  padding: 10px 24px;
  background: #0073aa;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-company:hover {
  background: #005a87;
}

@media (max-width: 550px) {
    .companies-grid {
        grid-template-columns: 1fr;
    }

    .company-card {
        width: 100%;
        height: 220px;
    }
}