
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f6f8fa;
}

.qnwrapper {
    display: flex;
    flex-direction: column;
}

.qncontainer {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

p {
    margin-bottom: 15px;
}

a {
    color: #5deace;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #84dba6;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 15px;
}

/* --------- Nupud ja siseloomendid --------- */
.qnprimary-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #5deace;
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.qnprimary-button:hover {
    background-color: #84dba6;
}

.qnsecondary-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: #5deace;
    font-weight: 600;
    border: 2px solid #5deace;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qnsecondary-button:hover {
    background-color: #5deace;
    color: #ffffff;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #5deace;
}

/* --------- Navigatsioon --------- */
.qnprimary-nav {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.qnprimary-nav .qncontainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qnlogo h1 {
    color: #5deace;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 0;
}

.qnnav-links {
    display: flex;
    list-style: none;
    margin-bottom: 0;
}

.qnnav-links li {
    margin-right: 25px;
}

.qnnav-links li:last-child {
    margin-right: 0;
}

.qnnav-links a {
    color: #333;
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.qnnav-links a:hover, .qnnav-links a.qnactive {
    color: #5deace;
    border-bottom-color: #5deace;
}

.qnsearch-component {
    display: flex;
    align-items: center;
}

.qnsearch-input {
    width: 180px;
    padding: 8px 12px;
    margin-bottom: 0;
    margin-right: 10px;
    border: 1px solid #e2e2e2;
}

.qnsearch-button {
    padding: 8px 12px;
    background-color: #5deace;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.qnsearch-button:hover {
    background-color: #84dba6;
}

/* --------- Avalehe erimud --------- */
.qnhero-area {
    background: linear-gradient(135deg, #5deace 0%, #84dba6 100%);
    color: #ffffff;
    padding: 80px 0;
    margin-bottom: 50px;
}

.qnhero-content {
    max-width: 650px;
}

.qnhero-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.qnhero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* --------- Uurimuse sektsioon --------- */
.qnfeatured-studies {
    padding: 40px 0 60px;
}

.qnsection-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.qnsection-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #5deace;
    margin: 15px auto 0;
}

.qnstudy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.qnstudy-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qnstudy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.qnstudy-image {
    position: relative;
    height: 180px;
    margin-bottom: 0;
}

.qnimage-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
}

.qnstudy-image figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background-color: rgba(93, 234, 206, 0.8);
    color: #ffffff;
    font-size: 14px;
}

.qnstudy-content {
    padding: 20px;
}

.qnstudy-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.qnread-more {
    display: inline-block;
    font-weight: 600;
    margin-top: 10px;
}

/* --------- Teadmiste keskus sektsioon --------- */
.qnknowledge-hub {
    background-color: #f0f5f2;
    padding: 60px 0;
}

.qnknowledge-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.qncategory-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.qncategory-item h3 {
    color: #5deace;
    margin-bottom: 15px;
}

.qnresource-list {
    list-style-type: none;
}

.qnresource-list li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.qnresource-list li:before {
    content: '•';
    color: #5deace;
    position: absolute;
    left: 0;
}

.qnfeatured-resource {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
    text-align: center;
}

.qnfeatured-resource h3 {
    color: #5deace;
    margin-bottom: 15px;
}

.qnfeatured-resource p {
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --------- Rakenduste sektsioon --------- */
.qnapplications-section {
    padding: 60px 0;
}

.qnapplications-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #ffffff;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
    border-radius: 8px;
    overflow: hidden;
}

.qnapplications-table th, .qnapplications-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e2e2e2;
}

.qnapplications-table th {
    background-color: #5deace;
    color: #ffffff;
    font-weight: 600;
}

.qnapplications-table tr:last-child td {
    border-bottom: none;
}

.qnapplications-table tr:hover td {
    background-color: #f8fcfb;
}

/* --------- Kontakti sektsioon --------- */
.qncontact-section {
    padding: 60px 0;
    background-color: #f0f5f2;
}

.qncontact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.qnaddress-block, .qncontact-block, .qnform-container {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.qnaddress-block h3, .qncontact-block h3, .qnform-container h3 {
    color: #5deace;
    margin-bottom: 15px;
}

.qnform-group {
    margin-bottom: 15px;
}

.qnform-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* --------- Jalus --------- */
.qnfooter {
    background-color: #333;
    color: #ffffff;
    padding: 50px 0 20px;
    margin-top: auto;
}

.qnfooter-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.qnfooter-logo h2 {
    color: #5deace;
    font-size: 24px;
    margin-bottom: 10px;
}

.qnfooter-logo p {
    opacity: 0.8;
    font-size: 14px;
}

.qnfooter-links {
    display: flex;
    gap: 50px;
}

.qnlink-column h3 {
    color: #5deace;
    font-size: 18px;
    margin-bottom: 15px;
}

.qnlink-column ul {
    list-style-type: none;
    margin-bottom: 0;
}

.qnlink-column li {
    margin-bottom: 8px;
}

.qnlink-column a {
    color: #ffffff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.qnlink-column a:hover {
    opacity: 1;
}

.qncopyright {
    text-align: center;
    padding-top: 20px;
    opacity: 0.7;
    font-size: 14px;
}

/* --------- Meist --------- */
.qnabout-intro {
    padding: 60px 0;
}

.qnabout-content {
    max-width: 800px;
    margin: 0 auto;
}

.qnintro-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.qnvision-statement, .qnmission-statement {
    background-color: #f0f5f2;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.qnvision-statement h3, .qnmission-statement h3 {
    color: #5deace;
    margin-bottom: 10px;
}

.qnfocus-areas {
    padding: 60px 0;
    background-color: #ffffff;
}

.qnfocus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.qnfocus-card {
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease;
}

.qnfocus-card:hover {
    transform: translateY(-5px);
}

.qnfocus-card h3 {
    color: #5deace;
    margin-bottom: 15px;
}

.qnteam-section {
    padding: 60px 0;
    background-color: #f0f5f2;
}

.qnteam-description {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.qnteam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.qnteam-member {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.qnmember-photo {
    height: 200px;
}

.qnphoto-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
}

.qnmember-info {
    padding: 20px;
}

.qnmember-role {
    color: #5deace;
    font-weight: 600;
    margin-bottom: 10px;
}

.qnresearch-directions {
    padding: 60px 0;
}

.qnresearch-table-container {
    overflow-x: auto;
}

.qnresearch-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #ffffff;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
    border-radius: 8px;
    overflow: hidden;
}

.qnresearch-table th, .qnresearch-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e2e2e2;
}

.qnresearch-table th {
    background-color: #5deace;
    color: #ffffff;
    font-weight: 600;
}

.qnpartnerships {
    padding: 60px 0;
    background-color: #f0f5f2;
}

.qnpartners-description {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.qnpartner-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.qnpartner-category {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.qnpartner-category h3 {
    color: #5deace;
    margin-bottom: 15px;
}

.qnpartner-list {
    list-style-type: none;
}

.qnpartner-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e2e2;
}

.qnpartner-list li:last-child {
    border-bottom: none;
}

/* --------- Ülevaate sektsioon --------- */
.qnoverview-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.qnoverview-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.qnoverview-column {
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
    background-color: #f8fffc;
}

.qncolumn-title {
    color: #5deace;
    margin-bottom: 15px;
    font-size: 20px;
}

/* --------- Statistika sektsioon --------- */
.qnstats-section {
    padding: 60px 0;
    background-color: #f0f5f2;
}

.qnstats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.qnstat-card {
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
    text-align: center;
}

.qnstat-number {
    font-size: 36px;
    font-weight: 700;
    color: #5deace;
    margin-bottom: 15px;
}

.qnstat-description {
    font-size: 15px;
}
@media (max-width: 992px) {
    .qnhero-content h2 {
        font-size: 32px;
    }
    
    .qnfooter-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .qnfooter-links {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .qnprimary-nav .qncontainer {
        flex-direction: column;
    }
    
    .qnlogo {
        margin-bottom: 15px;
    }
    
    .qnnav-links {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .qnnav-links li {
        margin: 0 10px 10px;
    }
    
    .qnhero-content h2 {
        font-size: 28px;
    }
    
    .qnhero-content p {
        font-size: 16px;
    }
    
    .qnknowledge-categories, .qnfocus-grid, .qnteam-grid, .qnpartner-categories {
        grid-template-columns: 1fr;
    }
    
    .qnsection-title {
        font-size: 24px;
    }
    
    .qnfooter-links {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .qnhero-area {
        padding: 50px 0;
    }
    
    .qncontact-info {
        grid-template-columns: 1fr;
    }
    
    .qnstudy-grid {
        grid-template-columns: 1fr;
    }
    
    .qnhero-content h2 {
        font-size: 24px;
    }
    
    .qnprimary-button, .qnsecondary-button {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .qnsearch-component {
        width: 100%;
    }
    
    .qnsearch-input {
        width: 100%;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qnhero-area {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(34, 34, 34, 0.85));
}

.qnchallenges-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.qncontainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.qnsection-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
}

.qnchallenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.qnchallenge-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.qnchallenge-card:hover {
    transform: translateY(-10px);
}

.qnchallenge-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.qnchallenge-content {
    padding: 20px;
}

.qnchallenge-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #222;
}

.qnchallenge-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.qnsolution h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}

.qnsolution p {
    font-size: 1rem;
    color: #666;
}

.qncontact-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.qncontainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.qnsection-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

.qncontact-info {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.qncontact-details {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.qnaddress-block, .qncontact-block {
    margin-bottom: 30px;
}

.qnaddress-block h3, .qncontact-block h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #222;
}

.qnaddress-block p, .qncontact-block p {
    font-size: 1rem;
    color: #555;
    margin: 5px 0;
}

.qnform-container {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.qnform-container h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #222;
}

.qncontact-form {
    display: flex;
    flex-direction: column;
}

.qnform-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.qnform-group label {
    font-size: 1rem;
    color: #555;
}

.qnform-group input, .qnform-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.qnform-group input:focus, .qnform-group textarea:focus {
    border-color: #007bff;
}

.qnprimary-button {
    padding: 12px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.qnprimary-button:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .qncontact-info {
        flex-direction: column;
    }

    .qncontact-details, .qnform-container {
        width: 100%;
    }
}