/* Professional Blue Theme for InByte Mind Spark 2025 */

:root {
	--primary-color: #2986CC;
    --secondary-color: #4ECDC4;
    --accent-color: #FFD166;
    --dark-color: #2D3436;
    --light-color: #F8F9FA;
    --young-color: #6C5CE7;
    --rising-color: #00B894;
    --gold-color: #ffd700;
    --silver-color: #c0c0c0;
    --bronze-color: #cd7f32;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    overflow-x: hidden;
    background-color: var(--light-color);
}

/* Header Styles */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
    color: var(--gold-color) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/hero.jpg');
    background-size: cover;
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s both;
}

.btn-register {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    color: black;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    border: none;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.4);
}

.btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(49, 130, 206, 0.6);
    background: var(--secondary-color);
}

.btn-qbank {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: black;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    border: none;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.4);
}

.btn-qbank:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(49, 130, 206, 0.6);
    background: var(--secondary-color);
}

/* Carousel Section */
.carousel-section {
    padding: 60px 0;
    background-color: white;
}

.carousel {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-item {
    height: 450px;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(26, 58, 143, 0.85);
    border-radius: 10px;
    padding: 20px;
    max-width: 80%;
    margin: 0 auto;
}

.carousel-caption h3 {
    font-weight: 600;
    margin-bottom: 15px;
}

/* Competition Structure Section */
.competition-structure {
    padding: 80px 0;
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: #636e72;
}

.phase-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.phase-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.phase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.phase-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    right: 20px;
}

.phase-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.phase-description {
    color: #636e72;
    margin-bottom: 20px;
}

.phase-card ul {
    list-style: none;
    padding: 0;
}

.phase-card ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.phase-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.category-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-header {
    padding: 30px;
    text-align: center;
    color: white;
}

.young-luminaries {
    background: linear-gradient(135deg, var(--young-color), var(--accent-color));
}

.rising-stars {
    background: linear-gradient(135deg, var(--rising-color), var(--secondary-color));
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.category-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.category-body {
    padding: 30px;
}

.prize-list {
    list-style: none;
    padding: 0;
}

.prize-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.prize-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.prize-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
    color: white;
}

.rank-1 {
    background: linear-gradient(135deg, var(--gold-color), #FFA500);
}

.rank-2 {
    background: linear-gradient(135deg, var(--silver-color), #808080);
}

.rank-3 {
    background: linear-gradient(135deg, var(--bronze-color), #8B4513);
}

.prize-amount {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Timeline Section */
.timeline {
    padding: 80px 0;
    background-color: white;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.accordion-button {
    background-color: white;
    color: var(--dark-color);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
}

/* Question Bank Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 0;
    padding-top: 120px !important; /* Force this property */
    margin-bottom: 30px;
}

.question-bank {
    padding-top: 20px;
}

.question-bank .card {
    transition: all 0.3s ease;
}

.question-bank .card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.question-bank .options .form-check {
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.question-bank .options .form-check:hover {
    background-color: #f8f9fa;
}

/* Comment Styles */
.comments-section {
    max-height: 300px;
    overflow-y: auto;
}

.comment {
    margin-bottom: 15px;
}

.guest-comment .card {
    border-left: 4px solid #6c757d;
}

.user-comment .card {
    border-left: 4px solid var(--primary-color);
}

.admin-comment .card {
    border-left: 4px solid var(--secondary-color);
}

.admin-reply {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.comment-form {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}

/* Pagination Styles */
.pagination .page-link {
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(41, 134, 204, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1a6cb3;
    border-color: #1a6cb3;
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
}


/* Add to assets/css/style.css */

.question-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.question-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.question-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.question-card .badge {
    font-size: 0.75rem;
}

.question-content {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.question-bank .nav-tabs .nav-link {
    color: var(--dark-color);
    font-weight: 500;
	background: #0495a5;
}

.question-bank .nav-tabs .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
	background: #066b76;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .question-card .card-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .question-card .card-header .badge {
        margin-top: 10px;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0;
    text-align: center;
    border-radius: 15px;
    margin: 50px 0;
}

.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-widget h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--accent-color);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-widget ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.slogan {
    font-style: italic;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(49, 130, 206, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(49, 130, 206, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(49, 130, 206, 0);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .timeline-container::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }
    
    .left::after, .right::after {
        left: 18px;
    }
    
    .right {
        left: 0%;
    }
    
    .carousel-item {
        height: 300px;
    }
}