/* Specific overrides for Bootstrap classes (if needed) */
.navbar, .btn, .form-control, .card, .card-title, .card-text {
    font-family: 'DB Gin Siam X', sans-serif !important;
}
body {
    background-color: var(--primary-dark);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 60vh;
    position: relative;
    background: url('/api/placeholder/1920/1080') center/cover;
    /* z-index: 2000; */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, var(--primary-dark), transparent 60%, rgba(15, 15, 30, 0.4));
}

.hero-content {
    position: absolute;
    /* bottom: 150px; */
    left: 50px;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.btn-play {
    background-color: var(--gradient-1);
    color: white;
}

.btn-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Movie Rows */
.movie-section {
    padding: 10px 10px;
    margin-top: -100px;
    position: relative;
    z-index: 1;
}

.row-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.movie-row {
    position: relative;
    margin-bottom: 40px;
}

.movie-slider {
    display: flex;
    overflow-x: hidden !important;
    scroll-behavior: smooth;
    gap: 8px;
}

.movie-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

 /* Add styles for the see more button */
 .see-more-btn {
    position: absolute;
    bottom: 10px;
    width: 90%;
}

.see-more-btn:hover {
    background-color: #e0e0e0;
}

/* Adjust overlay to accommodate the new button */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    padding: 10px;
}

.movie-image-container:hover .overlay {
  background-color: rgba(0, 0, 0, 0.712); /* สีดำจางๆ 40% */
}

.play-btn {
  font-size: 2rem;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-bottom: 10px;
  text-decoration:none;
}

.overlay-info {
  color: #fff;
  text-align: left;
}

.overlay-info .overlay-title,
.overlay-info .overlay-maturity,
.overlay-info .overlay-running-time,
.overlay-info .overlay-subtitles {
  margin: 4px 0;
}

.movie-info-below .release-date,
.movie-info-below .movie-title,
.movie-info-below .maturity-and-running {
  margin: 5px 0;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(99, 102, 241, 0.2);
    width: 40px;
    height: 100px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
}

.slider-button:hover {
    background: var(--accent-purple);
    transform: scale(1.1);
}

.movie-row:hover .slider-button {
    opacity: 1;
}

.slider-button.left {
    left: -40px;
    z-index: 1;
}

.slider-button.right {
    right: -40px;
}


.number {
    position: absolute;
    left: 0;
    bottom: 0;
    font-size: 160px;
    font-weight: bold;
    color: white;
    line-height: 1;
    z-index: 1;

}

/* Reasons Section */
.reasons-section {
    padding: 10px 10px;
    margin: 40px 0;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
    justify-items: center;
}

.reason-card {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 24px;
    transition: transform 0.3s;
}

.reason-card:hover {
    transform: translateY(-5px);
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-purple);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.reason-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--accent-purple);
}

.reason-description {
    color: #a3a3a3;
    font-size: 0.9rem;
    line-height: 1.5;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: white;
}

.next-button {
    position: absolute;
    top: -50%;
    transform: translateY(-50%);
    background: rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(99, 102, 241, 0.2);
    width: 40px;
    height: 100px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1;
}

.next-button:hover {
    background: var(--accent-purple);
    transform: scale(1.1);
}

/* all section */
/* .otp-section,.account-section,.social-section,.game-section,.credit-section,.mobile-section,.service-section {
    padding: 5px 10px;
    margin: 40px 0;
}
.otp-grid,.account-grid,.game-grid,.credit-grid,.mobile-grid,.social-grid{
    display: grid;
    grid-template-columns: repeat(6, minmax(180px, 1fr));
    gap: 5px;
    justify-items: center;
} */

.row-title.underline{
    border-bottom: 4px solid var(--accent-purple); 
    padding-bottom: 5px;
    border-radius: 5px;
}
.see-all{
    border: 1px solid var(--accent-purple);
    background-color: transparent;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    transition: all 0.3s;
}

.see-all:hover{
    background-color: var(--accent-purple);
}

.otp-card,.account-card,.social-card,.game-card,.credit-card,.mobile-card{
    /* width: 190px; */
    border: 1px solid var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 5px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);

    h3{
        margin-bottom: 5px;
        padding: 5px 5px;
        width: 100%;
        text-align: center;
        
    }
}
.otp-card:hover,.account-card:hover,.social-card:hover,.game-card:hover,.credit-card:hover,.mobile-card:hover{
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.9);
}

.btn-otp,.btn-account,.btn-game,.btn-credit,.btn-mobile{
    white-space: nowrap;
    border: 1px solid var(--accent-purple);
    background-color: transparent;
    color: white;
    padding: 10px 55px;
    border-radius: 5px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    margin: 20px;
    cursor: pointer;
}
.btn-otp:hover,.btn-account:hover,.btn-game:hover,.btn-credit:hover,.btn-mobile:hover{
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.9);
}

.img-otp,.img-account,.img-social,.img-game,.img-credit,.img-mobile{
    margin: 10px 0;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 9px;
}
/* Social section */
/* .social-grid{
    display: grid;
    grid-template-columns: repeat(6, minmax(200px, 1fr));
    gap: 5px;
} */

/* service section */
.cards{
    display: flex;
    margin-top: 50px;
    .des{
        width: 70%;
        margin: 0 50px;
    }

    h1{
        margin-bottom: 30px;
    }
    p{
        margin-bottom: 20px;
        letter-spacing: 1px;
        line-height: 2;
    }
}
.revrse{
    flex-direction: row-reverse;
}


/* Extra Large Devices (1440px and above) */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
    }

    .movie-card {
        flex: 0 0 180px;
    }

    .hero-content {
        max-width: 800px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .reasons-grid {
        max-width: 1400px;
        margin: 20px auto;
        justify-items: center;
    }
}

/* Large Devices (1200px and below) */
@media screen and (max-width: 1200px) {
    .reasons-grid {
        grid-template-columns: repeat(3, 2fr);
    }

    .otp-grid,.account-grid,.game-grid,.credit-grid,.mobile-grid,.social-grid {
        grid-template-columns: repeat(4, minmax(180px, 1fr));
    }
}

/* Medium Devices (992px and below) */
@media screen and (max-width: 992px) {

    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .otp-grid,.account-grid,.game-grid,.credit-grid,.mobile-grid,.social-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .movie-card {
        flex: 0 0 180px;
    }
}

/* Tablet Devices (768px and below) */
@media screen and (max-width: 768px) {
/* ลดขนาดฟอนต์สำหรับส่วน title */
#hero-title {
    font-size: 1.8rem; /* ปรับขนาดตามที่ต้องการ */
  }

  /* ลดขนาดฟอนต์สำหรับส่วน description */
  #hero-description {
    font-size: 1rem; /* ปรับขนาดตามที่ต้องการ */
  }

  /* หากต้องการปรับขนาดปุ่ม */
  .btn {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
    .otp-grid,.account-grid,.game-grid,.credit-grid,.mobile-grid,.social-grid {
        grid-template-columns: repeat(4, minmax(150px, 1fr));
    }
}

/* Mobile Devices (576px and below) */
@media screen and (max-width: 576px) {
    /* ลดขนาดฟอนต์สำหรับส่วน title */
  #hero-title {
    font-size: 1.8rem; /* ปรับขนาดตามที่ต้องการ */
  }
  .title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  /* ลดขนาดฟอนต์สำหรับส่วน description */
  #hero-description {
    font-size: 1rem; /* ปรับขนาดตามที่ต้องการ */
  }

  /* หากต้องการปรับขนาดปุ่ม */
  .btn {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
    .otp-grid,.account-grid,.game-grid,.credit-grid,.mobile-grid,.social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
