/* ==========================================
   HISTORY PAGE
   Madarasatu Abu-Huraiara
========================================== */

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}

body{
background:#f7f9fc;
color:#333;
line-height:1.8;
}

/* ==========================================
HEADER
========================================== */

.history-header{
position:fixed;
top:0;
left:0;
width:100%;
padding:15px 8%;
background:#ffffff;
box-shadow:0 3px 18px rgba(0,0,0,.08);
z-index:999;
}

.back-home{
text-decoration:none;
color:#0b7a3d;
font-weight:600;
font-size:16px;
transition:.3s;
}

.back-home:hover{
color:#0f9d58;
}

/* ==========================================
HERO
========================================== */

.history-hero{
height:60vh;
background:linear-gradient(rgba(0,0,0,.60),rgba(0,0,0,.60)),
url("../images/gallery/school/school1.jpg");
background-size:cover;
background-position:center;
display:flex;
justify-content:center;
align-items:center;
text-align:center;
padding:30px;
margin-top:70px;
}

.hero-content h1{
font-size:50px;
color:#fff;
margin-bottom:15px;
}

.hero-content p{
color:#f5f5f5;
font-size:20px;
max-width:700px;
margin:auto;
}

/* ==========================================
GENERAL SECTION
========================================== */

section{
padding:80px 8%;
}

section h2{
font-size:34px;
text-align:center;
color:#0b7a3d;
margin-bottom:25px;
position:relative;
}

section h2::after{
content:"";
width:90px;
height:4px;
background:#f4b400;
display:block;
margin:12px auto;
border-radius:50px;
}

/* ==========================================
INTRODUCTION
========================================== */

.history-intro p{
max-width:950px;
margin:auto;
font-size:18px;
text-align:center;
color:#555;
}

/* ==========================================
TIMELINE
========================================== */

.timeline{
position:relative;
max-width:1000px;
margin:auto;
}

.timeline::before{
content:"";
position:absolute;
left:50%;
top:0;
width:4px;
height:100%;
background:#0b7a3d;
transform:translateX(-50%);
}

.timeline-item{
display:flex;
justify-content:space-between;
align-items:center;
margin:70px 0;
position:relative;
}

.timeline-item:nth-child(even){
flex-direction:row-reverse;
}

.timeline-year{
width:120px;
height:120px;
background:#0b7a3d;
border-radius:50%;
display:flex;
justify-content:center;
align-items:center;
color:#fff;
font-size:28px;
font-weight:bold;
box-shadow:0 10px 30px rgba(0,0,0,.15);
z-index:2;
}

.timeline-content{
width:42%;
background:#fff;
padding:30px;
border-radius:18px;
box-shadow:0 15px 35px rgba(0,0,0,.08);
transition:.4s;
}

.timeline-content:hover{
transform:translateY(-8px);
}

.timeline-content h3{
color:#0b7a3d;
margin-bottom:12px;
}

/* ==========================================
ADMINISTRATION
========================================== */

.headmaster-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:30px;
margin-top:40px;
}

.admin-card{
background:#fff;
padding:35px;
border-radius:20px;
box-shadow:0 12px 30px rgba(0,0,0,.08);
text-align:center;
transition:.4s;
border-top:6px solid #0b7a3d;
}

.admin-card:hover{
transform:translateY(-10px);
}

.admin-card h3{
color:#0b7a3d;
margin-bottom:10px;
}

.admin-card span{
display:inline-block;
background:#f4b400;
color:#222;
padding:6px 15px;
border-radius:40px;
font-size:14px;
font-weight:600;
margin-bottom:20px;
}

/* ==========================================
GRADUATION
========================================== */

.graduation-section{
background:#0b7a3d;
color:#fff;
border-radius:25px;
text-align:center;
}

.graduation-section h2{
color:#fff;
}

.graduation-section h2::after{
background:#fff;
}

.graduation-section p{
font-size:18px;
max-width:800px;
margin:auto;
}

.history-button{
display:inline-block;
margin-top:35px;
padding:15px 35px;
background:#fff;
color:#0b7a3d;
text-decoration:none;
font-weight:700;
border-radius:50px;
transition:.3s;
}

.history-button:hover{
background:#f4b400;
}

/* ==========================================
VALUES
========================================== */

.values-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:25px;
margin-top:40px;
}

.value-card{
background:#fff;
padding:35px;
border-radius:20px;
text-align:center;
box-shadow:0 12px 30px rgba(0,0,0,.08);
transition:.4s;
}

.value-card:hover{
transform:translateY(-8px);
}

.value-card i{
font-size:55px;
color:#0b7a3d;
margin-bottom:20px;
}

.value-card h3{
color:#444;
}

/* ==========================================
OBJECTIVES
========================================== */

.objectives{
background:#fff;
border-radius:25px;
box-shadow:0 15px 35px rgba(0,0,0,.08);
}

.objectives ul{
max-width:700px;
margin:auto;
list-style:none;
}

.objectives li{
padding:18px;
margin-bottom:18px;
background:#f5f7fa;
border-left:6px solid #0b7a3d;
border-radius:10px;
font-size:17px;
}

.objectives li::before{
content:"✔ ";
color:#0b7a3d;
font-weight:bold;
}

/* ==========================================
FOOTER
========================================== */

.history-footer{
padding:35px;
background:#0b7a3d;
color:#fff;
text-align:center;
margin-top:80px;
}

/* ==========================================
RESPONSIVE
========================================== */

@media(max-width:900px){

.hero-content h1{
font-size:36px;
}

.hero-content p{
font-size:17px;
}

.timeline::before{
left:30px;
}

.timeline-item,
.timeline-item:nth-child(even){
flex-direction:column;
align-items:flex-start;
padding-left:70px;
}

.timeline-year{
width:70px;
height:70px;
font-size:20px;
position:absolute;
left:0;
}

.timeline-content{
width:100%;
margin-top:25px;
}

section{
padding:70px 6%;
}

}

/* ==========================================
SCROLL REVEAL ANIMATION
========================================== */

.hidden{
opacity:0;
transform:translateY(60px);
transition:all .8s ease;
}

.show{
opacity:1;
transform:translateY(0);
}