*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f5f7fb;
}

header{
    background:#0d47a1;
    color:white;
    padding:20px 60px;
}

.container{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

nav a{
    color:white;
    text-decoration:none;
    margin-left:25px;
    font-weight:bold;
}

.hero{
    height:90vh;
    background: url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=1600") center/cover no-repeat;
}

.overlay{
    height:100%;
    background:rgba(0,0,0,.55);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    color:white;
    text-align:center;
}

.overlay h2{
    font-size:60px;
    margin-bottom:20px;
}

.overlay p{
    font-size:24px;
    margin-bottom:30px;
}

.btn{
    background:#ff9800;
    color:white;
    padding:15px 35px;
    border-radius:8px;
    text-decoration:none;
    font-size:20px;
    font-weight:bold;
}

.btn:hover{
    background:#fb8c00;
}

.about{
    padding:80px 20px;
    background:white;
}

.about h2{
    text-align:center;
    font-size:40px;
    color:#0d47a1;
    margin-bottom:30px;
}

.about p{
    max-width:900px;
    margin:20px auto;
    font-size:22px;
    line-height:1.8;
    text-align:center;
}

.courses{
    padding:80px 20px;
    background:#f5f7fb;
}

.courses h2{
    text-align:center;
    color:#0d47a1;
    font-size:42px;
    margin-bottom:50px;
}

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.card{
    background:white;
    padding:30px;
    border-radius:15px;
    box-shadow:0 10px 25px rgba(0,0,0,.1);
    transition:.3s;
}

.card:hover{
    transform:translateY(-8px);
}

.card h3{
    color:#0d47a1;
    margin-bottom:15px;
}

.card p{
    line-height:1.7;
}

.teachers{
    padding:80px 0;
    background:#f8f9fc;
}

.teachers h2{
    text-align:center;
    font-size:42px;
    color:#0d47a1;
    margin-bottom:50px;
}

.teachers .cards{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    gap:35px;
    flex-wrap:wrap;
}
    

.teachers .card{
    background:white;
    width:480px;
    padding:35px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.1);
    min-height:750px;
display:flex;
flex-direction:column;
justify-content:flex-start;

}

.teachers .card h3{
    color:#0d47a1;
    margin-bottom:20px;
    font-size:28px;
}

.teachers .card p{
    line-height:1.8;
    margin-bottom:15px;
}

.prices{
    padding:80px 20px;
    background:#f5f8fc;
}

.prices h2{
    text-align:center;
    font-size:42px;
    color:#0d47a1;
    margin-bottom:50px;
}

.prices .cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.prices .card{
    background:white;
    padding:30px;
    border-radius:15px;
    box-shadow:0 10px 25px rgba(0,0,0,.1);
    text-align:center;
}

.prices .card h3{
    color:#0d47a1;
    margin-bottom:15px;
}

.prices .card h2{
    color:#ff9800;
    margin-top:20px;
}

.prices .card:hover{
    transform: translateY(-8px);
    transition: .3s;
}

.prices .container{
    display:block;
}

.contact-info{
    max-width:1200px;
    margin:60px auto;
    padding:20px;
}

.prices h2{
    text-align:center;
    margin-bottom:50px;
}

.prices .cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.contact-form{
    padding:80px 20px;
    background:#ffffff;
}

.contact-form h2{
    text-align:center;
    font-size:42px;
    color:#0d47a1;
    margin-bottom:40px;
    width:100%;
}

.contact-form .container{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.contact-form form{
    width:100%;
    max-width:700px;
    display:flex;
    flex-direction:column;
    gap:20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
    padding:18px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:18px;
    outline:none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
    border-color:#0d47a1;
}

.contact-form button{
    background:#ff9800;
    color:white;
    border:none;
    padding:18px;
    font-size:20px;
    font-weight:bold;
    border-radius:10px;
    cursor:pointer;
    transition:.3s;
}

.contact-form button:hover{
    background:#fb8c00;
}

.advantages{
    padding:80px 20px;
    background:white;
}

.advantages h2{
    width:100%;
    text-align:center;
    font-size:42px;
    color:#0d47a1;
    margin-bottom:50px;
}

.advantages .container{
    display:block;
}

.advantages .card{
    background:#f8fbff;
    padding:30px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.1);
    transition:.3s;
}

.advantages .card:hover{
    transform:translateY(-8px);
}

.advantages .card h3{
    color:#0d47a1;
    margin-bottom:15px;
}

.stats{
    padding:80px 20px;
    background:#0d47a1;
    color:white;
}

.stats h2{
    text-align:center;
    font-size:42px;
    margin-bottom:50px;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

.stat{
    text-align:center;
}

.stat h3{
    font-size:60px;
    color:#ffb300;
    margin-bottom:15px;
}

.stat p{
    font-size:20px;
}

footer{
    background:#0d47a1;
    color:white;
    padding:60px 20px 20px;
}

.footer-container{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:40px;
    max-width:1200px;
    margin:auto;
}

.footer-box h3{
    margin-bottom:20px;
    color:#ffb300;
}

.footer-box p{
    line-height:1.8;
}

.footer-bottom{
    text-align:center;
    border-top:1px solid rgba(255,255,255,.2);
    margin-top:40px;
    padding-top:20px;
    font-size:15px;
}

.logo{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo-icon{
    font-size:50px;
}

.logo-text h1{
    margin:0;
    color:white;
    font-size:32px;
}

.logo-text p{
    margin:0;
    color:#ffd54f;
    font-size:14px;
    letter-spacing:2px;
    text-transform:uppercase;
}

.teacher-photo{
    width:180px;
    height:220px;
    object-fit:cover;
    object-position:center;
    border-radius:15px;
    border:3px solid #0d6efd;
    display:block;
    margin:0 auto 20px;
}


.two-columns{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:8px 25px;
}

.two-columns li{
    list-style:none;
}

html {
    scroll-behavior: smooth;
}

/* =========================================================
   FIX - ПРЕПОДАВАТЕЛИ - DESKTOP
   ========================================================= */

#teachers {
    width: 100%;
    overflow: hidden;
}

#teachers .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

#teachers h2 {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

/* КАРТА НА ПРЕПОДАВАТЕЛЯ */
#teachers .teacher-card {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 40px;

    display: grid !important;
    grid-template-columns: 320px minmax(0, 1fr) !important;

    align-items: start;
    gap: 45px;

    padding: 35px;

    box-sizing: border-box;

    overflow: hidden;
}

/* СНИМКА */
#teachers .teacher-left {
    width: 100%;
    min-width: 0;

    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#teachers .teacher-left img {
    display: block;

    width: 280px;
    max-width: 100%;
    height: auto;

    object-fit: cover;
}

/* ИНФОРМАЦИЯ */
#teachers .teacher-right {
    width: 100%;
    min-width: 0;

    display: block;
}

#teachers .teacher-right h3 {
    width: 100%;

    margin: 0 0 20px;

    font-size: 32px;
    line-height: 1.2;

    text-align: left;

    overflow-wrap: break-word;
}

#teachers .teacher-right p {
    width: 100%;

    margin: 0 0 20px;

    font-size: 18px;
    line-height: 1.6;

    text-align: left;

    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

/* ПРЕДМЕТИ */
#teachers .subjects-list {
    width: 100%;

    margin: 20px 0 0;
    padding: 0;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px 30px;

    list-style: none;
}

#teachers .subjects-list li {
    width: 100%;
    min-width: 0;

    font-size: 17px;
    line-height: 1.5;

    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}


/* =========================================================
   КУРСОВЕ / ЦЕНИ - DESKTOP
   ========================================================= */

#courses {
    width: 100%;
    overflow: hidden;
}

#courses .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

#courses .cards {
    width: 100%;

    display: grid !important;

    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

    gap: 25px;

    align-items: stretch;
}

#courses .card {
    width: 100%;
    min-width: 0;

    box-sizing: border-box;

    padding: 30px 25px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    overflow: hidden;
}

#courses .card h3 {
    width: 100%;

    margin-bottom: 15px;

    font-size: 25px;
    line-height: 1.3;

    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

#courses .card p {
    width: 100%;

    font-size: 17px;
    line-height: 1.5;

    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

#courses .card .price {
    width: 100%;

    margin-top: auto;

    font-size: 48px;
    line-height: 1.1;

    white-space: nowrap;
}


/* =========================================================
   TABLET / ПО-МАЛЪК КОМПЮТЪР
   ========================================================= */

@media screen and (min-width: 769px) and (max-width: 1100px) {

    #teachers .teacher-card {
        grid-template-columns: 240px minmax(0, 1fr) !important;
        gap: 30px;
        padding: 25px;
    }

    #teachers .teacher-left img {
        width: 220px;
    }

    #teachers .subjects-list {
        grid-template-columns: 1fr;
    }

    #courses .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}


/* =========================================================
   МОБИЛЕН ТЕЛЕФОН
   ========================================================= */

@media screen and (max-width: 768px) {

    #teachers .container {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    #teachers .teacher-card {
        width: 100% !important;
        max-width: 100% !important;

        display: flex !important;
        flex-direction: column !important;

        align-items: center;

        gap: 25px;

        padding: 25px 18px;

        margin-bottom: 25px;
    }

    #teachers .teacher-left {
        width: 100% !important;
    }

    #teachers .teacher-left img {
        width: 170px;
        max-width: 100%;
        margin: 0 auto;
    }

    #teachers .teacher-right {
        width: 100% !important;
        max-width: 100% !important;
    }

    #teachers .teacher-right h3 {
        width: 100% !important;

        font-size: 30px;

        text-align: center;

        white-space: normal;
        overflow-wrap: break-word;
    }

    #teachers .teacher-right p {
        width: 100% !important;

        font-size: 17px;
        line-height: 1.55;

        text-align: center;

        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    }

    #teachers .subjects-list {
        width: 100% !important;

        display: flex !important;
        flex-direction: column !important;

        gap: 8px;

        margin-top: 20px;
    }

    #teachers .subjects-list li {
        width: 100% !important;

        font-size: 17px;
        line-height: 1.5;

        text-align: left;

        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    }


    /* ЦЕНИ НА ТЕЛЕФОН */

    #courses .container {
        width: 100%;
        max-width: 100%;

        padding-left: 15px;
        padding-right: 15px;
    }

    #courses .cards {
        width: 100% !important;

        display: grid !important;

        grid-template-columns: minmax(0, 1fr) !important;

        gap: 22px;
    }

    #courses .card {
        width: 100% !important;
        max-width: 100% !important;

        min-width: 0;

        padding: 30px 20px;

        box-sizing: border-box;
    }

    #courses .card h3 {
        width: 100%;

        font-size: 25px;
        line-height: 1.3;

        white-space: normal;
        overflow-wrap: break-word;
    }

    #courses .card p {
        width: 100%;

        font-size: 17px;
        line-height: 1.55;

        white-space: normal;
        overflow-wrap: break-word;
    }

    #courses .card .price {
        width: 100%;

        font-size: 48px;

        white-space: nowrap;
    }
}


/* =========================================================
   МАЛЪК ТЕЛЕФОН
   ========================================================= */

@media screen and (max-width: 480px) {

    #teachers .teacher-card {
        padding: 22px 15px;
    }

    #teachers .teacher-left img {
        width: 150px;
    }

    #teachers .teacher-right h3 {
        font-size: 27px;
    }

    #teachers .teacher-right p,
    #teachers .subjects-list li {
        font-size: 16px;
    }

    #courses .card {
        padding: 25px 16px;
    }

    #courses .card h3 {
        font-size: 23px;
    }

    #courses .card p {
        font-size: 16px;
    }

    #courses .card .price {
        font-size: 43px;
    }
}



