/* Base styles */
html {
    box-sizing: border-box;
    font-size: 100%; /* Base for rem units */
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-size: 20px;
    line-height: 1.5;
    text-align: justify;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Text styles */
.red {
    color: #d93025;
    font-weight: 600;
}

h1, h2, h3, h4 {
    line-height: 1.2;
}

h1, h2 {
    margin: 40px 0;
}

h3, h4 {
    margin: 25px 0;
}

h1 {
    font-size: clamp(28px, 5vw, 48px);
    max-width: 1100px;
    text-align: center;
}

h2 {
    font-size: clamp(24px, 4vw, 36px);
    max-width: 1100px;
    text-align: center;
}

h3 {
    font-size: clamp(22px, 3.5vw, 30px);
    max-width: 1100px;
    text-align: center;
}

h4 {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 600;
    max-width: 1100px;
    text-align: center;
}

.subh1 {
    font-size: clamp(16px, 2vw, 20px);
    text-align: center;
}

.subh2 {
    font-size: clamp(14px, 1.8vw, 18px);
    text-align: center;
}

p {
    font-size: clamp(16px, 2vw, 20px);
    max-width: 760px;
    margin-bottom: 20px;
    text-align: justify;
}

/* Content sections */
.content {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 21px auto;
    padding: 0 clamp(15px, 4vw, 40px);
    text-align: center;
    max-width: 1440px;
}

.split {
    display: flex;
    max-width: 1200px;
    flex-direction: row;
    flex-wrap: wrap;
}

.left-column, .right-column {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.quote {
    padding: 20px;
    background-color: var(--soft-blue-bg);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-weight: bold;
    text-align: center;
    height: auto;
    max-width: 760px;
    width: 100%;
    margin: 0 auto 20px;
}

.quote p {
    text-align: center;
}

/* Goals section */
.goals {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    max-width: 760px;
    margin-bottom: 20px;
    width: 100%;
}

.goal-item {
    background-color: var(--soft-blue-bg);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    transition: transform 0.3s;
}

.goal-title {
    width: 100%;
    color: var(--nadiyno-blue);
    font-weight: bold;
    font-size: clamp(18px, 2.5vw, 22px);
    margin-bottom: 10px;
}

.goal-text {
    margin: 0;
    font-size: clamp(16px, 2vw, 20px);
}

/* Vectors grid */
.vectors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 20px;
}

.vector-item {
    display: flex;
    flex-direction: column;
    background-color: var(--soft-blue-bg);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    min-height: 100px;
}

.vector-title {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: bold;
    color: var(--nadiyno-blue);
    margin-bottom: 15px;
}

.vector-text {
    font-size: clamp(14px, 1.8vw, 18px);
    line-height: 1.4;
}

/* Examples section */
#examples-section {
    width: 100%;
    background-color: #F8F8F9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

#examples-header {
    cursor: pointer;
    position: relative;
    width: 90%;
    /* Align triangles on when the header wraps: */
    display: flex;
    align-items: center;
    justify-content: center;
}

#examples-header::after {
    content: "◀";
    color: var(--nadiyno-blue);
    position: relative;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

#examples-header.active::after {
    transform: rotate(90deg);
}

#examples-header::before {
    content: "▶";
    color: var(--nadiyno-blue);
    position: relative;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

#examples-header.active::before {
    transform: rotate(-90deg);
}

#examples-content {
    display: none;
    align-items: center;
    flex-direction: column;
    max-width: 90%
}

.screenshot-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.screenshot {
    max-width: 100%;
    border-radius: 10px;
    margin: 0 auto;
}

.source {
    font-size: clamp(14px, 1.8vw, 18px);
    font-style: italic;
    color: var(--secondary-text);
    margin-bottom: 0;
}

/* Steps container */
.steps-container {
    display: grid;
    gap: 20px;
    max-width: 800px;
    grid-template-columns: 1fr;
    margin-bottom: 20px;
    width: 100%;
}

.step-item {
    background-color: var(--soft-blue-bg);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.step-number {
    color: var(--nadiyno-blue);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: bold;
    margin-right: 10px;
    min-width: 24px;
    text-align: center;
}

.step-text {
    margin: 0 0 0 15px;
    font-size: clamp(15px, 1.8vw, 18px);
    text-align: left;
}

/* Recommendations */
.recs-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: auto;
    margin-bottom: 50px;
}

.recs-container > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
}

.rec-item {
    background-color: var(--soft-blue-bg);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    font-size: clamp(15px, 1.8vw, 18px);
}

.insight {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
    color: var(--nadiyno-blue);
}

/* Buttons */
.btns {
    margin: 20px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.butt {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    background-color: var(--nadiyno-yellow);
    color: black;
}

.butt:hover {
    background-color: var(--nadiyno-blue);
    color: white;
}

/* Media Queries */
@media screen and (min-width: 600px) {
    .goal-item {
        flex-direction: row;
        align-items: center;
    }
    
    .goal-title {
        margin-bottom: 0;
        min-width: 180px;
        text-align: left;
        padding-left: 20px;
    }
    
    .goal-text {
        margin: 0 0 0 20px;
    }
    
    .vector-item {
        flex-direction: row;
        align-items: center;
        padding: 25px 30px;
    }
    
    .vector-title {
        margin-right: 25px;
        margin-bottom: 0;
        min-width: 180px;
    }
    
    .btns {
        flex-direction: row;
        justify-content: center;
    }
}

@media screen and (min-width: 768px) {
    .left-column, .right-column {
        width: 50%;
    }
    
    .vectors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recs-container {
        grid-template-columns: repeat(2, 1fr);
    }
}  

@media screen and (min-width: 992px) {
    .recs-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .recs-container > :last-child:nth-child(odd) {
        grid-column: unset;
        justify-self: unset;
    }
}

/* Print styles */
@media print {
    header, footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.3;
    }
    
    .layout-wrapper {
        margin: 0;
        padding: 0;
    }
    
    .content {
        padding: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .quote, .goal-item, .vector-item, .step-item, .rec-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .btns {
        display: none;
    }
}
