/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    border-bottom: 2px solid #fbc02d;
}

.left-links a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
}

.left-links a:hover {
    text-decoration: underline;
}

.right-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.font-size {
    font-size: 12px;
}

.theme-toggle {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 2px;
    border-radius: 5px;
}

.theme-toggle .light {
    background: #fff;
    color: black;
    padding: 3px 6px;
}

.theme-toggle .dark {
    background: yellow;
    color: black;
    padding: 3px 6px;
}

.language {
    font-size: 12px;
}

.search-icon {
    font-size: 16px;
    cursor: pointer;
}

/* Navigation */
.navbar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: #111;
    color: white;
    padding: 15px 20px;
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo img {
    height: 50px;
    margin-right: 10px;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    border-top: 2px solid #fbc02d;
    padding-top : 1.5rem;
}

.navbar .nav-links li {
    margin: 0 15px;
}

.navbar .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.navbar .nav-links a:hover {
    color: #fbc02d;
}

/* Banner */
.banner {
    position: relative;
    width: 100%;
    height: 400px;
}

.banner video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

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

.banner-text {
    position: absolute;
    top: 0%;
    left: 10%;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Stats Section */
.stats {
    display: flex;
    justify-content: center;
    /* background-color: #222; */
    color: white;
    /* padding: 40px; */
    text-align: center;
    align-items: center;
    height: 4rem;
}

.stat-box {
    background-color: #444;
    padding: 10px 10px;
    width: 200px;
    /* border-radius: 10px; */
}

.stat-box:nth-child(odd) {
    background-color: #99BBD1;
}

.stat-box .icon{
    font-size: 30px;
}

.stat-box img{
    height: 40px;
    width: 50px;
}

.stat-box h2 {
    font-size: 28px;
    margin: 10px 0;
}

.stat-box p {
    font-size: 18px;
}

div.text{
    display: flex;
    flex-direction: column;
}

/* General Styles */


/* Recent Research Section */
.recent-research {
    width: 90%;
    margin: 40px auto;
    background: white;
    padding: 20px;
}

/* Header */
.recent-research .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.recent-research h2 {
    font-size: 22px;
    font-weight: bold;
}

.recent-research a {
    text-decoration: none;
    color: black;
    font-size: 14px;
    font-weight: bold;
}

/* Research Grid */
.research-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.research-item {
    position: relative;
    overflow: hidden;
}

.research-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.patents-section {
    width: 80%;
    margin: auto;
    padding: 40px 0;
    background: white;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.header h2 {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
}

.header a {
    text-decoration: none;
    font-size: 14px;
    color: black;
}

.patent-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: gray;
}

.patent-card {
    display: flex;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 80%;
}

.patent-card img {
    width: 300px;
    height: auto;
    border-radius: 5px;
}

.patent-details {
    padding-left: 20px;
    max-width: 600px;
}

.patent-details h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.patent-details p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.buttons {
    margin-top: 10px;
}

.buttons button {
    padding: 8px 12px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    margin-right: 10px;
    border-radius: 5px;
}

.read-more {
    background-color: white;
    border: 1px solid black;
}

.license {
    background-color: black;
    color: white;
}

.ranking-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.ranking-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.ranking-item {
    text-align: center;
    max-width: 200px;
}

.ranking-item img {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
}

.ranking-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.ranking-item h2 {
    font-size: 28px;
    color: black;
    text-shadow: 2px 2px #c89b3c;
    font-weight: bold;
}

.ranking-title {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.achievements-section {
    padding: 40px 20px;
    text-align: center;
}

.achievements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 20px;
}

.achievements-header h2 {
    font-size: 24px;
    color: #1D2C3C;
}

.view-all {
    font-size: 14px;
    color: #1D2C3C;
    text-decoration: none;
    font-weight: bold;
}

.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1200px;
    margin: auto;
}

.carousel-track {
    display: flex;
    overflow: hidden;
    gap: 20px;
    scroll-behavior: smooth;
    width: 80%;
}

.carousel-item {
    flex: 0 0 300px;
    background: #263238;
    color: white;
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
}

.carousel-item img {
    width: 100%;
    height: auto;
}

.carousel-content {
    padding: 15px;
}

.carousel-content h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.carousel-content p {
    font-size: 12px;
    color: #bbb;
}

.carousel-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #1D2C3C;
    cursor: pointer;
    padding: 10px;
}

.carousel-dots {
    margin-top: 15px;
}

.dot {
    height: 8px;
    width: 8px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    margin: 0 4px;
    cursor: pointer;
}

.dot.active {
    background-color: #1D2C3C;
}

.events-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.gallery-container {
    display: flex;
    background-color: #111;
    padding: 20px;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
}

.event-list {
    color: white;
    width: 30%;
    padding: 20px;
}

.event-list h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.event-list ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
}

.event-list li {
    font-size: 14px;
    padding: 8px 0;
    cursor: pointer;
}

.event-list .active {
    background-color: #F4B400;
    padding: 8px;
    border-radius: 5px;
    color: black;
    font-weight: bold;
}

.image-slider {
    width: 70%;
    display: flex;
    align-items: center;
    position: relative;
}

.slider-content {
    position: relative;
    width: 100%;
    text-align: center;
}

.slider-content img {
    width: 100%;
    border-radius: 10px;
}

.dots {
    margin-top: 10px;
}

.dot {
    height: 8px;
    width: 8px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    margin: 0 4px;
    cursor: pointer;
}

.dot.active {
    background-color: white;
}

.prev-btn, .next-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    position: absolute;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.milestones {
    width: 80%;
    margin: auto;
    padding: 40px 0;
}

.milestone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.milestone-header h2 {
    font-size: 22px;
}

.view-all {
    text-decoration: none;
    color: black;
    font-size: 14px;
    font-weight: bold;
}

.timeline {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    font-size: 14px;
    color: gray;
}

.timeline span {
    cursor: pointer;
}

.timeline .active {
    color: #F4B400;
    font-weight: bold;
    position: relative;
}

.timeline span::after{
    content: "•";
    display: block;
    text-align: center;
    font-size: 16px;
    color: gray;
}

.timeline .active::after {
    content: "•";
    display: block;
    text-align: center;
    font-size: 16px;
    color: #F4B400;
}


.milestone-content {
    display: flex;
    align-items: center;
    position: relative;
}

.milestone-card {
    display: flex;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    align-items: center;
}

.milestone-card img {
    width: 200px;
    height: auto;
    border-radius: 5px;
}

.milestone-text {
    margin-left: 20px;
}

.milestone-text h3 {
    font-size: 18px;
}

.milestone-text p {
    font-size: 14px;
    color: #555;
}

.read-more {
    display: inline-block;
    padding: 8px 12px;
    font-size: 12px;
    color: black;
    border: 1px solid black;
    text-decoration: none;
    margin-top: 10px;
    border-radius: 4px;
}

.prev-btn, .next-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: gray;
    position: absolute;
}

.prev-btn {
    left: -30px;
}

.next-btn {
    right: -30px;
}

.container {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: auto;
    padding: 40px 0;
    gap:2rem;
}

/* Notice Board */
.notice-board {
    width: 60%;
    background: #e6eff7;
    padding: 20px;
    border-radius: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap:1.2rem;
}

.section-header h2 {
    font-size: 18px;
}

.view-all {
    text-decoration: none;
    color: black;
    font-size: 14px;
    font-weight: bold;
}

.notices {
    margin-top: 10px;
}

.notice {
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
}

.notice-category {
    font-size: 12px;
    color: gray;
}

.notice-date {
    float: right;
    font-size: 12px;
    color: gray;
}

.notice-title {
    font-size: 14px;
    font-weight: bold;
}

.notice-text {
    font-size: 12px;
    color: #555;
}

.notice:last-child {
    border-bottom: none;
}

/* Upcoming Events */
.upcoming-events {
    width: 35%;
}

.event {
    display: flex;
    align-items: center;
    margin-top: 20px;
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 10px;
}

.event-date {
    width: 50px;
    text-align: center;
    border: 1px solid black;
    border-radius: 5px;
    padding: 5px;
    display: flex;
    flex-direction: column;
}

.event-date span{
    display: block;
    width: 2.5rem;
    text-align: center;
}

.event-date .day {
    font-size: 18px;
    font-weight: bold;
}

.event-date .month {
    font-size: 12px;
    color: gray;
}

.event-details {
    margin-left: 10px;
}

.event-details h3 {
    font-size: 14px;
    margin: 0;
}

.event-details p {
    font-size: 12px;
    color: #555;
}

.event:last-child {
    border-bottom: none;
}

.footer {
    background: black;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: auto;
    align-items: flex-start;
}

/* Left Section */
.footer-left {
    text-align: left;
    width: 25%;
}

.footer-logo {
    width: 120px;
    margin-bottom: 10px;
}

.footer-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-info {
    font-size: 14px;
    margin: 3px 0;
}

.social-icons a {
    margin-right: 10px;
    color: black;
}

.social-icons img {
    width: 23px;
    height: 20px;
}

/* Middle Section */
.footer-middle {
    display: flex;
    width: 70%;
    justify-content: space-between;
}

.footer-column {
    text-align: left;
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

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

.footer-column ul li {
    margin-bottom: 5px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

/* Bottom Section */
.footer-bottom {
    border-top: 1px solid #555;
    margin-top: 20px;
    padding-top: 10px;
    font-size: 12px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    font-size: 12px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.love-message {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.7;
}


.dropdown .selected{
    display:none;
}

.dropdown-list{
    display: flex;
    gap: .5rem
}

.menu-toggle {
    display: none;
    cursor: pointer;
    background: black;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
}


@media (max-width: 768px) {
    

    .stats{
        width: 40%;
        margin: auto;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-left, .footer-middle {
        width: 100%;
        text-align: center;
    }

    .footer-middle {
        margin-top: 20px;
        flex-direction: column;
        /* align-items: center; */
    }

    .footer-column {
        margin-bottom: 20px;
    }

    .dropdown .selected{
        display:block;
    }

    .container{
        flex-direction: column;
        align-items: center;
    }

    .notice-board,.upcoming-events{
        width:100%;
    }

    .milestone-card{
        display: flex;
        flex-direction: column;
    }

    .timeline span{
        background-color: black;
        border-radius: 5px;
        display: block;
        padding: 5px 10px;
    }

    .timeline span::after{
        content: none;
    }

    .timeline .active::after{
        content: none;
    }

    .gallery-container{
        flex-direction: column-reverse;
        width: 100%;
        align-items: center;
    }
    .event-list{
        width: 100%;
        border-radius: none;
    }

    .events-gallery,.gallery-container{
        border-radius: 0;
    }


    .event-list ul{
        flex-direction: row;
        overflow: hidden;
        align-items: center;
        position: relative;
        }

        .event-list ul::before, .event-list ul::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 20px;
        pointer-events: none;
        z-index: 1;
        }

        .event-list ul::before {
        left: 0;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.5), transparent);
        }

        .event-list ul::after {
        right: 0;
        background: linear-gradient(to left, rgba(0, 0, 0, 0.5), transparent);
    }
    .event-list h2{
        text-align: center;
    }

    .event-list ul{
        align-self: center;
        
    }

    .event-list li{
        margin: 1rem;
    }

    .achievements-section{
        background-color: #fbc02d;
    }

    .ranking-container{
        flex-direction: column;
        align-items: center;

    }

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

    .nav-links{
        display: none;
    }

    /* Dropdown container */
.dropdown {
    position: relative;
    width: 200px;
    cursor: pointer;
}

/* Initially visible selected item */
.selected {
    background: black;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

/* Hidden dropdown list */
.dropdown-list {
    display: none;
    position: absolute;
    width: 100%;
    background: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 10;
}

/* Dropdown items */
.dropdown-item {
    padding: 10px;
    text-align: center;
    color: black;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* Hover effect */
.dropdown-item:hover {
    background: lightgray;
}

/* Show dropdown when clicked */
.dropdown.active .dropdown-list {
    display: block;
}
    
}