/*----------------------------added by Micho----------------------------------*/

.tit{
    padding-top: 2vh;
    padding-left: 2vw;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -10.5vw;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #ccc;
  background: white;
  display: none;          /* hidden by default */
  
}

.dropdown-menu li a{
    text-decoration: none;
    cursor: pointer;
    padding: 0.5em 1em;
    color: black;
}

.dropdown-menu li {
    cursor: pointer;
    padding: 0.5em 1em;
}

.dropdown-menu li:hover{
    background-color: #0572ed;
}

.dropdown {
  position: relative;
  display: none;
  user-select: none;
}

.dropdown-toggle {
  padding: 0.5em 1em;
  cursor: pointer;
}

/*----------------------------------------------------------------------------*/


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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    display: grid;
    grid-template-columns: 70% 30%;
    min-height: 100vh;
}

/* Header Styles */
header {
    background: #0051ba;
    color: white;
    padding: 1rem;
    grid-column: 1 / -1;
}

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

.header-link {
    color: white;
    text-decoration: none;
}

/* Navigation */
.desktop-nav a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
#hero {
    background: #f8f9fa;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    flex: 1;
    min-width: 50%;
}

.hero-image {
    flex: 1;
    min-width: 45%;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-description {
    margin: 1.5rem 0;
    color: #444;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Card Grids */
.research-grid,
.equipment-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.research-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.equipment-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Card Styles */
.research-card,
.equipment-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.equipment-card {
    overflow: hidden;
}

.equipment-card:hover {
    transform: translateY(-5px);
}

.equipment-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

/* Sidebar */
aside {
    background: #f4f4f4;
    padding: 2rem;
    border-left: 1px solid #ddd;
}

.sidebar-section {
    margin-bottom: 2rem;
}

/* Footer */
footer {
    grid-column: 1 / -1;
    background: #0051ba;
    color: white;
    padding: 1rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        grid-template-columns: 1fr;
    }

    aside {
        order: 2;
        border-left: none;
        border-top: 1px solid #ddd;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .dropdown {  /*added by Micho*/
        display: inline-block;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        order: -1;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    #hero {
        padding: 2rem 1rem;
    }

    .hero-image img {
        border-radius: 4px;
    }
}

