/* Main page styles */
.landing-section {
    min-height: 100vh; 
    position: relative;
    padding-bottom: 60vh;
}

.landing-page-text {
    position: relative;
    padding-left: 50px;
    top: 300px;
}

.text-behind {
  position: absolute;
  z-index: -1;
  font-size: 35vw;
  letter-spacing: -0.8vw;
  text-align: center;
  color: var(--big-bg-text);
  font-family: Kanit, sans-serif;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
}

/* accent :D */
.accent{
    color: var(--accent-color);
}

/* Al the different fonts */
.H1{ 
    font-size: 65px;
    line-height: 1.6em;
    letter-spacing: -0.02em;
}
.H2{
    font-size: 40px;
}
/* H1 in framer */
.H3{
    font-size: 30px;
    text-align: center;
}
/* H2 in framer */
.H4{
    font-size: 26px;
}

/* H3 in framer */
.H5{
    font-size: 22px;
}

@media (max-width: 768px) {
    .landing-section {
        padding-bottom: 40vh;
        margin-top: -150px;
        min-height: 0vh;
    }
    .text-behind {
        display: none;
    }
}

/* Adjust font sizes and spacing for smaller screens */
@media (max-width: 640px) {
    .H2 {
        font-size: 1.2rem;
    }

    .H1 {
        font-size: 2.5rem;
    }

    .landing-page-text {
        padding: 0 10px;
    }
}

@media (max-width: 600px) {
    .landing-page-text {
        padding: 0 10px;
        text-align: center;
    }

    .landing-page-text .H2 {
        text-align: left;
    }

    .landing-page-text .H1 {
        font-size: 1.8rem;
        line-height: 1.8;
        margin-bottom: 15px;
    }
}

/* Perks Section */
.perks-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 0 48px 0;
  background: transparent;
}

.perks-card {
  margin: 0 50px;
  max-width: 1380px;
  transition: background-color 0.3s ease;
}

.perks-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--perk-heading);
  margin-bottom: 28px;
}

.perks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.perk {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.perk-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  background: none;
  border-radius: 0;
  margin-top: 2px;
  flex-shrink: 0;
}

.perk-purple { background: #f3e8ff; color: #a78bfa; }
.perk-yellow { background: #fef9c3; color: #facc15; }
.perk-red    { background: #fee2e2; color: #f87171; }
.perk-green  { background: #dcfce7; color: #34d399; }
.perk-blue   { background: #dbeafe; color: #60a5fa; }
.perk-indigo { background: #e0e7ff; color: #6366f1; }

.perk-heading {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--perk-heading);
  margin-bottom: 2px;
}

.perk-desc {
  color: var(--perk-text);
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

/* Responsive grid for perks */
@media (min-width: 700px) {
  .perks-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1100px) {
  .perks-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .perks-card {
    padding: 18px 6px 18px 6px;
    margin: 0px 10px;
  }
  .perks-title {
    font-size: 1.3rem;
    margin-bottom: 18px;
  }
  .perk-heading {
    font-size: 1rem;
  }
  .perk-icon {
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
  }
}

/* Call to Action Section */
.call-to-action-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.call-to-action-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.call-to-action-text {
    flex: 1;
    min-width: 1000px;
}

.call-to-action-text .H1 {
    margin-bottom: 20px;
}

.call-to-action-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.call-to-action-image img {
    max-width: 160%;
    height: auto;
    opacity: 0.8;
}

.discord-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 30px;
    transition: background-color 0.3s ease;
}

.discord-button:hover {
    background-color: var(--primary-hover);
}

.discord-button i {
    margin-left: 8px;
}

/* Responsive adjustments */
@media (max-width: 920px) {
    .call-to-action-container {
        flex-direction: column;
        text-align: center;
        padding: 0 10px;
    }

    .call-to-action-text {
        margin-right: 0;
        margin-bottom: 50px;
        min-width: 300px; 
    }

    .call-to-action-image img {
        max-width: 70%;
    }
}

@media (max-width: 600px) {
    .call-to-action-section {
        padding: 40px 0;
    }

    .call-to-action-text .H1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .discord-button {
        font-size: 0.85rem;
        padding: 8px 18px;
    }
}

/* Upcoming Events Section */
.upcoming-events-section {
    padding: 60px 0;
    background-color: var(--bg-light);
    transition: background-color 0.3s ease;
}

.upcoming-events-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
}

.upcoming-events-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.event-card {
    background-color: var(--event-item-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.event-date {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    margin-right: 20px;
    font-family: 'Kanit', sans-serif;
}

.event-date.green {
    background-color: #34d399;
}

.event-date.blue {
    background-color: var(--primary-color);
}

.event-date.red {
    background-color: #f87171;
}

.event-date.purple {
    background-color: #a78bfa;
}

.event-date.yellow {
    background-color: #facc15;
}

.event-date.indigo {
    background-color: #6366f1;
}

.date-day {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1;
}

.date-month {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;
}

.event-details {
    flex-grow: 1;
}

.event-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.event-info {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.learn-more-link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.learn-more-link:hover {
    color: var(--primary-hover);
}

.view-all-events {
    text-align: center;
    margin-top: 30px;
}

.view-all-link {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: var(--primary-hover);
}

.view-all-link i {
    margin-left: 5px;
}

/* Responsive grid for events */
@media (min-width: 700px) {
    .events-grid {
        grid-template-columns: 1fr 1fr;
    }

    .events-grid .event-card:only-child {
        grid-column: span 2;
        justify-self: stretch;
    }

    .upcoming-events-section h2 {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .upcoming-events-section {
        padding: 40px 0;
    }

    .upcoming-events-container {
        padding: 0 15px;
    }

    .upcoming-events-section h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .event-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .event-date {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .learn-more-link {
        font-size: 0.85rem;
    }

    .view-all-link {
        font-size: 0.9rem;
    }
}

