/* Home Page Styles */
:root {
    --ot-primary: #231f20;
    --ot-secondary: #056B5F;
    --ot-tertiary: #B0A161 ;
    --ot-fourth: #132F2C;
    --ot-fifth: #4EB7AF;
}

.parent {
    width: 100%;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    scroll-behavior: smooth;
    white-space: nowrap;
    display: block;
}

.child {
    display: inline-flex;
    gap: 20px;
    padding: 10px;
}

.child>* {
    flex: 0 0 auto;
    /* يمنع العناصر من تغيير حجمها */
}


.welcome_screen {
    color: black;
    padding-bottom: 80px;
}

.head_container {
    position: relative;
    display: flex;
    flex-direction: row;
    padding-top: 80px;
    gap: 20px;
    align-items: start;
    justify-content: center;
    text-align: start;
    max-width: 1440px;
    margin: auto;
}

.bg1 {
    position: absolute;
    z-index: -1;
    top: 0;
}


.buttons_row {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    justify-content: start;
    flex-wrap: wrap;
}

.assign_buttons_row{
    display: flex;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    align-items: start;
    justify-content: start;
    flex-wrap: wrap;
}

.btn_register {
    display: flex;
    align-items: start;
    justify-content: space-between; 
    gap: 10px;
    padding: 8px 20px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn_register i {
    font-size: 18px;
}

.btn_individual {
    background-color: var(--ot-tertiary);
}

.btn_institution {
    background-color: var(--ot-secondary); 
}

.btn_show_more_text{
    background-color: #F0F0F0; 
    color: #231f20;

}


.title_row {
    max-width: 600px;
    display: flex;
    gap: 12px;
    margin-top: 2rem;
}

.title_text {
    font-weight: 700;
    font-size: 40px;
    color: var(--ot-secondary);
}

.welcome_text {
    font-weight: 500;
    font-size: 40px;
}

.start_row {
    display: flex;
}

.bold-text {
    font-weight: bold;
}

.start_title {
    display: inline;
    margin-top: 10px;
    font-size: 20px;
    color: var(--sy-content);
}

.start_title p {
    display: inline;
    color: var(--sy-content);
    margin-top: 24px;
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 30px;
}

.image_container {
    height: 100%;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image_container img {
    width: auto;
    height: auto;
}

/* Section Styles */
.section {
    position: relative;
    display: flex;
    justify-items: center;
    flex-direction: column;
    align-items: start;
}

.buttons_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 50px;
}

.btn_grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #F0F7F6;
    color: var(--sy-dark);
    border: none;
    padding: 8px 40px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}

.dark-mode .btn_grid {
 background: #0C403A;
 color: white;
}

.dark-mode .btn_grid img {
    filter: brightness(0) invert(1);

}


.btn_grid i {
    font-size: 20px;
    background: var(--ot-fifth);
    color: #fff;             
    border-radius: 50%;    
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;    
}

.dark-mode  .btn_grid i {
    background: #4EB7AF42    ;
}

.btn_grid:hover {
    transform: translateY(-3px);
}

.section_title {
    font-weight: 600;
    font-size: 32px;
    color: var(--ot-secondary)
}

.section_word {
    font-weight: 600;
    font-size: 32px;
}

.section_description {
    font-weight: 600;
    font-size: 20px;
    color: var(--sy-content);
    padding: 0px 60px;
    margin-top: 16px;
    text-align: center;
    line-height: 44px;
    margin-bottom: 16px;
}

.grid_text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 20px;
    color: var(--sy-content);
    line-height: 30px;
    text-justify: start;    
}

.dark-mode .grid_text img {
    filter: brightness(0) invert(1);
}


/* Cards Container */
.cards_container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-top: 50px;
}

.card {
    width: 100%;
    position: relative;
    background-color: var(--light);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}


.dark-mode .card  {
    background-color: var(--body);
    color: white;
    box-shadow: 1px 2px 1px rgba(128, 128, 128, 0.3);
}
   


.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0; 
    right: 0; 
    width: 100%; 
    height: 14px;       
    background-color:rgba(0, 150, 150, 0.2);
    border-radius: 12px  12px  0px 0px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.card_icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: inset 0 0 15px 4px rgba(152, 255, 228, 0.427);
}
.card_icon_2 img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: inset 0 0 15px 4px rgba(255, 238, 152, 0.411);
}


.dark-mode .card_title img {
    filter: brightness(0) invert(1);
}

.card_title {
    display: flex;
    align-items: center;
    gap: 8px; 
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.card_text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}
.dark-mode  .card_text {
    color: white;
}
.assignments_buttons_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 50px;
}

.assignments_btn_grid {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--sy-dark);
    border: none;
    padding: 8px 40px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}

.assignments_btn_grid img {
    font-size: 20px;
    background: #FFC72733;
    color: var(--ot-primary);             
    border-radius: 50%;    
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    
}

.dark-mode .assignments_btn_grid {
    background: var(--body);   
    color: white;

}

.dark-mode .assignments_btn_grid img {
    background: #FFC727;   
    /* filter: brightness(0) invert(1); */
}
.assignments_btn_grid:hover {
    transform: translateY(-3px);
}


/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 50px;
    margin-top: 20px;

}

.right-column {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 15px;
}

.left-column {
    display: flex;
    flex-direction: column;
    align-items: end ;
    gap: 15px;
}
.left-column img{
  object-fit: cover;
}

.light-img {
    display: block;
    padding-bottom: 100px;
  }
  .dark-img {
    display: none;
  }
  
  .dark-mode .light-img {
    display: none;
  }
  .dark-mode .dark-img {
    display: block;
    padding-bottom: 100px;
  }
  


.grid-img {
    width: 100%;
    border-radius: 8px;
}

/* Education Section */
.edu-section {
    display: flex;
    padding: 20px;
    border-radius: 50px;
    height: 216px;
    background-color: white;
    color: var(--dark);
    flex-direction: row;
    gap: 30px;
    align-items: center;
}

.dark-mode .edu-section{
    background-color: #0D1615;
    box-shadow: 1px 1px 1px rgba(128, 128, 128, 0.3);
    color: white;
}

.edu-image {
    position: relative;
    width: 100%;
    display: inline-block;
}

.edu-vector img {
    display: block;
    width: 170px;
    height: 150px;
}

.edu-image img {
    width: 100%;
    height: 216px;
    border-radius: 20px;
    display: block;
}

.edu-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--ot-secondary);
}

.edu-text p {
    font-size: 18px;
    line-height: 1.8;
    color:var(--sy-dark);
}

.edu-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: start; 
    align-items: start; 
    text-align: start;
    color: #fff;
    border-radius: 20px;
    padding: 30px;
}

.edu-overlay h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--light);
}

.edu-overlay p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--light);
}
.courses-row {
    width: 100%;
    position: relative;
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 30px 0;
    scrollbar-width: none;
    cursor: grab;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* user-select: none; */
}


.fade-left {
    position: absolute;
    left: 0;
    bottom: 30px;
    width: 200px;        /* adjust strength */
    height: 60%;
    background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(255,255,255,0));
    z-index: 10;
    pointer-events: none;
}


/* Hide on small screens */
@media (max-width: 768px) {
    .fade-left {
        display: none;
    }
}

.scroll-left-btn {
    position: absolute;
    width: 40px;
    height: 40px;
    left: -20px;
    top: 60%;
    transform: translateY(-50%);
    z-index: 20;
    font-size: 16px;
    background: rgba(255,255,255,0.8);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    border-radius: 50%;
}

.scroll-left-btn:hover {
    background: rgba(255,255,255,1);
}


.courses-row:active {
    cursor: grabbing;
    /* user-select: none; */
}

.courses-row::-webkit-scrollbar {
    display: none;
}

/* Prevent link dragging */
.courses-row a {
    pointer-events: auto;
    -webkit-user-drag: none;
    user-select: none;
}

.courses-row img {
    /* pointer-events: none; */
    -webkit-user-drag: none;
}

.course-card {
    z-index: 20px;
    position: relative;
    flex: 0 0 480px; 
    display: flex;
    gap: 20px;
    background-color: var(--light);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    padding: 10px;
    color: black;

}
.dark-mode .course-card{
    background-color: #101817;
    box-shadow: 1px 1px 1px rgba(128, 128, 128, 0.3);
    color: white;
}

.course-card.flex-card-row {
    flex-direction: row;
}

.course-card.flex-col {
    flex-direction: column;
}


.course-card.flex-card-row img {
    width: 200px ;
    height: 200px ;
    object-fit: cover;
    border-radius: 20px;
  }

  .course-card.flex-col img {
    height: 270px ;
    object-fit: cover;
}


  .row.d-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .row.d-flex a,
  .row.d-flex button {
    display: inline-flex;
    align-items: center;
  }
  
  @media (max-width: 768px) {
    .course-card.flex-card-row {
      flex-direction: column;
      flex: 0 0 350px; 
    }
  
    .course-card.flex-card-row img {
        width: 100%;
        height: 270px ;
      object-fit: cover;
      border-radius: 20px;
    }
  }
  
.course-card.flex-col img {
    width: 100%;
    height: 270px ;
    object-fit: cover;
    border-radius: 20px;
}

.course-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: black;

   gap: 10px;
    
    white-space: nowrap;       /* يمنع النزول لسطر جديد */
    overflow: hidden;          /* يخفي النص الزائد */
    text-overflow: ellipsis;   /* يضيف النقاط (...) */
}



.dark-mode  .course-info {
    color: white !important;
}

.dark-mode  .course-info h4 {
    color: white !important;
}


.course-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--ot-dark);
}

.dark-mode .course-student, .dark-mode .course-details {
    color: white !important;
}

.course-info img {
    border-radius: 0 !important;
}

.course-student, .course-details {
    font-size: 14px;
    color: #666;
    margin: 2px 0;
    margin-bottom: 10px !important;
}

.join-btn {
    display: inline-flex;
    align-items: center;
    font-weight: bold;
    margin-top: 10px;
    padding: 8px 12px;
    background: #F7F7F7;
    color:  var(--ot-secondary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.dark-mode .join-btn {
    box-shadow: 1px 1px 1px rgba(128, 128, 128, 0.3);
    background: #171717;
    color:  white;
}

.course-card img.title_icon {
    color: var(--ot-primary);
    width: 18px; 
    height: 18px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

.section_word img.title_icon {
    color: var(--ot-primary);
}

/* Articles Grid */
.articles-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.article-card {
    width: 100%;
    height: 100%;
    background-color: var(--light);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.dark-mode .article-card {
    background-color: var(--body);
    color: var(--sy-content) !important;

}


.article-card:hover {
    transform: translateY(-5px);
}

.article-card img {
    width: 100%;
    height: 265px;
    object-fit: cover;
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    margin: 15px;
    color: var(--ot-dark);
}

.article-desc {
    font-size: 14px;
    margin: 0 15px 20px;
    line-height: 1.6;
    color: var(--ot-dark);
}

/* Step Card */
.step-card {
    height: 160px;
    display: flex;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-top: 4px solid #f1dbb9;
}

.step-card:hover {
    transform: translateY(-5px);
}

/* Step Card */
.dark-mode .step-card {
    background: #0D1514;
    color: white !important;
    box-shadow: 1px 1px 1px rgba(255, 254, 239, 0.3);
}


.step-info {
    flex: 1;
}
.step-info h4 {
    font-size: 20px;
}


/* Banner */
.banner {
    color: var(--white);
    text-align: center;
    width: 100%;
    height: 600px;
    background-color: var(--ot-fourth);
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.banner::after {
    content: "";
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 200px;
    background: radial-gradient(circle at center top, rgba(255, 255, 255, 0.136) 0%, rgba(255, 255, 255, 0.092) 70%);
    border-top-left-radius: 100%;
    border-top-right-radius: 100%;
    filter: blur(20px);
    pointer-events: none;
}


    .banner h2{
    color: var(--light);
     font-size: 40px;
    }
    .banner p {
    color: var(--light);
    font-size: 20px;
    }

/* Responsive Design */
@media (max-width: 1200px) {
    .head_container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 10px;
        margin-left: auto; 
        margin-right: auto; 
    }

    .right-column {
        align-items: center;
    }
    .left-column {
        align-items: center;
    }
    .image_container {
        width: 100%;
    }

    .image_container img{
        width: 100%;
    }
    
    .cards_container {
        grid-template-columns: 1fr; 
        margin: auto;
        margin-top: 40px;
    }
    
    .welcome_text{
        font-size: 28px; 
    }
    
    .start_title p {
        font-size: 20px;
    }
    
    .section_description{
        font-size: 18px;
    }
    
    .section_word{
        font-size: 26px;
    }
    
    .btn_grid{
        font-size: 16px;
        flex-direction: column;
        padding: 8px 10px;
    }
    .assignments_btn_grid{
        font-size: 16px;
        flex-direction: column;
        padding: 10px 10px;
    }
    .grid-container {
        grid-template-columns: 1fr; 
    }
    
    .edu-section {
        grid-template-columns: 1fr; 
        text-align: center;
        height: 100%;
        flex-direction: column
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .banner h2{
        color: var(--light);
        font-size: 20px;
    }
    
    .banner p {
        color: var(--light);
        font-size: 16px;
    }
    
    
    .title_text {
        font-size: 20px; 
    }
    .buttons_row {
        justify-content: center;
    }
}

/* ----------------------------------------------------------- */
/* Why WITH Syria Section V2 */
.why-syria-section {
    position: relative;
    padding: 80px 80px;
}

.why-syria-section .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.why-syria-section .section-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--sy-content);
}

.vision-mission-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 2;/
}

.why-syria-section .card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px); 
    border-radius: 15px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  
.dark-mode .why-syria-section .card {
    background-color: #0E171680;
    color: white !important;
    box-shadow: 1px 1px 1px rgba(255, 254, 239, 0.3);
}

.why-syria-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.why-syria-section .card-image-wrapper {
    height: 220px;
    width: 100%;
}

.why-syria-section .card-image-wrapper img {
    width: 70%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.why-syria-section .card-content {
    padding: 30px;
    flex-grow: 1;
}

.why-syria-section .card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.why-syria-section .card-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
}

.dark-mode .why-syria-section .card-content h3 {
    color: white !important;
}

.dark-mode .why-syria-section .card-content p {
    color: white !important;
}

.why-syria-section .arrow-bg{
    position: absolute;
    bottom: 50px ;
    z-index: 10;
    right: -20px;
}

.why-left-column {
    display: flex;
    flex-direction: column;
    align-items: start ;
  }

.why-left-column img {
    max-width: 750px;
    transition: transform 0.3s ease;
  }
  
  .why-left-column img:hover {
    transform: scale(1.03);
  }
  

  @media (max-width: 768px) {
    .why-syria-section {
        padding: 40px 20px;
    }

    .why-syria-section .section-header {
        margin-bottom: 30px;
    }

    .why-syria-section .section-intro {
        font-size: 1rem;
        line-height: 1.6;
        text-align: justify;
    }

    .vision-mission-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-syria-section .card-content {
        padding: 20px;
    }

    .why-syria-section .card-content h3 {
        font-size: 1.4rem;
    }

    .why-syria-section .card-content p {
        font-size: 0.95rem;
    }
    .why-left-column {
       align-items: center;
    }

    .why-left-column img {
        max-width: 100%;
    }

    .why-syria-section .arrow-bg {
        display: none;
    }
}

@media (max-width: 480px) {
    .why-syria-section {
        padding: 30px 15px;
    }


    .why-syria-section .section-intro {
        font-size: 0.9rem;
    }

    .why-syria-section .card-content h3 {
        font-size: 1.2rem;
    }

    .why-syria-section .card-content p {
        font-size: 0.9rem;
    }
}
