/* መሠረታዊ ቅንጅቶች */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* የላይኛው ጥቁር መስመር */
/* የነበረውን አጥፍተህ በዚህ ተካው */
.top-bar { 
    background: #1a1a1a; 
    color: white; 
    padding: 0 5%; /* padding-top እና bottom ወደ 0 አደረግነው ቁመቱን በ height ለመቆጣጠር */
    display: flex; 
    justify-content: space-between; 
    font-size: 13px; 

    /* እነዚህ አዳዲስ የተጨመሩ ናቸው */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px; 
    z-index: 1001; /* ከሁሉም በላይ እንዲሆን */
    align-items: center; /* ጽሁፉ መሃል ላይ እንዲሆን */
}
.separator { margin: 0 10px; color: #444; }
.top-links a { color: white; text-decoration: none; }

}
/* ሎጎው እና ስሙ ጎን ለጎን እንዲሆኑ */
.logo {
    display: flex;
    flex-direction: row; /* ይህ ነው ጎን ለጎን የሚያደርጋቸው */
    align-items: center; /* ምስሉ እና ጽሁፉ መሃል ላይ እንዲሰለፉ */
    gap: 15px; /* በሎጎው እና በስሙ መካከል ያለ ክፍተት */
}

.logo img {
    height: 70px; /* ሎጎው ጎላ ብሎ እንዲታይ */
    width: auto;
}

.school-name {
    display: flex;
    flex-direction: column; /* አማርኛው ከላይ እንግሊዝኛው ከታች እንዲሆን */
    align-items: flex-start; /* ጽሁፉ ወደ ግራ እንዲለጠፍ */
}

.amharic {
    font-size: 24px;
    font-weight: bold;
    color: #003366;
    line-height: 1; /* በሁለቱ ስሞች መካከል ያለውን ክፍተት ያጠባል */
}

.english {
    font-size: 13px;
    color: #555;
    margin-top: 2px;
}
/* ሎጎው ጎላ እንዲል */
.logo img {
    height: 65px; /* ከበፊቱ ከፍ አደረግነው (ጎላ እንዲል) */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s; /* ማውስ ሲያርፍበት እንዲንቀሳቀስ */
}

.logo img:hover {
    transform: scale(1.05); /* ማውስ ሲያርፍበት ትንሽ ጎላ ይላል */
}

/* የትምህርት ቤቱ ስም አጻጻፍ */
.school-name {
    display: flex;
    flex-direction: column; /* አማርኛው ከላይ እንግሊዝኛው ከታች እንዲሆን */
    justify-content: center;
}

.amharic {
    font-size: 22px; /* የአማርኛው ስም ጎላ እንዲል */
    font-weight: bold;
    color: #003366; /* ጥቁር ሰማያዊ ቀለም */
    line-height: 1.2;
}

.english {
    font-size: 12px;
    color: #666;
    letter-spacing: 1px; /* በእንግሊዝኛ ፊደላት መካከል ክፍተት እንዲኖር */
    text-transform: uppercase; /* ሁሉንም በካፒታል ሌተር ያደርገዋል */
}}
.school-name { display: flex; flex-direction: column; }
.amharic { font-weight: bold; color: #003366; font-size: 18px; }
.english { font-size: 11px; color: #666; }

.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 20px; }
.nav-links a { text-decoration: none; color: #333; font-weight: 500; }
.login-btn { background: #00a0dc; color: white !important; padding: 8px 20px; border-radius: 5px; }
/* ምስሉ የሚቀመጥበት ትልቅ ሳጥን */
.slider-container {
    width: 100%;
    height: calc(100vh - 110px);
    margin-top: 110px;
    overflow: hidden;
    position: relative;
    background: #333;
}

/* ምስሎቹን ጎን ለጎን የሚያሰልፍ ትዕዛዝ */
.slider {
    display: flex; /* ይህ በጣም አስፈላጊ ነው! */
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* የቀስቶቹ መልክ */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 100; /* ከምስሉ በላይ እንዲሆን */
}
.prev { left: 20px; }
.next { right: 20px; }
}

/* የቀስቶቹ ዲዛይን */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    padding: 15px;
    border: none;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    z-index: 10; /* ከምስሉ በላይ እንዲሆኑ */
}

.prev { left: 20px; }
.next { right: 20px; }

/* አዲስ የተጨመረ የጋለሪ ዲዛይን */
.photo-gallery-section {
    padding: 60px 10%;
    background-color: #fff;
    text-align: left;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 100px;
    margin-top: 20px;
}
.gallery-grid img {
    width: 130%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    cursor: pointer;
}
.gallery-grid img:hover {
    transform: translateY(-10px);
}
/* ስለ እኛ ክፍል */
.about-section {
    padding: 60px 10%;
    text-align: center;
}
.footer {
    background: #111;
    color: white;
    padding: 20px;
    text-align: center;
}

/* አኒሜሽን - ምስሎቹን የሚቀያይረው */
@keyframes slideShow {
    0% { transform: translateX(0); }
    30% { transform: translateX(0); }
    33% { transform: translateX(-33.33%); }
    63% { transform: translateX(-33.33%); }
    66% { transform: translateX(-66.66%); }
    96% { transform: translateX(-66.66%); }
    100% { transform: translateX(0); }
}
/* የቀስቶቹ ዲዛይን */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    padding: 15px;
    border: none;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    transition: 0.3s;
}

.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }
.prev { left: 20px; }
.next { right: 20px; }

/* አውቶማቲክ አኒሜሽኑን እናቆመዋለን ምክንያቱም አሁን በቀስት ነው የምንቀይረው */
.slider {
    animation: none; 
    transition: transform 0.5s ease-in-out;
}
/* ለስልክ ስክሪን ማስተካከያ (Responsive Design) */
@media screen and (max-width: 768px) {
    /* በስልክ ሲታይ ምስሉ በጣም ትልቅ እንዳይሆን ቁመቱን እናሳንሰዋለን */
    .slider-container {
        height: 250px; 
    }

    /* በስልክ ሲታይ የቀስቶቹን መጠን እናሳንሳለን */
    .prev, .next {
        padding: 10px;
        font-size: 18px;
    }

    /* በስልክ ሲታይ ፅሁፎች እንዳይቆረጡ መጠናቸውን እናሳንሳለን */
    .about-section h2 {
        font-size: 20px;
    }
}
.main-nav {
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%; /* ከላይና ከታች የነበረውን padding አጠፋነው */
    height: 85px; /* የሜኑው ቁመት 85px ብቻ እንዲሆን አደረግነው */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    
    position: fixed; 
    top: 30px; /* ከጥቁሩ መስመር በታች */
    left: 0;
    width: 100%;
    z-index: 1000;
}
/* አዲሱ የጎን ለጎን የመግቢያ ክፍል ዲዛይን */
.welcome-section-new {
    background-color: #f4f4f4; /* ለየት ያለ የኋላ ቀለም */
    padding: 80px 5%; /* ክፍተት */
}

.welcome-container-new {
    display: flex;
    align-items: center; /* ምስሉንና ጽሁፉን በአንድ መስመር ለማድረግ */
    justify-content: center; /* መሃል ላይ ለመሰብሰብ */
    gap: 40px; /* በመካከላቸው ክፍተት */
    max-width: 1200px; /* የክፍሉ ስፋት እንዳይበዛ */
    margin: 0 auto; /* ሙሉ ክፍሉን መሃል ላይ ለማድረግ */
}

/* ለምስሉ ክፍል */
.welcome-image-new {
    flex: 1; /* ምስሉ ግማሽ ቦታ እንዲይዝ */
}

.welcome-image-new img {
    width: 100%;
    height: auto;
    border-radius: 10px; /* የምስሉ ማዕዘኖች ድቡልቡል እንዲሆኑ */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* የምስሉ ጥላ */
}

/* ለጽሁፉ ክፍል */
.welcome-text-new {
    flex: 1; /* ጽሁፉ ግማሽ ቦታ እንዲይዝ */
    text-align: left; /* ጽሁፉ ወደ ግራ እንዲለጠፍ */
}

.welcome-text-new h1 {
    font-size: 36px; /* የጽሁፉ መጠን (ትልቅ) */
    color: #003366; /* ጥቁር ሰማያዊ ቀለም */
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 15px;
}

.welcome-text-new p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

/* ለስልክ ስክሪን ማስተካከያ */
@media screen and (max-width: 768px) {
    .welcome-container-new {
        flex-direction: column; /* በስልክ ሲሆን ምስሉ ከላይ፣ ጽሁፉ ከታች እንዲሆን */
        gap: 30px;
    }
    
    .welcome-text-new h1 {
        font-size: 28px; /* በስልክ ጽሁፉ ትንሽ እንዲያንስ */
    }
}
.welcome-container-new {
    display: flex;
    flex-direction: row; /* ጎን ለጎን ያደርጋቸዋል */
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 60px 5%;
    background-color: #f9f9f9;
}

.welcome-image-new img {
    width: 500px; /* የምስሉ ስፋት */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.welcome-text-new h1 {
    font-size: 32px;
    color: #003366;
    max-width: 500px;
}
/* ርዕሰ መምህሩ ክፍል ዲዛይን */
.principal-section {
    background-color: #f9f9f9;
    padding: 80px 5%;
}

.principal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* ለስልክ አመቺ እንዲሆን */
}

/* ፎቶው ክፍል */
.principal-image {
    .principal-image img {
    width: 100%;       /* የምስሉን ስፋት በሳጥኑ ልክ ያደርገዋል */
    height: auto;      /* ቁመቱን እንደ ምስሉ ተፈጥሯዊ ቅርጽ ይጠብቃል */
    border-radius: 0;  /* ምንም አይነት ቅርጽ (ክብ ወይም ድቡልቡል) እንዳይኖረው ያደርጋል */
    border: none;      /* ዙሪያው ያለውን መስመር (Border) ያጠፋዋል */
    box-shadow: none;  /* ጥላውን ያጠፋዋል (ካልፈለግከው) */
}

.principal-name {
    margin-top: 20px;
}

.principal-name h3 {
    color: #003366;
    margin-bottom: 5px;
    font-size: 20px;
}

.principal-name p {
    color: #777;
    font-size: 14px;
}

/* መልእክቱ ክፍል */
.principal-message {
    flex: 2;
    min-width: 300px;
}

.principal-message h2 {
    color: #003366;
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
}

.principal-message p {
    color: #555;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* ተጨማሪ ያንብቡ በተን */
.read-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #003366;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.read-more-btn:hover {
    background-color: #ffcc00; /* ቢጫ ቀለም በሆቨር */
    color: #003366;
}

/* ለስልክ ስክሪን ማስተካከያ */
@media screen and (max-width: 768px) {
    .principal-container {
        flex-direction: column; /* በስልክ ሲሆን አንዱ ከሌላው በታች እንዲሆን */
        gap: 30px;
    }
}
.hero-banner-footer {
    width: 100%;
    height: 400px; /* የምስሉ ቁመት */
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('school4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* ምስሉ ረጋ ብሎ እንዲንቀሳቀስ */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0; /* ከላይና ከታች ትንሽ ክፍተት እንዲኖር */
}

.banner-title {
    color: white;
    font-size: 45px;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    font-family: 'Segoe UI', sans-serif;
    padding: 0 20px;
}

/* ለስልክ ስክሪን */
@media screen and (max-width: 768px) {
    .banner-title { font-size: 26px; }
    .hero-banner-footer { height: 250px; }
}
.middle-image-banner {
    width: 100%;
    height: 400px; /* የምስሉ ቁመት - እንደ ምርጫህ መቀየር ትችላለህ */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('school4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* ዌብሳይቱን ስታወርደው ምስሉ ረጋ ብሎ እንዲንቀሳቀስ ያደርገዋል */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0; /* ከላይና ከታች ካሉት ክፍሎች ጋር ትንሽ ክፍተት እንዲኖር */
}

.banner-text {
    color: white;
    font-size: 48px; /* ትልቅና ጎልቶ የሚታይ ጽሑፍ */
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.7); /* ጽሑፉ ከምስሉ ተለይቶ እንዲታይ ጥላ ይጨምርለታል */
    font-family: 'Segoe UI', Arial, sans-serif;
    padding: 0 20px;
}

/* ለስልክ ስክሪን እንዲስማማ */
@media screen and (max-width: 768px) {
    .banner-text {
        font-size: 28px;
    }
    .middle-image-banner {
        height: 250px;
    }
}/* ለታሪክ መግለጫው የተጨመረ */
.history-preview {
    padding: 40px 5%;
    text-align: center;
    background: #fff;
}

.read-more-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background-color: #003366;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
}
.read-more-btn {
    display: inline-block;
    padding: 12px 35px;
    background-color: #003366; /* ጥቁር ሰማያዊ */
    color: white;
    text-decoration: none;
    border-radius: 25px; /* ክብ እንዲሆን */
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.read-more-btn:hover {
    background-color: #ffcc00; /* ሲነካ ወደ ቢጫ እንዲቀየር */
    color: #003366;
    transform: translateY(-3px);
}