/*==================================================
Adamas × SSSP Syllabus Portal
Version : 2.0
Author : ChatGPT
==================================================*/

:root{

    --primary:#8B1A1A;

    --primary-dark:#651212;

    --gold:#D4AF37;

    --text:#222;

    --text-light:#666;

    --border:#E8E8E8;

    --bg:#F7F8FA;

    --white:#FFFFFF;

    --shadow:0 15px 45px rgba(0,0,0,.08);

    --radius:22px;

}



body{

    background:var(--bg);

}



/*=========================================
Hero
=========================================*/

.adamasHero{

    position:relative;

    overflow:hidden;

    padding:90px 0 170px;

    background:

    linear-gradient(

    135deg,

    #ffffff,

    #f7f7f7

    );

}



.adamasHero::before{

    content:"";

    width:500px;

    height:500px;

    background:

    rgba(139,26,26,.05);

    position:absolute;

    border-radius:50%;

    top:-220px;

    right:-150px;

}



.adamasHero::after{

    content:"";

    width:350px;

    height:350px;

    position:absolute;

    background:

    rgba(212,175,55,.08);

    border-radius:50%;

    bottom:-170px;

    left:-100px;

}



/*=========================================
Content
=========================================*/

.heroContent{

    position:relative;

    z-index:10;

}



.heroBadge{

    display:inline-flex;

    align-items:center;

    padding:10px 18px;

    border-radius:50px;

    background:#fff;

    border:1px solid #ececec;

    color:var(--primary);

    font-weight:700;

    font-size:14px;

    box-shadow:0 8px 25px rgba(0,0,0,.05);

}



.heroContent h1{

    font-size:58px;

    font-weight:800;

    color:var(--text);

    line-height:1.15;

    margin:25px 0;

}



.heroContent h1 span{

    color:var(--gold);

}



.heroContent p{

    max-width:640px;

    color:var(--text-light);

    line-height:32px;

    font-size:18px;

}



/*=========================================
Buttons
=========================================*/

.heroButtons{

    margin-top:35px;

    display:flex;

    gap:18px;

    flex-wrap:wrap;

}



.heroPrimaryBtn{

    background:var(--primary);

    color:#fff;

    padding:16px 30px;

    border-radius:12px;

    text-decoration:none;

    font-weight:700;

    transition:.35s;

}



.heroPrimaryBtn:hover{

    color:#fff;

    background:var(--primary-dark);

    transform:translateY(-3px);

}



.heroOutlineBtn{

    background:#fff;

    color:var(--primary);

    padding:16px 30px;

    border-radius:12px;

    text-decoration:none;

    border:1px solid var(--primary);

    font-weight:700;

    transition:.35s;

}



.heroOutlineBtn:hover{

    background:var(--primary);

    color:#fff;

}



/*=========================================
Statistics
=========================================*/

.heroStatistics{

    position:relative;

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:22px;

    z-index:5;

}



.statCard{

    background:#fff;

    border-radius:20px;

    padding:35px;

    text-align:center;

    box-shadow:var(--shadow);

    transition:.35s;

}



.statCard:hover{

    transform:translateY(-8px);

}



.statCard h2{

    font-size:42px;

    color:var(--primary);

    font-weight:800;

    margin-bottom:10px;

}



.statCard p{

    color:#777;

    margin:0;

    font-weight:600;

}
/*==================================================
Floating Search Section
==================================================*/

.adamasSearchSection{

    margin-top:-95px;

    position:relative;

    z-index:100;

}



.searchCard{

    background:rgba(255,255,255,.92);

    backdrop-filter:blur(14px);

    -webkit-backdrop-filter:blur(14px);

    border-radius:24px;

    padding:40px;

    border:1px solid rgba(255,255,255,.7);

    box-shadow:

    0 20px 60px rgba(0,0,0,.08);

}



/*=========================================
Header
=========================================*/

.searchHeader{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:35px;

}



.searchHeader h2{

    font-size:34px;

    font-weight:800;

    color:#222;

    margin-bottom:8px;

}



.searchHeader p{

    color:#777;

    margin:0;

}



.searchIcon{

    width:70px;

    height:70px;

    border-radius:18px;

    background:linear-gradient(135deg,#8B1A1A,#B52C2C);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:28px;

}



/*=========================================
Labels
=========================================*/

.searchLabel{

    display:block;

    margin-bottom:10px;

    font-weight:700;

    color:#333;

    font-size:14px;

    letter-spacing:.3px;

}



/*=========================================
Select
=========================================*/

.searchSelect{

    height:56px;

    border-radius:14px;

    border:1px solid #ddd;

    font-size:15px;

    padding:0 16px;

    transition:.30s;

    background:#fff;

}



.searchSelect:hover{

    border-color:#8B1A1A;

}



.searchSelect:focus{

    border-color:#8B1A1A;

    box-shadow:

    0 0 0 4px rgba(139,26,26,.10);

}



/*=========================================
Buttons
=========================================*/

.searchButton{

    width:100%;

    height:56px;

    border:none;

    border-radius:14px;

    background:#8B1A1A;

    color:#fff;

    font-weight:700;

    transition:.35s;

}



.searchButton:hover{

    background:#651212;

    transform:translateY(-3px);

}



.resetButton{

    background:#fff;

    border:1px solid #ddd;

    padding:11px 22px;

    border-radius:10px;

    color:#444;

    font-weight:600;

    transition:.30s;

}



.resetButton:hover{

    border-color:#8B1A1A;

    color:#8B1A1A;

}



/*=========================================
Footer
=========================================*/

.searchFooter{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:30px;

    padding-top:25px;

    border-top:1px solid #ECECEC;

}



.searchInfo{

    color:#666;

    display:flex;

    align-items:center;

    gap:10px;

    font-size:14px;

}



.searchInfo i{

    color:#8B1A1A;

}



/*=========================================
Loading
=========================================*/

.adamasLoader{

    background:#fff;

    border-radius:24px;

    padding:70px;

    text-align:center;

    box-shadow:0 15px 40px rgba(0,0,0,.08);

    animation:fadeIn .4s ease;

}



.adamasLoader h4{

    margin-top:20px;

    font-weight:700;

    color:#222;

}



.adamasLoader p{

    color:#777;

}



/*=========================================
Error
=========================================*/

.adamasError{

    background:#fff;

    border-radius:24px;

    padding:70px;

    text-align:center;

    box-shadow:0 15px 40px rgba(0,0,0,.08);

}



.adamasError i{

    font-size:55px;

    color:#C62828;

    margin-bottom:20px;

}



.adamasError h3{

    font-weight:700;

    margin-bottom:10px;

}



.adamasError p{

    color:#777;

}



/*=========================================
Animation
=========================================*/

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}
/*==================================================
Result Area
==================================================*/

.resultArea{

    padding:80px 0;

}



/*=========================================
Search Summary
=========================================*/

.searchSummary{

    background:#fff;

    border-radius:20px;

    padding:30px 35px;

    margin-bottom:35px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    box-shadow:0 12px 35px rgba(0,0,0,.07);

    border-left:6px solid #8B1A1A;

}



.summaryLeft h3{

    font-size:30px;

    font-weight:800;

    color:#222;

    margin-bottom:8px;

}



.summaryLeft p{

    color:#777;

    margin:0;

}



.summaryRight span{

    background:#F7F4EF;

    color:#8B1A1A;

    padding:12px 18px;

    border-radius:30px;

    font-weight:700;

}



/*=========================================
Semester Block
=========================================*/

.semesterBlock{

    margin-bottom:45px;

}



.semesterHeader{

    background:linear-gradient(135deg,#8B1A1A,#A32222);

    color:#fff;

    border-radius:18px 18px 0 0;

    padding:28px 35px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}



.semesterLeft{

    display:flex;

    align-items:center;

}



.semesterIcon{

    width:70px;

    height:70px;

    border-radius:18px;

    background:rgba(255,255,255,.15);

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:28px;

    margin-right:20px;

}



.semesterHeader h3{

    margin:0;

    font-size:30px;

    font-weight:800;

}



.semesterHeader p{

    margin-top:6px;

    margin-bottom:0;

    opacity:.9;

}



/*=========================================
Subject Row
=========================================*/

.subjectRow{

    background:#fff;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:30px 35px;

    border-bottom:1px solid #ECECEC;

    transition:.35s;

}



.subjectRow:last-child{

    border-radius:0 0 18px 18px;

}



.subjectRow:hover{

    background:#FFF8F8;

    transform:translateX(6px);

}



/*=========================================
Left
=========================================*/

.subjectLeft{

    display:flex;

    align-items:flex-start;

    flex:1;

}



.subjectPdf{

    width:65px;

    height:65px;

    border-radius:16px;

    background:#8B1A1A;

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:26px;

    margin-right:22px;

}



.subjectContent{

    flex:1;

}



.subjectContent h4{

    font-size:23px;

    font-weight:700;

    color:#222;

    margin-bottom:12px;

}



/*=========================================
Meta
=========================================*/

.subjectMeta{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

    margin-bottom:15px;

}



.subjectMeta span{

    background:#F5F5F5;

    padding:8px 14px;

    border-radius:25px;

    color:#666;

    font-size:14px;

    font-weight:600;

}



.subjectMeta i{

    color:#8B1A1A;

    margin-right:6px;

}



/*=========================================
Description
=========================================*/

.subjectDescription{

    color:#777;

    line-height:30px;

    max-width:700px;

}



/*=========================================
Right Buttons
=========================================*/

.subjectRight{

    display:flex;

    gap:15px;

    margin-left:30px;

}



.viewPdfBtn,

.downloadPdfBtn{

    min-width:140px;

    height:48px;

    border-radius:10px;

    display:flex;

    align-items:center;

    justify-content:center;

    text-decoration:none;

    font-weight:700;

    transition:.35s;

}



.viewPdfBtn{

    background:#8B1A1A;

    color:#fff;

}



.viewPdfBtn:hover{

    background:#651212;

    color:#fff;

}



.downloadPdfBtn{

    border:2px solid #8B1A1A;

    color:#8B1A1A;

    background:#fff;

}



.downloadPdfBtn:hover{

    background:#8B1A1A;

    color:#fff;

}
/*==================================================
Empty Result
==================================================*/

.emptyResult{

    background:#fff;

    border-radius:24px;

    padding:80px 40px;

    text-align:center;

    box-shadow:0 15px 40px rgba(0,0,0,.06);

}

.emptyIcon{

    width:110px;

    height:110px;

    border-radius:50%;

    background:linear-gradient(135deg,#8B1A1A,#C0392B);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:42px;

    margin:auto auto 25px;

}

.emptyResult h2{

    font-size:34px;

    font-weight:800;

    color:#222;

    margin-bottom:15px;

}

.emptyResult p{

    max-width:650px;

    margin:auto;

    color:#777;

    line-height:30px;

}


/*==================================================
Smooth Animation
==================================================*/

.heroContent,
.heroStatistics,
.searchCard,
.searchSummary,
.semesterBlock{

    animation:fadeUp .6s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}



/*==================================================
Scrollbar
==================================================*/

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-track{

    background:#f1f1f1;

}

::-webkit-scrollbar-thumb{

    background:#8B1A1A;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#651212;

}



/*==================================================
Responsive
==================================================*/

@media(max-width:1200px){

    .heroContent h1{

        font-size:48px;

    }

}

@media(max-width:991px){

    .adamasHero{

        padding:70px 0 130px;

    }

    .heroContent{

        text-align:center;

        margin-bottom:45px;

    }

    .heroButtons{

        justify-content:center;

    }

    .heroStatistics{

        grid-template-columns:repeat(2,1fr);

    }

    .searchCard{

        padding:30px;

    }

    .searchHeader{

        flex-direction:column;

        text-align:center;

        gap:20px;

    }

    .searchFooter{

        flex-direction:column;

        gap:20px;

        text-align:center;

    }

    .searchSummary{

        flex-direction:column;

        gap:20px;

        text-align:center;

    }

    .subjectRow{

        flex-direction:column;

        align-items:flex-start;

    }

    .subjectRight{

        width:100%;

        margin:30px 0 0;

    }

    .viewPdfBtn,

    .downloadPdfBtn{

        flex:1;

    }

}

@media(max-width:767px){

    .adamasHero{

        padding:55px 0 120px;

    }

    .heroContent h1{

        font-size:36px;

    }

    .heroContent p{

        font-size:16px;

        line-height:28px;

    }

    .heroStatistics{

        grid-template-columns:1fr;

    }

    .statCard{

        padding:28px;

    }

    .searchCard{

        padding:22px;

        border-radius:18px;

    }

    .searchHeader h2{

        font-size:26px;

    }

    .semesterHeader{

        padding:22px;

    }

    .semesterLeft{

        flex-direction:column;

        align-items:flex-start;

    }

    .semesterIcon{

        margin:0 0 15px;

    }

    .semesterHeader h3{

        font-size:24px;

    }

    .subjectRow{

        padding:25px;

    }

    .subjectLeft{

        flex-direction:column;

    }

    .subjectPdf{

        margin:0 0 18px;

    }

    .subjectContent h4{

        font-size:20px;

    }

    .subjectMeta{

        flex-direction:column;

        align-items:flex-start;

        gap:8px;

    }

    .subjectRight{

        flex-direction:column;

    }

    .viewPdfBtn,

    .downloadPdfBtn{

        width:100%;

    }

    .summaryLeft h3{

        font-size:24px;

    }

    .emptyResult{

        padding:55px 20px;

    }

    .emptyResult h2{

        font-size:28px;

    }

}