/*=========================================
  Duroob Al-Yaqeen Digital School
  Global Styles
=========================================*/

/*=============
  Google Font
=============*/
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/*=============
  CSS Variables
=============*/
:root{

    /* Brand Colors */

    --primary:#2E3F8F;
    --primary-light:#4A5FC1;

    --secondary:#98C93C;
    --secondary-dark:#7EB92F;

    --accent:#EB5225;

    /* Neutral */

    --white:#FFFFFF;
    --body:#667085;
    --heading:#1D2939;

    --background:#FFFFFF;
    --section:#F8FAFC;
    --border:#E4E7EC;

    /* Radius */

    --radius-sm:10px;
    --radius-md:16px;
    --radius-lg:24px;
    --radius-xl:32px;
    --radius-round:999px;

    /* Shadows */

    --shadow-sm:0 6px 20px rgba(16,24,40,.05);

    --shadow-md:0 15px 40px rgba(16,24,40,.08);

    --shadow-lg:0 25px 60px rgba(16,24,40,.12);

    /* Animation */

    --transition:.35s ease;

    /* Width */

    --container:1280px;

}


/*=============
  Reset
=============*/



*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;
     overflow-x:hidden;

}

body{

    direction:rtl;

    font-family:'Cairo',sans-serif;

    background:var(--background);

    color:var(--body);

    overflow-x:hidden;

    width:100%;

    line-height:1.8;

    -webkit-font-smoothing:antialiased;
    
   

}

/*=============
  Typography
=============*/

h1,
h2,
h3,
h4,
h5,
h6{

    color:var(--heading);

    font-weight:800;

    line-height:1.25;

}

p{

    color:var(--body);

}

a{

    text-decoration:none;

    color:inherit;

    transition:var(--transition);

}

ul{

    list-style:none;

}

img{

    display:block;

    max-width:100%;

    user-select:none;

}

/*=============
  Layout
=============*/

.container{

    width:min(var(--container),92%);

    margin-inline:auto;

}

/*=============
  Sections
=============*/

section{

    position:relative;

    padding:110px 0;

}

/*=============
  Selection
=============*/

::selection{

    background:var(--secondary);

    color:#fff;

}

/*=============
  Scrollbar
=============*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#F2F4F7;

}

::-webkit-scrollbar-thumb{

    background:var(--secondary);

    border-radius:50px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--primary);

}

/*=============
  Utilities
=============*/

.text-center{

    text-align:center;

}

.text-primary{

    color:var(--primary);

}

.text-secondary{

    color:var(--secondary);

}

.bg-light{

    background:var(--section);

}

.shadow{

    box-shadow:var(--shadow-md);

}

.rounded{

    border-radius:var(--radius-lg);

}

.news-grid{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(340px,1fr));

    gap:30px;

}

.news-card{

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 10px 30px rgba(0,0,0,.06);

    transition:.3s;

}

.news-card:hover{

    transform:translateY(-6px);

}

.news-card img{

    width:100%;

    height:240px;

    object-fit:cover;

    display:block;

}

.news-content{

    padding:25px;

}

.news-date{

    color:#888;

    font-size:14px;

}

.news-content h3{

    margin:12px 0;

    color:#1F4E79;

}

.news-content p{

    line-height:1.8;

    color:#555;

}

.read-more{

    display:inline-block;

    margin-top:15px;

    color:#8DC63F;

    font-weight:bold;

}

.news-details{

    padding:80px 0;

}

.news-cover{

    width:100%;

    border-radius:20px;

    margin-bottom:40px;

    max-height:550px;

    object-fit:cover;

}

.news-summary{

    font-size:20px;

    line-height:1.9;

    color:#555;

    margin-bottom:35px;

    padding:25px;

    background:#F8FAFC;

    border-right:5px solid var(--secondary);

    border-radius:12px;

}

.news-content{

    font-size:18px;

    line-height:2.1;

}

/*=========================================
Contact
=========================================*/

.contact-section{

    padding:80px 0;

}

.contact-wrapper{

    display:grid;
    grid-template-columns:380px 1fr;
    gap:40px;
    align-items:start;

}

.contact-info{

    background:#fff;
    border-radius:20px;
    padding:35px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);

}

.contact-info h2{

    color:var(--primary);
    margin-bottom:30px;

}

.contact-item{

    margin-bottom:25px;
    padding-bottom:20px;
    border-bottom:1px solid #ececec;

}

.contact-item:last-child{

    margin-bottom:0;
    padding-bottom:0;
    border-bottom:none;

}

.contact-item h4{

    color:var(--secondary);
    margin-bottom:8px;
    font-size:17px;

}

.contact-item p{

    color:#666;
    line-height:1.8;
    margin:0;

}

.contact-form{

    background:#fff;
    border-radius:20px;
    padding:35px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);

}

.contact-form .form-group{

    margin-bottom:20px;

}

.contact-form label{

    display:block;
    margin-bottom:8px;
    font-weight:600;
    color:var(--primary);

}

.contact-form .form-control{

    width:100%;
    border:1px solid #ddd;
    border-radius:12px;
    padding:14px 16px;
    font-size:15px;
    transition:.25s;

}

.contact-form .form-control:focus{

    border-color:var(--secondary);
    outline:none;
    box-shadow:0 0 0 3px rgba(141,198,63,.15);

}

.contact-form textarea{

    resize:vertical;

}

.contact-form .btn-primary{

    width:100%;
    padding:15px;
    font-size:16px;
    border-radius:12px;

}

.map-section{

    padding:0 0 80px;

}

.map-section iframe{

    width:100%;
    height:450px;
    border:none;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 15px 40px rgba(0,0,0,.08);

}

@media(max-width:992px){

    .contact-wrapper{

        grid-template-columns:1fr;

    }

}

/* =========================================
   Common Grid System
========================================= */

.grid-2{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:30px;
}

.grid-3{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.grid-4{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

.grid-auto{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

.contact-page{

    min-height:100vh;

    background-image:url("../images/contact_bg.png");

    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

    background-attachment:fixed;

}

.stage-modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.65);

    backdrop-filter:blur(6px);

    display:flex;

    align-items:center;

    justify-content:center;

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:9999;

}

.stage-modal.show{

    opacity:0.95;

    visibility:visible;

}

.stage-modal-content{

    background:#fff;

    width:min(90%,650px);

    padding:40px;

    border-radius:24px;

    text-align:center;

    transform:scale(.9);

    transition:.3s;

    box-shadow:0 25px 70px rgba(0,0,0,.2);

}

.stage-modal.show .stage-modal-content{

    transform:scale(1);

}

.stage-modal h2{

    color:#233a8b;

    margin-bottom:20px;

}

.stage-modal p{

    line-height:2;

    color:#666;

    font-size:1.05rem;

}