/* Student Guide Page Custom Styles */
:root{
    --main-color: #004063;
    --overlay-dark:rgba(0,0,0,.45);
    --nav-bg:rgba(0,0,0,.65);
    --section-pad:4.5rem;
    --primary-blue: #004080;
    --hover-blue: #003366;
    --light-blue: #e6f0ff;
    --off-white: #f8f9fa;
    --hover-red: #C62828;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
  }

.student-guide-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    opacity: 0.99999;
    
}

.student-guide-section {
    padding: 3rem 10% 2rem 10%;
    text-align: left;
    background-color: var(--off-white);
}
.student-guide-section h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.student-guide-section p {
    font-size: 1.1rem;
    color: #222;
    max-width: 2000px;
}

/* Election Guide Section */
.election-guide {
    padding: 5rem 10%;
    background: #fff;
}

.election-guide-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.election-guide-item {
    background: #fff;
    border-radius: 0px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    
}

.election-guide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.election-guide-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.election-guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.election-guide-item:hover .election-guide-image img {
    transform: scale(1.05);
}

.election-guide-item h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin: 1.5rem 1.5rem 0.5rem;
}

.election-guide-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 1.5rem 1.5rem;
    flex-grow: 1;
}
.youtube-btn{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FF0000;
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0px;
    margin: 0 1.5rem 1.5rem;
    transition: background 0.3s, transform 0.3s;
    font-weight: 500;
}



.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-blue);
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0px;
    margin: 0 1.5rem 1.5rem;
    transition: background 0.3s, transform 0.3s;
    font-weight: 500;
}

.download-btn:hover {
    background: var(--hover-blue);
    transform: translateY(-2px);
}

.download-btn i{
    font-size: 1.1rem;
}
.youtube-btn:hover {
  background: var(--hover-red);
  transform: translateY(-2px);
}

.youtube-btn i{
  font-size: 1.1rem;
}

@media (max-width: 768px) {
    .student-guide-header{
      min-height: 40vh !important;
      padding: 2rem 1rem !important;
    }
    .student-guide-header h1 {
        font-size: 3rem !important;
        
      }
      .student-guide-header h2 {
        font-size: 1.8rem !important;
       
    }
    .slider-container {
        position: relative;
        width: 100%;
        overflow: hidden;
      }
      .slider-wrapper {
        display: flex;
        overflow-x: scroll;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
      }
      .slider-wrapper::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
      }
      .election-guide-container {
        display: flex;
        flex-wrap: nowrap;
        gap: 1rem;
        padding: 0 1rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }
      .election-guide-item {
        flex: 0 0 calc(100% - 2rem);
        max-width: calc(100% - 2rem);
        width: 60px;
        
      }
      .election-cards .election-guide-item {
      min-height: 420px;
      width: 85px
    }

    .election-guide {
        padding: 3rem 5%;
        
    }
    
    .election-guide-image {
        height: 180px;
    }
    .election-guide-item h3 {
        font-size: 1.2rem;
        margin: 1.2rem 1.2rem 0.5rem;
    }
    .election-guide-item p {
        font-size: 0.95rem;
        margin: 0 1.2rem 1.2rem;
    }
    .download-btn {
        padding: 0.7rem 1.2rem;
        margin: 0 1.2rem 1.2rem;
        font-size: 0.95rem;
    }
}


@media (max-width: 520px) {
  .student-guide-header{
    min-height: 40vh !important;
    padding: 2rem 1rem !important;
  }
  .student-guide-section{
    padding: 1rem 5% 1rem 5% !important;
  }
  .student-guide-section h2{
    font-size: 1.2rem !important;
  }
  .student-guide-section p{
    font-size: 0.8rem !important;
  }
   .student-guide-header h1 {
    font-size: 1.70rem !important;
    
  }
  .election-guide-image img{
    object-fit: fill;
  }

  .student-guide-header h2 {
    font-size: 1.2rem !important;
}
 .ieee-overview h2{
  font-size: 1.5rem !important;
 }
 .election-guide h2{
  font-size: 1.6rem !important;
 }
 .general-regulations h2{
  font-size: 1.5rem !important;
 }
 .container{
  padding: 0 !important;
 }

}


.general-regulations ol li {
    margin-bottom: 0.4em;
}


