/* ============================================================
   ERP Computer - Public Front Theme (nceorg.in inspired)
   ============================================================ */

/* --- VARIABLES --- */
:root {
    --primary: #07294d;
    --primary-dark: #051d36;
    --accent: #ffaa01;
    --accent-hover: #e69900;
    --gradient: linear-gradient(320deg, #36090d, #17a2b8);
    --gradient-dark: linear-gradient(320deg, #051d36, #0d3d5c);
    --bg-light: #f5f7fa;
    --bg-dark: #0b0a07;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --text-white: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --radius: 10px;
    --radius-sm: 6px;
    --font-primary: 'Tenada', 'Rubik', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-primary);
    font-weight: 900;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background: var(--text-white);
    overflow-x: hidden;
}

a { text-decoration: none; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; }
ul { padding: 0; margin: 0; }

.text-accent { color: var(--accent) !important; }

/* --- TOP BAR --- */
.erp-topbar {
    background: #222;
    color: var(--text-white);
    padding: 6px 0;
    font-size: 14px;
    font-family: var(--font-body);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.erp-social {
    display: flex;
    gap: 4px;
}

.erp-social li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-white);
    border-radius: 3px;
    font-size: 13px;
    transition: all 0.3s;
}

.erp-social li a:hover {
    background: var(--accent);
    color: #000;
}

.erp-topbar-links {
    display: flex;
    gap: 6px;
}

.erp-btn-login {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-white) !important;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 3px;
    font-family: var(--font-body);
    font-weight: 400;
}

.erp-btn-login:hover,
.erp-btn-login.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000 !important;
}

.erp-btn-login i { font-size: 11px; }

/* --- HEADER --- */
.erp-header {
    background: var(--primary);
    padding: 15px 0;
}

.erp-brand a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.erp-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: #000;
    border-radius: 12px;
    font-size: 24px;
}

.erp-brand-text {
    font-size: 22px;
    color: var(--text-white);
    font-weight: 900;
    letter-spacing: 0.5px;
}

.erp-header-contact {
    font-family: var(--font-body);
}

.erp-header-contact a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-white);
    font-size: 14px;
}

.erp-header-contact a:hover { color: var(--accent); }

/* --- NAVBAR --- */
.erp-navbar {
    background: var(--gradient);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.erp-navbar .container { display: flex; justify-content: center; }

.erp-navbar-toggler {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    padding: 10px 15px;
}

.erp-navbar .navbar-nav {
    flex-wrap: wrap;
    justify-content: center;
}

.erp-navbar .nav-link {
    color: var(--text-white) !important;
    font-size: 13px;
    font-weight: 900;
    padding: 12px 14px;
    transition: all 0.3s;
}

.erp-navbar .nav-link:hover,
.erp-navbar .nav-link.active {
    background: rgba(255,255,255,0.15);
}

.erp-navbar .dropdown-menu {
    background: var(--primary);
    border: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 5px 0;
}

.erp-navbar .dropdown-item {
    color: var(--text-white) !important;
    font-size: 12px;
    font-weight: 900;
    padding: 8px 20px;
    font-family: var(--font-body);
}

.erp-navbar .dropdown-item:hover {
    background: var(--gradient);
}

@media (max-width: 991.98px) {
    .erp-navbar-toggler { display: block; }
    .erp-navbar .navbar-collapse { display: none; }
    .erp-navbar .navbar-collapse.show { display: block; }
    .erp-navbar .navbar-nav { flex-direction: column; width: 100%; }
    .erp-navbar .nav-link { padding: 12px 20px; }
    .erp-topbar-links { flex-wrap: wrap; }
}

/* --- BANNER --- */
.erp-banner .carousel-item img {
    height: 70vh;
    min-height: 400px;
    max-height: 700px;
    object-fit: cover;
}

.erp-banner .carousel-control-prev,
.erp-banner .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.erp-banner:hover .carousel-control-prev,
.erp-banner:hover .carousel-control-next {
    opacity: 1;
}

.erp-banner .carousel-control-prev { left: 20px; }
.erp-banner .carousel-control-next { right: 20px; }

.erp-banner .carousel-control-prev i,
.erp-banner .carousel-control-next i {
    font-size: 24px;
    color: var(--text-white);
}

@media (max-width: 767.98px) {
    .erp-banner .carousel-item img { height: 25vh; min-height: 180px; }
}

/* --- NOTICE MARQUEE --- */
.erp-notice-section { padding: 0; }

.erp-notice-bar {
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    border-radius: 0;
    overflow: hidden;
    height: 44px;
}

.erp-notice-title {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #000;
    font-weight: 900;
    font-size: 14px;
    padding: 0 20px;
    height: 100%;
    white-space: nowrap;
    z-index: 10;
    animation: erp-blink 2s infinite;
}

@keyframes erp-blink {
    0%, 100% { background: var(--accent); color: #000; }
    50% { background: #000; color: var(--accent); }
}

.erp-notice-scroll {
    flex: 1;
    overflow: hidden;
    height: 100%;
}

.erp-notice-scroll ul {
    display: flex;
    animation: erp-scroll 30s linear infinite;
    height: 100%;
    align-items: center;
}

.erp-notice-scroll:hover ul { animation-play-state: paused; }

.erp-notice-scroll li {
    white-space: nowrap;
    padding: 0 30px;
    color: var(--accent);
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 400;
    list-style: none;
    position: relative;
}

.erp-notice-scroll li::after {
    content: "";
    width: 1px;
    height: 60%;
    background: rgba(255,255,255,0.3);
    position: absolute;
    right: 0;
    top: 20%;
}

.erp-notice-scroll li:last-child::after { display: none; }

@keyframes erp-scroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* --- LOGIN CARDS --- */
.erp-login-cards-section { padding: 20px 0 10px; }

.erp-login-card {
    display: block;
    background: var(--text-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.erp-login-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.erp-login-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Fallback if no images */
.erp-login-card:empty::before,
.erp-login-card img[src=""] {
    content: "Login";
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    background: var(--gradient);
    color: var(--text-white);
    font-size: 18px;
    font-weight: 900;
}

/* --- MAIN CONTENT (About + Marquees) --- */
.erp-main-content-section { padding: 30px 0; }

.erp-card {
    background: var(--text-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.erp-card-body { padding: 20px; }

.erp-gradient-header {
    background: var(--gradient) !important;
    color: var(--text-white);
    padding: 12px 20px !important;
}

.erp-gradient-header h5,
.erp-gradient-header h6 {
    margin: 0;
    color: var(--text-white);
}

.erp-about-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary);
}

.erp-about-card p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Student marquee */
.erp-marquee-body { padding: 0 !important; }

.erp-student-list { list-style: none; }

.erp-student-list li {
    border-bottom: 2px dotted var(--border-color);
    padding: 10px 15px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 13px;
}

.erp-student-list li img {
    height: 110px;
    width: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin: 8px 0;
}

.erp-student-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 110px;
    background: var(--bg-light);
    border-radius: 8px;
    margin: 8px 0;
    font-size: 40px;
    color: var(--primary);
}

/* --- COUNTER --- */
.erp-counter-section {
    background: var(--gradient);
    padding: 40px 0;
}

.erp-counter-item {
    text-align: center;
    color: var(--text-white);
    padding: 15px;
}

.erp-counter-icon {
    font-size: 36px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.erp-counter-number {
    font-size: 36px;
    margin-bottom: 5px;
}

.erp-counter-item p {
    font-family: var(--font-body);
    font-weight: 400;
    margin: 0;
    opacity: 0.9;
}

/* --- IMPORTANT LINKS --- */
.erp-links-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.erp-section-heading {
    font-size: 26px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.erp-section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.erp-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 10px;
    background: var(--text-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
}

.erp-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.erp-link-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: var(--text-white);
    border-radius: 50%;
    font-size: 20px;
}

.erp-link-card p {
    margin: 0;
    font-size: 12px;
    font-weight: 900;
    color: var(--text-dark);
}

/* --- ENQUIRY FORM --- */
.erp-enquiry-section {
    background: var(--gradient-dark);
    padding: 50px 0;
}

.erp-enquiry-form-wrapper {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 30px;
    color: var(--text-white);
}

.erp-enquiry-form-wrapper h2 {
    margin-bottom: 20px;
}

.erp-enquiry-form .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-white);
    border-radius: var(--radius-sm);
    padding: 10px 15px;
}

.erp-enquiry-form .form-control::placeholder { color: rgba(255,255,255,0.5); }

.erp-enquiry-form .form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(255,170,1,0.25);
    color: var(--text-white);
}

.erp-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 900;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
}

.erp-btn-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.erp-enquiry-illustration {
    color: rgba(255,255,255,0.15);
    font-size: 120px;
    padding: 40px;
}

.erp-enquiry-illustration p {
    color: rgba(255,255,255,0.5);
    font-size: 18px;
}

/* --- CERTIFICATIONS MARQUEE --- */
.erp-certifications-section {
    padding: 30px 0;
    overflow: hidden;
}

.erp-cert-marquee {
    overflow: hidden;
    position: relative;
}

.erp-cert-track {
    display: flex;
    gap: 20px;
    animation: erp-cert-scroll 25s linear infinite;
    width: max-content;
}

.erp-cert-marquee:hover .erp-cert-track { animation-play-state: paused; }

.erp-cert-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--text-white);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.erp-cert-item i { color: var(--accent); font-size: 18px; }

@keyframes erp-cert-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- FOOTER --- */
.erp-footer {
    background: #000;
    color: var(--text-white);
    padding-top: 40px;
}

.erp-footer-brand {
    margin-bottom: 20px;
}

.erp-footer-brand a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.erp-footer-contact {
    font-family: var(--font-body);
    font-size: 13px;
}

.erp-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.7);
}

.erp-footer-contact li i {
    color: var(--accent);
    margin-top: 3px;
}

.erp-footer-contact li a { color: rgba(255,255,255,0.7); }
.erp-footer-contact li a:hover { color: var(--accent); }

.erp-footer-contact address {
    margin: 0;
    font-style: normal;
    line-height: 1.6;
}

.erp-footer-title {
    border-left: 4px solid var(--accent);
    padding-left: 12px;
    margin-bottom: 18px;
    font-weight: 900;
    font-size: 15px;
}

.erp-footer-links li {
    margin-bottom: 8px;
    border-bottom: 1px dashed rgba(255,255,255,0.15);
    padding-bottom: 8px;
}

.erp-footer-links a {
    color: rgba(255,255,255,0.7);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 900;
}

.erp-footer-links a:hover { color: var(--accent); }

.erp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 15px 0;
    margin-top: 30px;
    font-family: var(--font-body);
    font-size: 13px;
}

.erp-footer-bottom p { color: rgba(255,255,255,0.6); }

.erp-social-footer li a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 14px;
    margin-left: 5px;
}

.erp-social-footer li a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

/* --- SCROLL TO TOP --- */
.erp-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 45px;
    height: 45px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    font-size: 20px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.erp-scroll-top:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-3px);
}

/* --- RESPONSIVE --- */
@media (max-width: 991.98px) {
    .erp-brand-text { font-size: 18px; }
    .erp-header-contact { display: none; }
    .erp-topbar { display: none; }
}

@media (max-width: 767.98px) {
    .erp-brand-icon { width: 40px; height: 40px; font-size: 20px; }
    .erp-brand-text { font-size: 16px; }
    .erp-counter-number { font-size: 28px; }
    .erp-enquiry-illustration { font-size: 80px; padding: 20px; }
}

/* --- PAGE HEADER --- */
.erp-page-header {
    background: var(--gradient-dark);
    padding: 40px 0 30px;
    color: var(--text-white);
}
.erp-page-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}
.erp-page-header h1 i { color: var(--accent); margin-right: 8px; }
.erp-page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 13px;
}
.erp-page-header .breadcrumb-item a { color: var(--accent); }
.erp-page-header .breadcrumb-item.active { color: #ccc; }
.erp-page-header .breadcrumb-item + .breadcrumb-item::before { color: #888; }

/* --- ADMIT CARD FORM --- */
.erp-admit-card-form {
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}
.erp-admit-card-form .erp-card-body {
    padding: 30px;
}
.erp-admit-card-form .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.erp-admit-card-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 15px;
    transition: border-color 0.3s;
}
.erp-admit-card-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 170, 1, 0.15);
}
.erp-admit-card-form .btn {
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

/* --- ADMIT CARD RESULT --- */
#admitCardResult .erp-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}
#admitCardResult .erp-card-header {
    background: var(--bg-light);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
}
#admitCardResult .erp-card-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}
#admitCardResult .erp-card-header h5 i { color: var(--accent); margin-right: 6px; }
#admitCardResult .erp-card-body { padding: 20px; }
#admitCardResult .table th {
    color: var(--text-muted);
    font-weight: 500;
    width: 140px;
    border: none;
    padding: 6px 0;
}
#admitCardResult .table td {
    border: none;
    padding: 6px 0;
    font-weight: 500;
}
