@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

body {
    margin: 0px;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
}
.main {
    padding: 30px;
}

p {
        line-height: 24px;
}


.navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #cecece;
    margin-bottom: 20px;
}

.logo {
        height: 45px;
    width: auto;
}


.lessons-list {
        display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 20px;
}

.lesson-card {
    text-decoration: none;
    color: black;
    font-size: 17px;
    padding: 15px 0px;
    transition: all 0.5s ease;
    border-radius: 8px;
}

.lesson-card:hover {
    padding: 15px 10px;
    
}

.text-gray {
    color: #535252 !important;
}

hr.devider {
    margin: 0;
    border: none;
    border-bottom: 1px solid #DDDDDD;
}
hr.devider2 {
    margin: 50px 0;
    border: none;
    border-bottom: 1px solid #DDDDDD;
}


.lesson-title {
    margin: 0;
    margin-bottom: 8px;
}
.lesson-subtitle {
    margin: 0;
    font-size: 20px;
    color: #535252;
    margin-bottom: 30px;
}






.arabic-table {
  
  border-collapse: collapse;
  /* box-shadow: inset 0 0 0 4px #1e293b; */
  outline: 2px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  table-layout: fixed; /* Помогает таблице не расползаться на смартфонах */
}

.arabic-table td {
  border: 1px solid #cbd5e1;
  padding: 5px;
  text-align: center;
  vertical-align: middle;
  transition: all 0.5s ease;
}

.highlight-cell {
  background: #ffedd5;
}
.highlight-cell:hover {
    background-color: #ecdac1 !important;
}


.highlight-blue {
    background: #F5F9FF;
}
.highlight-blue:hover {
    background-color: #d7e0f0 !important;
}

.arabic-table td:hover {
  background-color: rgba(0, 0, 0, 0.03);
  cursor: pointer;
}

.arabic-table td:active {
  background-color: #dfe3e7;
  transform: scale(0.9);
}




/* Настройки для картинок-слов */
.arabic-word {
  display: block;
  margin: 0 auto;
  max-width: 100%;    /* Картинка никогда не станет шире своей ячейки */
  height: 100px;       /* Пропорции слова не исказятся */
  max-height: 150px;   /* Задаем комфортную высоту слова для ПК */
}




/* Оптимизация под мобильные телефоны */
@media (max-width: 768px) {
    .main {
        padding: 15px;
    }

    .grid-moblie-column-1-3 {
        grid-column: 1 / 3;
    }

    .table-unique,
    .table-unique2,
    .table-unique tbody,
    .table-unique tbody {
        display: block;
        width: 100%;
    }

    .table-unique tr,
    .table-unique2 tr {
        display: contents;
    }

    .table-unique tbody {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        outline: 2px solid #1e293b;
    }
    .table-unique2 tbody {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        outline: 2px solid #1e293b;
    }

    .grid-mobile-4 tbody {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .grid-mobile-3 tbody {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .grid-mobile-2 tbody {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .table-unique td,
    .table-unique2 td {
        display: block;
        width: auto;
        border: none;
        border-right: 1px solid #cbd5e1;
        border-bottom: 1px solid #cbd5e1;
        padding: 5px;
    }


    .arabic-word {
        height: 70px; /* На смартфонах делаем слова чуть компактнее */
    }

    .block-2 tbody,
    .block-6 tbody,
    .block-7 tbody {
        direction: rtl;
    }
}




.tables-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.custom-table {
    width: 100%;
}

.grid-6 tbody {
    grid-template-columns: repeat(6, 1fr);
}

.grid-direction-rtl {
        direction: rtl;
}

/* --- СТИЛИ ДЛЯ ПК (Экраны от 1024px и выше) --- */
@media (min-width: 1024px) {
    .tables-grid-container {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-flow: column;
    }
    
    


    .block-1 {
        grid-column: 5 / 7;
    }
    .block-2 {
        grid-column: 4 / 5;
    }
    .block-3 {
        grid-column: 1 / 4;
    }

    .block-4 {
        grid-column: 4 / 7;
    }
    .block-5 {
        grid-column: 1 / 4;
    }

    .block-6 {
        grid-column: 1 / 7;
    }

    .block-7 {
        grid-column: 1 / 7;
    }

}


.block-1, .block-2 {
    outline: 2px solid #A98560 !important;
}
.block-3, .block-4, .block-5 {
    outline: 2px solid #607AA9 !important;
}
.block-6, .block-7 {
    outline: 2px solid #66A960 !important;
}


.active-sound {
    background-color: #f0f3fa;
}