/* --- Globaalsed stiilid --- */

/* Spacer */
.spacer {
    height: 100px; /* Või muu soovitud kõrgus */
    width: 100%;
    clear: both;
}

.start-spacer {
    width: 100%;
    clear: both;
}


/* --- Peamine "About Us" wrapper --- */
.about-us-general-wrapper {
    max-width: 100%;
    width: 800px;
    margin: 0 auto;
    overflow: hidden; /* Tagab, et sisu ei valgu üle */
}

.about-us-gradient-wrapper {
  background: linear-gradient(
    to bottom,
    #4048a4 0%,
    #a461a3 100%
  );  
}

/* Sisemine sisu wrapper, et hoida sisu keskel ja piiratud laiusega */
.about-us-main-content {
    max-width: 960px; /* Sisu laius */
    margin: 0 auto;
    margin-top: 1rem; 
    padding: 2rem 2rem 0 2rem; /* Siseruum külgedele ja üles/alla */
    box-sizing: border-box; /* Padding sisaldub laiuses */
}

/* --- Sektsioonid ja sisu read (Desktop vaikimisi) --- */
.about-us-section {
    display: flex;
    flex-direction: column; /* Hoiab sisu (pildi/teksti rida ja lisatekst) üksteise all */
    align-items: flex-start; /* Joondab sisu vasakule */
    text-align: left; /* Tekst vasakule joondatud */
    margin-bottom: 1rem; /* Sektsioonide vahe */
}

.about-us-section-content-row {
    display: flex;
    flex-direction: row; /* Pilt ja tekst kõrvuti */
    justify-content: space-between; /* Jaotab ruumi pildi ja teksti vahel */
    align-items: flex-start; /* Joondab elemendid üles */
    width: 100%;
    gap: 2rem; /* Vahe pildi ja teksti vahel */
}

/* Pilt ja tekst võtavad kindla laiuse */
.about-us-image-container {
    flex: 0 0 40%;
    max-width: 40%;
}

.about-us-text-content {
    flex: 0 0 55%;
    max-width: 55%;
}

/* Pildi ja teksti järjekord */
.about-us-section-right .about-us-image-container { order: 1; }
.about-us-section-right .about-us-text-content { order: 2; }
.about-us-section-left .about-us-image-container { order: 2; }
.about-us-section-left .about-us-text-content { order: 1; }


/* --- Piltide ja tekstide üldised stiilid --- */
.about-us-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-us-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    object-fit: cover;
    max-width: 420px;
}

.about-us-text-content h4 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
    font-style: normal;
    text-align: left; /* Vaikimisi vasakule */
    padding-left: 0;
    padding-top: 0;
}

.about-us-text-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: justify;
}


/* --- Lisateksti ja vahepealkirjade stiilid --- */
.about-us-section-additional-text {
    font-size: 1rem;
    margin: 0.5rem auto;
    max-width: 800px;
    text-align: center;
    padding: 0 1rem;
}

.about-us-section-call-to-action {
    font-size: 1.3rem;
    text-align: center;
    max-width: 800px;
    padding: 0 1rem;
}


/* --- Loomingu sektsioon (must riba) --- */
.about-us-creation-wrapper {
    padding: 0;
    margin-bottom: 3rem;
}

.about-us-cover {
    /* Muutuja defineerimine desktopi (vaikimisi) vaate jaoks */
    --creation-cover-image: url('https://creativestarters.space/wp-content/uploads/2025/08/Desktop-Lendavad-asjad-Uus.webp');
    
    background-size: cover;
    background-position: center;
    padding: var(--wp--preset--spacing--40);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cover-content {
    position: absolute;
    z-index: 2;
    max-width: 500px;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    bottom: 50px;
    right: 0;
}

.cover-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cover-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cover-content .buttons-container {
    margin-top: 1.5rem;
}


/* --- Tiimiliikmete sektsioon (Desktop vaikimisi) --- */
.about-us-teammembers-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.about-us-teammembers-section h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.about-us-team-cards-wrapper {
    display: flex;
    flex-direction: row; /* Kaardid kõrvuti */
    justify-content: center;
    flex-wrap: wrap; /* Laseb kaartidel uude ritta murduda */
    gap: 2rem;
    width: 100%;
}

/* Isiklik kaart */
.about-us-personal-card {
    background-color: #3a3086;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 300px;
    width: 100%;
    box-sizing: border-box;
    color: #ffffff;
}

.about-us-personal-picture-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem auto;
    position: relative;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.personal-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.about-us-personal-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.about-us-personal-card h5 {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.about-us-personal-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.character-story-paragraph br {
    display: block;
    content: "";
    margin-bottom: 0.75rem;
}

.about-us-personal-card .buttons-container {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* --- Stiilid ikoonidega pealkirjale --- */
.heading-with-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem; /* Vahe ikoonide ja teksti vahel, muuda vastavalt vajadusele */
    margin-bottom: 2rem; /* Asendab endise h3 elemendi marginaali */
}

/* Eemaldame pealkirjalt vaikimisi marginaali, kuna see on nüüd konteineril */
.heading-with-icons h3 {
    margin: 0;
    flex-shrink: 0; /* Takistab teksti kokku surumist kitsastel ekraanidel */
}

.heading-with-icons .heading-icon {
    width: 25px; /* Ikooni laius, muuda vastavalt vajadusele */
    height: auto;
}

/* Pöörab parempoolset ikooni horisontaalselt */
.heading-with-icons .heading-icon--right {
    transform: scaleX(-1);
}

/* --- Mobiilivaate kohandus --- */
@media (max-width: 480px) {
    .heading-with-icons {
        gap: 0.75rem; /* Väiksem vahe mobiilis */
    }
    .heading-with-icons .heading-icon {
        width: 25px; /* Väiksemad ikoonid mobiilis */
    }
}


/*
███╗   ███╗ ██████╗ ██████╗ ██╗██╗     
████╗ ████║██╔═══██╗██╔══██╗██║██║     
██╔████╔██║██║   ██║██████╔╝██║██║     
██║╚██╔╝██║██║   ██║██╔══██╗██║██║     
██║ ╚═╝ ██║╚██████╔╝██║  ██║██║███████╗
╚═╝     ╚═╝ ╚═════╝ ╚═╝  ╚═╝╚═╝╚══════╝
*/
/* --- Mobiili stiilid (kuni 767px) --- */
@media (max-width: 767px) {
    
    /* --- Sektsioonid ja sisu read --- */
    .about-us-section {
        align-items: center; /* Keskjoondus */
        text-align: center; /* Tekst keskele */
    }

    .start-spacer {
    display: none;
}



    .about-us-section-content-row {
        flex-direction: column; /* Pilt ja tekst üksteise all */
        align-items: center;
    }

    /* Tühistame desktopi laiused ja järjekorra */
    .about-us-image-container,
    .about-us-text-content {
        flex: 1 1 100%;
        max-width: 100%;
        order: unset !important; /* Eemaldame kindla järjekorra */
    }
    
    .about-us-text-content h4 {
        text-align: center; /* Pealkiri keskele */
    }

    /* --- Tiimiliikmete sektsioon --- */
    .about-us-team-cards-wrapper {
        flex-direction: column; /* Kaardid üksteise all */
        align-items: center; /* Kaardid keskele */
    }

    .about-us-cover {
    --creation-cover-image: url('https://creativestarters.space/wp-content/uploads/2025/07/Mobiil-lendlevad-asjad-1mb-scaled.webp');
    }

    .cover-content {
    padding-top: 0;
    bottom: -15px;
}
}



/*
████████╗ █████╗  ██████╗ ██╗     ███████╗████████╗
╚══██╔══╝██╔══██╗██╔═══██╗██║     ██╔════╝╚══██╔══╝
   ██║   ███████║██║   ██║██║     █████╗     ██║   
   ██║   ██╔══██║██║   ██║██║     ██╔══╝     ██║   
   ██║   ██║  ██║╚██████╔╝███████╗███████╗   ██║   
   ╚═╝   ╚═╝  ╚═╝ ╚═════╝ ╚══════╝╚══════╝   ╚═╝   
*/
/* --- Tahvelarvuti stiilid (768px - 1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
    /*
     * Sellel laiusel kehtivad vaikimisi desktopi stiilid.
     * Siia saad lisada reegleid, mis kirjutavad üle desktopi stiilid AINULT tahvli vaates.
     * Näiteks: võid muuta `gap` väärtusi, fondi suurusi või konteinerite laiuseid,
     * kui need tunduvad tahvlis liiga suured või väikesed.
     */

    /* NÄIDE:
    .about-us-text-content h4 {
        font-size: 1.6rem;
    }
    .about-us-section-content-row {
        gap: 1.5rem;
    }
    */
}