﻿/* ==========================================================
   RESET
========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================
   GLOBAL
========================================================== */

body {
    font-family: 'Montserrat', sans-serif;
    background: #eef2f6;
    color: #1a1a1a;
}

main {
    min-height: 80vh;
}

/* ==========================================================
   NAVBAR
========================================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #001f3f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 50px;
    box-shadow: 0 3px 20px rgba(0,0,0,.15);
}

/* ==========================================================
   LOGO
========================================================== */

.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    transition: .3s;
    display: flex;
    align-items: center;
    text-decoration: none;
}
    .logo-link:hover {
        opacity: .9;
    }

.logo-image {
    height: 82px;
    width: auto;
    margin-right: 14px;
}

.company-name {
    color: white;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ==========================================================
   NAVIGATION
========================================================== */

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
}

    .nav-links a {
        color: white;
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 600;
        position: relative;
        transition: .25s;
    }

        .nav-links a:hover {
            color: #2c73ff;
        }

        .nav-links a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 0;
            height: 2px;
            background: #2c73ff;
            transition: .3s;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

/* ==========================================================
   HERO
========================================================== */

.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slides {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
    background-size: cover;
    background-position: center;
}

    .slide.active {
        opacity: 1;
        z-index: 2;
    }

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 90%;
    max-width: 850px;
    text-align: center;
    color: white;
    z-index: 5;
}

    .slide-content h1 {
        font-size: 4rem;
        margin-bottom: 20px;
    }

    .slide-content p {
        font-size: 1.3rem;
        margin-bottom: 35px;
    }

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
/* ==========================================================
   BUTTONS
========================================================== */

.btn-primary-custom {
    display: inline-block;
    background: #1565d8;
    color: white;
    text-decoration: none;
    padding: 16px 34px;
    border-radius: 8px;
    transition: .3s;
}

    .btn-primary-custom:hover {
        background: #0f4ba5;
        transform: translateY(-3px);
    }

.btn-outline-custom {
    display: inline-block;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    padding: 16px 34px;
    border-radius: 8px;
    transition: .3s;
}

    .btn-outline-custom:hover {
        background: white;
        color: #001f3f;
    }

/* ==========================================================
   SECTIONS
========================================================== */

.section {
    padding: 110px 8%;
    text-align: center;
}

    .section h2 {
        font-size: 42px;
        margin-bottom: 30px;
    }

.dark {
    background: #082547;
    color: white;
}

/* ==========================================================
   SERVICES
========================================================== */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    background: white;
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    transition: .3s;
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,.15);
    }

    .service-card img {
        width: 70px;
        margin-bottom: 20px;
    }

/* ==========================================================
   FOOTER
========================================================== */

footer {
    background: #082547;
    color: white;
    text-align: center;
    padding: 30px;
}

    footer a {
        color: #4fa3ff;
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }
/* ==========================
   ADMIN DASHBOARD
========================== */

.dashboard-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
}

    .dashboard-container h1 {
        color: #001f3f;
        margin-bottom: 30px;
    }

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

    .card h2 {
        color: #001f3f;
        margin-bottom: 15px;
    }

    .card p {
        font-size: 36px;
        font-weight: bold;
        color: #1d7df2;
    }
/* ==========================
   STUDENTS
========================== */

.students-page {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
}

.students-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.search-box {
    width: 350px;
    padding: 12px;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.students-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

    .students-table th {
        background: #001f3f;
        color: white;
        padding: 16px;
        text-align: left;
    }

    .students-table td {
        padding: 16px;
        border-bottom: 1px solid #eee;
    }

    .students-table tr:hover {
        background: #f7f9fc;
    }

.status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

    .status.pending {
        background: #fff3cd;
        color: #856404;
    }

    .status.registered {
        background: #d4edda;
        color: #155724;
    }

    .status.submitted {
        background: #d1ecf1;
        color: #0c5460;
    }
/* ==========================================================
   STUDENT SECTIONS
========================================================== */

.student-section {
    margin-top: 40px;
}

    .student-section h2 {
        margin-bottom: 15px;
        color: #082547;
    }

.empty-state {
    background: white;
    padding: 20px;
    border-radius: 10px;
    color: #777;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}
/* =====================================
ADMIN
=====================================*/

.admin-body {
    margin: 0;
    background: #eef3f8;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #082547;
    color: white;
    padding: 25px;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 40px;
}

    .sidebar-logo img {
        width: 90px;
        margin-bottom: 15px;
    }

.sidebar nav {
    display: flex;
    flex-direction: column;
}

    .sidebar nav a {
        color: white;
        text-decoration: none;
        padding: 14px;
        border-radius: 8px;
        margin-bottom: 10px;
        transition: .3s;
    }

        .sidebar nav a:hover {
            background: #1565d8;
        }

.admin-content {
    flex: 1;
    padding: 40px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 25px;
}

.dashboard-card {
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 5px 25px rgba(0,0,0,.08);
}

    .dashboard-card h3 {
        color: #555;
        margin-bottom: 10px;
    }

    .dashboard-card span {
        font-size: 42px;
        font-weight: bold;
        color: #1565d8;
    }

.quick-actions {
    display: flex;
    gap: 20px;
}
/* =====================================
STUDENT PAGE
=====================================*/

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.search-bar {
    margin-bottom: 25px;
}

    .search-bar input {
        width: 350px;
        padding: 12px;
        border-radius: 8px;
        border: 1px solid #ccc;
    }

.student-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

    .student-table th {
        background: #082547;
        color: white;
        padding: 16px;
        text-align: left;
    }

    .student-table td {
        padding: 16px;
        border-bottom: 1px solid #eee;
    }

    .student-table tr:hover {
        background: #f7f9fc;
    }
/* =====================================
FORMS
=====================================*/

.form-container {
    max-width: 700px;
    margin: auto;
    background: white;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

    .form-container h1 {
        margin-bottom: 30px;
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        font-weight: 600;
        margin-bottom: 8px;
        display: block;
    }
    /*dashboard link*/
.dashboard-link {
    text-decoration: none;
    color: inherit;
}

    .dashboard-link:hover {
        text-decoration: none;
        color: inherit;
    }

.dashboard-card {
    transition: .25s;
    cursor: pointer;
}

    .dashboard-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 35px rgba(0,0,0,.12);
    }
/* ===========================
LOGIN
===========================*/

.login-page {
    background: #082547;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    background: white;
    padding: 45px;
    border-radius: 14px;
    width: 380px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0,0,0,.25);
}

    .login-box img {
        margin-bottom: 20px;
    }

    .login-box h2 {
        margin-bottom: 30px;
    }
    /*Services page*/
.service-card {
    transition: 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0,0,0,.15);
    }
/* ==========================
   CONTACT PAGE
========================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 50px;
}

.contact-map iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    text-align: left;
}

    .contact-info h2 {
        margin-bottom: 30px;
    }

.contact-item {
    margin-bottom: 30px;
}

    .contact-item h4 {
        color: #001f3f;
        margin-bottom: 10px;
    }

.contact-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

@media(max-width:900px) {

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map iframe {
        height: 350px;
    }
}
/* ==========================
   FOOTER
========================== */

.site-footer {
    background: #001f3f;
    color: white;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 40px;
}

.footer-column h3,
.footer-column h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-column p {
    color: #c8d3df;
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #c8d3df;
    text-decoration: none;
    transition: .3s;
}

    .footer-column a:hover {
        color: white;
    }

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,.15);
    color: #bfc9d8;
}

@media(max-width:900px) {

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
/*Leader*/
.leader-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid #001f3f;
}
/*=========================
 HERO SLIDER
=========================*/

.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .8s ease;
    background-size: cover;
    background-position: center;
}

    .slide.active {
        opacity: 1;
    }

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,20,45,.60);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: white;
    text-align: center;
    z-index: 5;
    width: 90%;
    max-width: 900px;
}

    .slide-content h1 {
        font-size: 4rem;
        margin-bottom: 20px;
    }

    .slide-content p {
        font-size: 1.3rem;
        margin-bottom: 40px;
    }

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.prev-slide,
.next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(255,255,255,.25);
    color: white;
    font-size: 2rem;
    width: 55px;
    height: 55px;
    cursor: pointer;
    z-index: 10;
    border-radius: 8px;
}

.prev-slide {
    left: 25px;
}

.next-slide {
    right: 25px;
}

.slider-dots {
    position: absolute;
    bottom: 35px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    opacity: .4;
    cursor: pointer;
}

    .dot.active {
        opacity: 1;
    }

@media(max-width:768px) {

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .prev-slide,
    .next-slide {
        display: none;
    }
}
/*=========================
 MOBILE MENU
=========================*/

.menu-toggle {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

@media(max-width:900px) {

    .navbar {
        padding: 18px 25px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #001f3f;
        flex-direction: column;
        display: none;
        padding: 20px;
        gap: 20px;
    }

        .nav-links.active {
            display: flex;
        }
}