/*
 Theme Name:   Hello Elementor Child - Dorpatensis
 Theme URI:    https://dorpatensis.seo-agentuur.eu
 Description:  Child theme for Hello Elementor – Domus Dorpatensis
 Author:       Kristjan
 Author URI:   https://seo-agentuur.ee
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
*/

/* ===== RESET & BASE ===== */
* { box-sizing: border-box; }

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #333;
    background: #fff;
    margin: 0;
    padding: 0;
}

/* ===== LANGUAGE SWITCHER ===== */
.dd-lang-switcher {
    text-align: right;
    padding: 8px 20px;
    font-size: 13px;
    max-width: 1200px;
    margin: 0 auto;
}
.dd-lang-switcher a {
    color: #336;
    text-decoration: none;
    margin-left: 8px;
}
.dd-lang-switcher a:hover,
.dd-lang-switcher a.active {
    text-decoration: underline;
    font-weight: bold;
}

/* ===== HERO BANNER ===== */
.dd-hero {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    background: linear-gradient(135deg, #1a2a5e 0%, #2a3d7a 100%);
    min-height: 260px;
    overflow: hidden;
}

.dd-hero-logo {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0,0,0,0.15);
}

.dd-hero-logo img {
    max-width: 280px;
    width: 100%;
    height: auto;
}

.dd-hero-text {
    flex: 0 0 35%;
    display: flex;
    align-items: center;
    padding: 30px 25px;
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
}

.dd-hero-image {
    flex: 0 0 25%;
    overflow: hidden;
}

.dd-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== NAVIGATION ===== */
.dd-nav {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(to bottom, #4a6abf, #3555a0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.dd-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.dd-nav-menu li a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    font-size: 15px;
    transition: background 0.2s;
}

.dd-nav-menu li a:hover,
.dd-nav-menu li.current a {
    background: rgba(255,255,255,0.15);
    text-decoration: underline;
}

.dd-nav-search {
    padding: 6px 12px;
    display: flex;
    align-items: center;
}

.dd-nav-search input[type="text"] {
    padding: 5px 8px;
    border: 1px solid #ccc;
    font-size: 13px;
    width: 160px;
}

.dd-nav-search button {
    background: #d4a017;
    border: none;
    color: #fff;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

/* ===== THREE COLUMN CONTENT ===== */
.dd-content-columns {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border: 1px solid #ddd;
    border-top: none;
}

.dd-column {
    padding: 25px 30px;
    border-right: 1px solid #ddd;
}

.dd-column:last-child {
    border-right: none;
}

.dd-column h2 {
    font-family: 'Georgia', serif;
    font-size: 24px;
    font-weight: normal;
    color: #222;
    text-align: center;
    margin: 0 0 20px 0;
}

.dd-column-images {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.dd-column-images img {
    flex: 1;
    height: 140px;
    object-fit: cover;
    width: 33.33%;
}

.dd-column .dd-single-image {
    margin-bottom: 20px;
}

.dd-column .dd-single-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.dd-column p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 12px;
}

.dd-column a {
    color: #336;
}

.dd-column .dd-news-list {
    margin-top: 15px;
}

.dd-column .dd-news-list p {
    margin: 4px 0;
    font-size: 13px;
}

.dd-column .dd-news-list a {
    color: #336;
}

.dd-btn-book {
    display: block;
    text-align: center;
    background: #d8dff0;
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    margin-top: 15px;
    font-size: 15px;
    border: 1px solid #bcc5de;
    transition: background 0.2s;
}

.dd-btn-book:hover {
    background: #c5cfe8;
}

/* ===== FOOTER ===== */
.dd-footer {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #ddd;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .dd-hero {
        flex-direction: column;
    }
    .dd-hero-logo,
    .dd-hero-text,
    .dd-hero-image {
        flex: none;
        width: 100%;
    }
    .dd-hero-image {
        height: 200px;
    }
    .dd-content-columns {
        grid-template-columns: 1fr;
    }
    .dd-column {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    .dd-nav-menu {
        flex-wrap: wrap;
    }
}


/* ===== HIDE PARENT THEME ELEMENTS ===== */
body #site-header,
body header#site-header,
body header.site-header,
body .site-header {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

body footer#site-footer,
body .site-footer,
body footer.site-footer {
    display: none !important;
}

body .page-header,
body .entry-header {
    display: none !important;
}

body .site-main,
body .site-content,
body main#content {
    padding: 0 !important;
    margin: 0 !important;
}

.dd-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
}


/* ===== SUBPAGE HEADER ===== */
.dd-subpage-header {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 20px 30px;
    gap: 20px;
}

.dd-subpage-logo img {
    height: 80px;
    width: auto;
}

.dd-subpage-title h1 {
    font-family: 'Georgia', serif;
    font-size: 28px;
    font-weight: normal;
    color: #333;
    margin: 0;
}

.dd-subpage-title p {
    font-size: 14px;
    color: #666;
    margin: 2px 0 0;
}

/* ===== SUBPAGE CONTENT ===== */
.dd-subpage-content {
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-top: none;
    padding: 30px 40px;
    min-height: 400px;
}

.dd-subpage-main {
    max-width: 900px;
}

.dd-page-title {
    font-family: 'Georgia', serif;
    font-size: 26px;
    font-weight: normal;
    color: #222;
    margin: 0 0 20px;
}

.dd-page-body {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

.dd-page-body h2,
.dd-page-body h3 {
    font-family: 'Georgia', serif;
    font-weight: normal;
    color: #222;
    margin: 25px 0 10px;
}

.dd-page-body h2 { font-size: 22px; }
.dd-page-body h3 { font-size: 18px; }

.dd-page-body p {
    margin: 0 0 12px;
}

.dd-page-body strong {
    color: #222;
}

.dd-page-body a {
    color: #336;
}

.dd-page-body ul,
.dd-page-body ol {
    padding-left: 20px;
    margin: 10px 0;
}

.dd-page-body li {
    margin-bottom: 4px;
}

/* Contact page specific */
.dd-contact-info {
    margin: 20px 0;
    line-height: 1.8;
}

.dd-contact-info strong {
    display: block;
    margin-top: 15px;
}


/* ===== UUDISED (NEWS) PAGE ===== */
.dd-uudised-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    padding: 0 !important;
}

.dd-uudised-sidebar {
    padding: 25px 20px;
    border-right: 1px solid #ddd;
    font-size: 14px;
}

.dd-uudised-main {
    padding: 25px 30px;
}

.dd-news-article {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.dd-news-article:last-of-type {
    border-bottom: none;
}

.dd-news-article h2 {
    font-family: 'Georgia', serif;
    font-size: 22px;
    font-weight: normal;
    margin: 0 0 5px;
}

.dd-news-article h2 a {
    color: #222;
    text-decoration: none;
}

.dd-news-article h2 a:hover {
    color: #336;
    text-decoration: underline;
}

.dd-news-date {
    color: #d4a017;
    font-size: 13px;
    margin: 0 0 10px;
}

.dd-news-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.dd-pagination {
    margin-top: 20px;
    text-align: center;
}

.dd-pagination a,
.dd-pagination span {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #336;
}

.dd-pagination .current {
    background: #4a6abf;
    color: #fff;
    border-color: #4a6abf;
}

@media (max-width: 900px) {
    .dd-uudised-layout {
        grid-template-columns: 1fr;
    }
    .dd-uudised-sidebar {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
}


/* ===== SUBPAGE WRAPPER FIX ===== */
.dd-subpage-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.dd-subpage-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dd-subpage-logo img {
    height: 80px;
    width: auto;
}
