.page-container,
.main-content,
.event-cards-container {
  width: auto !important;
  max-width: none !important;
  margin: 0 auto !important;
  transform: none !important;
  scale: none !important;
}

.page-container {
  display: grid !important;
  grid-template-columns: minmax(200px,280px) 1fr minmax(200px,300px) !important;
  gap: 20px !important;
  align-items: start !important;
}

.right-sidebar {
  position: static !important;
}

.main-content {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.event-cards-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr)) !important;
  gap: 30px !important;
  justify-content: start !important;
  align-items: stretch !important;
  padding: 0 !important;
}

@media (min-width: 992px) {
  .event-cards-container {
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 30px !important;
  }
  .custom-event-card .ch {
    width: 100% !important;
    aspect-ratio: 466 / 180 !important;
    height: auto !important;
    padding: 0 !important;
    background-size: cover !important;
    background-position: center !important;
  }
  .custom-event-card .ch .title {
    display: none;
  }
  .custom-event-card .bd,
  .ben-kimim-card .clue-list li,
  .ozel-etkinlik-card .question-text,
  .fest-toto-card .qu {
    font-size: clamp(0.8rem, 1vw + 0.2rem, 1rem) !important;
    line-height: 1.4 !important;
  }
  .custom-event-card input,
  .custom-event-card .button-e {
    font-size: clamp(0.9rem, 1vw, 1rem) !important;
    padding: clamp(10px, 1vw, 12px) !important;
  }
}
.fest-toto-card .ch .match-names {
    font-size: 1.2rem;
    margin: 35px 25px 2px !important;
}
.fest-toto-card .ch .date {
	margin: 0px 25px 2px !important;
}
	
@media (max-width: 800px) {
	.fest-toto-card .ch .match-names {
		margin: 0px 25px 2px !important;
	}
	.fest-toto-card .ch .date {
		margin: 0px 25px 2px !important;
	}
}

@media (min-width: 560px) and (max-width: 991px) {
  .event-cards-container {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 20px !important;
  }
  .custom-event-card .ch {
    aspect-ratio: 466 / 180 !important;
    padding: 0 !important;
  }
  .custom-event-card .ch .title {
    font-size: clamp(1.3rem, 2vw, 1.5rem) !important;
  }
}

@media (max-width: 559px) {
  .event-cards-container {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .custom-event-card .ch {
    aspect-ratio: 466 / 180 !important;
    padding: 0 !important;
  }
  .custom-event-card .ch .title {
    font-size: clamp(1rem, 3vw, 1.2rem) !important;
  }
  .custom-event-card .bd,
  .ben-kimim-card .clue-list li,
  .ozel-etkinlik-card .question-text,
  .fest-toto-card .qu {
    font-size: clamp(0.75rem, 2vw, 0.9rem) !important;
    line-height: 1.2 !important;
  }
  .custom-event-card input,
  .custom-event-card .button-e {
    font-size: clamp(0.8rem, 2vw, 0.9rem) !important;
    padding: clamp(6px, 2vw, 10px) !important;
  }
}

@media (max-width: 800px) {
  .page-container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .left-sidebar,
  .main-content,
  .right-sidebar {
    grid-column: 1 !important;
    width: 100% !important;
    position: static !important;
    margin: 0 !important;
  }
  .event-cards-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .custom-event-card {
    width: 100% !important;
    max-width: 500px !important;
	min-width: none !important;
  }
  .custom-event-card .ch {
    width: 100% !important;
    height: auto !important;
    padding-top: 38.63% !important;
    background-size: contain !important;
    background-position: center !important;
  }
}

.fest-toto-card .opts {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  justify-content: flex-start !important;
}

.fest-toto-card .opt {
  flex: 1 1 auto !important;
  min-width: 80px !important;
  font-size: clamp(0.6rem, 1vw + 0.4rem, 0.8rem) !important;
  padding: clamp(4px, 0.5vw + 4px, 6px) !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  text-overflow: clip !important;
  overflow-wrap: break-word !important;
}

@media (max-width: 559px) {
  .fest-toto-card .opts {
    justify-content: space-between !important;
  }
  .fest-toto-card .opt {
    flex: 1 1 48% !important;
    min-width: 0 !important;
  }
}
.fest-toto-card .opts .opt:nth-child(2) {
  order: 3 !important;
}
.fest-toto-card .opts .opt:nth-child(3) {
  order: 2 !important;
}

.fest-toto-card {
  position: relative !important;
  overflow: hidden !important;
}
.fest-toto-card .bd .prize {
  position: absolute !important;
  bottom: 10px !important;
  right: 0px !important;
  width: 70px !important;
  background: #f0c419 !important;
  color: #1e2c3a !important;
  border-radius:10px;
  text-align: center !important;
  font-weight: 700 !important;
  transform: rotate(20deg) translate(0, -50%) !important;
  transform-origin: 0 0 !important;
  padding: 3px 2px !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important;
  white-space: nowrap !important;
  font-size: 0.3rem !important;
  line-height: 1 !important;
}

.fest-toto-card .prize span {
    font-size: 0.6rem !important;
    color: #1e2c3a !important;
}
.fest-toto-card .prize b {
    font-size: 1rem !important;
}

     body {
        font-family: 'Barlow', sans-serif;
    }
    .event-cards-container {
    display: flex;
    gap: 16px;
    justify-content: center;
    width: 105%;
    align-items: stretch;
    margin: 0 auto;
    margin-left: 50px;
}
    .custom-event-card {
        flex: 1;
        background-color: #1e2c3a;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        display: flex;
        flex-direction: column;
        border: 1px solid #3a4a5b;
    }
    .custom-event-card .ch {
        position: relative;
        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
        color: white;
        padding: 15px;
        text-align: center;
        width: 466px;
        height: 180px;
    }
    .custom-event-card .ch .title {
        font-family: 'Barlow', sans-serif;
        font-size: 2rem;
        font-weight: 800;
        line-height: 1.1;
        color: #fff;
    }
    .custom-event-card .bd {
        padding: 6px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        background: #112839;
    }

    /* Ben Kimim Card Specific Styles */
    .ben-kimim-card .ipucu-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
    }
    .ben-kimim-card .ipucu-header h3 {
        font-size: 1.6rem;
        font-weight: 900;
        color: #f0c419;
        margin: 0;
        text-transform: uppercase;
    }
    .ben-kimim-card .ipucu-header .fa-search {
        font-size: 1.6rem;
        color: #f0c419;
    }
    .ben-kimim-card .clue-list {
        list-style: none;
        padding: 0;
        margin: 0;
        flex-grow: 1;
        color: #fff;
    }
    .ben-kimim-card .clue-list li {
        padding: 6px 0;
        border-bottom: 1px solid #3a4a5b;
        font-size: 0.9rem;
        line-height: 1.3;
    }
    .ben-kimim-card .clue-list li:first-child {
        padding-top: 0;
        border-top: 1px solid #3a4a5b;
    }
    .ben-kimim-card .answer-section {
        margin-top: 10px;
    }
    .ben-kimim-card .inp input {
        width: 100%;
        background: #2a3b4d;
        border: 1px solid #3a4a5b;
        border-radius: 8px;
        padding: 12px;
        box-sizing: border-box;
        font-weight: 600;
        color: #fff;
        text-align: center;
        font-size: 1rem;
    }
    .ben-kimim-card .inp input::placeholder {
        color: #8a9bb1;
    }
    .ben-kimim-card .button-e {
        background-color: #f0c419;
        color: #1e2c3a;
        font-weight: 800;
        border-radius: 8px;
        padding: 12px;
        text-decoration: none;
        display: block;
        transition: background-color 0.2s ease;
        margin-top: 10px;
        font-size: 1rem;
        text-align: center;
    }
    .ben-kimim-card .button-e:hover {
        background-color: #d8b017;
    }

    /* Ozel Etkinlik Card Styles */
    .ozel-etkinlik-card .question-section {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .ozel-etkinlik-card .question-item {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .ozel-etkinlik-card .question-text {
        color: #fff;
        font-weight: 600;
        font-size: 1rem;
    }
    .ozel-etkinlik-card .inp input {
        width: 100%;
        background: #2a3b4d;
        border: 1px solid #3a4a5b;
        border-radius: 8px;
        padding: 12px;
        box-sizing: border-box;
        font-weight: 600;
        color: #fff;
        text-align: center;
        font-size: 1rem;
    }
    .ozel-etkinlik-card .inp input::placeholder {
        color: #8a9bb1;
    }
    .ozel-etkinlik-card .bd .description {
        color: #a9a9c2;
        font-size: 1.1rem;
        line-height: 1.6;
        text-align: center;
        flex-grow: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .ozel-etkinlik-card .button-e {
        background-color: #f0c419;
        color: #000;
        font-weight: 800;
        border-radius: 8px;
        padding: 12px;
        text-decoration: none;
        display: block;
        transition: background-color 0.2s ease;
        margin-top: auto;
        font-size: 1rem;
        text-align: center;
    }
    .ozel-etkinlik-card .button-e:hover {
        background-color: #f0c419;
    }

    /* Fest Toto Card Specific Styles */
    .fest-toto-card .ch::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 15px;
        background-color: #97d700;
    }
    .fest-toto-card .ch {
        padding-left: 35px;
        text-align: left;
    }
    .fest-toto-card .ch .bia-tahmin {
        font-weight: 900;
        font-size: 0.9rem;
        background: #fff;
        color: #000;
        padding: 4px 8px;
        display: inline-block;
        border-radius: 4px;
        margin-bottom: 8px;
    }
    .fest-toto-card .ch .ozel-etkinlik-tag {
        background: #ffc107;
        color: #000;
        font-weight: 900;
        padding: 4px 8px;
        border-radius: 4px;
        margin-left: 5px;
        font-size: 0.9rem;
    }
    .fest-toto-card .ch .match-names {
        font-family: 'Barlow', sans-serif;
        /* font-size: 1.4rem; */
        font-weight: 800;
        margin: 2px 0 2px;
        line-height: 1.1;
        text-align: left;
        color: #fff;
    }
    .fest-toto-card .ch .date {
        font-size: 0.8rem;
        opacity: 0.9;
        text-align: left;
        margin-top: 2px;
    }
    .fest-toto-card .q {
        margin-bottom: 8px;
    }
    .fest-toto-card .r {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 6px;
    }
    .fest-toto-card .qu {
        font-weight: 700;
        color: #fff;
        font-size: 0.9rem;
    }
    .fest-toto-card .prize {
        text-align: right;
    }
    .fest-toto-card .prize span {
        font-size: 0.7rem;
        color: #a9a9c2;
        display: block;
        line-height: 1.2;
        font-weight: 600;
    }
    .fest-toto-card .prize b {
        font-size: 1.4rem;
        color: #fff;
        font-weight: 900;
    }
    .fest-toto-card .opts {
        display: flex;
        gap: 6px;
    }
    .fest-toto-card .opt {
        flex: 1;
        background: #2a3b4d;
        border: 1px solid #3a4a5b;
        border-radius: 6px;
        padding: 6px;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s ease;
        font-weight: 600;
        color: #fff;
        font-size: 0.8rem;
    }
    .fest-toto-card .opt:hover, .fest-toto-card .opt.selected {
        background: #3a4a5b;
        border-color: #4a5a6b;
    }
    .fest-toto-card .inp input {
        width: 100%;
        background: #2a3b4d;
        border: 1px solid #3a4a5b;
        border-radius: 8px;
        padding: 10px;
        box-sizing: border-box;
        font-weight: 600;
        text-align: center;
        color: #fff;
        font-size: 0.9rem;
    }
    .fest-toto-card .line {
        height: 1px;
        background-color: #3a4a5b;
        margin: 8px 0;
    }
    .fest-toto-card .description {
        font-size: 0.75rem;
        color: #a9a9c2;
        line-height: 1.5;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #3a4a5b;
    }
    .fest-toto-card .button-e {
        background-color: #f0c419;
        color: #000;
        font-weight: 800;
        border-radius: 8px;
        padding: 12px;
        text-decoration: none;
        display: block;
        transition: background-color 0.2s ease;
        margin-top: auto;
        font-size: 1rem;
        text-align: center;
    }
    .fest-toto-card .button-e:hover {
        background-color: #f0c419;
    }

@media (max-width: 1100px) {
  .event-cards-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  .custom-event-card {
    width: 100% !important;
    max-width: 500px !important;
  }
}
@media (max-width: 768px) {
    .match-teams {
        font-size: .9rem !important;
        max-width: 65px !important;
    }
}