* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #555;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.navbar {
    background: linear-gradient(135deg, #a8d5e2 0%, #a8d5e2 100%);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    color: #fff;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}
.logo img {
    height: 140px;          
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo img {
        height: 40px;
        max-width: 160px;
    }
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #b2ddec 0%, #b2ddec 100%);
    list-style: none;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 5px;
}

.dropdown-menu li a:hover {
    background: rgba(163, 235, 244, 0.2);
    transform: translateX(5px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}


.hero-section {
    background: linear-gradient(135deg, #dfe8ed 0%, #d7dfeb 100%);
    color: #5555;
    padding: 270px;
    text-align: center;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 40px;
    color: #7d6b9d;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.hero-section p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
    color: #6b7d9d;
    line-height: 1.8;
}

.cards-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff5f7 0%, #f5f7ff 100%);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: #d9b3ff;
}

.card:nth-child(1) {
    background: linear-gradient(135deg, #ffe9f3 0%, #fff 100%);
}

.card:nth-child(2) {
    background: linear-gradient(135deg, #e9f3ff 0%, #fff 100%);
}

.card:nth-child(3) {
    background: linear-gradient(135deg, #fffae9 0%, #fff 100%);
}

.card:nth-child(4) {
    background: linear-gradient(135deg, #e9ffe9 0%, #fff 100%);
}

.card:nth-child(5) {
    background: linear-gradient(135deg, #ffe9fd 0%, #fff 100%);
}

.card:nth-child(6) {
    background: linear-gradient(135deg, #e9f9ff 0%, #fff 100%);
}

.card-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #7d6b9d;
}

.card p {
    color: #777;
    line-height: 1.7;
}
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.content-section {
    padding: 80px 0;
    background: #fff;
}

.content-section.alternate {
    background: linear-gradient(135deg, #f9f5ff 0%, #f5f9ff 100%);
}

.content-section h2 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #7d6b9d;
    text-align: center;
}

.content-section p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 15px;
    color: #666;
    line-height: 1.8;
    text-align: center;
}


footer {
    background: linear-gradient(135deg, #a8d5e2 0%, #a8d5e2 100%);
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 0;
    font-size: 16px;
}


@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #b2ddec 0%, #b2ddec 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: none;
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 10px 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transform: none;
        margin-top: 0;
        background: rgba(255, 255, 255, 0.15);
        box-shadow: none;
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        max-height: 500px;
        margin-top: 10px;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .hero-section p {
        font-size: 16px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .content-section h2 {
        font-size: 28px;
    }

    .content-section p {
        font-size: 16px;
    }
}
/* kartes sadaļa */
.contact-container {
    display: flex;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    flex-wrap: wrap; 
}

.contact-left {
    flex: 1 1 300px;
    max-width: 500px;
}

.contact-right {
    flex: 1 1 300px;
}

/* Cenas un Izmeklējumi divu kolonnu izkārtojums */
.prices-exams-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    padding: 20px 0;
}

.prices-column {
    flex: 1;
    padding: 30px;
    background: linear-gradient(135deg, #ffe9f3 0%, #fff 100%);
    border-radius: 20px;
    text-align: left;
}

.exams-column {
    flex: 1;
    padding: 30px;
    background: linear-gradient(135deg, #ffe9f3 0%, #fff 100%);
    border-radius: 20px;
    text-align: left;
}

.contact-button-wrapper {
    text-align: center;
    padding: 20px 0;
    margin-top: 10px;
}

.prices-column h2,
.exams-column h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #7d6b9d;
}

.prices-column ul,
.exams-column ul {
    list-style: none;
    padding: 0;
}

.prices-column ul li,
.exams-column ul li {
    padding: 10px 0;
    font-size: 16px;
    color: #555;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.prices-column ul li:last-child,
.exams-column ul li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .prices-exams-container {
        flex-direction: column;
    }
    
    .center-button-container {
        padding: 20px 0;
    }
}

.visual-block {
    background-color: #f0f4f8; 
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


.visual-block iframe {
    border-radius: 12px;
    width: 100%;
    height: 300px;
    border: 0;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-right {
        margin-top: 20px;
    }
}

.content {
    display: flex;
    gap: 40px;
    padding: 20px;
}

/*galerijas dala*/
.left-column {
    flex: 1;
}

.left-column .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.left-column .gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer; 
}


.right-column {
    flex: 1;
}


@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
}


.lightbox {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    margin-top: 5%;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.prev, .next {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.3);
    transform: translateY(-50%);
    transition: background-color 0.3s;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.6);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    margin-top: 5%;
    border-radius: 8px;
    transition: opacity 0.5s ease; 
    opacity: 1;
}


body, html {
  height: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    font-family: "Segoe UI", sans-serif;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 4rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2c2c2c;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1rem;
}

.hero-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background-color: #c9a45c;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.hero-button:hover {
    background-color: #b08f4a;
}


/* bilžu vieta par mums*/
.image-slot {
    width: 100%;
    max-width: 350px;   
    margin: 0 auto;    
    overflow: hidden;
    border-radius: 12px;
}

.image-slot img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* epasta dala */
.contact-form-wrapper {
    margin-top: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid #e8e8e8;
}

.contact-form-wrapper h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #7d6b9d;
    text-align: center;
    font-weight: 600;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-left: 4px;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #555;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a8d5e2;
    box-shadow: 0 0 0 4px rgba(168, 213, 226, 0.25);
    background-color: #fafbfc;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #a8d5e2 0%, #9dc5d8 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #9dc5d8 0%, #8fb5c8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 213, 226, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-status {
    text-align: center;
    font-size: 15px;
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
}


@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 18px;
    }
    
    .contact-form-wrapper {
        padding: 20px;
        margin-top: 20px;
    }
    
    .contact-form-wrapper h3 {
        font-size: 20px;
    }
}
