:root {
    --primary: #2d4697;
    --secondary: #ffc107;
    ;
    --light: #f8f9fa;
    --dark: #212529;
    --accent: #00a896;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-800: #374151;
    --white: #ffffff;
    --orange: #ffc107;
    --shadow-sm: 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 25px -8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
}

body {
    /* font-family: 'Roboto', sans-serif; */
    font-family: 'Merriweather Sans', sans-serif;
    color: #333;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 50px;
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    color: var(--light);
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

.hero-slider {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: 100vh;
    min-height: 600px;
    background-position: center;
    background-size: cover;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-caption {
    bottom: 30%;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--secondary);
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

/* about section */

.about-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.about-image-container img {
    transition: transform 0.5s ease;
    width: 100%;
    height: auto;
}

.about-image-container:hover img {
    transform: scale(1.03);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 101, 164, 0.1), rgba(0, 101, 164, 0.3));
    border-radius: 10px;
}

.about-icon {
    font-size: 1.8rem;
    color: var(--primary);
    flex-shrink: 0;
}

.finalist-info {
    border-left: 4px solid var(--secondary);
}

.finalist-info ul {
    padding-left: 1.2rem;
}

.finalist-info li {
    margin-bottom: 0.5rem;
}

.prize-info {
    border: 1px solid #e9ecef;
}

@media (max-width: 768px) {
    .about-image-container {
        margin-bottom: 30px;
    }
    
    .prize-info .d-flex {
        flex-direction: column;
        gap: 15px;
    }
}

.about-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}
/* outreaching section */
.partner-logo {
    height: 200PX;
    margin: 20px;
    /* filter: grayscale(100%); */
    transition: all 0.3s ease;
}

/* .partner-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
} */


 /* <!-- Registration Section --> */
.registration-btn {
    min-width: 250px;
    transition: all 0.3s ease;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.registration-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .registration-btn {
        width: 100%;
        margin-bottom: 15px;
    }
}

.registration-box {
    background: var(--light);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.registration-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.btn-login {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: white;
    color: var(--primary);
}

.takeaway-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.takeaway-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.takeaway-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* eligibility crireria */
.eligibility-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.eligibility-image-container img {
    transition: transform 0.5s ease;
    width: 100%;
    height: auto;
}

.eligibility-image-container:hover img {
    transform: scale(1.03);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 101, 164, 0.1), rgba(0, 101, 164, 0.3));
    border-radius: 10px;
}

.school-registration-info {
    border-left: 4px solid var(--secondary);
}

.school-registration-info ul {
    padding-left: 1.2rem;
}

.school-registration-info li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .eligibility-image-container {
        margin-bottom: 30px;
    }
}

.criteria-item {
    padding: 20px;
    border-left: 3px solid var(--primary);
    margin-bottom: 20px;
    background: var(--light);
    border-radius: 0 5px 5px 0;
}

.criteria-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-right: 15px;
}

.domain-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 300px;
}

.domain-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.domain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 101, 164, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.5s ease;
    padding: 20px;
    text-align: center;
}

.domain-card:hover .domain-overlay {
    opacity: 1;
}

.domain-card:hover .domain-img {
    transform: scale(1.1);
}

.schedule-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
}

.schedule-item:before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--secondary);
    left: 0;
    top: 5px;
}

.schedule-date {
    font-weight: 700;
    color: var(--primary);
}

.contact-info {
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 15px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-links h5 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer-links h5:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--secondary);
    bottom: 0;
    left: 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
    text-decoration: none;
    color: white;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .carousel-caption {
        bottom: 20%;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
        background: var(--dark);
        padding: 15px;
        border-radius: 5px;
        margin-top: 10px;
    }

    .navbar-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        margin: 10px 0;
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.8);
    }

    .dropdown-item:hover {
        color: white;
        background: rgba(255, 255, 255, 0.1);
    }
}

/* timeline styling */


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.timeline-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    font-weight: 400;
}

/* Timeline Container */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Timeline Line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Timeline Item */
.timeline-item {
    position: relative;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.5s;
}

.timeline-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* Timeline Content */
.timeline-content {
    position: relative;
    /*background: var(--orange);*/
    padding: 32px;
    /*border-radius: var(--border-radius);*/
    /*box-shadow: var(--shadow-md);*/
    width: calc(50% - 24px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /*border: 1px solid var(--gray-200);*/
}

.timeline-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Left and Right positioning */
.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(50% + 24px);
}

/* Timeline Marker */
.timeline-marker {
    position: absolute;
    left: 50%;
    top: 40px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 4px solid var(--white);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

/* Date Badge */
.timeline-date {
    display: inline-block;
    background:  var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

/* Content Typography */
.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.timeline-description {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 24px;
        transform: none;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 64px);
        margin-left: 64px;
    }

    .timeline-marker {
        left: 24px;
        transform: translateX(-50%);
    }

    .timeline-content {
        padding: 24px;
    }

    .timeline-title {
        font-size: 1.25rem;
    }

    .timeline-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .timeline-section {
        padding: 48px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .container {
        padding: 0 16px;
    }

    .timeline::before {
        left: 16px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 48px);
        margin-left: 48px;
    }

    .timeline-marker {
        left: 16px;
        width: 20px;
        height: 20px;
        top: 32px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-date {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status indicators for different phases */
.timeline-item.completed .timeline-marker {
    background: var(--accent);
}

.timeline-item.current .timeline-marker {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    animation: pulse 2s infinite;
}

.timeline-item.upcoming .timeline-marker {
    background: var(--gray-200);
    border-color: var(--gray-200);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
}


/* login btn styling */

.btn-login {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: white;
    padding: 8px 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: var(--secondary);
    border-color: var(--light);
    transform: translateY(-1px);
}

.dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    margin: 0 -60px;
    min-width: 180px;
}

.dropdown-item {
    padding: 10px 16px;
    color: #495057;
    transition: all 0.2s ease;
    display: flex;
    /* flex-direction: column; */
    align-items: center;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.dropdown-item i {
    width: 18px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .btn-login {
        padding: 10px 14px;
        font-size: 14px;
    }

    .dropdown-menu {
        font-size: 14px;
    }
}

/* past winner */

.winner-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}
.winner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.card-img-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.winner-card:hover .card-img-top {
  transform: scale(1.05);
}
.winner-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
}
.card-body {
  padding: 20px;
}
.winner-card h4 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}
.winner-school {
  color: #666;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 14px;
}
.winner-project {
  color: #555;
  margin-bottom: 15px;
  line-height: 1.5;
}
.winner-prize {
  background: #f8f9fa;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--primary);
  font-weight: 700;
  text-align: center;
  margin-top: auto;
}
