/* =========================================
   SLExam Pro v4.0 Professional Style
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial,Helvetica,sans-serif;
    background:#f4f7fc;
    color:#222;
    line-height:1.6;
}

/* Header */

.header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 8%;
    background:#0d6efd;
    color:#fff;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 3px 12px rgba(0,0,0,.15);
}

.logo h1{
    font-size:30px;
}

.logo span{
    color:#ffd43b;
}

.navbar{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.navbar a{
    color:#fff;
    text-decoration:none;
    font-weight:bold;
    transition:.3s;
}

.navbar a:hover{
    color:#ffd43b;
}

/* Hero */

.hero{
    background:linear-gradient(135deg,#0d6efd,#4da3ff);
    color:#fff;
    text-align:center;
    padding:70px 20px;
}

.hero h1{
    font-size:42px;
    margin-bottom:15px;
}

.hero h2{
    font-size:34px;
    margin-bottom:15px;
}

.hero p{
    font-size:18px;
    margin-bottom:30px;
}

/* Search */

.search-box{
    max-width:500px;
    margin:auto;
}

.search-box input{
    width:100%;
    padding:15px;
    border:none;
    border-radius:30px;
    font-size:17px;
    outline:none;
    box-shadow:0 5px 15px rgba(0,0,0,.2);
}

/* Sections */

.section-title{
    text-align:center;
    margin:40px 0 25px;
    font-size:30px;
    color:#0d6efd;
}

.grades,
.features{
    width:90%;
    max-width:1200px;
    margin:auto;
    padding-bottom:40px;
}

/* Grade Grid */

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

/* Grade Card */

.grade-card{
    background:#fff;
    color:#0d6efd;
    text-decoration:none;
    font-weight:bold;
    padding:18px;
    text-align:center;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    transition:.3s;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:70px;
}

.grade-card:hover{
    background:#0d6efd;
    color:#fff;
    transform:translateY(-5px);
}

/* Feature Grid */

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

.feature-card{
    background:#fff;
    border-radius:18px;
    padding:30px 20px;
    text-align:center;
    box-shadow:0 5px 18px rgba(0,0,0,.08);
    transition:.3s;
}

.feature-card:hover{
    transform:translateY(-6px);
}

.feature-card h3{
    margin:15px 0;
    color:#0d6efd;
    font-size:22px;
}

.feature-card p{
    color:#555;
}

/* Buttons */

button{
    background:#0d6efd;
    color:#fff;
    border:none;
    padding:12px 25px;
    border-radius:8px;
    cursor:pointer;
    font-size:16px;
    transition:.3s;
}

button:hover{
    background:#0b5ed7;
}

/* PDF Viewer */

iframe{
    width:100%;
    height:80vh;
    border:none;
    border-radius:12px;
    background:#fff;
    box-shadow:0 5px 18px rgba(0,0,0,.12);
}

/* Footer */

footer{
    background:#0d6efd;
    color:#fff;
    text-align:center;
    padding:25px;
    margin-top:50px;
}

footer p{
    margin:6px 0;
}

/* Mobile */

@media(max-width:768px){

.header{
    flex-direction:column;
    gap:15px;
}

.navbar{
    justify-content:center;
}

.hero{
    padding:50px 15px;
}

.hero h1{
    font-size:32px;
}

.hero h2{
    font-size:28px;
}

.hero p{
    font-size:16px;
}

.section-title{
    font-size:26px;
}

.grade-grid,
.feature-grid{
    grid-template-columns:1fr;
}

.grade-card{
    min-height:65px;
}

}
.search-box{
    max-width:500px;
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.search-box button{
    background:#ffd43b;
    color:#000;
    font-weight:bold;
}

.search-box button:hover{
    background:#ffc107;
}
/* Image Slider */

.slider{
    width:90%;
    max-width:1200px;
    margin:40px auto;
    overflow:hidden;
}

.slides{
    position:relative;
    height:220px;
}

.slide{
    position:absolute;
    width:100%;
    height:100%;
    display:none;
    border-radius:15px;
    background:linear-gradient(135deg,#0d6efd,#4da3ff);
    color:#fff;
    text-align:center;
    padding:50px 20px;
    box-shadow:0 5px 18px rgba(0,0,0,.15);
}

.slide.active{
    display:block;
}

.slide h2{
    font-size:34px;
    margin-bottom:15px;
}

.slide p{
    font-size:20px;
}
/* Statistics */

.stats{
    width:90%;
    max-width:1200px;
    margin:40px auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
}

.stat-card{
    background:#fff;
    border-radius:15px;
    text-align:center;
    padding:30px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
    transition:.3s;
}

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

.stat-card h2{
    color:#0d6efd;
    font-size:40px;
    margin-bottom:10px;
}

.stat-card p{
    font-size:18px;
    color:#555;
}
/* News */

.news-section{

width:90%;

max-width:1200px;

margin:40px auto;

display:grid;

grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

gap:25px;

}

.news-card{

background:#fff;

padding:25px;

border-radius:15px;

box-shadow:0 5px 15px rgba(0,0,0,.1);

transition:.3s;

}

.news-card:hover{

transform:translateY(-5px);

}

.news-card h2{

color:#0d6efd;

margin-bottom:15px;

}

.news-card p{

margin-bottom:20px;

color:#555;

}
/* Dark Mode */

body.dark-mode{
    background:#121212;
    color:#ffffff;
}

body.dark-mode .header,
body.dark-mode footer{
    background:#1f1f1f;
}

body.dark-mode .grade-card,
body.dark-mode .feature-card,
body.dark-mode .news-card,
body.dark-mode .stat-card{
    background:#2b2b2b;
    color:#ffffff;
}

body.dark-mode .grade-card:hover{
    background:#0d6efd;
}

/* Dark Button */

.dark-btn{

background:#ffd43b;

border:none;

padding:10px 15px;

border-radius:8px;

cursor:pointer;

font-size:18px;

}

/* Hamburger Button */

.menu-btn{

display:none;

background:none;

border:none;

color:white;

font-size:30px;

cursor:pointer;

}

/* Mobile */

@media(max-width:768px){

.menu-btn{

display:block;

}

.navbar{

display:none;

flex-direction:column;

background:#0d6efd;

position:absolute;

top:70px;

left:0;

width:100%;

padding:20px;

}

.navbar.active{

display:flex;

}

}
/* Professional Footer */

.footer{
background:#0d6efd;
color:#fff;
padding:50px 8%;
margin-top:50px;
}

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

.footer-box h3{
margin-bottom:15px;
color:#ffd43b;
}

.footer-box p,
.footer-box a{
display:block;
color:#fff;
text-decoration:none;
margin:8px 0;
}

.footer-box a:hover{
color:#ffd43b;
}

.footer hr{
margin:30px 0;
border:none;
border-top:1px solid rgba(255,255,255,.3);
}

.copyright{
text-align:center;
font-size:14px;
}
/* ==================================
   NEWS DELETE
   ================================== */

.delete-news-card {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 15px;

    margin-bottom: 12px;

    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 3px 12px
        rgba(0,0,0,0.08);

}

.delete-news-info {

    display: flex;

    align-items: center;

    gap: 15px;

    min-width: 0;

}

.delete-news-info h3 {

    margin: 0 0 6px;

    font-size: 17px;

}

.delete-news-info p {

    margin: 0;

    color: #777;

    font-size: 14px;

}

.delete-news-image {

    width: 75px;

    height: 55px;

    object-fit: cover;

    border-radius: 8px;

    flex-shrink: 0;

}

.delete-news-button {

    border: none;

    background: #d32f2f;

    color: white;

    padding: 10px 15px;

    border-radius: 8px;

    font-weight: bold;

    cursor: pointer;

    flex-shrink: 0;

}

.delete-news-button:hover {

    background: #b71c1c;

}

.no-news,
.delete-error {

    padding: 20px;

    text-align: center;

    background: #f5f5f5;

    border-radius: 10px;

}


@media (max-width: 600px) {

    .delete-news-card {

        align-items: flex-start;

    }

    .delete-news-info {

        flex: 1;

    }

    .delete-news-info h3 {

        font-size: 15px;

    }

    .delete-news-image {

        width: 60px;

        height: 45px;

    }

    .delete-news-button {

        padding: 9px 11px;

        font-size: 13px;

    }

}

/* =========================================
   ADVERTISEMENT
   ========================================= */

.ad-container {
position: relative;
    width: 90%;
    max-width: 1200px;

    min-height: 90px;

    margin: 30px auto;

    background: #ffffff;

    border: 1px dashed #b8c4d6;

    border-radius: 12px;

    display: flex;

    justify-content: center;

    align-items: center;

    text-align: center;

    color: #8a96a8;

    font-size: 13px;

    overflow: hidden;

}


/* Ad label */

.ad-container::before {

    content: "Advertisement";

    position: absolute;

}


/* Keep ad content above label */

.ad-container > * {

    position: relative;

    z-index: 1;

}

/* ==================================
   DARK MODE
   ================================== */

body.dark-mode {
    background: #0f172a;
    color: #e5e7eb;
}


body.dark-mode .site-header {
    background: #111827;
    border-bottom-color: #1f2937;
}


body.dark-mode .nav-link {
    color: #e5e7eb;
}


body.dark-mode .nav-link:hover {
    background: #1e293b;
    color: #60a5fa;
}


body.dark-mode .theme-toggle,
body.dark-mode .menu-toggle {
    background: #1e293b;
    color: #ffffff;
}


body.dark-mode .main-nav {
    background: #111827;
    border-bottom-color: #1f2937;
}


body.dark-mode .policy-card,
body.dark-mode .terms-card {
    background: #111827;
}


body.dark-mode .policy-box,
body.dark-mode .terms-box {
    background: #1e293b;
}


body.dark-mode .policy-box p,
body.dark-mode .policy-box li,
body.dark-mode .terms-box p,
body.dark-mode .terms-box li {
    color: #cbd5e1;
}


body.dark-mode .policy-intro,
body.dark-mode .terms-intro {
    color: #94a3b8;
}

/* ==================================
   MOBILE MENU
   ================================== */

@media (max-width: 850px) {

    .main-nav {
        position: absolute;

        top: 64px;
        left: 0;

        width: 100%;

        padding: 12px;

        display: none;

        flex-direction: column;

        align-items: stretch;

        background: #ffffff;

        border-bottom: 1px solid #e5e7eb;

        box-shadow:
            0 8px 20px rgba(0,0,0,0.08);

        z-index: 999;
    }


    .main-nav.active {
        display: flex;
    }


    .nav-link {
        width: 100%;

        padding: 13px 15px;

        display: block;
    }


    .menu-toggle {
        display: flex;
    }

}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.05);
}


.header-container {
    width: min(1200px, 92%);

    margin: auto;

    min-height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


/* ==================================
   LOGO
   ================================== */

.site-logo {
    display: inline-flex;

    align-items: center;

    text-decoration: none;

    font-size: 25px;

    font-weight: 800;

    letter-spacing: -0.5px;

    white-space: nowrap;
}

.logo-main {
    color: #0b5ed7;
}

.logo-pro {
    color: #111827;
}


/* ==================================
   NAVIGATION
   ================================== */

.main-nav {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    flex: 1;
}


.nav-link {
    display: inline-flex;

    align-items: center;

    padding: 10px 13px;

    border-radius: 8px;

    color: #374151;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.nav-link:hover {
    color: #0b5ed7;

    background: #eff6ff;
}


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

.header-actions {
    display: flex;

    align-items: center;

    gap: 8px;
}


.theme-toggle,
.menu-toggle {
    width: 40px;

    height: 40px;

    border: 0;

    border-radius: 8px;

    background: #f3f4f6;

    color: #111827;

    cursor: pointer;

    font-size: 18px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.theme-toggle:hover,
.menu-toggle:hover {
    background: #e5e7eb;
}


.menu-toggle {
    display: none;
}


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

.site-footer {
    margin-top: 60px;

    background: #0f172a;

    color: #cbd5e1;
}


.footer-container {
    width: min(1200px, 92%);

    margin: auto;

    padding: 55px 0 45px;

    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        1.3fr;

    gap: 45px;
}


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

.footer-logo {
    display: inline-block;

    margin-bottom: 15px;

    text-decoration: none;

    font-size: 25px;

    font-weight: 800;

    color: #ffffff;
}


.footer-logo strong {
    color: #60a5fa;
}


.footer-about p {
    max-width: 420px;

    margin: 0 0 12px;

    color: #94a3b8;

    line-height: 1.7;

    font-size: 14px;
}


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

.footer-column h3 {
    margin: 0 0 18px;

    color: #ffffff;

    font-size: 16px;

    font-weight: 700;
}


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

.footer-column ul {
    list-style: none;

    padding: 0;

    margin: 0;
}


.footer-column li {
    margin-bottom: 11px;
}


.footer-column a {
    color: #94a3b8;

    text-decoration: none;

    font-size: 14px;

    transition:
        color 0.2s ease;
}


.footer-column a:hover {
    color: #60a5fa;
}


/* ==================================
   CONTACT
   ================================== */

.footer-contact li {
    display: flex;

    align-items: flex-start;

    gap: 7px;
}


/* ==================================
   SOCIAL
   ================================== */

.footer-social {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: 20px;
}


.footer-social a {
    padding: 7px 11px;

    border: 1px solid #334155;

    border-radius: 7px;
}


.footer-social a:hover {
    border-color: #60a5fa;

    background: #1e293b;
}


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

.footer-bottom {
    border-top: 1px solid #1e293b;
}


.footer-bottom-container {
    width: min(1200px, 92%);

    margin: auto;

    min-height: 65px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.footer-bottom p {
    margin: 0;

    color: #64748b;

    font-size: 13px;
}


/* ==================================
   MOBILE
   ================================== */

@media (max-width: 850px) {

    .header-container {
        min-height: 64px;
    }


    .main-nav {
        position: absolute;

        top: 64px;

        left: 0;

        width: 100%;

        padding: 12px;

        display: none;

        flex-direction: column;

        align-items: stretch;

        background: #ffffff;

        border-bottom: 1px solid #e5e7eb;

        box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.08);
    }


    .main-nav.active {
        display: flex;
    }


    .nav-link {
        width: 100%;

        padding: 12px 15px;
    }


    .menu-toggle {
        display: flex;
    }


    .footer-container {
        grid-template-columns: 1fr 1fr;

        gap: 35px;
    }

}


@media (max-width: 600px) {

    .footer-container {
        grid-template-columns: 1fr;

        gap: 30px;
    }


    .footer-bottom-container {
        flex-direction: column;

        justify-content: center;

        text-align: center;

        padding: 15px 0;

        gap: 5px;
    }

}

/* ======================================
   PAPER / WORKSHEET LIST VIEW
====================================== */

.paper-list-item {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;

    background: #ffffff;

    color: #1e293b;

    text-decoration: none;

    padding: 16px 18px;

    margin: 0 auto 12px auto;

    border-radius: 12px;

    border: 1px solid #e2e8f0;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.paper-list-item:hover {
    transform: translateY(-2px);

    border-color: #1976d2;

    box-shadow:
        0 6px 16px rgba(25, 118, 210, 0.14);
}

.paper-list-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e3f2fd;

    border-radius: 10px;

    font-size: 20px;

    margin-right: 14px;
}

.paper-list-title {
    flex: 1;

    font-size: 15px;

    font-weight: 600;

    line-height: 1.5;

    color: #1e293b;
}

.paper-list-arrow {
    font-size: 28px;

    font-weight: 300;

    color: #1976d2;

    margin-left: 10px;
}


/* Mobile */

@media (max-width: 600px) {

    .paper-list-item {
        padding: 13px 14px;
        margin-bottom: 10px;
    }

    .paper-list-icon {
        width: 38px;
        height: 38px;

        font-size: 18px;

        margin-right: 11px;
    }

    .paper-list-title {
        font-size: 14px;
    }

    .paper-list-arrow {
        font-size: 25px;
    }

}

/* =========================================
   PAPER / WORKSHEET LIST VIEW
========================================= */

.paper-list {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.paper-list-item {
    display: flex;
    align-items: center;

    width: 100%;
    box-sizing: border-box;

    padding: 15px 18px;
    margin-bottom: 12px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 12px;

    text-decoration: none;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.paper-list-item:hover {
    transform: translateY(-2px);

    border-color: #1976d2;

    box-shadow:
        0 6px 16px rgba(25, 118, 210, 0.14);
}

.paper-list-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 14px;

    background: #e3f2fd;

    border-radius: 10px;

    font-size: 20px;
}

.paper-list-title {
    flex: 1;

    color: #1e293b;

    font-size: 15px;
    font-weight: 600;

    line-height: 1.5;
}

.paper-list-arrow {
    margin-left: 10px;

    color: #1976d2;

    font-size: 28px;
    font-weight: 300;
}


/* Mobile */

@media (max-width: 600px) {

    .paper-list-item {
        padding: 13px 14px;
        margin-bottom: 10px;
    }

    .paper-list-icon {
        width: 38px;
        height: 38px;

        margin-right: 11px;

        font-size: 18px;
    }

    .paper-list-title {
        font-size: 14px;
    }

    .paper-list-arrow {
        font-size: 25px;
    }

}